:root {
  --blue-900: #0b1f4d;
  --blue-700: #1747ad;
  --blue-600: #1f5fe0;
  --blue-500: #2f72f0;
  --blue-300: #8ab1ff;
  --ink: #0e1830;
  --line: #c5d5ff;
  --paper: #ffffff;
  --bg: #eff4ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at 8% 14%, rgba(74, 130, 255, 0.24) 0 16%, transparent 48%),
    radial-gradient(circle at 92% 22%, rgba(30, 95, 224, 0.22) 0 17%, transparent 46%),
    linear-gradient(135deg, #f7faff 0%, #e8f0ff 42%, #dde9ff 100%);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.35s ease;
  min-height: 100vh;
  line-break: strict;
}

p,
li {
  text-wrap: pretty;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: -28vh -18vw auto auto;
  width: 78vw;
  height: 62vh;
  background:
    linear-gradient(132deg, rgba(18, 57, 140, 0.04) 0 39%, rgba(18, 57, 140, 0.2) 39% 43%, transparent 43% 100%),
    linear-gradient(158deg, transparent 0 62%, rgba(47, 114, 240, 0.15) 62% 68%, transparent 68% 100%);
  transform: skewX(-22deg);
}

body::after {
  left: -12vw;
  bottom: 8vh;
  width: 62vw;
  height: 36vh;
  background:
    repeating-linear-gradient(0deg, rgba(16, 54, 138, 0.06) 0 2px, transparent 2px 12px),
    linear-gradient(90deg, rgba(138, 177, 255, 0.16), rgba(47, 114, 240, 0.02));
  transform: skewX(-24deg);
}

.site-header,
main,
.site-footer,
.bottom-nav {
  position: relative;
  z-index: 2;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 5%;
}

.site-header {
  padding: 14px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(11, 31, 77, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 255, 0.93) 100%);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-500));
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-600));
}

.header-logo-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding-right: 16px;
  border-right: 2px solid #d9e4ff;
}

.header-logo-image {
  height: 34px;
  width: auto;
  display: block;
}

.header-logo-name {
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0e2d72;
  text-shadow: 0 0 18px rgba(47, 114, 240, 0.16);
}

.header-logo-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #51648f;
}

