:root, [data-theme="light"] {
  --bg: #1a0c0e;
  --frame: #1a0c0e;
  --card: #f7f4ef;
  --ink: #f7f4ef;
  --muted: rgba(247, 244, 239, 0.68);
  --line: rgba(247, 244, 239, 0.16);
  --gold: #8c6d14;
  --gold-2: #8c6d14;
  --blue: #13598a;
  --blue-2: #1d7ec4;
  --red: #e10600;
  --paper: #f7f4ef;
  --field: #ffffff;
  --chip: #070707;
  --chip-text: #fff;
  --danger: #9c2f2a;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #09090b;
  --frame: #09090b;
  --card: #16161a;
  --ink: #f5f2ec;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --gold: #e4c56a;
  --gold-2: #f3e2a6;
  --blue: #3aa0e8;
  --blue-2: #9fd4ff;
  --paper: #121316;
  --field: #0c0c0e;
  --chip: #f6f1e8;
  --chip-text: #16130e;
  --danger: #ffb4ae;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  background: var(--frame);
  color: var(--ink);
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, .squad, .brand, .display, .figure {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wrap {
  --pad: 1.15rem;
  width: min(520px, calc(100% - 2.75rem));
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding: 0 var(--pad) 2rem;
}
@media (max-width: 560px) {
  .wrap { width: 100%; --pad: max(1rem, env(safe-area-inset-left)); }
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.4rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.top { flex-wrap: wrap; }
.brand span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn.solid, button.solid {
  background: var(--red);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.btn.blue { background: var(--blue); color: #041018; border-color: transparent; font-weight: 700; }

.hero { padding: 1.4rem 0 1rem; }
.kicker { margin: 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold); }
h1 { font-size: clamp(2.6rem, 10vw, 3.6rem); line-height: 0.9; margin: 0.4rem 0; }
.lede { max-width: 38rem; color: var(--muted); font-size: 1.15rem; }

.stage-lights {
  position: relative;
  margin: 1rem 0 1.4rem;
  padding: 1.2rem 1rem 0.8rem;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(228, 197, 106, 0.38), transparent 46%),
    radial-gradient(ellipse at 82% 0%, rgba(58, 160, 232, 0.4), transparent 46%),
    #101114;
  min-height: 320px;
}
.funded {
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin: 0 0 0.8rem;
}
.meters { display: flex; justify-content: center; gap: 1.4rem; align-items: flex-end; height: 250px; }
.truss { width: 74px; height: 100%; display: flex; flex-direction: column; align-items: center; }
.rail {
  position: relative;
  flex: 1;
  width: 46px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.16) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.35) 0 2px, transparent 2px 8px),
    linear-gradient(#3a3a40, #111114);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.16);
  overflow: hidden;
}
.lamp {
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 0;
  border-radius: 5px;
  transition: height 900ms cubic-bezier(.2,.8,.2,1);
}
.truss.gold .lamp { background: linear-gradient(#fff4cc, var(--gold) 30%, #8a6a22); box-shadow: 0 0 24px rgba(228,197,106,.8); }
.truss.blue .lamp { background: linear-gradient(#e8f6ff, var(--blue) 30%, #13598a); box-shadow: 0 0 24px rgba(58,160,232,.85); }
.truss b { display: block; margin-top: 0.45rem; font-size: 0.78rem; letter-spacing: 0.12em; }
.truss small { color: var(--muted); font-size: 0.72rem; }

.doors { display: grid; gap: 0.9rem; padding-bottom: 2.5rem; }
.door {
  position: relative;
  display: block;
  min-height: 460px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  isolation: isolate;
}
.door .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.door .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.72)); }
.door .mark { width: min(210px, 54%); margin: 1.4rem auto 0; display: block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.door .copy { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; }
.door .squad { display: block; font-size: clamp(2rem, 7vw, 3rem); line-height: 0.9; }
.door .where { display: block; margin-top: 0.25rem; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.92rem; }
.door.gold .where { color: var(--gold-2); }
.door.blue .where { color: var(--blue-2); }
.door .go { margin-top: 0.7rem; }

.panel {
  width: min(460px, calc(100% - 2rem));
  margin: 8vh auto 3rem;
  padding: 1.3rem;
  border: 1px solid rgba(7, 7, 7, 0.14);
  border-radius: 22px;
  background: var(--card);
  color: #070707;
}
label { display: block; margin: 0.8rem 0 0.3rem; font-size: 0.86rem; }
input, textarea, select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 0.75rem 0.8rem;
}
.stack { display: grid; gap: 0.6rem; margin-top: 1rem; }
.error { color: var(--danger); min-height: 1.2em; }
.note { color: var(--muted); font-size: 0.92rem; }

.studio {
  display: grid;
  gap: 0.8rem;
  padding-bottom: 2rem;
}
.thread, .canvas {
  border-radius: 20px;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}
.thread { background: #14161c; border: 1px solid var(--line); }
.canvas { background: #d9d3c8; color: #1c1915; }
.thread header, .canvas header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
}
.canvas header { background: #ece6dc; }
.msgs { flex: 1; overflow: auto; padding: 0.4rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; }
.bubble { max-width: 92%; padding: 0.7rem 0.8rem; border-radius: 16px; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: #1d3d55; }
.bubble.assistant { align-self: flex-start; background: #22242c; }
.composer { display: flex; gap: 0.4rem; padding: 0.7rem; border-top: 1px solid var(--line); }
.composer input { flex: 1; }
.letter {
  flex: 1;
  margin: 0.8rem;
  border: 0;
  border-radius: 14px;
  background: white;
  color: #1c1915;
  min-height: 420px;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.canvas .btn, .canvas select { color: #1c1915; border-color: rgba(0,0,0,.15); background: white; }
.canvas select { width: calc(100% - 1.6rem); margin: 0 0.8rem; }

.admin-grid { display: grid; gap: 0.9rem; padding-bottom: 2rem; }
.card { border: 1px solid rgba(7, 7, 7, 0.14); border-radius: 18px; padding: 1rem; background: var(--card); margin-top: 0.75rem; color: #070707; }
.card .note, .panel .note { color: #4a453f; }
input, textarea, select { color: #070707; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.45rem 0.2rem; border-bottom: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.welcome { text-align: center; padding-bottom: 0; }
.crest { display: flex; justify-content: center; gap: 0.6rem; padding-top: 1.6rem; }
.crest img { width: min(190px, 44vw); height: auto; }
.welcome .lede, .welcome .error { margin-left: auto; margin-right: auto; }
.welcome-panel { text-align: left; margin: 0.4rem auto 1rem; width: auto; }
.welcome h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
.social { margin: 0.2rem 0 0.4rem; }
.social a { color: var(--ink); }
.kicker.blue { color: var(--blue-2); }
.hero.tight { padding-bottom: 0.4rem; }
.hero.tight h1 { font-size: clamp(2rem, 6vw, 3.4rem); }

.tours { display: grid; gap: 0.8rem; padding-bottom: 2.5rem; }
.tour {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 128px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: #14161c;
  border: 1px solid var(--line);
}
.tour img { width: 128px; height: 100%; object-fit: cover; }
.tour > div { padding: 0.85rem 1rem; display: flex; flex-direction: column; justify-content: center; }
.tour .squad { font-size: 1.35rem; line-height: 1; }
.tour .where { margin-top: 0.25rem; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.tour.gold .where { color: var(--gold-2); }
.tour.blue .where { color: var(--blue-2); }
.meta { color: var(--muted); font-size: 0.88rem; margin-top: 0.35rem; }

.filters input { margin-bottom: 0.2rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.7rem 0 1rem; }
.chips a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 1rem;
}
.chips a.on { background: var(--chip); color: var(--chip-text); }
.list { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.biz { border: 1px solid rgba(7, 7, 7, 0.14); border-radius: 16px; padding: 0.85rem 0.95rem; background: var(--card); color: #070707; }
.biz.quiet { border-color: rgba(228, 197, 106, 0.5); }
.biz-top { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
.biz h2 { margin: 0; font-size: 1.55rem; line-height: 1; }
.biz p { margin: 0.35rem 0 0; }
.pill { display: inline-block; border-radius: 999px; padding: 0.05rem 0.5rem; background: rgba(20, 20, 20, 0.06); margin-right: 0.35rem; }
[data-theme="dark"] .pill { background: rgba(255, 255, 255, 0.08); }
.row-actions a { color: var(--gold-2); font-size: 0.88rem; }
.people { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.people li { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.people form { margin: 0; }
.people .btn { min-height: 34px; padding: 0.2rem 0.7rem; }

@media (min-width: 900px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .door { min-height: 520px; }
}

.word { font-family: Syne, Manrope, sans-serif; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; text-decoration: none; }
.brand, .nav a, .team, .draw-card, .chips a, .row-actions a { text-decoration: none; }
.hello { margin: 0.6rem 0 0; color: var(--muted); }
.tool-label {
  margin: 1.15rem 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hint { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.team {
  display: block;
  margin-bottom: 0.8rem;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
}
.team .shot { display: block; width: 100%; height: 150px; object-fit: cover; }
.team .pad { padding: 0.85rem 0.95rem 1rem; }
.team .id { display: flex; gap: 0.7rem; align-items: center; }
.team .id img { width: 72px; height: auto; }
.team .id strong { display: block; font-size: 1.35rem; line-height: 1; }
.team .id em { display: block; margin-top: 0.2rem; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.team.gold .id em { color: #8c6d14; }
.team.blue .id em { color: #1d7ec4; }
[data-theme="dark"] .team.gold .id em { color: #e4c56a; }
[data-theme="dark"] .team.blue .id em { color: #9fd4ff; }
.money-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.85rem; }
.money-row b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 2.6rem; letter-spacing: 0.02em; color: var(--red); }
.money-row span { color: var(--muted); font-size: 0.82rem; }
.track { height: 10px; border-radius: 99px; background: rgba(20, 20, 20, 0.08); overflow: hidden; margin: 0.35rem 0 0.55rem; }
[data-theme="dark"] .track { background: rgba(255, 255, 255, 0.12); }
.track > span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 900ms cubic-bezier(.2, .8, .2, 1); }
.team.gold .track > span, .squad-raise.gold .track > span { background: linear-gradient(90deg, #8c6d14, #e4c56a); }
.team.blue .track > span, .squad-raise.blue .track > span { background: linear-gradient(90deg, #13598a, #3aa0e8); }
.draw-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: #f7f4ef;
  background: #070707;
  border-radius: 22px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 1.4rem;
  border-bottom: 4px solid #e10600;
}
.draw-card img { width: 72px; height: auto; }
.draw-card strong { display: block; font-family: Syne, Manrope, sans-serif; font-size: 1.25rem; }
.draw-card span { display: block; margin-top: 0.2rem; color: rgba(255,255,255,.7); font-size: 0.88rem; }
.squad-bar {
  background: #070707;
  color: #fff;
  margin: 0 -0.15rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 0 0 20px 20px;
}
.squad-bar.gold { border-bottom: 4px solid #e4c56a; }
.squad-bar.blue { border-bottom: 4px solid #3aa0e8; }
.squad-bar .brand span, .squad-bar .nav a { color: rgba(255,255,255,.8); }
.squad-bar h1 { color: #fff; font-size: clamp(1.8rem, 8vw, 2.4rem); margin: 0.2rem 0 0; }
.squad-bar .where { margin: 0.15rem 0 0; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; }
.squad-bar.gold .where { color: #e4c56a; }
.squad-bar.blue .where { color: #9fd4ff; }
.squad-raise { padding: 0.9rem 0 0.2rem; }
.squad-raise b { font-family: Syne, Manrope, sans-serif; font-size: 2rem; }
.choice { display: flex; gap: 0.45rem; }
.choice button.on { background: var(--chip); color: var(--chip-text); border-color: transparent; }

.leopard {
  height: 22px;
  margin: 0 calc(var(--pad) * -1);
  background: #6e1016 url("/assets/leopard-bar.jpg") center / auto 22px no-repeat;
}
.mast-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin-top: 0.2rem;
}
.mast-bar .mast-nav {
  top: 0;
  bottom: 0;
  height: auto;
}
.mast-bar .powered-live {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 9.5rem);
  gap: 0.35rem;
  padding: 0;
}
.mast-bar .powered-live p { font-size: 1.02rem; }
.mast-bar .powered-live canvas { width: 6.5rem; }
.powered-live {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0 0.15rem;
}
.powered-live p {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: inherit;
}
.powered-live canvas {
  width: 8.75rem;
  height: auto;
  aspect-ratio: 520 / 88;
  display: block;
  flex: none;
}
.powered-live video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.mast { position: relative; text-align: center; padding: 0.85rem 0 0.2rem; }
.mast-bar + .mast { padding-top: 0.15rem; }
.mast::before,
.welcome::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(28rem, 150%);
  height: 15.5rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(225, 6, 0, 0.55), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.welcome { position: relative; }
.squad-page.gold .mast::before,
.squad-page.blue .mast::before {
  width: 18rem;
  height: 9rem;
  top: 0.55rem;
}
.squad-page.gold .mast::before {
  background: radial-gradient(ellipse at center, rgba(228, 197, 106, 0.92) 0%, rgba(228, 197, 106, 0.4) 36%, transparent 70%);
}
.squad-page.blue .mast::before {
  background: radial-gradient(ellipse at center, rgba(58, 160, 232, 0.88) 0%, rgba(58, 160, 232, 0.34) 36%, transparent 70%);
}
.mast-nav {
  position: absolute;
  top: 0.45rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mast-nav a {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #070707;
  text-decoration: none;
  padding: 5px;
  box-sizing: border-box;
}
.mast-nav a[aria-label="Settings"] { background: #f7f4ef; border: 1px solid #070707; }
.mast-nav a[aria-current="page"] { box-shadow: 0 0 0 2px #e10600; }
.mast-nav img { width: 100%; height: 100%; object-fit: contain; display: block; }
.squad-page .mast-nav a { background: #070707; }
.squad-page .mast-nav a[aria-label="Settings"] { background: #f7f4ef; }
.mark-group { margin-top: 1.15rem; }
.mark-group h3 {
  margin: 0;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.mark-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 0.55rem; }
.mark-row a { text-decoration: none; color: inherit; text-align: center; }
.mark-row img { width: 100%; height: auto; display: block; }
.mark-row.shots { grid-template-columns: 1fr 1fr; }
.mark-row.shots img {
  height: 148px;
  object-fit: contain;
  background: #141210;
}
.mark-row.shots a:only-child { grid-column: 1 / -1; }
.mark-row.shots a:only-child img { height: auto; }
.mark-row span {
  display: block;
  margin-top: 0.35rem;
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.mast-logo {
  width: min(218px, 62vw);
  height: auto;
  margin: 0.15rem auto 0.15rem;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(225, 6, 0, 0.8));
}
.squad-page.gold .mast-logo { filter: drop-shadow(0 0 26px rgba(228, 197, 106, 0.95)); }
.squad-page.blue .mast-logo { filter: drop-shadow(0 0 26px rgba(58, 160, 232, 0.95)); }
.records-rule {
  height: 5px;
  margin: 0.1rem calc(var(--pad) * -1) 0.9rem;
  background: linear-gradient(90deg, #e4c56a 0 50%, #3aa0e8 50% 100%);
}
.club-block { margin: 1.7rem 0 0; }
.club-block > .display { margin-top: 0; }
.club-section { margin: 1.15rem 0 0; }
.club-section h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 5.5vw, 1.8rem);
  line-height: 0.95;
}
.club-section .red-btn { margin-top: 0.15rem; }
.mast-hello { margin: 0.2rem 0 0; font-size: 1.2rem; }
.display { font-size: clamp(2.1rem, 8vw, 2.8rem); line-height: 0.88; margin: 0.7rem 0 0.55rem; }
.record { display: block; text-decoration: none; color: inherit; margin-bottom: 1.6rem; }
.fullshot { display: block; width: calc(100% + (var(--pad) * 2)); max-width: none; height: auto; margin: 0 calc(var(--pad) * -1); }
.record-copy { display: flex; gap: 0.85rem; align-items: center; padding: 0.9rem 0 0.2rem; }
.team-mark { width: 92px; height: auto; flex: none; }
.eyebrow {
  margin: 0;
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
}
.record h2 { margin: 0.05rem 0 0; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 0.9; }
.figure { margin: 0.25rem 0 0; font-size: 2.4rem; line-height: 1; color: var(--red); }
.record-note { margin: 0.55rem 0 0; font-size: 1.15rem; }
.red-btn {
  display: inline-flex;
  margin-top: 0.9rem;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
}
.draw-open { padding-bottom: 0.4rem; border-top: 4px solid var(--red); padding-top: 0.9rem; }
.powered {
  margin: 0.9rem 0 0.35rem;
  text-align: center;
}
.powered img { height: 18px; width: auto; display: inline-block; background: #f7f4ef; padding: 0.35rem 0.65rem; border-radius: 6px; }
.poster {
  position: relative;
  display: block;
  margin: 0 calc(var(--pad) * -1) 0.85rem;
  color: #fff;
  transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
  transform: translateZ(0);
}
.poster.is-pressed {
  transition-duration: 0.12s;
}
.biz {
  transition: transform 0.18s cubic-bezier(.2, .8, .2, 1);
}
.biz.is-pressed { transform: scale(0.98) translateY(3px); }
@media (prefers-reduced-motion: reduce) {
  .poster, .biz { transition: none; }
}
.poster .fullshot { width: 100%; margin: 0; }
.poster.gold::after,
.poster.blue::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 78%;
  z-index: 1;
  pointer-events: none;
}
.poster.gold::after {
  background: radial-gradient(ellipse at 50% 30%, rgba(228, 197, 106, 0.62), transparent 60%);
}
.poster.blue::after {
  background: radial-gradient(ellipse at 50% 30%, rgba(58, 160, 232, 0.58), transparent 60%);
}
.poster-logo {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 40%;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  z-index: 2;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}
.poster.gold .poster-logo {
  filter: drop-shadow(0 0 18px rgba(228, 197, 106, 0.95)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}
.poster.blue .poster-logo {
  filter: drop-shadow(0 0 18px rgba(58, 160, 232, 0.95)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}
.poster-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}
.poster-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.7rem;
}
.poster-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  min-width: 0;
  color: #fff;
  text-transform: uppercase;
  line-height: 0.88;
}
.poster-kicker {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(1.45rem, 6.4vw, 1.85rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.poster-place {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2.45rem, 11vw, 3.15rem);
  letter-spacing: 0.03em;
  line-height: 0.86;
}
.poster .figure { color: #fff; font-size: 2.15rem; margin: 0 0 0.12rem; line-height: 0.9; }
.poster .track { background: rgba(255, 255, 255, 0.3); margin: 0.45rem 0 0; height: 8px; }
.poster.gold .track > span { background: linear-gradient(90deg, #c9a24a, #f3de9a); }
.poster.blue .track > span { background: linear-gradient(90deg, #3aa0e8, #b9e2ff); }
.winner-list { list-style: none; margin: 0.35rem 0 0.2rem; padding: 0; border-top: 4px solid var(--red); }
.winner-list li { padding: 0.55rem 0 0.6rem; border-bottom: 1px solid var(--line); }
.draw-name { margin: 0.1rem 0 0; font-size: 1.2rem; }
.draw-next { color: var(--muted); }
.mast.slim { padding: 0.15rem 0 0; }
.mast.slim .mast-logo { width: min(72px, 22vw); margin: 0.1rem auto; }
.list-title {
  margin: 0.05rem 0 0.15rem;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 0.95;
}
.squad-raise .money-row { margin-top: 0.35rem; }
.stat-lines { list-style: none; margin: 0.15rem 0 0.35rem; padding: 0; }
.stat-lines a {
  display: block;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-size: 1.08rem;
  line-height: 1.25;
}
.stat-lines a.on { color: var(--red); }
.add-fab {
  position: sticky;
  top: 0.45rem;
  z-index: 4;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  margin: 0.15rem 0 0.55rem;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.wrap.welcome {
  height: 100dvh;
  min-height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0.45rem;
}
.welcome .mast-logo { width: min(136px, 40vw); margin-top: 0.2rem; }
.welcome .display { font-size: clamp(1.55rem, 5.6vw, 2rem); margin: 0.15rem 0; }
.welcome .lede { font-size: 0.98rem; line-height: 1.3; margin: 0; }
.welcome .error { min-height: 0; margin: 0.15rem 0; }
.welcome-panel { margin: 0.25rem 0; padding: 0.65rem 0.75rem; }
.welcome label { margin: 0.35rem 0 0.12rem; }
.welcome input { padding: 0.45rem 0.65rem; }
.welcome .stack { margin-top: 0.4rem; gap: 0.35rem; }
.welcome .btn { min-height: 38px; }
.welcome .social { margin: 0.15rem 0; font-size: 0.98rem; }
.welcome .powered { margin: 0; }

.squad-page { color: #070707; }
.squad-page .note, .squad-page .money-row span { color: #4a453f; }
.squad-page .stat-lines a, .squad-page .chips a { border-color: rgba(7, 7, 7, 0.14); }
.squad-page .wrap { position: relative; z-index: 1; background: transparent; }
.drift, .drift-mist {
  position: fixed;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(520px, calc(100% - 2.75rem));
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 560px) {
  .drift, .drift-mist {
    width: 100%;
    left: 0;
    transform: none;
  }
}
.drift {
  background-position: center 10%;
  background-size: cover;
  background-repeat: no-repeat;
  animation: tc-drift 72s ease-in-out infinite alternate;
}
.drift-mist { background: rgba(247, 244, 239, 0.78); }
.squad-page.gold .drift-mist {
  background:
    linear-gradient(180deg, rgba(247, 244, 239, 0.7), rgba(247, 244, 239, 0.84)),
    linear-gradient(180deg, rgba(228, 186, 74, 0.28), rgba(140, 90, 16, 0.18));
}
.squad-page.blue .drift-mist {
  background:
    linear-gradient(180deg, rgba(247, 244, 239, 0.7), rgba(247, 244, 239, 0.84)),
    linear-gradient(180deg, rgba(46, 150, 224, 0.28), rgba(14, 70, 120, 0.2));
}
@keyframes tc-drift {
  from { background-position: center 8%; }
  to { background-position: center 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .drift { animation: none; }
}
.team-mast { padding-top: 0.35rem; }
.team-logo { width: min(188px, 54vw); margin: 0.15rem auto 0.1rem; }
.squad-page .biz,
.squad-page .card,
.squad-page .filters input {
  background: rgba(255, 255, 255, 0.94);
}
.squad-page.gold .biz { border-color: rgba(180, 132, 28, 0.45); border-left: 4px solid #c9a24a; }
.squad-page.blue .biz { border-color: rgba(29, 126, 196, 0.4); border-left: 4px solid #1d7ec4; }
.squad-page.gold .add-fab,
.squad-page.gold .btn.solid,
.squad-page.gold .chips a.on {
  background: #c9a24a;
  color: #1a1408;
}
.squad-page.blue .add-fab,
.squad-page.blue .btn.solid,
.squad-page.blue .chips a.on {
  background: #1d7ec4;
  color: #fff;
}
.squad-page.gold .stat-lines a.on,
.squad-page.gold .row-actions a,
.squad-page.gold .money-row b { color: #8c6d14; }
.squad-page.blue .stat-lines a.on,
.squad-page.blue .row-actions a,
.squad-page.blue .money-row b { color: #13598a; }
.squad-page.gold .pill { background: rgba(201, 162, 74, 0.28); }
.squad-page.blue .pill { background: rgba(46, 150, 224, 0.22); }
.squad-page.gold input:focus,
.squad-page.gold select:focus,
.squad-page.gold textarea:focus { outline: 2px solid #c9a24a; }
.squad-page.blue input:focus,
.squad-page.blue select:focus,
.squad-page.blue textarea:focus { outline: 2px solid #1d7ec4; }
