/* Swipe Library: the same family as Theo's skills site (warm off-black, charcoal, bone ink, Fraunces / Bricolage /
   JetBrains Mono, film grain, bone buttons with a hard grey shadow). Layout: this week's breakout (one big 7:8 card
   + its numbers), a strip of the next breakouts, a style index, then the library grid of 7:8 cards (the shape of
   our posts) with the multiple first. Dark-only. Fonts are self-hosted: nothing loads from font services. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-display: swap }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 400 800; font-display: swap }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap }
:root {
  color-scheme: dark;
  --bg: #121110; --surface: #1a1917; --surface-2: #23221f; --surface-3: #2c2a26; --line: #34322d;
  --ink: #ece6da; --ink-2: #c6bfb2; --muted: #8e887d; --go: #ece6da; --go-ink: #121110; --shade: #57524a;
  --ok: #a9b59a; --warn: #d98b78;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 12px;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; background: var(--bg) }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); margin: 0; -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); overflow-x: clip }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg) }
/* film grain, as on Theo's site */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") }
a { color: inherit }
button { font: inherit; color: inherit }
img { max-width: 100% }
::selection { background: var(--go); color: var(--go-ink) }
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; border-radius: 8px }
[hidden] { display: none !important }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-block: 12px }
.brand { display: inline-block; font: 600 1.3rem/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap }
.brand::after { content: "by @theoxmotion"; display: block; font: 400 0.62rem/1.4 var(--mono); letter-spacing: 0.06em; color: var(--muted) }
.nav { display: flex; gap: 2px; margin-right: auto }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; padding: 6px 10px; border-bottom: 2px solid transparent }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink) }
#acct { max-width: 150px; overflow: hidden; text-overflow: ellipsis; display: inline-block; flex: none }
@media (max-width: 440px) {
  .top .wrap { gap: 6px }
  .brand { font-size: 1.1rem }
  .nav a { padding: 6px 7px; font-size: 0.9rem }
  #acct { max-width: 104px; padding-inline: 10px }
}

/* controls */
.btn { font: 600 0.9rem/1 var(--sans); color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap }
.btn.primary { color: var(--go-ink); background: var(--go); border-color: var(--go); box-shadow: 3px 3px 0 var(--shade) }
.btn.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shade) }
.btn.sm { padding: 8px 12px; font-size: 0.85rem }
.btn.danger { color: var(--warn); border-color: currentColor }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none }
.btn svg { width: 15px; height: 15px; flex: none }
.search { width: 100%; font: 400 1rem/1.2 var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px }
.search::placeholder { color: var(--muted) }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; min-width: 0 }
.chips::-webkit-scrollbar { display: none }
.chip { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); background: transparent; border: 1.5px solid var(--line);
  border-radius: 8px; padding: 9px 11px; cursor: pointer; white-space: nowrap; flex: none }
.chip[aria-pressed="true"] { color: var(--go-ink); background: var(--go); border-color: var(--go) }
.tag { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 7px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.tag.ok { color: var(--ok); border-color: currentColor }
.tag.warn { color: var(--warn); border-color: currentColor }
.tag.state { color: var(--go-ink); background: var(--go); border-color: var(--go) }
select { font: 400 0.9rem/1.2 var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; min-width: 0 }
input[type="tel"], input[type="text"] { font: 400 0.95rem/1.2 var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px; width: 100%; min-width: 0 }
.eyebrow { font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted) }

