:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071214;
  color: #eef7f3;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(49, 177, 160, 0.25), transparent 34rem),
    linear-gradient(135deg, #071214 0%, #102022 48%, #201c16 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.hero,
.time-panel,
.weather-panel,
.section-head,
footer {
  width: 100%;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
}

.kicker,
.label,
.story-meta,
footer {
  margin: 0;
  color: #9cb8b2;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 2.4rem;
  line-height: 0.95;
}

h2 {
  margin-top: 3px;
  font-size: 1.1rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(238, 247, 243, 0.18);
  border-radius: 8px;
  color: #eef7f3;
  background: rgba(238, 247, 243, 0.08);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spinning svg {
  animation: spin 0.8s linear infinite;
}

.time-panel,
.weather-panel {
  border: 1px solid rgba(238, 247, 243, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 20, 0.76);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.time-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
}

.clock {
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(5.3rem, 25vw, 8rem);
  font-weight: 800;
  line-height: 0.88;
}

.seconds {
  margin-top: 8px;
  color: #f5ce7a;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #b7f2d7;
  color: #06251a;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.weather-panel {
  margin-top: 12px;
  padding: 18px;
}

.weather-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.condition {
  margin-top: 4px;
  font-size: 1.65rem;
  font-weight: 800;
}

.temp {
  font-size: 4.8rem;
  font-weight: 850;
  line-height: 0.86;
  color: #f5ce7a;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.weather-grid div {
  min-height: 72px;
  padding: 13px;
  border: 1px solid rgba(238, 247, 243, 0.12);
  border-radius: 8px;
  background: rgba(238, 247, 243, 0.06);
}

.weather-grid span,
.story > span:last-child {
  display: block;
  color: #bad0cb;
  font-size: 0.83rem;
  line-height: 1.38;
}

.weather-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 24px 0 10px;
}

.section-head > span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  border-radius: 999px;
  background: rgba(245, 206, 122, 0.16);
  color: #f5ce7a;
  font-size: 0.82rem;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 8px;
}

.story {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(238, 247, 243, 0.1);
  border-radius: 8px;
  background: rgba(238, 247, 243, 0.07);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.story-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.official-badge {
  background: rgba(245, 206, 122, 0.18);
  color: #f5ce7a;
}

.social-badge {
  background: rgba(183, 242, 215, 0.16);
  color: #b7f2d7;
}

.story:hover,
.story:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 206, 122, 0.5);
  background: rgba(238, 247, 243, 0.1);
  outline: none;
}

.story strong {
  font-size: 1rem;
  line-height: 1.22;
}

.is-social {
  background: rgba(49, 177, 160, 0.08);
}

.is-official {
  background: rgba(238, 247, 243, 0.07);
}

.muted {
  color: #bad0cb;
}

.league-board {
  display: grid;
  gap: 12px;
}

.score-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.score-card {
  display: grid;
  gap: 7px;
  min-height: 108px;
  padding: 13px;
  border: 1px solid rgba(238, 247, 243, 0.1);
  border-radius: 8px;
  background: rgba(245, 206, 122, 0.08);
}

.score-card span,
.score-card em {
  color: #9cb8b2;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.score-card strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.score-card b {
  color: #f5ce7a;
  font-weight: 900;
  white-space: nowrap;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid rgba(238, 247, 243, 0.12);
  border-radius: 8px;
  background: rgba(7, 18, 20, 0.76);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(238, 247, 243, 0.08);
  text-align: right;
  font-size: 0.86rem;
}

th {
  color: #9cb8b2;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

tr:last-child td {
  border-bottom: 0;
}

.club {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.club img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

footer {
  padding: 22px 0 6px;
  text-align: center;
  text-transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 720px) {
  .shell {
    padding-top: 28px;
  }

  h1 {
    font-size: 3.3rem;
  }

  .time-panel,
  .weather-panel {
    padding: 24px;
  }

  .weather-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .news-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
