@font-face {
  font-family: "Nunito";
  src: url("assets/Nunito-Variable.ttf") format("truetype-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #003c20;
  --green-900: #004c28;
  --green-800: #075f31;
  --green-700: #0b7139;
  --green-100: #e7efe7;
  --cream-50: #fffdf8;
  --cream-100: #fbf8ed;
  --cream-200: #f3eedf;
  --cream-300: #e0d6b9;
  --cream-400: #cdbf96;
  --gold: #dda300;
  --gold-light: #f0c241;
  --red: #d4202f;
  --ink: #173225;
  --muted: #56655c;
  --shadow: 0 2px 8px rgb(39 50 36 / 12%);
  --shadow-raised: 0 10px 26px rgb(20 38 27 / 18%);
  --radius: 10px;
  --font-display: "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
  color-scheme: light;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, rgb(255 255 255 / 95%), transparent 48%),
    linear-gradient(135deg, #e9e9e7, #f8f8f6 48%, #dededc);
  font-size: 16px;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--green-950);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 36px auto;
  overflow: hidden;
  border: 3px solid var(--green-950);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgb(255 255 255 / 78%), transparent 30%),
    var(--cream-100);
  box-shadow: var(--shadow-raised);
}

.site-header {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 174px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 75% -30%, rgb(40 146 80 / 42%), transparent 47%),
    repeating-linear-gradient(105deg, transparent 0 54px, rgb(255 255 255 / 1.8%) 55px 56px),
    linear-gradient(135deg, var(--green-950), #006735 58%, #004323);
}

.card-stage {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  width: 312px;
  height: 353px;
  pointer-events: none;
}

.card-pocket {
  position: absolute;
  left: 0;
  width: 312px;
  height: 174px;
  overflow: hidden;
}

.card-pocket--dulle {
  z-index: 1;
  top: 0;
}

.card-pocket--queen {
  z-index: 2;
  top: 87px;
}

.card-pocket--king {
  z-index: 3;
  top: 174px;
  height: 179px;
}

.hero-card {
  position: absolute;
  top: 0;
  left: 4px;
  display: block;
  max-width: none;
  width: auto;
  height: auto;
  border: 0;
  opacity: 0;
  animation: card-rise 1.35s cubic-bezier(0.2, 0.78, 0.25, 1) both;
  animation-play-state: paused;
  will-change: transform, opacity;
}

body.cards-ready .hero-card {
  animation-play-state: running;
}

.card-stage--static .hero-card {
  opacity: 1;
  transform: none;
  animation: none;
}

.card-pocket--dulle .hero-card {
  animation-delay: 140ms;
}

.card-pocket--queen .hero-card {
  animation-delay: 390ms;
}

.card-pocket--king .hero-card {
  animation-delay: 640ms;
}