/* the 7:8 card: picture + band with the multiple first */
.card { position: relative; aspect-ratio: 7 / 8; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); max-width: 100% }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ph { position: absolute; inset: 0; display: grid; align-content: center; padding: 14px 14px 56px; background: var(--surface-2) }
.ph .st { font: 500 1.02rem/1.25 var(--serif); font-style: italic; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden }
.plat { position: absolute; top: 9px; left: 9px; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: rgba(18, 17, 16, 0.78); padding: 4px 6px; border-radius: 5px }
.band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 9px 11px; background: rgba(18, 17, 16, 0.88); border-top: 1px solid rgba(236, 230, 218, 0.08) }
.band b { font: 700 1.25rem/1 var(--mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums }
.band span { font: 400 0.72rem/1 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* tiles */
.tile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; min-width: 0 }
.tile-cap { display: grid; gap: 1px; min-width: 0; padding: 0 2px }
.tile-cap .p { font-weight: 700; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tile-cap .w { font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
@media (prefers-reduced-motion: no-preference) {
  .tile .card { transition: transform .18s cubic-bezier(.16, 1, .3, 1) }
  .tile:hover .card { transform: translateY(-3px) }
}

/* this week's breakout */
.breakout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line) }
.breakout .tile.big { width: min(100%, 250px) }
@media (min-width: 760px) { .breakout .tile.big { width: 100%; max-width: 420px } }
.breakout .tile.big .band { padding: 14px 16px }
.breakout .tile.big .band b { font-size: 2.3rem }
.breakout .tile.big .band span { font-size: 0.85rem }
.breakout .tile.big .ph .st { font-size: 1.4rem; -webkit-line-clamp: 5 }
.breakout-text { display: grid; gap: 12px; align-content: center; min-width: 0 }
.breakout h1 { font: 600 clamp(1.9rem, 7vw, 3.1rem)/1.02 var(--serif); margin: 0; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance }
.lede { margin: 0; font-size: 1.05rem; color: var(--ink-2); max-width: 44ch }
.lede b { font: 700 1.05em/1 var(--mono); color: var(--ink) }
.why { margin: 0; color: var(--muted); max-width: 52ch }
@media (min-width: 760px) {
  .breakout { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 36px; align-items: center }
}

/* sections */
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 30px 0 12px; flex-wrap: wrap }
.section-title h2 { font: 600 1.3rem/1.2 var(--serif); margin: 0 }
.section-title span { color: var(--muted); font: 400 0.76rem/1.3 var(--mono) }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px;
  scroll-snap-type: x proximity }
.strip .tile { scroll-snap-align: start }
@media (min-width: 900px) { .strip { grid-auto-columns: 170px } }
.index { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line) }
@media (min-width: 760px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px } }
.index-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; text-decoration: none;
  padding: 12px 2px; border-bottom: 1px solid var(--line) }
.ix-name { font: 600 1.1rem/1.25 var(--serif) }
.ix-meta { grid-row: 2; font: 400 0.76rem/1.4 var(--mono); color: var(--muted) }
.ix-go { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); font-size: 1.1rem }
.index-row:hover .ix-name { text-decoration: underline; text-underline-offset: 3px }

/* toolbar + grid */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 14px }
.toolbar-row { display: flex; gap: 8px; align-items: center; min-width: 0 }
.toolbar-row .chips { flex: 1 }
@media (max-width: 600px) {
  .toolbar-row { flex-wrap: wrap }
  .toolbar-row .chips { flex: 1 1 100% }
  .toolbar-row select { flex: 1 }
}
.count { color: var(--muted); font: 400 0.78rem/1.3 var(--mono); margin: 0 0 12px }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)) } }
.more-row { display: flex; justify-content: center; margin: 24px 0 }

/* the wall */
.wall { grid-column: 1 / -1; border: 1.5px dashed var(--shade); border-radius: var(--r); padding: 24px 20px; display: grid; gap: 10px;
  justify-items: start; margin-top: 8px; background: var(--surface) }
.wall h3 { font: 600 1.5rem/1.15 var(--serif); margin: 0 }
.wall p { margin: 0; color: var(--ink-2); max-width: 52ch }
.wall .fsteps { width: min(100%, 460px); margin-top: 8px }

/* the follow wall, as on Theo's skills site: 1 follow me on X (3 s countdown, honor mode), 2 open it */
.fsteps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; min-width: 0 }
.fstep { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center }
.fs-n { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 800 1rem/1 var(--sans);
  transition: background .3s, border-color .3s, color .3s }
