:root {
  color-scheme: light;
  --paper: #f1f2eb;
  --surface: #fff;
  --ink: #151713;
  --muted: #686b62;
  --line: #dcded4;
  --lime: #ccff00;
  --lime-dark: #87a900;
  --focus: #315cff;
  --header-height: 58px;
  --nav-height: calc(68px + env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--paper); color: var(--ink); }
body { min-width: 320px; overflow: hidden; }
button, input, textarea { font: inherit; }
select { font: inherit; }
button { color: inherit; }
button, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, canvas:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 22%);
  outline-offset: 3px;
}
select:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus), transparent 22%); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .56; }

.preview-strip {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-bottom: 1px solid #d7d9cf;
  background: #e7e8e1;
  color: #55584f;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}

.app-layout { height: calc(100dvh - 28px); display: grid; grid-template-columns: minmax(0, 1fr); }
.app-surface {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: var(--header-height) auto minmax(0, 1fr) var(--nav-height);
  background: var(--surface);
  overflow: hidden;
}
.app-surface.no-tabs { grid-template-rows: var(--header-height) minmax(0, 1fr) var(--nav-height); }
.app-surface.focus-open { grid-template-rows: var(--header-height) minmax(0, 1fr); }
.app-surface.no-tabs #feed-tabs, .app-surface.focus-open #bottom-nav { display: none; }

.app-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  z-index: 5;
}
.brand, .desktop-brand {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 27px;
  letter-spacing: -.02em;
}
.brand-mark { position: relative; display: inline-block; }
.brand-mark::after { content: ""; position: absolute; right: -8px; bottom: 1px; width: 7px; height: 7px; background: var(--lime); }
.header-action, .back-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.header-action { padding: 0 8px; }
.header-action .icon-wrap { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.back-button, .header-spacer { width: 44px; flex: none; }
.active-header-copy { min-width: 0; flex: 1; padding: 0 8px; text-align: center; }
.active-header-copy strong, .active-header-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.active-header-copy strong { font-size: 14px; }
.active-header-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; }

.feed-tabs, .segment-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--line); background: var(--surface); }
.feed-tabs { height: 46px; }
.tab-button { min-height: 44px; position: relative; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.tab-button[aria-selected="true"] { color: var(--ink); }
.tab-button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 40px; height: 3px; transform: translateX(-50%); background: var(--ink); }