@keyframes card-rise {
  0% {
    opacity: 0;
    transform: translateY(210px);
  }

  14% {
    opacity: 1;
  }

  57% {
    transform: translateY(-12px);
  }

  72% {
    transform: translateY(-4px);
  }

  85% {
    transform: translateY(-1px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  position: relative;
  z-index: 4;
  margin-left: 25px;
  text-align: center;
  transform: translateY(8px);
}

.wordmark {
  display: block;
  width: clamp(300px, 43vw, 520px);
  height: auto;
  filter:
    drop-shadow(0 1px 0 #fff3af)
    drop-shadow(0 3px 0 #714000)
    drop-shadow(0 6px 5px rgb(0 0 0 / 42%));
}

.brand-promise {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin: 6px 0 0;
  color: #f9f5e8;
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.brand-promise i {
  color: var(--gold-light);
  font-style: normal;
}

.header-actions {
  position: absolute;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.9rem;
}

.online-now,
.login-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
}

.online-now:hover,
.login-link:hover {
  color: var(--gold-light);
}

.online-now strong {
  font-weight: 800;
}

.people-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 20px;
}

.people-icon i,
.people-icon::before,
.people-icon::after {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.people-icon i:first-child {
  top: 1px;
  left: 5px;
  width: 8px;
  height: 8px;
}

.people-icon i:nth-child(2) {
  top: 3px;
  right: 2px;
  width: 7px;
  height: 7px;
}

.people-icon::before {
  bottom: 1px;
  left: 1px;
  width: 15px;
  height: 8px;
  border-radius: 9px 9px 3px 3px;
}

.people-icon::after {
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 7px;
  border-radius: 8px 8px 3px 3px;
}

.mobile-online,
.menu-toggle {
  display: none;
}

.primary-nav {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 312px repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  height: 60px;
  border-top: 1px solid rgb(255 255 255 / 50%);
  border-bottom: 1px solid var(--cream-400);
  background: rgb(255 253 246 / 97%);
  box-shadow: 0 3px 7px rgb(37 49 37 / 12%);
}

.primary-nav::before {
  align-self: stretch;
  border-right: 1px solid var(--cream-300);
  background: rgb(255 253 246 / 97%);
  content: "";
}

.primary-nav a {
  position: relative;
  display: grid;
  align-self: stretch;
  height: 100%;
  min-width: 0;
  place-items: center;
  border-right: 1px solid var(--cream-300);
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: color 150ms ease, background 150ms ease;
}

.primary-nav a:last-child {
  border-right: 0;
}

.primary-nav .mobile-login {
  display: none;
}

.primary-nav a:hover {
  color: var(--green-700);
  background: #fff;
}

.primary-nav a.active::after {
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 4px;
  background: var(--gold);
  content: "";
}

.homepage-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 1.07fr) minmax(330px, 1fr) minmax(250px, 0.82fr);
  gap: 18px;
  padding: 28px 16px 22px;
}

.left-column,
.center-column,
.right-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.card {
  border: 1px solid var(--cream-400);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 0, rgb(255 255 255 / 95%), transparent 55%),
    linear-gradient(145deg, #fffef9, var(--cream-100));
  box-shadow: var(--shadow);
}

.online-card {
  display: flex;
  min-height: 91px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 8px 10px 250px;
}

.people-icon--large {
  width: 24px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--green-800);
  transform: scale(1.25);
}

.online-card p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
}

.online-card strong {
  color: var(--green-800);
  font-family: Georgia, serif;
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 1;
}

.online-card span {
  font-size: 0.95rem;
}

.data-card {
  padding: 17px 14px 13px;
}

.data-card h2,
.yesterday-card h2 {
  margin: 0 0 11px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: center;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--cream-400);
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  height: 29px;
  padding: 4px 8px;
  border-bottom: 1px solid #d7d1be;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #eef1e6;
  color: var(--green-950);
  font-size: 0.75rem;
  font-weight: 700;
}

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

tbody tr:nth-child(even) {
  background: rgb(232 239 226 / 40%);
}

th:first-child,
td:first-child {
  width: 34px;
  text-align: center;
}

th:nth-last-child(-n + 2),
td:nth-last-child(-n + 2) {
  text-align: center;
}

td a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.text-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 3px;
  margin: 8px auto 0;
  border-bottom: 1px solid currentColor;
  color: var(--green-800);
  font-size: 0.88rem;
  line-height: 1.15;
  text-decoration: none;
}

.text-link span {
  font-size: 1.2rem;
  line-height: 1;
}

.league-card {
  padding-top: 10px;
}

.league-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 7px;
}

.league-crown {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
  text-shadow: 0 1px 0 #fff1a5;
}

.league-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2px;
  border: 1px solid var(--cream-400);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}

.league-tabs button {
  min-width: 0;
  min-height: 34px;
  padding: 4px 3px;
  border: 0;
  border-right: 1px solid var(--cream-400);
  color: var(--green-950);
  background: #f9f8ef;
  font-family: var(--font-display);
  font-size: 0.75rem;
  cursor: pointer;
}

.league-tabs button:last-child {
  border-right: 0;
}

.league-tabs button:hover {
  background: var(--green-100);
}

.league-tabs button.active {
  color: #fff;
  background: var(--green-800);
  font-weight: 700;
}

.ranking-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.history-card {
  padding-top: 13px;
}

.league-card table,
.history-card table {
  table-layout: fixed;
}

.league-card th:first-child,
.league-card td:first-child,
.history-card th:first-child,
.history-card td:first-child {
  width: 12%;
}

.league-card th:nth-child(2),
.league-card td:nth-child(2),
.history-card th:nth-child(2),
.history-card td:nth-child(2) {
  width: 58%;
}

.league-card th:nth-child(3),
.league-card td:nth-child(3),
.history-card th:nth-child(3),
.history-card td:nth-child(3) {
  width: 30%;
}

.desktop-play {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
}