.fs-n .ok { display: none; width: 19px; height: 19px }
.fs-btn { width: 100%; min-height: 58px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid var(--ink); border-radius: 14px; font: 800 1.05rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s, box-shadow .3s, border-color .3s, transform .12s }
.fs-btn svg { width: 18px; height: 18px; flex: none }
.btn-follow { position: relative; overflow: hidden; background: var(--ink); color: var(--go-ink); box-shadow: 5px 5px 0 var(--shade) }
.btn-follow:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shade) }
.btn-get { background: var(--surface-2); color: var(--muted); border-color: var(--line) }
.fstep-2 .fs-n { border-color: var(--line); color: var(--muted) }
.is-followed .fstep-1 .fs-n { background: var(--go); border-color: var(--go); color: var(--go-ink) }
.is-followed .fstep-1 .fs-n b { display: none }
.is-followed .fstep-1 .fs-n .ok { display: block }
.is-followed .btn-follow { background: transparent; color: var(--ink-2); border-color: var(--line); box-shadow: none }
.is-followed .fstep-2 .fs-n { border-color: var(--ink); color: var(--ink) }
.is-followed .btn-get { background: var(--go); color: var(--go-ink); border-color: #0b0a09; box-shadow: 5px 5px 0 var(--shade) }
.is-followed .btn-get:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shade) }
.fs-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--go-ink); opacity: .45; transform: scaleX(0); transform-origin: left; display: none }
.is-counting .fs-bar { display: block }
.is-counting .btn-follow { cursor: default }
.already { grid-column: 2; justify-self: start; min-height: 36px; padding: 4px 2px; background: none; border: 0; font: inherit; font-size: 0.9rem;
  color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer }
.already:hover { color: var(--ink) }
.is-followed .already { display: none }
.follow-err { display: none; margin: 4px 0 0; color: var(--warn); font-weight: 600; font-size: 0.92rem }
.is-nudge .follow-err { display: block }
.follow-note { margin: 4px 0 0; font-size: 0.84rem; color: var(--muted) }
.is-followed .follow-note { display: none }
.wall .follow-err, .wall .follow-note { margin: 0 }
.is-shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97) }
@keyframes shake { 10%, 90% { transform: translateX(-1px) } 20%, 80% { transform: translateX(3px) } 30%, 50%, 70% { transform: translateX(-6px) } 40%, 60% { transform: translateX(6px) } }
@media (prefers-reduced-motion: no-preference) {
  .is-followed .btn-get { animation: getNudge 1.4s ease-in-out .2s 2 }
}
@keyframes getNudge { 0%, 100% { transform: none } 50% { transform: translate(-1px, -3px) } }
#signup-follow { display: grid; gap: 10px }
#signup-follow[hidden] { display: none }

/* headers for styles and pages */
.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); min-width: 0 }
.head h1 { font: 600 clamp(1.7rem, 6vw, 2.6rem)/1.05 var(--serif); margin: 0; letter-spacing: -0.015em; overflow-wrap: anywhere }
.back { color: var(--muted); text-decoration: none; font-size: 0.88rem }
.hero-sub { margin: 0; color: var(--ink-2); max-width: 52ch }
.stats { display: flex; gap: 24px; flex-wrap: wrap }
.stats div { display: grid; gap: 2px }
.stats b { font: 700 1.5rem/1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums }
.stats span { font-size: 0.8rem; color: var(--muted) }
.head + .toolbar, .head + .count { margin-top: 18px }

/* ideas */
.ideas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px }
@media (min-width: 900px) { .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.idea { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px; min-width: 0 }
.idea.no-src { grid-template-columns: minmax(0, 1fr) }
.idea.dim { opacity: .6 }
.idea.mine { border-color: var(--ink) }
.idea .src { width: 70px; padding: 0; border: 0; background: none; cursor: pointer; align-self: start }
.idea .src .card { border-radius: 8px }
.idea .src .ph { padding: 6px 6px 30px }
.idea .src .ph .st { font-size: 0.62rem; -webkit-line-clamp: 3 }
.idea .src .plat { display: none }
.idea .src .band { padding: 4px 5px }
.idea .src .band b { font-size: 0.72rem }
.idea .src .band span { display: none }
.idea-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-width: 0; align-content: start }
.hook { font: 500 1.08rem/1.36 var(--serif); margin: 0; overflow-wrap: anywhere }
.tags { display: flex; gap: 6px; flex-wrap: wrap }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
details.more > summary { cursor: pointer; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-block: 4px }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 6px; font-size: 0.92rem; color: var(--ink-2) }
.kv b { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px }
.kv a { color: var(--ink); overflow-wrap: anywhere }
.kv .bl { margin: 2px 0 0; padding-left: 1.2em; display: grid; gap: 4px }
.kv .bl li { padding-left: 2px }
.empty { text-align: center; color: var(--muted); padding: 40px 0; display: grid; gap: 8px; grid-column: 1 / -1 }