.nav-group {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.nav-item {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd1fc;
  background:
    linear-gradient(165deg, #ffffff 0%, #edf4ff 100%);
  color: #1d3263;
  text-decoration: none;
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: 0.2s;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, #0a265f, #1a56ce 60%, #2f72f0);
  border-color: var(--blue-900);
  color: #fff;
}

.hero {
  margin: 28px 0 20px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: stretch;
}

.hero.no-media .hero-layout {
  grid-template-columns: 1fr;
}

.hero-label {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #1244ab;
  border-left: 3px solid var(--blue-500);
  border-bottom: 1px solid rgba(47, 114, 240, 0.4);
  padding: 2px 0 2px 8px;
}

.hero h1 {
  margin-top: 10px;
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: clamp(1.8rem, 5.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.hero p {
  margin-top: 10px;
  line-height: 1.95;
  color: #223a67;
  max-width: 74ch;
}

.hero-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-partners {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-partner-item {
  display: grid;
  gap: 5px;
  align-items: center;
  justify-content: center;
  justify-items: center;
}

.hero-partner-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #4c5f89;
}

.hero-partner-logo {
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  object-fit: contain;
  object-position: center;
}

.hero-partner-name {
  margin: 0;
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #1f3669;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.hero-partner-name:hover {
  color: #163f97;
}

.home-partners {
  margin: 2px 0 14px;
}

.hero-badge {
  text-decoration: none;
  border: 1px solid #bfd1fc;
  background: linear-gradient(135deg, #ffffff, #f2f7ff);
  color: #26427a;
  padding: 7px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badge:hover {
  background: linear-gradient(135deg, #edf4ff, #dce9ff);
  border-color: #8eb1ff;
}

.feature-image {
  margin: 10px 0 18px;
  border: 1px solid #9dbdff;
  background: linear-gradient(135deg, #f4f8ff, #e2edff);
  box-shadow: 0 16px 40px rgba(11, 37, 94, 0.14);
  overflow: hidden;
}

.feature-image img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
  object-position: center;
}

.home-info {
  margin: 12px 0 48px;
}

.home-info-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.home-info-head h2 {
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  letter-spacing: 0.03em;
  color: #0f2f74;
}

.home-info-lines {
  display: grid;
  gap: 18px;
}

.home-info-line {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(23, 71, 173, 0.2);
}

.home-info-line:last-child {
  border-bottom: 1px solid rgba(23, 71, 173, 0.2);
}

.home-info-line h3 {
  margin-bottom: 0;
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  color: #163f97;
  letter-spacing: 0.04em;
}

.home-info-line p {
  margin: 0;
  line-height: 1.9;
  color: #223a67;
}

.home-info-summary {
  margin-top: 14px;
  padding: 10px 0 0;
  font-weight: 700;
  color: #183870;
  border-top: 2px solid rgba(31, 95, 224, 0.3);
}

body[data-page="about"] .content-grid,
body[data-page="rules"] .content-grid,
body[data-page="admin"] .content-grid {
  margin-bottom: 48px;
}

body[data-page="about"] .panel,
body[data-page="rules"] .panel,
body[data-page="admin"] .panel {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-page="about"] .panel,
body[data-page="admin"] .panel {
  display: grid;
  gap: 16px;
}

body[data-page="about"] .panel h3,
body[data-page="admin"] .panel h3 {
  margin: 0;
  color: #163f97;
  border-top: 1px solid rgba(23, 71, 173, 0.2);
  padding-top: 10px;
}

body[data-page="about"] .panel p,
body[data-page="admin"] .panel p {
  margin-top: -6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 71, 173, 0.18);
}

body[data-page="about"] .panel p:last-child,
body[data-page="admin"] .panel p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body[data-page="rules"] .panel {
  display: grid;
  gap: 14px;
}

body[data-page="rules"] .panel h3 {
  margin: 0;
  color: #163f97;
  border-top: 1px solid rgba(23, 71, 173, 0.2);
  padding-top: 10px;
}

body[data-page="rules"] .panel ul {
  margin-top: -8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 71, 173, 0.18);
}

body[data-page="rules"] .panel ul:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body[data-page="rules"] .hero p {
  max-width: 100%;
}

.teams-page {
  margin-bottom: 56px;
  display: grid;
  gap: 22px;
}

.teams-head {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 2px solid rgba(31, 95, 224, 0.26);
}

.teams-head h2 {
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  color: #0f2f74;
}

.team-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-directory-group h3 {
  margin: 0 0 10px;
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 1.15rem;
  color: #163f97;
  border-bottom: 1px solid rgba(23, 71, 173, 0.2);
  padding-bottom: 8px;
}

.team-directory-group {
  display: grid;
  gap: 8px;
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.team-list li {
  color: #213a65;
  line-height: 1.7;
  border-bottom: 1px solid rgba(23, 71, 173, 0.12);
  padding: 6px 0;
}

.team-list li:last-child {
  border-bottom: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 60px;
}

.panel {
  border: 1px solid #a9c4ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(246, 251, 255, 0.9));
  box-shadow: 0 12px 36px rgba(16, 50, 130, 0.08);
  padding: 20px;
}

.section-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--blue-700);
}

.panel h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 1.16rem;
}

.panel p,
.panel li {
  line-height: 1.9;
  color: #233861;
}

.panel ul {
  padding-left: 18px;
}

.table-card {
  border: 1px solid #a8c2ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.92));
  box-shadow: 0 10px 30px rgba(14, 45, 114, 0.08);
  padding: 14px;
  margin-bottom: 16px;
}

.table-title {
  margin-bottom: 10px;
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 1.15rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-scroll table {
  min-width: 600px;
}

.groups-grid .table-scroll table {
  width: 100%;
  min-width: 420px;
  table-layout: fixed;
}

.playoff-bracket {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.bracket-col {
  display: grid;
  gap: 10px;
}

.bracket-col-semi {
  grid-template-rows: 1fr 1fr;
}

.bracket-col-final {
  align-content: center;
}

body[data-page="standings"] .hero p {
  max-width: none;
  white-space: nowrap;
  line-break: auto;
  text-wrap: nowrap;
}

body[data-page="home"] .hero p {
  max-width: none;
  white-space: normal;
  line-break: auto;
  text-wrap: pretty;
}

@media (max-width: 860px) {
  body[data-page="standings"] .hero p {
    white-space: normal;
    text-wrap: pretty;
  }

  body[data-page="home"] .hero p {
    white-space: normal;
    text-wrap: pretty;
  }
}

.groups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.groups-grid > .table-card {
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .groups-grid {
    grid-template-columns: 1fr;
  }
}

/* Group tabs */
.group-tabs {
  margin-bottom: 16px;
}

.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.tab-btn {
  font-family: "Archivo", "IBM Plex Mono", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 28px;
  background: transparent;
  border: 1px solid #a8c2ff;
  color: #6ea0ff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.tab-btn.active {
  background: #1a3a8f;
  border-color: #1a3a8f;
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Playoff cutoff line between rank 2 and 3 */
tr.playoff-cutoff td {
  border-top: 2px solid #e83535;
}

.match-box {
  border: 1px solid #a8c2ff;
  background: linear-gradient(165deg, #ffffff, #edf4ff);
  padding: 10px;
  min-height: 114px;
  display: grid;
  gap: 3px;
}

.match-box-featured {
  border-color: #6ea0ff;
  background: linear-gradient(165deg, #f8fbff, #dce9ff);
}

.match-round {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #1f4ead;
}

.match-up {
  font-weight: 700;
  color: #1e3158;
}

.match-score {
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  color: #0f3b93;
}

.match-winner {
  color: #2b477a;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

body[data-page="standings"] .round-robin-table {
  table-layout: fixed;
}

body[data-page="standings"] .round-robin-table thead th:first-child,
body[data-page="standings"] .round-robin-table tbody th {
  width: 22%;
  min-width: 140px;
}

body[data-page="standings"] .round-robin-table thead th:nth-child(n + 2),
body[data-page="standings"] .round-robin-table tbody td {
  width: calc(78% / 8);
}

body[data-page="standings"] .round-robin-table thead th,
body[data-page="standings"] .round-robin-table tbody th {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}

body[data-page="standings"] .round-robin-table thead th:nth-child(n + 2) {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
  hyphens: auto;
}

body[data-page="standings"] .round-robin-table tbody th {
  text-align: left;
  font-size: 13px;
}

body[data-page="standings"] .round-robin-table tbody td {
  white-space: nowrap;
}

th,
td {
  border: 1px solid #cedbff;
  padding: 9px;
  text-align: center;
  font-size: 14px;
}

th {
  background: #e5efff;
}

td.dead-cell {
  background: #dbe6ff;
  color: #5b6f99;
}

body[data-page="standings"] .round-robin-table td.match-cell-win {
  background: #e8f6ec;
  color: #1a6a33;
  font-weight: 700;
}

body[data-page="standings"] .round-robin-table td.match-cell-loss {
  background: #fdebec;
  color: #9b1e2c;
  font-weight: 700;
}

body[data-page="standings"] .round-robin-table td.match-cell-draw {
  background: #eef2f9;
  color: #324e82;
  font-weight: 700;
}

body[data-page="standings"] .round-robin-table td.match-cell-pending {
  color: #4f6797;
}

.text-left {
  text-align: left;
}

body[data-page="standings"] .standings-rank-table {
  table-layout: fixed;
}

body[data-page="standings"] .standings-rank-table th.text-left,
body[data-page="standings"] .standings-rank-table td.text-left {
  width: 28%;
}

body[data-page="standings"] .standings-rank-table td.text-left {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-row {
  border: 1px solid #cedbff;
  background: linear-gradient(135deg, #f9fbff, #f2f7ff);
  padding: 10px;
  margin-bottom: 10px;
}

.admin-row h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.admin-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid #b7cbfb;
  padding: 7px 8px;
  font-size: 13px;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 68px;
  line-height: 1.5;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  border: 1px solid #b7cbfb;
  padding: 8px 10px;
  font-size: 13px;
  background: linear-gradient(135deg, #edf3ff, #e2ecff);
  color: #1c3160;
}

.btn-primary {
  background: var(--blue-700);
  border-color: var(--blue-900);
  color: #fff;
}

.status {
  margin-top: 8px;
  min-height: 16px;
  font-size: 12px;
  color: #3f5789;
}

.home-admin-gate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(212, 221, 235, 0.85);
  padding: 6px;
  background: rgba(248, 250, 255, 0.96);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.home-admin-gate:hover,
.home-admin-gate:focus-within {
  opacity: 0.95;
}

.home-admin-gate label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #7c879c;
}

.home-admin-gate input {
  width: 106px;
  padding: 5px 7px;
  font-size: 11px;
  border-color: #d4ddeb;
  background: #fff;
}

.home-admin-gate .btn {
  padding: 6px 9px;
  font-size: 10px;
  border-color: #d4ddeb;
  background: #f2f5fb;
  color: #6e7c97;
}

.home-admin-note {
  min-height: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-admin-disclosure {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-left: auto;
  align-self: flex-end;
  order: 3;
}

.footer-admin-disclosure > summary {
  list-style: none;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  padding-bottom: 2px;
}

.footer-admin-disclosure > summary::-webkit-details-marker {
  display: none;
}

.footer-admin-disclosure[open] > summary {
  color: #ffffff;
}

.site-footer {
  margin-top: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px),
    linear-gradient(125deg, #081638 0%, #0d2e71 38%, #1c57cf 76%, #2f72f0 100%);
  color: #fff;
  border-top: 2px solid #8ab1ff;
  padding: 38px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.footer-logo {
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.copy {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  order: 2;
}

.footer-link {
  display: inline-block;
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover {
  color: #ffffff;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(70px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0b1f4d, #0a1a42);
  display: none;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 1100;
  border-top: 2px solid #2f72f0;
  padding-top: 12px;
  padding-bottom: env(safe-area-inset-bottom);
}

.b-nav-item {
  text-decoration: none;
  color: #9ab6f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.b-nav-item i {
  font-size: 15px;
}

.b-nav-item span {
  font-size: 8px;
  font-weight: 900;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
}

.b-nav-item.active {
  color: #ffffff;
}

@media (max-width: 960px) {
  .header-logo-sub,
  .nav-group {
    display: none;
  }

  .hero-partners {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    display: flex;
  }

  .hero-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .table-scroll table {
    min-width: 680px;
  }

  body[data-page="standings"] .round-robin-table thead th,
  body[data-page="standings"] .round-robin-table tbody th {
    font-size: 12px;
  }

  body[data-page="standings"] .standings-rank-table td.text-left {
    font-size: 12px;
    line-height: 1.4;
  }

  .playoff-bracket {
    grid-template-columns: 1fr;
  }

  .home-info {
    margin-bottom: 36px;
  }

  .team-directory {
    grid-template-columns: 1fr;
  }

  .home-info-lines {
    gap: 12px;
  }

  .home-info-line {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }

  .home-info-summary {
    padding: 8px 0 0;
  }

  body[data-page="about"] .panel,
  body[data-page="rules"] .panel,
  body[data-page="admin"] .panel {
    gap: 12px;
  }

  .admin-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-admin-disclosure {
    order: 3;
    margin-left: 0;
    align-self: flex-end;
  }

  .site-footer {
    margin-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}