.wood-button {
  position: relative;
  display: grid;
  width: 222px;
  min-height: 70px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #2a1107;
  border-radius: 13px;
  color: #f4d29a;
  background:
    radial-gradient(ellipse at 18% 25%, transparent 0 4px, rgb(24 8 2 / 45%) 5px 7px, transparent 8px 15px),
    radial-gradient(ellipse at 74% 70%, transparent 0 6px, rgb(25 8 2 / 38%) 7px 9px, transparent 10px 19px),
    repeating-linear-gradient(3deg, rgb(255 222 170 / 7%) 0 1px, transparent 2px 8px),
    linear-gradient(90deg, #321509 0%, #6b3717 16%, #3b1a0b 34%, #7b441d 54%, #43200e 75%, #6a3516 100%);
  box-shadow:
    inset 0 0 0 2px rgb(196 125 62 / 55%),
    inset 0 7px 10px rgb(255 214 151 / 12%),
    inset 0 -12px 18px rgb(12 4 1 / 45%),
    0 8px 12px rgb(23 12 5 / 38%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-style: italic;
  text-shadow: 0 2px 2px #130702, 0 -1px rgb(255 235 191 / 35%);
  transition: transform 130ms ease, filter 130ms ease;
}

.wood-button::before,
.wood-button::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #160802;
  box-shadow: 0 0 0 1px #9a5f2f, inset 0 1px rgb(255 255 255 / 24%);
  content: "";
}

.wood-button::before {
  left: 10px;
}

.wood-button::after {
  right: 10px;
}

.wood-button:hover {
  filter: brightness(1.14);
  transform: translateY(-2px);
}

.wood-button:active {
  transform: translateY(1px);
}

.mobile-play {
  display: none;
}

.welcome-card {
  padding: 26px 15px 20px;
}

.welcome-card h1 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-align: center;
}

.suit-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 15px;
  font-family: Georgia, serif;
  font-size: 1.38rem;
  line-height: 1;
}

.suit-divider i {
  width: 82px;
  height: 2px;
  background: var(--gold);
}

.diamonds,
.hearts {
  color: var(--red);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--cream-300);
  border-radius: 7px;
  background: linear-gradient(120deg, #f7f5e7, #fffdf7);
}

.notice-star {
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1.2;
}

.notice p {
  margin: 0;
  font-size: 0.91rem;
}

.notice strong {
  color: var(--green-800);
}

.welcome-card > p {
  margin: 0;
  color: #304a3b;
  font-size: 0.94rem;
  line-height: 1.65;
}

.welcome-actions {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10px;
  margin-top: 17px;
}

.button {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px 12px;
  border: 2px solid var(--green-800);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  transition: box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background-color: var(--green-900);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}