/* dialogs */
dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  width: min(460px, calc(100vw - 24px)); box-shadow: 6px 6px 0 var(--shade) }
dialog::backdrop { background: rgba(10, 9, 8, 0.78) }
dialog h2 { font: 600 1.35rem/1.2 var(--serif); margin: 0 0 6px }
dialog p { margin: 0 0 10px; color: var(--ink-2); font-size: 0.94rem }
.stack { display: grid; gap: 10px }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink) }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none }
.divider { height: 1px; background: var(--line); margin: 4px 0 }
.small { font-size: 0.82rem; color: var(--muted) }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.sheet-grid label { display: grid; gap: 5px; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-width: 0 }

/* viewer: the platform's own player + the breakdown */
dialog.viewer { width: min(980px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); padding: 0; overflow: hidden }
.viewer-in { display: grid; grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 16px); overflow-y: auto }
.viewer-close { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 10px; background: var(--surface) }
.player { position: relative; aspect-ratio: 9 / 16; width: min(100%, calc(62dvh * 9 / 16)); margin: 0 auto; border-radius: var(--r);
  overflow: hidden; background: #000; max-width: 100% }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.player .card { position: absolute; inset: 0; aspect-ratio: auto; border: 0 }
.player-msg { position: absolute; inset: auto 10px 10px 10px; background: rgba(18, 17, 16, 0.9); color: var(--ink); border-radius: 10px;
  padding: 10px 12px; font-size: 0.86rem; display: grid; gap: 6px; z-index: 2 }
.player-msg a { color: var(--ink) }
.player-note { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 8px 16px 0 }
.breakdown { padding: 16px 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0 }
.breakdown h2 { font: 600 1.45rem/1.15 var(--serif); margin: 0; overflow-wrap: anywhere }
.bnums { display: flex; gap: 18px; flex-wrap: wrap }
.bnums div { display: grid; gap: 2px }
.bnums b { font: 700 1.35rem/1 var(--mono); font-variant-numeric: tabular-nums }
.bnums span { font-size: 0.76rem; color: var(--muted) }
@media (min-width: 820px) {
  .viewer-in { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); align-items: start }
  .viewer-close { grid-column: 1 / -1 }
  .player { width: 100%; margin: 0 0 0 16px }
  .player-note { margin-left: 16px }
  .breakdown { padding-top: 0 }
}

footer { margin-top: 40px; padding-block: 16px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; display: grid; gap: 6px }
footer a { color: var(--ink) }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--go);
  color: var(--go-ink); font: 600 0.9rem/1.3 var(--sans); padding: 10px 14px; border-radius: 10px; box-shadow: 3px 3px 0 var(--shade);
  z-index: 70; max-width: calc(100vw - 32px) }
.prose { max-width: 680px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)) }
.prose h1 { font: 600 2rem/1.1 var(--serif); margin-bottom: 6px }
.prose h2 { font: 600 1.15rem/1.3 var(--serif); margin: 22px 0 6px }
.prose p, .prose li { color: var(--ink-2); font-size: 0.97rem }
.prose li { margin-bottom: 4px }
.prose code { font: 400 0.85rem var(--mono); color: var(--ink) }

/* claim-to-reveal */
.mark { position: absolute; top: 9px; right: 9px; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px }
.mark.mine { color: var(--go-ink); background: var(--go) }
.mark.taken { color: var(--ink); background: rgba(18, 17, 16, 0.85); border: 1px solid var(--warn) }
.claimbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; border: 1.5px dashed var(--shade);
  border-radius: var(--r); padding: 14px; background: var(--surface-2) }
.claimbox svg { width: 22px; height: 22px; color: var(--ink-2); margin-top: 2px }
.claimbox div { display: grid; gap: 3px }
.claimbox b { font: 600 1rem/1.3 var(--sans) }
.claimbox span { color: var(--ink-2); font-size: 0.9rem }
.claimbox .btn { grid-column: 1 / -1; justify-self: start }
.claimbox.taken { border-color: var(--warn) }
.player.still { aspect-ratio: 7 / 8; background: var(--surface-2) }
.player.still .card { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: var(--r) }
.player.still .band b { font-size: 2rem }

