/* I Can Actually Do This. Design system: site/DESIGN.md ("felt and card"). */

:root {
  --felt: #123A2C;
  --felt-deep: #0D2B21;
  --felt-raised: #1B4A3A;
  --chalk: #E9ECE3;
  --sage: #9FBAAC;
  --card: #F1F0E8;
  --card-edge: #D9D6C8;
  --ink: #13201A;
  --ink-soft: #3E4B44;
  --signal: #F6D40E;
  --tally: #C8102E;

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --measure: 36rem;
  --deal-ease: cubic-bezier(.2, .8, .2, 1);
  --card-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 10px 20px -8px rgba(0, 0, 0, .45), 0 28px 48px -24px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body); font-weight: 500; font-size: 1.0625rem; line-height: 1.6;
  color: var(--chalk); background: var(--felt);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* felt: a fine fibre noise over the green, fixed so it reads as the table, not the page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 4px; font-weight: 700; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, .card-title, .note-big, .three-n, .gate-n {
  font-family: var(--display); font-weight: 900; line-height: .9; letter-spacing: -.005em; text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, min(13vw, 10.5vh), 7.6rem); text-transform: uppercase; }
h1 span, h2 span { color: var(--signal); }
h2 { font-size: clamp(2.6rem, 8vw, 5.4rem); text-transform: uppercase; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
p { max-width: var(--measure); }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.45; }
.fine { font-size: .9rem; color: var(--sage); }
b { font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 4px; border: 2px solid var(--chalk);
  font-family: var(--body); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--chalk); transition: transform .15s ease, background .15s ease;
}
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FFE033; border-color: #FFE033; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-big { min-height: 64px; padding: 0 36px; font-size: 1.25rem; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--card); }
.btn-ghost-ink { border-color: var(--ink); color: var(--ink); }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
  background: rgba(13, 43, 33, .94); border-bottom: 1px solid rgba(233, 236, 227, .12);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.mark-suit { width: 18px; height: 18px; fill: var(--signal); flex: none; }
.mark span { white-space: nowrap; }
.bar .btn { white-space: nowrap; }
@media (max-width: 420px) { .bar .mark { font-size: 1.05rem; gap: 8px; } .mark-suit { width: 14px; height: 14px; } .bar .btn-small { padding: 0 12px; font-size: .88rem; } }

/* ---------- sections ---------- */
main { overflow-x: clip; }
main > section { padding: clamp(64px, 11vw, 140px) var(--gutter); }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); max-width: 60rem; }