.button--primary:hover {
  background: linear-gradient(135deg, #075b2e, #098244);
  box-shadow: 0 4px 9px rgb(0 72 36 / 22%);
}

.button--secondary {
  color: var(--green-900);
  background: #fffdf7;
}

.button--secondary:hover {
  background: var(--green-100);
}

.yesterday-card {
  padding: 12px 10px 10px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.award-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  border-right: 1px solid var(--cream-300);
  text-align: center;
}

.award-grid article:last-child {
  border-right: 0;
}

.award-icon {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.trophy-icon {
  position: relative;
  width: 40px;
  height: 31px;
  filter: drop-shadow(0 2px 1px rgb(105 59 0 / 24%));
}

.trophy-icon::before,
.trophy-icon::after {
  position: absolute;
  bottom: 3px;
  width: 8px;
  height: 14px;
  border-bottom: 2px solid #dca600;
  content: "";
}

.trophy-icon::before {
  left: 1px;
  border-left: 2px solid #dca600;
  border-radius: 0 0 0 11px;
  transform: rotate(-20deg);
}

.trophy-icon::after {
  right: 1px;
  border-right: 2px solid #dca600;
  border-radius: 0 0 11px;
  transform: rotate(20deg);
}

.trophy-cup {
  position: absolute;
  z-index: 2;
  top: 1px;
  left: 11px;
  width: 18px;
  height: 14px;
  border: 1px solid #bd7f00;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(90deg, #d99600, #ffd948 48%, #d99600);
}

.trophy-cup::before,
.trophy-cup::after {
  position: absolute;
  top: 1px;
  width: 7px;
  height: 9px;
  border: 3px solid #dfa800;
  content: "";
}

.trophy-cup::before {
  right: 100%;
  border-right: 0;
  border-radius: 7px 0 0 7px;
}

.trophy-cup::after {
  left: 100%;
  border-left: 0;
  border-radius: 0 7px 7px 0;
}

.trophy-base {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 18px;
  width: 4px;
  height: 10px;
  background: linear-gradient(90deg, #bf7d00, #ffd64a, #bd7900);
}

.trophy-base::before,
.trophy-base::after {
  position: absolute;
  left: 50%;
  border-radius: 2px;
  background: linear-gradient(90deg, #c38300, #ffd84f, #c38300);
  content: "";
  transform: translateX(-50%);
}

.trophy-base::before {
  bottom: 1px;
  width: 12px;
  height: 3px;
}

.trophy-base::after {
  bottom: -3px;
  width: 19px;
  height: 4px;
}

.cards-icon {
  position: relative;
  width: 40px;
  height: 31px;
  color: var(--green-800);
}

.mini-card {
  position: absolute;
  top: 4px;
  left: 12px;
  display: grid;
  width: 16px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--green-800);
  border-radius: 3px;
  background: #fffdf7;
  box-shadow: 0 1px 1px rgb(0 64 31 / 16%);
  font-size: 0;
  transform-origin: 50% 100%;
}

.mini-card::after {
  color: var(--green-800);
  content: attr(data-suit);
  font-family: Georgia, serif;
  font-size: 0.62rem;
  line-height: 1;
}

.mini-card--left {
  z-index: 1;
  transform: translateX(-7px) rotate(-17deg);
}

.mini-card--center {
  z-index: 3;
  top: 2px;
}

.mini-card--right {
  z-index: 2;
  transform: translateX(7px) rotate(17deg);
}

.award-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.award-grid strong {
  overflow: hidden;
  width: 100%;
  margin-top: 3px;
  color: var(--green-950);
  font-size: 0.86rem;
  text-overflow: ellipsis;
}

.award-grid p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.25;
}

.award-grid b {
  color: var(--green-800);
  font-size: 1rem;
}

.award-grid p span {
  font-size: 0.68rem;
}

.right-column {
  padding-top: 0;
}

.compact-card {
  padding: 0;
}

.compact-card summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 13px 8px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: default;
}

.compact-card summary::-webkit-details-marker {
  display: none;
}

.compact-card summary > span:last-child {
  display: none;
}

.details-content {
  padding: 0 10px 12px;
}

.rally-card,
.busy-card {
  margin-top: 18px;
}

.busy-card summary {
  padding-inline: 9px;
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: center;
}

.site-footer {
  min-height: 72px;
  padding: 17px 22px 13px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0, rgb(26 132 67 / 32%), transparent 38%),
    var(--green-900);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px 42px;
}

