/*
 * SimBasket League — Courtside World Skin
 *
 * This stylesheet is intentionally presentation-only. It sits after the legacy
 * application stylesheet so the simulation, forms, route contracts, and data
 * views can keep their proven markup while the world around them feels handmade.
 */

:root {
  --bg: #d7ab70;
  --surface: #f7ecd3;
  --surface-alt: #ead7b5;
  --text: #201b16;
  --muted: #675b4c;
  --border: #9f7950;
  --primary: #c74f27;
  --primary-dark: #87331f;
  --danger: #a62f28;
  --success-bg: #dce6cf;
  --success-text: #264f35;
  --error-bg: #f2d2c5;
  --error-text: #7e261f;
  --court-ink: #111a25;
  --court-night: #0a121b;
  --court-maple: #c98243;
  --court-honey: #e7b56d;
  --court-paper: #f3e8cf;
  --court-chalk: #fff9ed;
  --court-rim: #d95829;
  --court-amber: #f2b84b;
  --court-seat: #274a50;
  --court-metal: #778083;
  --court-blue: #1683c5;
  --court-shadow: rgba(15, 19, 24, .28);
  --page-accent: var(--court-rim);
  --scene-position: center 56%;
  --scene-image: url("images/world/courtside-clubhouse.webp");
  --display-font: "Arial Narrow", "Roboto Condensed", "Trebuchet MS", Arial, sans-serif;
  --body-font: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --score-font: "Cascadia Mono", Consolas, "Courier New", monospace;
}

html {
  background: var(--court-night);
  color-scheme: light;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: #c89458;
  background-image:
    linear-gradient(rgba(255, 249, 237, .08), rgba(17, 26, 37, .05)),
    repeating-linear-gradient(
      90deg,
      rgba(95, 54, 24, .11) 0,
      rgba(95, 54, 24, .11) 1px,
      transparent 1px,
      transparent 72px,
      rgba(255, 244, 218, .14) 72px,
      rgba(255, 244, 218, .14) 74px,
      transparent 74px,
      transparent 146px
    ),
    linear-gradient(100deg, #d5a465 0%, #c28b4f 46%, #dbad70 100%);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image:
    radial-gradient(circle at 18% 24%, #111 0 1px, transparent 1.4px),
    radial-gradient(circle at 82% 67%, #fff 0 1px, transparent 1.5px);
  background-size: 9px 11px, 13px 15px;
  content: "";
  mix-blend-mode: multiply;
}

::selection {
  background: var(--court-rim);
  color: var(--court-chalk);
}

a {
  color: #7f301f;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #4d241b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #ffd361;
  outline-offset: 3px;
}

.skip-link {
  z-index: 10000;
  min-height: 44px;
  border: 2px solid var(--court-amber);
  border-radius: 2px;
  background: var(--court-ink);
  color: var(--court-chalk);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .3);
}

/* Scorer's-table shell and hardwood navigation */
.topbar {
  position: relative;
  z-index: 50;
  min-height: 76px;
  gap: 16px;
  padding: 11px clamp(14px, 2.3vw, 30px);
  border: 0;
  border-bottom: 4px solid var(--court-amber);
  background:
    linear-gradient(90deg, rgba(217, 88, 41, .13), transparent 35%, rgba(22, 131, 197, .1)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .024) 0 1px, transparent 1px 7px),
    #0d151f;
  color: var(--court-chalk);
  box-shadow: 0 8px 24px rgba(3, 8, 13, .38), inset 0 -1px 0 rgba(255, 255, 255, .08);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 5px;
  background:
    repeating-linear-gradient(90deg, var(--court-rim) 0 24px, transparent 24px 30px, var(--court-blue) 30px 54px, transparent 54px 60px);
  content: "";
  opacity: .72;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 12px 4px 3px;
  color: var(--court-chalk);
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 39px;
  height: 39px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid #ffbd63;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #f8a64d 0 8%, transparent 9%),
    linear-gradient(135deg, #f47b29, #b83b20);
  box-shadow: inset -6px -7px 8px rgba(58, 16, 10, .35), 0 0 0 3px rgba(255, 255, 255, .06);
  transform: rotate(-8deg);
}

.brand-mark-seam {
  position: absolute;
  display: block;
  border-color: #321912;
  opacity: .9;
}

.brand-mark-seam--vertical {
  top: -5px;
  bottom: -5px;
  left: 16px;
  width: 13px;
  border-right: 2px solid #321912;
  border-left: 2px solid #321912;
  border-radius: 50%;
}

.brand-mark-seam--horizontal {
  top: 16px;
  right: -6px;
  left: -6px;
  height: 12px;
  border-top: 2px solid #321912;
  border-bottom: 2px solid #321912;
  border-radius: 50%;
}

.brand-court-tick {
  width: 16px;
  height: 22px;
  border-top: 2px solid var(--court-amber);
  border-right: 2px solid var(--court-amber);
  border-bottom: 2px solid var(--court-amber);
  opacity: .65;
}

.nav {
  align-items: center;
  gap: 5px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 184, 75, .23);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .08)),
    #1a2732;
  color: #eee3cd;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.05;
  text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
}

.nav a::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 3px;
  width: 2px;
  background: var(--court-maple);
  content: "";
  opacity: .45;
}