/* the lucky wheel */
.btn-verify { background: var(--go); color: var(--go-ink); border-color: #0b0a09; box-shadow: 5px 5px 0 var(--shade) }
.btn-verify:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shade) }
.wheel-wrap { position: relative; width: min(100%, 260px); margin: 4px auto 0 }
.wheel-wrap svg { display: block; width: 100%; height: auto; transform-origin: 50% 50% }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; z-index: 2;
  border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid var(--ink) }
#wheel-result { text-align: center; color: var(--ink); font: 600 1.05rem/1.3 var(--serif); margin: 0 }
#wheel-result:empty { display: none }
.fair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; margin: 0; font-size: 0.86rem }
.fair dt { color: var(--muted); font: 500 0.66rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px }
.fair dd { margin: 0; overflow-wrap: anywhere }
.fair code, #wheel-fair code { font: 500 0.8rem/1.3 var(--mono) }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.8rem }

/* the wheel card beside this week's breakout */
.wheel-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px }
.wheel-card .wc-text { display: grid; gap: 7px; min-width: 0 }
.wheel-card h3 { font: 600 1.25rem/1.15 var(--serif); margin: 0 }
.wheel-card p { margin: 0; color: var(--ink-2); font-size: 0.9rem }
.wheel-card .row { margin-top: 4px }
.mini-wrap { position: relative; display: block; width: 100%; padding: 8px 0 0; border: 0; background: none; cursor: pointer }
.mini-wrap .wheel-pointer { top: -2px; border-left-width: 8px; border-right-width: 8px; border-top-width: 13px }
.mini-wheel { display: block; width: 100%; height: auto; animation: wspin 40s linear infinite }
.mini-wheel text { transform-box: fill-box; transform-origin: center; animation: wspin-rev 40s linear infinite }
.mini-wrap:hover .mini-wheel, .mini-wrap:hover .mini-wheel text { animation-duration: 6s }
#wheel-svg text { transform-box: fill-box; transform-origin: center }
@keyframes wspin { to { transform: rotate(360deg) } }
@keyframes wspin-rev { to { transform: rotate(-360deg) } }
@media (prefers-reduced-motion: reduce) { .mini-wheel, .mini-wheel text { animation: none } }
@media (min-width: 760px) { .breakout .wheel-card { grid-column: 1 / -1; grid-template-columns: 120px minmax(0, 1fr) } }
@media (min-width: 1100px) {
  .breakout { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) 248px; gap: 32px }
  .breakout .wheel-card { grid-column: auto; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 22px 18px 20px }
  .breakout .wheel-card .mini-wrap { width: 176px }
  .breakout .wheel-card .row { justify-content: center }
}
.spin-cta { display: inline-flex; align-items: center; gap: 7px }
.spin-cta svg { width: 15px; height: 15px; animation: wspin 6s linear infinite }
@media (prefers-reduced-motion: reduce) { .spin-cta svg { animation: none } }

/* phone polish (user, 2026-11-06: "work on phone ui of the site still") */
@media (max-width: 600px) {
  /* tiles: the view count drops under the multiple instead of being cut to "307M vie…" */
  .grid .band, .strip .band { flex-wrap: wrap; row-gap: 3px; padding: 8px 10px }
  .grid .band span, .strip .band span { overflow: visible }
  /* ideas: a smaller thumbnail, and an opened breakdown uses the card's full width */
  .idea { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px }
  .idea .src { width: 56px }
  .idea:not(.no-src) .idea-body > details[open] > .kv { margin-left: -68px }
  .tags .tag { max-width: 100%; white-space: normal; line-height: 1.25; overflow: visible; text-overflow: clip }
}
@media (max-width: 440px) {
  /* header: Spin shows as an icon so the logo, tabs, Spin and the account all fit on one row */
  .top .btn.spin-cta { font-size: 0; gap: 0; padding-inline: 10px; min-width: 38px; justify-content: center }
  .top .btn.spin-cta svg { width: 17px; height: 17px }
  #acct.signed { max-width: none; padding-inline: 9px; min-width: 38px; display: inline-flex; justify-content: center }
  #acct.signed .acct-name { display: none }
  #acct.signed .acct-ico { display: block }
  .top .wrap { gap: 6px }
}
@media (max-width: 360px) {
  .brand { font-size: 1rem }
  .brand::after { font-size: 0.56rem }
  .nav a { padding-inline: 4px }
  .top .wrap { gap: 4px }
}

#acct .acct-ico { display: none; width: 18px; height: 18px }