.site-footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.site-footer p {
  margin: 9px 0 0;
  color: rgb(255 255 255 / 65%);
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 1040px) {
  .site-shell {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .card-stage {
    width: 224px;
    height: 353px;
    transform: none;
  }

  .card-pocket {
    width: 224px;
  }

  .hero-card {
    top: 56px;
    left: 1px;
    width: auto;
  }

  .primary-nav {
    grid-template-columns: 224px repeat(6, minmax(0, 1fr));
  }

  .primary-nav a {
    font-size: 0.91rem;
    letter-spacing: -0.035em;
  }

  .header-actions {
    top: 14px;
    right: 16px;
    bottom: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    font-size: 0.78rem;
  }

  .header-actions .login-link {
    display: inline-flex;
    min-height: 20px;
  }

  .online-card {
    gap: 5px;
    padding-left: 190px;
  }

  .people-icon--large {
    transform: scale(1.1);
  }

  .online-card strong {
    font-size: 2.15rem;
  }

  .online-card span {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .homepage-grid {
    grid-template-columns: minmax(265px, 0.9fr) minmax(360px, 1.25fr);
  }

  .center-column {
    grid-column: 2;
    grid-row: 1;
  }

  .left-column {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

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

  .rally-card,
  .busy-card {
    margin-top: 0;
  }

  .busy-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .right-column {
    grid-template-columns: 1fr;
  }

  .busy-card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--cream-100);
    font-size: 17px;
  }

  .site-shell {
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding-top: 70px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    min-height: 70px;
    grid-template-columns: 55px 1fr 84px;
    padding: 7px 9px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
  }

  .card-stage,
  .brand-promise,
  .header-actions {
    display: none;
  }

  .brand {
    margin: 0;
    transform: none;
  }

  .wordmark {
    width: min(220px, 64vw);
  }

  .menu-toggle {
    display: flex;
    width: 46px;
    min-height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle:hover {
    background: rgb(255 255 255 / 10%);
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-online {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.7rem;
  }

  .mobile-online .people-icon {
    transform: scale(0.72);
    transform-origin: right center;
  }

  .mobile-online strong {
    font-size: 0.78rem;
  }

  .primary-nav {
    position: fixed;
    z-index: 19;
    top: 70px;
    left: 0;
    display: flex;
    width: min(330px, 86vw);
    height: calc(100svh - 70px);
    flex-direction: column;
    padding: 11px;
    border: 0;
    background: #fffdf8;
    box-shadow: 8px 12px 22px rgb(0 0 0 / 25%);
    transform: translateX(-110%);
    transition: transform 180ms ease;
  }

  .primary-nav::before {
    display: none;
  }

  .primary-nav.open {
    transform: translateX(0);
  }

  .primary-nav a {
    display: flex;
    height: auto;
    min-height: 53px;
    flex: none;
    justify-content: flex-start;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid var(--cream-300);
    border-radius: 5px;
  }

  .primary-nav a.active {
    color: #fff;
    background: var(--green-800);
  }

  .primary-nav a.active::after {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 5px;
    height: auto;
  }

  .primary-nav .mobile-login {
    display: flex;
    margin-top: 8px;
    border: 1px solid var(--cream-300);
    color: var(--green-800);
  }

  body.menu-open::after {
    position: fixed;
    z-index: 18;
    inset: 70px 0 0;
    background: rgb(0 25 12 / 42%);
    content: "";
  }

  .mobile-play {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 80% 0, rgb(42 142 79 / 36%), transparent 46%),
      linear-gradient(135deg, var(--green-950), var(--green-800));
  }

  .wood-button--small {
    width: 170px;
    min-height: 58px;
    font-size: 1.75rem;
  }

  .homepage-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .left-column,
  .center-column,
  .right-column {
    display: contents;
  }

  .desktop-play,
  .online-card {
    display: none;
  }

  .welcome-card {
    order: 1;
    padding: 16px 10px 12px;
  }

  .welcome-card h1 {
    font-size: 1.45rem;
  }

  .suit-divider {
    margin: 11px auto;
  }

  .suit-divider i {
    width: 45px;
  }

  .notice {
    padding: 9px;
  }

  .notice p,
  .welcome-card > p {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .welcome-actions {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .button {
    min-height: 49px;
  }

  .data-card {
    padding: 10px 9px;
  }

  .day-card {
    order: 2;
  }

  .league-card {
    order: 3;
  }

  .history-card {
    order: 4;
  }

  .yesterday-card {
    order: 5;
  }

  #aktive-tische {
    order: 6;
  }

  .rally-card {
    order: 7;
  }

  .busy-card {
    order: 8;
  }

  .data-card h2,
  .yesterday-card h2 {
    font-size: 1.15rem;
  }

  table {
    font-size: 0.77rem;
  }

  th,
  td {
    height: 27px;
    padding: 3px 6px;
  }

  .league-tabs button {
    min-height: 36px;
    font-size: 0.68rem;
  }

  .text-link {
    min-height: 36px;
    font-size: 0.76rem;
  }

  .compact-card {
    padding: 0;
  }

  .compact-card summary {
    min-height: 48px;
    justify-content: space-between;
    padding: 8px 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    cursor: pointer;
  }

  .compact-card summary > span:last-child {
    display: inline-block;
    font-size: 1.35rem;
    transition: transform 150ms ease;
  }

  .compact-card[open] summary > span:last-child {
    transform: rotate(180deg);
  }

  .details-content {
    padding: 0 8px 10px;
  }

  .site-footer {
    margin-top: 2px;
  }
}

@media (max-width: 400px) {
  .site-header {
    grid-template-columns: 50px 1fr 75px;
  }

  .wordmark {
    width: min(195px, 61vw);
  }

  .mobile-online {
    font-size: 0.63rem;
  }

  .mobile-online .people-icon {
    display: none;
  }

  .welcome-actions {
    gap: 8px;
  }

  .award-grid small {
    min-height: 33px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Dynamische PHP-Inhalte */

.announcements {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.announcements .notice {
  margin: 0;
}

.empty-row td {
  height: 42px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

.award-grid strong a:hover {
  color: var(--green-700);
  text-decoration: underline;
}