#main { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#main.feed-main { scroll-snap-type: y proximity; }
.feed { padding: 0 10px 30px; }
.play-card { padding: 14px 0 9px; scroll-snap-align: start; }
.creator-row { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 3px 10px; }
.creator-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: Impact, sans-serif; font-size: 17px; }
.creator-copy { min-width: 0; flex: 1; }
.creator-copy strong, .creator-copy span { display: block; }
.creator-copy strong { font-size: 14px; }
.creator-copy span { margin-top: 2px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.follow-button { min-width: 76px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 850; cursor: pointer; }
.follow-button[aria-pressed="true"] { border-color: var(--line); color: var(--muted); }

.artifact { position: relative; overflow: hidden; min-height: 440px; border-radius: 18px; isolation: isolate; }
.artifact-topline { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.artifact-topline > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact-topline button { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; flex: none; border: 0; background: transparent; color: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.artifact-topline .icon { width: 16px; height: 16px; }
.visual-canvas { display: block; width: 100%; touch-action: pan-y; }
.artifact.is-focused { min-height: min(620px, calc(100dvh - 210px)); border-radius: 0; }

.market-artifact { background: #060913; color: #f9fbf4; }
.market-artifact .artifact-topline { position: relative; z-index: 3; border-bottom: 1px solid rgba(255,255,255,.1); color: #c8cec3; }
.market-stage { height: 292px; position: relative; overflow: hidden; }
.market-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,9,19,.05), rgba(6,9,19,.45)); }
.market-stage .visual-canvas { position: absolute; inset: 0; height: 100%; }
.market-copy { position: absolute; z-index: 2; left: 18px; top: 18px; pointer-events: none; }
.market-copy p, .career-heading p, .toy-heading p { margin: 0 0 6px; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.market-copy h2, .career-heading h2, .toy-heading h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-style: italic; font-weight: 900; line-height: .88; letter-spacing: -.025em; }
.market-copy h2 { font-size: clamp(42px, 13vw, 60px); text-transform: uppercase; }
.market-values { position: absolute; z-index: 2; right: 14px; bottom: 13px; display: flex; gap: 14px; }
.market-values span { display: grid; gap: 2px; color: #ccd0c8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.market-values strong { color: #fff; font-size: 17px; }

.artifact-controls { position: relative; z-index: 2; }
.market-controls { display: grid; gap: 14px; padding: 15px 16px 17px; background: #0d111c; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.segmented button, .compare-button, .toy-controls button { min-height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: transparent; color: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.segmented button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.artifact-controls label { display: grid; gap: 8px; font-size: 11px; font-weight: 750; }
.artifact-controls label > span { display: flex; justify-content: space-between; }
input[type="range"] { width: 100%; height: 24px; margin: 0; accent-color: var(--lime); cursor: pointer; }

.career-artifact { padding-bottom: 14px; background: #251543; color: #fff; }
.career-artifact::before { content: ""; position: absolute; width: 220px; height: 220px; left: -90px; top: 70px; z-index: -1; border-radius: 50%; background: #fe7148; filter: blur(80px); opacity: .28; }
.career-artifact .artifact-topline { color: #d7cceb; }
.career-heading { padding: 13px 18px 0; }
.career-heading p { color: #8bf5ff; }
.career-heading h2 { font-size: clamp(38px, 12vw, 56px); }
.career-canvas { height: 190px; }
.career-readout { min-height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 11px; }
.career-readout span { margin-right: auto; color: #d7cceb; font-weight: 800; }
.career-readout strong { font-size: 12px; }
.player-a { color: #8bf5ff; }
.player-b { color: #ff875f; }
.career-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 12px 18px 0; }
.compare-button { min-width: 112px; padding: 0 10px; }
.compare-button[aria-pressed="true"] { border-color: #8bf5ff; background: rgba(139,245,255,.12); }

.toy-artifact { padding-bottom: 14px; background: #ffe669; color: #163826; }
.toy-artifact .artifact-topline { color: #3e5a48; }
.toy-heading { min-height: 78px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 16px; }
.toy-heading h2 { font-size: clamp(34px, 10vw, 48px); }
.toy-heading > span { display: grid; flex: none; margin-top: 7px; text-align: right; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.toy-heading > span strong { font-size: 28px; line-height: 1; }
.toy-canvas { width: calc(100% - 24px); height: 220px; margin: 0 12px; border: 2px solid #163826; border-radius: 12px; cursor: pointer; }
.toy-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 14px 16px 0; }
.toy-controls input[type="range"] { accent-color: #163826; }
.toy-controls > div { display: flex; gap: 6px; }
.toy-controls button { min-width: 64px; padding: 0 9px; border-color: rgba(22,56,38,.42); }
.toy-controls button[aria-pressed="true"] { background: #163826; color: #fff; }
.gesture-note { margin: 8px 16px 0; font-size: 11px; line-height: 1.4; opacity: .76; }

.pulse-artifact { padding-bottom: 14px; background: #111412; color: #fff; }
.pulse-artifact .artifact-topline { border-bottom: 1px solid rgba(255,255,255,.12); color: #bfc6bb; }
.pulse-heading { min-height: 96px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px 9px; }
.pulse-heading p { margin: 0 0 5px; color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.pulse-heading h2 { max-width: 290px; margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(39px, 12vw, 56px); font-style: italic; line-height: .9; letter-spacing: -.025em; }
.pulse-heading > span { display: grid; flex: none; color: #aeb5aa; font-size: 10px; font-weight: 850; text-align: right; text-transform: uppercase; }
.pulse-heading > span strong { color: #fff; font-size: 28px; line-height: 1; }
.pulse-status { min-height: 40px; display: flex; align-items: center; padding: 0 18px; color: #d8ddd4; font-size: 12px; font-weight: 750; }
.pulse-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 16px; }
.pulse-pad { min-height: 92px; display: grid; place-items: center; gap: 1px; padding: 8px; border: 2px solid transparent; border-radius: 10px; color: #111412; cursor: pointer; transition: filter 100ms linear, transform 100ms linear, border-color 100ms linear; }
.pulse-pad span { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 27px; line-height: 1; }
.pulse-pad small { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.pulse-pad:disabled { opacity: .72; cursor: default; }
.pulse-pad-0 { background: #ccff00; }
.pulse-pad-1 { background: #ff6d42; }
.pulse-pad-2 { background: #70e4f2; }
.pulse-pad-3 { background: #d09bff; }
.pulse-pad.is-active { border-color: #fff; filter: brightness(1.35); transform: scale(.96); }
.pulse-progress { display: flex; justify-content: space-between; padding: 10px 18px 0; color: #bfc6bb; font-size: 11px; font-weight: 800; }
.pulse-progress strong { color: #fff; }
.pulse-controls { display: grid; grid-template-columns: 1fr; gap: 7px; padding: 10px 16px 0; }
.pulse-start, .pulse-next { min-height: 46px; border: 1px solid var(--lime); border-radius: 6px; background: var(--lime); color: var(--ink); font-weight: 900; cursor: pointer; }
.pulse-next { border-color: #fff; background: transparent; color: #fff; }

.higher-lower-artifact { padding-bottom: 14px; background: #171915; color: #fff; }
.higher-lower-artifact .artifact-topline { border-bottom: 1px solid rgba(255,255,255,.13); color: #c7ccc3; }
.hl-score { min-height: 54px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.hl-score span { display: grid; gap: 2px; text-align: center; color: #aeb4aa; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.hl-score strong { color: #fff; font-size: 16px; }
.hl-versus { min-height: 222px; display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: stretch; padding: 14px; }
.hl-versus section { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 12px; border-radius: 10px; background: #d8ff42; color: #111510; }
.hl-versus section:last-child { background: #ff6d42; }
.hl-versus small { margin-bottom: auto; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.hl-versus h2 { margin: 14px 0 9px; overflow-wrap: anywhere; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(25px, 8vw, 38px); font-style: italic; line-height: .9; }
.hl-versus strong { font-size: clamp(38px, 12vw, 58px); line-height: 1; }
.hl-versus span { font-size: 10px; font-weight: 850; text-transform: uppercase; }
.hl-versus > b { align-self: center; z-index: 1; margin: 0 -7px; padding: 7px 0; border-radius: 50%; background: #fff; color: #111510; font-size: 10px; text-align: center; }
.hl-status { min-height: 48px; margin: 0; padding: 9px 16px; color: #d6dad2; font-size: 12px; font-weight: 750; line-height: 1.4; }
.hl-status.is-correct { color: var(--lime); }
.hl-status.is-wrong { color: #ff8c72; }
.hl-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 14px; }
.hl-controls button { min-height: 46px; border: 1px solid var(--lime); border-radius: 6px; background: var(--lime); color: var(--ink); font-weight: 900; cursor: pointer; }
.hl-controls button:only-child, .hl-controls .quiet-control:last-child { grid-column: 1 / -1; }
.hl-controls .quiet-control { border-color: #555b52; background: transparent; color: #fff; }

.compare-artifact { padding-bottom: 15px; background: #10281f; color: #fff; }
.compare-artifact .artifact-topline { color: #c0d0c7; }
.compare-head { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 6px; padding: 8px 14px 15px; text-align: center; }
.compare-head > div { min-width: 0; display: grid; justify-items: center; gap: 6px; }
.compare-head > span { font-size: 10px; font-weight: 900; }
.compare-head select, .career-names select { width: 100%; min-height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: #17372b; color: #fff; font-size: 11px; font-weight: 800; text-overflow: ellipsis; }
.compare-head small { color: #b9cbc1; font-size: 10px; }
.team-crest { width: 58px; height: 58px; display: grid; place-items: center; object-fit: contain; }
.crest-fallback { border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; font-size: 13px; font-weight: 900; }
.metric-switch { display: flex; gap: 6px; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; }
.metric-switch button { min-height: 44px; flex: none; padding: 0 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: transparent; color: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.metric-switch button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.chart-title { margin: 0; padding: 2px 16px 10px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 31px; font-style: italic; }
.paired-chart { display: grid; gap: 12px; padding: 5px 16px 12px; }
.paired-chart > div { display: grid; grid-template-columns: 78px minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.paired-chart span { overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.paired-chart strong { font-size: 17px; text-align: right; }
.paired-chart strong.winner { color: var(--lime); }
.bar-track { display: block; width: 100%; height: 16px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.1); }
.bar-track .bar-fill { fill: #fff; }
.paired-chart > div:first-child .bar-fill { fill: #caff45; }
.bar-zero { stroke: #ffffffaa; stroke-width: 0.6; }

.know-ball-artifact { padding: 18px 20px 16px; background: #131512; color: #fff; }
.know-ball-artifact .artifact-topline { margin: -18px -20px 20px; border-bottom: 1px solid rgba(255,255,255,.12); color: #c4cac0; }
.know-ball-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 26px; border: 2px solid var(--lime); border-radius: 50%; color: var(--lime); font-family: Impact, sans-serif; font-size: 23px; transform: rotate(-7deg); }
.know-ball-artifact .section-kicker { color: var(--lime); }
.know-ball-artifact h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(68px, 21vw, 94px); font-style: italic; line-height: .77; text-transform: uppercase; }
.know-ball-format { margin: 25px 0; color: #c3c9bf; font-size: 14px; font-weight: 850; }
.know-ball-format span { padding: 0 8px; color: var(--lime); }
.know-ball-launch, .confirm-picks { width: 100%; min-height: 50px; border: 1px solid var(--lime); border-radius: 6px; background: var(--lime); color: var(--ink); font-weight: 900; cursor: pointer; }
.know-ball-progress { display: flex; justify-content: space-between; margin-bottom: 14px; color: #c3c9bf; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.know-ball-progress strong { color: var(--lime); }
.know-ball-clues, .know-ball-results { display: grid; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.know-ball-clues li, .know-ball-results li { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 5px; background: rgba(255,255,255,.05); font-size: 12px; font-weight: 750; }
.know-ball-clues li span { width: 23px; height: 23px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 10px; }
.know-ball-results li { justify-content: space-between; }
.know-ball-results strong { color: var(--lime); }
.know-ball-guess { display: grid; gap: 5px; margin-bottom: 9px; color: #c3c9bf; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.know-ball-guess select { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid #62675d; border-radius: 5px; background: #fff; color: var(--ink); font-size: 14px; text-transform: none; }
.know-ball-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.know-ball-secondary button { min-height: 44px; border: 1px solid #62675d; border-radius: 5px; background: transparent; color: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.know-ball-answer { overflow-wrap: anywhere; font-size: clamp(42px, 13vw, 66px) !important; }
.know-ball-verdict { margin: 18px 0; color: var(--lime); font-size: 17px; font-weight: 900; }
.know-ball-score { margin-bottom: 18px !important; color: var(--lime); }
.know-ball-score small { margin-left: 8px; color: #fff; font-family: inherit; font-size: .32em; }

.real-market-artifact { padding-bottom: 14px; background: #070a12; color: #fff; }
.real-market-artifact .artifact-topline { border-bottom: 1px solid rgba(255,255,255,.1); color: #bbc0ba; }
.market-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 18px 5px; }
.market-teams > div { display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 850; text-align: center; }
.market-teams p { color: #929891; font-size: 9px; text-align: center; text-transform: uppercase; }
.market-teams .team-crest { width: 48px; height: 48px; }
.market-readout { display: grid; justify-items: center; padding: 4px 14px 0; }
.market-readout small { color: #b8beb6; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.market-readout strong { color: var(--lime); font-family: Impact, sans-serif; font-size: 54px; font-style: italic; line-height: 1.1; }
.market-readout span { color: #b8beb6; font-size: 10px; }
.market-line { width: calc(100% - 28px); height: 112px; margin: 3px 14px; overflow: visible; }
.market-line path { fill: none; stroke: var(--lime); stroke-width: 2; vector-effect: non-scaling-stroke; }
.market-line line { stroke: #fff; stroke-width: 1; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.market-scrubber { display: grid; gap: 5px; padding: 0 16px; color: #c8cec6; font-size: 10px; font-weight: 800; }

.picks-artifact { padding-bottom: 14px; background: #f4efe1; color: #181914; }
.picks-artifact .artifact-topline { border-bottom: 1px solid #d8d1bd; color: #5e6259; }
.picks-heading { position: relative; padding: 14px 15px 8px; }
.picks-heading p { margin: 0 0 4px; color: #66723f; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.picks-heading h2 { margin: 0; font-family: Impact, sans-serif; font-size: 37px; font-style: italic; }
.picks-heading > span { position: absolute; right: 15px; top: 17px; padding: 5px 8px; border-radius: 999px; background: #e0e7c6; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.practice-toggle { min-height: 40px; margin: 0 12px 10px; padding: 0 12px; border: 1px solid #1b2114; border-radius: 5px; background: transparent; font-size: 11px; font-weight: 900; cursor: pointer; }
.fixture-list { display: grid; gap: 8px; padding: 0 12px 10px; }
.fixture-list fieldset { min-width: 0; margin: 0; padding: 9px; border: 1px solid #d5cebb; border-radius: 8px; background: rgba(255,255,255,.56); }
.fixture-list legend { padding: 0 5px; color: #66695f; font-size: 9px; font-weight: 800; }
.fixture-names { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; font-size: 11px; text-align: center; }
.fixture-names span { color: #7c7f75; font-size: 9px; }
.pick-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.pick-options button, .shared-preview button { min-height: 44px; border: 1px solid #bbb5a5; border-radius: 5px; background: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.pick-options button[aria-pressed="true"] { border-color: #1b2114; background: #1b2114; color: var(--lime); }
.fixture-list fieldset > small { display: block; margin-top: 8px; color: #66695f; font-size: 9px; line-height: 1.35; }
.confirm-picks { width: calc(100% - 24px); margin: 0 12px; background: #1b2114; color: var(--lime); border-color: #1b2114; }
.shared-preview { margin: 0 12px 10px; padding: 10px; border: 1px dashed #969c7a; }
.shared-preview strong, .shared-preview p { display: block; margin: 0 0 5px; font-size: 11px; }
.shared-preview button { width: 100%; }

.career-compare-artifact { background: #291848; }
.career-names { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 6px; padding: 10px 14px; }
.career-names b { font-size: 9px; text-align: center; }
.career-title { padding: 2px 16px 10px; }
.career-title p { margin: 0 0 5px; color: #8bf5ff; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.career-title h2 { margin: 0; font-family: Impact, sans-serif; font-size: clamp(30px, 9vw, 44px); font-style: italic; line-height: .88; }
.career-title i { color: #ff875f; font-family: inherit; font-size: .65em; }

.card-footer { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
.signal-row { min-height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 11px; border-bottom: 1px solid var(--line); color: #4f534b; font-size: 11px; }
.signal-row strong { color: var(--ink); font-size: 12px; }
.signal-row small { margin-left: auto; color: var(--muted); font-size: 10px; }
.expand-button { width: calc(100% - 20px); min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 850; cursor: pointer; }
.action-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.action-button { min-width: 0; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 2px; border: 0; background: transparent; color: #53564f; font-size: 11px; font-weight: 750; cursor: pointer; }
.action-button[aria-pressed="true"] { color: var(--ink); }
.action-button[aria-pressed="true"] svg { fill: var(--lime); }
.icon { width: 19px; height: 19px; flex: none; display: block; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.primary-button, .secondary-button, .danger-button { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border-radius: 6px; font-size: 14px; font-weight: 850; cursor: pointer; }
.primary-button { border: 1px solid var(--lime); background: var(--lime); color: var(--ink); }
.secondary-button { border: 1px solid var(--ink); background: #fff; }
.danger-button { border: 1px solid #b92525; background: #fff; color: #a11f1f; }
.compact-button { width: auto; min-height: 44px; }
.text-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: #4b5144; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.empty-state, .end-state { padding: 50px 22px; text-align: center; }
.end-state { margin-top: 12px; border-top: 1px solid var(--line); }
.empty-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 19px; background: var(--lime); }
.empty-state h2, .end-state h2, .screen-title { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-style: italic; letter-spacing: -.015em; }
.empty-state h2, .end-state h2 { font-size: 28px; }
.empty-state p, .end-state p { max-width: 350px; margin: 10px auto 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.screen { min-height: 100%; padding: 25px 15px 38px; }
.section-kicker { margin: 0 0 7px; color: #586242; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.screen-title { max-width: 400px; font-size: 39px; line-height: .98; }
.screen-intro { margin: 10px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-field { position: relative; margin-bottom: 12px; }
.search-field .icon { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.search-field input, .field input, .field textarea { width: 100%; min-height: 48px; border: 1px solid #c9ccc1; border-radius: 7px; background: #fff; color: var(--ink); font-size: 16px; }
.search-field input { padding: 0 14px 0 44px; }
.filter-row { display: flex; gap: 8px; padding-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.filter-chip { min-height: 44px; flex: none; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.filter-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.result-list, .drawer-list { display: grid; gap: 10px; }
.result-item { width: 100%; min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: pointer; }
.mini-mark { width: 58px; height: 58px; flex: none; border-radius: 7px; background: #080b12 radial-gradient(circle at 32% 48%, #ccff00 0 18%, transparent 20%); }
.mini-mark.career-trails { background: linear-gradient(135deg, #fe7148, #251543 50%, #8bf5ff); }
.mini-mark.touchline-toy { background: #ffe669 radial-gradient(circle at 55% 42%, #fff 0 13%, #163826 14% 17%, transparent 18%); }
.mini-mark.pulse-match { background: conic-gradient(#ccff00 0 25%, #ff6d42 0 50%, #70e4f2 0 75%, #d09bff 0); }
.mini-mark.higher-or-lower { background: linear-gradient(90deg, #d8ff42 0 50%, #ff6d42 50%); }
.mini-mark.team-compare { background: #10281f linear-gradient(135deg, transparent 40%, #ccff00 41% 48%, transparent 49%); }
.mini-mark.know-ball { background: #131512 radial-gradient(circle, transparent 0 31%, #ccff00 32% 36%, transparent 37%); }
.mini-mark.market-view { background: #070a12 linear-gradient(150deg, transparent 0 45%, #ccff00 46% 51%, transparent 52%); }
.mini-mark.matchday-picks { background: repeating-linear-gradient(135deg, #f4efe1 0 10px, #1b2114 11px 13px); }
.mini-mark.career-compare { background: linear-gradient(135deg, #ff875f, #291848 50%, #8bf5ff); }
.result-copy { min-width: 0; flex: 1; }
.result-copy strong, .result-copy span { display: block; }
.result-copy strong { font-size: 14px; }
.result-copy span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.create-main { background: #171a16; }
.create-screen { min-height: 100%; padding: clamp(24px, 6vw, 50px) 16px 44px; background: #171a16; color: #fff; }
.create-screen .section-kicker { color: var(--lime); }
.create-screen > h2 { max-width: 430px; margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(43px, 13vw, 68px); font-style: italic; line-height: .9; letter-spacing: -.025em; }
.create-intro { margin: 15px 0 28px; color: #bfc3b9; font-size: 15px; }
.original-preview { margin-bottom: 18px; padding: 14px; border: 1px solid #464b42; border-radius: 9px; background: #20241e; }
.original-preview span, .original-preview strong, .original-preview p { display: block; }
.original-preview span { color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.original-preview strong { margin-top: 6px; font-size: 18px; }
.original-preview p { margin: 5px 0 10px; color: #bfc3b9; font-size: 12px; line-height: 1.45; }
.original-preview button { min-height: 40px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 12px; font-weight: 850; text-decoration: underline; cursor: pointer; }
.idea-form > label { display: block; margin-bottom: 8px; color: #daddd4; font-size: 12px; font-weight: 850; }
.idea-form textarea { width: 100%; min-height: 210px; resize: vertical; padding: 17px; border: 1px solid #51564c; border-radius: 10px; background: #22261f; color: #fff; font-size: 18px; line-height: 1.45; }
.idea-form textarea::placeholder { color: #858a80; }
.prompt-meta { display: flex; justify-content: space-between; margin-top: 7px; color: #9ca196; font-size: 11px; }
.generation-note { display: flex; gap: 10px; margin: 23px 0 18px; padding: 14px; border: 1px solid #3d4239; border-radius: 8px; background: #1d201b; }
.status-dot { width: 9px; height: 9px; flex: none; margin-top: 5px; border-radius: 50%; background: #f6b94a; }
.generation-note strong { font-size: 13px; }
.generation-note p { margin: 4px 0 0; color: #aeb2aa; font-size: 12px; line-height: 1.45; }
.create-actions { display: grid; gap: 9px; }
.create-actions .secondary-button { border-color: #555b50; background: #22261f; color: #c7cbc2; }
.create-actions .text-button { color: #aeb2aa; }

.profile-card { display: flex; align-items: center; gap: 13px; margin: 19px 0 22px; padding: 15px; border: 1px solid var(--line); background: #f8f9f3; }
.profile-avatar { width: 52px; height: 52px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 18px; font-weight: 900; }
.profile-card div { min-width: 0; flex: 1; }
.profile-card strong, .profile-card span { display: block; overflow: hidden; text-overflow: ellipsis; }
.profile-card strong { font-size: 16px; }
.profile-card span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-edit { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 0; background: transparent; cursor: pointer; }
.segment-tabs { margin-bottom: 17px; }
.idea-item { width: 100%; min-height: 105px; display: grid; gap: 6px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: pointer; }
.idea-item span { color: #627044; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.idea-item strong { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.idea-item small { color: var(--muted); font-size: 11px; }
.reset-section { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); }
.fine-print { color: var(--muted); font-size: 12px; line-height: 1.45; }

.focus-main { background: #11140f; }
.focus-screen { min-height: 100%; padding-bottom: 28px; background: #11140f; color: #fff; }
.focus-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; }
.focus-intro span { flex: none; color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.focus-intro p { max-width: 290px; margin: 0; color: #adb2a8; font-size: 11px; line-height: 1.35; text-align: right; }
.focus-screen .artifact { min-height: min(610px, calc(100dvh - 225px)); }
.focus-screen .market-stage { height: min(420px, calc(100dvh - 355px)); min-height: 300px; }
.focus-screen .career-canvas { height: min(330px, calc(100dvh - 390px)); min-height: 210px; }
.focus-screen .toy-canvas { height: min(330px, calc(100dvh - 390px)); min-height: 220px; }
.focus-actions { display: grid; gap: 9px; padding: 14px; }
.focus-actions .secondary-button { border-color: #60655c; background: #1c2019; color: #fff; }
.focused-footer { margin: 0 14px 14px; border: 1px solid #454a42; border-radius: 0 0 12px 12px; background: #fff; color: var(--ink); }

.bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 2px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; z-index: 6; }
.nav-button { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #74776f; font-size: 10px; font-weight: 800; cursor: pointer; }
.nav-button[aria-current="page"] { color: var(--ink); }
.nav-button[aria-current="page"] .nav-icon-box { background: var(--lime); }
.nav-icon-box { min-width: 36px; height: 28px; display: grid; place-items: center; border-radius: 999px; }
.desktop-nav, .context-drawer { display: none; }

.sheet-dialog { width: min(100%, 520px); max-width: none; max-height: min(84dvh, 720px); margin: auto auto 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: #fff; color: var(--ink); box-shadow: 0 -20px 50px rgba(0,0,0,.2); overflow: auto; }
.sheet-dialog::backdrop { background: rgba(17,19,16,.56); }
.sheet-dialog[open] { animation: sheet-in 210ms ease-out; }
.sheet-inner { padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 42px; height: 4px; margin: 3px auto 9px; border-radius: 4px; background: #c8cac2; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-header h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 29px; font-style: italic; }
.close-button { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: #eff0ea; cursor: pointer; }
.sheet-copy { margin: -4px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 12px; font-weight: 850; }
.field input, .field textarea { padding: 10px 12px; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.link-row input { min-width: 0; }
.link-row button { min-width: 78px; min-height: 48px; border: 0; border-radius: 6px; background: var(--lime); font-weight: 850; cursor: pointer; }
.sheet-actions { display: grid; gap: 9px; margin-top: 18px; }
.menu-list { display: grid; }
.menu-button { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-weight: 800; cursor: pointer; }
.menu-note { padding: 13px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.notice { margin: 14px 0; padding: 12px; border-left: 4px solid var(--lime-dark); background: #f3f7e5; color: #4a503c; font-size: 12px; line-height: 1.5; }
.comment-empty { margin-bottom: 18px; padding: 18px; border: 1px dashed #c9ccc1; color: var(--muted); font-size: 13px; text-align: center; }
.comment-list { display: grid; gap: 8px; max-height: 260px; margin: 0 0 17px; padding: 0; overflow-y: auto; list-style: none; }
.comment-list li { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8f9f3; }
.comment-list p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; line-height: 1.4; }
.comment-list small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.field textarea { min-height: 88px; resize: vertical; }

.toast-region { position: fixed; left: 50%; bottom: calc(var(--nav-height) + 14px); z-index: 20; width: min(calc(100% - 28px), 430px); transform: translateX(-50%); pointer-events: none; }
.toast { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 15px; border-radius: 7px; background: var(--ink); color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.24); font-size: 13px; font-weight: 700; pointer-events: auto; }
.toast button { min-height: 36px; border: 0; background: transparent; color: var(--lime); font-weight: 850; cursor: pointer; }

@keyframes sheet-in { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 359px) {
  .feed { padding-right: 6px; padding-left: 6px; }
  .artifact { min-height: 420px; border-radius: 13px; }
  .market-copy h2 { font-size: 40px; }
  .career-heading h2 { font-size: 36px; }
  .career-controls, .toy-controls { grid-template-columns: 1fr; }
  .career-controls .compare-button { width: 100%; }
  .action-button { flex-direction: column; gap: 2px; }
  .action-row { grid-template-columns: repeat(6, minmax(44px, 1fr)); overflow-x: auto; }
  .signal-row { gap: 8px; }
  .screen, .create-screen { padding-right: 12px; padding-left: 12px; }
  .focus-intro p { display: none; }
  .hl-versus { padding-right: 8px; padding-left: 8px; }
  .hl-versus section { padding-right: 8px; padding-left: 8px; }
  .paired-chart > div { grid-template-columns: 65px minmax(0, 1fr) 42px; }
}

@media (min-width: 900px) {
  .app-layout { grid-template-columns: minmax(190px, 1fr) 510px minmax(235px, 1fr); gap: clamp(22px, 5vw, 72px); padding: 0 clamp(20px, 4vw, 68px); }
  .app-layout.focused-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .focused-layout .desktop-nav, .focused-layout .context-drawer { display: none; }
  .app-surface { border-right: 1px solid var(--line); border-left: 1px solid var(--line); box-shadow: 0 8px 36px rgba(26,29,23,.07); }
  .desktop-nav, .context-drawer { display: block; min-width: 0; }
  .desktop-nav { align-self: start; padding-top: 38px; }
  .desktop-brand { margin-bottom: 32px; font-size: 32px; }
  .desktop-nav-list { display: grid; gap: 5px; }
  .desktop-nav .nav-button { min-height: 52px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; border-radius: 7px; font-size: 13px; }
  .desktop-nav .nav-button[aria-current="page"] { background: #e6e8db; }
  .context-drawer { align-self: start; max-width: 300px; padding-top: 42px; }
  .context-drawer h2 { margin: 0 0 5px; font-size: 15px; }
  .drawer-subtitle { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
  .drawer-item { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 9px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
  .drawer-item .mini-mark { width: 42px; height: 42px; }
  .drawer-item strong, .drawer-item small { display: block; }
  .drawer-item strong { font-size: 12px; }
  .drawer-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }
  .bottom-nav { display: none; }
  .app-surface, .app-surface.no-tabs { grid-template-rows: var(--header-height) auto minmax(0, 1fr); }
  .app-surface.no-tabs { grid-template-rows: var(--header-height) minmax(0, 1fr); }
  .app-surface.focus-open { grid-template-rows: var(--header-height) minmax(0, 1fr); }
  .feed { padding-right: 15px; padding-left: 15px; }
  .artifact { min-height: 470px; }
  .market-stage { height: 315px; }
  .toast-region { bottom: 24px; }
  .sheet-dialog { margin-bottom: 26px; border-radius: 16px; }
}

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