.nav a:hover {
  border-color: var(--court-honey);
  background: #293b49;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  border-color: #ffd06a;
  background:
    linear-gradient(180deg, #e99b4a, #b95729);
  color: #1a130f;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(76, 30, 13, .25), 0 0 0 1px rgba(255, 223, 148, .18);
}

.nav a[aria-current="page"]::before {
  background: #fff3cd;
  opacity: .7;
}

.nav-count {
  min-width: 21px;
  min-height: 21px;
  border: 1px solid #ffde8b;
  background: #171d24;
  color: var(--court-amber);
  font-family: var(--score-font);
  box-shadow: 0 0 8px rgba(242, 184, 75, .35);
}

.nav a[aria-current="page"] .nav-count {
  background: #24170f;
  color: #ffe5a1;
}

.nav a.commissioner-link,
.nav a.world-nav-link,
.nav a.superleague-nav-link,
.nav a.admin-link,
.nav a.tester-nav-link,
.nav a.admin-mode-nav-link {
  border-color: rgba(255, 255, 255, .25);
  background: #263a43;
}

.nav a.world-nav-link { box-shadow: inset 0 -3px 0 #477e75; }
.nav a.superleague-nav-link { box-shadow: inset 0 -3px 0 #a54c6d; }
.nav a.commissioner-link { box-shadow: inset 0 -3px 0 #b58a45; }
.nav a.admin-link { box-shadow: inset 0 -3px 0 #b84a3e; }

.public-nav {
  justify-content: flex-end;
}

.nav a.public-signup-link {
  border-color: #f0b34d;
  background: linear-gradient(180deg, #dd7435, #a43b25);
  color: #fff8e7;
  box-shadow: inset 0 -3px 0 rgba(54, 18, 10, .3), 0 0 13px rgba(217, 88, 41, .18);
}

.nav a.public-signup-link:hover {
  border-color: #ffd477;
  background: linear-gradient(180deg, #ec8842, #b74728);
}

.logout {
  gap: 8px;
  color: #d7cbb5;
  font-size: 11px;
  line-height: 1.25;
}

.logout span {
  max-width: 160px;
}

.logout button {
  min-height: 38px;
  padding: 7px 10px;
  border-color: #826c4d;
  background: #1b252e;
  color: #f5e9d3;
  font-size: 11px;
}

/* Scene panorama shared by every route */
.scene-public { --scene-image: url("images/world/courtside-clubhouse.webp"); --page-accent: #dc6a30; }
.scene-front-office { --scene-image: url("images/world/front-office.webp"); --page-accent: #d39345; }
.scene-locker-training { --scene-image: url("images/world/locker-room.webp"); --page-accent: #5d91a3; }
.scene-competition-court { --scene-image: url("images/world/game-night.webp"); --page-accent: #e36834; }
.scene-world { --scene-image: url("images/world/international-tunnel.webp"); --page-accent: #4d8e87; }
.scene-press-stories { --scene-image: url("images/world/press-row.webp"); --page-accent: #d49c4f; }
.scene-league-office { --scene-image: url("images/world/front-office.webp"); --page-accent: #b58a45; }

.world-scene {
  position: relative;
  z-index: 1;
  height: clamp(150px, 17vw, 225px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 7px solid #6e3c20;
  background-color: #101822;
  background-image:
    linear-gradient(90deg, rgba(7, 13, 20, .88) 0%, rgba(7, 13, 20, .64) 38%, rgba(7, 13, 20, .14) 73%, rgba(7, 13, 20, .28) 100%),
    var(--scene-image);
  background-position: center, var(--scene-position);
  background-size: cover;
  color: #fff9ea;
  box-shadow: inset 0 -18px 30px rgba(8, 12, 16, .45), 0 8px 25px rgba(40, 20, 8, .24);
}

.world-scene::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 231, 179, .2);
  border-bottom: 1px solid rgba(255, 231, 179, .24);
  content: "";
}

.world-scene::after {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 4.8%;
  width: min(28vw, 320px);
  height: 7px;
  background: repeating-linear-gradient(90deg, #f4c66c 0 6px, transparent 6px 18px);
  content: "";
  filter: drop-shadow(0 0 7px #f5bd52);
  opacity: .85;
}

.world-scene-atmosphere,
.world-scene-set,
.world-scene-hardwood {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-scene-light {
  position: absolute;
  top: -42px;
  width: 120px;
  height: 170px;
  background: linear-gradient(180deg, rgba(255, 229, 174, .3), transparent 75%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(8px);
  opacity: .34;
}

.world-scene-light--left { left: 8%; transform: rotate(4deg); }
.world-scene-light--center { left: 52%; transform: rotate(-2deg); }
.world-scene-light--right { right: 8%; transform: rotate(-7deg); }

.world-scene-grain {
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: radial-gradient(rgba(255, 255, 255, .8) .6px, transparent .8px);
  background-size: 6px 7px;
  mix-blend-mode: soft-light;
}

.world-scene-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 55% 55%, transparent 25%, rgba(3, 7, 11, .5) 115%);
}

.world-scene-copy {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: max(18px, calc((100vw - 1220px) / 2));
  display: grid;
  width: min(48vw, 590px);
  gap: 2px;
  padding: 13px 20px 14px 17px;
  border-left: 5px solid var(--page-accent);
  background: linear-gradient(90deg, rgba(8, 14, 21, .82), rgba(8, 14, 21, .34) 76%, transparent);
  text-shadow: 0 2px 5px rgba(0, 0, 0, .78);
  transform: translateY(-50%);
}

.world-scene-kicker {
  color: var(--court-amber);
  font-family: var(--score-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.world-scene-label {
  font-family: var(--display-font);
  font-size: clamp(25px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
  text-transform: uppercase;
}

.world-scene-detail {
  margin-top: 5px;
  color: #d7ccba;
  font-size: 12px;
  letter-spacing: .04em;
}

.world-scene-copy::after {
  justify-self: start;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 223, 157, .45);
  background: rgba(14, 20, 27, .66);
  color: #f7d995;
  content: var(--page-stamp, "SBL WORLD");
  font-family: var(--score-font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.world-scene-hardwood {
  z-index: 4;
  top: auto;
  height: 27px;
  border-top: 2px solid rgba(255, 240, 207, .55);
  background:
    repeating-linear-gradient(90deg, rgba(68, 33, 14, .3) 0 1px, transparent 1px 74px),
    linear-gradient(180deg, rgba(212, 137, 67, .78), rgba(107, 54, 26, .94));
  opacity: .96;
}

.world-scene-plank {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(49, 25, 14, .45);
}

.world-scene-plank--one { left: 24%; }
.world-scene-plank--two { left: 50%; }
.world-scene-plank--three { left: 77%; }

.world-scene-court-line {
  position: absolute;
  border-color: rgba(255, 245, 218, .73);
}

.world-scene-court-line--sideline {
  top: 5px;
  right: 0;
  left: 0;
  border-top: 2px solid rgba(255, 245, 218, .58);
}

.world-scene-court-line--arc {
  right: 9%;
  bottom: -42px;
  width: 110px;
  height: 70px;
  border: 2px solid rgba(255, 245, 218, .72);
  border-radius: 50%;
}

.world-scene-court-line--key {
  right: 0;
  bottom: 3px;
  width: 75px;
  height: 18px;
  border: 2px solid rgba(255, 245, 218, .65);
}

/* Route-set props: restrained line art layered into each environmental painting. */
.world-scene-set {
  z-index: 5;
  left: auto;
  width: min(42vw, 610px);
  opacity: .34;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55));
}

.scene-prop,
.scene-prop-detail {
  position: absolute;
  display: block;
}

.scene-prop--chain-link {
  inset: 8% 3% 12% 38%;
  border: 2px solid rgba(216, 226, 224, .36);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(218, 228, 225, .28) 12px 14px, transparent 14px 27px),
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(218, 228, 225, .25) 12px 14px, transparent 14px 27px);
}

.scene-prop--backboard {
  top: 22%;
  right: 11%;
  width: 94px;
  height: 58px;
  border: 4px solid rgba(255, 246, 221, .85);
  box-shadow: inset 0 0 0 2px rgba(20, 27, 34, .65);
}

.scene-prop--backboard::before {
  position: absolute;
  right: 30%;
  bottom: 6px;
  left: 30%;
  height: 19px;
  border: 2px solid rgba(255, 246, 221, .85);
  content: "";
}

.scene-prop-detail--rim {
  bottom: -12px;
  left: 50%;
  width: 44px;
  height: 10px;
  border: 4px solid var(--court-rim);
  border-radius: 50%;
  transform: translateX(-50%);
}

.scene-prop-detail--net {
  bottom: -39px;
  left: 50%;
  width: 29px;
  height: 30px;
  border-right: 1px solid rgba(255, 255, 255, .65);
  border-bottom: 2px solid rgba(255, 255, 255, .65);
  border-left: 1px solid rgba(255, 255, 255, .65);
  clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
  transform: translateX(-50%);
}

.scene-prop--park-bench,
.scene-prop--towel-bench,
.scene-prop--press-table {
  right: 6%;
  bottom: 16%;
  width: 210px;
  height: 31px;
  border-top: 8px solid rgba(220, 157, 85, .82);
  border-bottom: 4px solid rgba(220, 157, 85, .55);
  box-shadow: inset 15px 0 transparent;
}

.scene-prop--park-bench::before,
.scene-prop--park-bench::after,
.scene-prop--towel-bench::before,
.scene-prop--towel-bench::after,
.scene-prop--press-table::before,
.scene-prop--press-table::after {
  position: absolute;
  top: 10px;
  width: 6px;
  height: 38px;
  background: rgba(63, 44, 32, .9);
  content: "";
}

.scene-prop--park-bench::before,
.scene-prop--towel-bench::before,
.scene-prop--press-table::before { left: 20px; }
.scene-prop--park-bench::after,
.scene-prop--towel-bench::after,
.scene-prop--press-table::after { right: 20px; }

.scene-prop--draft-board,
.scene-prop--lockers,
.scene-prop--scoreboard,
.scene-prop--league-seal {
  top: 13%;
  right: 7%;
  width: 190px;
  height: 92px;
  border: 4px solid rgba(207, 169, 108, .76);
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(242, 225, 192, .32) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(242, 225, 192, .28) 28px 30px),
    rgba(14, 22, 29, .72);
}

.scene-prop--clipboard {
  right: 29%;
  bottom: 15%;
  width: 83px;
  height: 105px;
  border: 3px solid rgba(245, 228, 191, .72);
  border-radius: 5px;
  background: repeating-linear-gradient(0deg, transparent 0 16px, rgba(245, 228, 191, .24) 16px 18px);
  transform: rotate(8deg);
}

.scene-prop--clipboard::before {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 34px;
  height: 14px;
  border: 2px solid rgba(245, 228, 191, .82);
  border-radius: 4px;
  background: #242b30;
  content: "";
  transform: translateX(-50%);
}

.scene-prop--draft-cards {
  right: 8%;
  bottom: 13%;
  display: flex;
  gap: 7px;
  transform: rotate(-5deg);
}

.scene-prop-detail--card {
  position: relative;
  width: 46px;
  height: 66px;
  border: 2px solid #3e2c1d;
  background:
    linear-gradient(150deg, transparent 0 68%, rgba(210, 91, 42, .7) 69%),
    #ead8b5;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .35);
}

.scene-prop--ball-rack,
.scene-prop--weight-rack {
  right: 4%;
  bottom: 13%;
  width: 220px;
  height: 54px;
  border-top: 5px solid rgba(128, 137, 139, .8);
  border-bottom: 5px solid rgba(128, 137, 139, .8);
  background:
    radial-gradient(circle at 12% 50%, #b44f28 0 20px, #321812 21px 23px, transparent 24px),
    radial-gradient(circle at 37% 50%, #ba562c 0 20px, #321812 21px 23px, transparent 24px),
    radial-gradient(circle at 62% 50%, #a94726 0 20px, #321812 21px 23px, transparent 24px),
    radial-gradient(circle at 87% 50%, #c16532 0 20px, #321812 21px 23px, transparent 24px);
}

.scene-prop--lockers {
  top: 5%;
  right: 1%;
  width: 310px;
  height: 142px;
  border-color: rgba(127, 138, 138, .65);
  background:
    repeating-linear-gradient(90deg, rgba(19, 28, 34, .68) 0 58px, rgba(133, 145, 144, .45) 58px 61px),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(125, 138, 138, .22) 20px 22px);
}

.scene-prop--sneakers {
  right: 36%;
  bottom: 14%;
  width: 95px;
  height: 34px;
  border: 3px solid rgba(238, 224, 196, .76);
  border-radius: 70% 32% 22% 30%;
  background: linear-gradient(170deg, rgba(34, 57, 72, .9) 0 57%, rgba(235, 219, 187, .8) 58% 72%, transparent 73%);
  box-shadow: 44px 8px 0 -2px rgba(27, 47, 61, .82);
  transform: rotate(-5deg);
}

.scene-prop--scoreboard {
  top: 12%;
  right: 13%;
  width: 210px;
  height: 88px;
  padding: 22px 20px;
  border-color: rgba(134, 145, 143, .72);
  background: rgba(5, 10, 14, .86);
  box-shadow: 0 0 18px rgba(242, 184, 75, .2);
}

.scene-prop-detail--score-slot {
  position: relative;
  display: inline-block;
  width: 65px;
  height: 33px;
  margin-right: 12px;
  border: 2px solid rgba(242, 184, 75, .52);
  background: repeating-linear-gradient(90deg, rgba(242, 184, 75, .38) 0 4px, transparent 4px 8px);
}

.scene-prop--arena-seats {
  inset: 44% 2% 12% 32%;
  background:
    radial-gradient(ellipse, rgba(43, 79, 84, .88) 0 44%, transparent 47%) 0 0 / 30px 24px;
  transform: skewY(-4deg);
}

.scene-prop--globe {
  top: 14%;
  right: 12%;
  width: 118px;
  height: 118px;
  border: 4px solid rgba(230, 206, 160, .78);
  border-radius: 50%;
}

.scene-prop-detail--longitude {
  inset: -4px 30px;
  border: 3px solid rgba(230, 206, 160, .62);
  border-radius: 50%;
}

.scene-prop-detail--latitude {
  top: 39px;
  right: -4px;
  left: -4px;
  height: 35px;
  border-top: 3px solid rgba(230, 206, 160, .62);
  border-bottom: 3px solid rgba(230, 206, 160, .62);
  border-radius: 50%;
}

.scene-prop--world-banners {
  top: 0;
  right: 3%;
  width: 310px;
  height: 74px;
  background:
    linear-gradient(90deg,
      #81382d 0 42px, transparent 42px 51px,
      #31525d 51px 93px, transparent 93px 102px,
      #b18b4c 102px 144px, transparent 144px 153px,
      #eee0ba 153px 195px, transparent 195px 204px,
      #3f6070 204px 246px, transparent 246px 255px,
      #97442e 255px 297px);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 96% 100%, 92% 78%, 84% 78%, 80% 100%, 76% 78%, 68% 78%, 64% 100%, 60% 78%, 52% 78%, 48% 100%, 44% 78%, 36% 78%, 32% 100%, 28% 78%, 20% 78%, 16% 100%, 12% 78%, 4% 78%, 0 100%);
}

.scene-prop--concourse-signs {
  right: 32%;
  bottom: 15%;
  width: 120px;
  height: 65px;
  border: 3px solid rgba(220, 195, 151, .58);
  box-shadow: 18px -18px 0 -5px rgba(22, 55, 65, .75);
}

.scene-prop--microphone {
  right: 20%;
  bottom: 25%;
  width: 18px;
  height: 74px;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(#9b9c94 0 25px, #2a3033 26px 100%);
  transform: rotate(-8deg);
}

.scene-prop--microphone::after {
  position: absolute;
  right: -24px;
  bottom: -7px;
  width: 65px;
  height: 7px;
  border-radius: 50%;
  background: #26282a;
  content: "";
}

.scene-prop--notebook {
  right: 4%;
  bottom: 14%;
  width: 110px;
  height: 74px;
  border: 2px solid #3a281c;
  background: repeating-linear-gradient(0deg, #e2cfa8 0 12px, #bda97f 12px 13px);
  transform: rotate(6deg);
}

.scene-prop--camera-flash {
  top: 21%;
  right: 5%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff5cf;
  box-shadow: 0 0 9px 4px #fff5cf, 0 0 28px 12px rgba(255, 223, 143, .6);
}

.scene-prop--league-seal {
  top: 12%;
  right: 9%;
  width: 118px;
  height: 118px;
  border: 6px double rgba(231, 188, 106, .72);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 34%, rgba(231, 188, 106, .4) 35% 38%, transparent 39%);
}

.scene-prop--trophy-case {
  right: 30%;
  bottom: 14%;
  width: 180px;
  height: 105px;
  border: 3px solid rgba(212, 174, 112, .62);
  background:
    radial-gradient(ellipse at 27% 47%, #c99848 0 12px, transparent 13px),
    radial-gradient(ellipse at 55% 35%, #d3a653 0 14px, transparent 15px),
    radial-gradient(ellipse at 81% 51%, #a97c36 0 11px, transparent 12px),
    rgba(12, 18, 24, .6);
}

.scene-prop--office-files {
  right: 3%;
  bottom: 12%;
  width: 125px;
  height: 72px;
  border: 3px solid #6e5b42;
  background: repeating-linear-gradient(90deg, #d6c094 0 17px, #4e3d2a 17px 20px);
  transform: skewY(-3deg);
}

/* Route-level art direction: unique crop, accent, and in-world destination stamp. */
.endpoint-index { --scene-position: center 62%; --page-stamp: "OPEN GYM / WORLD 01"; }
.endpoint-features { --scene-image: url("images/world/locker-room.webp"); --scene-position: center 54%; --page-stamp: "EQUIPMENT WALL / FEATURES"; --page-accent: #5d91a3; }
.endpoint-how-it-works { --scene-image: url("images/world/front-office.webp"); --scene-position: center 67%; --page-stamp: "PLAYBOOK / HOW IT WORKS"; --page-accent: #d39b4d; }
.endpoint-why-we-exist { --scene-image: url("images/world/press-row.webp"); --scene-position: center 55%; --page-stamp: "EMPTY STANDS / OUR STORY"; }
.endpoint-faq { --scene-position: 62% 56%; --page-stamp: "TICKET WINDOW / FAQ"; }
.endpoint-login { --scene-image: url("images/world/locker-room.webp"); --scene-position: 58% 62%; --page-stamp: "MEMBERS' ENTRANCE"; --page-accent: #5c93a4; }
.endpoint-signup { --scene-image: url("images/world/front-office.webp"); --scene-position: 62% 66%; --page-stamp: "OWNER REQUEST DESK"; --page-accent: #d49b4b; }

.endpoint-dashboard { --scene-position: center 56%; --page-stamp: "HOME COURT / CLUBHOUSE"; }
.endpoint-roster { --scene-position: 46% 64%; --page-stamp: "LOCKER ROW / ACTIVE ROSTER"; }
.endpoint-player-career,
.endpoint-player-season-stats,
.endpoint-player-world-tournament,
.endpoint-edit-player { --scene-position: 62% 58%; --page-stamp: "PLAYER FILE / CARD ROOM"; }
.endpoint-team-history,
.endpoint-team-stats { --scene-image: url("images/world/press-row.webp"); --scene-position: 55% 55%; --page-stamp: "TROPHY ARCHIVE / CLUB HISTORY"; --page-accent: #c89a50; }
.endpoint-advanced-stats { --scene-image: url("images/world/front-office.webp"); --scene-position: 43% 64%; --page-stamp: "SCORER'S TABLE / ANALYSIS"; --page-accent: #d39b4c; }
.endpoint-arena { --scene-image: url("images/world/game-night.webp"); --scene-position: 58% 62%; --page-stamp: "HOME BOWL / ARENA OPS"; --page-accent: #e56732; }
.endpoint-finances { --scene-position: 66% 69%; --page-stamp: "TICKET OFFICE / LEDGER"; }
.endpoint-coaching-tactics { --scene-position: 78% 52%; --page-stamp: "COACH'S BOARD / GAME PLAN"; }
.endpoint-offseason { --scene-image: url("images/world/locker-room.webp"); --scene-position: center 58%; --page-stamp: "AFTER THE BUZZER / OFFSEASON"; --page-accent: #6f9baa; }
.endpoint-training { --scene-position: 71% 67%; --page-stamp: "WEIGHT ROOM / DEVELOPMENT"; }
.endpoint-training-form { --scene-position: 80% 61%; --page-stamp: "PRACTICE FLOOR / TRAINING PLAN"; }
.endpoint-draft-history,
.endpoint-season-draft { --scene-position: 74% 70%; --page-stamp: "DRAFT ROOM / PROSPECT CARDS"; }
.endpoint-free-agency { --scene-position: 43% 71%; --page-stamp: "AGENT DESK / FREE AGENCY"; }
.endpoint-free-agency-move-detail { --scene-position: 67% 62%; --page-stamp: "TRANSACTION WIRE / MOVE FILE"; }
.endpoint-trade-center { --scene-position: 76% 70%; --page-stamp: "WAR ROOM / TRADE DESK"; }
.endpoint-trade-detail { --scene-position: 49% 65%; --page-stamp: "CONFERENCE TABLE / OFFER FILE"; }

.endpoint-season-home { --scene-position: 69% 61%; --page-stamp: "MAIN CONCOURSE / LEAGUE CLOCK"; }
.endpoint-season-detail { --scene-position: 51% 54%; --page-stamp: "CENTER HUNG BOARD / SEASON"; }
.endpoint-season-game-detail,
.endpoint-playoff-game-detail { --scene-position: 76% 68%; --page-stamp: "COURTSIDE / BOX SCORE"; }
.endpoint-standings { --scene-position: 45% 51%; --page-stamp: "HANGING BOARD / STANDINGS"; }
.endpoint-team-games { --scene-position: 82% 62%; --page-stamp: "TEAM BENCH / SCHEDULE"; }
.endpoint-season-leaders,
.endpoint-playoff-leaders { --scene-position: 56% 48%; --page-stamp: "RECORD BOARD / LEADERS"; }
.endpoint-season-mvp,
.endpoint-playoffs-mvp { --scene-image: url("images/world/press-row.webp"); --scene-position: 64% 57%; --page-stamp: "AWARDS TABLE / HONORS"; --page-accent: #d6a553; }
.endpoint-playoffs { --scene-position: 71% 42%; --page-stamp: "GAME LIGHTS / PLAYOFFS"; --page-accent: #f27838; }
.endpoint-past-seasons { --scene-image: url("images/world/press-row.webp"); --scene-position: 49% 57%; --page-stamp: "TROPHY WALL / PAST SEASONS"; --page-accent: #d0a155; }

.endpoint-stories { --scene-position: 73% 64%; --page-stamp: "NEWSSTAND / LEAGUE STORIES"; }
.endpoint-story-detail { --scene-position: 43% 67%; --page-stamp: "PRESS DESK / STORY FILE"; }
.endpoint-other-leagues { --scene-position: 63% 56%; --page-stamp: "TRAVEL WALL / DOMESTIC LEAGUES"; }
.endpoint-national-teams { --scene-position: 55% 44%; --page-stamp: "DEPARTURES / NATIONAL TEAMS"; }
.endpoint-national-team { --scene-position: 72% 54%; --page-stamp: "TEAM TUNNEL / NATIONAL ROSTER"; }
.endpoint-world-tournament { --scene-position: 65% 62%; --page-stamp: "WORLD COURT / TOURNAMENT"; }
.endpoint-world-tournament-power-rankings { --scene-position: 40% 53%; --page-stamp: "INTERNATIONAL BOARD / POWER RANKINGS"; }
.endpoint-world-tournament-game { --scene-image: url("images/world/game-night.webp"); --scene-position: 67% 66%; --page-stamp: "WORLD COURTSIDE / GAME FILE"; --page-accent: #4c9189; }
.endpoint-club-superleague { --scene-position: 78% 58%; --page-stamp: "NIGHT ARENA / CLUB SUPERLEAGUE"; --page-accent: #a75272; }
.endpoint-club-superleague-game { --scene-image: url("images/world/game-night.webp"); --scene-position: 82% 62%; --page-stamp: "SUPERLEAGUE COURTSIDE"; --page-accent: #a75272; }

.endpoint-commissioner-portal { --scene-position: 47% 68%; --page-stamp: "LEAGUE OFFICE / COMMISSIONER"; }
.endpoint-commissioner-players { --scene-position: 76% 68%; --page-stamp: "REGISTRY ROOM / PLAYER FILES"; }
.endpoint-admin-panel { --scene-position: 39% 65%; --page-stamp: "SCORER'S CONTROL / ADMIN"; --page-accent: #b94a3e; }

/* Printed program page and editorial typography */
.page {
  position: relative;
  z-index: 2;
  width: min(100%, 1240px);
  max-width: 1240px;
  min-height: 46vh;
  margin: 0 auto;
  padding: clamp(24px, 3.2vw, 42px) clamp(14px, 2.3vw, 28px) clamp(54px, 6vw, 82px);
  background:
    linear-gradient(90deg, rgba(255, 250, 235, .96), rgba(247, 236, 211, .97) 48%, rgba(244, 230, 201, .96)),
    var(--court-paper);
  box-shadow:
    0 18px 45px rgba(51, 27, 12, .24),
    inset 1px 0 rgba(255, 255, 255, .75),
    inset -1px 0 rgba(101, 67, 37, .16);
}

.page::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(49, 35, 24, .3) 3px 4px),
    radial-gradient(circle at 20% 30%, #4b3524 0 .7px, transparent .9px);
  background-size: auto, 8px 10px;
  content: "";
  mix-blend-mode: multiply;
}

h1,
h2,
h3,
h4,
.section-heading,
.command-center-record strong,
.score-banner strong {
  font-family: var(--display-font);
}

h1,
h2,
h3,
h4 {
  color: #1b2023;
}

h1 {
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}

h2 {
  letter-spacing: -.015em;
  line-height: 1.08;
}

.page-header,
.command-center-header {
  position: relative;
  margin: 0 0 22px;
  padding: 21px clamp(18px, 3vw, 30px) 22px;
  overflow: hidden;
  border: 1px solid #8b6d4c;
  border-left: 8px solid var(--page-accent);
  border-radius: 3px;
  background:
    linear-gradient(105deg, rgba(255, 251, 238, .98) 0%, rgba(239, 220, 184, .97) 72%, rgba(205, 164, 105, .92)),
    var(--court-paper);
  box-shadow: 5px 6px 0 rgba(92, 58, 29, .16), inset 0 1px #fff;
}

.page-header::before,
.command-center-header::before {
  position: absolute;
  right: -31px;
  bottom: -61px;
  width: 180px;
  height: 180px;
  border: 4px solid rgba(112, 76, 43, .15);
  border-radius: 50%;
  content: "";
}

.page-header::after,
.command-center-header::after {
  position: absolute;
  top: 11px;
  right: 14px;
  padding: 3px 7px;
  border: 1px solid rgba(82, 54, 31, .25);
  background: rgba(255, 248, 230, .55);
  color: #6f5235;
  content: var(--page-stamp, "SBL");
  font-family: var(--score-font);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-header > *,
.command-center-header > * {
  position: relative;
  z-index: 1;
}

.page-header p,
.card p,
.muted {
  color: var(--muted);
}

.page-header p {
  max-width: 780px;
  margin-top: 8px;
  font-size: 14px;
}

.section-heading {
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 3px double rgba(104, 72, 42, .42);
}

.section-heading h2 {
  font-size: clamp(20px, 2.5vw, 29px);
  font-weight: 900;
}

.eyebrow,
.landing-kicker {
  color: #8f3822;
  font-family: var(--score-font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 17px;
  height: 2px;
  margin-right: 7px;
  background: var(--page-accent);
  content: "";
  vertical-align: 3px;
}

/* Ticket, clipboard, and draft-card surfaces */
.action-card,
.card,
.table-panel,
.empty,
.arena-build-form,
.loan-repayment-form,
.story-filter-panel,
.advanced-stats-filter,
.trade-builder,
.trade-partner-card,
.public-capability-grid article,
.public-process li,
.public-season-grid article {
  border: 1px solid #9e7f58;
  border-radius: 3px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .38), transparent 34%),
    #f5e8ca;
  box-shadow:
    3px 4px 0 rgba(95, 62, 31, .12),
    inset 0 1px rgba(255, 255, 255, .75);
}

.card,
.action-card {
  position: relative;
  overflow: hidden;
}

.card::after,
.action-card::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--page-accent);
  content: "";
  opacity: .7;
}

.card {
  padding: 17px 18px 17px 20px;
}

.action-card {
  min-height: 126px;
  align-content: end;
  padding: 19px 19px 20px 22px;
  border-top-width: 4px;
  border-top-color: var(--page-accent);
  color: #271e16;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
}

.action-card::before {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 27px;
  height: 27px;
  border: 2px solid rgba(114, 79, 45, .25);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(114, 79, 45, .25) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(114, 79, 45, .25) 47% 53%, transparent 54%);
  content: "";
}

.action-card strong {
  color: #1b2023;
  font-family: var(--display-font);
  font-size: 18px;
  text-transform: uppercase;
}

.action-card span {
  color: #695c4c;
}

.action-card:hover {
  border-color: #6f5033;
  background: #fff1d3;
  color: #1f1812;
  text-decoration: none;
  transform: translateY(-3px) rotate(-.15deg);
  box-shadow: 6px 8px 0 rgba(80, 49, 24, .15);
}

.strong-card,
.starter-card,
.selected-card {
  border-width: 2px;
  border-color: #567c71;
  background: linear-gradient(120deg, #eef0d6, #f6e8c9);
}

.empty,
.empty-state,
.command-center-caught-up {
  position: relative;
  padding: 19px 19px 19px 52px;
  border-style: dashed;
  color: #675a4a;
}

.empty::before,
.empty-state::before,
.command-center-caught-up::before {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  border: 2px solid #a34a2c;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 46%, #a34a2c 47% 53%, transparent 54%);
  content: "";
  transform: translateY(-50%) rotate(18deg);
}

/* Forms feel like coaching sheets and ticket-counter controls. */
label {
  color: #31261c;
  font-size: 13px;
  letter-spacing: .01em;
}

input,
select,
textarea {
  min-height: 44px;
  border: 2px solid #a6855d;
  border-radius: 2px;
  background:
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .15)),
    #fbf2dd;
  color: #211c17;
  padding: 9px 11px;
  font-family: var(--body-font);
  box-shadow: inset 2px 2px 0 rgba(81, 55, 31, .06);
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #79583a;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--court-blue);
  background: #fffaf0;
}

input[type="checkbox"] {
  width: 21px;
  height: 21px;
  min-height: 0;
  accent-color: var(--court-rim);
}

button,
.button {
  min-height: 44px;
  border: 2px solid #7d2d1e;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), transparent 48%),
    #c6502b;
  color: #fff8e7;
  padding: 9px 15px;
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
  box-shadow: inset 0 -4px 0 rgba(72, 24, 14, .22), 2px 3px 0 rgba(62, 38, 20, .14);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

button:hover,
.button:hover {
  border-color: #572017;
  background: #a53d25;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

button.secondary,
.button.secondary {
  border-color: #887253;
  background: #f1dfbc;
  color: #30261d;
  box-shadow: inset 0 -4px 0 rgba(101, 71, 37, .12), 2px 3px 0 rgba(62, 38, 20, .1);
}

button.secondary:hover,
.button.secondary:hover {
  border-color: #62492f;
  background: #e6c995;
  color: #201811;
}

button.danger,
.button.danger,
.danger-button {
  border-color: #6e211f;
  background: #a53530;
  color: #fff;
}

button:disabled,
.button:disabled {
  border-color: #81776a;
  background: #9a9184;
  color: #ece5d8;
  filter: saturate(.25);
  transform: none;
}

/* Scoreboard data, draft tiles, and box-score sheets */
.score-banner,
.command-center-record,
.arena-scoreboard,
.trade-window,
.world-clock,
.club-clock,
.commissioner-clock {
  border: 3px solid #4f5960;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 5px),
    #101820;
  color: #fff7dd;
  box-shadow:
    inset 0 0 0 2px #080d12,
    inset 0 -7px 18px rgba(0, 0, 0, .28),
    4px 5px 0 rgba(38, 23, 13, .18);
}

.score-banner {
  border-left: 8px solid var(--page-accent);
  padding: 16px 19px;
}

.score-banner strong,
.command-center-record strong,
.arena-scoreboard b {
  color: #ffca5d;
  font-family: var(--score-font);
  text-shadow: 0 0 9px rgba(242, 184, 75, .42);
}

.score-banner small {
  color: #c9d0cb;
}

.rating,
.stat,
.chip,
.status-badge,
.control-badge,
.story-category-chip {
  border: 1px solid #9d7d54;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .52), transparent 55%),
    #e9d4ad;
  color: #2e241b;
  box-shadow: inset 0 -2px rgba(103, 72, 40, .08);
}

.rating,
.stat {
  min-height: 67px;
  align-content: center;
  padding: 10px 11px;
  border-top: 4px solid var(--page-accent);
}

.rating span,
.stat span,
.rating small,
.stat small {
  color: #6c5e4c;
  font-family: var(--score-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rating strong,
.stat strong {
  color: #1c2021;
  font-family: var(--score-font);
  font-size: 19px;
}

.chip {
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  font-family: var(--score-font);
  font-size: 11px;
}

.status-badge.ready {
  border-color: #52725d;
  background: #d7e4c9;
  color: #24462e;
}

.status-badge.waiting {
  border-color: #9a7345;
  background: #f0dfb7;
  color: #68431f;
}

.status-badge.blocked {
  border-color: #9d4d40;
  background: #eccbc0;
  color: #7b271f;
}

.table-panel {
  margin: 19px 0;
  overflow: hidden;
  border-top: 5px solid var(--page-accent);
}

.table-panel .section-heading {
  min-height: 55px;
  padding: 12px 15px;
  border-bottom: 2px solid #8a704f;
  background:
    linear-gradient(90deg, #17222c, #263541 75%, #19242c);
  color: #fff7e4;
}

.table-panel .section-heading h2,
.table-panel .section-heading h3 {
  color: #fff7e4;
}

.table-panel .section-heading p,
.table-panel .section-heading a {
  color: #d2c6ae;
}

.table-scroll {
  position: relative;
  overflow: auto;
  scrollbar-color: #9a6a3d #e8d5b2;
  scrollbar-width: thin;
}

.table-scroll::after {
  position: sticky;
  right: 0;
  display: block;
  float: right;
  width: 18px;
  height: 1px;
  content: "";
  box-shadow: 10px 0 18px 8px rgba(74, 45, 23, .24);
}

table {
  background: rgba(255, 250, 238, .54);
  color: #2d261f;
  font-variant-numeric: tabular-nums;
}

th,
td {
  border-color: rgba(116, 87, 55, .32);
  padding: 9px 10px;
}

th {
  background:
    linear-gradient(180deg, #263641, #17222b);
  color: #f2d898;
  font-family: var(--score-font);
  font-size: 10px;
  letter-spacing: .055em;
  text-shadow: 0 1px #000;
}

tbody tr:nth-child(even) td {
  background: rgba(215, 187, 143, .16);
}

tbody tr:hover td {
  background: rgba(241, 195, 106, .21);
}

.total-row td,
.current-team-row td,
.qualified-row td,
.power-ranking-leader td {
  background: #e7d5ad;
  color: #201b16;
  font-weight: 900;
}

.negative-money { color: #8a2c25; }
.positive-money { color: #2d6741; }

/* Referee notices and status tape */
.messages {
  position: relative;
  z-index: 10;
  gap: 9px;
}

.message,
.tester-mode-banner,
.admin-mode-banner,
.command-center-last-action {
  position: relative;
  overflow: hidden;
  border: 1px solid #9b7950;
  border-left: 7px solid #5c7180;
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px),
    #ead8b5;
  color: #3d3328;
  box-shadow: 2px 3px 0 rgba(69, 43, 23, .11);
}

.message.success {
  border-left-color: #4f765d;
  background-color: #dce7cd;
  color: #23472f;
}

.message.error,
.admin-mode-banner {
  border-left-color: #a43c32;
  background-color: #f0d1c4;
  color: #76261f;
}

.tester-mode-banner {
  border-left-color: #6a618a;
  background-color: #dfd5e8;
  color: #413653;
}

progress {
  overflow: hidden;
  border: 1px solid #826746;
  border-radius: 0;
  background: #dfc99f;
  accent-color: var(--page-accent);
}

progress::-webkit-progress-bar { background: #dfc99f; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #af4226, var(--page-accent)); }
progress::-moz-progress-bar { background: linear-gradient(90deg, #af4226, var(--page-accent)); }

details > summary {
  min-height: 44px;
}

/* Franchise command center: tunnel board rather than product dashboard. */
.command-center-header {
  align-items: center;
  min-height: 142px;
}

.command-center-header h1 {
  font-size: clamp(34px, 4.5vw, 56px);
}

.command-center-record {
  min-width: 180px;
  padding: 14px 18px;
  text-align: center;
}

.command-center-record strong {
  font-size: clamp(27px, 4vw, 42px);
}

.command-center-record span,
.command-center-record small {
  color: #d7cebb;
  font-family: var(--score-font);
  text-transform: uppercase;
}

.command-center-layout {
  gap: 22px;
}

.command-center-phase {
  border-top: 6px solid var(--page-accent);
  background:
    linear-gradient(125deg, rgba(255, 249, 231, .98), rgba(225, 196, 145, .9)),
    var(--court-paper);
}

.command-center-phase::before {
  position: absolute;
  right: -75px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 5px solid rgba(129, 82, 42, .11);
  border-radius: 50%;
  content: "";
}

.command-center-timeline {
  border-top: 6px solid #426f78;
}

.command-center-timeline-segment {
  border-color: #a4875d;
  border-radius: 2px;
  background: rgba(249, 237, 211, .72);
}

.command-center-timeline-segment-active {
  border-color: var(--court-rim);
  background: #f2dfb9;
  box-shadow: inset 5px 0 var(--court-rim);
}

.command-center-timeline-marker,
.command-center-heading-count {
  border-radius: 2px;
  background: var(--court-ink);
  color: var(--court-amber);
  font-family: var(--score-font);
}

.command-center-game-card,
.command-center-market,
.command-center-story,
.command-center-snapshot {
  border-top: 4px solid var(--page-accent);
}

.command-center-scoreline {
  padding: 12px;
  border: 2px solid #505b62;
  background: #111a22;
  color: #f9edcf;
  font-family: var(--score-font);
}

.command-center-scoreline strong {
  color: #f4bd50;
  font-size: 24px;
}

.command-center-attention-card {
  border-left-width: 7px;
}

.command-center-sidebar .card {
  box-shadow: 4px 5px 0 rgba(87, 55, 27, .13);
}

/* Arena visualization stays dynamic; it is now presented as an inked cutaway. */
.arena-overview {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid #8f704d;
  background:
    linear-gradient(rgba(11, 19, 26, .78), rgba(11, 19, 26, .88)),
    url("images/world/game-night.webp") center 62% / cover;
  box-shadow: 5px 7px 0 rgba(70, 39, 19, .2);
}

.arena-visual {
  border-color: #4a555c;
  border-radius: 46% 46% 5px 5px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 9px),
    #182630;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, .65),
    0 12px 24px rgba(0, 0, 0, .4),
    0 0 0 2px rgba(236, 187, 102, .28);
  filter: saturate(.86) contrast(1.06);
}

.arena-visual::after {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image: repeating-linear-gradient(145deg, transparent 0 6px, rgba(255, 255, 255, .08) 6px 7px);
  content: "";
}

.arena-bowl {
  background: #58656b;
  border-color: #28343b;
}

.standing-stands { border-color: #516a70; }
.basic-stands { border-color: #344d58; }
.premium-stands { border-color: #b58b46; }
.luxury-stands { border-color: #171e25; }

.arena-court {
  border-color: #fff1cf;
  background:
    repeating-linear-gradient(90deg, rgba(77, 41, 17, .16) 0 1px, transparent 1px 12px),
    #c68142;
  box-shadow: 0 0 18px rgba(242, 184, 75, .32);
}

.arena-summary .stat {
  border-color: rgba(236, 205, 146, .48);
  background: rgba(18, 28, 35, .82);
}

.arena-summary .stat span { color: #cfc4ae; }
.arena-summary .stat strong { color: #f4c05c; }

.arena-build-form {
  border-top: 5px solid var(--court-rim);
}

.popularity-step {
  border-color: #9f8057;
  border-radius: 2px;
  background: #e6d2aa;
  color: #665847;
}

.popularity-step.active {
  border-color: #7a2e1f;
  background: var(--court-rim);
  color: #fff9e9;
}

.arena-popularity > strong,
.arena-balance strong {
  color: #8f3d24;
  font-family: var(--score-font);
}

/* Trade desk, player market, and draft-night papers. */
.trade-rule-strip,
.superleague-prize-strip {
  border: 1px solid #8f704b;
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 7px, transparent 7px 14px),
    #dec18d;
  box-shadow: 3px 4px 0 rgba(84, 51, 25, .12);
}

.trade-builder {
  border-top: 6px solid #bd4c2b;
  background:
    linear-gradient(rgba(245, 228, 197, .92), rgba(231, 204, 160, .94)),
    repeating-linear-gradient(90deg, #a46738 0 1px, transparent 1px 70px);
}

.trade-roster-panel,
.trade-offer-card,
.trade-partner-card,
.trade-block-player,
.wire-item,
.free-agency-move-item {
  border-color: #a18158;
  border-radius: 2px;
  background: rgba(249, 237, 212, .82);
}

.trade-player-option {
  border-color: #aa8c64;
  border-radius: 2px;
  background: #f7e9cd;
}

.trade-player-option:has(input:checked) {
  border-color: #a73d26;
  background: #efd1a1;
  box-shadow: inset 5px 0 #bd4c2b;
}

.trade-meter {
  border: 2px solid #4c575d;
  border-radius: 2px;
  background: #101820;
  color: #e9dfca;
}

.trade-meter strong,
.trade-meter-verdict.is-valid {
  color: #f0b94e;
  font-family: var(--score-font);
}

.draft-workout-results .card,
.recruit-card {
  min-height: 138px;
  border-top: 5px solid var(--page-accent);
  background:
    linear-gradient(145deg, transparent 0 72%, rgba(207, 82, 40, .16) 73%),
    #f6e8cb;
}

/* Stories and community become the local paper and fan-club bulletin. */
.story-filter-panel,
.advanced-stats-filter {
  border-top: 5px solid var(--page-accent);
}

.story-card {
  position: relative;
  border: 1px solid #9d7c53;
  border-radius: 1px;
  background:
    linear-gradient(90deg, rgba(87, 58, 31, .035) 1px, transparent 1px) 0 0 / 6px 100%,
    #f1e3c7;
  box-shadow: 4px 5px 0 rgba(75, 46, 23, .13);
}

.story-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--page-accent);
  content: "";
}

.story-headline,
.story-headline a,
.story-detail-header h1 {
  color: #191b1b;
  font-family: Georgia, "Times New Roman", serif;
}

.story-summary,
.story-excerpt,
.story-article-body p {
  color: #4f473d;
  font-family: Georgia, "Times New Roman", serif;
}

.story-detail {
  padding: clamp(21px, 4vw, 44px);
  border: 1px solid #9e7d54;
  background: #f3e6cc;
  box-shadow: 6px 7px 0 rgba(76, 47, 24, .13);
}

.community-dock {
  z-index: 70;
}

.community-dock .button,
.community-launcher {
  border-color: #d39d45;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent),
    #16232c;
  color: #f6dfaa;
  box-shadow: 4px 5px 0 rgba(30, 18, 10, .25), 0 0 0 2px rgba(255, 209, 108, .13);
}

.community-panel {
  border: 5px solid #755334;
  border-radius: 3px;
  background:
    linear-gradient(rgba(247, 232, 201, .97), rgba(235, 210, 168, .97)),
    var(--court-paper);
  color: #28211b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52), inset 0 0 0 2px #d7b77d;
}

.community-panel::backdrop {
  background: rgba(5, 10, 15, .72);
  backdrop-filter: blur(3px);
}

.community-panel-header {
  border-bottom: 4px solid var(--court-amber);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 6px),
    #111b24;
  color: #fff5dc;
}

.community-panel-header h2,
.community-panel-header .eyebrow {
  color: #fff1c9;
}

.community-thread-item,
.community-post,
.community-context-preview {
  border-color: #a28259;
  border-radius: 2px;
  background: #f5e7c8;
  box-shadow: 2px 3px 0 rgba(79, 48, 24, .1);
}

.community-post.is-root {
  border-left: 6px solid var(--court-rim);
}

.community-thread-open:hover {
  background: #efd6a8;
}

.community-thread-owner {
  padding: 0 14px 10px;
  color: #665745;
  font-size: 12px;
}

.community-profile-link {
  color: #704027;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-post-header .community-profile-link {
  font-weight: inherit;
}

/* Public entrance: full environmental scenes replace the polished SaaS stage. */
.endpoint-index .world-scene {
  height: 84px;
}

.endpoint-index .world-scene-copy {
  display: none;
}

.landing-page,
.public-info-page {
  --landing-ink: #1f1b17;
  --landing-navy: #101a23;
  --landing-blue: #366d82;
  --landing-orange: #c94f28;
  --landing-gold: #e8b557;
  color: #241e18;
}

.landing-hero {
  position: relative;
  min-height: 690px;
  margin: 0;
  padding: clamp(42px, 7vw, 86px) clamp(23px, 5vw, 68px);
  isolation: isolate;
  overflow: hidden;
  border: 6px solid #714523;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(7, 14, 21, .93) 0%, rgba(7, 14, 21, .75) 46%, rgba(7, 14, 21, .17) 76%, rgba(7, 14, 21, .28)),
    url("images/world/courtside-clubhouse.webp") center 56% / cover;
  box-shadow: 8px 10px 0 rgba(66, 35, 16, .22), inset 0 0 0 2px rgba(243, 197, 112, .3);
}

.landing-hero::before {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20%;
  background:
    repeating-linear-gradient(90deg, rgba(73, 34, 13, .2) 0 1px, transparent 1px 72px),
    linear-gradient(transparent, rgba(194, 118, 57, .38));
  content: "";
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  padding: 20px 0;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .75);
}

.landing-hero h1 {
  color: #fff7e5;
  font-family: var(--display-font);
  font-size: clamp(47px, 6.4vw, 78px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
  text-transform: uppercase;
}

.landing-hero h1 span {
  color: #f0a147;
  text-shadow: 3px 3px 0 #702c1c, 0 0 24px rgba(241, 169, 76, .2);
}

.landing-hero-lede {
  color: #e1d5bd;
  font-size: 17px;
  line-height: 1.65;
}

.landing-hero .landing-kicker {
  color: #f3c664;
}

.landing-kicker::before {
  border-radius: 0;
  background: var(--court-rim);
}

.landing-approval-note {
  color: #d8cbb3;
}

.landing-approval-note span {
  border: 1px solid #d6a34f;
  background: #101a22;
  color: #f0c15f;
}

.landing-hero-visual {
  position: relative;
  z-index: 2;
  border: 2px solid rgba(235, 190, 105, .48);
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 6px),
    rgba(8, 15, 22, .79);
  box-shadow: 7px 9px 0 rgba(0, 0, 0, .29), inset 0 0 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(3px);
}

.landing-logo-panel {
  border: 0;
  border-radius: 1px;
  background: transparent;
}

.landing-logo-panel::before,
.landing-logo-panel::after {
  border-color: rgba(241, 191, 92, .25);
}

.landing-logo-glow {
  background: radial-gradient(circle, rgba(227, 103, 44, .24), transparent 68%);
}

.landing-hero-facts {
  border: 2px solid #4f5b62;
  border-radius: 2px;
  background: #101820;
}

.landing-hero-facts div {
  border-color: #4f5b62;
}

.landing-hero-facts dt {
  color: #f2bd50;
  font-family: var(--score-font);
  text-shadow: 0 0 8px rgba(242, 184, 75, .35);
}

.landing-hero-facts dd,
.landing-season-path {
  color: #cfc5af;
}

.landing-season-path i {
  background: #d65b2e;
}

.landing-explore-nav {
  margin-top: 16px;
  border: 1px solid #5c4933;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .024) 0 1px, transparent 1px 6px),
    #121d26;
  color: #dfd0b5;
  box-shadow: 4px 5px 0 rgba(70, 43, 22, .14);
}

.landing-explore-nav span {
  color: #f0bd58;
  font-family: var(--score-font);
}

.landing-explore-nav a {
  color: #f4e8d0;
  font-family: var(--display-font);
  text-transform: uppercase;
}

.landing-intro,
.landing-purpose {
  position: relative;
  border-bottom: 4px double #a28155;
}

.landing-intro h2,
.landing-purpose h2,
.landing-section-heading h2,
.landing-join-heading h2,
.landing-final-cta h2,
.public-info-page h1,
.public-info-page h2,
.public-info-page h3 {
  font-family: var(--display-font);
}

.landing-purpose {
  margin: 18px 0 36px;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid #8f7049;
  border-left: 8px solid var(--court-rim);
  background:
    linear-gradient(90deg, rgba(247, 233, 202, .97), rgba(224, 194, 143, .94)),
    #f0dfbd;
  box-shadow: 5px 6px 0 rgba(79, 48, 23, .12);
}

.landing-feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #92724d;
  border-top: 6px solid var(--court-rim);
  border-radius: 2px;
  background:
    linear-gradient(145deg, transparent 0 76%, rgba(196, 79, 39, .13) 77%),
    #f3e5c7;
  box-shadow: 5px 7px 0 rgba(72, 44, 22, .13);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}

.landing-feature-card:nth-child(2) { border-top-color: #4d7881; }
.landing-feature-card:nth-child(3) { border-top-color: #b48642; }

.landing-feature-card::after {
  background: none;
  border: 0;
}

.landing-feature-number {
  border: 3px solid #3b3026;
  border-radius: 50%;
  background: #17232c;
  color: #f0bc55;
  font-family: var(--score-font);
}

.landing-feature-card li::before {
  color: var(--court-rim);
}

.landing-leagues {
  margin: 50px 0 0;
  padding: clamp(65px, 8vw, 100px) max(24px, calc((100vw - 1160px) / 2));
  background:
    linear-gradient(rgba(10, 18, 25, .84), rgba(10, 18, 25, .91)),
    url("images/world/international-tunnel.webp") center 57% / cover;
  color: #f5ead2;
}

.landing-leagues h2,
.landing-leagues h3 {
  color: #fff4d9;
}

.landing-leagues .landing-kicker {
  color: #f1c567;
}

.landing-section-heading p {
  color: #cbbfa9;
}

.landing-league-card {
  border: 1px solid rgba(230, 191, 119, .4);
  border-radius: 2px;
  background: rgba(15, 24, 31, .83);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .22);
}

.landing-league-card p,
.landing-league-card > div > span {
  color: #cfc2aa;
}

.landing-league-mark {
  border: 2px solid rgba(255, 225, 163, .4);
  border-radius: 2px;
  background: #a7462c;
  font-family: var(--score-font);
  box-shadow: inset 0 -5px rgba(0, 0, 0, .2);
}

.landing-join {
  align-items: start;
}

.landing-steps li:not(:last-child)::before {
  width: 4px;
  background: linear-gradient(#b24a29, #d49a4c);
}

.landing-step-number {
  border-color: #f3e6cb;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, #391b13 48% 52%, transparent 53%),
    #d05a2d;
  color: #fff5df;
  font-family: var(--score-font);
  box-shadow: inset -5px -5px 6px rgba(71, 24, 14, .25);
}

.landing-world {
  margin-right: 0;
  margin-left: 0;
  border-top: 7px solid #784822;
  border-bottom: 7px solid #784822;
  background:
    linear-gradient(90deg, rgba(8, 14, 20, .94), rgba(8, 14, 20, .65) 58%, rgba(8, 14, 20, .3)),
    url("images/world/international-tunnel.webp") center 55% / cover;
}

.landing-world::before {
  opacity: .09;
}

.landing-world-cycles article {
  border-color: rgba(240, 196, 113, .35);
  border-radius: 2px;
  background: rgba(8, 15, 21, .72);
}

.landing-orbit,
.landing-orbit-two {
  border-width: 3px;
  border-color: rgba(239, 192, 104, .36);
}

.landing-orbit-core {
  border: 4px solid #98602d;
  background:
    radial-gradient(circle at 35% 27%, #efa054, #a83d24 72%);
  color: #fff8e6;
  box-shadow: inset -10px -10px 14px rgba(72, 22, 12, .3), 0 0 36px rgba(238, 173, 75, .25);
}

.landing-orbit-core span {
  color: #ffe0a0;
}

.landing-orbit-label {
  border-radius: 2px;
  background: #15242d;
}

.landing-final-cta {
  position: relative;
  margin-top: 45px;
  overflow: hidden;
  border: 5px solid #744725;
  background:
    linear-gradient(90deg, rgba(9, 16, 22, .91), rgba(9, 16, 22, .54)),
    url("images/world/locker-room.webp") center 59% / cover;
  color: #fff3d8;
  box-shadow: 6px 8px 0 rgba(66, 39, 18, .18);
}

.landing-final-cta h2,
.landing-final-cta .landing-text-link,
.landing-final-cta .landing-footer-links a {
  color: #fff3d8;
}

.landing-final-cta > p {
  color: #d8cbb3;
}

/* Public information and account desks */
.public-page-hero {
  position: relative;
  isolation: isolate;
  border: 5px solid #744725;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(8, 15, 21, .92), rgba(8, 15, 21, .67) 56%, rgba(8, 15, 21, .2)),
    var(--scene-image) var(--scene-position) / cover;
  box-shadow: 7px 9px 0 rgba(68, 39, 18, .18);
}

.public-page-hero::after {
  right: -125px;
  bottom: -215px;
  border-color: rgba(244, 205, 128, .17);
}

.public-page-hero h1 {
  color: #fff4da;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .72);
  text-transform: uppercase;
}

.public-page-hero > p {
  color: #ddcfb7;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .68);
}

.public-feature-section {
  border-color: #ad895b;
}

.public-feature-index,
.public-process li > span {
  border: 2px solid #604026;
  border-radius: 50%;
  background: var(--court-rim);
  color: #fff6e1;
  font-family: var(--score-font);
}

.public-capability-grid article,
.public-process li,
.public-season-grid article {
  border-left-color: var(--court-rim);
  border-radius: 2px;
}

.public-page-cta,
.public-preservation,
.public-why-signpost {
  border: 4px solid #704321;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(9, 17, 23, .93), rgba(9, 17, 23, .72)),
    url("images/world/press-row.webp") center 57% / cover;
  box-shadow: 6px 7px 0 rgba(65, 38, 18, .17);
}

.public-season-loop {
  margin-right: 0;
  margin-left: 0;
  background:
    repeating-linear-gradient(90deg, rgba(116, 72, 34, .09) 0 1px, transparent 1px 72px),
    #ddbd87;
}

.public-faq-list {
  border-color: #a17f55;
}

.public-faq-list details {
  border-color: #a17f55;
}

.public-faq-list summary {
  color: #282018;
  font-family: var(--display-font);
  text-transform: uppercase;
}

.public-faq-list summary::after {
  border-radius: 2px;
  background: #15232c;
  color: #efba53;
}

.auth-panel {
  position: relative;
  max-width: 470px;
  margin: clamp(26px, 5vw, 58px) auto;
  padding: 35px clamp(24px, 4vw, 40px) 33px;
  overflow: visible;
  border: 2px solid #8b6a45;
  border-top: 10px solid #1b2831;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(92, 65, 38, .08) 28px 29px),
    #f3e4c6;
  box-shadow: 8px 10px 0 rgba(75, 43, 20, .18);
}

.auth-panel::before {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 72px;
  height: 28px;
  border: 3px solid #303b41;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(#777f80, #3f4a4e);
  content: "";
  transform: translateX(-50%);
  box-shadow: inset 0 2px rgba(255, 255, 255, .18);
}

.auth-panel h1 {
  margin-bottom: 20px;
  text-transform: uppercase;
}

.login-logo {
  width: min(260px, 88%);
  max-height: 150px;
  filter: drop-shadow(3px 5px 2px rgba(65, 36, 17, .22));
}

.auth-panel button {
  width: 100%;
}

/* League-office controls remain visually distinct without changing permissions. */
.scene-league-office .page-header,
.scene-league-office .command-center-header {
  border-left-color: #b08a49;
  background:
    linear-gradient(110deg, rgba(245, 232, 203, .98), rgba(206, 176, 125, .95)),
    #ead6ad;
}

.commissioner-section,
.admin-mode-setting,
.portal-controls {
  border-color: #947550;
  border-radius: 2px;
  background: #f2e2c1;
}

.readiness-blockers,
.admin-mode-setting {
  box-shadow: inset 5px 0 #a84a33;
}

/* Footer as the last row of seats beyond the baseline. */
.world-footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 48px) 31px;
  overflow: hidden;
  border-top: 5px solid var(--court-amber);
  background:
    linear-gradient(180deg, #17242e, #0b131b 76%),
    #0d151e;
  color: #dbcaa9;
  font-family: var(--score-font);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, .3);
}

.world-footer-rule {
  width: min(12vw, 130px);
  height: 2px;
  background: linear-gradient(90deg, transparent, #a77c41);
}

.world-footer-rule--right {
  transform: scaleX(-1);
}

.world-footer-ball {
  position: relative;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid #f0b75a;
  border-radius: 50%;
  background: #bd4e2a;
  box-shadow: inset -5px -5px 5px rgba(60, 18, 9, .25);
}

.world-footer-ball-seam {
  position: absolute;
  border: 1px solid #381912;
  border-radius: 50%;
}

.world-footer-ball-seam--vertical { inset: -2px 8px; }
.world-footer-ball-seam--horizontal { inset: 8px -2px; }

.world-footer-label {
  color: #f2c46c;
  font-weight: 900;
}

.world-footer-location {
  color: #9da7a4;
}

.world-footer-seats {
  position: absolute;
  right: 5%;
  bottom: 0;
  display: flex;
  gap: 5px;
  opacity: .33;
}

.world-footer-seats span {
  width: 25px;
  height: 32px;
  border-radius: 8px 8px 0 0;
  background: #426067;
  box-shadow: inset 0 -8px #253b42;
}

@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
  }

  .logout {
    margin-left: auto;
  }

  .world-scene-set {
    opacity: .23;
  }
}

@media (max-width: 900px) {
  .world-scene {
    height: 178px;
  }

  .world-scene-copy {
    left: 18px;
    width: min(62vw, 560px);
  }

  .command-center-layout {
    grid-template-columns: 1fr;
  }

  .command-center-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
  }

  .landing-hero {
    min-height: 0;
    background-position: 64% 56%;
  }

  .landing-hero-copy {
    max-width: 720px;
  }

  .landing-hero-visual {
    width: min(100%, 650px);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .topbar {
    align-items: stretch;
    gap: 8px;
    padding: 9px 10px 11px;
  }

  .brand {
    align-self: flex-start;
  }

  .brand-court-tick {
    display: none;
  }

  .nav {
    order: 3;
    width: calc(100% + 20px);
    margin: 2px -10px -2px;
    padding: 4px 10px 8px;
    overflow-x: auto;
    flex-flow: row nowrap;
    scroll-padding-inline: 10px;
    scrollbar-color: #a7793d #17242d;
    scrollbar-width: thin;
    justify-content: flex-start;
  }

  .nav a {
    min-height: 44px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .logout {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
  }

  .logout span {
    max-width: none;
  }

  .world-scene {
    height: 170px;
    background-image:
      linear-gradient(90deg, rgba(7, 13, 20, .9) 0%, rgba(7, 13, 20, .62) 63%, rgba(7, 13, 20, .25)),
      var(--scene-image);
  }

  .endpoint-index .world-scene {
    height: 58px;
  }

  .world-scene-copy {
    right: 15px;
    left: 15px;
    width: auto;
    padding: 11px 14px;
  }

  .world-scene-label {
    font-size: clamp(23px, 8vw, 32px);
  }

  .world-scene-detail {
    max-width: 72%;
    font-size: 11px;
  }

  .world-scene-set {
    width: 50vw;
    opacity: .15;
  }

  .page {
    width: 100%;
    padding: 24px 11px 48px;
    box-shadow: none;
  }

  .page-header,
  .command-center-header {
    align-items: stretch;
    flex-direction: column;
    padding: 19px 16px;
    border-left-width: 6px;
  }

  .page-header::after,
  .command-center-header::after {
    display: none;
  }

  .command-center-record {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .row-header,
  .card-title-row,
  .game-card,
  .training-row {
    gap: 12px;
  }

  button,
  .button {
    width: auto;
    min-height: 44px;
  }

  .stacked-form > button,
  .edit-form > button,
  .arena-build-form > button,
  .community-form > button,
  .trade-builder > button,
  .trade-status-form > button,
  .lineup-actions > button,
  .ratings-form > button,
  .recruit-select-form > button {
    width: 100%;
  }

  .inline-form {
    align-items: stretch;
  }

  .inline-form label {
    min-width: min(100%, 210px);
    flex: 1 1 180px;
  }

  .inline-form button,
  .inline-form .button {
    align-self: end;
  }

  .action-card {
    min-height: 112px;
  }

  .table-scroll {
    border-right: 3px solid rgba(174, 116, 54, .35);
  }

  .arena-overview {
    padding: 15px 8px;
  }

  .arena-visual {
    border-width: 6px;
  }

  .landing-hero {
    padding: 40px 20px 24px;
    border-width: 4px;
    background-image:
      linear-gradient(180deg, rgba(7, 14, 21, .92) 0%, rgba(7, 14, 21, .78) 55%, rgba(7, 14, 21, .42)),
      url("images/world/courtside-clubhouse.webp");
    background-position: 67% 55%;
  }

  .landing-hero h1 {
    font-size: clamp(40px, 13vw, 59px);
  }

  .landing-hero-visual {
    padding: 13px;
    backdrop-filter: none;
  }

  .landing-purpose {
    padding: 30px 22px;
  }

  .landing-leagues {
    padding-right: 18px;
    padding-left: 18px;
  }

  .landing-world {
    background-position: 68% 55%;
  }

  .landing-final-cta {
    border-width: 4px;
    background-position: 68% 58%;
  }

  .public-page-hero {
    padding: 48px 22px;
    border-width: 4px;
    background-position: 66% 55%;
  }

  .public-page-hero h1 {
    font-size: clamp(39px, 12vw, 60px);
  }

  .auth-panel {
    margin: 26px auto;
  }

  .community-panel {
    border-width: 3px;
  }

  .world-footer {
    min-height: 92px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 16px 27px;
  }

  .world-footer-rule {
    width: 38px;
  }

  .world-footer-location {
    flex-basis: 100%;
    text-align: center;
  }

  .world-footer-seats {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-name {
    max-width: 190px;
    white-space: normal;
  }

  .world-scene-copy::after {
    display: none;
  }

  .world-scene-detail {
    max-width: 100%;
  }

  .world-scene-set {
    display: none;
  }

  .page {
    padding-right: 9px;
    padding-left: 9px;
  }

  .page-header,
  .command-center-header,
  .card {
    padding-right: 14px;
    padding-left: 15px;
  }

  .command-center-sidebar {
    grid-template-columns: 1fr;
  }

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

  .landing-hero {
    margin-right: -2px;
    margin-left: -2px;
  }

  .landing-hero-visual {
    padding: 10px 8px;
  }

  .landing-logo-panel img {
    height: auto;
    max-height: 170px;
  }

  .landing-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-hero-facts div {
    padding: 0 5px;
  }

  .landing-league-card {
    grid-template-columns: 1fr;
  }

  .landing-actions,
  .landing-actions .button,
  .auth-panel .button {
    width: 100%;
  }

  .landing-feature-card {
    padding: 24px 20px;
  }

  .public-process li {
    grid-template-columns: 1fr;
  }

  .public-faq-list summary {
    padding-right: 42px;
  }
}

/* Guided owner home: keep the basketball-world character while putting the
   next useful decision and league conversation in the first viewport. */
.nav > .nav-community-button,
.nav-more > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(242, 184, 75, .23);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .08)),
    #1a2732;
  color: #eee3cd;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.05;
  text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
  clip-path: none;
  cursor: pointer;
}

.nav > .nav-community-button::before,
.nav-more > summary::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 3px;
  width: 2px;
  background: var(--court-maple);
  content: "";
  opacity: .45;
}

.nav > .nav-community-button:hover,
.nav-more > summary:hover,
.nav-more[open] > summary {
  border-color: var(--court-honey);
  background: #293b49;
  color: #fff;
  transform: translateY(-1px);
}

.nav:has(.nav-more) > a[aria-current="page"],
.nav-more:has(a[aria-current="page"]) > summary {
  border-color: #ffd06a;
  background: #f2b84b;
  color: #18120d;
  box-shadow: inset 0 -3px 0 rgba(76, 30, 13, .2), 0 0 0 1px rgba(255, 223, 148, .2);
}

.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.nav-more > summary {
  gap: 7px;
  list-style: none;
}

.nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav-more > summary::after {
  content: "+";
  color: var(--court-amber);
  font-family: var(--score-font);
  font-size: 15px;
  line-height: 1;
}

.nav-more[open] > summary::after {
  content: "\2212";
}

.nav-more-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 9px);
  left: 0;
  display: grid;
  width: min(760px, calc(100vw - 28px));
  max-height: min(70vh, 590px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  overflow-y: auto;
  border: 2px solid #9d7546;
  background:
    linear-gradient(rgba(247, 232, 201, .98), rgba(235, 210, 168, .98)),
    var(--court-paper);
  box-shadow: 0 18px 42px rgba(3, 8, 13, .48), inset 0 0 0 2px rgba(255, 244, 213, .7);
}

.nav-more-group {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.nav-more-heading {
  padding: 2px 3px 6px;
  border-bottom: 1px solid #9d7546;
  color: #67452b;
  font-family: var(--score-font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav .nav-more-menu a {
  width: 100%;
  min-height: 44px;
  border-color: #8b704f;
  background: #17242d;
}

.nav .nav-more-menu a[aria-current="page"] {
  border-color: #f2b84b;
  background: #f2b84b;
  color: #18120d;
}

/* Operational pages keep the world-building context without pushing the
   current task below a full panorama. */
.is-member:not(.endpoint-dashboard) .world-scene {
  height: 112px;
  border-bottom-width: 4px;
}

.is-member:not(.endpoint-dashboard) .world-scene-copy {
  padding-block: 8px;
}

.is-member:not(.endpoint-dashboard) .world-scene-label {
  font-size: clamp(21px, 2.7vw, 31px);
}

.is-member:not(.endpoint-dashboard) .world-scene-detail,
.is-member:not(.endpoint-dashboard) .world-scene-set,
.is-member:not(.endpoint-dashboard) .world-scene-hardwood {
  display: none;
}

.endpoint-dashboard .world-scene {
  height: 82px;
  border-bottom-width: 4px;
}

.endpoint-dashboard .world-scene-copy {
  top: 50%;
  bottom: auto;
  padding: 8px 13px;
  transform: translateY(-50%);
}

.endpoint-dashboard .world-scene-kicker,
.endpoint-dashboard .world-scene-detail,
.endpoint-dashboard .world-scene-set,
.endpoint-dashboard .world-scene-hardwood {
  display: none;
}

.endpoint-dashboard .world-scene-label {
  font-size: clamp(19px, 3vw, 27px);
}

.endpoint-dashboard .page {
  padding-top: clamp(20px, 2.4vw, 30px);
}

.owner-home {
  display: grid;
  gap: 24px;
}

.owner-home-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 3.2vw, 34px);
  overflow: hidden;
  border: 1px solid #8b6d4c;
  border-left: 8px solid var(--page-accent);
  background:
    radial-gradient(circle at 92% 118%, transparent 0 90px, rgba(112, 76, 43, .13) 91px 95px, transparent 96px),
    linear-gradient(105deg, rgba(255, 251, 238, .99), rgba(239, 220, 184, .96));
  box-shadow: 5px 6px 0 rgba(92, 58, 29, .14), inset 0 1px #fff;
}

.owner-welcome-copy,
.owner-welcome-copy > * {
  position: relative;
  z-index: 1;
}

.owner-welcome-copy {
  min-width: 0;
}

.owner-welcome-copy h1 {
  max-width: 780px;
  margin: 5px 0 8px;
  font-size: clamp(32px, 4.5vw, 52px);
  overflow-wrap: anywhere;
}

.owner-welcome-copy p {
  max-width: 720px;
  margin: 0;
  color: #5e5142;
  font-size: 15px;
}

.owner-team-name {
  color: #211a15;
}

.owner-record {
  display: grid;
  min-width: 170px;
  gap: 3px;
  justify-items: center;
  padding: 14px 18px;
  border: 3px solid #4f5960;
  background: #101820;
  color: #f8ecd2;
  text-align: center;
  box-shadow: inset 0 0 0 2px #080d12, 4px 5px 0 rgba(38, 23, 13, .16);
}

.owner-record > span,
.owner-record small {
  color: #d7cebb;
  font-family: var(--score-font);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.owner-record strong {
  color: #ffca5d;
  font-family: var(--score-font);
  font-size: clamp(29px, 4vw, 39px);
  line-height: 1;
}

.owner-next {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr);
  gap: 14px;
  align-items: stretch;
}

.owner-next-single {
  grid-template-columns: 1fr;
}

.owner-next-main {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(22px, 3vw, 31px);
  border-top: 6px solid #b84528;
  background:
    linear-gradient(125deg, rgba(255, 250, 234, .99), rgba(231, 204, 157, .94)),
    var(--court-paper);
}

.owner-next-main h2,
.owner-secondary-action h3,
.owner-phase-card > h2,
.owner-pulse-card h3,
.owner-story h3,
.owner-market h3 {
  margin: 0;
}

.owner-phase-card > h2 {
  font-size: clamp(21px, 2.6vw, 28px);
}

.owner-next-main h2 {
  max-width: 760px;
  font-size: clamp(25px, 3.2vw, 36px);
}

.owner-next-main > p:not(.owner-next-context):not(.owner-caught-up) {
  max-width: 720px;
  margin: 0;
  color: #554a3d;
  font-size: 15px;
}

.owner-next-context {
  margin: 0;
  color: #79523a;
  font-size: 12px;
  font-weight: 800;
}

.owner-primary-action {
  justify-self: start;
  margin-top: 8px;
  border-color: #682017;
  background: #8c3020;
  color: #fff;
}

.owner-primary-action:hover {
  border-color: #4c1711;
  background: #702318;
}

.owner-caught-up {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 10px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(107, 76, 43, .28);
  color: #41634a;
}

.owner-secondary-actions {
  display: grid;
  gap: 12px;
}

.owner-secondary-action {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 17px 18px 18px 21px;
}

.owner-secondary-action p {
  margin: 0;
  color: #615546;
  font-size: 13px;
}

.owner-text-link,
.owner-section-link {
  color: #704027;
  font-weight: 900;
}

.owner-text-link {
  align-self: end;
  margin-top: 5px;
}

.owner-more-actions,
.owner-details {
  border: 1px solid #9e7f58;
  background: rgba(245, 232, 202, .72);
  box-shadow: 3px 4px 0 rgba(95, 62, 31, .1);
}

.owner-more-actions > summary,
.owner-details > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  color: #34271d;
  cursor: pointer;
  font-family: var(--display-font);
  font-weight: 900;
  list-style: none;
}

.owner-more-actions > summary::-webkit-details-marker,
.owner-details > summary::-webkit-details-marker {
  display: none;
}

.owner-more-actions > summary::after,
.owner-details > summary::after {
  content: "+";
  color: #8f3822;
  font-family: var(--score-font);
  font-size: 22px;
}

.owner-more-actions[open] > summary::after,
.owner-details[open] > summary::after {
  content: "\2212";
}

.owner-more-actions-list,
.owner-details-body {
  display: grid;
  gap: 14px;
  padding: 4px 16px 18px;
  border-top: 1px solid rgba(116, 86, 53, .28);
}

.owner-more-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(116, 86, 53, .2);
}

.owner-more-action h3,
.owner-more-action p {
  margin: 2px 0 0;
}

.owner-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.owner-section-heading h2,
.owner-section-heading p {
  margin: 0;
}

.owner-section-heading h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}

.owner-section-heading > p,
.owner-section-heading > div > p {
  max-width: 520px;
  color: #66594a;
  font-size: 13px;
}

.owner-quick-start {
  padding: 19px 20px 21px;
  border: 1px solid #9e7f58;
  border-top: 5px solid #4f7b70;
  background: rgba(246, 234, 207, .78);
}

.owner-quick-list,
.owner-community-list,
.owner-timeline-segments {
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-quick-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.owner-quick-link {
  display: grid;
  min-height: 96px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #a4865e;
  background: #fff6df;
  color: #2b2119;
  box-shadow: 2px 3px 0 rgba(91, 57, 28, .09);
}

.owner-quick-link:hover {
  border-color: #6d5337;
  background: #ffedc6;
  text-decoration: none;
  transform: translateY(-2px);
}

.owner-quick-link > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.owner-quick-link strong {
  font-family: var(--display-font);
  font-size: 17px;
  text-transform: uppercase;
}

.owner-quick-link small {
  color: #66594a;
  line-height: 1.35;
}

.owner-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #526e66;
  background: #dce5cf;
  color: #29473f;
  font-family: var(--score-font);
  font-weight: 900;
}

.owner-pulse-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.owner-pulse-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
  padding: 18px 18px 19px 21px;
  border-top: 4px solid #4f7b70;
}

.owner-pulse-card p {
  margin: 0;
  color: #645849;
}

.owner-phase-meta,
.owner-story-meta,
.owner-snapshot-links,
.owner-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.owner-phase-meta span,
.owner-story-meta span,
.owner-status {
  padding: 4px 7px;
  border: 1px solid #9e7f58;
  background: #ead5ad;
  color: #3d3024;
  font-size: 11px;
  font-weight: 800;
}

.owner-progress {
  display: grid;
  gap: 5px;
  margin-top: 2px;
}

.owner-progress > span,
.owner-timeline-progress > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #66594a;
  font-size: 11px;
}

.account-area {
  display: grid;
  gap: 5px;
  justify-items: end;
  margin-left: auto;
}

.view-profile-link {
  color: #ffd06a;
  font-family: var(--display-font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.view-profile-link:hover,
.view-profile-link[aria-current="page"] {
  color: #fff5d9;
}

.human-team-link {
  color: inherit;
  font-weight: 900;
  text-decoration-color: rgba(156, 71, 36, .52);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.human-team-link:hover {
  color: #873a25;
}

.topbar .human-team-link:hover,
.owner-scoreline .human-team-link:hover,
.owner-community-actions .human-team-link:hover {
  color: #ffe29a;
}

.owner-progress progress,
.owner-timeline-progress progress {
  width: 100%;
  height: 10px;
}

.owner-result-heading,
.owner-market-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.owner-result-heading span {
  color: #6a5c4b;
  font-size: 11px;
}

.owner-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 11px;
  border: 2px solid #505b62;
  background: #111a22;
  color: #f9edcf;
  font-family: var(--score-font);
}

.owner-scoreline strong {
  color: #f4bd50;
  font-size: 21px;
}

.owner-community {
  padding: clamp(19px, 3vw, 27px);
  border: 1px solid #725637;
  border-left: 7px solid #426f78;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .35), transparent 45%),
    #efe0bd;
  box-shadow: 4px 5px 0 rgba(83, 52, 26, .13);
}

.owner-community-actions {
  justify-content: flex-end;
}

.owner-community-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-community-list > li {
  display: grid;
  align-content: start;
  border: 1px solid #8e7453;
  background: #fff4dc;
  box-shadow: 2px 3px 0 rgba(68, 42, 22, .11);
}

.owner-community-thread {
  display: grid;
  width: 100%;
  min-height: 96px;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 0;
  background: transparent;
  color: #28211b;
  text-align: left;
  text-transform: none;
  box-shadow: none;
  clip-path: none;
}

.owner-community-thread:hover {
  background: #e8eee1;
  color: #1d292b;
}

.owner-community-thread strong {
  font-family: var(--display-font);
  font-size: 17px;
}

.owner-community-thread span,
.owner-community-empty {
  color: #625648;
  font-size: 12px;
}

.owner-community-thread-meta {
  padding: 0 14px 12px;
  color: #625648;
  font-size: 12px;
}

.owner-community-thread-meta a {
  font-weight: 900;
}

.owner-community-empty {
  display: grid;
  gap: 3px;
  padding: 15px;
  border: 1px dashed #8e7453;
  background: rgba(255, 247, 228, .68);
}

.owner-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 14px;
}

.owner-story,
.owner-snapshot {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 20px 20px 21px 23px;
}

.owner-story .owner-section-heading,
.owner-snapshot .owner-section-heading {
  margin: 0;
}

.owner-story > p,
.owner-story h3 {
  margin: 0;
}

.owner-story > p {
  color: #625648;
}

.owner-story-meta {
  color: #6a5c4b;
  font-size: 11px;
}

.owner-stat-list,
.owner-market-counts {
  display: grid;
  margin: 0;
}

.owner-stat-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(110, 80, 47, .24);
}

.owner-stat-list dt,
.owner-market-counts dt {
  color: #675a4a;
}

.owner-stat-list dd,
.owner-market-counts dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.owner-snapshot-links {
  justify-content: space-between;
  font-weight: 900;
}

.owner-market {
  display: grid;
  gap: 9px;
  margin-top: 5px;
  padding-top: 15px;
  border-top: 3px double rgba(104, 72, 42, .42);
}

.owner-market p {
  margin: 0;
  color: #675a4a;
}

.owner-market-counts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.owner-market-counts > div {
  padding: 9px;
  border: 1px solid #a4865e;
  background: #f4e4c3;
}

.owner-market-counts dd {
  margin-top: 2px;
  font-size: 19px;
  text-align: left;
}

.owner-status-open {
  border-color: #52725d;
  background: #d7e4c9;
  color: #24462e;
}

.owner-status-closed {
  border-color: #9a7345;
  background: #f0dfb7;
  color: #68431f;
}

.owner-market-link {
  width: 100%;
}

.owner-details > summary span:first-child {
  display: grid;
  gap: 2px;
}

.owner-details > summary small {
  color: #695c4c;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 500;
}

.owner-details-hint {
  margin-left: auto;
  color: #72523a;
  font-family: var(--body-font);
  font-size: 11px;
}

.owner-timeline-heading,
.owner-tools-heading {
  padding-top: 13px;
}

.owner-timeline-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.owner-timeline-heading h2,
.owner-timeline-heading p,
.owner-tools-heading h2 {
  margin: 3px 0 0;
}

.owner-timeline-heading > strong {
  padding: 6px 9px;
  border: 1px solid #8c704e;
  background: #16242d;
  color: #f4c66c;
  font-family: var(--score-font);
  font-size: 11px;
}

.owner-timeline-progress {
  display: grid;
  gap: 6px;
}

.owner-timeline-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.owner-timeline-segment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid #a4875d;
  background: rgba(249, 237, 211, .72);
}

.owner-timeline-segment > div {
  display: grid;
  gap: 2px;
}

.owner-timeline-segment > div span {
  color: #675a4a;
  font-size: 10px;
}

.owner-timeline-segment progress {
  width: 100%;
  height: 6px;
  grid-column: 1 / -1;
}

.owner-timeline-marker {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: #263640;
  color: #f4c66c;
  font-family: var(--score-font);
  font-size: 10px;
}

.owner-timeline-active {
  border-color: #a64028;
  box-shadow: inset 4px 0 #a64028;
}

.owner-next-update {
  margin: 0;
  padding: 9px 11px;
  background: #e3e9db;
  color: #38544a;
  font-size: 12px;
  font-weight: 800;
}

.owner-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-tool {
  display: grid;
  min-height: 92px;
  align-content: end;
  gap: 5px;
  padding: 14px;
  border: 1px solid #9e7f58;
  border-top: 4px solid var(--page-accent);
  background: #f6e7c7;
  color: #271e16;
}

.owner-tool:hover {
  border-color: #6f5033;
  background: #fff1d3;
  text-decoration: none;
  transform: translateY(-2px);
}

.owner-tool strong {
  font-family: var(--display-font);
  font-size: 16px;
  text-transform: uppercase;
}

.owner-tool span {
  color: #695c4c;
  font-size: 12px;
}

.owner-next-unavailable {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 20px;
}

@media (max-width: 1100px) {
  .nav-more {
    position: static;
  }

  .nav-more-menu {
    top: calc(100% + 7px);
    right: clamp(10px, 2.3vw, 30px);
    left: auto;
  }
}

@media (max-width: 960px) {
  .owner-next,
  .owner-home-grid {
    grid-template-columns: 1fr;
  }

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

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

  .owner-phase-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav:has(.nav-more) {
    display: grid;
    width: 100%;
    margin: 2px 0 0;
    padding: 4px 0 2px;
    overflow: visible;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .nav:has(.nav-more) > a,
  .nav:has(.nav-more) > .nav-community-button,
  .nav:has(.nav-more) > .nav-more > summary {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
  }

  .nav:has(.nav-more) > a::before,
  .nav:has(.nav-more) > .nav-community-button::before,
  .nav:has(.nav-more) > .nav-more > summary::before {
    display: none;
  }

  .nav-more-menu {
    width: min(520px, calc(100vw - 20px));
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .nav-more-group + .nav-more-group {
    padding-top: 4px;
    border-top: 2px solid rgba(111, 78, 44, .3);
  }

  .is-member:not(.endpoint-dashboard) .world-scene {
    height: 82px;
  }

  .is-member:not(.endpoint-dashboard) .world-scene-copy {
    right: 10px;
    left: 10px;
    width: auto;
    padding: 6px 9px;
  }

  .is-member:not(.endpoint-dashboard) .world-scene-kicker,
  .is-member:not(.endpoint-dashboard) .world-scene-copy::after {
    display: none;
  }

  .is-member:not(.endpoint-dashboard) .world-scene-label {
    font-size: 20px;
  }

  .endpoint-dashboard .world-scene {
    height: 58px;
  }

  .endpoint-dashboard .world-scene-copy {
    right: 10px;
    left: 10px;
    width: auto;
    padding: 5px 9px;
  }

  .endpoint-dashboard .world-scene-label {
    font-size: 18px;
  }

  .endpoint-dashboard .page {
    padding-top: 16px;
  }

  .owner-home {
    gap: 18px;
  }

  .owner-home-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 19px 16px;
    border-left-width: 6px;
  }

  .owner-welcome-copy h1 {
    font-size: clamp(30px, 10vw, 43px);
  }

  .owner-record {
    min-width: 0;
    grid-template-columns: auto auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .owner-record strong {
    font-size: 27px;
  }

  .owner-quick-list,
  .owner-community-list,
  .owner-pulse-grid,
  .owner-secondary-actions {
    grid-template-columns: 1fr;
  }

  .owner-phase-card {
    grid-column: auto;
  }

  .owner-section-heading,
  .owner-timeline-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-community-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .owner-community-actions .button {
    flex: 1 1 180px;
  }

  .owner-community-thread {
    min-height: 82px;
  }

  .owner-timeline-segments,
  .owner-tool-grid {
    grid-template-columns: 1fr;
  }

  .owner-more-action,
  .owner-next-unavailable {
    grid-template-columns: 1fr;
  }

  .owner-more-action-link {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .nav-more-menu {
    right: 0;
    grid-template-columns: 1fr;
  }

  .owner-home-header,
  .owner-next-main,
  .owner-community,
  .owner-quick-start {
    padding-right: 14px;
    padding-left: 14px;
  }

  .owner-record {
    grid-template-columns: 1fr auto;
  }

  .owner-record small {
    grid-column: 1 / -1;
  }

  .owner-section-heading h2 {
    font-size: 22px;
  }

  .owner-details-hint {
    display: none;
  }

  .owner-details > summary,
  .owner-more-actions > summary {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 380px) {
  .nav:has(.nav-more) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .nav:has(.nav-more) > a {
    grid-column: span 2;
  }

  .nav:has(.nav-more) > .nav-community-button,
  .nav:has(.nav-more) > .nav-more {
    grid-column: span 3;
  }
}

/* Owner profiles: a shared clubhouse wall, trophy shelf, and guestbook. */
.endpoint-owner-profile .world-scene {
  height: clamp(105px, 12vw, 150px);
}

.member-profile {
  display: grid;
  gap: 22px;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  padding: clamp(23px, 4vw, 39px);
  overflow: hidden;
  border: 1px solid #80613f;
  border-left: 8px solid #b64c2c;
  background:
    radial-gradient(circle at 92% 120%, transparent 0 84px, rgba(100, 63, 31, .13) 85px 89px, transparent 90px),
    repeating-linear-gradient(0deg, rgba(94, 65, 36, .035) 0 1px, transparent 1px 6px),
    #f4e5c3;
  box-shadow: 5px 6px 0 rgba(79, 49, 24, .14), inset 0 1px #fff8e8;
}

.profile-avatar {
  position: relative;
  display: grid;
  width: clamp(92px, 12vw, 128px);
  height: clamp(92px, 12vw, 128px);
  place-items: center;
  overflow: hidden;
  border: 5px solid #f2c260;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, #382018 47% 50%, transparent 51%),
    linear-gradient(0deg, transparent 46%, #382018 47% 50%, transparent 51%),
    radial-gradient(circle at 35% 30%, #f5a44a, #b64528 72%);
  color: #fff8df;
  font-family: var(--score-font);
  font-size: clamp(42px, 7vw, 67px);
  font-weight: 900;
  text-shadow: 2px 3px 0 #6f281a;
  box-shadow: inset -9px -10px 12px rgba(56, 18, 12, .25), 4px 5px 0 rgba(79, 49, 24, .2);
  transform: rotate(-3deg);
}

.profile-avatar span {
  position: relative;
  z-index: 1;
}

.profile-avatar i {
  position: absolute;
  inset: 10px -22px;
  border-top: 3px solid #382018;
  border-bottom: 3px solid #382018;
  border-radius: 50%;
  transform: rotate(27deg);
}

.profile-intro {
  min-width: 0;
}

.profile-intro h1 {
  margin: 4px 0 6px;
  font-size: clamp(35px, 5vw, 58px);
  overflow-wrap: anywhere;
}

.profile-team-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  color: #5c4c3c;
  font-size: 16px;
}

.profile-membership {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.profile-membership > div {
  display: grid;
  gap: 2px;
  min-width: min(220px, 100%);
  padding: 9px 12px;
  border: 1px solid #9f8058;
  background: rgba(255, 247, 226, .62);
}

.profile-membership span {
  color: #755f48;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-membership strong {
  color: #2e251d;
  font-size: 13px;
}

.profile-own-ribbon {
  position: absolute;
  top: 16px;
  right: -45px;
  width: 190px;
  padding: 6px 10px;
  background: #294c51;
  color: #fff1d0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(35deg);
}

.profile-shelf,
.profile-guestbook {
  padding: clamp(20px, 3.2vw, 31px);
  border: 1px solid #81613e;
  background:
    repeating-linear-gradient(90deg, rgba(93, 58, 29, .04) 0 2px, transparent 2px 11px),
    #f1dfb9;
  box-shadow: 4px 5px 0 rgba(77, 48, 24, .13);
}

.profile-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.profile-section-heading h2,
.profile-section-heading p,
.profile-love h2,
.profile-love p {
  margin: 2px 0 0;
}

.profile-section-heading h2,
.profile-love h2 {
  font-size: clamp(23px, 3vw, 32px);
}

.profile-section-heading p,
.profile-love p {
  color: #665542;
}

.profile-shelf-count,
.profile-comment-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #82623f;
  background: #14242d;
  color: #f2c467;
  font-family: var(--score-font);
  font-size: 11px;
  font-weight: 900;
}

.profile-achievement-groups {
  display: grid;
  gap: 14px;
}

.profile-achievement-group {
  padding: 15px;
  border: 1px solid #9d7950;
  border-bottom: 8px solid #714723;
  background: #fff2d2;
  box-shadow: inset 0 -3px rgba(255, 255, 255, .44), 2px 3px 0 rgba(75, 43, 19, .1);
}

.profile-achievement-group > header {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-achievement-group h3,
.profile-achievement-group p {
  margin: 0;
}

.profile-achievement-group p {
  color: #6b5843;
  font-size: 12px;
}

.profile-mini-avatar,
.profile-medallion,
.profile-comment-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.profile-mini-avatar {
  width: 43px;
  height: 43px;
  border: 3px solid #a86c2f;
  background: #e8c674;
  font-size: 23px;
  box-shadow: inset 0 0 0 3px rgba(255, 248, 215, .5);
}

.profile-achievement-group ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-achievement-group li {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ae8d61;
  background: #f7e5bd;
}

.profile-achievement-group li > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.profile-achievement-group li strong,
.profile-achievement-group li span,
.profile-achievement-group li small {
  overflow-wrap: anywhere;
}

.profile-achievement-group li span,
.profile-achievement-group li small {
  color: #6c5842;
  font-size: 11px;
}

.profile-medallion {
  width: 40px;
  height: 40px;
  border: 2px solid #9f682e;
  background: #f1cc73;
  font-size: 20px;
}

.profile-empty-shelf,
.profile-empty-guestbook {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 2px dashed #9b7a53;
  background: rgba(255, 247, 226, .55);
  color: #665440;
}

.profile-empty-shelf p,
.profile-empty-guestbook p {
  margin: 2px 0 0;
}

.profile-medallion.is-empty {
  background: transparent;
  color: #8e704a;
}

.profile-love {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(19px, 3vw, 27px);
  border: 1px solid #725637;
  border-left: 7px solid #477276;
  background: #e8e7ce;
  box-shadow: 4px 5px 0 rgba(77, 48, 24, .12);
}

.profile-reaction-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-reaction-rail form,
.profile-comment-actions form {
  margin: 0;
}

.profile-reaction-button {
  display: grid;
  min-width: 98px;
  min-height: 76px;
  grid-template-columns: auto auto;
  gap: 2px 7px;
  place-content: center;
  border: 1px solid #816b50;
  background: #fff4d8;
  color: #34291f;
  text-transform: none;
  clip-path: none;
}

.profile-reaction-button > span:first-child {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 26px;
}

.profile-reaction-button > span:nth-child(2) {
  align-self: end;
  color: #6a5844;
  font-size: 10px;
}

.profile-reaction-button strong {
  align-self: start;
  font-family: var(--score-font);
  font-size: 19px;
}

.profile-reaction-button:hover,
.profile-reaction-button.is-selected {
  border-color: #39636a;
  background: #dce8d8;
  color: #24444a;
}

.profile-reaction-button.is-readonly:hover {
  border-color: #816b50;
  background: #fff4d8;
  color: #34291f;
  transform: none;
}

.profile-note-form {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #a17f55;
  background: #fff5dc;
}

.profile-note-form > label,
.profile-reply-box label {
  font-family: var(--display-font);
  font-weight: 900;
}

.profile-note-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-note-form small {
  color: #6d5a43;
}

.profile-comment-list,
.profile-reply-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-comment-thread:nth-child(odd) > .profile-comment {
  transform: rotate(-.18deg);
}

.profile-comment-thread:nth-child(even) > .profile-comment {
  transform: rotate(.18deg);
}

.profile-comment {
  padding: 15px 16px;
  border: 1px solid #a98b64;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(80, 122, 142, .12) 25px 26px),
    #fff8e9;
  box-shadow: 2px 4px 0 rgba(77, 48, 24, .1);
}

.profile-comment header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.profile-comment header > div {
  display: grid;
  gap: 1px;
}

.profile-comment header > div span,
.profile-comment time {
  color: #74614d;
  font-size: 11px;
}

.profile-comment-avatar {
  width: 35px;
  height: 35px;
  border: 2px solid #405f65;
  background: #dfe6d5;
  color: #263f44;
  font-family: var(--score-font);
  font-weight: 900;
}

.profile-comment > p {
  margin: 13px 0;
  color: #3e3429;
  line-height: 1.65;
  white-space: pre-line;
}

.profile-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.profile-comment-reaction {
  min-width: 48px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid #a48964;
  background: #f1e2c2;
  color: #3e3328;
  text-transform: none;
  clip-path: none;
}

.profile-comment-reaction.is-selected {
  border-color: #416b70;
  background: #d9e6d6;
}

.profile-reply-box {
  margin-left: auto;
}

.profile-reply-box > summary {
  min-height: 38px;
  padding: 8px 11px;
  cursor: pointer;
  color: #704027;
  font-weight: 900;
}

.profile-reply-box > form {
  display: grid;
  width: min(560px, 75vw);
  gap: 7px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #9d7f58;
  background: #f5e5c4;
}

.profile-reply-box button {
  justify-self: end;
}

.profile-reply-list {
  margin: 10px 0 0 clamp(18px, 5vw, 68px);
}

.profile-comment.is-reply {
  border-left: 5px solid #51777a;
  background-color: #f3f1da;
  transform: none;
}

.profile-empty-guestbook > span {
  font-size: 28px;
}

.owner-neighbors {
  padding: 19px 20px 21px;
  border: 1px solid #8f704a;
  border-left: 6px solid #b94b2c;
  background: #efe1bf;
}

.owner-neighbor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-neighbor-card {
  display: grid;
  min-height: 84px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #9f815a;
  background: #fff5dc;
  color: #30261d;
}

.owner-neighbor-card:hover {
  border-color: #436c72;
  background: #e7edda;
  text-decoration: none;
}

.owner-neighbor-avatar {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 3px solid #dca14f;
  border-radius: 50%;
  background: #ad472b;
  color: #fff4d9;
  font-family: var(--score-font);
  font-size: 20px;
  font-weight: 900;
}

.owner-neighbor-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.owner-neighbor-card small {
  color: #6b5843;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .profile-love {
    grid-template-columns: 1fr;
  }

  .profile-reaction-rail {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .account-area {
    max-width: calc(100% - 156px);
  }

  .view-profile-link {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
  }

  .profile-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .profile-achievement-group ol,
  .owner-neighbor-list {
    grid-template-columns: 1fr;
  }

  .profile-note-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-note-form button {
    width: 100%;
  }

  .profile-comment header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-comment time {
    grid-column: 2;
  }

  .profile-reply-box {
    width: 100%;
    margin-left: 0;
  }

  .profile-reply-box > form {
    width: 100%;
  }

  .profile-reply-list {
    margin-left: 14px;
  }
}

@media (max-width: 480px) {
  .account-area {
    max-width: none;
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .account-area .logout span {
    display: none;
  }

  .profile-own-ribbon {
    display: none;
  }

  .profile-membership,
  .profile-membership > div,
  .profile-reaction-rail,
  .profile-reaction-rail form,
  .profile-reaction-button {
    width: 100%;
  }

  .profile-reaction-button {
    min-height: 58px;
  }
}

/* Founder access: optional public code and the administrator inventory desk. */
.is-public .start-founder-field {
  margin-top: 3px;
  padding: 13px 14px;
  border: 1px solid #b28c5d;
  border-left: 4px solid #9f3d24;
  border-radius: 3px;
  background: #f3e1bd;
}

.is-public .start-founder-field input {
  min-height: 44px;
  font-family: var(--score-font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.is-public .start-founder-help {
  margin: -6px 2px 2px;
  color: #665744;
  font-size: 13px;
  line-height: 1.5;
}

.admin-founder-codes {
  border-color: #957249;
}

.admin-founder-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 15px;
}

.admin-founder-summary > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #a98a62;
  border-top: 4px solid #263640;
  border-radius: 2px;
  background: #f0dfbd;
}

.admin-founder-summary > div:nth-child(2) {
  border-top-color: #52725d;
}

.admin-founder-summary > div:nth-child(3) {
  border-top-color: #9a7345;
}

.admin-founder-summary dt {
  color: #62513e;
  font-family: var(--score-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.admin-founder-summary dd {
  margin: 4px 0 0;
  color: #202326;
  font-family: var(--score-font);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.admin-founder-codes .admin-founder-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #9a7345;
  border-left: 5px solid #a44329;
  border-radius: 2px;
  background: #f0dfb7;
  color: #53351e;
  line-height: 1.5;
}

.admin-founder-codes .admin-founder-warning strong {
  color: #3b2416;
}

.admin-founder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0 17px;
}

.admin-founder-actions button {
  min-height: 44px;
}

.admin-founder-inventory {
  overflow: hidden;
  border: 1px solid #8f7049;
  border-radius: 2px;
  background: #f7ead0;
}

.admin-founder-inventory > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 13px;
  cursor: pointer;
  background: #1a2831;
  color: #fff3d8;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 900;
}

.admin-founder-inventory > summary::-webkit-details-marker {
  display: none;
}

.admin-founder-inventory > summary::after {
  margin-left: auto;
  color: #f2bd50;
  content: "+";
  font-family: var(--score-font);
  font-size: 20px;
}

.admin-founder-inventory[open] > summary::after {
  content: "\2212";
}

.admin-founder-inventory .table-scroll {
  max-height: min(520px, 65vh);
  border-top: 1px solid #8f7049;
  overscroll-behavior: contain;
}

.admin-founder-inventory table {
  min-width: 670px;
}

.admin-founder-inventory thead th {
  position: sticky;
  z-index: 1;
  top: 0;
}

.admin-founder-inventory code,
.admin-signup-requests code {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid #aa8b62;
  border-radius: 2px;
  background: #fff4dc;
  color: #4f281a;
  font-family: var(--score-font);
  font-size: 12px;
  white-space: nowrap;
}

.admin-founder-inventory td,
.admin-signup-requests td {
  vertical-align: top;
}

.admin-signup-requests table {
  min-width: 940px;
}

.admin-founder-inventory .status-badge,
.admin-signup-requests .status-badge {
  min-height: 28px;
}

.admin-signup-requests td .muted {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .admin-founder-summary {
    gap: 6px;
  }

  .admin-founder-summary > div {
    padding: 9px 8px;
  }

  .admin-founder-summary dt {
    font-size: 9px;
  }

  .admin-founder-summary dd {
    font-size: 22px;
  }

  .admin-founder-actions,
  .admin-founder-actions button {
    width: 100%;
  }

  .admin-founder-inventory .table-scroll,
  .admin-signup-requests .table-scroll {
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .action-card:hover,
  .nav a:hover,
  button:hover,
  .button:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  body,
  .page,
  .world-scene,
  .topbar,
  .card,
  .action-card,
  .table-panel,
  .community-panel,
  .landing-hero,
  .public-page-hero {
    background-image: none;
  }

  .world-scene-set,
  .world-scene-atmosphere,
  .world-scene-hardwood,
  body::before {
    display: none;
  }

  .nav a,
  button,
  .button,
  input,
  select,
  textarea,
  .card,
  .action-card,
  .table-panel {
    border: 2px solid CanvasText;
  }
}

@media print {
  .topbar,
  .world-scene,
  .world-footer,
  .community-dock,
  .community-panel {
    display: none !important;
  }

  body,
  .page {
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  .page {
    max-width: none;
  }
}