/* ---------- the card ---------- */
.card {
  position: relative; aspect-ratio: 5 / 7; width: 100%; max-width: 100%;
  background: var(--card); color: var(--ink); border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 13% 11% 11%; display: flex; flex-direction: column; gap: .6em;
  font-size: clamp(.8rem, 1.1vw + .5rem, 1rem);
}
.card::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--card-edge); border-radius: 8px; pointer-events: none; }
.corner { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.corner .rank { font-family: var(--mono); font-size: .95em; }
.corner .suit { width: .95em; height: .95em; fill: var(--ink); }
.corner-flip { top: auto; left: auto; bottom: 12px; right: 12px; transform: rotate(180deg); }
[data-red] .corner .suit, .red .corner .suit, .red .card-kind-suit { fill: var(--tally); }
.red .corner .rank { color: var(--tally); }
.card-kind { font-family: var(--mono); font-size: .72em; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-left: 1.4em; }
.card-title { font-size: 2.3em; line-height: .92; text-transform: uppercase; padding-left: .55em; }
.card-text { font-size: 1em; line-height: 1.4; color: var(--ink); font-weight: 500; padding-left: 1.4em; }
.card-flat { aspect-ratio: auto; }

/* tally strip: before punched red, after in ink */
.tally { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-left: 1.4em; }
.tally-label { font-family: var(--mono); font-size: .72em; letter-spacing: .04em; color: var(--ink-soft); }
.tally-label .before { color: var(--tally); }
.slots { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.slots li { aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 50%; }
.slots li.is-before { background: var(--tally); border-color: var(--tally); }
.slots li.is-after { background: var(--ink); }

/* card back: felt with a chalk lattice */
.card-back {
  background-color: var(--felt-deep); color: var(--chalk); display: grid; place-items: center; text-align: center;
  background-image: repeating-linear-gradient(45deg, rgba(233, 236, 227, .09) 0 2px, transparent 2px 14px),
                    repeating-linear-gradient(-45deg, rgba(233, 236, 227, .09) 0 2px, transparent 2px 14px);
}
.card-back::after { border-color: rgba(233, 236, 227, .25); }
.card-back span { font-family: var(--display); font-weight: 800; font-size: 1.6em; line-height: 1; text-transform: uppercase;
  background: var(--felt-deep); padding: .5em .6em; border: 1px solid rgba(233, 236, 227, .3); border-radius: 4px; }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr; min-height: calc(100svh - 64px);
  padding-top: clamp(40px, 8vw, 96px) !important;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.table { position: relative; min-height: 440px; display: grid; place-items: center; }
.deal { position: relative; width: min(300px, 70vw); aspect-ratio: 5 / 7; }
.deal .card { position: absolute; inset: 0; }
.card-tilt-1 { transform: rotate(-4deg); z-index: 3; }
.card-tilt-2 { transform: translate(34%, -8%) rotate(9deg); z-index: 2; }
.card-tilt-3 { transform: translate(-30%, -11%) rotate(-15deg); z-index: 1; }
.card-hero .card-title { font-size: 2.6em; }

@media (prefers-reduced-motion: no-preference) {
  .deal-1, .deal-2, .deal-3 { animation: deal .9s var(--deal-ease) both; }
  .deal-3 { animation-delay: .1s; }
  .deal-2 { animation-delay: .25s; }
  .deal-1 { animation-delay: .42s; }
  .card-hero .slots li.is-before { animation: punch .3s ease-out 1.4s both; }
  .card-hero .slots li.is-after { animation: punch .3s ease-out 1.8s both; }
  @keyframes deal { from { transform: translate(60vw, 30vh) rotate(40deg); } }
  @keyframes punch { from { transform: scale(0); } }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; }
  .deal { width: min(340px, 30vw); }
  .table { min-height: 560px; }
}

/* ---------- rule ---------- */
.rule { background: var(--signal); color: var(--ink); }
.rule h2 span { color: var(--ink); opacity: 1; display: block; }
.rule h2 { max-width: 14ch; }
.rule-grid { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rule-grid p { font-size: 1.05rem; border-top: 3px solid var(--ink); padding-top: 14px; }

/* ---------- dealer ---------- */
.dealer { background: var(--felt-deep); display: grid; gap: 36px; }
.dealer-head { display: flex; flex-direction: column; gap: 16px; max-width: 60rem; }
.suits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 60rem; }
.suit-pick {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; text-align: left;
  background: var(--felt-raised); border: 2px solid transparent; border-radius: 4px; cursor: pointer; font-weight: 700;
}
.suit-pick svg { width: 22px; height: 22px; fill: var(--chalk); flex: none; }
.suit-pick:hover { border-color: rgba(233, 236, 227, .35); }
.suit-pick[aria-checked="true"] { background: var(--card); color: var(--ink); border-color: var(--signal); }
.suit-pick[aria-checked="true"] svg { fill: var(--ink); }
@media (min-width: 760px) { .suits { grid-template-columns: repeat(3, 1fr); } }

.dealt { display: grid; gap: 28px; align-items: start; }
.dealt .card { width: min(340px, 100%); }
.dealt-empty .card-back { width: min(280px, 72vw); opacity: .9; }
.dealt-controls { display: flex; flex-direction: column; gap: 22px; max-width: 30rem; }
.rate { display: flex; flex-direction: column; gap: 10px; }
.rate legend { font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.rate-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rate-cell {
  min-height: 48px; border-radius: 4px; border: 2px solid rgba(233, 236, 227, .3); background: transparent;
  font-family: var(--mono); font-size: 1rem; cursor: pointer; color: var(--chalk);
}
.rate-cell:hover { border-color: var(--chalk); }
.rate-cell.on { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.rate[data-kind="before"] .rate-cell.on { background: var(--tally); border-color: var(--tally); color: var(--card); }
.rate-ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--sage); }
.step-note { color: var(--sage); }
.result-line { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; text-transform: uppercase; color: var(--signal); }
.dealt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
  .dealt { grid-template-columns: auto 1fr; gap: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .dealt .card.is-new { animation: land .6s var(--deal-ease) both; }
  @keyframes land { from { transform: translate(40px, -30px) rotate(10deg); } }
}

/* ---------- three ---------- */
.three { list-style: none; display: grid; gap: 2px; grid-template-columns: 1fr; counter-reset: none; }
.three li { background: var(--felt-raised); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.three li:first-child { border-radius: 4px 4px 0 0; }
.three li:last-child { border-radius: 0 0 4px 4px; }
.three-n { font-size: 5rem; color: var(--signal); line-height: .8; }
@media (min-width: 860px) {
  .three { grid-template-columns: repeat(3, 1fr); }
  .three li:first-child { border-radius: 4px 0 0 4px; }
  .three li:last-child { border-radius: 0 4px 4px 0; }
}

/* ---------- deck ---------- */
.deck { background: var(--felt-deep); }
.deck-rows { display: flex; flex-direction: column; gap: 28px; }
.deck-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.deck-suit { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.deck-suit svg { width: 18px; height: 18px; fill: var(--chalk); }
.deck-suit small { font-family: var(--body); font-weight: 500; font-size: .95rem; text-transform: none; color: var(--sage); }
.deck-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.flip { display: block; width: 100%; perspective: 1000px; border: none; background: none; padding: 0; cursor: pointer; text-align: left; scroll-snap-align: start; aspect-ratio: 5 / 7; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s var(--deal-ease); }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip .card { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: .78rem; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.flip .card-face-back { transform: rotateY(180deg); justify-content: center; }
.flip .card-kind, .flip .card-title, .flip .card-text { display: block; }
.flip .card-face-back .card-text { padding-left: 0; }
.flip .card-title { font-size: 1.9em; overflow-wrap: anywhere; }
.flip .card-face-back .card-kind { padding-left: 0; }
.flip .card-text { font-size: .95em; }
.flip .card-back span { font-size: 1.1em; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }
.flip .pip { width: 34%; height: auto; aspect-ratio: 1; margin: auto auto 18%; fill: var(--ink); opacity: .92; }
.flip .red .pip { fill: var(--tally); }
@media (min-width: 1100px) {
  .deck-row { grid-template-columns: 200px 1fr; align-items: start; gap: 24px; }
  .deck-suit { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; }
  .deck-cards { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; max-width: 1040px; padding: 0; }
}

/* ---------- gap ---------- */
.gap { display: grid; gap: 48px; align-items: center; }
.gap-copy { display: flex; flex-direction: column; gap: 20px; }
.sources { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.sources a { color: var(--signal); text-underline-offset: 3px; }
.gap-fig { display: flex; flex-direction: column; gap: 12px; }
.gap-fig .card { max-width: 440px; padding: 36px 30px 30px; font-size: 1rem; }
.gap-fig .card-kind, .gap-fig .card-title { padding-left: 0; }
.gap-rows { display: flex; flex-direction: column; gap: 16px; margin: 18px 0 8px; }
.gap-row { display: grid; grid-template-columns: 82px 1fr 34px; align-items: center; gap: 12px; }
.gap-lbl { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.gap-val { font-family: var(--mono); font-size: 1.3rem; text-align: right; }
.gap-val.before { color: var(--tally); }
.slots-lg { gap: 5px; }
.gap-sum { font-size: 1.1rem; }
.gap-sum b { font-family: var(--display); font-weight: 900; font-size: 2rem; }
@media (min-width: 900px) { .gap { grid-template-columns: 1.1fr .9fr; } }

/* ---------- city ---------- */
.notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.note {
  background: var(--card); color: var(--ink); border-radius: 4px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px;
  background-image: linear-gradient(rgba(19, 32, 26, .07) 1px, transparent 1px);
  background-size: 100% 28px; background-position: 0 60px;
}
.note-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.note-meta .n { color: var(--tally); }
.note-big { font-size: 4rem; }
.notes-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); max-width: 72rem; }

/* ---------- long game ---------- */
.long { background: var(--felt-deep); }
.gates { list-style: none; display: flex; flex-direction: column; max-width: 52rem; }
.gates li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(233, 236, 227, .15); align-items: start; }
.gates li > div { display: flex; flex-direction: column; gap: 6px; }
.gate-n { font-size: 3.6rem; color: var(--sage); line-height: .85; }
.gate-last .gate-n, .gate-last h3 { color: var(--signal); }
.gate-last { border-bottom: 1px solid rgba(233, 236, 227, .15); }

/* ---------- questions ---------- */
.faq-list { display: grid; gap: 0 48px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 72rem; }
.faq-item { display: flex; flex-direction: column; gap: 10px; padding: 24px 0 28px; border-top: 1px solid rgba(233, 236, 227, .15); }
.faq-item h3 { font-size: 1.6rem; text-wrap: balance; }
.faq-item p { color: var(--chalk); opacity: .86; line-height: 1.55; }

/* ---------- static pages: cards, Nashville ---------- */
.lede a, .rank-list a, .fine a, .foot-nav a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lede a:hover, .rank-list a:hover, .foot-nav a:hover { color: var(--signal); }
.crumbs { padding: 18px var(--gutter) 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--sage); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--chalk); }
main > section.pagehead { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(32px, 6vw, 72px); }
.pagehead h1 { font-size: clamp(3rem, 11vw, 7rem); max-width: 14ch; }
.eyebrow-suit { width: 12px; height: 12px; fill: var(--sage); margin-right: 8px; vertical-align: -1px; }
.cardpage { display: grid; gap: 40px; align-items: center; padding-top: clamp(32px, 6vw, 72px) !important; }
.cardpage-copy { display: flex; flex-direction: column; gap: 24px; }
.cardpage-copy h1 { font-size: clamp(3rem, min(12vw, 10vh), 6.6rem); }
.cardpage-card { display: grid; place-items: center; }
.cardpage-card .card { width: min(320px, 100%); aspect-ratio: auto; min-height: 0; padding: 48px 28px 40px; transform: rotate(-3deg); }
.cardpage-card .tally { margin-top: 18px; }
@media (min-width: 900px) {
  .cardpage { grid-template-columns: 1.2fr .8fr; }
  .cardpage-card .card { width: min(340px, 30vw); aspect-ratio: 5 / 7; padding: 13% 11% 11%; }
  .cardpage-card .tally { margin-top: auto; }
}
.guide { background: var(--felt-deep); }
.guide h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.guide-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 72rem; }
.guide-grid > div { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--signal); padding-top: 16px; }
.guide-grid p { line-height: 1.55; }
.guide-sub { margin: clamp(48px, 7vw, 80px) 0 24px; }
.steps { list-style: none; display: grid; gap: 2px; grid-template-columns: 1fr; max-width: 72rem; }
.steps li { background: var(--felt-raised); padding: 24px 28px; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.steps .three-n { font-size: 3.6rem; }
.steps li > div { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.rank-list p { color: var(--chalk); opacity: .86; line-height: 1.5; }
.rank-list .is-current .gate-n, .rank-list .is-current h3 { color: var(--signal); }
.ground { list-style: none; display: flex; flex-direction: column; max-width: 52rem; }
.ground li { padding: 18px 0; border-top: 1px solid rgba(233, 236, 227, .15); font-size: 1.1rem; line-height: 1.5; }
.ground li:last-child { border-bottom: 1px solid rgba(233, 236, 227, .15); }
.privacy-h { font-size: 1.9rem; line-height: 1; }
.contact { max-width: 40rem; margin-top: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0 14px; font-weight: 500; }
@media (max-width: 640px) { .sub .bar-link { display: none; } }

/* ---------- share card ---------- */
.share-open { align-self: flex-start; margin-top: 4px; }
.share-panel { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.share-preview { display: flex; justify-content: center; min-height: 120px; align-items: center; }
.share-canvas { display: block; height: auto; border-radius: 8px; border: 1px solid rgba(233, 236, 227, .2); }
.share-canvas.feed { width: min(100%, 340px); }
.share-canvas.story { width: min(100%, 260px); }
.share-controls { display: flex; flex-direction: column; gap: 14px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-save { border-color: rgba(233, 236, 227, .45); }
.share-status { min-height: 1.3em; }

/* ---------- close ---------- */
.close { text-align: left; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.close h2 { font-size: clamp(3.2rem, 11vw, 7.6rem); }

/* ---------- footer ---------- */
.foot { padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(233, 236, 227, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }

/* ---------- landing: header nav ---------- */
.bar-nav { display: flex; align-items: center; gap: 14px; }
.bar-link { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--chalk); padding: 10px 4px; }
.bar-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) { .bar-link { display: none; } }

/* ---------- chips: forecasts and outcomes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: .98rem;
  background: var(--felt-raised); border: 2px solid transparent; color: var(--chalk);
}
.chip:hover { border-color: rgba(233, 236, 227, .35); }
.chip.on { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-wide { width: 100%; }

/* ---------- reveal ---------- */
.stamp {
  align-self: flex-start; font-family: var(--display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase;
  color: var(--signal); border: 3px solid var(--signal); padding: 4px 12px; transform: rotate(-4deg); letter-spacing: .03em;
}
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes stamp { from { transform: rotate(-4deg) scale(1.8); opacity: 0; } }
}
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verdict div { background: var(--felt-raised); border-radius: 4px; padding: 12px 14px; }
.verdict dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); }
.verdict dd { font-weight: 700; font-size: 1.05rem; margin-top: 2px; }
.xp-line { font-size: 1.05rem; }
.xp-line b { font-family: var(--display); font-size: 1.8rem; color: var(--signal); }

/* ---------- forms on card stock ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.hint { font-weight: 500; color: var(--ink-soft); font-size: .88rem; }
.field input, .field textarea {
  min-height: 50px; padding: 12px 14px; border-radius: 4px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font-size: 16px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 1px; }
.form-error { color: var(--tally); font-weight: 700; min-height: 1.3em; }
.form-status { font-weight: 700; min-height: 1.3em; }

.save { display: grid; gap: 14px; max-width: 46rem; }
.save-main { background: var(--card); color: var(--ink); border-radius: 12px; padding: clamp(22px, 4vw, 36px);
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--card-shadow); }
.save-main h3 { font-size: 2.2rem; }
.save-main .fine { color: var(--ink-soft); }
.save-main .fine a { color: var(--ink); font-weight: 700; }
.save-form { display: flex; flex-direction: column; gap: 14px; }
.save-fields { display: grid; gap: 14px; }
@media (min-width: 760px) { .save-fields { grid-template-columns: 1fr 1fr; } .save-fields .field:first-child { grid-column: 1 / -1; } }
.updates { border: 2px dashed rgba(233, 236, 227, .3); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.updates-lead { font-weight: 700; }
.updates-row { display: flex; flex-wrap: wrap; gap: 10px; }
.updates-row input { flex: 1 1 220px; min-height: 50px; padding: 0 14px; border-radius: 4px; border: 2px solid var(--chalk); background: transparent; color: var(--chalk); font-size: 16px; }
.updates .btn-ghost-ink { border-color: var(--chalk); color: var(--chalk); }

.idea { margin-top: clamp(40px, 6vw, 72px); background: var(--card); color: var(--ink); border-radius: 12px; box-shadow: var(--card-shadow);
  padding: clamp(22px, 4vw, 36px); display: grid; gap: 14px; max-width: 46rem; }
.idea-head { display: flex; flex-direction: column; gap: 6px; }
.idea-head h3 { font-size: 2rem; }
.idea .btn-signal { justify-self: start; border-color: var(--ink); }

@media (max-width: 899px) {
  .dealt .card { aspect-ratio: auto; padding: 44px 26px 30px; }
  .dealt .card .tally { margin-top: 20px; }
}
