/* Southboxd: Letterboxd layout, South Park construction paper */

:root {
  --bg: #14181c;
  --bg-deep: #0f1215;
  --surface: #242c34;
  --surface-2: #2a3440;
  --line: #2c3640;
  --line-2: #3a4654;
  --text: #d8e0e8;
  --text-soft: #c9d6e2;
  --muted: #8a9aaa;
  --white: #fff;
  --green: #3fb950;
  --orange: #f2711c;
  --blue: #6aa8f0;
  --blue-2: #4a90e2;
  --blue-hover: #9cc6f7;
  --yellow: #f5c518;
  --red: #d63a3a;
  --sky: #1a2a3a;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-cut: 'Luckiest Guy', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-body);
}

main { flex: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 400; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Signature pieces ---- */

.paper {
  /* the torn edge is never deeper than a few pixels, however tall or wide the card is */
  clip-path: polygon(0 min(3%, 7px), 4% 0, 48% min(2%, 5px), 96% 0, 100% min(4%, 9px), max(99%, calc(100% - 5px)) 50%, 100% max(96%, calc(100% - 9px)), 95% 100%, 52% max(98%, calc(100% - 5px)), 3% 100%, 0 max(95%, calc(100% - 10px)), min(1%, 5px) 48%);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 5px);
}

.cut { font-family: var(--font-cut); letter-spacing: .02em; font-weight: 400; }

/* ---- Header ---- */

.site-header { background: var(--bg-deep); border-bottom: 1px solid var(--surface); }

.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding-top: 14px; padding-bottom: 14px;
}

.logo { display: flex; gap: 2px; align-items: center; }
.logo-letter {
  display: inline-block; padding: 4px 6px 2px; color: var(--bg); line-height: 1.1;
}
.logo:hover .logo-letter:nth-child(odd) { transform: rotate(0deg) !important; }

.main-nav {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}
.main-nav a { color: var(--text); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.nav-soon { color: var(--muted); cursor: default; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-link {
  color: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}

.avatar {
  --size: 40px; --c: var(--orange);
  width: var(--size); height: var(--size); flex: 0 0 var(--size);
  border-radius: 50%; border: 2px solid var(--c); background: var(--c); color: #141414;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: calc(var(--size) * .42); line-height: 1;
}
.avatar.dark-bg { color: #fff; }
.avatar-link { display: inline-flex; border-radius: 50%; }

/* Badge flair */
.avatar.crowned { position: relative; }
.flair-crown { position: absolute; top: calc(var(--size) * -.24); right: calc(var(--size) * -.16); width: calc(var(--size) * .55); transform: rotate(22deg); pointer-events: none; z-index: 3; }
.avatar .flair-crown svg { display: block; width: 100%; height: auto; }
html.mysterion .avatar:not(.is-me) .flair-crown { display: none; }
.badge .badge-reward { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; line-height: 1.4; }
.badge .badge-reward > span:last-child { min-height: 2.8em; } /* always room for two lines */
.badge .badge-reward .avatar { filter: grayscale(1); opacity: .6; }
.badge.earned .badge-reward .avatar { filter: none; opacity: 1; }
.flair-critic {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; vertical-align: 1px;
  background: rgba(106,168,240,.18); color: #b9d6fa; font: 700 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em;
}
.flair-spicy { margin-left: 4px; font-size: .9em; }

/* ---- Footer ---- */

.site-footer { border-top: 1px solid var(--surface); background: var(--bg-deep); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--muted);
}
.footer-inner span { max-width: 640px; }
.footer-inner a { color: var(--text-soft); text-decoration: underline; }

.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-align: left;
}
.link-button:hover { color: var(--orange); }

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer;
  font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .06em;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn-green { background: var(--green); color: var(--bg-deep); }
.btn-green:hover { background: #57c967; color: var(--bg-deep); }
.btn-orange { background: var(--orange); color: var(--bg); }
.btn-orange:hover { background: #f5873f; color: var(--bg); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--line-2); color: var(--white); }

.btn-paper {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-weight: 700; font-size: 15px; color: var(--bg-deep);
}
.btn-paper:hover { color: var(--bg-deep); filter: brightness(1.08); }

/* ---- Sections ---- */

.page { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 18px;
}
.section-head h2, h2.section-head {
  margin: 0; font: 600 13px/20px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.section-head a { font-size: 13px; }

.empty {
  color: var(--muted); font-size: 14px; padding: 24px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 6px;
}

/* ---- Hero with snowy mountains ---- */

.hero { position: relative; overflow: hidden; background: var(--sky); }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 150px; text-align: center; }
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; color: var(--white); }
.hero p { margin: 0 auto 28px; max-width: 560px; font-size: 18px; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero.small .hero-inner { padding-top: 40px; padding-bottom: 110px; }
.hero.small h1 { font-size: clamp(30px, 4vw, 44px); }
.hero-tagline { font-size: 28px; color: var(--white); }

.tilt-right { transform: rotate(.6deg); }

/* ---- Forms ---- */

.auth-card {
  width: 100%; max-width: 440px; margin: -80px auto 0; position: relative;
  background-color: var(--surface-2); padding: 32px 32px 36px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 30px; color: var(--white); }
.auth-card .lead { margin: 0 0 22px; color: var(--text-soft); font-size: 14px; }

.tabs { display: flex; gap: 6px; margin-bottom: 22px; background: var(--bg-deep); padding: 4px; border-radius: 8px; }
.tabs button {
  flex: 1; border: 0; border-radius: 6px; padding: 10px; cursor: pointer;
  background: transparent; color: var(--muted); font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .06em;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--white); }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .hint.ok { color: var(--green); }
.field .hint.bad { color: #ff8a8a; }
.pw-toggle { align-self: flex-start; font-size: 13px; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; background: var(--bg-deep); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px;
  padding: 11px 12px; font: 15px var(--font-body);
}
input:focus, textarea:focus, select:focus { border-color: var(--blue-2); outline: none; box-shadow: 0 0 0 3px rgba(74,144,226,.35); }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--green); }
.flair-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 18px; margin: 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
.flair-group h3 { grid-column: 1 / -1; margin: 0; color: var(--white); font-size: 14px; }
.flair-group h3 small { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.flair-group .checkbox { align-items: flex-start; }
.flair-group .checkbox input { flex: 0 0 18px; }

.form .btn { padding: 13px 16px; }

.notice { padding: 12px 14px; border-radius: 6px; font-size: 14px; margin: 0; }
.notice[hidden] { display: none; }
.notice-error { background: rgba(214,58,58,.16); border: 1px solid rgba(214,58,58,.6); color: #ffb3b3; }
.notice-ok { background: rgba(63,185,80,.14); border: 1px solid rgba(63,185,80,.55); color: #9be3a6; }
.notice-info { background: rgba(74,144,226,.14); border: 1px solid rgba(74,144,226,.5); color: #b9d6fa; }
main > .notice.wrap { margin-top: 16px; }


/* ---- Profile ---- */

.profile-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  background-color: var(--surface-2); padding: 28px 32px;
}
.profile-head .who { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.profile-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: var(--white); word-break: break-word; }
.profile-head .handle { color: var(--muted); font-size: 14px; }
.profile-head .bio { margin: 6px 0 0; color: var(--text-soft); max-width: 560px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-more { font-size: 20px; line-height: 1; padding-top: 6px; padding-bottom: 10px; }
.profile-menu { position: fixed; inset: auto; margin: 0; padding: 6px 0; min-width: 230px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.profile-menu button { display: block; width: 100%; padding: 9px 16px; border: 0; background: none; color: var(--text); font: 500 14px var(--font-body); text-align: left; cursor: pointer; }
.profile-menu button:hover { background: var(--line-2); color: var(--white); }
.profile-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }
.qr-box { width: min(340px, calc(100vw - 32px)); padding: 22px; border: 3px solid #000; border-radius: 12px; background: var(--surface); color: var(--text); text-align: center; }
.qr-box[open] { display: flex; flex-direction: column; gap: 14px; }
.qr-box::backdrop { background: rgba(0,0,0,.7); }
.qr-box strong { font-size: 24px; color: var(--white); word-break: break-word; }
.qr-code { background: #fff; border-radius: 8px; }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-box span { font-size: 13px; color: var(--muted); }
.qr-actions { display: flex; justify-content: center; gap: 8px; }

.stats { display: flex; flex-wrap: wrap; gap: 6px 0; }
.stat { padding: 0 20px; text-align: center; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 22px; color: var(--white); font-weight: 700; }
.stat span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.top4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.top4-slot {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: space-between; padding: 10px;
  background-color: var(--surface);
}
.top4-slot.empty { align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; }

.ep-card-code {
  font: 700 11px var(--font-body); color: var(--bg); background: rgba(255,255,255,.78);
  align-self: flex-start; padding: 2px 6px; border-radius: 3px;
}
.ep-card-title { font-family: var(--font-cut); font-size: 15px; color: var(--white); line-height: 1.1; text-shadow: 0 2px 0 rgba(0,0,0,.45); }

.two-col { display: flex; flex-wrap: wrap; gap: 40px; }
.two-col > :first-child { flex: 999 1 520px; min-width: 0; }
.two-col > :last-child { flex: 1 1 280px; min-width: 0; }

.diary { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.diary li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--surface); font-size: 14px; }
.diary .date { flex: 0 0 90px; color: var(--muted); font-size: 13px; }
.diary .title { flex: 1; color: var(--white); font-weight: 600; min-width: 0; }
.diary .code { color: var(--muted); font-weight: 400; margin-left: 6px; }
.diary .rating { color: var(--green); letter-spacing: 1px; }
.diary .heart { color: var(--orange); }

.bar { height: 10px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.bar > div { height: 100%; }

.big-message { text-align: center; padding: 60px 0; }
.big-message h1 { font-size: clamp(30px, 5vw, 48px); color: var(--white); margin: 0 0 12px; }
.big-message p { color: var(--text-soft); margin: 0 0 20px; }

/* ---- Import ---- */

.import-card { background-color: var(--surface-2); padding: 28px 32px; max-width: 720px; }
.import-card h1 { margin: 0 0 8px; color: var(--white); font-size: 34px; }
.import-card p { color: var(--text-soft); margin: 0 0 18px; }
.import-log {
  list-style: none; margin: 0; padding: 14px 16px; max-height: 360px; overflow: auto;
  background: var(--bg-deep); border-radius: 6px; font: 13px/1.7 ui-monospace, Consolas, monospace; color: var(--text-soft);
}
.import-log .ok { color: var(--green); }
.import-log .err { color: #ff8a8a; }
.import-progress { margin: 4px 0 0; }
.movie-list { display: flex; flex-direction: column; gap: 10px; }
.movie-list .checkbox { align-items: flex-start; }
.movie-list .checkbox input { margin-top: 2px; flex: 0 0 18px; }
.movie-list .meta { color: var(--muted); font-size: 13px; }
.import-progress > div { background: var(--green); width: 0; transition: width .2s; }

/* ---- Header search + log ---- */

.header-search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px;
  padding: 0 14px; color: var(--muted);
}
.header-search input[type="search"] {
  background: transparent; border: 0; padding: 8px 0; width: 160px; color: var(--text); font-size: 14px; box-shadow: none;
}
.header-search:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- Episode cards ---- */

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 16px; }
.ep-grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.ep-card { color: var(--text); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ep-card:hover { color: var(--white); }
.ep-thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 10px;
}
.ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-thumb.has-img::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,.78));
}
.ep-thumb > span { position: relative; z-index: 1; }
.ep-card:hover .ep-thumb img { transform: scale(1.04); }
.ep-thumb img { transition: transform .25s; }
.ep-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.ep-card-meta .rating { color: var(--green); letter-spacing: 1px; }
.ep-card-meta .heart { color: var(--orange); }
.ep-scores { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 13px; color: var(--muted); }
.ep-scores span { white-space: nowrap; }
.ep-scores b { color: var(--green); }
.ep-scores span + span b { color: var(--white); }
.ep-scores b.none { color: var(--muted); font-weight: 400; }
.ep-scores .heart { color: var(--orange); }
.watched-badge {
  position: absolute !important; top: 8px; right: 8px; z-index: 2 !important;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
}

/* ---- Toolbar / chips ---- */

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar input[type="search"] { max-width: 340px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--surface); color: var(--text-soft); border: 0; border-radius: 999px; padding: 7px 14px;
  font: 600 13px var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--green); color: var(--bg-deep); }
.chip:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.icon-btn { background: var(--surface); color: var(--text); border: 0; border-radius: 6px; padding: 8px 10px; font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--line-2); }
.bell { position: relative; display: inline-flex; align-items: center; color: var(--text); }
.bell:hover { color: var(--white); }
.bell-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--orange); color: var(--bg); font: 700 11px/18px var(--font-body); text-align: center;
}
.bell-count[hidden] { display: none; }

/* ---- Notifications page ---- */

.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.notif-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 10px; border-bottom: 1px solid var(--surface); border-radius: 4px; }
.notif-list li.unread { background: rgba(242,113,28,.08); box-shadow: inset 3px 0 0 var(--orange); }
.notif-list .body { flex: 1; min-width: 0; color: var(--text-soft); font-size: 14px; }
.notif-list .body strong { color: var(--white); }
.notif-list .quote { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.notif-list time { color: var(--muted); font-size: 12px; white-space: nowrap; }
select { width: auto; }
.result-count { color: var(--muted); font-size: 13px; }

/* ---- Episode page ---- */

.ep-hero { position: relative; height: 320px; overflow: hidden; background: var(--surface-2); }
.ep-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.ep-hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(rgba(20,24,28,0), var(--bg));
}
.ep-layout {
  position: relative; margin-top: -130px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px;
}
.ep-side { flex: 0 0 260px; display: flex; flex-direction: column; gap: 14px; }
.ep-side .ep-thumb { box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ep-counts { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.ep-counts span { display: flex; gap: 6px; align-items: center; }
.ep-main { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 80px; }
.ep-main .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ep-main h1 { margin: 0; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; color: var(--white); }
.ep-main .overview { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-soft); max-width: 640px; }
.ep-aside { flex: 1 1 260px; min-width: 0; padding-top: 80px; display: flex; flex-direction: column; gap: 20px; }

.action-panel { background-color: var(--surface-2); padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; }
.action-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.action-btn {
  background: transparent; border: 0; color: var(--muted); font: 600 12px var(--font-body);
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 8px 0; border-radius: 6px;
}
.action-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.action-btn.watched[aria-pressed="true"] { color: var(--green); }
.action-btn.liked[aria-pressed="true"] { color: var(--orange); }
.action-btn.liked[aria-pressed="true"] svg { fill: var(--orange); }
.action-btn.watchlist[aria-pressed="true"] { color: var(--blue); }
.rate-box { border-top: 1px solid var(--line-2); padding-top: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rate-box .label { font-size: 12px; color: var(--muted); }
.panel-links { border-top: 1px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.note-card { background-color: var(--yellow); color: var(--bg); padding: 16px 18px; font-size: 13px; line-height: 1.5; }

/* Star input: grey stars with a green overlay clipped to the value */
.star-input {
  --size: 32px; position: relative; display: inline-block; font-size: var(--size); line-height: 1;
  letter-spacing: 2px; color: var(--line-2); cursor: pointer; user-select: none; border-radius: 4px;
}
.star-input .fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--green); pointer-events: none; }
.star-input.preview .fill { color: #7fd88c; }
.star-row { display: flex; align-items: center; gap: 10px; }
.clear-rating { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px; }
.clear-rating:hover { color: var(--text); }

.histogram { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.histogram .bucket { flex: 1; background: var(--line-2); border-radius: 2px 2px 0 0; min-height: 2px; }
.histogram .end { color: var(--green); font-size: 11px; }
.histogram.clickable .bucket { display: block; background: #678; transition: background .15s; }
.histogram.clickable .bucket:hover, .histogram.clickable .bucket:focus-visible { background: var(--green); }
.histogram.clickable .bucket.active { background: var(--green); }
.avg-big { color: var(--green); font-size: 22px; font-weight: 700; }

.review { display: flex; gap: 14px; border-bottom: 1px solid var(--surface); padding-bottom: 18px; }
.review-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.review-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-meta strong { color: var(--text-soft); }
.review-meta .rating { color: var(--green); letter-spacing: 1px; }
.review-meta .heart { color: var(--orange); }
.review p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-soft); white-space: pre-line; overflow-wrap: anywhere; }
.reviews { display: flex; flex-direction: column; gap: 20px; }
.review .ep-link { color: var(--white); font-weight: 700; }

/* ---- Log dialog ---- */

.log-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0;
  background: transparent; color: var(--text);
}
.log-dialog::backdrop { background: rgba(8,10,12,.75); }
.log-dialog .sheet { background-color: var(--surface-2); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.log-dialog h2 { margin: 0; color: var(--white); font-size: 26px; }
.log-dialog .ep-pick { display: flex; gap: 14px; align-items: center; }
.log-dialog .ep-pick .ep-thumb { width: 120px; flex: 0 0 120px; padding: 6px; }
.log-dialog .ep-pick .title { font-weight: 700; color: var(--white); }
.log-dialog .ep-pick .code { color: var(--muted); font-size: 13px; }
.log-dialog textarea { min-height: 110px; resize: vertical; }
.log-dialog .row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.log-dialog input[type="date"] {
  background: var(--bg-deep); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 10px; font: 15px var(--font-body);
  color-scheme: dark;
}
.log-dialog .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.log-dialog .actions .spacer { flex: 1; }

/* ---- Random picker: Chef's menu ---- */
.rand-panel { display: flex; flex-direction: column; gap: 16px; }
.chef-dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chef-dish {
  display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer; padding: 10px; border-radius: 4px;
  background: #f5edd8; color: #222; border: 2px solid #222; font-family: var(--font-body);
}
.chef-dish:hover { background: #fff8e6; }
.chef-dish[aria-pressed="true"] { background: var(--yellow); }
.chef-dish .emoji { font-size: 22px; }
.chef-dish strong { display: block; font-size: 13px; line-height: 1.25; }
.chef-dish small { display: block; font-size: 11px; margin-top: 2px; }
.chef-table { display: flex; flex-direction: column; gap: 12px; }
.chef-table:empty { display: none; }
.chef-wait { margin: 0; text-align: center; color: var(--text-soft); }
.chef-plate { position: relative; overflow: hidden; min-height: 150px; flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: center; }
.chef-food {
  width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; text-align: center; padding: 18px 14px;
  background: #f5edd8; color: #222; border: 3px solid #222; border-radius: 6px 6px 40px 40px; overflow-wrap: anywhere;
}
.chef-food strong { font-size: 18px; }
.chef-food small { font-weight: 600; }
.chef-food span { font-size: 13px; }
/* The paper lid starts over the plate, then lifts away. */
.chef-lid {
  position: absolute; left: 4%; right: 4%; bottom: 0; height: 135px; background: #aab6c2; border: 3px solid #222;
  border-radius: 50% 50% 6px 6px / 70% 70% 6px 6px; pointer-events: none; animation: chef-lift .6s .5s ease-in forwards;
}
.chef-lid::before {
  content: ''; position: absolute; left: calc(50% - 11px); top: -2px; width: 16px; height: 12px;
  background: var(--yellow); border: 3px solid #222; border-radius: 8px;
}
@keyframes chef-lift { to { transform: translateY(-200px) rotate(-8deg); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .chef-lid { display: none; } }
@media (max-width: 420px) { .chef-dish { gap: 6px; padding: 8px 6px; } .chef-dish .emoji { font-size: 18px; } }
.chef-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.like-toggle {
  background: transparent; border: 2px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 6px 14px;
  font: 700 13px var(--font-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.like-toggle[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); }
.pick-results { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; display: flex; flex-direction: column; }
.pick-results button {
  width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--surface);
  color: var(--text); padding: 10px 6px; cursor: pointer; font: 14px var(--font-body); display: flex; gap: 10px; justify-content: space-between;
}
.pick-results button:hover, .pick-results button:focus-visible { background: var(--surface); }
.pick-results .code { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---- Season covers ---- */

.season-card .ep-thumb { aspect-ratio: 16 / 9; }
.season-card .ep-card-title { font-size: 22px; }
.season-card .bar { height: 6px; }

/* ---- Profile tabs ---- */

.profile-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.profile-tabs a {
  padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.profile-tabs a:hover { color: var(--text); }
.profile-tabs a[aria-current="page"] { color: var(--white); border-bottom-color: var(--green); }

.diary-month { margin-bottom: 28px; }
.diary-month h3 { margin: 0 0 6px; font: 600 13px var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.diary .actions { display: flex; gap: 10px; }
.diary .actions button { font-size: 12px; }
.diary .rewatch { color: var(--blue); font-size: 12px; }
.diary .review-snippet { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
.diary a.title { color: var(--white); }
.diary a.title:hover { color: var(--blue-hover); }

.remove-x {
  position: absolute !important; top: 6px; right: 6px; z-index: 3 !important; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}

/* ---- Edit profile ---- */

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; border-radius: 50%; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch input:checked + .avatar { outline: 3px solid var(--green); outline-offset: 3px; }
.swatch:has(input:checked)::after { content: '✓'; position: absolute; top: -5px; right: -5px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #0f1215; border: 2px solid #0f1215; box-sizing: border-box; font: 700 12px/16px Inter, sans-serif; text-align: center; pointer-events: none; }
.swatch input:focus-visible + .avatar { outline: 3px solid var(--yellow); outline-offset: 3px; }
.top4-edit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.top4-filled { display: flex; flex-direction: column; gap: 6px; }
.slot-tools { display: flex; justify-content: space-between; font-size: 13px; }
.slot-tools button:disabled { opacity: .3; cursor: default; }
.pick-results button:disabled { opacity: .5; cursor: default; }
a.top4-slot { color: inherit; }

/* ---- Stats ---- */

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stat-tile { background-color: var(--surface-2); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile b { font-size: 30px; color: var(--white); font-weight: 700; line-height: 1.1; }
.stat-tile span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.month-chart { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line-2); }
.month-chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; }
.month-chart .col .b { width: 100%; background: var(--green); border-radius: 4px 4px 0 0; min-height: 0; }
.month-chart .col:hover .b, .month-chart .col:focus-visible .b { background: #7fd88c; }
.month-chart .col:hover .tip, .month-chart .col:focus-visible .tip { display: block; }
.month-chart .tip {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--bg-deep); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; padding: 4px 8px; border-radius: 4px; z-index: 2;
}
.month-axis { display: flex; gap: 2px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.month-axis span { flex: 1; text-align: center; }

.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-list li { display: grid; grid-template-columns: 28px 110px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.rank-list .pos { color: var(--muted); text-align: right; }
.rank-list a { color: var(--text); font-weight: 600; }
.rank-list .track { height: 10px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.rank-list .track div { height: 100%; background: var(--green); border-radius: 0 4px 4px 0; }
.rank-list .val { text-align: right; color: var(--text); font-weight: 700; }
.rank-list .sub { color: var(--muted); font-weight: 400; }

/* ---- Social ---- */

.review-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.review-foot a { color: var(--muted); }
.review-foot a:hover { color: var(--text); }
.review-like { font-size: 12px; }
.review-like[aria-pressed="true"] { color: var(--orange); }
.hot-tag { background: rgba(214,58,58,.2); color: #ffb3b3; border-radius: 3px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.friend-tag { background: rgba(74,144,226,.18); color: #b9d6fa; border-radius: 3px; padding: 1px 6px; font-size: 11px; font-weight: 700; }

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface); }
.people .who { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.people .who a { color: var(--white); font-weight: 700; }
.people-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.people-msg { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
  .people-actions { gap: 6px; }
  .people-msg { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .people-msg span { display: none; }
}
.people .name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.people .who span:not(:where([class^="tag-"], [class^="flair-"])) { color: var(--muted); font-size: 13px; }
.people .who > :where([class^="tag-"], [class^="flair-"]) { align-self: flex-start; margin: 2px 0; }

.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comments li { display: flex; gap: 12px; }
.comments .body { flex: 1; min-width: 0; }
.comments .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.comments .meta strong { color: var(--text-soft); }
.comments p { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }

.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.activity li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--surface); font-size: 14px; color: var(--text-soft); }
.activity li > span:nth-child(2) { flex: 1; min-width: 0; }
.activity a.ep { color: var(--white); font-weight: 600; }
.activity .rating { color: var(--green); letter-spacing: 1px; }
.activity .heart { color: var(--orange); }
.activity time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---- Lists ---- */

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.list-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.list-card:hover strong { color: var(--blue-hover); }
.list-stack { display: flex; }
.list-stack .ep-thumb { flex: 0 0 38%; margin-right: -12%; box-shadow: 4px 0 10px rgba(0,0,0,.5); padding: 0; }
.list-stack .ep-thumb:last-child { margin-right: 0; }
.list-info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.list-info strong { color: var(--white); font-size: 16px; }
.list-info span { display: flex; align-items: center; gap: 6px; }
.list-info .desc { display: block; }
.people .link-button:disabled { opacity: .3; cursor: default; }

/* ---- Tags & arcs ---- */

.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-chip {
  background: var(--surface); color: var(--text-soft); border-radius: 4px; padding: 6px 10px; font-size: 12px; font-weight: 600;
  display: inline-flex; gap: 6px; align-items: center;
}
.tag-chip:hover { color: var(--white); background: var(--line-2); }
.tag-chip.character::before { content: '☺'; color: var(--yellow); }
.tag-chip.theme::before { content: '#'; color: var(--blue); }
.tag-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.tag-chip button:hover { color: var(--red); }
.tag-add { display: flex; gap: 6px; align-items: center; }
.tag-add input { width: 180px; padding: 6px 10px; font-size: 13px; }
.tag-add select { padding: 6px 8px; font-size: 13px; }

.arc-box { background-color: var(--surface-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.arc-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.arc-box li[aria-current] { font-weight: 700; color: var(--white); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; align-items: start; }

/* ---- Rankings ---- */

.rank-table { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rank-table li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--surface); }
.rank-table .pos { width: 32px; text-align: right; color: var(--muted); font-weight: 700; font-size: 18px; }
.rank-table .thumb { flex: 0 0 110px; }
.rank-table .thumb .ep-thumb { padding: 6px; }
.rank-table .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-table .info a { color: var(--white); font-weight: 700; }
.rank-table .info span { color: var(--muted); font-size: 13px; }
.rank-table .score { text-align: right; display: flex; flex-direction: column; }
.rank-table .score b { color: var(--green); font-size: 22px; }
.rank-table .score span { color: var(--muted); font-size: 12px; }

/* ---- Badges, character card ---- */

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge {
  background-color: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted);
  opacity: .6;
}
.badge.earned { background-color: var(--surface-2); opacity: 1; }
.badge .emoji { font-size: 28px; line-height: 1.1; filter: grayscale(1); }
.badge.earned .emoji { filter: none; }
.badge strong { color: var(--white); font-size: 13px; }
.badge .got { color: var(--green); font-weight: 700; }
.badge .bar { height: 6px; margin-top: 4px; }
.badge .secret-hint { margin-top: 6px; padding: 6px 8px; border-radius: 4px; background: rgba(121,224,106,.12); color: #b6f0aa; font-size: 11px; font-weight: 600; line-height: 1.4; }

.char-card { background-color: var(--surface-2); padding: 18px 20px; }

/* ---- Tier list ---- */

.tiers { display: flex; flex-direction: column; gap: 8px; }
.tier { display: flex; min-height: 64px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.tier .label {
  flex: 0 0 64px; display: flex; align-items: center; justify-content: center; font-family: var(--font-cut); font-size: 30px; color: var(--bg);
}
.tier .slot { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; align-content: flex-start; }
.tier .slot.drop-hover, .tier-pool.drop-hover { outline: 3px dashed var(--yellow); outline-offset: -3px; }
.tier-pool { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--bg-deep); border-radius: 4px; min-height: 60px; }
.tier-chip {
  background: var(--surface-2); color: var(--white); border: 2px solid transparent; border-radius: 4px; padding: 8px 10px;
  font: 700 13px var(--font-body); cursor: grab; user-select: none;
}
.tier-chip[aria-pressed="true"] { border-color: var(--yellow); }
.tier-chip .avg { color: var(--green); font-weight: 600; margin-left: 4px; font-size: 11px; }
.tier-view .tier-chip { cursor: default; }

/* ---- Toasts ---- */

#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  background-color: var(--yellow); color: var(--bg); padding: 14px 18px; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); transform: rotate(-.6deg); animation: toast-in .25s ease-out;
}
.toast.out { opacity: 0; transition: opacity .4s; }
@keyframes toast-in { from { transform: translateY(20px) rotate(-.6deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---- Hamburger rain ---- */

.burger-rain { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.burger-rain span { position: absolute; top: -60px; animation-name: burger-fall; animation-timing-function: ease-in; animation-fill-mode: forwards; }
@keyframes burger-fall { to { transform: translateY(calc(100vh + 120px)) rotate(var(--spin)); } }

/* ---- Towelie's towel ---- */

.towel-float {
  position: fixed; left: -80px; top: 30vh; z-index: 999; pointer-events: none; font-size: 64px;
  animation: towel-drift 4s ease-in-out forwards;
}
@keyframes towel-drift {
  0% { transform: translate(0, 0) rotate(-10deg); }
  25% { transform: translate(28vw, -40px) rotate(12deg); }
  50% { transform: translate(55vw, 20px) rotate(-8deg); }
  75% { transform: translate(82vw, -30px) rotate(10deg); }
  100% { transform: translate(calc(100vw + 160px), 0) rotate(-6deg); }
}

/* ---- GROUNDED stamp ---- */

.grounded {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background-color: var(--red); color: var(--white); padding: 10px 16px; transform: rotate(-3deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.grounded .cut { font-size: 26px; line-height: 1; letter-spacing: .06em; }
.grounded span { font-size: 12px; font-weight: 600; }
.grounded a { color: var(--white); text-decoration: underline; }

.team-flair { display: inline-block; background-color: var(--yellow); color: var(--bg); padding: 4px 10px; font-weight: 700; font-size: 12px; transform: rotate(-1.5deg); }

/* ---- Professor Chaos mode ---- */

html.chaos {
  --bg: #10180f; --bg-deep: #0a1009; --surface: #1d2a1b; --surface-2: #243422; --line: #2b3b28; --line-2: #3c5238;
  --green: #7dff4f; --blue: #b9f27a; --blue-hover: #d8ffb0; --muted: #9db596;
}
html.chaos .site-header {
  background: repeating-linear-gradient(115deg, #8f9aa3 0 10px, #c9d2d9 10px 22px, #7c868e 22px 30px);
  border-bottom-color: #5e6870;
}
html.chaos .site-header .main-nav a, html.chaos .site-header .header-link { color: #10180f; }
html.chaos .site-header .nav-soon { color: #2b3b28; }
html.chaos .logo-letter { background-color: #7dff4f !important; }
html.chaos .hero { background: #12220f; }
html.chaos .hero-mountains path:first-child { fill: #23401c; }
html.chaos .btn-green { background: #7dff4f; }
html.chaos .toast { background-color: #7dff4f; }

/* ---- Mysterion mode ---- */

html.mysterion {
  --bg: #120d1a; --bg-deep: #0b0812; --surface: #221a2e; --surface-2: #2b2139; --line: #2e2540; --line-2: #43365a;
  --green: #79e06a; --blue: #c3a6ff; --blue-hover: #e0d2ff; --muted: #a99bbf; --text-soft: #d8cfe6; --yellow: #79e06a;
}
html.mysterion .site-header { background: linear-gradient(90deg, #1b1326, #2a1c3d 50%, #1b1326); border-bottom-color: #43365a; }
html.mysterion .logo-letter { background-color: #2b1f3d !important; color: #79e06a; box-shadow: inset 0 0 0 2px #43365a; }
html.mysterion .hero { background: #160f22; }
html.mysterion .hero-mountains path:first-child { fill: #2a1d3b; }
html.mysterion .hero-mountains path:not(:first-child) { fill: #3a2d50; }
html.mysterion .btn-green { background: #79e06a; }
html.mysterion .toast { background-color: #2b1f3d; color: #e8ffe2; box-shadow: 0 8px 24px rgba(0,0,0,.6), inset 0 0 0 2px #79e06a; }
html.mysterion body::before {
  content: '?'; position: fixed; right: -2vw; bottom: -12vh; z-index: 0; pointer-events: none;
  font-family: var(--font-cut); font-size: 70vh; line-height: 1; color: #79e06a; opacity: .05;
}
html.mysterion main, html.mysterion .site-header, html.mysterion .site-footer { position: relative; z-index: 1; }
html.mysterion .site-header { z-index: 2; } /* so the account menu opens over the page */
/* Secret identities: everyone else's avatar is a "?" and their name is blurred until you hover or focus it. */
html.mysterion .avatar:not(.is-me) { color: transparent; position: relative; background: var(--surface-2); border-color: var(--line-2); }
html.mysterion .avatar:not(.is-me)::after {
  content: '?'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #79e06a; font-family: var(--font-cut); font-size: calc(var(--size) * .55);
}
html.mysterion a[href*="profile.html?u="]:not(.is-me) { filter: blur(5px); transition: filter .2s; }
html.mysterion a[href*="profile.html?u="]:not(.is-me):hover,
html.mysterion a[href*="profile.html?u="]:not(.is-me):focus-visible { filter: none; }
/* Mysterion himself is never masked or blurred, and nobody needs subtitles for him */
html.mysterion .avatar[data-u="kenny"]:not(.is-me)::after { content: none; }
html.mysterion .avatar[data-u="kenny"]:not(.is-me) { background: var(--c); border-color: var(--c); }
html.mysterion .avatar.has-icon[data-u="kenny"]:not(.is-me) svg { visibility: visible; }
html.mysterion a[href="profile.html?u=kenny"]:not(.is-me) { filter: none; }
html.mysterion .kenny-says { display: none; }
@media (prefers-reduced-motion: reduce) { html.mysterion a[href*="profile.html?u="] { transition: none; } }

/* ---- Coon takeover ---- */

.coon-takeover {
  background: repeating-linear-gradient(90deg, #3a3330 0 28px, #4a423d 28px 56px);
  border-bottom: 6px solid #1c1917; color: #f3ede6; animation: coon-in .4s ease-out;
}
.coon-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 14px; padding-bottom: 14px; }
.coon-emoji { font-size: 40px; line-height: 1; }
.coon-inner > div { flex: 1; min-width: 220px; }
.coon-title { font-size: 22px; line-height: 1.15; color: #fff; }
.coon-sub { font-size: 13px; color: #d9cfc5; }
.coon-btn { background: #1c1917; color: #f3ede6; border: 2px solid #f3ede6; }
.coon-btn:hover { background: #f3ede6; color: #1c1917; }
@keyframes coon-in { from { transform: translateY(-100%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .coon-takeover { animation: none; } }

/* ---- Phones ---- */

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 12px 16px; }
  .logo-letter { font-size: 18px !important; padding: 3px 4px 1px; }
  .main-nav { order: 3; width: 100%; gap: 16px; }
  .auth-card, .profile-head, .import-card { padding: 24px 20px; }
  .top4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 0 12px; }
  .diary .date { flex-basis: 70px; }
  .header-search { order: 4; flex: 1; }
  .header-search input[type="search"] { width: 100%; }
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .ep-hero { height: 220px; }
  .ep-layout { margin-top: -90px; gap: 24px; }
  .ep-side { flex-basis: 100%; flex-direction: row; align-items: flex-end; }
  .ep-side .ep-thumb { width: 150px; flex: 0 0 150px; }
  .ep-main, .ep-aside { padding-top: 0; }
  .log-dialog .sheet { padding: 22px 18px; }
  .rank-table .thumb { flex-basis: 72px; }
  .rank-table .pos { width: 22px; font-size: 14px; }
}

/* Butters' Book Club host review */
.butters-review { background: rgba(245,197,24,.07); border: 1px solid rgba(245,197,24,.25); border-radius: 6px; padding: 14px; }
.host-tag { background: rgba(245,197,24,.18); color: #f5d76e; border-radius: 3px; padding: 1px 6px; font-size: 11px; font-weight: 700; }

/* Your own review on an episode page */
.my-review { background: rgba(0,224,84,.06); border: 1px solid rgba(0,224,84,.22); border-radius: 6px; padding: 14px; }

/* Butters' replies under Book Club reviews */

/* Cage Match */
.cage-game { display: flex; flex-direction: column; gap: 14px; }
.cage-arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.cage-card { background: var(--surface); border: 2px solid transparent; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--text); cursor: pointer; transition: transform .12s, border-color .12s; font: inherit; }
.cage-card:hover, .cage-card:focus-visible { border-color: var(--orange); transform: translateY(-3px) rotate(-.5deg); }
.cage-card strong { font-size: 18px; color: var(--white); }
.cage-card span { font-size: 13px; color: var(--muted); }
.cage-vs { font-size: 38px; color: var(--orange); transform: rotate(-8deg); }
.cage-champ { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 18px; align-items: center; padding: 14px; margin-bottom: 18px; background-color: var(--surface); color: var(--text); border: 2px solid var(--yellow); }
.cage-champ > div { display: flex; flex-direction: column; gap: 4px; }
.cage-champ .cut { color: var(--yellow); font-size: 22px; }
.cage-champ strong { font-size: 22px; color: var(--white); }
.cage-champ span:last-child { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .cage-arena { grid-template-columns: 1fr; }
  .cage-vs { text-align: center; }
  .cage-champ { grid-template-columns: 1fr; }
}

/* Tegridy streak */
.streak-card { display: flex; gap: 18px; align-items: center; padding: 16px 20px; background-color: #2f5d34; color: #eaf6e4; }
.streak-card.hot { background-color: #3f7d2c; }
.streak-num { display: flex; flex-direction: column; align-items: center; min-width: 70px; line-height: 1; }
.streak-num b { font-family: 'Luckiest Guy', cursive; font-size: 44px; color: #fff; }
.streak-num span { font-size: 12px; }
.streak-card .streak-text { position: relative; flex: 1; }
.rain-tip { cursor: help; border-bottom: 1px dotted currentColor; }
.rain-help { position: absolute; left: 0; top: 0; z-index: 5; width: 100%; max-width: 360px; box-sizing: border-box;padding: 8px 10px; border: 2px solid #000; border-radius: 8px; background: #14181c; box-shadow: 3px 3px 0 #000; color: #eaf6e4; font-size: 12px; line-height: 1.45; text-align: left; visibility: hidden; pointer-events: none; }
.rain-help b { color: #fff; }
.rain-tip:hover .rain-help, .rain-tip:focus .rain-help { visibility: visible; }
.streak-plant { flex: none; width: 80px; }
.streak-plant svg { display: block; width: 100%; height: auto; }
@media (max-width: 480px) { .streak-card { display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; padding: 14px 12px; } .streak-plant { grid-area: 1 / 1; width: 64px; align-self: end; } .streak-num { grid-area: 2 / 1; min-width: 0; align-self: start; } .streak-text { grid-area: 1 / 2 / span 2; } }
.streak-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.streak-reward { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background-color: var(--surface); }
.streak-reward:not(.earned) .avatar { filter: grayscale(1); opacity: .55; }
.streak-reward-art { display: flex; flex: 0 0 44px; height: 44px; align-items: center; justify-content: center; border: 2px solid #000; border-radius: 50%; background: #4fbf3f; font-size: 22px; }
.streak-reward:not(.earned) .streak-reward-art { filter: grayscale(1); opacity: .55; }
.streak-reward strong { display: block; color: var(--white); font-size: 14px; }
.streak-reward small { display: block; font-size: 12px; color: var(--muted); }
.locked-note { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.swatch.locked, .swatch.locked input { cursor: not-allowed; }
.swatch.locked .avatar { filter: grayscale(1); opacity: .45; }
.lock-days { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: #fff; background: #000; border-radius: 8px; padding: 0 5px; white-space: nowrap; pointer-events: none; }
.dm-streak { display: inline-flex; align-items: flex-end; gap: 2px; flex: none; font-size: 12px; font-weight: 700; }
.dm-streak svg { width: 32px; height: 38px; }
.dm-thread-head .dm-streak { margin-left: 10px; vertical-align: middle; }
/* Online status (js/presence.js): friends list and messages. */
.presence-wrap { position: relative; display: inline-flex; flex: none; }
.presence-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #8a939c; border: 2px solid #000; z-index: 3; pointer-events: none; }
.presence-dot.online { width: 15px; height: 15px; background: #3ee66b; box-shadow: 0 0 6px rgba(62,230,107,.8); }
.dm-who .presence-text, .people .who .presence-text, .presence-text { font-size: 12px; color: var(--muted); }
.dm-who .presence-text.online, .people .who .presence-text.online, .presence-text.online { color: #5ce67f; font-weight: 700; }
.presence-dot[hidden], .presence-text[hidden] { display: none; }
.dm-person.active .presence-text { color: #b9e7c1; }
.dm-person.active .presence-text.online { color: #7dff9c; }
.dm-head-who { display: flex; flex-direction: column; line-height: 1.3; }
.streak-text { display: flex; flex-direction: column; gap: 4px; }
.streak-text strong { color: #fff; font-size: 16px; }
.streak-text p { margin: 0; font-size: 14px; }
.streak-text .who, .streak-best { font-size: 12px; color: #b7d8ad; }

/* Mr. Garrison's Report Card */
.report-card { background-color: #d9caa5; color: #2b2b2b; padding: 22px 24px; background-image: repeating-linear-gradient(transparent 0 27px, rgba(40,80,130,.2) 27px 28px); }
.rc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid #9e2a1f; padding-bottom: 10px; margin-bottom: 12px; }
.rc-head .cut { color: #9e2a1f; font-size: 14px; display: block; }
.rc-head strong { font-family: 'Luckiest Guy', cursive; font-size: 32px; color: #1d3557; }
.rc-meta { font-size: 13px; line-height: 1.6; text-align: right; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rc-table th, .rc-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid rgba(0,0,0,.18); vertical-align: top; }
.rc-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #4a4433; }
.rc-table a { color: #1d3557; font-weight: 700; }
.rc-table td:nth-child(3) { color: #4a4433; white-space: nowrap; }
.rc-grade { font-family: 'Luckiest Guy', cursive; font-size: 24px; display: inline-block; transform: rotate(-6deg); }
.grade-a { color: #1e6b2a; } .grade-b { color: #175283; } .grade-c { color: #7d4a00; } .grade-d { color: #983800; } .grade-f { color: #9e2a1f; }
.rc-foot { margin-top: 14px; font-size: 14px; }
.rc-foot p { margin: 4px 0; }
.rc-sign { text-align: right; font-style: italic; font-family: 'Luckiest Guy', cursive; font-size: 18px; color: #9e2a1f; }
.rc-foot .rc-link { margin-top: 10px; text-align: center; font-weight: 700; color: #1d3557; }
@media (max-width: 640px) { .rc-meta { text-align: left; } }
.grade-inc { color: #5e5744; font-size: 18px; }
.rc-inc td, .rc-inc th { color: #5e5744; }
.rc-need { display: block; font-size: 11px; color: #5e5744; }

/* Cage Match extras */
.cage-filter { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-soft); }
.cage-filter select { width: auto; }
.cage-meter { display: flex; flex-direction: column; gap: 6px; }
.cage-meter-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); }
.cage-meter .bar { height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.cage-meter .bar > div { height: 100%; transition: width .3s; }
.cage-move { font-size: 11px; font-weight: 700; margin-left: 4px; }
.cage-move.up { color: var(--green); } .cage-move.down { color: #e5534b; } .cage-move.new { color: var(--yellow); }
.cage-note { display: block; margin-top: 6px; }
.rc-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.rc-actions .chip { background: #ece0c1; color: #1d3557; border: 2px solid #1d3557; }
.rc-actions .chip:hover { background: #f5edd8; }
.rc-actions .chip[aria-pressed="true"] { background: #1d3557; color: #fff; }
.rc-actions .btn-ghost { background: #ece0c1; color: #1d3557; border: 2px solid #1d3557; padding: 6px 12px; }
.rc-actions .btn-ghost:hover { background: #f5edd8; color: #1d3557; }
.rc-curve-tag { font-size: 11px; background: #1d3557; color: #fff; border-radius: 3px; padding: 1px 5px; }
.rc-stars { display: block; margin-top: 4px; font-size: 12px; color: #4a4433; }
.rc-stars a { color: #1d3557; font-weight: 600; }
.rc-st { color: #7d4a00; letter-spacing: 1px; }
.cage-card .cage-rating { font-size: 13px; color: var(--muted); } .cage-card .cage-rating b { color: var(--green); letter-spacing: 1px; font-size: 16px; }

/* ===== Cartman's Cage Match arena ===== */
.cage-ring {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 18px;
  border: 6px solid #1a1a1a; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 236, 170, .22), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px),
    #15181d;
  box-shadow: inset 0 0 0 3px #f5c518, inset 0 0 60px rgba(0,0,0,.8), 0 10px 30px rgba(0,0,0,.4);
}
.cage-ring::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(-45deg, #f5c518 0 14px, #1a1a1a 14px 28px); }
.cage-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.cage-title {
  font-size: clamp(26px, 5vw, 46px); line-height: 1; transform: rotate(-2deg);
  background: linear-gradient(180deg, #ffe066 0%, #f5a623 55%, #d63a3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #000); letter-spacing: 1px;
}
.cage-round { background: #d63a3a; color: #fff; padding: 4px 12px; border: 3px solid #000; border-radius: 6px; font-size: 18px; transform: rotate(3deg); box-shadow: 3px 3px 0 #000; }
.cage-host { display: flex; gap: 14px; align-items: flex-start; }
.cage-mic { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: radial-gradient(circle at 35% 35%, #ff6b6b, #b71c1c); border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
.cage-bubble { position: relative; flex: 1; background: #fff3a6; color: #1a1a1a; border: 3px solid #000; border-radius: 14px; padding: 10px 16px 12px; box-shadow: 4px 4px 0 #000; }
.cage-bubble::before { content: ""; position: absolute; left: -14px; top: 18px; border: 8px solid transparent; border-right: 12px solid #000; }
.cage-bubble::after { content: ""; position: absolute; left: -8px; top: 20px; border: 6px solid transparent; border-right: 9px solid #fff3a6; }
.cage-bubble .who { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #d63a3a; }
.cage-bubble .call { margin: 2px 0 0; font-family: 'Luckiest Guy', cursive; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.25; letter-spacing: .3px; }
.cage-bubble .next { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #444; }
.cage-bubble .next:empty { display: none; }
.cage-bubble.pop { animation: cage-pop .35s cubic-bezier(.2, 1.6, .5, 1); }
@keyframes cage-pop { 0% { transform: scale(.85) rotate(-2deg); } 100% { transform: scale(1) rotate(0); } }

.cage-ring .cage-arena { position: relative; }
.cage-card { position: relative; background: #22262d; border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 10px 10px 12px; overflow: visible; }
.cage-card.red { border-top: 6px solid #d63a3a; }
.cage-card.blue { border-top: 6px solid #4a90e2; }
.cage-card.champ { border-top-color: #f5c518; box-shadow: 0 0 0 2px #f5c518, 4px 4px 0 #000, 0 0 24px rgba(245,197,24,.35); }
.cage-card .corner { align-self: flex-start; font-size: 13px; padding: 2px 8px; border-radius: 4px; background: #d63a3a; color: #fff; transform: rotate(-2deg); }
.cage-card.blue .corner { background: #4a90e2; }
.cage-card.champ .corner { background: #f5c518; color: #1a1a1a; }
.cage-card:hover, .cage-card:focus-visible { border-color: #f5c518; transform: translateY(-4px) rotate(-.6deg); }
.cage-ring .cage-vs { font-size: clamp(40px, 6vw, 64px); color: #f5c518; text-shadow: 3px 3px 0 #d63a3a, 6px 6px 0 #000; animation: cage-vs 1.4s ease-in-out infinite; }
@keyframes cage-vs { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.12); } }
.cage-card::after { position: absolute; top: 38%; left: 50%; font-family: 'Luckiest Guy', cursive; font-size: clamp(28px, 4vw, 44px); padding: 4px 14px; border: 4px solid currentColor; border-radius: 8px; transform: translate(-50%, -50%) rotate(-12deg) scale(2.5); opacity: 0; pointer-events: none; background: rgba(0,0,0,.55); }
.cage-card.win { border-color: #f5c518; transform: scale(1.04); box-shadow: 0 0 0 3px #f5c518, 0 0 36px rgba(245,197,24,.6); }
.cage-card.win::after { content: "WINNER!"; color: #f5c518; animation: cage-stamp .3s ease-out forwards; }
.cage-card.ko { animation: cage-ko .35s ease-out forwards; }
@keyframes cage-ko { to { filter: grayscale(1) brightness(.55); transform: rotate(4deg) translateY(10px); } }
.cage-card.ko::after { content: "K.O."; color: #ff5a5a; animation: cage-stamp .3s ease-out forwards; }
@keyframes cage-stamp { to { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
.cage-arena.fought .cage-vs { animation: cage-shake .4s; }
@keyframes cage-shake { 0%, 100% { transform: rotate(-8deg); } 25% { transform: rotate(-20deg) scale(1.3); } 75% { transform: rotate(6deg) scale(1.2); } }
.cage-crowd { text-align: center; min-height: 1.2em; font-weight: 800; color: #ffe066; letter-spacing: .5px; opacity: 0; }
.cage-crowd.show { animation: cage-crowd 2.2s ease-out; }
@keyframes cage-crowd { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.cage-ring .btn-ghost { border-color: rgba(255,255,255,.3); }
.cage-keys { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .cage-ring .cage-vs, .cage-bubble.pop, .cage-crowd.show { animation: none; }
  .cage-crowd.show { opacity: 1; }
  .cage-card.win::after, .cage-card.ko::after { animation: none; opacity: 1; transform: translate(-50%, -50%) rotate(-12deg); }
  .cage-card.ko { animation: none; filter: grayscale(1) brightness(.55); }
}
@media (max-width: 640px) { .cage-ring { padding: 18px 12px 14px; } .cage-mic { flex-basis: 44px; height: 44px; font-size: 22px; } }

/* Home: Book Club + Cage Match side by side */
.cage-ad {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 18px; border-radius: 8px; color: #eee; overflow: hidden;
  border: 4px solid #1a1a1a; box-shadow: inset 0 0 0 2px #f5c518, 4px 4px 0 #000;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 236, 170, .2), transparent 65%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 18px),
    #15181d;
  transition: transform .15s;
}
.cage-ad::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: repeating-linear-gradient(-45deg, #f5c518 0 12px, #1a1a1a 12px 24px); }
.cage-ad:hover { color: #eee; transform: scale(1.01); }
.cage-ad-title { font-size: 26px; line-height: 1.05; background: linear-gradient(180deg, #ffe066, #f5a623 55%, #d63a3a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 2px 0 #000); }
.cage-ad-text { font-size: 14px; color: #ddd; }
.cage-ad-text strong { color: #ffe066; }
.cage-ad-cta { align-self: flex-start; margin-top: auto; background: #d63a3a; color: #fff; padding: 4px 12px; border: 3px solid #000; border-radius: 6px; box-shadow: 3px 3px 0 #000; font-size: 15px; }
.cage-ad-head { display: flex; gap: 10px; align-items: center; } .cage-ad-glove { font-size: 30px; line-height: 1; filter: drop-shadow(2px 2px 0 #000); }

/* ===== Butters' Book Club: school library / notebook theme ===== */
:root { --club-paper: #fff3a6; --club-ink: #1d2a44; --club-line: #e8d27a; --club-margin: #f28b82; --club-blue: #2f6db5; }
.club-tape { position: absolute; top: -10px; left: 50%; width: 120px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: repeating-linear-gradient(45deg, rgba(245,197,24,.85) 0 10px, rgba(255,224,102,.85) 10px 20px); box-shadow: 0 2px 4px rgba(0,0,0,.25); z-index: 2; }
.club-tape.small { width: 80px; height: 20px; top: -9px; left: 60px; transform: rotate(4deg); }
.club-sticker { position: absolute; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; line-height: 1; font-size: 26px; text-align: center; color: #5a3d00;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c518 55%, #c99700); border: 3px solid #000; box-shadow: 3px 3px 0 #000; transform: rotate(12deg); z-index: 2; }
.club-sticker small { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin-top: -10px; }
.notebook { background: linear-gradient(90deg, transparent 34px, var(--club-margin) 34px 36px, transparent 36px), repeating-linear-gradient(var(--club-paper) 0 27px, var(--club-line) 27px 28px); color: var(--club-ink); }

/* Home card */
.club-ad {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 20px 18px 50px; border-radius: 8px; overflow: visible;
  border: 4px solid #1a1a1a; box-shadow: inset 0 0 0 2px var(--club-blue), 4px 4px 0 #000; transition: transform .15s;
  background: linear-gradient(90deg, transparent 34px, var(--club-margin) 34px 36px, transparent 36px), repeating-linear-gradient(var(--club-paper) 0 27px, var(--club-line) 27px 28px);
  color: var(--club-ink);
}
.club-ad:hover { color: var(--club-ink); transform: scale(1.01); }
.club-ad::before { content: ""; position: absolute; left: 12px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #15181d; box-shadow: 0 38px 0 #15181d, 0 76px 0 #15181d; }
.club-ad-head { display: flex; gap: 10px; align-items: center; padding-right: 64px; }
.club-ad-books { font-size: 30px; line-height: 1; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6)); }
.club-ad-title { font-size: 26px; line-height: 1.05; color: var(--club-blue); text-shadow: 2px 2px 0 #f5c518, 3px 3px 0 #000; }
.club-ad-text { font-size: 14px; }
.club-ad-text strong { color: #b23a2e; }
.club-ad-cta { align-self: flex-start; margin-top: auto; background: var(--club-blue); color: #fff; padding: 4px 12px; border: 3px solid #000; border-radius: 6px; box-shadow: 3px 3px 0 #000; font-size: 15px; }
.club-ad .club-sticker { top: -14px; right: -10px; }

/* Club page hero */
.club-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 30px 24px 22px 56px; border: 4px solid #1a1a1a; border-radius: 10px; box-shadow: 5px 5px 0 #000;
  background: linear-gradient(90deg, transparent 38px, var(--club-margin) 38px 40px, transparent 40px), repeating-linear-gradient(var(--club-paper) 0 31px, var(--club-line) 31px 32px); color: var(--club-ink); }
.club-hero::before { content: ""; position: absolute; left: 14px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg, #14181c); box-shadow: 0 44px 0 var(--bg, #14181c), 0 88px 0 var(--bg, #14181c); }
.club-kicker { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #b23a2e; }
.club-title { margin: 2px 0 4px; font-size: clamp(34px, 6vw, 56px); line-height: 1; color: var(--club-blue); text-shadow: 3px 3px 0 #f5c518, 5px 5px 0 #000; transform: rotate(-1.5deg); }
.club-sub { margin: 0; font-size: 14px; color: #3c4a66; max-width: 520px; }
.club-due { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border: 3px dashed #c0392b; border-radius: 8px; color: #c0392b; transform: rotate(6deg); background: rgba(255,243,166,.7); text-transform: uppercase; font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.club-due b { font-family: 'Luckiest Guy', cursive; font-size: 44px; line-height: 1; }

/* This week's book */
.club-book { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr); gap: 26px; align-items: center; }
.club-cover { position: relative; display: block; padding-left: 16px; border-radius: 4px 8px 8px 4px; background: linear-gradient(90deg, #1d3557, #2f6db5 60%, #1d3557); box-shadow: 6px 6px 0 #000; transform: rotate(-1deg); }
.club-cover .ep-thumb { border-radius: 0 6px 6px 0; }
.club-ribbon { position: absolute; top: 12px; left: -8px; background: #d63a3a; color: #fff; padding: 4px 12px; border: 3px solid #000; box-shadow: 3px 3px 0 #000; font-size: 14px; transform: rotate(-3deg); z-index: 2; }
.club-cover .club-sticker { right: -14px; bottom: -14px; }
.club-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 3px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 #000; color: var(--club-ink);
  background: linear-gradient(var(--club-paper) 0 34px, #e57373 34px 36px, var(--club-paper) 36px) , var(--club-paper); }
.club-card .club-code { font-size: 12px; font-weight: 700; color: #6b7a93; }
.club-card h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.club-card h2 a { color: var(--club-blue); }
.club-blurb { margin: 0; font-size: 14px; color: #3c4a66; }
.club-card .result-count { color: #6b7a93; }
.club-members { display: flex; flex-direction: column; gap: 6px; border-top: 2px dashed #cbd5e1; padding-top: 10px; }
.club-members-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #b23a2e; }
.club-members > div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Butters' review: a note on lined paper with a gold star */
.butters-review { position: relative; border: 3px solid #000 !important; border-radius: 6px; box-shadow: 4px 4px 0 #000; padding: 18px 16px 14px 50px !important;
  background: linear-gradient(90deg, transparent 38px, var(--club-margin) 38px 40px, transparent 40px), repeating-linear-gradient(var(--club-paper) 0 25px, var(--club-line) 25px 26px) !important; color: var(--club-ink); }
.butters-review p { color: var(--club-ink); font-size: 15px; }
.butters-review .review-meta, .butters-review .review-foot, .butters-review .review-foot a { color: #5b6b86; }
.butters-review .review-meta strong { color: var(--club-ink); }
.butters-review .review-meta .rating { color: #c99700; }
.butters-review .review-like { color: var(--club-blue); }
.butters-review .host-tag { background: var(--club-blue); color: #fff; }
.butters-star { position: absolute; right: 12px; top: -12px; font-size: 30px; transform: rotate(14deg); filter: drop-shadow(2px 2px 0 #000); }

/* Past reads on a wooden shelf */
.club-shelf { position: relative; padding: 14px 14px 30px; border-radius: 6px; background: rgba(139, 90, 43, .12); }
.club-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-radius: 0 0 6px 6px; background: linear-gradient(#a8743f, #7a4e24); box-shadow: 0 4px 0 #4a2e12; }
@media (max-width: 720px) { .club-book { grid-template-columns: 1fr; } .club-hero { padding-left: 48px; } }
/* Butters' replies: yellow sticky notes */

/* Book Club vote */
.club-vote-butters { margin: 0 0 14px; font-size: 14px; color: var(--text-soft); font-style: italic; }
.club-vote-butters span { font-style: normal; color: var(--muted); }
.club-vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.club-vote-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 3px solid #000; border-radius: 6px; box-shadow: 4px 4px 0 #000; color: var(--club-ink);
  background: repeating-linear-gradient(var(--club-paper) 0 23px, var(--club-line) 23px 24px); }
.club-vote-card:nth-child(2) { transform: rotate(.8deg); } .club-vote-card:nth-child(3) { transform: rotate(-.6deg); }
.club-vote-card.mine { box-shadow: 0 0 0 3px var(--green), 4px 4px 0 #000; }
.club-vote-flag { position: absolute; top: -12px; right: 10px; z-index: 2; background: #f5c518; color: #1a1a1a; padding: 2px 10px; border: 2px solid #000; border-radius: 4px; font-size: 13px; transform: rotate(4deg); }
.club-vote-card.leading .club-vote-flag { background: #d63a3a; color: #fff; }
.club-vote-title { font-weight: 800; color: var(--club-blue); }
.club-vote-code { font-size: 12px; color: #6b7a93; }
.club-vote-bar { height: 8px; border: 2px solid #000; border-radius: 4px; background: #fffbe0; overflow: hidden; }
.club-vote-bar > div { height: 100%; background: var(--club-blue); }
.club-vote-card .btn-ghost { color: var(--club-ink); border-color: rgba(0,0,0,.35); }

/* Profile: Book Club library card */
.library-card { max-width: 760px; border: 3px solid #000; border-radius: 8px; box-shadow: 5px 5px 0 #000; overflow: hidden; background: #f3ead2; color: var(--club-ink); transform: rotate(-.4deg); }
.club-vote-card .btn { border: 2px solid #000; box-shadow: 2px 2px 0 #000; } .club-vote-card .btn-ghost { background: #fffbe0; color: var(--club-ink); } .club-vote-card .btn-ghost:hover { background: #ffe97a; }

/* Cartman's bubble: red announcer card (his jacket), mic in his teal-and-yellow hat colours */
.cage-bubble { background: linear-gradient(180deg, #e04848, #b02020); color: #fff; }
.cage-bubble::after { border-right-color: #d23c3c; }
.cage-bubble .who { color: #ffe066; }
.cage-bubble .call { color: #fff; text-shadow: 2px 2px 0 #000; }
.cage-bubble .next { color: #ffe3e3; }
.cage-mic { background: radial-gradient(circle at 35% 35%, #5ee0ea, #11808c); }
.club-due.archived { border-color: #2e8b3a; color: #2e8b3a; transform: rotate(-5deg); }
.club-shelf .ep-card.current { outline: 3px solid #f5c518; outline-offset: 3px; border-radius: 6px; }

/* ===== Original paper-cutout art ===== */
.art { display: block; width: 100%; height: auto; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }

/* Hero: paper town in front of the mountains, and gentle falling snow */
.hero-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-snow::before, .hero-snow::after {
  content: ""; position: absolute; inset: -320px 0 0; opacity: .7;
  background-image: radial-gradient(2.5px 2.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 110px 140px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 190px 80px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 260px 210px, #fff 50%, transparent 51%);
  background-size: 300px 320px; animation: snowfall 14s linear infinite;
}
.hero-snow::after { background-size: 220px 240px; opacity: .45; animation: snowfall2 22s linear infinite; transform: translateX(60px); }
@keyframes snowfall2 { to { background-position: -30px 240px; } }
@keyframes snowfall { to { background-position: 40px 320px; } }

/* Footer: a snowy pine strip on every page */
.site-footer { border-top: 0; position: relative; }
.footer-art { line-height: 0; margin-top: 36px; background: var(--bg); }
.art-pines { display: block; width: 100%; height: 72px; filter: drop-shadow(0 -2px 0 rgba(0,0,0,.2)); }

/* "Nothing here" pages: a paper bus stop */
.big-message-art { width: 120px; margin: 0 auto 10px; transform: rotate(-4deg); }

/* Cage Match pieces */


.cage-ad-glove { width: 42px; flex: 0 0 42px; transform: rotate(-12deg); }
.cage-champ { position: relative; }
.cage-champ-belt { position: absolute; right: 18px; top: 14px; width: 120px; transform: rotate(6deg); z-index: 2; }

/* Book Club pieces */
.club-ad-books { width: 48px; flex: 0 0 48px; transform: rotate(-6deg); }
.club-hero-art { position: absolute; right: 168px; top: 18px; width: 92px; transform: rotate(-8deg); }

@media (max-width: 720px) { .club-hero-art { display: none; } .cage-champ-belt { width: 84px; top: 10px; right: 10px; } }
@media (prefers-reduced-motion: reduce) { .hero-snow::before, .hero-snow::after { animation: none; } }

/* ===== General polish ===== */
/* Header: a construction-paper stripe in the logo colours */
.site-header::after { content: ""; display: block; height: 5px; background: linear-gradient(90deg, #3fb950 0 20%, #4a90e2 20% 40%, #d63a3a 40% 60%, #f5c518 60% 80%, #f2711c 80%); box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.site-header { border-bottom: 0; }
/* Episode cards wobble a little, like paper, when hovered */
.ep-card .ep-thumb { transition: transform .15s ease, box-shadow .15s ease; }
.ep-card:hover .ep-thumb { transform: rotate(-1.2deg) translateY(-3px); box-shadow: 4px 6px 0 rgba(0,0,0,.45); }
.ep-grid .ep-card:nth-child(even):hover .ep-thumb { transform: rotate(1.2deg) translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .ep-card:hover .ep-thumb { transform: none; } }

/* Paper-cutout profile pictures */
.avatar.has-icon { padding: calc(var(--size) * .1); } /* not %: percentage padding follows the parent's width */
.avatar.has-icon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
html.mysterion .avatar.has-icon:not(.is-me) svg { visibility: hidden; }
.icon-picker .avatar.has-icon, .icon-picker .avatar { transition: transform .12s; } .icon-picker .swatch:hover .avatar { transform: rotate(-6deg) scale(1.06); }

/* ===== Header on phones and tablets: ☰ menu ===== */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .header-inner { gap: 10px 12px; }
  .logo { order: 1; }
  .header-right { order: 2; gap: 10px; }
  .menu-toggle { display: inline-flex; order: 3; }
  .header-right > .header-search, .header-right > .admin-link { display: none; }
  .main-nav { order: 4; display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 8px; }
  .site-header.menu-open .main-nav { display: flex; }
  .main-nav > a { display: block; padding: 12px 4px; border-top: 1px solid var(--surface); font-size: 15px; text-align: left; color: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
  .menu-open .menu-toggle { background: var(--surface-2); }
}
@media (max-width: 480px) {
  .logo-letter { font-size: 15px !important; padding: 2px 3px 1px; }
  .header-right { gap: 8px; }
  .header-right .btn-green { padding: 8px 10px; }
  .header-right .avatar { --size: 34px !important; }
}

/* Settings: account section */
.account { margin-top: 36px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; align-items: start; }
.account-grid h3 { margin: 0; font-size: 20px; color: var(--white); }
.btn-danger { background: var(--red); color: #fff; border: 0; }
.btn-danger:hover { background: #b52a2a; }
.danger-zone { border: 2px solid rgba(214,58,58,.5); }

/* Header search dropdown */
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: min(360px, 90vw); max-height: 70vh; overflow: auto; padding: 6px; background: var(--surface); border: 2px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 #000; }
.search-pop-head { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.search-pop-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.search-pop-item:hover, .search-pop-item:focus { background: var(--surface-2); color: var(--white); }
.search-pop-item small { color: var(--muted); }
.search-pop-code { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--muted); min-width: 52px; text-transform: uppercase; }
.search-pop-snippet { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; }
.search-pop-snippet mark { background: none; color: var(--yellow); font-weight: 700; }
.search-pop-hint { padding: 8px 10px 4px; font-size: 13px; color: var(--muted); }
.search-pop-hint strong { color: var(--text); }
.search-pop-try { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 10px; }
.search-pop-empty { padding: 10px; color: var(--muted); font-size: 14px; }
.search-pop-all { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--blue); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.comment-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; } .comment-edit textarea { width: 100%; }

/* Phone header, part 2: a grid keeps logo, actions and ☰ on one row */
@media (max-width: 900px) {
  .header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .logo { grid-column: 1; grid-row: 1; }
  .header-right { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; }
  .club-cover .club-sticker { right: -4px; bottom: -10px; }
  .club-ad .club-sticker { right: -4px; }
}
@media (max-width: 420px) {
  .logo-letter { font-size: 13px !important; padding: 2px 2px 1px; }
  .header-right .btn-green { padding: 7px 9px; font-size: 12px; }
}
.butters-liked { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: #fff3a6; color: #b23a2e; font-weight: 800; font-size: 11px; border: 1.5px solid #000; transform: rotate(-2deg); }

/* Jimmy's Comedy Roast */
@keyframes jimmy-in { from { opacity: 0; transform: translateY(8px) rotate(-1deg); } to { opacity: 1; transform: none; } }
/* Stan's Picks: blue jacket panel, red collar trim, snow along the bottom. */
.stan-hat { width: 42px; flex: 0 0 42px; transform: rotate(-8deg); filter: drop-shadow(3px 3px 0 rgba(0,0,0,.45)); }
.stan-hat svg { display: block; width: 100%; height: auto; }
.stan-quote { position: relative; flex: 1 1 260px; margin: 0 0 0 10px; padding: 6px 12px; font-size: 13px; background: #fdfaf0; color: #1b1b1b; font-weight: 600; border: 3px solid #111; border-radius: 14px; box-shadow: 4px 4px 0 rgba(0,0,0,.5); }
.stan-quote::before { content: ""; position: absolute; left: -10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: #fdfaf0; border: solid #111; border-width: 0 0 3px 3px; transform: rotate(45deg); }
.stan-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 10px; }
@media (max-width: 900px) { .stan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stan-pick { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stan-pick .ep-card-meta { display: none; }
.stan-pick .ep-card:hover .ep-thumb { transform: rotate(-1.2deg) translateY(-3px); }
.stan-reason { flex: 1; margin: 0; font-size: 11px; line-height: 1.35; color: #e6eefc; overflow-wrap: anywhere; }
.stan-actions { display: flex; gap: 5px; }
.stan-pick .ep-thumb { aspect-ratio: 2 / 1; padding: 5px; }
.stan-pick .ep-card-title { font-size: 12px; }
.stan-pick .ep-card-code { font-size: 10px; }
.stan-actions .stan-hide { flex: 0 0 30px; }
.stan-actions button { flex: 1 1 auto; padding: 2px 6px; font: 600 11px var(--font-body); white-space: nowrap; cursor: pointer; color: #fff; background: rgba(0,0,0,.3); border: 2px solid #111; border-radius: 6px; box-shadow: 2px 2px 0 #000; }
.stan-actions .stan-save { background: #c8332e; }
.stan-actions .stan-save[aria-pressed="true"] { background: #2e8b45; }
.stan-actions button:hover { filter: brightness(1.15); }
.stan-actions button:disabled { opacity: .6; cursor: default; }
@media (max-width: 760px) {
  .stan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .stan-quote { flex-basis: 100%; margin-left: 0; }
  .stan-quote::before { left: 26px; top: -2px; transform: rotate(135deg); }
}

/* ===== Kenny's Daily Mystery Episode ===== */
.mystery-head { display: flex; gap: 16px; align-items: center; }
.mystery-head h1 { margin: 2px 0 4px; font-size: clamp(30px, 5vw, 46px); color: #f2711c; text-shadow: 3px 3px 0 #000; transform: rotate(-1deg); }
.mystery-head p { margin: 0; color: var(--text-soft); max-width: 620px; }
.mystery-kenny { flex: 0 0 64px; height: 64px; display: grid; place-items: center; font-size: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffa64d, #d4570f); border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
.mystery-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.mystery-frame { position: relative; overflow: hidden; border: 4px solid #000; border-radius: 8px; box-shadow: 5px 5px 0 #000; background: #000; aspect-ratio: 16 / 9; }
.mystery-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: filter .5s ease; }
.mystery-tries { position: absolute; top: 10px; right: 10px; background: #f2711c; color: #fff; padding: 3px 10px; border: 2px solid #000; border-radius: 4px; transform: rotate(4deg); font-size: 15px; }
.mystery-guess { position: relative; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mystery-guess input { width: 100%; font-size: 16px; padding: 12px 14px; }
.mystery-guess .pick-results { position: absolute; top: 52px; left: 0; right: 0; z-index: 5; background: var(--surface); border-radius: 6px; box-shadow: 4px 4px 0 #000; }
.mystery-guess .pick-results:empty { display: none; }
.mystery-guesses { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mystery-guesses li { padding: 6px 12px; border-radius: 6px; background: var(--surface); font-size: 14px; }
.mystery-guesses li.wrong { color: #ff8a8a; } .mystery-guesses li.right { color: var(--green); font-weight: 700; }
.mystery-warmth { display: block; font-size: 12px; font-weight: 700; color: var(--white); }
.mystery-warmth.warm { color: #ffd23f; }
.kenny-evidence { font-size: 28px; letter-spacing: 6px; }
.mystery-result { margin-top: 16px; padding: 16px 18px; border: 3px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 #000; }
.mystery-result.won { background: #1f4d2a; } .mystery-result.lost { background: #4d1f1f; }
.mystery-result strong { font-size: 24px; color: #fff; }
.mystery-result p { margin: 6px 0 10px; }
.mystery-squares { font-size: 22px; letter-spacing: 2px; margin-bottom: 10px; }
.mystery-side { display: flex; flex-direction: column; gap: 18px; }
.mystery-hints h2, .mystery-stats h2 { margin: 0 0 10px; font-size: 20px; color: var(--white); }
.kenny-hint { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; padding: 10px 12px; background: #f2711c; color: #2b1300; border: 2px solid #000; border-radius: 12px 12px 12px 2px; box-shadow: 3px 3px 0 #000; }
.kenny-says { font-family: 'Luckiest Guy', cursive; font-size: 16px; }
.kenny-means { font-size: 13px; font-weight: 600; }
.mystery-stats { padding: 14px 16px; background-color: var(--surface); border-radius: 8px; }
@media (max-width: 760px) { .mystery-layout { grid-template-columns: 1fr; } }

/* Home: Kenny's mystery card */
.kenny-ad { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 18px; border-radius: 8px; border: 4px solid #1a1a1a; box-shadow: 4px 4px 0 #000; color: #2b1300; transition: transform .15s;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.18), transparent 60%), repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 3px, transparent 3px 9px), #f2711c; }
.kenny-ad:hover { color: #f1e8ff; transform: scale(1.01); }
.kenny-ad-head { display: flex; gap: 10px; align-items: center; }
.kenny-ad-head span:first-child { font-size: 30px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.5)); }
.kenny-ad-title { font-size: 26px; line-height: 1.05; color: #fff; text-shadow: 2px 2px 0 #000; }
.kenny-ad-text { font-size: 14px; font-weight: 600; }
.kenny-ad-cta { align-self: flex-start; margin-top: auto; background: #2b1300; color: #fff; padding: 4px 12px; border: 3px solid #000; border-radius: 6px; box-shadow: 3px 3px 0 #000; font-size: 15px; }
/* Jimmy: one joke at a time, in a speech bubble under the profile buttons */
.jimmy-bubble { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: var(--surface-2); color: var(--white); border: 2px solid #000; border-radius: 14px; box-shadow: 3px 3px 0 #000; }
.jimmy-bubble p { margin: 0; flex: 1; font-size: 15px; line-height: 1.45; }
.jimmy-mic { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe066, #c99700); border: 2px solid #000; font-size: 17px; }
.jimmy-rim { align-self: flex-end; font-size: 11px; color: var(--muted); white-space: nowrap; }
.jimmy-bubble.pop { animation: cage-pop .3s cubic-bezier(.2, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .jimmy-bubble.pop { animation: none; } }

/* ===== Kenny's mystery, part 2: case-file / evidence-board theme ===== */
.case-head { position: relative; padding: 30px 26px 22px; border: 4px solid #1a1a1a; border-radius: 4px 10px 10px 10px; box-shadow: 5px 5px 0 #000; color: #3b2a12;
  background: linear-gradient(180deg, rgba(0,0,0,.04), transparent 30%), #e9c98a; margin-top: 18px; }
.case-tab { position: absolute; top: -22px; left: -4px; padding: 4px 16px 2px; background: #e9c98a; border: 4px solid #1a1a1a; border-bottom: 0; border-radius: 8px 8px 0 0; font-size: 15px; color: #3b2a12; }
.case-stamp { position: absolute; top: 14px; right: 18px; padding: 2px 10px; border: 3px solid #c0392b; border-radius: 6px; color: #c0392b; font-size: 18px; transform: rotate(8deg); opacity: .85; }
.case-head-row { display: flex; gap: 16px; align-items: center; }
.case-head h1 { margin: 0 0 4px; font-size: clamp(30px, 5vw, 46px); color: #f2711c; text-shadow: 3px 3px 0 #000; transform: rotate(-1deg); }
.case-head p { margin: 0; color: #4a3820; max-width: 640px; font-weight: 500; }
.mystery-board { padding: 18px; border-radius: 10px; border: 4px solid #1a1a1a; box-shadow: 5px 5px 0 #000;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,200,140,.12), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='8' y='40' font-size='34' font-family='Arial' fill='%23ffffff' fill-opacity='.05'%3E%3F%3C/text%3E%3C/svg%3E"), #1b1410; }
.mystery-frame { border: 10px solid #f2711c; border-radius: 28px; box-shadow: inset 0 0 0 4px #7a3a08, 0 0 0 4px #000, 6px 6px 0 #000; }
.mystery-frame img { border-radius: 16px; }
.evidence-label { position: absolute; top: 10px; left: 12px; z-index: 2; padding: 2px 10px; background: #fff3a6; color: #1a1a1a; border: 2px solid #000; transform: rotate(-4deg); font-size: 13px; }
.case-verdict { position: absolute; left: 50%; top: 50%; z-index: 2; padding: 6px 18px; font-size: clamp(28px, 5vw, 46px); border: 5px solid currentColor; border-radius: 10px; background: rgba(0,0,0,.45); transform: translate(-50%, -50%) rotate(-10deg); }
.case-verdict.won { color: #5be36f; } .case-verdict.lost { color: #ff5a5a; }
.kenny-lives { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 22px; }
.kenny-lives span { filter: drop-shadow(1px 1px 0 #000); transition: opacity .3s; }
.kenny-lives span.used { opacity: .2; filter: grayscale(1); }
.kenny-lives b { margin-left: 8px; font-size: 13px; color: #ffb27a; text-transform: uppercase; letter-spacing: .5px; }
.mystery-board .mystery-guess input { background: #2a1e16; border-color: #5a3d22; }
.case-folder { padding: 16px; border: 3px solid #1a1a1a; border-radius: 4px 10px 10px 10px; box-shadow: 4px 4px 0 #000; background: #e9c98a; color: #3b2a12; }
.case-folder h2 { margin: 0 0 12px; font-size: 20px; color: #3b2a12; }
.case-folder .kenny-hint { position: relative; padding-top: 22px; }
.case-folder .exhibit { position: absolute; top: -9px; left: 10px; padding: 1px 8px; background: #1a1a1a; color: #e9c98a; font-size: 11px; border-radius: 3px; }
.case-folder .kenny-hint.locked { background: rgba(0,0,0,.08); color: #6b5530; border-style: dashed; box-shadow: none; }
.case-folder .kenny-hint.locked .kenny-means { font-weight: 700; }
/* Comment replies: indented under the comment they answer */
.comments > li.replies { display: block; padding: 0 0 0 44px; border: 0; margin-top: -6px; }
.comments > li.replies > .comments { border-left: 2px solid var(--line); padding-left: 12px; }
.comments li.is-reply .body p { font-size: 14px; }
.reply-to { color: var(--blue); font-weight: 600; }
.reply-box:empty { display: none; }
.reply-box { margin-top: 6px; }
/* Comments under Butters' Book Club review */
.butters-thread { margin: -6px 0 6px 50px; padding: 12px 14px; border-left: 3px solid #f5c518; background: rgba(245,197,24,.05); border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.butters-comment-form { display: flex; gap: 8px; align-items: flex-end; }
.butters-comment-form textarea { flex: 1; min-height: 42px; }
@media (max-width: 560px) { .butters-thread { margin-left: 0; } .butters-comment-form { flex-direction: column; align-items: stretch; } }
.menu-count { margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; }

/* ===== Direct messages ===== */
.dm-head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); color: var(--white); }
.dm-cartman { margin: 6px 0 4px; font-size: 15px; font-style: italic; color: #ffb3b3; }
.dm-cartman span:last-child { font-style: normal; color: var(--muted); font-size: 13px; }
.dm-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 18px; margin-top: 18px; min-height: 480px; }
.dm-list { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--surface); border-radius: 10px; border: 2px solid #000; box-shadow: 4px 4px 0 #000; align-self: start; }
.dm-person { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: var(--text); }
.dm-person:hover { background: var(--surface-2); color: var(--white); }
.dm-person.active { background: #1f4d2a; color: #fff; }
.dm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-who small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-person.active .dm-who small { color: #b9e7c1; }
.dm-person time { font-size: 11px; color: var(--muted); }
.dm-unread { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.dm-thread { display: flex; flex-direction: column; background: var(--surface); border-radius: 10px; border: 2px solid #000; box-shadow: 4px 4px 0 #000; overflow: hidden; min-height: 480px; }
.dm-thread-head { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dm-thread-head a { display: inline-flex; gap: 10px; align-items: center; color: var(--white); }
.dm-bubbles { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; max-height: 60vh; }
.dm-bubbles li { max-width: 75%; display: flex; flex-direction: column; }
.dm-bubbles li p { margin: 0; padding: 8px 12px; border-radius: 14px; white-space: pre-line; overflow-wrap: anywhere; border: 2px solid #000; }
.dm-bubbles li time { font-size: 10px; color: var(--muted); margin: 2px 6px 0; }
.dm-bubbles li.mine { align-self: flex-end; align-items: flex-end; }
.dm-bubbles li.mine p { background: var(--green); color: #08240f; border-bottom-right-radius: 4px; }
.dm-bubbles li.theirs p { background: var(--surface-2); color: var(--white); border-bottom-left-radius: 4px; }
.dm-bubbles li.dm-start { max-width: none; align-self: center; color: var(--muted); font-size: 13px; text-align: center; margin: auto 0; }
.dm-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.dm-compose textarea { flex: 1; resize: none; min-height: 42px; }
.dm-empty { margin: auto; padding: 30px; text-align: center; color: var(--text-soft); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dm-empty p { margin: 0; }
@media (max-width: 760px) { .dm-layout { grid-template-columns: 1fr; } .dm-thread { min-height: 420px; } }

/* ===== Kenny's mystery, part 3: purple + orange ===== */
:root { --m-purple: #5b2a86; --m-purple-2: #7b45b8; --m-lilac: #d9c6f2; --m-deep: #1d1030; --m-orange: #f2711c; }
.mystery-logo { flex: 0 0 76px; width: 76px; transform: rotate(-8deg); }
.mystery-title, .case-head h1 { background: linear-gradient(180deg, #ffb066 0%, #f2711c 45%, #b06ae8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(3px 3px 0 #000); }
.case-head { background: radial-gradient(ellipse at 85% 0%, rgba(242,113,28,.25), transparent 55%), linear-gradient(160deg, #6c38a6, #4a2273); color: #f1e8ff; }
.case-tab { background: #6c38a6; color: #f1e8ff; }
.case-stamp { border-color: var(--m-orange); color: var(--m-orange); }
.case-head p { color: #e6d8fb; }
.mystery-board { background: radial-gradient(ellipse at 50% 0%, rgba(242,113,28,.14), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='8' y='40' font-size='34' font-family='Arial' fill='%23c9a6ff' fill-opacity='.08'%3E%3F%3C/text%3E%3C/svg%3E"), var(--m-deep); }
.mystery-frame { box-shadow: inset 0 0 0 4px var(--m-purple), 0 0 0 4px #000, 6px 6px 0 #000; }
.evidence-label { background: var(--m-lilac); color: #2a1640; }
.kenny-lives b { color: #ffb066; }
.mystery-board .mystery-guess input { background: #2a1a40; border-color: #5b3a86; }
.case-folder { background: linear-gradient(160deg, #4f2680, #3a1b60); color: #f1e8ff; }
.case-folder h2 { color: #fff; }
.case-folder .exhibit { background: var(--m-orange); color: #2b1300; }
.case-folder .kenny-hint.locked { background: rgba(255,255,255,.06); color: #cdb6ee; border-color: #8a63c0; }
.mystery-stats { background: #2a1a40; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.mystery-stats h2 { color: #fff; }

/* Home card: purple with an orange call to action */
.kenny-ad { box-shadow: inset 0 0 0 2px #f2711c, 4px 4px 0 #000; color: #f1e8ff; background: radial-gradient(ellipse at 85% 10%, rgba(242,113,28,.3), transparent 55%), repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 3px, transparent 3px 9px), linear-gradient(160deg, #6c38a6, #43206b); }
.kenny-ad-logo { width: 46px; flex: 0 0 46px; transform: rotate(-8deg); }
.kenny-ad-title { background: linear-gradient(180deg, #ffb066, #f2711c 50%, #c48cff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(2px 2px 0 #000); }
.kenny-ad-text { color: #eadcff; }
.kenny-ad-cta { background: var(--m-orange); color: #2b1300; }

/* Character accounts (Butters, Kyle) on episode pages and Kyle's reading-list notes */
.guest-tag { background: rgba(63,185,80,.18); color: #9be3a6; border-radius: 3px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.guest-note { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--green); background: rgba(63,185,80,.08); font-size: 13px; color: var(--text-soft); }
.guest-thread { margin: 10px 0 0; border-left-color: var(--green); background: rgba(63,185,80,.05); }
.guest-thread[hidden] { display: none; }
.cartman-comment { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0 14px; padding: 8px 10px; border-left: 3px solid #e5534b; background: rgba(229,83,75,.08); font-size: 13px; }
.cartman-comment p { margin: 4px 0 0; color: var(--text-soft); }
.search-pop-season { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 4px; }
/* The Valmer Times: newspaper strip on the home page, and the article page (times.html) */
.valmer-article { background-color: #efe8d6; color: #26231d; font-family: Georgia, 'Times New Roman', serif; }
.valmer-article a { color: #26231d; text-decoration: underline; }
.valmer-mast { text-align: center; border-bottom: 4px double #26231d; padding-bottom: 8px; }
.valmer-mast a.valmer-name { font-size: clamp(30px, 6vw, 46px); font-weight: 700; line-height: 1.1; text-decoration: none; }
.valmer-mast p { margin: 4px 0 0; font-style: italic; font-size: 14px; color: #5a5346; }
.valmer-mast p.valmer-adfree { font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.valmer-article p.valmer-by { margin-top: 6px; font-size: 13px; color: #5a5346; }
.kyle-note-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.valmer-article { width: 100%; max-width: 760px; margin: 0 auto; box-sizing: border-box; padding: 24px clamp(16px, 5vw, 44px) 36px; font-size: 16px; line-height: 1.65; }
.valmer-article h1 { margin: 20px 0 0; font-size: clamp(26px, 5vw, 38px); line-height: 1.18; }
.valmer-article h2 { margin: 26px 0 0; font-size: 20px; border-bottom: 1px solid #8d8470; padding-bottom: 4px; }
.valmer-article p { margin: 12px 0 0; }
.valmer-article ul { margin: 12px 0 0; padding-left: 20px; }
.valmer-article li { margin-top: 6px; }
.valmer-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.valmer-table th, .valmer-table td { padding: 5px 6px; border-bottom: 1px solid #c3b99f; text-align: left; }
.valmer-table th:nth-child(n+3), .valmer-table td:nth-child(n+3) { text-align: right; }
.valmer-article ul.valmer-horoscopes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; padding: 0; list-style: none; border-top: 1px solid #8d8470; }
.valmer-article li.horo { margin: 0; padding: 14px 14px 16px; border-bottom: 1px solid #8d8470; text-align: center; overflow-wrap: anywhere; }
.horo-icon { display: block; width: 88px; height: 88px; margin: 0 auto; }
.valmer-article li.horo h2 { margin: 4px 0 0; border: 0; padding: 0; }
.horo small { color: #5a5346; }
.horo-born { font-size: 14px; font-style: italic; color: #5a5346; white-space: nowrap; }
.valmer-article li.horo p { margin: 8px 0 0; line-height: 1.5; }
.valmer-article li.horo p.horo-extra { font-size: 13px; color: #5a5346; }
.horo-seen { white-space: nowrap; font-size: 13px; font-weight: 700; color: #1f6f2c; }
.valmer-article ul.valmer-horoscopes.valmer-yours { grid-template-columns: 1fr; border: 3px double #26231d; }
.valmer-article .valmer-yours li.horo { border: 0; font-size: 19px; }
.horo-mine .horo-icon { width: 128px; height: 128px; }
.valmer-article ol { margin: 8px 0 0; padding-left: 22px; }
.valmer-box { margin-top: 22px; padding: 10px 16px 14px; border: 3px double #26231d; }
.valmer-box h3 { margin: 0; font-size: 18px; }

/* Mystery on phones: the newest clue right under the photo (the full list is far below) */
.mystery-new-clue { display: none; }
.case-folder .kenny-hint.newest { outline: 3px solid #ffd23f; outline-offset: 2px; animation: clue-pop .6s ease-out; }
@keyframes clue-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (max-width: 760px) {
  .mystery-new-clue { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 4px; padding: 12px 14px; background: var(--m-orange); color: #2b1300; border: 3px solid #000; border-radius: 12px 12px 12px 2px; box-shadow: 4px 4px 0 #000; animation: clue-pop .6s ease-out; }
  .mystery-new-clue .exhibit { align-self: flex-start; padding: 1px 8px; background: #1a1a1a; color: #ffd23f; font-size: 12px; border-radius: 3px; }
  .mystery-new-clue .kenny-says { font-size: 18px; }
  .mystery-new-clue .kenny-means { font-size: 15px; }
  .mystery-all-clues { font-size: 13px; font-weight: 700; color: #2b1300; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) { .mystery-new-clue, .case-folder .kenny-hint.newest { animation: none; } }

/* PC Principal's "PC it" filter */
.pc-toggle { margin-left: auto; font-size: 12px; color: #c48cff; }
.review-body > p.pc-text { color: #e6d8fb; background: rgba(123,69,184,.14); border-left: 3px solid #7b45b8; padding: 6px 10px; border-radius: 0 6px 6px 0; }
.pc-by { display: flex; gap: 10px; align-items: center; margin: 6px 0 0; padding: 8px 12px; background: #7b45b8; color: #fff; border: 2px solid #000; border-radius: 8px 8px 0 0; box-shadow: 3px 3px 0 #000; font-size: 13px; }
.pc-by strong { display: block; font-family: 'Luckiest Guy', cursive; font-weight: 400; font-size: 15px; letter-spacing: .5px; color: #ffd23f; }
.pc-badge { flex: 0 0 34px; height: 34px; display: grid; place-items: center; font-size: 20px; background: #ffd23f; border: 2px solid #000; border-radius: 50%; }
.pc-by + p.pc-text { margin-top: 0; border-radius: 0 0 6px 6px; border-left-width: 3px; }
.pc-talk { border-radius: 8px; margin-bottom: 4px; }
.guest-review .review-foot [data-guest-toggle] { color: var(--muted); font-size: 12px; }
.guest-review .pc-toggle, .cartman-comment .pc-toggle { margin-left: 0; }

/* Secret modes: the logo hold must not drag the link or open the long-press menu */
.logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; touch-action: none; }
.logo img, .logo span { -webkit-user-drag: none; }
/* Always-visible way out of Chaos / Mysterion mode */
.mode-exit { position: fixed; left: 14px; bottom: 14px; z-index: 60; padding: 8px 14px; border: 2px solid #000; border-radius: 999px; box-shadow: 3px 3px 0 #000; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; background: var(--surface-2); color: var(--white); }
html.mysterion .mode-exit { background: #2b1f3d; color: #79e06a; box-shadow: 3px 3px 0 #000, inset 0 0 0 2px #79e06a; }
html.chaos .mode-exit { background: #7dff4f; color: #10180f; }

/* Coon takeover: raccoon heads instead of stars. Unrated ones are faded. */
:root { --raccoon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cpath%20d%3D%22M6%2017%20L4%203%20L16%209%20Q20%208%2024%209%20L36%203%20L34%2017%20Q39%2024%2031%2030%20Q20%2042%209%2030%20Q1%2024%206%2017%20Z%22%20fill%3D%22%23b8c2cc%22%20stroke%3D%22%23141414%22%20stroke-width%3D%222.5%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M6%2020%20Q13%2012%2018%2020%20Q20%2022%2022%2020%20Q27%2012%2034%2020%20Q32%2029%2025%2026%20Q20%2023%2015%2026%20Q8%2029%206%2020%20Z%22%20fill%3D%22%231c1917%22%2F%3E%3Ccircle%20cx%3D%2213.5%22%20cy%3D%2220.5%22%20r%3D%222.4%22%20fill%3D%22%23fff%22%2F%3E%3Ccircle%20cx%3D%2226.5%22%20cy%3D%2220.5%22%20r%3D%222.4%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M16%2029%20Q20%2026%2024%2029%20Q20%2035%2016%2029%20Z%22%20fill%3D%22%23141414%22%2F%3E%3C%2Fsvg%3E"); }
.rac { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -.2em; overflow: hidden; font-style: normal; color: transparent; white-space: nowrap; letter-spacing: 0; background: var(--raccoon) left center / 1.3em 1.3em no-repeat; }
.rac.half { width: .65em; }
html.coon-takeover-on .star-input span { color: transparent; letter-spacing: 0; height: 1.2em; background: var(--raccoon) left center / 1.2em 1.2em repeat-x; overflow: hidden; white-space: nowrap; }
/* The hover preview recolours .fill with a more specific rule: keep its star glyphs hidden too. */
html.coon-takeover-on .star-input.preview .fill { color: transparent; filter: brightness(1.15); }
html.coon-takeover-on .star-input .base { display: block; width: 6em; filter: grayscale(1) opacity(.28); }
html.coon-takeover-on .histogram .end { font-size: 9px; }
/* The chef hat becomes a raccoon too ("Coon's Choice"). */
html.coon-takeover-on .chef-hat { background: var(--raccoon) center / contain no-repeat; }
html.coon-takeover-on .chef-hat path { display: none; }

/* Mr. Mackey's counselor note on an episode page */
.mackey-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background-color: var(--yellow); color: var(--bg); border-radius: 4px; font-size: 13px; line-height: 1.5; }
.mackey-note > span { font-size: 22px; line-height: 1; }
.mackey-note p { margin: 0; color: inherit; }
.mackey-note strong { display: block; }

/* Mr. Hankey's 12 Days of Christmas (hankey.html) */
.advent-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 22px 26px; background-color: #1f5c38; color: #f4f8fb; }
.advent-head > div { flex: 1; min-width: 220px; }
.advent-head h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 42px); line-height: 1.05; color: #fff; }
.advent-head p { margin: 2px 0 0; font-size: 14px; }
.advent-emoji { font-size: 56px; line-height: 1; }
.advent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.advent li { display: flex; flex-direction: column; }
.door { flex: 1; width: 100%; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; font: inherit; color: #fff; }
.advent .door.locked, .advent .door.ready { justify-content: center; align-items: center; }
.door.locked { background-color: var(--surface); color: var(--muted); }
.door.ready { background-color: #b3262e; cursor: pointer; transition: transform .12s; }
.advent li:nth-child(even) .door.ready { background-color: #1f7a44; }
.door.ready:hover, .door.ready:focus-visible { transform: rotate(-2deg) scale(1.03); }
.door-num { font-size: 56px; line-height: 1; }
.door-when { font-size: 13px; font-weight: 600; }
.door.open { justify-content: flex-start; align-items: stretch; gap: 4px; color: var(--text-soft); font-size: 13px; }
.door.open a { display: flex; flex-direction: column; gap: 8px; }
.door.open p { margin: 0; line-height: 1.5; }
.door.seen > span { color: var(--green); }
.advent-cert { text-align: center; padding: 26px; background-color: #f3ead2; color: #2b2118; }
.advent-cert > span { font-size: 44px; }
.advent-cert h2 { margin: 6px 0; }
.advent-cert p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .door.ready { transition: none; } }

/* Share cards: preview dialog */
.share-dialog img { display: block; max-width: 100%; max-height: 58vh; margin: 0 auto; border-radius: 6px; }
.share-dialog .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* "Get the app" corner ad on the home page */
.install-ad { position: fixed; right: 14px; bottom: 14px; z-index: 55; display: flex; gap: 12px; align-items: center; width: min(300px, calc(100vw - 28px)); padding: 14px 36px 14px 14px; background-color: var(--yellow); color: var(--bg-deep); }
.install-ad img { border-radius: 10px; flex: 0 0 52px; }
.install-ad > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 13px; }
.install-ad strong { font-size: 17px; line-height: 1.1; color: var(--bg-deep); text-shadow: none; }
.install-ad .btn { margin-top: 5px; padding: 6px 12px; font-size: 12px; background: var(--bg-deep); color: #fff; }
.install-ad-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; padding: 4px; color: var(--bg-deep); font-size: 15px; cursor: pointer; }
html.chaos .install-ad, html.mysterion .install-ad { bottom: 66px; }

.badge { align-items: center; text-align: center; }
.badge-foot { margin-top: auto; padding-top: 6px; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 6px; } /* pinned to the bottom, so rows line up across cards */
.badge .badge-foot .got { height: 16px; line-height: 16px; }
.badge .badge-foot .bar { align-self: stretch; margin: 5px 0; }
.badge .badge-share { display: block; height: 24px; min-height: 24px; padding-top: 2px; padding-bottom: 0; font-size: 11px; line-height: 22px; } /* the hidden spacer matches the button */

/* Mystery: friends' results, countdown and cold cases */
.mystery-next { display: table; margin: 0 auto 16px; padding: 8px 18px; border: 2px solid #000; border-radius: 999px; background: #2a1a40; box-shadow: 3px 3px 0 #000; font-size: 14px; color: #fff; }
.mystery-next b { font-family: 'Luckiest Guy', cursive; font-size: 18px; color: #ffd23f; letter-spacing: 1px; }
.mystery-friends { margin-top: 16px; }
.mystery-friends ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mystery-friends li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; }
.mystery-friends li a { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--white); }
.mf-squares { letter-spacing: 1px; }
.mf-wait, .mf-tag { font-size: 12px; color: #cdb6ee; }
.mystery-coldnote { margin: 0 0 14px; padding: 10px 14px; border: 2px dashed #7cc4ff; border-radius: 8px; color: var(--white); }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.mc-case { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border: 2px solid #000; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--white); font-size: 11px; }
.mc-case b { font-family: 'Luckiest Guy', cursive; font-size: 16px; }
.mc-case.won { background: #1f4d2a; } .mc-case.lost { background: #4d1f1f; }
.mc-case.now { border-color: #ffd23f; }

/* Cage Match: share button and the crowd's champion */
.cage-share { margin: 0 0 14px; }
.cage-crowd-champ { margin: 0 0 12px; color: var(--muted); }

/* Book Club attendance streak and stickers */
.attend { display: flex; flex-direction: column; gap: 6px; }
.attend-line strong { font-family: 'Luckiest Guy', cursive; font-size: 18px; color: #b23a2e; font-weight: 400; }
.attend-line span { font-size: 13px; }
.attend-stickers { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.attend-stickers li { display: flex; flex-direction: column; align-items: center; width: 66px; text-align: center; font-size: 10px; font-weight: 800; line-height: 1.25; }
.attend-stickers .art { width: 48px; height: 48px; transform: rotate(-6deg); }
.attend-stickers li:nth-child(even) .art { transform: rotate(5deg); }
.attend-stickers li.locked { opacity: .45; }
.attend-stickers li.locked .art { filter: grayscale(1); }
.attend-butters { margin: 0; font-size: 13px; font-style: italic; }
.club-card .attend { border-top: 2px dashed #cbd5e1; padding-top: 10px; }
.attend-life { display: flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0; padding: 2px 10px; border: 1.5px dashed #c0392b; border-radius: 999px; color: #8f2d23; font-size: 12px; line-height: 1.5; }
.attend-life > i { color: #d63a3a; font-size: 15px; line-height: 1; font-style: normal; }
.attend-life.used { border-color: #9a9a9a; color: #666; }
.attend-life.used > i { color: #8a8a8a; }

/* Mystery stats: equal tiles, and a chart whose rows all span the panel */
.mystery-side .mystery-stats { padding: 20px 22px; }
.mystery-side .mystery-stats h2 { text-align: center; }
.mystery-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.mystery-nums > div { padding: 10px 4px 8px; border-radius: 8px; background: rgba(255,255,255,.07); }
.mystery-nums b { display: block; font-family: 'Luckiest Guy', cursive; font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--white); }
.mystery-nums span { font-size: 11px; text-transform: uppercase; color: #cdb6ee; }
.mystery-stats h3 { margin: 16px 0 8px; text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #cdb6ee; }
.mystery-dist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mystery-dist li { display: grid; grid-template-columns: 22px 1fr 22px; gap: 8px; align-items: center; font-size: 12px; text-align: center; }
.mystery-dist .md-track { height: 14px; border-radius: 7px; background: rgba(255,255,255,.08); overflow: hidden; }
.mystery-dist .md-track > div { height: 100%; border-radius: 7px; background: #f2711c; }

/* The people's champion gets its own prize (personal champions wear the belt) */
.cage-champ:has(.peoples) { grid-template-columns: minmax(120px, 260px) 1fr auto; }
.cage-champ .cage-champ-belt.peoples { position: static; grid-column: 3; grid-row: 1; width: 108px; }
@media (max-width: 720px) {
  .cage-champ:has(.peoples) { grid-template-columns: 1fr; }
  .cage-champ .cage-champ-belt.peoples { position: absolute; top: 8px; right: 8px; width: 78px; }
}

/* Episode page: the people's champion banner */
.ep-peoples { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border: 2px solid var(--yellow); background-color: var(--surface); color: var(--text); }
.ep-peoples .art { flex: none; width: 76px; height: auto; transform: rotate(-5deg); }
.ep-peoples strong { display: block; font-size: 22px; font-weight: 400; color: var(--yellow); }
.ep-peoples span span { font-size: 13px; color: var(--muted); }

/* ===== Phone fixes ===== */
@media (max-width: 760px) { .dm-layout, .mystery-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .club-book { grid-template-columns: minmax(0, 1fr); } }
/* Long words, names and links never push the page sideways */
.profile-head .who { min-width: min(220px, 100%); }
.profile-head .bio, .char-card .cut, .list-info strong, .list-info .desc { overflow-wrap: anywhere; }
.list-stack .ep-thumb { flex-basis: 34%; min-width: 0; }
.ep-side { min-width: 0; }
.ep-counts { flex-wrap: wrap; row-gap: 4px; }
.tag-add { flex-wrap: wrap; max-width: 100%; }
.tag-add input { flex: 1 1 120px; min-width: 0; max-width: 180px; }
/* Very small phones: the header still fits on one row */
@media (max-width: 360px) {
  .header-inner { gap: 6px; }
  .logo { gap: 1px; }
  .logo-letter { font-size: 11px !important; padding: 2px 1px 1px; }
  .header-right { gap: 6px; }
}
/* Touch screens: bigger tap targets, and 16px fields so iPhones don't zoom in when typing */
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
  .link-button { padding-top: 6px; padding-bottom: 6px; }
}
/* The app ad stays out of the way while the menu or a dialog is open */
body:has(.site-header.menu-open) .install-ad, body:has(dialog[open]) .install-ad { display: none; }
/* Diary rows on phones: the title gets the full line, stars and buttons go underneath */
@media (max-width: 560px) {
  .diary li { flex-wrap: wrap; gap: 4px 12px; }
  .diary .date { flex: 0 0 100%; }
  .diary-month .date { flex: 0 0 22px; }
  .diary li > .title { flex: 1 1 100%; }
  .diary-month .diary li > .title { flex-basis: calc(100% - 34px); }
  .diary-month .diary li > .rating { margin-left: 34px; }
  .diary .actions { margin-left: auto; }
}
/* Episode page on phones: Watch, Like and Rate come right after the summary, not under every review */
@media (max-width: 640px) {
  .ep-layout { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; }
  .ep-layout > .ep-side { flex: none; }
  .ep-main, .ep-aside { display: contents; }
  .ep-aside > #panel { order: 1; }
  .ep-aside > #note, .ep-aside > #arc-box { order: 2; }
  .ep-aside > :empty { display: none; }
  .ep-main > section, .ep-main > #review-groups, .ep-main > #neighbours { order: 3; }
}

/* ===== Phones: bottom bar ===== */
.tab-bar { display: none; }
@media (max-width: 900px) {
  :root { --tab-h: 0px; }
  body.has-tab-bar { --tab-safe: max(0px, calc(env(safe-area-inset-bottom, 0px) - 12px)); --tab-h: calc(60px + var(--tab-safe)); padding-bottom: var(--tab-h); }
  .tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--tab-h); padding: 0 max(4px, env(safe-area-inset-right, 0px)) var(--tab-safe) max(4px, env(safe-area-inset-left, 0px)); background: var(--bg-deep); border-top: 2px solid #000; box-shadow: 0 -4px 14px rgba(0,0,0,.35); }
  .tab-bar a, .tab-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; color: var(--muted); font: 600 11px/1.1 var(--font-body); letter-spacing: .01em; white-space: nowrap; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tab-bar .tab-ico { position: relative; display: grid; place-items: center; width: 54px; height: 32px; box-sizing: border-box; border-radius: 999px; transition: background .15s, color .15s; }
  .tab-bar a[aria-current="page"] { color: var(--white); }
  .tab-bar a[aria-current="page"] .tab-ico { color: var(--green); background: rgba(63,185,80,.16); }
  .tab-bar a:active .tab-ico { background: rgba(255,255,255,.08); }
  .tab-bar .tab-log { color: var(--text); }
  .tab-bar .tab-log .tab-ico { width: 46px; height: 32px; color: var(--bg-deep); background: var(--green); border: 2px solid #000; border-radius: 10px; box-shadow: 2px 2px 0 #000; transform: rotate(-3deg); }
  .tab-bar .tab-log:active .tab-ico { transform: rotate(-3deg) translate(1px, 1px); box-shadow: 1px 1px 0 #000; }
  .tab-bar .tab-play[aria-current="page"] { color: var(--white); }
  .tab-bar .tab-play[aria-current="page"] .tab-ico, .tab-bar .tab-play[aria-expanded="true"] .tab-ico { color: var(--green); background: rgba(63,185,80,.16); }
  /* Play: a sheet of games that slides up over the bar */
  .play-sheet { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tab-h) + 8px); z-index: 59; padding: 12px 10px 10px; background: #171a22; border: 3px solid #000; border-radius: 16px; box-shadow: 4px 4px 0 #000, 0 -10px 40px rgba(0,0,0,.5); animation: play-up .16s ease-out; }
  .play-sheet[hidden] { display: none; }
  .play-sheet-title { margin: 0 4px 8px; color: var(--muted); font: 800 11px var(--font-body); text-transform: uppercase; letter-spacing: .1em; }
  .play-sheet ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .play-sheet a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 12px; background: #20252f; color: var(--white); text-align: center; text-decoration: none; }
  .play-sheet a:active { background: #2a3140; }
  .play-sheet a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--green); color: var(--green); }
  .play-sheet i { font-style: normal; font-size: 26px; line-height: 1; }
  .play-sheet b { font-size: 13px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
  body.play-open::after { content: ""; position: fixed; inset: 0 0 var(--tab-h) 0; z-index: 57; background: rgba(0,0,0,.55); }
  /* Friends is in the bar and Messages in the menu, so the top row is chef, bell, menu and search */
  body.has-tab-bar .site-header .header-right > .friends-btn, body.has-tab-bar .site-header .header-right > .mail-btn { display: none !important; }
  body.has-tab-bar #toasts { bottom: calc(var(--tab-h) + 12px); }
  body.has-tab-bar .install-ad { bottom: calc(var(--tab-h) + 10px); }
  body.has-tab-bar .mode-exit { bottom: calc(var(--tab-h) + 10px); }
  html.chaos body.has-tab-bar .install-ad, html.mysterion body.has-tab-bar .install-ad { bottom: calc(var(--tab-h) + 62px); }
}
/* The bar gets out of the way while the keyboard is up */
@media (max-width: 900px) and (pointer: coarse) {
  body:has(input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus) .tab-bar { display: none; }
}
/* Phones: profile tabs are one swipeable row */
@media (max-width: 640px) {
  .profile-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 2px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tabs::after { content: ""; flex: 0 0 24px; }
  .profile-tabs a { flex: 0 0 auto; white-space: nowrap; margin-bottom: 0; }
}

/* Messages: a shared episode shows as a picture card */
.dm-ep { display: flex; flex-direction: column; width: min(240px, 100%); overflow: hidden; margin-top: 4px; background: var(--surface-2); color: var(--white); border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; }
.dm-bubbles li:has(.dm-ep) { width: min(244px, 85%); max-width: none; }
.dm-ep:hover { color: var(--white); transform: translateY(-1px); }
.dm-ep .ep-thumb { width: 100%; border-radius: 0; clip-path: none; }
.dm-ep > span { display: flex; flex-direction: column; padding: 8px 10px; line-height: 1.3; }
.dm-ep strong { font-size: 14px; overflow-wrap: anywhere; }
.dm-ep small { color: var(--muted); font-size: 12px; }

/* Mystery: this week's detectives */
.mystery-league ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mystery-league li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 14px; }
.mystery-league li.me { outline: 2px solid #ffd23f; }
.mystery-league li > b { text-align: center; font-family: 'Luckiest Guy', cursive; font-weight: 400; font-size: 17px; color: #ffd23f; }
.mystery-league a { display: flex; gap: 8px; align-items: center; min-width: 0; color: var(--white); }
.mystery-league a span { display: flex; flex-direction: column; min-width: 0; }
.mystery-league a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mystery-league small { font-size: 11px; color: #cdb6ee; }
.ml-points { text-align: right; font-family: 'Luckiest Guy', cursive; font-size: 18px; color: var(--white); }
.mystery-league .result-count { margin: 10px 0 0; font-size: 12px; text-align: center; }

/* "You have to watch this" */
.rec-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: var(--surface-2); color: var(--white); border: 2px solid var(--orange); border-radius: 12px; font-size: 14px; }
.rec-note p { margin: 0; overflow-wrap: anywhere; }
.rec-note q { display: block; margin-top: 4px; color: var(--text-soft); font-style: italic; }
.rec-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.rec-people label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface); cursor: pointer; }
.rec-people input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--green); }
.rec-from { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--orange); }
#recs { display: flex; flex-direction: column; gap: 8px; }

/* ########## 2026 redesign: Book Club, Cage Match, Mystery (scoped to each page) ########## */
/* ============ BOOK CLUB ============ */
#club { display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-areas: "hero hero" "book book" "rewards rewards" "talk card" "talk vote" "talk plaque" "shelf shelf"; grid-template-rows: auto auto auto auto auto 1fr auto; column-gap: 28px; row-gap: 28px; align-items: start; }
#club > * { margin: 0; min-width: 0; }
#club .club-hero { grid-area: hero; padding: 18px 24px 16px 56px; flex-wrap: nowrap; }
#club .club-hero::before { top: 18px; box-shadow: 0 30px 0 var(--bg), 0 60px 0 var(--bg); }
#club .club-title { font-size: clamp(30px, 4.4vw, 44px); }
#club .club-head { margin-right: auto; }
#club .club-hero-art { position: static; width: 78px; flex: 0 0 78px; }
#club .club-due { padding: 4px 14px; }
#club .club-due b { font-size: 34px; }

/* This week's book: one open book, cover on the left page, details on the right */
#club .club-book { grid-area: book; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: stretch; padding: 12px; border: 4px solid #000; border-radius: 12px; box-shadow: 6px 6px 0 #000; background: linear-gradient(90deg, #1d3557, #2f6db5 50%, #1d3557); position: relative; }
#club .club-cover { padding: 22px; border-radius: 6px 0 0 6px; transform: none; box-shadow: none; display: flex; align-items: center; background: linear-gradient(90deg, #fffbe6 85%, #e6d99c); }
#club .club-cover .ep-thumb { width: 100%; border-radius: 4px; transform: rotate(-1.2deg); box-shadow: 0 0 0 6px #fff, 4px 6px 0 6px rgba(0,0,0,.35); }
#club .club-card { border: 0; box-shadow: none; border-radius: 0 6px 6px 0; justify-content: center; padding: 26px 28px 26px 36px; background: linear-gradient(90deg, #e6d99c, #fff3a6 12%); }
#club .club-card h2 { font-size: 38px; }
#club .club-card .btn-green { font-size: 14px; padding: 12px 20px; border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
#club .club-ribbon { top: -2px; left: -4px; }
#club .club-cover .club-sticker { right: -26px; bottom: 14px; }

/* Library card: streak, free life and sticker track */
#club .library-card { grid-area: card; position: relative; padding: 18px 18px 16px; border: 3px solid #000; border-radius: 10px; box-shadow: 5px 5px 0 #000; color: var(--club-ink); background: linear-gradient(#b23a2e 0 52px, transparent 52px), repeating-linear-gradient(#f6ead0 0 25px, #dccb9f 25px 26px); }
#club .library-card h2 { margin: -4px 0 20px; font-size: 21px; color: #fff; text-align: center; text-shadow: 2px 2px 0 #000; }
#club .library-card .attend { gap: 12px; align-items: center; text-align: center; }
#club .library-card .attend-line strong { display: block; font-size: 30px; line-height: 1.2; }
#club .library-card .attend-life { align-self: center; background: #fff8e4; }
#club .library-card .attend-stickers { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; width: 100%; padding-top: 4px; }
#club .library-card .attend-stickers::before { content: ""; position: absolute; left: 10%; right: 10%; top: 28px; border-top: 4px dashed #8a6a3a; }
#club .library-card .attend-stickers li { position: relative; width: auto; }
#club .library-card .attend-stickers li.locked { opacity: 1; color: #7a6a4a; }
#club .library-card .attend-stickers li.locked .art { filter: grayscale(1) brightness(1.15) contrast(.6); }
#club .attend-goal { margin: 0; font-size: 12px; font-weight: 800; padding: 3px 12px; background: var(--club-blue); color: #fff; border: 2px solid #000; border-radius: 4px; transform: rotate(-1deg); }
#club .library-card .attend-butters { border-top: 2px dashed #b9a77f; padding-top: 10px; width: 100%; }

#club .area-talk { grid-area: talk; }

/* Vote: compact ballot on a corkboard, beside the discussion */
#club .club-vote { grid-area: vote; padding: 14px; border: 3px solid #000; border-radius: 10px; box-shadow: 5px 5px 0 #000; background: #6b4423 repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,.07) 0 2px, transparent 2px 9px); }
#club .club-vote .section-head { display: block; border-color: rgba(255,255,255,.25); }
#club .club-vote .section-head h2 { color: #fff; margin-bottom: 4px; }
#club .club-vote .result-count, #club .club-vote-butters, #club .club-vote-butters span { color: #f3e3c8; }
#club .club-vote-butters { font-size: 12px; }
#club .club-vote-grid { grid-template-columns: 1fr; gap: 14px; }
#club .club-vote-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "pic title" "pic code" "bar bar" "btn btn"; column-gap: 10px; row-gap: 4px; padding: 10px; }
#club .club-vote-card > a[aria-hidden] { grid-area: pic; align-self: center; }
#club .club-vote-card .ep-card-code { display: none; }
#club .club-vote-title { grid-area: title; align-self: end; line-height: 1.25; }
#club .club-vote-code { grid-area: code; }
#club .club-vote-bar { grid-area: bar; }
#club .club-vote-card .btn { grid-area: btn; padding: 6px; }

/* Past reads: one scrolling wooden shelf */
#club .area-shelf { grid-area: shelf; }
#club .area-shelf .club-shelf { padding: 16px 16px 34px; background: linear-gradient(#2b1d12, #4a321d); border: 3px solid #000; border-radius: 10px; }
#club .area-shelf .ep-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 190px; overflow-x: auto; padding: 4px 4px 8px; }
#club .area-shelf .ep-thumb { border-left: 9px solid #2f6db5; border-radius: 2px 6px 6px 2px; box-shadow: 3px 3px 0 #000; }
#club .area-shelf .ep-card-meta { flex-direction: column; align-items: flex-start; }
#club .area-shelf .ep-card-meta span { color: #f3e3c8; }
#club .area-shelf .ep-card-meta .rating { color: var(--green); }
@media (max-width: 860px) {
  #club { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "book" "card" "rewards" "talk" "vote" "plaque" "shelf"; grid-template-rows: none; row-gap: 22px; }
  #club .club-hero { padding: 14px 14px 12px 46px; gap: 10px; }
  #club .club-hero::before { left: 12px; }
  #club .club-hero-art, #club .club-kicker { display: none; }
  #club .club-due { padding: 4px 8px; font-size: 10px; text-align: center; }
  #club .club-due b { font-size: 28px; }
  #club .club-book { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  #club .club-cover { padding: 16px; border-radius: 6px 6px 0 0; }
  #club .club-cover .club-sticker { right: 0; bottom: -20px; }
  #club .club-card { padding: 20px 18px; border-radius: 0 0 6px 6px; background: #fff3a6; }
  #club .club-card h2 { font-size: 30px; }
  #club .area-shelf .ep-grid { grid-auto-columns: 150px; }
}

/* ============ CAGE MATCH ============ */
#cage .cage-ring { padding: 26px 24px 18px; gap: 14px; }
#cage .cage-banner { justify-content: center; position: relative; padding: 4px 0 12px; border-bottom: 6px dotted #ffe066; }
#cage .cage-title { text-align: center; font-size: clamp(30px, 5.6vw, 54px); }
#cage .cage-round { position: absolute; right: 0; top: 8px; }
/* A guest referee goes under the title so the round sticker can't cover the name */
#cage .cage-banner:has(.cage-referee) { flex-direction: column; align-items: center; gap: 8px; }
.ml-avg { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
#cage .cage-host { max-width: 800px; width: 100%; margin: 0 auto; }
/* The ring: mat, three ropes and two corner posts */
#cage .cage-ring .cage-arena { gap: 0; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); padding: 30px 44px 36px; border: 3px solid #000; border-radius: 8px;
  background:
    linear-gradient(transparent 22%, #d63a3a 22% 24%, transparent 24% 47%, #f4f4f4 47% 49%, transparent 49% 72%, #4a90e2 72% 74%, transparent 74%),
    radial-gradient(ellipse at 50% 55%, #6d8296, #2c3a49 75%); }
#cage .cage-arena::before, #cage .cage-arena::after { content: ""; position: absolute; top: 12px; bottom: 12px; width: 18px; border: 3px solid #000; border-radius: 9px; box-shadow: 3px 3px 0 #000; }
#cage .cage-arena::before { left: 9px; background: linear-gradient(90deg, #ff6b6b, #a51d1d); }
#cage .cage-arena::after { right: 9px; background: linear-gradient(90deg, #7ab4f5, #1f5ba8); }
#cage .cage-arena > .empty { grid-column: 1 / -1; color: #fff; }
#cage .cage-card { padding: 0 0 12px; gap: 4px; border-radius: 10px; background: #14171c; text-align: center; align-items: center; border: 5px solid #d63a3a; box-shadow: 0 0 0 3px #000, 6px 8px 0 3px rgba(0,0,0,.5); }
#cage .cage-card.blue { border-color: #4a90e2; }
#cage .cage-card.champ { border-color: #f5c518; }
#cage .cage-card:hover, #cage .cage-card:focus-visible, #cage .cage-card.win { border-color: #ffe066; }
#cage .cage-card .corner { align-self: stretch; text-align: center; border-radius: 0; transform: none; font-size: 18px; padding: 6px; }
#cage .cage-card .ep-thumb { width: 100%; border-radius: 0; clip-path: none; }
#cage .cage-card strong { font-family: 'Luckiest Guy', cursive; font-weight: 400; font-size: 23px; padding: 6px 10px 0; line-height: 1.15; }
#cage .cage-ring .cage-vs { justify-self: center; position: relative; z-index: 2; width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: #d63a3a; border: 4px solid #000; font-size: 36px; text-shadow: 3px 3px 0 #000; box-shadow: 0 0 0 4px #f5c518, 5px 6px 0 4px #000; }
#cage .cage-crowd { margin: -6px 0; }
#cage .ringside { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(0,0,0,.55); border: 3px solid #000; border-radius: 8px; font-size: 13px; }
#cage .ringside .cage-keys { justify-self: end; font-size: 12px; }

/* Title holders: two fight posters side by side */
#cage .title-holders { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
#cage .title-holders > * { margin: 0; min-width: 0; display: flex; flex-direction: column; }
#cage .title-holders .section-head { margin-bottom: 14px; }
#cage .title-holders .cage-champ { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0 3px; padding: 0; text-align: center; clip-path: none; border: 4px solid #000; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px #f5c518, 6px 6px 0 3px #000; background: #15181d radial-gradient(ellipse at 50% 100%, rgba(245,197,24,.3), transparent 65%); }
#cage .title-holders .cage-champ .ep-thumb { width: 100%; border-radius: 0; clip-path: none; }
#cage .title-holders .cage-champ > div { align-items: center; padding: 14px 14px 18px; gap: 4px; }
#cage .title-holders .cage-champ .cut { font-size: 24px; text-shadow: 2px 2px 0 #000; }
#cage .title-holders .cage-champ .cage-champ-belt { position: absolute; left: auto; right: 10px; top: 10px; width: 130px; transform: rotate(7deg); }
#cage .title-holders .cage-champ .cage-champ-belt.peoples { position: absolute; grid-column: auto; width: 96px; }
#cage .title-holders .cage-crowd-champ { order: 3; margin: 18px 0 0; padding: 10px 14px; border: 3px solid #000; border-radius: 12px; background: #b92929; color: #fff; font-weight: 600; box-shadow: 4px 4px 0 #000; }
#cage .title-holders .cage-crowd-champ span { color: #ffe066; }

/* Ranking: podium for the top three, two columns after that */
#cage #rank-title { margin-right: auto; }
#cage #rank-share .cage-share { margin: 0; }
#cage .rank-table { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
#cage .rank-table li { grid-column: span 3; margin: 0; border: 2px solid #000; border-radius: 8px; background: var(--surface); padding: 8px 12px; }
#cage .rank-table li:nth-child(-n+3) { grid-column: span 2; display: flex; flex-direction: column; align-items: stretch; text-align: center; padding: 22px 12px 14px; position: relative; border: 3px solid #000; box-shadow: 0 0 0 2px var(--medal), 4px 4px 0 2px #000; margin: 14px 2px 10px; }
#cage .rank-table li:nth-child(1) { --medal: #f5c518; }
#cage .rank-table li:nth-child(2) { --medal: #c9d3dd; }
#cage .rank-table li:nth-child(3) { --medal: #cd7f32; }
#cage .rank-table li:nth-child(-n+3) .pos { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--medal); color: #000; border: 2px solid #000; font-family: 'Luckiest Guy', cursive; }
#cage .rank-table li:nth-child(-n+3) .thumb { flex: none; width: 100%; }
#cage .rank-table li:nth-child(-n+3) .info { flex: none; }
#cage .rank-table li:nth-child(-n+3) .score { text-align: center; }
@media (max-width: 720px) {
  #cage .cage-ring { padding: 18px 10px 12px; gap: 10px; }
  #cage .cage-banner { flex-direction: column; gap: 6px; padding-bottom: 8px; }
  #cage .cage-round { position: static; font-size: 14px; }
  #cage .cage-title { font-size: 28px; }
  #cage .cage-bubble .call { font-size: 15px; }
  #cage .cage-bubble .next { font-size: 12px; }
  /* Both fighters fit on one screen: picture left, name right */
  #cage .cage-ring .cage-arena { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  #cage .cage-arena::before, #cage .cage-arena::after { display: none; }
  #cage .cage-card { display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: auto auto auto auto; column-gap: 10px; padding: 0 0 6px; text-align: left; align-items: center; justify-items: start; overflow: hidden; }
  #cage .cage-card .corner { grid-column: 1 / -1; justify-self: stretch; font-size: 13px; padding: 3px; }
  #cage .cage-card .ep-thumb { grid-column: 1; grid-row: 2 / 5; margin-left: 6px; }
  #cage .cage-card strong { grid-column: 2; font-size: 17px; padding: 4px 6px 0 0; }
  #cage .cage-card > span:not(.corner) { grid-column: 2; }
  #cage .cage-ring .cage-vs { width: 50px; height: 50px; font-size: 21px; margin: -6px 0; }
  #cage .ringside { grid-template-columns: 1fr; justify-items: center; }
  #cage .ringside .cage-keys { display: none; }
  #cage .title-holders { grid-template-columns: minmax(0, 1fr); }
  #cage .rank-table { grid-template-columns: minmax(0, 1fr); }
  #cage .rank-table li, #cage .rank-table li:nth-child(-n+3) { grid-column: auto; }
  #cage .rank-table li:nth-child(-n+3) { flex-direction: row; align-items: center; text-align: left; padding: 10px 12px; margin: 2px; }
  #cage .rank-table li:nth-child(-n+3) .pos { position: static; transform: none; width: 28px; height: 28px; flex: 0 0 28px; }
  #cage .rank-table li:nth-child(-n+3) .thumb { width: 72px; }
  #cage .rank-table li:nth-child(-n+3) .info { flex: 1; }
  #cage .rank-table li:nth-child(-n+3) .score { text-align: right; }
}

/* ============ MYSTERY ============ */
#mystery .case-head { padding: 22px 24px 18px; }
#mystery .case-head-row > div { flex: 1; }
#mystery .case-head h1 { font-size: clamp(28px, 4vw, 42px); }
#mystery .case-head p { font-size: 13px; max-width: 580px; }
#mystery .case-stamp { right: auto; left: 200px; top: -16px; background: #2a1a40; font-size: 14px; }
#mystery .case-head .mystery-next { display: flex; flex-direction: column; align-items: center; margin: 0; flex: 0 0 auto; padding: 10px 18px; border-radius: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; transform: rotate(1.5deg); }
#mystery .case-head .mystery-next b { font-size: 30px; }
#mystery .mystery-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
/* Corkboard: pinned photo, then the six guess slots */
#mystery .mystery-board { padding: 24px 22px 20px; background: #8a5a31 repeating-radial-gradient(circle at 25% 35%, rgba(255,255,255,.08) 0 2px, rgba(0,0,0,.08) 3px, transparent 4px 11px); }
#mystery .mystery-board::before { content: ""; display: block; width: 130px; height: 24px; margin: -12px auto -12px; position: relative; z-index: 3; background: rgba(255,224,102,.9); transform: rotate(2deg); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
#mystery .mystery-frame { border: 10px solid #f4efe2; border-bottom-width: 16px; border-radius: 4px; box-shadow: 0 0 0 3px #000, 7px 9px 0 3px rgba(0,0,0,.4); transform: rotate(-.6deg); }
#mystery .mystery-frame img { border-radius: 0; }
#mystery .evidence-label { top: 14px; left: 14px; }
#mystery .kenny-lives { justify-content: center; margin: 20px auto 0; width: fit-content; padding: 4px 18px; background: #1d1030; border: 3px solid #000; border-radius: 999px; }
#mystery .mystery-guess { flex-direction: row; align-items: stretch; margin-top: 14px; }
#mystery .mystery-guess input { flex: 1; min-width: 0; border: 3px solid #000; box-shadow: 3px 3px 0 #000; background: #fffdf5; color: #1a1a1a; }
#mystery .mystery-guess .toolbar { margin: 0; flex-wrap: nowrap; }
#mystery .mystery-guess .btn { height: 100%; background: #2a1a40; border: 3px solid #000; color: #fff; box-shadow: 3px 3px 0 #000; }
#mystery .mystery-board > .result-count { color: #fff1da; text-align: center; font-size: 12px; }
#mystery .mystery-guesses { counter-reset: slot; margin-top: 12px; gap: 7px; }
#mystery .mystery-guesses li { counter-increment: slot; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 12px 6px 8px; border: 2px solid #000; background: #f4efe2; color: #8f2020; font-weight: 700; box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
#mystery .mystery-guesses li::before { content: counter(slot); flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #1d1030; color: #fff; font-family: 'Luckiest Guy', cursive; font-weight: 400; }
#mystery .mystery-guesses li.right { color: #1b6b2c; background: #dff5d8; }
#mystery .mystery-season { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #000; background: #f2711c; color: #fff; font-size: 14px; line-height: 1; text-shadow: 1px 1px 0 #000; box-shadow: 0 0 0 2px #ffe066, 2px 2px 0 2px #000; transform: rotate(-8deg); margin: 0 2px; }
#mystery .mystery-warmth { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #1d1030; color: #fff; white-space: nowrap; }
#mystery .mystery-warmth.warm { background: #ffd23f; color: #2b1300; }
#mystery .mystery-guesses li.empty-slot { background: rgba(0,0,0,.18); border: 2px dashed rgba(255,255,255,.45); box-shadow: none; color: #fff1da; font-weight: 500; }
#mystery .mystery-guesses li.empty-slot::before { background: rgba(0,0,0,.35); }
#mystery .mystery-result { text-align: center; }
#mystery .mystery-result .toolbar { justify-content: center; }
#mystery .mystery-squares { font-size: 30px; }
#mystery .case-folder .kenny-hint { margin-bottom: 16px; }
#mystery .case-folder .kenny-hint .kenny-says { font-size: 13px; opacity: .7; }
#mystery .case-folder .kenny-hint .kenny-means { font-size: 15px; line-height: 1.35; }
#mystery .case-folder .kenny-hint .kenny-evidence { font-size: 34px; }
#mystery .case-folder .kenny-hint.locked { flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 8px; }
#mystery .case-folder .kenny-hint.locked .exhibit { position: static; white-space: nowrap; }
#mystery .case-folder .kenny-hint.locked .kenny-means { font-size: 12px; }
/* Records: stats and cold cases side by side under the board */
#mystery .mystery-records { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr); gap: 24px; align-items: stretch; }
#mystery .mystery-records .mystery-stats { padding: 20px 22px; margin: 0; clip-path: none; }
#mystery .mystery-records h2 { text-align: center; }
#mystery .mystery-records .result-count { text-align: center; }
#mystery .mystery-records .mc-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 8px; max-height: 250px; padding: 10px 4px 4px; }
#mystery .mc-case { position: relative; border-radius: 2px 8px 8px 8px; background: #6c4a8f; box-shadow: 2px 2px 0 #000; }
#mystery .mc-case::before { content: ""; position: absolute; left: -2px; top: -8px; width: 34px; height: 8px; background: inherit; border: 2px solid #000; border-bottom: 0; border-radius: 5px 5px 0 0; }
#mystery .mc-case.won { background: #2c7a3d; }
#mystery .mc-case.lost { background: #8a2e2e; }
@media (max-width: 760px) {
  #mystery .case-head { padding: 20px 14px 14px; }
  #mystery .case-head-row { flex-wrap: wrap; gap: 8px 12px; }
  #mystery .case-head .mystery-logo { width: 50px; flex-basis: 50px; }
  #mystery .case-head-row > div { display: contents; }
  #mystery .case-head h1 { flex: 1 1 0; min-width: 0; margin: 0; font-size: 25px; }
  #mystery .case-head p { order: 2; font-size: 12px; }
  #mystery .case-head .mystery-next { order: 3; flex-direction: row; gap: 8px; width: 100%; justify-content: center; padding: 4px 10px; transform: none; }
  #mystery .case-head .mystery-next b { font-size: 20px; }
  #mystery .case-stamp { display: none; }
  #mystery .mystery-layout { grid-template-columns: minmax(0, 1fr); }
  #mystery .mystery-board { padding: 20px 12px 14px; }
  #mystery .mystery-guess { flex-direction: column; }
  #mystery .mystery-guess .btn { width: 100%; }
  #mystery .mystery-guess .pick-results { top: 52px; }
  #mystery .mystery-guesses li.empty-slot { min-height: 34px; }
  #mystery .mystery-warmth { font-size: 11px; }
  #mystery .mystery-records { grid-template-columns: minmax(0, 1fr); }
}
#club .club-title { margin-bottom: 10px; }
#club .club-vote-card.leading { padding-top: 18px; }
#mystery .case-folder .kenny-hint .kenny-says { opacity: .85; }
#mystery .case-verdict { white-space: nowrap; }
@media (max-width: 860px) { #club .club-due { flex: 0 0 84px; } }
@media (max-width: 720px) { #cage .cage-ring .cage-vs { margin: 4px 0; width: 44px; height: 44px; font-size: 18px; } }
@media (max-width: 760px) {
  #mystery .mystery-guesses li { flex-wrap: wrap; row-gap: 4px; }
  #mystery .mystery-warmth { margin-left: 36px; flex-basis: auto; width: calc(100% - 36px); text-align: center; }
  #mystery .kenny-lives b { white-space: nowrap; }
  #mystery .kenny-lives { gap: 4px; padding: 4px 14px; }
}
#cage .title-holders .section-head { min-height: 34px; }
#club .club-cover .ep-card-code { display: none; }
@media (max-width: 720px) {
  #cage .ringside .toolbar { flex-wrap: nowrap; gap: 8px; }
  #cage .ringside .toolbar .btn { padding-left: 10px; padding-right: 10px; font-size: 12px; }
}
/* Past weeks have no library card or vote: the discussion takes the full width */
#club.is-archive { grid-template-areas: "hero" "book" "talk" "shelf"; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
#club > .empty { grid-column: 1 / -1; }
#cage .title-holders:not(:has(> :not([hidden]))) { display: none; }
#cage .rank-table > .empty { grid-column: 1 / -1; }
#mystery .kenny-lives { flex-wrap: wrap; max-width: 100%; }
/* Episode page: the send-to-a-friend button says what it does */
.rec-btn { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; font: inherit; color: var(--white); background: rgba(242,113,28,.14); border: 2px solid var(--orange); border-radius: 8px; cursor: pointer; }
.rec-btn:hover { background: rgba(242,113,28,.26); }
.rec-btn-icon { font-size: 26px; line-height: 1; }
.rec-btn strong { display: block; font-size: 15px; }
.rec-btn small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--text-soft); }
/* Mystery: what a clue is about */
.kenny-topic { font-size: 14px; font-weight: 800; line-height: 1.3; padding-bottom: 4px; margin-bottom: 2px; border-bottom: 2px dashed rgba(43,19,0,.4); }
/* Mystery: the two buttons under your result are the same size, one above the other */
#mystery .mystery-result .toolbar { display: grid; grid-template-columns: minmax(0, 360px); grid-auto-rows: 1fr; justify-content: center; align-items: stretch; gap: 10px; }
#mystery .mystery-result .toolbar .btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; font-size: 14px; line-height: 1.3; text-align: center; border: 3px solid #000; box-shadow: 3px 3px 0 #000; }

/* ---- Badge unlocked message ---- */
.unlock-dialog p { margin: 0; color: var(--text-soft); font-size: 14px; }
.unlock-dialog a:not(.btn) { color: var(--white); text-decoration: underline; }
.unlock-badge { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.unlock-badge h3 { margin: 0 0 4px; color: var(--white); font-size: 18px; }
.unlock-badge ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-soft); font-size: 14px; }
.unlock-avatar { display: flex; align-items: center; gap: 10px; }

/* ---- More badge rewards ---- */
.flair-bookworm { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #141414; border-radius: 3px; vertical-align: 1px; background: linear-gradient(135deg, #ffe58a, #e0ac12 55%, #ffe58a); color: #2b2005; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em; box-shadow: 1px 1px 0 #000; }
.flair-farmer { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #141414; border-radius: 3px; vertical-align: 1px; background: #4fbf3f; color: #0f2a0a; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em; box-shadow: 1px 1px 0 #000; }
.flair-monitor { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #141414; border-radius: 3px; vertical-align: 1px; background: #f2711c; color: #141414; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em; box-shadow: 1px 1px 0 #000; }
.avatar.bespectacled { position: relative; }
.avatar.bespectacled:not(.has-icon) { padding-bottom: calc(var(--size) * .24); }
.avatar .flair-glasses { position: absolute; inset: -2px; pointer-events: none; z-index: 1; }
.avatar .flair-glasses svg { display: block; width: 100%; height: 100%; filter: none; }
html.mysterion .avatar:not(.is-me) .flair-glasses { display: none; }
.review.bookmarked .review-body > p:first-of-type { position: relative; padding-left: 20px; }
.review.bookmarked .review-body > p:first-of-type::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 24px; background: #d63a3a; border: 1.5px solid #000; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.club-plaque { justify-self: center; width: 100%; max-width: 300px; padding: 7px; border: 3px solid #000; border-radius: 10px; box-shadow: 4px 4px 0 #000; background: repeating-linear-gradient(90deg, #6e4a1f 0 18px, #5b3a16 18px 21px); text-align: center; }
.club-plate { position: relative; padding: 10px 18px 12px; border: 2px solid #000; border-radius: 5px; box-shadow: inset 0 0 0 3px #f9e39a, inset 0 0 0 4px #8a6a00; background: linear-gradient(115deg, #d9a92c, #ffe58a 35%, #c9971a 60%, #f5d364); color: #2b2005; }
.club-plate::before { content: ""; position: absolute; inset: 6px; pointer-events: none; background: radial-gradient(circle closest-side, #fff3c0 15%, #6e4a1f 40%, #000 75%, #000 85%, transparent) top left / 9px 9px no-repeat, radial-gradient(circle closest-side, #fff3c0 15%, #6e4a1f 40%, #000 75%, #000 85%, transparent) top right / 9px 9px no-repeat, radial-gradient(circle closest-side, #fff3c0 15%, #6e4a1f 40%, #000 75%, #000 85%, transparent) bottom left / 9px 9px no-repeat, radial-gradient(circle closest-side, #fff3c0 15%, #6e4a1f 40%, #000 75%, #000 85%, transparent) bottom right / 9px 9px no-repeat; }
.club-plaque h2 { margin: 0; font-size: 17px; }
.club-plaque small { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.club-plaque ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin: 0; padding: 0; list-style: none; font: 400 15px 'Luckiest Guy', cursive; }
.club-plaque li::before { content: "★ "; }
.club-plaque li::after { content: " ★"; }
.club-plaque a { color: inherit; }
#club .club-plaque { grid-area: plaque; align-self: start; }
.club-rewards > summary { display: inline-block; padding: 8px 22px 5px; border: 3px solid #000; border-radius: 8px; box-shadow: inset 0 0 0 2px #fff0a8, 3px 4px 0 #000; background: linear-gradient(135deg, #ffe58a, #c9971a 45%, #ffe58a 70%, #a87c12); color: #2b1a05; font-size: 16px; cursor: pointer; list-style: none; user-select: none; }
.club-rewards > summary::-webkit-details-marker { display: none; }
.club-rewards > summary::after { content: " \25BE"; }
.club-rewards[open] > summary::after { content: " \25B4"; }
#club .club-rewards { grid-area: rewards; }
.club-rewards .clr-shelf { margin-top: 10px; padding: 14px 18px 20px; border: 4px solid #000; border-radius: 22px 22px 10px 10px; box-shadow: inset 0 0 0 5px #a06a34, inset 0 0 0 7px #000, 5px 5px 0 #000; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.28) 46px 48px, rgba(255,220,160,.06) 48px 70px), #5a3a1f; color: #fff0d4; }
.club-rewards p { margin: 2px 4px 22px; font-size: 12px; font-weight: 600; }
.club-rewards p a { color: #ffe58a; text-decoration: underline; }
.club-rewards ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 14px; margin: 0; padding: 0; list-style: none; }
/* Library index cards, each standing on its own plank. */
.club-rewards li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 12px; border: 2px solid #141414; border-radius: 4px; box-shadow: 0 8px 0 #d29a58, 0 11px 0 #000, 0 17px 10px rgba(0,0,0,.45); background: repeating-linear-gradient(transparent 0 17px, rgba(60,110,170,.2) 17px 18px), #fff8e4; color: #2b2005; text-align: center; font-size: 11px; line-height: 1.35; }
.club-rewards li:not(.earned) { background-color: #cdbd9a; color: #4d3f24; }
.club-rewards .clr-weeks { position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-2deg); padding: 3px 9px 1px; border: 2px solid #141414; border-radius: 3px; background: #d63a3a; color: #fff; font-size: 11px; white-space: nowrap; }
.club-rewards li i { display: flex; align-items: center; justify-content: center; height: 52px; font-style: normal; }
.club-rewards li i > svg { width: 52px; height: 52px; }
.club-rewards li i .flair-monitor { margin: 0; }
.club-rewards li:not(.earned) i { filter: grayscale(.8); opacity: .6; }
.club-rewards li b { font-size: 12px; }
.club-rewards li em { margin-top: auto; padding: 2px 10px 0; font-style: normal; font-size: 12px; white-space: nowrap; }
.club-rewards li.earned em { border: 3px double #1f6b2a; border-radius: 4px; color: #1f6b2a; transform: rotate(-4deg); }
@media (max-width: 760px) { .club-rewards ol { grid-template-columns: minmax(0, 1fr); } .club-rewards li { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 8px; align-content: center; text-align: left; } .club-rewards li i { grid-row: span 3; align-self: center; } .club-rewards li b, .club-rewards li .clr-what { grid-column: 2; } .club-rewards li em { grid-column: 2; justify-self: start; margin-top: 4px; } .club-rewards .clr-weeks { left: 14px; transform: rotate(-2deg); } }
.farm-fence { position: relative; padding: 92px 22px 72px; border: 3px solid #000; border-radius: 12px; overflow: hidden; box-shadow: 5px 5px 0 #000;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg stroke='%23f5a11c' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M36 3v9M36 60v9M3 36h9M60 36h9M13 13l6 6M53 53l6 6M59 13l-6 6M19 53l-6 6'/%3E%3C/g%3E%3Ccircle cx='36' cy='36' r='17' fill='%23ffd84d' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px top 8px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='70' viewBox='0 0 240 70'%3E%3Cpath d='M-2 72 V58 Q60 38 120 58 T242 58 V72Z' fill='%234f9e3a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom 40px repeat-x, linear-gradient(transparent calc(100% - 42px), #4f9e3a 0), linear-gradient(#5b4a9c, #e8708a 45%, #ffc46b 75%, #ffe3a0); }
.farm-fence::before { content: "🌿 Tegridy Farms 🌿"; position: absolute; top: 20px; left: 50%; transform: translateX(-50%) rotate(-2deg); padding: 7px 18px 5px; white-space: nowrap; background: repeating-linear-gradient(#b57f4f 0 9px, #a06a3c 9px 11px); border: 3px solid #000; border-radius: 6px; box-shadow: inset 0 0 0 2px #e0b483, 3px 4px 0 rgba(0,0,0,.5); color: #fff4d6; font: 400 21px 'Luckiest Guy', cursive; text-shadow: 2px 2px 0 #000; }
.farm-fence::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cg transform='translate%2825 40%29 scale%281.15%29'%3E%3Cpath transform='rotate%28-80%29 scale%280.6%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%232f8f3a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%2880%29 scale%280.6%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%232f8f3a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%28-42%29 scale%280.85%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%234fbf3f' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%2842%29 scale%280.85%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%234fbf3f' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%280%29 scale%281.1%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%235fd04a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate%2897 42%29 scale%280.8%29'%3E%3Cpath transform='rotate%28-80%29 scale%280.6%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%232f8f3a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%2880%29 scale%280.6%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%232f8f3a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%28-42%29 scale%280.85%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%234fbf3f' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%2842%29 scale%280.85%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%234fbf3f' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath transform='rotate%280%29 scale%281.1%29' d='M0 0 C-4 -8 -3 -16 0 -22 C3 -16 4 -8 0 0Z' fill='%235fd04a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3C/g%3E%3Crect x='-3' y='37' width='126' height='6' fill='%23c8935f' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='-3' y='52' width='126' height='6' fill='%23c8935f' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 64 V30 L11 21 L18 30 V64Z' fill='%23f1d3a3' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='40' r='1.5' fill='%23141414'/%3E%3Ccircle cx='11' cy='55' r='1.5' fill='%23141414'/%3E%3Cpath d='M28 64 V30 L35 21 L42 30 V64Z' fill='%23f1d3a3' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='35' cy='40' r='1.5' fill='%23141414'/%3E%3Ccircle cx='35' cy='55' r='1.5' fill='%23141414'/%3E%3Cpath d='M52 64 V30 L59 21 L66 30 V64Z' fill='%23f1d3a3' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='59' cy='40' r='1.5' fill='%23141414'/%3E%3Ccircle cx='59' cy='55' r='1.5' fill='%23141414'/%3E%3Cpath d='M76 64 V30 L83 21 L90 30 V64Z' fill='%23f1d3a3' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='83' cy='40' r='1.5' fill='%23141414'/%3E%3Ccircle cx='83' cy='55' r='1.5' fill='%23141414'/%3E%3Cpath d='M100 64 V30 L107 21 L114 30 V64Z' fill='%23f1d3a3' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='107' cy='40' r='1.5' fill='%23141414'/%3E%3Ccircle cx='107' cy='55' r='1.5' fill='%23141414'/%3E%3Cpath d='M0 72 V63 L6 57 L10 64 L17 58 L22 64 L40 62 L46 56 L51 64 L70 62 L77 57 L82 64 L100 62 L108 58 L113 64 L120 62 V72Z' fill='%233d8c2f' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom repeat-x; }
.farm-fence .top4 { position: relative; z-index: 1; }
.farm-fence .top4 > * { padding: 4px; background-color: #fff4d6; border: 2px solid #000; border-radius: 6px; box-shadow: 3px 4px 0 rgba(0,0,0,.45); }
.book-shelf { position: relative; padding: 66px 24px 66px; border: 4px solid #000; border-radius: 40px 40px 10px 10px; box-shadow: inset 0 0 0 6px #a06a34, inset 0 0 0 8px #000, 5px 5px 0 #000;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='56' viewBox='0 0 22 56'%3E%3Cpath d='M2 -2 H20 V52 L11 43 L2 52Z' fill='%23d63a3a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M6 0 V44' stroke='%23ff7a6b' stroke-width='2'/%3E%3C/svg%3E") right 34px top 4px no-repeat, radial-gradient(ellipse 60% 55% at 50% 22%, rgba(255,214,120,.38), transparent), repeating-linear-gradient(90deg, #4a2c15 0 22px, #563419 22px 24px, #40250f 24px 47px, #2c1809 47px 49px); }
.book-shelf::before { content: "📖 Library Favourites"; position: absolute; top: 17px; left: 50%; transform: translateX(-50%); padding: 7px 20px 5px; white-space: nowrap; background: linear-gradient(135deg, #ffe58a, #c9971a 55%, #ffe58a); border: 2px solid #000; border-radius: 5px; box-shadow: inset 0 0 0 2px #8a6a00, 2px 3px 0 #000; color: #2b2005; font: 400 18px 'Luckiest Guy', cursive; }
.book-shelf::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 52px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='52' viewBox='0 0 144 52'%3E%3Crect x='1' y='8' width='13' height='34' rx='1' fill='%23d63a3a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M3 14h9M3 18h9M3 36h9' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='17' y='14' width='9' height='28' rx='1' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M19 20h5M19 24h5M19 36h5' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='29' y='4' width='15' height='38' rx='1' fill='%232f6db5' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M31 10h11M31 14h11M31 36h11' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='47' y='11' width='10' height='31' rx='1' fill='%233da536' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M49 17h6M49 21h6M49 36h6' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='60' y='16' width='12' height='26' rx='1' fill='%237b45b8' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M62 22h8M62 26h8M62 36h8' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='75' y='6' width='8' height='36' rx='1' fill='%23f4efe0' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M77 12h4M77 16h4M77 36h4' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='86' y='12' width='14' height='30' rx='1' fill='%23f2711c' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M88 18h10M88 22h10M88 36h10' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='103' y='9' width='11' height='33' rx='1' fill='%231f6f78' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M105 15h7M105 19h7M105 36h7' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='117' y='17' width='9' height='25' rx='1' fill='%23ff7eb6' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M119 23h5M119 27h5M119 36h5' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='129' y='5' width='13' height='37' rx='1' fill='%238f1d1d' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M131 11h9M131 15h9M131 36h9' stroke='%23ffe58a' stroke-width='1.5'/%3E%3Crect x='-3' y='42' width='150' height='8' fill='%23c08a4e' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") left bottom repeat-x; }
.book-shelf .top4 { row-gap: 24px; }
.book-shelf .top4 > * { padding: 4px; border: 2px solid #000; border-radius: 6px; background: linear-gradient(135deg, #ffe58a, #c9971a 45%, #ffe58a 70%, #a87c12); box-shadow: 0 9px 0 #d29a58, 0 12px 0 #000, 0 18px 10px rgba(0,0,0,.55); margin-bottom: 12px; }
@media (max-width: 640px) { .farm-fence { padding: 92px 12px 70px; } .farm-fence::before { top: 26px; left: 12px; transform: rotate(-2deg); font-size: 17px; } .book-shelf { padding: 64px 16px 64px; } }
.going-home { display: inline-block; padding: 1px 8px; border: 2px solid #ff7a6b; border-radius: 4px; color: #ff7a6b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-3deg); }
.library-card.gold { border-color: #8a6a00; }
.cage-referee { background: #f5c518; color: #141414; padding: 3px 12px; border: 3px solid #000; border-radius: 6px; font-weight: 800; font-size: 13px; text-transform: uppercase; transform: rotate(-2deg); box-shadow: 3px 3px 0 #000; }
.streak-card.stars { background-color: #1d3557; background-image: radial-gradient(circle, rgba(255,255,255,.28) 1.5px, transparent 2.5px), repeating-linear-gradient(90deg, #c0392b 0 18px, #f6f1e1 18px 36px); background-size: 26px 26px, 100% 12px; background-position: 0 0, left bottom; background-repeat: repeat, no-repeat; padding-bottom: 28px; color: #fff; }
.fist-bump { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.fist-bump span { display: block; width: min(34vw, 210px); }
.fist-bump svg { display: block; width: 100%; height: auto; }
.fist-bump .fist-left { animation: fist-left 1.8s ease-in forwards; }
.fist-bump .fist-right { animation: fist-right 1.8s ease-in forwards; }
.fist-bump .fist-right svg { transform: scaleX(-1); }
.fist-bump .fist-burst { position: absolute; width: min(36vw, 220px); z-index: -1; animation: fist-burst 1.8s ease-out forwards; }
@keyframes fist-left { 0% { transform: translateX(-60vw); } 30% { transform: translateX(6%); } 38%, 80% { transform: translateX(-4%); opacity: 1; } 100% { transform: translateX(-4%); opacity: 0; } }
@keyframes fist-right { 0% { transform: translateX(60vw); } 30% { transform: translateX(-6%); } 38%, 80% { transform: translateX(4%); opacity: 1; } 100% { transform: translateX(4%); opacity: 0; } }
@keyframes fist-burst { 0%, 28% { transform: scale(0); opacity: 0; } 40% { transform: scale(1.4) rotate(15deg); opacity: 1; } 80% { transform: scale(1.2) rotate(25deg); opacity: 1; } 100% { opacity: 0; } }
.eagle-flyby { position: fixed; left: -260px; top: 24vh; z-index: 999; width: 240px; pointer-events: none; animation: eagle-fly 3.4s linear forwards; }
.eagle-flyby svg { display: block; width: 100%; height: auto; overflow: visible; }
.eagle-flyby .eagle-wing { transform-origin: 85px 66px; animation: eagle-flap .45s ease-in-out infinite alternate; }
@keyframes eagle-fly { 0% { transform: translate(0, 0); } 35% { transform: translate(38vw, -50px); } 65% { transform: translate(calc(60vw + 100px), 10px); } 100% { transform: translate(calc(100vw + 280px), -70px); } }
@keyframes eagle-flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

/* Character switcher on character profiles */
.gang-row { display: flex; justify-content: center; gap: clamp(6px, 3vw, 28px); margin-bottom: -12px; }
.gang-row a { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 52px; font-size: 12px; font-weight: 700; color: var(--muted); opacity: .65; transition: opacity .15s, transform .15s; }
.gang-row a:hover { opacity: 1; transform: translateY(-2px); color: var(--text-soft); text-decoration: none; }
.gang-row a[aria-current] { opacity: 1; color: var(--white); }
.gang-row a[aria-current]::after { content: ""; width: 22px; height: 3px; margin-top: -3px; border-radius: 2px; background: var(--gang); }
.gang-row a[aria-current] > :first-child { box-shadow: 0 0 0 2px #14181c, 0 0 0 4px var(--gang); }
/* Character headers all share one layout (name and bio beside the avatar, stats underneath), however long the bio is. */
.gang-row ~ .profile-head .who { flex-basis: calc(100% - 140px); }

/* ---- Member tags (creator, admin, OG, deep cut) ---- */
.member-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.member-tags > span { margin-left: 0; }
.tag-creator, .tag-admin, .tag-og, .tag-deepcut { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #141414; border-radius: 3px; vertical-align: 1px; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em; box-shadow: 1px 1px 0 #000; white-space: nowrap; }
.tag-creator { background: #d63a3a; color: #fff; }
.tag-admin { background: #4a90e2; color: #0b1726; }
.tag-og { background: #f6f1e1; color: #1d3557; }
.tag-deepcut { background: #4b2a7a; color: #fff; }

/* ---- Feedback page ---- */
.feedback-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feedback-list li { background: var(--surface); border-radius: 6px; padding: 12px 14px; }
.feedback-list li.done { opacity: .6; }
.feedback-list p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.feedback-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); align-items: center; }
.footer-feedback { color: var(--text-soft); }
.footer-account { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }

/* Crowd Pleaser tag and Welcome Wagon red carpet (premiere night: curtains, marquee, rope posts) */
.flair-showoff { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #141414; border-radius: 3px; vertical-align: 1px; background: #a371f7; color: #1c0b36; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em; box-shadow: 1px 1px 0 #000; }
.flair-fanfave { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #141414; border-radius: 3px; vertical-align: 1px; background: #d63a3a; color: #fff; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .06em; box-shadow: 1px 1px 0 #000; }
.red-carpet { position: relative; padding: 76px 25px 70px; border: 3px solid #000; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 3px #f5c518, 5px 5px 0 #000;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='40' viewBox='0 0 96 40'%3E%3Cpath d='M-2 -2H98V18Q72 42 48 18Q24 42 -2 18Z' fill='%23b81f2a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M0 18Q24 42 48 18Q72 42 96 18' fill='none' stroke='%23f5c518' stroke-width='4'/%3E%3Cpath d='M24 0V22M72 0V22' stroke='%238a1019' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='48' cy='19' r='5' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='0' cy='19' r='5' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='96' cy='19' r='5' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center top / auto 28px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='400' viewBox='0 0 40 400' preserveAspectRatio='none'%3E%3Cpath d='M-2 -2H38C36 90 30 180 14 246C26 290 34 340 36 402H-2Z' fill='%23b81f2a' stroke='%23141414' stroke-width='2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M12 0C13 100 11 180 7 244C12 300 13 350 13 400M26 0C25 90 20 170 11 244C20 300 24 350 25 400' fill='none' stroke='%23861019' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-2 236L17 240V253L-2 258Z' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left top / 24px 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='400' viewBox='0 0 40 400' preserveAspectRatio='none'%3E%3Cg transform='translate%2840 0%29 scale%28-1 1%29'%3E%3Cpath d='M-2 -2H38C36 90 30 180 14 246C26 290 34 340 36 402H-2Z' fill='%23b81f2a' stroke='%23141414' stroke-width='2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M12 0C13 100 11 180 7 244C12 300 13 350 13 400M26 0C25 90 20 170 11 244C20 300 24 350 25 400' fill='none' stroke='%23861019' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-2 236L17 240V253L-2 258Z' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") right top / 24px 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cg fill='%23fff3b0' fill-opacity='.14'%3E%3Cpath d='M40 300L190 -10H290L70 300Z'/%3E%3Cpath d='M360 300L210 -10H110L330 300Z'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cpath transform='translate%2822 24%29 scale%280.8%29' d='M0 -5L1.3 -1.6L5 -1.5L2.1 .8L3.1 4.3L0 2.3L-3.1 4.3L-2.1 .8L-5 -1.5L-1.3 -1.6Z' fill='%23fff3b0'/%3E%3Cpath transform='translate%28104 14%29 scale%280.5%29' d='M0 -5L1.3 -1.6L5 -1.5L2.1 .8L3.1 4.3L0 2.3L-3.1 4.3L-2.1 .8L-5 -1.5L-1.3 -1.6Z' fill='%23fff3b0'/%3E%3Cpath transform='translate%2870 70%29 scale%280.45%29' d='M0 -5L1.3 -1.6L5 -1.5L2.1 .8L3.1 4.3L0 2.3L-3.1 4.3L-2.1 .8L-5 -1.5L-1.3 -1.6Z' fill='%23fff3b0'/%3E%3Cpath transform='translate%28138 88%29 scale%280.7%29' d='M0 -5L1.3 -1.6L5 -1.5L2.1 .8L3.1 4.3L0 2.3L-3.1 4.3L-2.1 .8L-5 -1.5L-1.3 -1.6Z' fill='%23fff3b0'/%3E%3C/svg%3E") center top repeat, linear-gradient(#141b3d, #33235c 60%, #5a2b62); }
.red-carpet::before { content: "★ Now Premiering ★"; position: absolute; top: 27px; left: 50%; transform: translateX(-50%); padding: 5.5px 20px 6.5px; white-space: nowrap; background: radial-gradient(circle closest-side, #fffbe0 35%, #ffd84d 55% 68%, #141414 72% 88%, transparent 92%) left top 1px / 10px 5px repeat-x, radial-gradient(circle closest-side, #fffbe0 35%, #ffd84d 55% 68%, #141414 72% 88%, transparent 92%) left bottom 1px / 10px 5px repeat-x, #8f1019; border: 3px solid #000; border-radius: 8px; box-shadow: 0 0 0 2px #f5c518, 0 0 0 4px #000, 0 0 22px 4px rgba(255,216,77,.45); color: #ffe58a; font: 400 18px 'Luckiest Guy', cursive; line-height: 1; text-shadow: 2px 2px 0 #000; }
.red-carpet::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='72' viewBox='0 0 120 72'%3E%3Crect x='-3' y='48' width='126' height='28' fill='%23c8222e' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M0 53H120' stroke='%23f5c518' stroke-width='3'/%3E%3Cpath d='M0 67H120' stroke='%23f5c518' stroke-width='3'/%3E%3Cpath d='M-60 24Q0 58 60 24' fill='none' stroke='%23141414' stroke-width='10'/%3E%3Cpath d='M-60 24Q0 58 60 24' fill='none' stroke='%23d6283a' stroke-width='6'/%3E%3Cpath d='M60 24Q120 58 180 24' fill='none' stroke='%23141414' stroke-width='10'/%3E%3Cpath d='M60 24Q120 58 180 24' fill='none' stroke='%23d6283a' stroke-width='6'/%3E%3Cellipse cx='60' cy='60' rx='13' ry='5' fill='%23c9971a' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='56' y='20' width='8' height='39' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M59 23V55' stroke='%23fff3b0' stroke-width='2'/%3E%3Ccircle cx='60' cy='15' r='7' fill='%23f5c518' stroke='%23141414' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='58' cy='13' r='2' fill='%23fff3b0'/%3E%3C/svg%3E") center bottom / auto 60px repeat-x; }
.red-carpet .top4 { position: relative; z-index: 1; row-gap: 24px; }
.red-carpet .top4 > * { padding: 7px; border: 2px solid #000; border-radius: 6px; background-image: radial-gradient(circle closest-side, #fffbe0 35%, #ffd84d 55% 68%, #141414 72% 88%, transparent 92%), radial-gradient(circle closest-side, #fffbe0 35%, #ffd84d 55% 68%, #141414 72% 88%, transparent 92%), radial-gradient(circle closest-side, #fffbe0 35%, #ffd84d 55% 68%, #141414 72% 88%, transparent 92%), radial-gradient(circle closest-side, #fffbe0 35%, #ffd84d 55% 68%, #141414 72% 88%, transparent 92%); background-color: #8f1019; background-position: left top, left bottom, left top, right top; background-size: 10px 7px, 10px 7px, 7px 10px, 7px 10px; background-repeat: round no-repeat, round no-repeat, no-repeat round, no-repeat round; box-shadow: 0 0 0 2px #f5c518, 0 0 0 4px #000, 0 0 16px 4px rgba(255,216,77,.35); }
.red-carpet .top4 > * { align-self: start; }
.red-carpet .ep-card:hover .ep-thumb { transform: none; box-shadow: none; }
@media (max-width: 640px) { .red-carpet { padding: 80px 17px 70px; background-size: auto 28px, 15px 100%, 15px 100%, 100% 100%, auto, auto; } .red-carpet::before { font-size: 16px; top: 22px; padding-left: 14px; padding-right: 14px; } }
/* iPhones draw this lettering higher in its box: nudge it down to the middle of the marquee */
@supports (-webkit-touch-callout: none) { .red-carpet::before { padding-top: 9px; padding-bottom: 3px; } }

/* Every badge card is the same size, whatever its row holds */
.badges { grid-auto-rows: 1fr; }

/* Phones: profile numbers in an even grid */
@media (max-width: 640px) {
  .profile-head .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 0; width: 100%; }
  .profile-head .stat { padding: 0 2px; border-left: 0; }
}

/* Episode page: friends who watched */
.friends-watched { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.friends-watched a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 82px; text-align: center; font-size: 12px; color: var(--text); }
.friends-watched .name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* @mentions, episode review sorting */
a.mention { color: #6aa8f0; font-weight: 600; }
.mention-menu { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--surface-2); border-radius: 6px; overflow: hidden; margin-top: 4px; text-align: left; }
.mention-menu button { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: none; border: 0; color: #fff; font: 14px Inter, sans-serif; cursor: pointer; text-align: left; text-transform: none; }
.mention-menu button[aria-selected="true"], .mention-menu button:hover { background: #3a4654; }
.mention-menu small { color: #b8c4d0; }
#review-groups { display: flex; flex-direction: column; gap: 32px; }
.reviews-more { margin-top: 14px; }

/* Badge rank borders (js/rank-frame.js). 1.905 = the 120 drawing box over the 63 the avatar fills. */
.avatar.ranked { position: relative; }
.avatar.ranked:not(.ranked-full) { margin: calc(var(--size) * .2) calc(var(--size) * .26); }
.avatar.ranked-full { margin: calc(var(--size) * .3); }
.avatar .rank-frame { position: absolute; left: 50%; top: 50%; width: calc(var(--size) * 1.905); height: calc(var(--size) * 1.905); transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.avatar .rank-frame svg { display: block; width: 100%; height: 100%; filter: none; }
html.mysterion .avatar.has-icon .rank-frame.rank-frame svg { visibility: visible; }
.avatar.rank-diamond .rank-frame svg { filter: drop-shadow(0 0 4px rgba(127,216,255,.7)); }
/* The creator's ring (js/creator-frame.js): the film strip creeps round and a glint circles it. */
.avatar.rank-creator .rank-frame svg { filter: drop-shadow(0 0 3px rgba(224,180,58,.4)); }
.rank-frame .cr-reel, .rank-frame .cr-glint { transform-origin: 60px 60px; animation: cr-turn 60s linear infinite; }
.rank-frame .cr-glint { animation-duration: 6s; }
@keyframes cr-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rank-frame .cr-reel, .rank-frame .cr-glint { animation: none; } }
.rank-panel { display: flex; align-items: center; gap: 22px; padding: 18px 22px; margin-bottom: 14px; }
.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-soft); }
.rank-info strong { font-size: 24px; color: var(--white); line-height: 1.1; }
.rank-info small { color: var(--muted); font-size: 12px; }

/* ---- Profile review blocks ---- */
.list-own { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.list-own .list-card { align-self: stretch; }
.list-pin { font-size: 12px; }
.followed-by { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.followed-by-faces { display: flex; flex: 0 0 auto; }
.followed-by-faces > * + * { margin-left: -8px; }
.followed-by a { color: var(--text-soft); font-weight: 600; }
.followed-by a:hover { color: var(--blue-hover); }
.profile-watchlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-reviews { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }

/* ---- Episodes: series chart view ---- */
.sc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.sc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sc-legend .sc-sq { width: 16px; height: 16px; cursor: default; }
.sc-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sc-rows { flex: 999 1 520px; min-width: 0; overflow-x: auto; padding: 4px; }
.sc-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; width: max-content; }
.sc-row > a, .sc-row > b { width: 36px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-row > small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.sc-sq { display: inline-block; width: 28px; height: 28px; padding: 0; flex: 0 0 auto; border: 1px solid #000; border-radius: 4px; background: var(--surface-2); cursor: pointer; }
.sc-sq.c1 { background: #d63a3a; }
.sc-sq.c2 { background: #f2711c; }
.sc-sq.c3 { background: #f5c518; }
.sc-sq.c4 { background: #7fcf5a; }
.sc-sq.c5 { background: #23913a; }
.sc-sq.seen { background: #4a90e2; }
.sc-sq.f1 { background: #2f4f73; }
.sc-sq.f2 { background: #3f7fc4; }
.sc-sq.f3 { background: #9cc6f7; }
.sc-sq.unaired { background: transparent; border: 1px dashed var(--line-2); }
.sc-sq.dim { opacity: .15; }
.sc-sq[aria-pressed="true"] { outline: 3px solid var(--white); outline-offset: 1px; opacity: 1; }
.sc-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sc-box { background: var(--surface); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-box p { margin: 0; font-size: 14px; }
.sc-box .rating { color: var(--green); letter-spacing: 1px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Account menu (js/user-menu.js): dropdown on a computer, full panel on phones ===== */
.site-header.menu-open { position: relative; z-index: 57; } /* over the page, under the phone tab bar */
.user-wrap { position: relative; }
.user-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.user-toggle:hover { color: var(--white); background: var(--surface); }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.chaos .site-header .user-toggle { color: #10180f; }
html.chaos .site-header .user-toggle:hover { color: var(--white); }
.user-menu[hidden] { display: none; }
.user-menu ul { margin: 0; padding: 0; list-style: none; }
.user-menu li a, .user-menu li .link-button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu .menu-count[hidden] { display: none; }
@media (min-width: 901px) {
  .site-header .user-toggle[aria-expanded="true"] { background: #99aabb; color: #14181c; border-radius: 8px 8px 0 0; }
  .user-menu { position: absolute; top: 100%; right: 0; z-index: 60; width: max-content; min-width: max(100%, 190px); max-height: calc(100vh - 90px); overflow-y: auto; padding: 6px 0; background: #99aabb; border-radius: 8px 0 8px 8px; box-shadow: 0 8px 22px rgba(0,0,0,.55); }
  .user-menu .um-phone { display: none; }
  .user-menu .um-group + .um-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(20,24,28,.25); }
  .user-menu li a, .user-menu li .link-button { padding: 5px 16px; color: #14181c; font-size: 14px; font-weight: 500; }
  .user-menu li a:hover, .user-menu li a:focus-visible, .user-menu li .link-button:hover, .user-menu li .link-button:focus-visible { background: #445566; color: #fff; text-decoration: none; }
  .user-menu li a[aria-current="page"] { font-weight: 800; }
}
@media (max-width: 900px) {
  .has-user-menu .user-toggle { display: none; }
  .has-user-menu .user-wrap { display: contents; }
  .site-header.has-user-menu .main-nav { display: none; }
  /* The page behind is dimmed and can't scroll; tapping it closes the menu. */
  .has-user-menu.menu-open::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; z-index: 55; height: 100vh; background: rgba(0,0,0,.65); }
  body:has(.has-user-menu.menu-open) { overflow: hidden; }
  .user-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; max-height: calc(100vh - 72px - var(--tab-h, 0px)); max-height: calc(100dvh - 72px - var(--tab-h, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 8px; background: var(--bg-deep); box-shadow: 0 14px 24px rgba(0,0,0,.6); }
  .um-who { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; overflow-wrap: anywhere; }
  .user-menu .header-search { display: flex; margin: 12px 0 2px; }
  .user-menu .header-search input[type="search"] { width: 100%; }
  .user-menu .search-pop { width: 100%; }
  .user-menu .um-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding: 6px 0 6px 46px; border-bottom: 1px solid var(--line-2); }
  .user-menu .um-group li a, .user-menu .um-group li .link-button { min-height: 40px; padding: 8px 0; color: var(--muted); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
  .user-menu .um-group li a:hover, .user-menu .um-group li a[aria-current="page"], .user-menu .um-group li .link-button:hover { color: var(--green); text-decoration: none; }
  .user-menu .um-group:last-child { border-bottom: 0; }
}
@media (max-width: 360px) { .user-menu .um-group { padding-left: 0; } }

/* Settings tabs: one panel at a time */
[data-panel][hidden], #save-bar[hidden] { display: none; }
.settings-stack { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.settings-stack h2 { margin: 0; color: var(--white); font-size: 24px; }
.settings-stack .btn[type="submit"] { align-self: flex-start; }
@media (max-width: 640px) {
  /* Only four tabs: share the width instead of swiping */
  #settings-tabs { -webkit-mask-image: none; mask-image: none; gap: 0; }
  #settings-tabs::after { content: none; }
  #settings-tabs a { flex: 1 0 auto; padding-left: 2px; padding-right: 2px; font-size: 12px; letter-spacing: 0; text-align: center; }
}

/* Phone header: bell, messages, chef's menu and + Log all on one row */
@media (max-width: 480px) {
  .header-inner, .header-right { gap: 6px; }
  .header-inner .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; }
  .header-right .btn-green { height: 36px; padding: 0 9px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .logo { gap: 1px; }
  .logo-letter { font-size: 11px !important; padding: 2px 1px 1px !important; }
  .header-inner .icon-btn { width: 33px; height: 33px; }
  .header-right .btn-green { height: 33px; padding: 0 7px; font-size: 12px; }
}
@media (max-width: 360px) {
  .header-inner { padding-left: 10px; padding-right: 10px; }
  .header-inner, .header-right { gap: 4px; }
  .logo-letter { font-size: 9px !important; padding: 2px 1px 1px !important; }
  .header-inner .icon-btn { width: 30px; height: 33px; }
  .header-right .btn-green { padding: 0 5px; font-size: 11px; letter-spacing: 0; }
}

/* Kenny's Mystery rewards */
.flair-inspector { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #5b2a86; border-radius: 3px; vertical-align: 1px; background: #f0d89a; color: #2b1640; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.flair-inspector i { margin-right: 3px; font-style: normal; color: #5b2a86; }
.avatar.magnified { position: relative; }
.avatar .flair-lens { position: absolute; inset: -2px; pointer-events: none; z-index: 3; }
.avatar .flair-lens svg { display: block; width: 100%; height: 100%; overflow: visible; filter: none; }
html.mysterion .avatar:not(.is-me) .flair-lens { display: none; }
.case-clip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 1px; border: 2px solid #141414; border-radius: 6px 6px 2px 2px; background: #f0d89a; color: #2b2005; box-shadow: 2px 2px 0 #000; font-weight: 800; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.case-clip i { font-style: normal; font-size: 13px; }
.case-rewards { margin-bottom: 24px; }
.case-rewards > summary { display: inline-block; padding: 7px 20px 5px; border: 3px solid #1a1a1a; border-radius: 10px 10px 0 0; box-shadow: 3px 3px 0 #000; background: #6c38a6; color: #f1e8ff; font-size: 17px; cursor: pointer; list-style: none; user-select: none; }
.case-rewards > summary::-webkit-details-marker { display: none; }
.case-rewards > summary::after { content: " \25BE"; color: #ff9a3c; }
.case-rewards[open] > summary::after { content: " \25B4"; }
.case-rewards .cr-folder { padding: 14px 16px 20px; border: 3px solid #1a1a1a; border-radius: 0 10px 10px 10px; box-shadow: 5px 5px 0 #000; background: linear-gradient(160deg, #4f2680, #3a1b60); color: #f1e8ff; }
.case-rewards p { margin: 0 0 22px; font-size: 12px; font-weight: 600; }
.case-rewards p a { color: #ffb066; text-decoration: underline; }
.case-rewards ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; margin: 0; padding: 0; list-style: none; }
.case-rewards li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 12px; border: 2px dashed #8a63c0; border-radius: 4px; background: rgba(255,255,255,.06); color: #cdb6ee; text-align: center; font-size: 11px; line-height: 1.35; }
.case-rewards li.earned { border: 2px solid #141414; background: #e9c98a; color: #3b2a12; box-shadow: 3px 4px 0 rgba(0,0,0,.45); }
.case-rewards .cr-exhibit { position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg); padding: 3px 9px 1px; border: 2px solid #141414; border-radius: 3px; background: #ff8c1a; color: #2b1300; font-size: 11px; white-space: nowrap; }
.case-rewards li i { display: flex; align-items: center; justify-content: center; height: 52px; font-style: normal; }
.case-rewards li i > svg { width: 52px; height: 52px; }
.case-rewards li i .flair-inspector { margin: 0; }
.case-rewards li i .flair-inspector i { display: inline; height: auto; }
.case-rewards li:not(.earned) i { filter: grayscale(.7); opacity: .65; }
.case-rewards li b { font-size: 12px; }
.case-rewards li em { margin-top: auto; padding: 2px 10px 0; font-style: normal; font-size: 12px; white-space: nowrap; }
.case-rewards li.earned em { border: 3px double #b3231f; border-radius: 4px; color: #b3231f; transform: rotate(-4deg); }
@media (max-width: 760px) { .case-rewards ol { grid-template-columns: minmax(0, 1fr); } .case-rewards li { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 8px; align-content: center; text-align: left; } .case-rewards li i { grid-row: span 3; align-self: center; } .case-rewards li b, .case-rewards li .cr-what { grid-column: 2; } .case-rewards li em { grid-column: 2; justify-self: start; margin-top: 4px; } .case-rewards .cr-exhibit { left: 14px; transform: rotate(-2deg); } }
.case-wall { position: relative; padding: 74px 22px 42px; border: 4px solid #000; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 7px #5b3a1e, inset 0 0 0 9px #000, 5px 5px 0 #000; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cg stroke='%23000' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M60 0 V10' fill='none'/%3E%3Cpath d='M32 32 Q34 10 60 10 Q86 10 88 32 Z' fill='%232f7d4f'/%3E%3Cellipse cx='60' cy='33' rx='15' ry='6' fill='%23fff3a6'/%3E%3C/g%3E%3C/svg%3E") center 4px / 76px 28px no-repeat, radial-gradient(ellipse 62% 78% at 50% 28px, rgba(255,226,130,.5), rgba(255,200,90,.14) 55%, transparent 75%), radial-gradient(rgba(0,0,0,.35) 1.5px, transparent 2px) 0 0 / 13px 13px, radial-gradient(rgba(255,220,160,.18) 1.5px, transparent 2px) 6px 7px / 17px 17px, #4a3050; }
.case-wall::before { content: "CASE CLOSED"; position: absolute; top: 35px; left: 50%; transform: translateX(-50%) rotate(-2deg); padding: 5px 18px 2px; white-space: nowrap; border: 3px solid #000; border-radius: 5px; box-shadow: inset 0 0 0 2px #b3231f, 3px 4px 0 rgba(0,0,0,.5); background: #f0d89a; color: #b3231f; font: 400 18px 'Luckiest Guy', cursive; letter-spacing: 1px; }
.case-wall::after { content: "CRIME SCENE \2022  DO NOT CROSS \2022  CRIME SCENE \2022  DO NOT CROSS \2022  CRIME SCENE \2022  DO NOT CROSS \2022  CRIME SCENE \2022  DO NOT CROSS"; position: absolute; left: -12px; right: -12px; bottom: 7px; overflow: hidden; white-space: nowrap; text-align: center; transform: rotate(-1.2deg); padding: 3px 0 1px; border-block: 3px solid #000; background: #f5c518; box-shadow: 0 5px 0 rgba(0,0,0,.4); color: #141414; font: 400 13px 'Luckiest Guy', cursive; letter-spacing: 1px; pointer-events: none; }
.case-wall .top4 { position: relative; z-index: 0; counter-reset: exhibit; row-gap: 22px; padding-bottom: 12px; }
.case-wall .top4::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% - 12px); z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M12.5 1 L37.5 17 L62.5 1 L87.5 17' fill='none' stroke='%23c4201c' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.case-wall .top4 > * { position: relative; counter-increment: exhibit; align-self: start; padding: 6px 6px 0; border: 2px solid #000; border-radius: 3px; background-color: #fff8e4; box-shadow: 4px 7px 0 rgba(0,0,0,.45); }
.case-wall .top4 > *::before { content: "Exhibit " counter(exhibit, upper-alpha); display: block; order: 2; padding: 0; line-height: 18px; text-align: center; color: #2b2005; font: 400 12px 'Luckiest Guy', cursive; letter-spacing: .5px; }
.case-wall .top4 > :nth-child(even) { top: 12px; }
.case-wall .top4 > *::after { content: ""; position: absolute; top: -9px; left: 50%; width: 12px; height: 12px; margin-left: -8px; border: 2px solid #000; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a90 15%, #d6322c 45%); box-shadow: 1px 2px 0 rgba(0,0,0,.4); z-index: 2; }
.case-wall .ep-card:hover .ep-thumb { transform: none; box-shadow: none; }
@media (max-width: 850px) { .case-wall .top4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M25 0 L75 6 L25 54 L75 62' fill='none' stroke='%23c4201c' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); } }
@media (max-width: 640px) { .case-wall { padding: 76px 15px 42px; } }

.case-wall .top4 > * { display: flex; flex-direction: column; gap: 0; }
.case-wall .top4 > *::before { margin-top: 1px; }
/* Case wall after dark: police lights at the edges, a neon sign, tilted evidence photos. Same size. */
.case-wall { --wood: inset 0 0 0 7px #2b1a3d, inset 0 0 0 9px #000, 5px 5px 0 #000; box-shadow: var(--wood), inset 70px 0 60px -34px rgba(255,40,50,.75), inset -70px 0 60px -34px rgba(40,120,255,.35); background-color: #1d1636; animation: case-lights 1.6s ease-in-out infinite alternate; }
@keyframes case-lights { to { box-shadow: var(--wood), inset 70px 0 60px -34px rgba(255,40,50,.3), inset -70px 0 60px -34px rgba(40,120,255,.8); } }
.case-wall::before { background: #14080c; border-color: #000; color: #fff1f1; box-shadow: inset 0 0 0 2px #ff3b4e, inset 0 0 10px rgba(255,59,78,.8), 0 0 18px rgba(255,59,78,.75), 3px 4px 0 rgba(0,0,0,.5); text-shadow: 0 0 4px #ff3b4e, 0 0 10px #ff3b4e; animation: case-neon 4s linear infinite; }
@keyframes case-neon { 0%, 90%, 94%, 100% { opacity: 1; } 92%, 96% { opacity: .75; } }
.case-wall .top4 > * { rotate: -1.8deg; }
.case-wall .top4 > :nth-child(2) { rotate: 1.6deg; }
.case-wall .top4 > :nth-child(3) { rotate: -1deg; }
.case-wall .top4 > :nth-child(4) { rotate: 2deg; }
.case-wall .top4 > *::before { content: "Exhibit " counter(exhibit, upper-alpha) "  \2713"; white-space: pre; color: #a8141c; }
.case-wall .top4 > *::after { background: radial-gradient(circle at 35% 35%, #fff3a6 15%, #f5b818 45%); }
.case-wall .top4::before { filter: drop-shadow(0 0 3px rgba(255,59,78,.9)); }
@media (prefers-reduced-motion: reduce) { .case-wall, .case-wall::before { animation: none; } }
/* Case wall, round three: a searchlight sweeps the board, photos
   lift when pointed at, and a magnifying glass on the sign. Same size. */
.case-wall::before { padding-left: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 17 L17 14 L23 20 L20 23 Z' fill='%23a8744c' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='7.5' fill='%23bfe3f2' stroke='%23000' stroke-width='5'/%3E%3Ccircle cx='10' cy='10' r='7.5' fill='none' stroke='%23f5c518' stroke-width='2'/%3E%3C/svg%3E") 11px center / 21px 21px no-repeat, #14080c; }
.case-wall .top4 { isolation: isolate; }
.case-wall .top4::before { z-index: -1; animation: case-string 2.4s ease-in-out infinite alternate; }
@keyframes case-string { from { filter: drop-shadow(0 0 1px rgba(255,59,78,.5)); } to { filter: drop-shadow(0 0 7px #ff3b4e); } }
.case-wall .top4::after { content: ""; position: absolute; inset: -10px 0; z-index: -2; pointer-events: none; background: radial-gradient(circle closest-side, rgba(255,244,190,.6), rgba(255,230,140,.22) 60%, transparent) no-repeat 0 20% / 46% 70%; animation: case-search 7s ease-in-out infinite alternate; }
@keyframes case-search { 0% { background-position: 0 10%; } 35% { background-position: 70% 90%; } 65% { background-position: 25% 80%; } 100% { background-position: 100% 5%; } }
.case-wall .top4 > * { transition: rotate .2s, scale .2s, box-shadow .2s; }
.case-wall .top4 > a:hover, .case-wall .top4 > a:focus-visible { rotate: 0deg; scale: 1.06; z-index: 3; box-shadow: 0 0 0 3px #ffd23f, 0 0 22px rgba(255,210,63,.8), 6px 12px 0 rgba(0,0,0,.45); }

@media (prefers-reduced-motion: reduce) { .case-wall .top4::before, .case-wall .top4::after, .case-wall .top4 > * { animation: none; transition: none; } }
/* Top 4 hover effects, one per backdrop (the case wall has its own above). */
.book-shelf .top4 > a, .farm-fence .top4 > a, .red-carpet .top4 > a { position: relative; transition: translate .25s, rotate .25s, scale .25s, box-shadow .25s; }
.book-shelf .ep-card:hover .ep-thumb, .farm-fence .ep-card:hover .ep-thumb { transform: none; box-shadow: none; }
/* Bookshelf: the frame is pulled off the shelf and a ribbon bookmark drops out of it. */
.book-shelf .top4 > a::after { content: ""; position: absolute; z-index: 2; right: 14px; bottom: 2px; width: 16px; height: 0; border: 0 solid #000; background: #d63a3a; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); filter: drop-shadow(0 0 1px #000); pointer-events: none; transition: height .3s, bottom .3s; }
.book-shelf .top4 > a:hover, .book-shelf .top4 > a:focus-visible { z-index: 3; translate: 0 -10px; rotate: -2.5deg; box-shadow: 0 9px 0 #d29a58, 0 12px 0 #000, 0 0 24px 4px rgba(255,225,120,.85); }
.book-shelf .top4 > a:hover::after, .book-shelf .top4 > a:focus-visible::after { height: 36px; bottom: -28px; }
/* Farm fence: the frame sways in the breeze with a green glow, and leaves drift up. */
.farm-fence .top4 > a::before, .farm-fence .top4 > a::after { content: "\1F33F"; position: absolute; z-index: 2; top: 40%; font-size: 22px; opacity: 0; pointer-events: none; }
.farm-fence .top4 > a::before { left: -8px; }
.farm-fence .top4 > a::after { right: -8px; }
.farm-fence .top4 > a:hover, .farm-fence .top4 > a:focus-visible { z-index: 3; box-shadow: 0 0 0 3px #4fbf3f, 0 0 24px 4px rgba(110,230,80,.8); transform-origin: 50% 100%; animation: farm-sway 1.6s ease-in-out infinite; }
.farm-fence .top4 > a:hover::before, .farm-fence .top4 > a:focus-visible::before { animation: farm-leaf 1.6s ease-out infinite; }
.farm-fence .top4 > a:hover::after, .farm-fence .top4 > a:focus-visible::after { animation: farm-leaf 1.6s ease-out .8s infinite; }
@keyframes farm-sway { 0%, 100% { rotate: -2.2deg; } 50% { rotate: 2.2deg; } }
@keyframes farm-leaf { 0% { opacity: 0; translate: 0 10px; rotate: -30deg; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 -55px; rotate: 40deg; } }
/* Red carpet: the premiere. The frame steps forward, its bulbs flicker and cameras flash. */
.red-carpet .top4 > a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 4px; opacity: 0; pointer-events: none; background: radial-gradient(circle at 18% 22%, #fff 0 4%, rgba(255,255,255,.55) 9%, transparent 24%), radial-gradient(circle at 82% 70%, #fff 0 3%, rgba(255,255,255,.5) 8%, transparent 20%); }
.red-carpet .top4 > a:hover, .red-carpet .top4 > a:focus-visible { z-index: 3; scale: 1.07; box-shadow: 0 0 26px 7px rgba(255,216,77,.9); animation: carpet-bulbs .5s steps(2, jump-none) infinite; }
.red-carpet .top4 > a:hover::after, .red-carpet .top4 > a:focus-visible::after { animation: carpet-flash 1.1s linear infinite; }
@keyframes carpet-bulbs { from { filter: brightness(1); } to { filter: brightness(1.3); } }
@keyframes carpet-flash { 0%, 12%, 40%, 100% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .book-shelf .top4 > a, .farm-fence .top4 > a, .red-carpet .top4 > a, .book-shelf .top4 > a::after, .farm-fence .top4 > a::before, .farm-fence .top4 > a::after, .red-carpet .top4 > a::after { animation: none !important; transition: none; } }

/* ---- The Playground ---- */
#playground section { margin-top: 24px; }
.pg-panel { background: var(--surface); border-radius: 8px; padding: 18px; margin-top: 16px; scroll-margin-top: 80px; }
.pg-panel[hidden] { display: none; }
.pg-claim { font-size: 19px; font-weight: 600; margin: 12px 0; }
.pg-note { color: var(--muted); font-size: 14px; margin: 10px 0; }
.pg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.pg-verdict { border-left: 4px solid var(--green); padding-left: 12px; }
.pg-verdict.wrong { border-color: var(--red); }
.pg-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; }
#playground .pg-top > section { margin: 0; }
.pg-panel h2 { margin-top: 0; }
.pg-lesson { display: flex; align-items: flex-end; gap: 16px; }
.pg-lesson > div { flex: 1; min-width: 0; }
.pg-wendy { width: 120px; flex: none; }
.pg-stickers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.pg-stickers li { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px dashed var(--muted); color: var(--muted); }
.pg-stickers li.right, .pg-stickers li.wrong { border: 2px solid #fff; color: #fff; background: #25a03c; }
.pg-stickers li.wrong { background: #d9362f; }
.pg-stickers li.now { border-color: #f5c518; color: #f5c518; }
.pg-stickers li.later { opacity: .45; }
.pg-trophies { display: flex; flex-direction: column; }
.pg-trophies #shelf { margin: auto 0; }
.pg-shelf { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 16px; list-style: none; margin: 0; padding: 0; }
.pg-shelf li { display: flex; justify-content: center; padding-bottom: 7px; border-bottom: 7px solid #8a5a3b; }
.pg-shelf li.locked .avatar { background: rgba(127,127,127,.25); }
.pg-shelf li.locked .avatar svg { filter: brightness(0) invert(.5); opacity: .7; }
.pg-trophies .pg-note { text-align: center; }
.pg-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px; border-radius: 8px; border: 2px solid rgba(127,127,127,.3); }
.pg-side.mine { border-color: var(--green); }
.pg-side h3, .pg-side p { margin: 0; }
.pg-side .btn { margin-top: auto; }
.pg-head { width: 96px; }
.pg-bar { width: 100%; height: 10px; margin-top: auto; border-radius: 5px; background: rgba(127,127,127,.25); overflow: hidden; }
.pg-bar span { display: block; height: 100%; background: #2e8f45; }
.pg-side.cartman .pg-bar span { background: #d9362f; }
@media (max-width: 800px) { .pg-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .pg-lesson { flex-direction: column; align-items: stretch; } .pg-wendy { width: 96px; align-self: center; } .pg-sides { gap: 8px; } .pg-side { padding: 10px 6px; } .pg-head { width: 72px; } }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pg-card { background: var(--surface); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.pg-card h3, .pg-card p { margin: 0; }
.pg-card .btn { margin-top: auto; }
.pg-card.won { outline: 2px solid var(--green); }
.pg-prize { font-size: 13px; color: var(--muted); }
.pg-score { text-align: center; font-weight: 700; min-height: 1.5em; }
.pg-arena { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; background: var(--bg); border-radius: 12px; overflow: hidden; touch-action: manipulation; user-select: none; }
.pg-arena { width: min(100%, 680px, 100vh); aspect-ratio: 680 / 540; }
.pg-arena.tall { width: min(100%, 460px, 56vh); aspect-ratio: 420 / 600; }
.pg-arena canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.flair-ninja { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #d9362f; border-radius: 3px; vertical-align: 1px; background: #141414; color: #fff; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
/* Too Much Pressure! Styled like an old browser serving game. */
.tp { position: relative; max-width: 480px; margin: 0 auto; --shake: 0px; user-select: none; overflow: hidden; border: 5px solid #3a1f0e; border-radius: 18px; background: #6b3d1e; box-shadow: 0 8px 0 #1d0f06, inset 0 0 0 3px #c98a3e; font-family: var(--font-body); }
.tp [hidden] { display: none !important; }
.tp-hud { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; padding: 8px 10px; background: linear-gradient(#a5642c, #6b3a17); border-bottom: 4px solid #3a1f0e; }
.tp-title { font-family: 'Luckiest Guy', sans-serif; font-size: 17px; color: #ffe45c; text-shadow: 0 2px 0 #3a1f0e, 2px 0 0 #3a1f0e, -2px 0 0 #3a1f0e, 0 -2px 0 #3a1f0e; }
.tp-chip { padding: 3px 10px; border: 2px solid #3a1f0e; border-radius: 999px; background: linear-gradient(#fff7e0, #f0cf8a); color: #3a1f0e; font-size: 13px; box-shadow: 0 2px 0 #3a1f0e; }
.tp-lives { flex-basis: 100%; text-align: center; font-size: 15px; letter-spacing: 4px; min-height: 20px; }
.tp-shop { position: relative; height: 270px; background: repeating-linear-gradient(90deg, #f2b25c 0 28px, #e89f45 28px 56px); }
.tp-board { position: absolute; top: 10px; left: 10px; right: 116px; padding: 8px; border: 5px solid #8a5326; border-radius: 8px; background: #24382c; color: #f4f8e8; text-align: center; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.tp-board strong { font-family: 'Luckiest Guy', sans-serif; font-weight: 400; font-size: 17px; letter-spacing: .5px; }
.tp-recipe { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-height: 46px; }
.tp-recipe span { width: 42px; height: 42px; padding: 2px; border-radius: 8px; background: rgba(255,255,255,.88); border: 3px solid transparent; }
.tp-recipe span.next { border-color: #ffe45c; animation: tp-pop .6s ease-in-out infinite alternate; }
.tp-recipe span.done { opacity: .3; }
.tp-recipe svg { display: block; width: 100%; height: 100%; }
.tp-customer { position: absolute; right: 8px; top: 14px; width: 100px; }
.tp-customer.arrive { animation: tp-arrive .4s ease-out; }
.tp-face { height: 112px; }
.tp-face svg { width: 100%; height: 100%; }
.tp-tweek { position: absolute; left: 12px; bottom: 54px; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 8px; z-index: 1; }
.tp-tweek svg { width: 92px; height: 92px; animation: tp-shake .12s linear infinite; }
.tp-say { position: absolute; left: 80px; bottom: 56px; width: max-content; max-width: 190px; padding: 6px 12px; border: 3px solid #2a1608; border-radius: 16px 16px 16px 2px; background: #fff; color: #2a1608; font: 800 13px var(--font-body); }
.tp-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: linear-gradient(#e0a25a 0 12px, #3a1f0e 12px 16px, #8a4f22 16px); border-top: 4px solid #3a1f0e; }
.tp-cup { position: absolute; left: 50%; bottom: 20px; width: 58px; height: 74px; margin-left: -4px; border: 4px solid #2a1608; border-top-width: 2px; border-radius: 4px 4px 18px 18px; background: rgba(255,255,255,.65); }
.tp-cup::after { content: ''; position: absolute; right: -22px; top: 14px; width: 14px; height: 28px; border: 4px solid #2a1608; border-left: 0; border-radius: 0 16px 16px 0; }
.tp-fill { position: absolute; inset: 0; display: flex; flex-direction: column-reverse; overflow: hidden; border-radius: 0 0 13px 13px; }
.tp-fill i { display: block; animation: tp-pour .25s ease-out; }
.tp-jitters { position: absolute; right: 10px; bottom: 10px; width: 120px; color: #ffe9c4; font: 800 11px var(--font-body); text-align: center; letter-spacing: 1px; }
.tp-bar { height: 14px; margin-top: 3px; border: 3px solid #2a1608; border-radius: 999px; background: #4a3020; overflow: hidden; }
.tp-bar span { display: block; height: 100%; width: 0; }
.tp-bar.patience span { background: linear-gradient(#8dff7a, #2fa83a); }
.tp-bar.jitter span { background: linear-gradient(#ff8a70, #d9362f); }
.tp-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 12px 16px; background: #6b3d1e; border-top: 4px solid #3a1f0e; }
.tp-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border: 3px solid #3a1f0e; border-radius: 14px; background: linear-gradient(#fff3d6, #f2c477); color: #3a1f0e; box-shadow: 0 5px 0 #3a1f0e; cursor: pointer; touch-action: manipulation; animation: tp-shake .15s linear infinite; }
.tp-item:nth-child(even) { animation-direction: reverse; }
.tp-item:active { box-shadow: 0 1px 0 #3a1f0e; translate: 0 4px; }
.tp-item svg { width: 48px; height: 48px; }
.tp-item small { font-weight: 800; font-size: 12px; }
.tp-item em { display: none; position: absolute; top: 30%; padding: 3px 8px; border: 2px solid #fff; border-radius: 4px; background: #d9362f; color: #fff; font: 900 13px var(--font-body); rotate: -12deg; }
.tp-item:disabled { cursor: default; filter: grayscale(.7); }
.tp-item.stolen svg { visibility: hidden; }
.tp-item.stolen em { display: block; }
.tp-item.target { border-color: #d9362f; animation: tp-danger .35s linear infinite alternate; }
.tp-gnome { position: absolute; width: 68px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 4; touch-action: manipulation; filter: drop-shadow(0 4px 2px rgba(0,0,0,.45)); }
.tp-gnome svg { display: block; width: 68px; height: 64px; }
.tp-gnome b { position: absolute; left: 50%; top: -20px; translate: -50% 0; padding: 2px 7px; border: 2px solid #fff; border-radius: 999px; background: #d9362f; color: #fff; font: 900 11px var(--font-body); white-space: nowrap; animation: tp-pop .3s ease-in-out infinite alternate; }
.tp-gnome.running { pointer-events: none; }
.tp-gnome.running b { display: none; }
.tp-loot { position: absolute; left: 14px; top: -30px; width: 40px; height: 40px; }
.tp-loot svg { width: 40px; height: 40px; }
.tp-alert { position: absolute; left: 8px; right: 8px; top: 12px; z-index: 3; margin: 0; padding: 7px; border: 3px solid #fff; border-radius: 10px; background: #d9362f; color: #fff; font: 900 14px var(--font-body); text-align: center; pointer-events: none; }
.tp-float { position: absolute; z-index: 5; translate: -50% 0; font: 400 22px 'Luckiest Guy', sans-serif; color: #8dff7a; text-shadow: 0 2px 0 #2a1608, 2px 0 0 #2a1608, -2px 0 0 #2a1608, 0 -2px 0 #2a1608; pointer-events: none; white-space: nowrap; animation: tp-float .9s ease-out forwards; }
.tp-float.bad { color: #ff8a70; }
.tp-banner { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: rgba(30,14,4,.82); text-align: center; color: #fff; }
.tp-banner strong { font: 400 38px 'Luckiest Guy', sans-serif; color: #ffe45c; text-shadow: 0 4px 0 #3a1f0e; rotate: -3deg; }
.tp-banner span { font-weight: 700; }
@keyframes tp-shake { 25% { transform: translate(var(--shake), calc(var(--shake) * -.6)); } 75% { transform: translate(calc(var(--shake) * -1), var(--shake)); } }
@keyframes tp-pop { to { scale: 1.1; } }
@keyframes tp-arrive { from { transform: translateX(120px); } }
@keyframes tp-pour { from { filter: brightness(1.6); } }
@keyframes tp-danger { from { box-shadow: 0 5px 0 #3a1f0e, 0 0 0 0 #ff3b30; } to { box-shadow: 0 5px 0 #3a1f0e, 0 0 0 6px #ff3b30; } }
@keyframes tp-float { to { transform: translateY(-42px); opacity: 0; } }
.tp-recipe span.secret { color: #3a1f0e; font: 400 26px/32px 'Luckiest Guy', sans-serif; }
/* Too Much Pressure!: the South Park coffee shop. */
.tp { border-color: #2a1608; box-shadow: 0 8px 0 #1d0f06, inset 0 0 0 3px #f5c518, 0 0 28px rgba(245,197,24,.25); }
.tp-hud { background: repeating-linear-gradient(90deg, #8a4f22 0 58px, #7a431c 58px 60px); }
.tp-title { padding: 3px 12px; border: 3px solid #2a1608; border-radius: 6px; background: #2f6b46; rotate: -2deg; box-shadow: 0 3px 0 #2a1608; }
.tp-shop { overflow: hidden; background: #8fd0ee; }
.tp-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tp-snow { position: absolute; inset: 0; background-image: radial-gradient(#fff 2px, transparent 2.5px), radial-gradient(#fff 1.5px, transparent 2px); background-size: 70px 90px, 46px 60px; background-position: 0 0, 20px 30px; opacity: .8; pointer-events: none; animation: tp-snow 7s linear infinite; }
.tp-lights { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; border-top: 3px solid #2a1608; z-index: 1; }
.tp-lights i { width: 9px; height: 13px; border: 2px solid #2a1608; border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%; background: #ffd84d; box-shadow: 0 0 10px #ffd84d; animation: tp-blink 1.2s ease-in-out infinite alternate; }
.tp-lights i:nth-child(3n+2) { background: #ff6b5e; box-shadow: 0 0 10px #ff6b5e; animation-delay: .4s; }
.tp-lights i:nth-child(3n) { background: #7dff8a; box-shadow: 0 0 10px #7dff8a; animation-delay: .8s; }
.tp-board { top: 20px; border-color: #6b3a17; box-shadow: 0 0 0 3px #2a1608, 0 6px 0 rgba(0,0,0,.3); rotate: -1deg; }
.tp-customer { top: 26px; }
.tp-face svg { filter: drop-shadow(3px 4px 0 rgba(42,22,8,.35)); }
.tp-quote { position: absolute; right: 0; top: 140px; z-index: 3; width: max-content; max-width: 170px; padding: 5px 10px; border: 3px solid #2a1608; border-radius: 14px 2px 14px 14px; background: #fff; color: #2a1608; font: 800 12px var(--font-body); text-align: center; }
.tp-counter { background: linear-gradient(#f0b568 0 12px, #2a1608 12px 16px, transparent 16px), repeating-linear-gradient(90deg, #9a5a28 0 44px, #7d441b 44px 48px); }
.tp-plate { position: absolute; left: 14px; bottom: 6px; padding: 2px 10px; border: 2px solid #2a1608; border-radius: 4px; background: #f5c518; color: #2a1608; font: 900 10px var(--font-body); letter-spacing: 2px; }
.tp-steam { position: absolute; left: 50%; bottom: 96px; display: flex; gap: 10px; margin-left: 2px; pointer-events: none; }
.tp-steam i { width: 6px; height: 22px; border-radius: 6px; background: #fff; opacity: 0; animation: tp-steam 1.8s ease-out infinite; }
.tp-steam i:nth-child(2) { animation-delay: .6s; }
.tp-steam i:nth-child(3) { animation-delay: 1.2s; }
.tp-shelf { background: linear-gradient(#2a1608 0 4px, transparent 4px), repeating-linear-gradient(#7d441b 0 82px, #4a2610 82px 90px); }
.tp-item { background: linear-gradient(#fffaf0, #ffdf9a); }
.tp-item small { font-family: 'Luckiest Guy', sans-serif; font-weight: 400; letter-spacing: .4px; }
.tp-banner { background: radial-gradient(circle at 50% 40%, rgba(122,67,28,.92), rgba(20,9,2,.94)); }
@keyframes tp-snow { to { background-position: 14px 180px, 4px 210px; } }
@keyframes tp-blink { to { filter: brightness(.65); } }
@keyframes tp-steam { 20% { opacity: .75; } to { transform: translateY(-30px) scaleX(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tp-snow, .tp-lights i, .tp-steam i { animation: none; } }
.pg-arena.bb { width: min(100%, 600px, 92vh); aspect-ratio: 600 / 560; }
.pg-arena.bb.bb-tall { width: min(100%, 420px, 50vh); aspect-ratio: 420 / 640; }
.pg-arena.bb canvas { cursor: none; }
/* Berry Blaster's frame and its round special-attack button (a ring fills as the meter does). */
.pg-arena.bb { border: 4px solid #2a1608; border-radius: 16px; box-shadow: 0 0 0 3px #d4709c, 0 8px 0 3px #1d0f06; }
.bb-blast { --full: 0deg; position: absolute; right: 10px; bottom: 28px; width: 76px; height: 76px; padding: 6px; border: 3px solid #2a1608; border-radius: 50%; background: conic-gradient(#7dff8a var(--full), rgba(20,10,30,.6) 0); cursor: pointer; touch-action: none; user-select: none; }
.bb-blast b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #5b3a6e; color: #d8cfe6; font: 400 13px/1.05 'Luckiest Guy', sans-serif; }
.bb-blast:disabled { cursor: default; opacity: .75; }
.bb-blast:not(:disabled) { animation: bb-ready .5s ease-in-out infinite alternate; }
.bb-blast:not(:disabled) b { background: #d4709c; color: #fff; }
@keyframes bb-ready { to { scale: 1.12; box-shadow: 0 0 18px 6px #7dff8a; } }
/* With a mouse the button is only a charge gauge: it lets the pointer through (space bar fires). */
@media (hover: hover) and (pointer: fine) { .bb-blast { pointer-events: none; opacity: .75; } .bb-blast:disabled { opacity: .4; } }
/* Sword of a Thousand Truths: an online fantasy raid screen. */
.rd { max-width: 580px; margin: 0 auto; overflow: hidden; border: 5px solid #171008; border-radius: 16px; background: linear-gradient(#33261a, #1c140c); box-shadow: 0 0 0 3px #c9a23a, 0 0 0 6px #4a3418, 0 12px 30px rgba(0,0,0,.5); user-select: none; }
.rd [hidden] { display: none !important; }
.rd-frames { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border-bottom: 3px solid #c9a23a; }
.rd-unit { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.rd-unit > div { flex: 1; min-width: 0; }
.rd-unit > div > span { display: block; color: #ffd23c; font: 400 14px 'Luckiest Guy', sans-serif; text-shadow: 0 2px 0 #000; }
.rd-foe > div > span { color: #ff8a70; text-align: right; }
.rd-unit small { color: #e8dcc0; font: 700 10px var(--font-body); text-shadow: none; }
.rd-unit > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid #c9a23a; border-radius: 50%; background: radial-gradient(#6a4a8a, #231733); font-size: 21px; font-style: normal; }
.rd-bar { position: relative; height: 16px; margin-top: 3px; border: 2px solid #000; border-radius: 4px; background: #2a2018; overflow: hidden; }
.rd-bar span { display: block; height: 100%; width: 100%; transition: width .35s; }
.rd-bar b { position: absolute; inset: 0; color: #fff; font: 800 9px/12px var(--font-body); letter-spacing: 1px; text-align: center; text-shadow: 0 1px 2px #000; }
.rd-me .hp span { background: linear-gradient(#7dff5c, #228a1a); }
.rd-foe .hp span { background: linear-gradient(#ff7a5c, #a5160e); margin-left: auto; }
.rd-bar.rage { height: 12px; }
.rd-bar.rage span { width: 0; background: linear-gradient(#bfe9ff, #2f7fe0); }
.rd-bar.rage b { line-height: 8px; font-size: 8px; }
.rd-stage { position: relative; height: 300px; overflow: hidden; background: radial-gradient(circle at 18% 18%, #fff4c2 0 20px, rgba(255,244,194,.25) 21px 30px, transparent 31px), linear-gradient(#2a2a7a, #d98a8a 80%); transition: filter .4s; }
.rd.mad .rd-stage { background: radial-gradient(circle at 18% 18%, #ff7a4a 0 20px, rgba(255,90,40,.3) 21px 34px, transparent 35px), linear-gradient(#1a0310, #c8422c 80%); }
.rd-forest { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd.mad .rd-forest { filter: saturate(.7) hue-rotate(-30deg) brightness(.8); }
.rd.mad .rd-eye { fill: #ff2a1c; }
.rd.mad .rd-boss > svg { filter: drop-shadow(0 0 16px #ff4a2c); }
.rd-fire { position: absolute; left: 47%; bottom: 14px; width: 30px; height: 34px; }
.rd-fire i { position: absolute; bottom: 0; left: 6px; width: 18px; height: 28px; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; background: #ff7a1c; animation: rd-flame .45s ease-in-out infinite alternate; }
.rd-fire i:nth-child(2) { left: 0; height: 20px; background: #d9362f; animation-delay: .15s; }
.rd-fire i:nth-child(3) { left: 10px; width: 11px; height: 17px; background: #ffe45c; animation-delay: .3s; }
.rd-party { position: absolute; left: 4px; right: 44%; bottom: 74px; display: flex; justify-content: space-around; }
.rd-kid { width: 23%; max-width: 52px; animation: rd-idle 1.6s ease-in-out infinite alternate; }
.rd-kid:nth-child(even) { animation-delay: .5s; translate: 0 10px; }
.rd-kid svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 2px rgba(0,0,0,.4)); }
.rd-fighter { position: absolute; bottom: 8px; }
.rd-hero { left: 9%; width: 25%; max-width: 130px; z-index: 1; }
.rd-boss { right: 0; width: 46%; max-width: 245px; transform-origin: bottom center; }
.rd-fighter > svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 5px rgba(0,0,0,.45)); animation: rd-idle 2s ease-in-out infinite alternate; }
.rd-boss > svg { animation: rd-breathe 1.8s ease-in-out infinite alternate; transform-origin: bottom center; }
.rd-armL, .rd-armR { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 80% 10%; }
.rd-armR { transform-origin: 20% 10%; }
.rd-boss[data-move="smash"] .rd-armR { transform: rotate(-125deg); }
.rd-boss[data-move="shield"] .rd-armL { transform: translate(34px, -20px) scale(1.25); }
.rd-boss[data-move="shield"] .rd-armR { transform: translate(-34px, -20px) scale(1.25); }
.rd-boss[data-move="jab"] .rd-armL { transform: rotate(38deg); }
.rd-boss[data-move="heal"] .rd-armR { transform: rotate(-80deg); }
.rd-boss[data-move="charge"] .rd-armL { transform: rotate(-62deg); }
.rd-hero.lunge { animation: rd-dash .55s cubic-bezier(.3, .7, .4, 1); }
.rd-boss.lunge { animation: rd-pounce .55s cubic-bezier(.3, .7, .4, 1); z-index: 2; }
.rd-fighter.shake { animation: rd-hit .45s linear; }
.rd-hero.guard { animation: rd-guard .6s ease-out; }
.rd-fighter.glow { animation: rd-glow .8s ease-out; }
.rd-boss.frozen { animation: rd-freeze 1.6s ease-out; }
.rd-kid.cheer { animation: rd-jump .7s ease-out 2; }
.rd-hero.fallen { rotate: -88deg; translate: -10px 20px; filter: grayscale(1); transition: all .7s ease-in; }
.rd-boss.fallen { scale: .2 0; rotate: 25deg; opacity: 0; filter: brightness(4); transition: all 1.3s ease-in .2s; }
.rd-stage.quake { animation: rd-quake .45s linear; }
.rd-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rd-fx > * { position: absolute; }
.rd-pop { translate: -50% 0; font: 400 28px 'Luckiest Guy', sans-serif; color: #fff25c; text-shadow: 0 3px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; white-space: nowrap; animation: rd-rise 1.1s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.rd-pop.bad { color: #ff6a50; }
.rd-pop.good { color: #7dff5c; }
.rd-pop.info { color: #bfe9ff; font-size: 21px; }
.rd-spark { width: 8px; height: 8px; border-radius: 2px; animation: rd-spark .6s ease-out forwards; }
.rd-slash { right: 8%; top: 16%; width: 38%; height: 66%; border-radius: 50%; border-left: 12px solid #fff; filter: drop-shadow(0 0 10px #8fe9ff); animation: rd-slash .35s ease-out forwards; }
.rd-dome { left: 3%; bottom: -30px; width: 37%; height: 74%; border: 4px solid #8fd8ff; border-radius: 50% 50% 0 0; background: radial-gradient(rgba(143,216,255,.1), rgba(143,216,255,.45)); animation: rd-dome .8s ease-out forwards; }
.rd-shock { left: 50%; bottom: -30px; width: 40px; height: 20px; margin-left: -20px; border: 6px solid #ffe45c; border-radius: 50%; animation: rd-shock .7s ease-out forwards; }
.rd-flash { inset: 0; background: #fff; animation: rd-fade .8s ease-out forwards; }
.rd-heal { bottom: 20%; color: #7dff5c; font-size: 22px; text-shadow: 0 0 8px #228a1a; animation: rd-up .9s ease-out both; }
.rd-snow { top: -8%; color: #e9fbff; font-size: 24px; text-shadow: 0 0 8px #4a90e2; animation: rd-fall 1s linear both; }
.rd-toss { left: 22%; bottom: 40%; font-size: 26px; animation: rd-toss .8s ease-in both; }
.rd-arrow { left: 28%; color: #fff4c2; font-size: 34px; text-shadow: 0 2px 0 #000; animation: rd-fly .45s linear both; }
.rd-drop { left: 62%; top: 0; width: 70px; height: 100%; animation: rd-drop 1.1s cubic-bezier(.6, 0, .8, .4) forwards; }
.rd-drop svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px #8fe9ff) drop-shadow(0 0 34px #fff); }
.rd-warning { position: absolute; left: 0; right: 0; top: 8px; z-index: 5; margin: 0; padding: 0 8px; color: #ffd23c; font: 400 22px 'Luckiest Guy', sans-serif; text-align: center; text-shadow: 0 3px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; opacity: 0; pointer-events: none; }
.rd-warning.show { animation: rd-warn 1.6s ease-out forwards; }
.rd-combo { position: absolute; left: 8px; top: 46px; z-index: 4; padding: 3px 10px; border: 3px solid #000; border-radius: 6px; background: #f2711c; color: #fff; font: 400 16px 'Luckiest Guy', sans-serif; rotate: -6deg; animation: rd-pulse .5s ease-in-out infinite alternate; }
.rd-mash, .rd-banner { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; overflow: hidden; color: #fff; text-align: center; }
.rd-mash { --power: 0; background: radial-gradient(circle, rgba(60,120,220,.55), rgba(6,8,30,.9)); }
.rd-mash strong { font: 400 30px 'Luckiest Guy', sans-serif; color: #ffe45c; text-shadow: 0 4px 0 #000; animation: rd-pulse .2s ease-in-out infinite alternate; }
.rd-mash .rd-giant svg { height: 160px; filter: drop-shadow(0 0 calc(6px + var(--power) * 40px) #8fe9ff) brightness(calc(1 + var(--power) * .6)); animation: rd-tremble .12s linear infinite; }
.rd-mash .rd-bar { width: 78%; height: 22px; }
.rd-mash .rd-bar span { width: 0; background: linear-gradient(90deg, #4a90e2, #bfe9ff, #fff); transition: width .08s; }
.rd-mash button { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
.rd-banner { background: radial-gradient(circle, rgba(80,60,30,.8), rgba(10,6,2,.95)); }
.rd-banner .rd-giant svg { height: 140px; filter: drop-shadow(0 0 20px #8fe9ff); animation: rd-idle 1.4s ease-in-out infinite alternate; }
.rd-banner strong { font: 400 30px/1.1 'Luckiest Guy', sans-serif; color: #ffd23c; text-shadow: 0 4px 0 #000; }
.rd-banner > span { font-weight: 700; }
.rd-banner.dead { background: rgba(30,0,0,.9); }
.rd-banner.dead strong { color: #d9362f; font-size: 46px; letter-spacing: 3px; }
.rd-banner.dead .rd-giant { display: none; }
.rd-cast { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; border-top: 3px solid #c9a23a; }
.rd-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 3px solid #c9a23a; border-radius: 6px; background: #3a1a1a; font-size: 20px; font-style: normal; }
.rd-castbar { position: relative; flex: 1; height: 26px; border: 3px solid #000; border-radius: 6px; background: #2a2018; overflow: hidden; }
.rd-castbar span { display: block; width: 0; height: 100%; background: linear-gradient(#ffe45c, #d97a10); }
.rd-castbar b { position: absolute; inset: 0; color: #fff; font: 400 14px/21px 'Luckiest Guy', sans-serif; text-align: center; text-shadow: 0 2px 2px #000; }
.rd-tell { min-height: 40px; margin: 0; display: flex; align-items: center; justify-content: center; padding: 6px 12px; color: #fff4d8; font: 700 14px var(--font-body); text-align: center; }
.rd-timing { position: relative; height: 50px; margin: 0 10px 8px; border: 3px solid #000; border-radius: 8px; background: linear-gradient(#5a2a2a, #2a1010); }
.rd-zone { position: absolute; top: 0; bottom: 0; width: 14%; background: linear-gradient(#ffe45c, #f5a518); box-shadow: 0 0 14px #ffd23c; }
.rd-mark { position: absolute; top: -5px; bottom: -5px; width: 7px; margin-left: -3px; background: #fff; border: 1px solid #000; box-shadow: 0 0 10px #fff; }
.rd-stop { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff; font: 400 22px 'Luckiest Guy', sans-serif; text-shadow: 0 2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; cursor: pointer; touch-action: manipulation; }
.rd-actions, .rd-friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 10px 8px; }
.rd-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 8px 2px 6px; border: 3px solid #c9a23a; border-radius: 10px; background: radial-gradient(circle at 50% 30%, #7a5a34, #2e2012); color: #fff; box-shadow: 0 4px 0 #000, inset 0 0 0 2px #000; cursor: pointer; touch-action: manipulation; transition: transform .1s; }
.rd-slot:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.2); }
.rd-slot:active:not(:disabled) { transform: translateY(3px) scale(.96); box-shadow: 0 1px 0 #000, inset 0 0 0 2px #000; }
.rd-slot:disabled { cursor: default; filter: grayscale(.8) brightness(.65); }
.rd-glyph { font-size: 26px; line-height: 1.1; }
.rd-slot b { font: 400 13px 'Luckiest Guy', sans-serif; }
.rd-slot small { font: 700 9px var(--font-body); color: #ffe9a8; text-align: center; }
.rd-slot kbd { position: absolute; top: 2px; left: 4px; color: #ffe9a8; font: 800 9px var(--font-body); }
.rd-slot em { position: absolute; top: 1px; right: 5px; color: #fff; font: 400 14px 'Luckiest Guy', sans-serif; font-style: normal; text-shadow: 0 2px 0 #000; }
.rd-friends .rd-slot { border-color: #6f8fd0; background: radial-gradient(circle at 50% 30%, #3a5a9a, #131f3a); }
.rd-friends .rd-slot em { top: 28%; right: 0; left: 0; font-size: 28px; text-align: center; }
.rd-sword-slot:not(:disabled) { border-color: #fff; background: radial-gradient(circle at 50% 30%, #bfe9ff, #2f6fd0); animation: rd-ready .5s ease-in-out infinite alternate; }
.rd-chat { min-height: 66px; margin: 0 10px 10px; padding: 6px 9px; border: 2px solid #4a3418; border-radius: 6px; background: rgba(0,0,0,.55); font: 600 12px/1.5 var(--font-body); }
.rd-chat p { margin: 0; color: #aab8ff; animation: rd-line .3s ease-out; }
.rd-chat p.foe { color: #ff9a80; }
.rd-chat p.system { color: #ffd23c; }
@media (max-width: 480px) { .rd-slot small { display: none; } .rd-slot kbd { display: none; } .rd-stage { height: 270px; } .rd-warning { font-size: 18px; } }
@keyframes rd-idle { to { transform: translateY(-4px); } }
@keyframes rd-breathe { to { transform: scale(1.025, .975); } }
@keyframes rd-flame { to { transform: scaleY(1.35) rotate(5deg); } }
@keyframes rd-dash { 15% { transform: translateX(-14px) rotate(-8deg); } 45% { transform: translateX(170%) translateY(-16px) rotate(14deg) scale(1.1); } }
@keyframes rd-pounce { 20% { transform: translateY(-34px) scale(1.05); } 50% { transform: translateX(-70%) translateY(0) rotate(-9deg) scale(1.15); } }
@keyframes rd-hit { 15%, 55% { transform: translateX(-12px) rotate(-5deg); filter: brightness(2.4); } 35%, 75% { transform: translateX(12px) rotate(5deg); } }
@keyframes rd-guard { 30% { transform: scale(.9) translateX(-10px); } }
@keyframes rd-glow { 40% { filter: drop-shadow(0 0 20px #fff) brightness(1.5); transform: scale(1.1) translateY(-8px); } }
@keyframes rd-freeze { 0%, 70% { filter: sepia(1) hue-rotate(160deg) saturate(3) brightness(1.2); } }
@keyframes rd-jump { 40% { transform: translateY(-26px) rotate(-8deg) scale(1.15); } }
@keyframes rd-quake { 20% { transform: translate(-9px, 5px); } 40% { transform: translate(8px, -5px); } 60% { transform: translate(-6px, -3px); } 80% { transform: translate(5px, 3px); } }
@keyframes rd-rise { 0% { transform: scale(2.2); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }
@keyframes rd-spark { to { transform: translate(var(--x), var(--y)) rotate(220deg) scale(0); } }
@keyframes rd-slash { from { transform: rotate(-80deg) scale(.6); } to { transform: rotate(55deg) scale(1.15); opacity: 0; } }
@keyframes rd-dome { from { transform: scale(.4); } 30% { transform: scale(1.08); } to { opacity: 0; } }
@keyframes rd-shock { to { transform: scale(16, 9); opacity: 0; } }
@keyframes rd-fade { to { opacity: 0; } }
@keyframes rd-up { from { transform: translateY(20px); } to { transform: translateY(-110px); opacity: 0; } }
@keyframes rd-fall { to { transform: translateY(320px) rotate(260deg); opacity: .2; } }
@keyframes rd-toss { 0% { transform: translate(-90px, 90px); } 50% { transform: translate(-30px, -80px) rotate(200deg); } 100% { transform: translate(10px, 0) rotate(380deg); opacity: 0; } }
@keyframes rd-fly { from { transform: translateX(0); } to { transform: translateX(260px); opacity: .3; } }
@keyframes rd-drop { 0% { transform: translateY(-110%); } 50% { transform: translateY(0); } 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(6%); opacity: 0; } }
@keyframes rd-warn { 0% { transform: scale(2); opacity: 0; } 12% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rd-pulse { to { scale: 1.1; } }
@keyframes rd-tremble { 25% { transform: translate(-3px, 1px); } 75% { transform: translate(3px, -1px); } }
@keyframes rd-ready { to { box-shadow: 0 4px 0 #000, 0 0 18px 6px #8fd8ff; } }
@keyframes rd-line { from { transform: translateX(-14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rd *, .rd-stage { animation-duration: .01s !important; animation-iteration-count: 1 !important; } .rd-warning.show { animation-duration: 1.6s !important; } .rd-pop { animation-duration: 1.1s !important; } }
.flair-shablagoo { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #2fb847; border-radius: 999px; vertical-align: 1px; background: #d4709c; color: #fff; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
/* Convince Butters you're a robot: Butters' bedroom. */
.aw { max-width: 540px; margin: 0 auto; overflow: hidden; border: 5px solid #1a1020; border-radius: 18px; background: #2a2140; box-shadow: 0 0 0 3px #c4905a, 0 8px 0 3px #0f0a18; }
.aw [hidden] { display: none !important; }
.aw-hud { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; background: repeating-linear-gradient(90deg, #b98550 0 46px, #a97442 46px 50px); border-bottom: 4px solid #1a1020; }
.aw-title { font: 400 18px 'Luckiest Guy', sans-serif; color: #e9fbff; text-shadow: 0 3px 0 #1a1020, 2px 0 0 #1a1020, -2px 0 0 #1a1020, 0 -2px 0 #1a1020; }
.aw-chip { padding: 3px 10px; border: 2px solid #1a1020; border-radius: 999px; background: #f4f8fb; color: #1a1020; font: 800 12px var(--font-body); box-shadow: 0 2px 0 #1a1020; white-space: nowrap; }
.aw-gauge { position: relative; height: 24px; background: #17101f; border-bottom: 4px solid #1a1020; }
.aw-gauge span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #7dff8a, #ffe45c 55%, #ff4a3c); background-size: 540px 100%; transition: width .5s cubic-bezier(.3, 1.6, .5, 1); }
.aw-gauge b { position: absolute; inset: 0; color: #fff; font: 800 11px/24px var(--font-body); letter-spacing: 3px; text-align: center; text-shadow: 0 1px 3px #000; }
.aw.hot .aw-gauge { animation: aw-alarm .5s ease-in-out infinite alternate; }
.aw-room { position: relative; height: 290px; overflow: hidden; background: linear-gradient(transparent 0 76%, #1a1020 76% 77.5%, transparent 77.5%), linear-gradient(transparent 0 77.5%, #8a5a3b 77.5%), repeating-linear-gradient(90deg, #6f8fd0 0 24px, #6483c4 24px 48px); }
.aw-window { position: absolute; left: 50%; top: 100px; width: 86px; height: 70px; translate: -50% 0; border: 5px solid #f4f8fb; outline: 3px solid #1a1020; background: linear-gradient(90deg, transparent 47%, #f4f8fb 47% 53%, transparent 53%), radial-gradient(circle at 74% 28%, #fff4c2 0 9px, transparent 10px), linear-gradient(#141d4a 0 70%, #e9f2f8 70%); }
.aw-bubble { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 2; min-height: 66px; margin: 0; display: flex; align-items: center; justify-content: center; padding: 8px 14px; border: 4px solid #1a1020; border-radius: 22px; background: #fff; color: #1a1020; font: 700 16px/1.35 var(--font-body); text-align: center; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.aw-bubble::after { content: ''; position: absolute; left: 16%; bottom: -16px; width: 20px; height: 20px; border: solid #1a1020; border-width: 0 4px 4px 0; background: #fff; rotate: 45deg; translate: 0 -5px; }
.aw-actor { position: absolute; bottom: 8px; width: 38%; max-width: 170px; }
.aw-actor svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 3px rgba(0,0,0,.35)); }
.aw-butters { left: 6px; animation: aw-bob 1.8s ease-in-out infinite alternate; }
.aw-robot { right: 6px; animation: aw-bob 2.4s ease-in-out infinite alternate-reverse; }
.aw-led { animation: aw-blink .7s steps(2) infinite; }
.aw-led.two { animation-delay: .23s; }
.aw-led.three { animation-delay: .46s; }
.aw-pupil { animation: aw-look 4s ease-in-out infinite; }
.aw-room.jolt { animation: aw-jolt .45s linear; }
.aw-room.beep .aw-robot { animation: aw-hop .5s ease-out; }
.aw-banner { position: absolute; left: 0; right: 0; top: 44%; z-index: 3; text-align: center; pointer-events: none; }
.aw-banner strong { display: inline-block; padding: 6px 22px; border: 5px solid #1a1020; border-radius: 10px; font: 400 36px 'Luckiest Guy', sans-serif; color: #fff; rotate: -7deg; animation: aw-stamp .4s cubic-bezier(.3, 1.8, .5, 1); }
.aw-banner.win strong { background: #2fa83a; }
.aw-banner.lose strong { background: #d9362f; }
.aw-react { min-height: 40px; margin: 0; padding: 9px 12px; border-top: 4px solid #1a1020; background: #fff3d0; color: #3a2410; font: 700 13px var(--font-body); font-style: italic; text-align: center; }
.aw-replies { display: grid; gap: 10px; padding: 14px 12px 16px; border-top: 4px solid #1a1020; }
.aw-replies button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 3px solid #1a1020; border-radius: 12px; background: linear-gradient(#eef6fb, #b9c9d8); color: #1a1020; font: 700 14px var(--font-body); text-align: left; box-shadow: 0 5px 0 #1a1020; cursor: pointer; touch-action: manipulation; animation: aw-in .3s ease-out backwards; }
.aw-replies button:nth-child(2) { animation-delay: .07s; }
.aw-replies button:nth-child(3) { animation-delay: .14s; }
.aw-replies button:hover { background: linear-gradient(#fffbe0, #ffd96a); }
.aw-replies button:active { box-shadow: 0 1px 0 #1a1020; translate: 0 4px; }
.aw-replies i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #1a1020; border-radius: 50%; background: #c4905a; color: #fff; font: 400 15px 'Luckiest Guy', sans-serif; font-style: normal; }
.aw-replies .aw-again { justify-content: center; background: linear-gradient(#ffb066, #f2711c); font: 400 17px 'Luckiest Guy', sans-serif; }
@keyframes aw-bob { to { transform: translateY(-6px); } }
@keyframes aw-blink { 50% { opacity: .25; } }
@keyframes aw-look { 30% { translate: 4px 0; } 65% { translate: -4px 0; } }
@keyframes aw-jolt { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes aw-hop { 40% { transform: translateY(-22px) rotate(-4deg); } }
@keyframes aw-alarm { to { filter: brightness(1.5); } }
@keyframes aw-stamp { from { scale: 3; opacity: 0; } }
@keyframes aw-in { from { translate: 30px 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .aw *, .aw { animation: none !important; } }
/* Where each friend stands, so nobody hides behind you. */
.rd-party { position: static; }
.rd-kid { position: absolute; width: 11%; max-width: 54px; translate: none; }
.rd-kid[data-kid="stan"] { left: 1%; bottom: 96px; }
.rd-kid[data-kid="kyle"] { left: 35%; bottom: 92px; }
.rd-kid[data-kid="cartman"] { left: 43%; bottom: 42px; width: 12%; }
.rd-kid[data-kid="kenny"] { left: 1%; bottom: 20px; }
.rd-hero { left: 12%; width: 23%; }
/* Fits one screen: the picture shrinks with the window, and on wide screens the eight buttons share a row. */
.rd { max-width: 680px; scroll-margin-top: 8px; }
.rd-frames { padding: 5px 8px; }
.rd-unit > i { width: 34px; height: 34px; font-size: 18px; }
.rd-stage { height: clamp(180px, 100vh - 400px, 330px); }
.rd-hero { left: 14%; width: auto; max-width: none; height: 58%; bottom: 4px; }
.rd-boss { width: auto; max-width: 48%; height: 86%; display: flex; align-items: flex-end; }
.rd-hero > svg { width: auto; height: 100%; }
.rd-boss > svg { height: 100%; }
.rd-kid { width: auto; max-width: none; height: 40%; }
.rd-kid svg { width: auto; height: 100%; }
.rd-kid[data-kid="stan"] { left: 1%; bottom: 36%; width: auto; }
.rd-kid[data-kid="kyle"] { left: 31%; bottom: 36%; width: auto; }
.rd-kid[data-kid="cartman"] { left: 35%; bottom: 2px; width: auto; height: 46%; z-index: 2; }
.rd-kid[data-kid="kenny"] { left: 0; bottom: 3px; width: auto; }
.rd-cast { padding-top: 6px; }
.rd-icon { width: 28px; height: 28px; font-size: 16px; }
.rd-castbar { height: 22px; }
.rd-castbar b { line-height: 17px; }
.rd-tell { min-height: 30px; padding: 3px 10px; font-size: 13px; }
.rd:has(.rd-timing:not([hidden])) .rd-tell { display: none; }
.rd-timing { height: 30px; margin-bottom: 6px; }
.rd-actions, .rd-friends { gap: 6px; padding: 0 8px 6px; }
.rd-slot { padding: 5px 2px 4px; gap: 0; }
.rd-glyph { font-size: 20px; }
.rd-slot b { font-size: 12px; }
.rd-friends .rd-slot em { top: 14%; }
.rd-chat { min-height: 40px; max-height: 40px; margin: 0 8px 8px; padding: 3px 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 11px; line-height: 1.5; }
@media (min-width: 600px) {
  .rd-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; padding: 0 8px; }
  .rd-buttons > div { padding-left: 0; padding-right: 0; }
  .rd-slot small, .rd-slot kbd { display: none; }
}
.rd-boss { width: 46%; max-width: 300px; }
.rd-boss > svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 480px) {
  .rd-stage { height: 270px; }
  .rd-kid { height: 24%; }
  .rd-kid[data-kid="stan"] { bottom: 43%; left: 1%; }
  .rd-kid[data-kid="kyle"] { bottom: 43%; left: 27%; }
  .rd-kid[data-kid="kenny"] { left: 0; }
  .rd-kid[data-kid="cartman"] { height: 28%; left: 36%; }
  .rd-hero { left: 17%; height: 39%; }
  .rd-boss { width: 49%; height: 74%; }
}
/* The parry: a red ring closing on a circle over you. Tap anywhere on it, press Block or space. */
.rd-parry { position: absolute; left: 25%; bottom: 31%; z-index: 4; width: 62px; height: 62px; translate: -50% 50%; }
.rd-parry i { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.rd-core { border: 5px solid #fff; background: rgba(255,255,255,.18); box-shadow: 0 0 0 3px #000; }
.rd-ring { border: 6px solid #ff3b2a; box-shadow: 0 0 12px #ff3b2a, inset 0 0 8px #ff3b2a; }
.rd-parry button { position: absolute; inset: -60px; border: 0; border-radius: 50%; background: transparent; color: #fff; font: 400 20px 'Luckiest Guy', sans-serif; text-shadow: 0 3px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; cursor: pointer; touch-action: manipulation; }
.rd-parry.now .rd-core { border-color: #7dff5c; background: rgba(125,255,92,.5); box-shadow: 0 0 22px 8px #7dff5c; }
.rd-parry.missed { filter: grayscale(1); opacity: .6; }
.rd-block-slot:not(:disabled) { border-color: #fff; background: radial-gradient(circle at 50% 30%, #bfe9ff, #2f6fd0); }
/* More life and bigger moves in the raid. */
.rd-stage { transition: filter .4s, transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.rd-stage.zoom-foe { transform: scale(1.12); transform-origin: 76% 70%; z-index: 1; }
.rd-stage.zoom-me { transform: scale(1.1); transform-origin: 22% 75%; z-index: 1; }
.rd-clouds i { position: absolute; width: 110px; height: 22px; border-radius: 20px; background: rgba(255,255,255,.28); box-shadow: 26px -9px 0 -3px rgba(255,255,255,.28); animation: rd-drift 38s linear infinite; }
.rd-clouds i:nth-child(1) { top: 14%; animation-delay: -6s; }
.rd-clouds i:nth-child(2) { top: 30%; width: 74px; animation-duration: 52s; animation-delay: -30s; }
.rd-clouds i:nth-child(3) { top: 7%; width: 90px; animation-duration: 64s; animation-delay: -14s; }
.rd-embers i { position: absolute; bottom: -6px; width: 5px; height: 5px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 8px #ff7a1c; opacity: 0; animation: rd-ember 5s linear infinite; }
.rd-embers i:nth-child(1) { left: 6%; } .rd-embers i:nth-child(2) { left: 18%; animation-delay: 1.4s; } .rd-embers i:nth-child(3) { left: 29%; animation-delay: 3.1s; } .rd-embers i:nth-child(4) { left: 41%; animation-delay: .6s; } .rd-embers i:nth-child(5) { left: 48%; animation-delay: 2.3s; } .rd-embers i:nth-child(6) { left: 57%; animation-delay: 4s; } .rd-embers i:nth-child(7) { left: 66%; animation-delay: 1.9s; } .rd-embers i:nth-child(8) { left: 75%; animation-delay: 3.6s; } .rd-embers i:nth-child(9) { left: 85%; animation-delay: .2s; } .rd-embers i:nth-child(10) { left: 94%; animation-delay: 2.8s; }
.rd-turn { position: absolute; left: 0; right: 0; top: 34%; z-index: 5; pointer-events: none; transform: translateX(-110%); background: linear-gradient(90deg, transparent, rgba(30,80,180,.9) 20% 80%, transparent); text-align: center; }
.rd-turn.foe { background: linear-gradient(90deg, transparent, rgba(170,20,10,.92) 20% 80%, transparent); }
.rd-turn b { font: 400 30px 'Luckiest Guy', sans-serif; color: #fff; letter-spacing: 2px; text-shadow: 0 3px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; }
.rd-turn.go { animation: rd-swipe 1s cubic-bezier(.2, .8, .3, 1) forwards; }
.rd-fist { position: absolute; z-index: 3; width: 54px; height: 54px; pointer-events: none; filter: drop-shadow(0 0 10px #ff4a2c); }
.rd-fist svg { width: 100%; height: 100%; }
.rd-stage[data-move="feint"] .rd-fist { filter: drop-shadow(0 0 14px #c04aff) hue-rotate(60deg); }
.rd-bars { position: absolute; inset: 0; z-index: 7; pointer-events: none; border: solid #000; border-width: 0 0; transition: border-width .3s; }
.rd-stage.cinema .rd-bars { border-width: 22px 0; }
.rd-boss.windup { animation: rd-windup .9s ease-in-out; }
.rd-boss.slam { animation: rd-slam .6s cubic-bezier(.3, .7, .4, 1); z-index: 2; }
.rd-slash.cut1 { transform: scaleX(-1); border-left-color: #ffe45c; }
.rd-slash.cut2 { top: 30%; right: 18%; border-left-width: 18px; border-left-color: #bfe9ff; }
.rd-clash { translate: -50% -50%; font-size: 110px; color: #fff; text-shadow: 0 0 24px #8fd8ff, 0 0 50px #fff; animation: rd-clash .5s ease-out forwards; }
.rd-flash.soft { opacity: .55; animation-duration: .45s; }
.rd-redout { inset: 0; box-shadow: inset 0 0 70px 24px rgba(220,20,0,.85); animation: rd-fade .7s ease-out forwards; }
.rd-crack { left: 2%; right: 52%; bottom: 0; height: 34px; background: linear-gradient(115deg, transparent 18%, #1a0d06 19% 21%, transparent 22%), linear-gradient(60deg, transparent 38%, #1a0d06 39% 41%, transparent 42%), linear-gradient(100deg, transparent 58%, #1a0d06 59% 62%, transparent 63%), linear-gradient(75deg, transparent 76%, #1a0d06 77% 79%, transparent 80%); animation: rd-fade 1.2s ease-in forwards; }
.rd-beam { left: 14%; width: 18%; top: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,244,160,.85), transparent); animation: rd-beam .9s ease-out forwards; }
.rd-ice { right: 3%; width: 40%; bottom: 4px; height: 82%; border: 4px solid #e9fbff; border-radius: 18% 26% 8% 10%; background: linear-gradient(135deg, rgba(190,235,255,.75), rgba(90,160,230,.35) 50%, rgba(220,245,255,.7)); box-shadow: 0 0 26px #8fd8ff; animation: rd-iceup 1.15s ease-out forwards; }
.rd-ring-up { left: 15%; bottom: 0; width: 16%; height: 12%; border: 5px solid #ffb347; border-radius: 50%; box-shadow: 0 0 16px #ffb347; animation: rd-ringup .9s ease-out forwards; }
.rd-bubble { width: 14px; height: 14px; border: 2px solid #b8ff9a; border-radius: 50%; background: rgba(90,230,60,.55); animation: rd-up 1s ease-out forwards; }
.rd-pillar { left: 58%; width: 30%; top: 0; bottom: 0; background: linear-gradient(90deg, transparent, #bfe9ff 30%, #fff 50%, #bfe9ff 70%, transparent); animation: rd-beam 1s ease-out forwards; }
.rd-shock.second { animation-delay: .18s; border-color: #8fd8ff; }
.rd-confetti { top: -12px; width: 8px; height: 13px; animation: rd-fall 1.8s linear both; }
.rd-runes { position: absolute; width: 230px; height: 230px; border: 5px dashed rgba(190,235,255,.8); border-radius: 50%; box-shadow: 0 0 30px #8fd8ff, inset 0 0 30px #8fd8ff; animation: rd-spin 5s linear infinite; pointer-events: none; }
@keyframes rd-drift { from { left: -140px; } to { left: 105%; } }
@keyframes rd-ember { 10% { opacity: 1; } to { transform: translate(34px, -230px) scale(.3); opacity: 0; } }
@keyframes rd-swipe { 25% { transform: translateX(0); } 72% { transform: translateX(0); opacity: 1; } to { transform: translateX(110%); opacity: 0; } }
@keyframes rd-windup { 45% { transform: translateX(14px) scale(1.1) rotate(6deg); filter: brightness(1.35); } }
@keyframes rd-slam { 35% { transform: translate(-34%, -60px) scale(1.18) rotate(-6deg); } 60% { transform: translate(-60%, 8px) scale(1.22, .92); } }
@keyframes rd-clash { from { transform: scale(.2) rotate(-40deg); } to { transform: scale(1.4) rotate(35deg); opacity: 0; } }
@keyframes rd-beam { from { transform: scaleX(.1); opacity: 0; } 25% { transform: scaleX(1.15); opacity: 1; } to { transform: scaleX(.3); opacity: 0; } }
@keyframes rd-iceup { from { transform: scaleY(0); transform-origin: bottom; } 25% { transform: scaleY(1.05); transform-origin: bottom; } 75% { opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
@keyframes rd-ringup { to { transform: translateY(-190px) scale(1.3); opacity: 0; } }
@keyframes rd-spin { to { rotate: 360deg; } }
/* Rage mode: the Griefer swells and burns, and the whole screen throbs. */
.rd.rage { animation: rd-throb .8s ease-in-out infinite alternate; }
.rd.rage .rd-boss { scale: 1.14; transform-origin: bottom right; translate: -3% 0; }
.rd.rage .rd-boss > svg { filter: drop-shadow(0 0 14px #ff2a1c) drop-shadow(0 -10px 22px #ffb347) saturate(1.5); animation: rd-fury .18s linear infinite; }
.rd.rage .rd-boss::before { content: ''; position: absolute; inset: -6% 4% 0; z-index: -1; border-radius: 50% 50% 20% 20%; background: radial-gradient(ellipse at bottom, rgba(255,180,40,.85), rgba(255,40,10,.55) 45%, transparent 72%); animation: rd-flame .35s ease-in-out infinite alternate; }
.rd.rage .rd-stage { background: radial-gradient(circle at 18% 18%, #ff3a1a 0 22px, rgba(255,40,10,.4) 23px 40px, transparent 41px), linear-gradient(#0c0005, #ff4a1c 85%); }
.rd.rage .rd-embers i { width: 8px; height: 8px; animation-duration: 2.2s; background: #ff5a1c; }
@keyframes rd-throb { to { box-shadow: 0 0 0 3px #ff3a1a, 0 0 0 6px #4a0c04, 0 0 40px 8px rgba(255,50,20,.75); } }
@keyframes rd-fury { 25% { transform: translate(-2px, 1px) scale(1.01); } 75% { transform: translate(2px, -1px); } }
@media (prefers-reduced-motion: reduce) { .rd.rage { animation: none; } }
/* The combo sign sits in the open sky between the gang and the Griefer, clear of everyone. */
.rd-combo { left: 45%; top: 6px; translate: -50% 0; font-size: 14px; }
/* A little larger. */
.rd { max-width: 820px; }
@media (min-width: 481px) { .rd-stage { height: clamp(220px, 100vh - 350px, 430px); } .rd-boss { max-width: 360px; } }
/* Smoother: live blur and shadow filters on moving figures made the fight stutter, so they're gone;
   the rage glow is one still layer that only fades in and out. */
.rd-fighter > svg, .rd-kid svg, .rd-fist, .rd.mad .rd-boss > svg, .rd.rage .rd-boss > svg, .rd-stage[data-move="feint"] .rd-fist { filter: none; }
.rd-stage[data-move="feint"] .rd-fist svg circle { fill: #c04aff; }
.rd.rage { animation: none; box-shadow: 0 0 0 3px #ff3a1a, 0 0 0 6px #4a0c04; }
.rd.rage .rd-boss > svg { animation: rd-breathe .6s ease-in-out infinite alternate; }
.rd.rage .rd-boss::before { animation: rd-glowpulse .6s ease-in-out infinite alternate; will-change: opacity; }
.rd.rage .rd-embers i { box-shadow: none; }
@keyframes rd-glowpulse { from { opacity: .55; } to { opacity: 1; } }
/* A bigger fight zone: the game is a little larger, and everything under the picture is slimmer. */
.rd { max-width: 920px; }
.rd-cast { padding-top: 4px; }
.rd-icon { width: 24px; height: 24px; font-size: 14px; border-width: 2px; }
.rd-castbar { height: 18px; border-width: 2px; }
.rd-castbar b { font-size: 12px; line-height: 14px; }
.rd-tell { min-height: 20px; padding: 1px 8px; font-size: 12px; }
.rd-timing { height: 26px; margin-bottom: 4px; }
.rd-actions, .rd-friends { padding-bottom: 4px; }
.rd-slot { padding: 2px 2px; border-width: 2px; }
.rd-glyph { font-size: 16px; }
.rd-slot b { font-size: 11px; }
.rd-chat { min-height: 20px; max-height: 20px; margin-bottom: 4px; padding: 0 8px; line-height: 1.6; }
@media (min-width: 481px) { .rd-stage { height: clamp(280px, 100vh - 204px, 560px); } .rd-boss { max-width: 470px; } }
@media (max-width: 480px) { .rd-stage { height: 340px; } }
/* The bigger fight zone is for room, not bigger figures: sizes are set in pixels and spread out. */
@media (min-width: 481px) {
  .rd .rd-hero { height: min(175px, 36%); left: 18%; bottom: 3%; }
  .rd .rd-boss { height: min(290px, 62%); max-width: 38%; bottom: 4%; right: 2%; }
  .rd .rd-kid[data-kid] { height: min(118px, 26%); }
  .rd .rd-kid[data-kid="stan"] { left: 3%; bottom: 39%; }
  .rd .rd-kid[data-kid="kyle"] { left: 31%; bottom: 39%; }
  .rd .rd-kid[data-kid="kenny"] { left: 2%; bottom: 3%; }
  .rd .rd-kid[data-kid="cartman"] { height: min(132px, 29%); left: 38%; bottom: 3%; }
  .rd .rd-parry { left: calc(18% + 70px); bottom: min(92px, 20%); }
}
/* Smoothness: only transform and opacity animate; no filters, glows or layout changes while things move. */
.rd-castbar span { width: 100%; transform: scaleX(0); transform-origin: left; }
.rd-fist { left: 0 !important; bottom: 0 !important; will-change: transform; }
.rd-ring { box-shadow: none; will-change: transform; }
.rd-parry.now .rd-core { box-shadow: 0 0 0 5px #7dff5c; }
.rd-forest { will-change: transform; }
.rd.mad .rd-forest { filter: none; }
.rd-clouds i { left: 0; will-change: transform; animation-name: rd-drift2; }
.rd-fighter > svg, .rd.rage .rd-boss > svg, .rd-boss > svg { animation: none; }
.rd-fighter:not(.lunge):not(.shake):not(.guard):not(.glow):not(.frozen):not(.windup):not(.slam) { animation: rd-idle 2s ease-in-out infinite alternate; will-change: transform; }
.rd-kid { will-change: transform; }
.rd-fire { display: none; }
.rd-embers i { box-shadow: none; will-change: transform, opacity; }
.rd-mash .rd-giant svg { filter: none; }
.rd-banner .rd-giant svg { filter: none; animation: none; }
.rd-drop svg { filter: none; }
.rd-runes { box-shadow: none; }
.rd-slash { filter: none; }
.rd-beam, .rd-ice, .rd-ring-up { box-shadow: none; }
.rd-sword-slot:not(:disabled) { animation: none; box-shadow: 0 0 0 3px #8fd8ff; }
@keyframes rd-hit { 15%, 55% { transform: translateX(-12px) rotate(-5deg); } 35%, 75% { transform: translateX(12px) rotate(5deg); } }
@keyframes rd-windup { 45% { transform: translateX(14px) scale(1.1) rotate(6deg); } }
@keyframes rd-glow { 40% { transform: scale(1.1) translateY(-8px); } }
@keyframes rd-freeze { 0%, 70% { opacity: .75; } }
@keyframes rd-drift2 { from { transform: translateX(-150px); } to { transform: translateX(950px); } }
/* The chat shows three lines again; the room comes out of the sky. */
.rd-chat { min-height: 54px; max-height: 54px; padding: 3px 8px; line-height: 1.45; }
@media (min-width: 481px) { .rd-stage { height: clamp(260px, 100vh - 240px, 520px); } }
@media (max-width: 480px) { .rd-stage { height: 305px; } }
.flair-bearer { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #c9a23a; border-radius: 3px; vertical-align: 1px; background: #1d3557; color: #ffe9a8; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
/* 'Member?: the berries on their vine. */
.mb { max-width: 600px; margin: 0 auto; overflow: hidden; border: 5px solid #1c0f2a; border-radius: 18px; box-shadow: 0 0 0 3px #8b4fd0, 0 8px 0 3px #12081c; user-select: none; }
.mb [hidden] { display: none !important; }
.mb-hud { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; background: linear-gradient(#4a2a6e, #2f1a4a); border-bottom: 4px solid #1c0f2a; }
.mb-title { font: 400 22px 'Luckiest Guy', sans-serif; color: #e8ccff; text-shadow: 0 3px 0 #1c0f2a, 2px 0 0 #1c0f2a, -2px 0 0 #1c0f2a, 0 -2px 0 #1c0f2a; }
.mb-chip { padding: 3px 10px; border: 2px solid #1c0f2a; border-radius: 999px; background: #fff3d6; color: #2a1640; font: 800 12px var(--font-body); white-space: nowrap; }
.mb-scene { position: relative; min-height: 400px; padding: 12px 10px 16px; background: radial-gradient(circle at 50% 62%, rgba(255,214,150,.55), transparent 60%), repeating-linear-gradient(90deg, #6a4a8a 0 30px, #5f427e 30px 60px); }
.mb-bubble { position: relative; min-height: 58px; margin: 0 auto 18px; max-width: 440px; display: flex; align-items: center; justify-content: center; padding: 8px 14px; border: 4px solid #1c0f2a; border-radius: 22px; background: #fff; color: #2a1640; font: 400 20px 'Luckiest Guy', sans-serif; text-align: center; }
.mb-vine { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 130px)); justify-content: center; gap: 12px 22px; padding-top: 6px; }
.mb-vine[data-count="5"], .mb-vine[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 120px)); gap: 12px; }
.mb-berry { padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; animation: mb-bob 1.8s ease-in-out infinite alternate; }
.mb-berry:nth-child(even) { animation-delay: .6s; }
.mb-berry:nth-child(3n) { animation-delay: 1.1s; }
.mb-berry svg { display: block; width: 100%; height: auto; transition: transform .15s; }
.mb-berry:disabled { cursor: default; }
.mb-berry .mb-open { display: none; }
.mb-berry.talk svg { transform: scale(1.22) rotate(-6deg); }
.mb-berry.talk circle:first-of-type { stroke: #fff; stroke-width: 7; }
.mb-berry.talk .mb-open { display: inline; }
.mb-berry.talk .mb-smile { display: none; }
.mb:not(.your-go) .mb-berry:not(.talk) svg { opacity: .78; }
.mb.your-go .mb-berry:hover svg { transform: scale(1.08); }
.mb-berry.hop { animation: mb-hop .55s ease-out; }
.mb-berry.cheer { animation: mb-cheer .6s ease-out 2; }
.mb-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; min-height: 14px; }
.mb-dots i { width: 14px; height: 14px; border: 3px solid #1c0f2a; border-radius: 50%; background: rgba(255,255,255,.35); }
.mb-dots i.on { background: #7dff8a; }
.mb.wrong { animation: mb-shake .45s linear; }
.mb.party .mb-berry { animation: mb-cheer .6s ease-out infinite; }
.mb-banner { position: absolute; left: 0; right: 0; top: 46%; text-align: center; pointer-events: none; }
.mb-banner strong { display: inline-block; padding: 8px 24px; border: 5px solid #1c0f2a; border-radius: 12px; color: #fff; font: 400 36px 'Luckiest Guy', sans-serif; rotate: -6deg; animation: mb-stamp .4s cubic-bezier(.3, 1.8, .5, 1); }
.mb-banner.win strong { background: #2fa83a; }
.mb-banner.lose strong { background: #d9362f; }
@keyframes mb-bob { to { transform: translateY(-6px); } }
@keyframes mb-hop { 40% { transform: translateY(-30px) rotate(12deg); } }
@keyframes mb-cheer { 40% { transform: translateY(-22px) scale(1.1); } }
@keyframes mb-shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes mb-stamp { from { scale: 3; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mb, .mb * { animation: none !important; } }
/* Phones: the two serving and raid games use the whole width, with big thumb-sized controls. */
.tp, .rd { scroll-margin-top: 6px; }
.tp-item, .rd-slot, .rd-parry button, .rd-stage { -webkit-tap-highlight-color: transparent; }
@media (max-width: 480px) {
  #game:has(.tp), #game:has(.rd) { margin-left: -12px; margin-right: -12px; padding-left: 4px; padding-right: 4px; }
  .tp { max-width: none; border-width: 3px; border-radius: 14px; }
  .tp-hud { padding: 5px 6px; flex-wrap: wrap; row-gap: 0; }
  .tp-title { font-size: 14px; padding: 1px 8px; }
  .tp-chip { font-size: 12px; padding: 2px 8px; }
  .tp-lives { min-height: 18px; font-size: 13px; }
  .tp-shop { height: 250px; }
  .tp-shelf { gap: 8px; padding: 10px 8px 12px; }
  .tp-item { min-height: 92px; padding: 6px 2px; }
  .tp-item svg { width: 50px; height: 50px; }
  .tp-item small { font-size: 12px; }
  .tp-gnome { width: 82px; }
  .tp-gnome svg { width: 82px; height: 74px; }
  .rd { max-width: none; border-width: 3px; border-radius: 12px; }
  .rd-frames { padding: 4px 6px; gap: 6px; }
  .rd-unit > i { display: none; }
  .rd-unit > div > span { font-size: 13px; }
  .rd .rd-unit small { display: none; }
  .rd .rd-stage { height: clamp(250px, 100vh - 390px, 330px); touch-action: manipulation; }
  .rd .rd-kid[data-kid] { height: 22%; }
  .rd .rd-kid[data-kid="stan"] { left: 1%; bottom: 45%; }
  .rd .rd-kid[data-kid="kyle"] { left: 25%; bottom: 47%; }
  .rd .rd-kid[data-kid="kenny"] { left: 0; bottom: 4%; }
  .rd .rd-kid[data-kid="cartman"] { height: 25%; left: 35%; bottom: 2%; }
  .rd .rd-hero { height: 34%; left: 15%; bottom: 8%; }
  .rd .rd-boss { height: 66%; width: 47%; right: 0; }
  .rd .rd-parry { left: calc(15% + 44px); bottom: 24%; }
  .rd-tell { font-size: 12px; min-height: 30px; }
  .rd-buttons .rd-actions, .rd-buttons .rd-friends { gap: 6px; padding: 0 6px 6px; }
  .rd-buttons .rd-slot { min-height: 56px; padding: 4px 1px; }
  .rd-slot .rd-glyph { font-size: 22px; }
  .rd-slot b { font-size: 12px; }
  .rd-timing { height: 44px; margin: 0 6px 6px; }
  .rd-chat { min-height: 40px; max-height: 40px; margin: 0 6px 6px; font-size: 11px; }
  /* The Griefer's turn: one huge Block button where your moves were. */
  .rd.parrying .rd-friends { display: none; }
  .rd.parrying .rd-actions { grid-template-columns: 1fr; }
  .rd.parrying .rd-actions .rd-slot:not([data-act="block"]) { display: none; }
  .rd.parrying .rd-actions .rd-slot[data-act="block"] { min-height: 118px; }
  .rd.parrying [data-act="block"] .rd-glyph { font-size: 40px; }
  .rd.parrying [data-act="block"] b { font-size: 24px; }
}
/* Tweek talks from the counter, so the bubble never covers the order board. */
.tp-say { left: 0; bottom: -46px; max-width: 150px; padding: 4px 10px; border-radius: 2px 16px 16px 16px; font-size: 12px; line-height: 1.25; pointer-events: none; }
/* Games can't be selected or boxed in by touch: no highlight, callout, selection or focus frame on taps. */
#game, #game * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; }
#game button { touch-action: manipulation; }
#game canvas { touch-action: none; } /* swipes and drags belong to the game, not the page */
#game .pg-arena canvas { touch-action: none; }
#game :focus:not(:focus-visible), #game canvas:focus, #game > h3:focus { outline: none; }
@media (pointer: coarse) { #game :focus, #game :focus-visible { outline: none; } }
#game .bb-blast { touch-action: none; }
.mb-ask { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(18,8,28,.82); }
.mb-ask > div { max-width: 360px; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 5px solid #1c0f2a; border-radius: 18px; background: #fff3d6; color: #2a1640; text-align: center; animation: mb-stamp .35s cubic-bezier(.3, 1.6, .5, 1); }
.mb-ask strong { font: 400 26px/1.15 'Luckiest Guy', sans-serif; color: #8b3fd9; }
.mb-ask p { margin: 0; font-weight: 700; }
.mb-ask .btn-ghost { background: #2f1a4a; color: #fff; }
.flair-imember { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #c9a0ff; border-radius: 999px; vertical-align: 1px; background: #4b2380; color: #fff; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.pg-card p.pg-tag { font-size: 12px; }
.aw-decor { position: absolute; inset: auto 0 0 0; width: 100%; height: 220px; }
.aw-actor, .aw-bubble { z-index: 2; }
.aw-room[data-room="garage"] { background: linear-gradient(transparent 0 76%, #1a1020 76% 77.5%, transparent 77.5%), linear-gradient(transparent 0 77.5%, #6b6f78 77.5%), repeating-linear-gradient(#b8bec6 0 26px, #9ca3ad 26px 30px); }
.aw-room[data-room="den"] { background: linear-gradient(transparent 0 76%, #1a1020 76% 77.5%, transparent 77.5%), linear-gradient(transparent 0 77.5%, #3f7a4a 77.5%), repeating-linear-gradient(90deg, #d9a066 0 18px, #cf9459 18px 36px); }
.aw-room[data-room="garage"] .aw-window, .aw-room[data-room="den"] .aw-window { display: none; }
.aw-prop { position: absolute; left: 50%; bottom: 26px; z-index: 2; translate: -50% 0; font-size: 46px; line-height: 1; filter: drop-shadow(0 5px 2px rgba(0,0,0,.4)); }
.aw-prop.go { animation: aw-prop .5s cubic-bezier(.3, 1.8, .5, 1); }
.aw-pop { position: absolute; right: 8%; top: 96px; z-index: 3; padding: 3px 12px; border: 3px solid #1a1020; border-radius: 8px; font: 400 18px 'Luckiest Guy', sans-serif; color: #fff; opacity: 0; pointer-events: none; }
.aw-pop.good { background: #2fa83a; }
.aw-pop.bad { background: #d9362f; right: auto; left: 8%; }
.aw-pop.go { animation: aw-pop 1.3s ease-out; }
.aw-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: repeating-linear-gradient(transparent 0 5px, rgba(125,255,138,.28) 5px 7px); }
.aw-room.beep .aw-scan { animation: aw-scan .6s ease-out; }
.aw.party .aw-actor { animation: aw-hop .6s ease-in-out infinite; }
@keyframes aw-prop { from { scale: 0; rotate: -60deg; } }
@keyframes aw-pop { 0% { opacity: 0; scale: .3; rotate: -14deg; } 15%, 75% { opacity: 1; scale: 1; rotate: -6deg; } 100% { opacity: 0; translate: 0 -26px; } }
@keyframes aw-scan { 25% { opacity: 1; } 100% { opacity: 0; background-position: 0 40px; } }
.aw-warn { position: absolute; left: 50%; top: 100px; z-index: 3; translate: -50% 0; margin: 0; padding: 4px 14px; border: 3px solid #1a1020; border-radius: 8px; background: #d9362f; color: #fff; font: 400 17px 'Luckiest Guy', sans-serif; white-space: nowrap; animation: aw-warn .45s ease-in-out infinite alternate; }
@keyframes aw-warn { to { background: #ffe45c; color: #1a1020; scale: 1.08; } }
.aw-butters { transition: scale .3s, margin .3s; transform-origin: bottom left; }
.aw.danger .aw-butters { scale: 1.08; margin-left: 22px; }
.aw.danger .aw-bubble { z-index: 3; }
.aw-hint { margin: 0; color: #fff3d0; font: 700 13px var(--font-body); text-align: center; }
.aw-spots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aw-replies .aw-spots button { position: relative; overflow: hidden; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 76px; padding: 8px 4px 14px; text-align: center; animation: none; touch-action: manipulation; user-select: none; }
.aw-spots button small { font-size: 11px; opacity: .7; }
.aw-spots button b { position: absolute; left: 0; bottom: 0; width: 0; height: 8px; background: #2fa83a; transition: width .1s; }
.aw-replies .aw-spots button:disabled { opacity: .5; cursor: default; }
.aw-replies .aw-still { justify-content: center; }
.aw-rules { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aw-rules li { display: flex; align-items: flex-start; gap: 10px; color: #f4f8fb; font: 500 13px/1.45 var(--font-body); }
.aw-rules p { margin: 0; }
.aw-rules b { color: #ffe45c; }
.aw-replies.wait button { pointer-events: none; filter: grayscale(.7) brightness(.8); }
.aw.danger .aw-room { box-shadow: inset 0 0 38px rgba(217,54,47,.85); }
@media (prefers-reduced-motion: reduce) { .aw *, .aw.party .aw-actor { animation: none !important; } }
@media (max-width: 480px) { .aw-title { font-size: 15px; white-space: nowrap; } }
.sx { position: relative; max-width: 400px; margin: 0 auto; scroll-margin-top: 6px; }
.aw-chip { display: inline-flex; align-items: center; gap: 4px; }
.aw-chip svg { width: 18px; height: 18px; }
.aw-prop svg { display: block; width: 62px; height: 62px; }
.aw-time { height: 12px; overflow: hidden; border: 3px solid #1a1020; border-radius: 999px; background: #17101f; }
.aw-time span { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ff4a3c, #ffe45c 45%, #7dff8a); animation: aw-drain linear forwards; }
.aw-steps { display: flex; justify-content: center; gap: 8px; padding: 4px 0; }
.aw-steps svg { width: 46px; height: 46px; color: #ffe45c; }
.aw-steps svg.done { color: #7dff8a; scale: .78; opacity: .6; }
.aw-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.aw-pad button { display: grid; place-items: center; min-height: 68px; border: 3px solid #1a1020; border-radius: 12px; background: linear-gradient(#eef6fb, #b9c9d8); color: #4a3a7a; box-shadow: 0 5px 0 #1a1020; cursor: pointer; touch-action: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.aw-pad button:active { box-shadow: 0 1px 0 #1a1020; translate: 0 4px; }
.aw-pad svg { width: 40px; height: 40px; }
.aw-robot[data-move="up"] svg { animation: aw-up .3s ease-out; }
.aw-robot[data-move="down"] svg { animation: aw-down .3s ease-out; }
.aw-robot[data-move="left"] svg { animation: aw-lean-left .3s ease-out; }
.aw-robot[data-move="right"] svg { animation: aw-lean-right .3s ease-out; }
@keyframes aw-drain { to { transform: scaleX(0); } }
@keyframes aw-up { 45% { transform: translateY(-34px); } }
@keyframes aw-down { 45% { transform: translateY(10px) scale(1.12, .78); } }
@keyframes aw-lean-left { 45% { transform: translateX(-24px) rotate(-16deg); } }
@keyframes aw-lean-right { 45% { transform: translateX(14px) rotate(16deg); } }
@media (prefers-reduced-motion: reduce) { .aw .aw-time span { animation: aw-drain linear forwards !important; } }
.pg-card p.pg-tag [class^="flair-"] { margin-left: 2px; }
.aw-replies { grid-template-columns: minmax(0, 1fr); }
.aw-pad button { min-width: 0; }
@media (max-width: 480px) { .aw-title { overflow: hidden; min-width: 0; font-size: 13px; } .aw-chip { flex: none; } .aw-steps svg { width: 38px; height: 38px; } }
.cc { position: relative; max-width: 480px; margin: 0 auto; overflow: hidden; padding: 30px 8px 34px; border: 5px solid #0b060f; border-radius: 120px 120px 18px 18px / 54px 54px 18px 18px; background: radial-gradient(ellipse at 50% 55%, #6b4a63, #3a2640 55%, #1b1122); box-shadow: 0 0 0 4px #6d5546, 0 10px 0 4px #0f0a18; scroll-margin-top: 6px; }
.cc [hidden] { display: none !important; }
.cc-rocks { position: absolute; left: 0; top: 0; width: 100%; height: 38px; pointer-events: none; }
.cc-rocks.floor { top: auto; bottom: 0; transform: scaleY(-1); }
.cc-bat { position: absolute; z-index: 1; top: 62px; left: -50px; width: 34px; pointer-events: none; animation: cc-fly 11s linear infinite; }
.cc-bat.two { top: 120px; width: 24px; animation-duration: 15s; animation-delay: -6s; }
.cc-bat svg { display: block; width: 100%; animation: cc-flap .25s ease-in-out infinite alternate; }
.cc-hud { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cc-chip { padding: 3px 9px; border: 2px solid #0b060f; border-radius: 999px; background: #f4efe2; color: #1a1020; font: 800 11px var(--font-body); white-space: nowrap; box-shadow: 0 2px 0 #0b060f; }
.cc-sign { padding: 3px 12px; border: 3px solid #0b060f; border-radius: 6px; background: repeating-linear-gradient(#a9743f 0 7px, #996634 7px 9px); color: #ffe45c; font: 400 19px/1.2 'Luckiest Guy', sans-serif; text-shadow: 0 2px 0 #0b060f, 1px 0 0 #0b060f, -1px 0 0 #0b060f; rotate: -2deg; white-space: nowrap; }
.cc-board { --n: 4; display: grid; grid-template-columns: 1.05fr repeat(var(--n), 1fr) 1.05fr; gap: 3px; align-items: center; padding: 6px 2px; border: 3px solid #0b060f; border-radius: 14px; background: rgba(10,5,16,.45); }
.cc-tile { position: relative; display: block; aspect-ratio: 1; min-width: 0; padding: 0; border: 2px solid #0b060f; border-radius: 8px; background: radial-gradient(circle at 30% 25%, #9a8478, #6d5a58 55%, #55454a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 3px 0 #0b060f; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cc-tile.lit { background: radial-gradient(circle, #8d7a3a, #5a4a34 70%, #493a34); box-shadow: inset 0 0 12px rgba(255,214,60,.55), 0 3px 0 #0b060f; }
.cc-tile:disabled { cursor: default; }
.cc-art, .cc-art svg { display: block; width: 100%; height: 100%; }
.cc-art.spin { animation: cc-spin .18s ease-out; }
.cc-wire { stroke: #5d6773; }
.cc-joint { fill: #9aa5b1; stroke: #120a14; stroke-width: 2.5; }
.cc-flow { stroke: transparent; stroke-dasharray: 4 7; }
.lit .cc-wire { stroke: #ffc61a; }
.lit .cc-joint { fill: #fff6b0; }
.lit .cc-flow { stroke: #fff; animation: cc-flow .5s linear infinite; }
.cc-end { display: block; aspect-ratio: 1; min-width: 0; }
.cc-end svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.cc-end.on svg { filter: drop-shadow(0 0 7px #ffe45c); animation: cc-throb .6s ease-in-out infinite alternate; }
.cc-chaos { position: absolute; inset: -9px; z-index: 2; animation: cc-drop .35s cubic-bezier(.3, 1.8, .5, 1); }
.cc-chaos svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 3px rgba(0,0,0,.6)); animation: cc-wiggle .22s ease-in-out infinite alternate; }
.cc-chaos i { position: absolute; left: 8%; right: 8%; bottom: 0; height: 6px; border: 2px solid #0b060f; border-radius: 4px; background: #ff4a3c; transform-origin: left; animation: cc-drain var(--shoo) linear forwards; }
.cc.jolt { animation: cc-jolt .4s linear; }
.cc.party .cc-face, .cc.party .cc-hero { animation: cc-hop .5s ease-in-out infinite; }
@keyframes cc-fly { to { translate: 580px 20px; } }
@keyframes cc-flap { to { transform: scaleY(.5); } }
@keyframes cc-spin { from { rotate: -90deg; } }
@keyframes cc-flow { to { stroke-dashoffset: -11; } }
@keyframes cc-throb { to { scale: 1.08; } }
@keyframes cc-drop { from { scale: 2.4; opacity: 0; } }
@keyframes cc-wiggle { from { rotate: -7deg; } to { rotate: 7deg; } }
@keyframes cc-drain { to { transform: scaleX(0); } }
@keyframes cc-jolt { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes cc-hop { 50% { translate: 0 -8px; } }
@media (max-width: 480px) { #game:has(.cc) { padding-left: 8px; padding-right: 8px; } .cc { padding-left: 4px; padding-right: 4px; border-width: 4px; } .cc-sign { font-size: 15px; padding: 2px 7px; } .cc-chip { font-size: 10px; padding: 2px 6px; } .cc-board { gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .cc, .cc *:not(.cc-chaos i) { animation: none !important; } }
.cc { border-color: #0b060f; box-shadow: 0 0 0 4px #f5c518, 0 0 0 8px #6d5546, 0 14px 0 6px #0f0a18; }
.cc-sign { display: flex; flex-direction: column; align-items: center; }
.cc-sign small { font: 800 8px var(--font-body); letter-spacing: 2px; text-transform: uppercase; }
.cc-hero.work .cc-drill { animation: cc-buzz .09s linear 4; }
@keyframes cc-buzz { 50% { translate: 2px -2px; } }
.flair-toolmaster { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #1a1020; border-radius: 3px; vertical-align: 1px; background: #f5c518; color: #1a1020; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.flair-notmine { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #ffd21c; border-radius: 999px; vertical-align: 1px; background: #2f5fb3; color: #fff; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.flair-robotfriend { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #6b4423; border-radius: 4px; vertical-align: 1px; background: #c4905a; color: #1a1020; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.flair-caffeinated { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #e8c9a0; border-radius: 999px; vertical-align: 1px; background: #5b3a1e; color: #fff6e6; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.cc-talk { position: relative; display: flex; align-items: center; gap: 14px; margin: 10px 2px; }
.cc figure { flex: none; display: flex; flex-direction: column; align-items: center; margin: 0; }
.cc figcaption { padding: 1px 8px; border: 2px solid #0b060f; border-radius: 999px; background: #5b3a8a; color: #ffe45c; font: 400 11px 'Luckiest Guy', sans-serif; white-space: nowrap; }
.cc-face { display: block; width: 56px; }
.cc-face svg { display: block; width: 100%; filter: drop-shadow(0 4px 2px rgba(0,0,0,.5)); }
.cc-bubble { position: relative; flex: 1; min-width: 0; min-height: 56px; padding: 5px 12px 7px; border: 3px solid #5b3a8a; border-radius: 16px; background: #fff; color: #1a1020; box-shadow: 0 0 0 2px #0b060f; }
.cc-bubble::before { content: ''; position: absolute; left: -11px; top: 50%; width: 16px; height: 16px; border: solid #5b3a8a; border-width: 0 0 3px 3px; background: #fff; translate: 0 -50%; rotate: 45deg; }
.cc-bubble b { display: block; color: #5b3a8a; font: 400 12px 'Luckiest Guy', sans-serif; }
.cc-bubble p { margin: 0; font: 700 13px/1.35 var(--font-body); }
.cc-you { display: flex; align-items: flex-end; gap: 10px; margin: 8px 2px 0; }
.cc-you figcaption { background: #f5c518; color: #1a1020; }
.cc-hero { display: block; width: 124px; }
.cc-hero svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc-belt { flex: 1; display: flex; align-items: center; justify-content: space-evenly; margin-bottom: 4px; padding: 9px 8px; border: 3px solid #0b060f; border-radius: 10px; background: repeating-linear-gradient(135deg, #f5c518 0 12px, #1a1020 12px 24px); }
.cc-belt svg { width: 42px; height: 42px; padding: 4px; border: 3px solid #0b060f; border-radius: 9px; background: #8a5a2a; }
.cc-belt svg.used { animation: cc-use .35s ease-out; }
.cc-tile.zap { animation: cc-zap .35s ease-out; }
@keyframes cc-zap { from { outline: 3px solid #fff6b0; outline-offset: 0; } to { outline: 3px solid transparent; outline-offset: 5px; } }
@keyframes cc-use { 40% { translate: 0 -14px; rotate: -30deg; scale: 1.25; background: #f5c518; } }
@media (max-width: 480px) { .cc-talk { gap: 12px; } .cc-face { width: 46px; } .cc-bubble p { font-size: 12px; } .cc-hero { width: 100px; } .cc-you { gap: 6px; } .cc-belt svg { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .cc-tile.zap, .cc-belt svg.used { animation: none; } }
/* Each level's place: its picture, and the walls around the board. */
.cc-place { position: relative; margin: 8px 2px 14px; }
.cc-place svg { display: block; width: 100%; height: 104px; border: 3px solid #0b060f; border-radius: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.cc-place b { position: absolute; left: 50%; bottom: -9px; translate: -50% 0; white-space: nowrap; padding: 2px 9px; border: 2px solid #0b060f; border-radius: 6px; background: #f4efe2; color: #1a1020; font: 400 11px 'Luckiest Guy', sans-serif; rotate: -2deg; }
.cc-sky { display: none; }
.cc.signal-on .cc-sky { display: inline; animation: cc-beam .8s ease-in-out infinite alternate; }
.cc-flash { animation: cc-beam .4s steps(2) infinite alternate; }
.cc-flash.two { animation-delay: -.4s; }
@keyframes cc-beam { from { opacity: .6; } to { opacity: 1; } }
.cc[data-place="basement"] { border-radius: 18px; background: repeating-linear-gradient(90deg, #6b4a38 0 42px, #5a3d2f 42px 45px); }
.cc[data-place="roof"] { border-radius: 18px; background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px) 0 0 / 70px 62px, linear-gradient(#10153c, #27306e); }
.cc[data-place="yard"] { border-radius: 18px; background: linear-gradient(#1d2358 0 55%, #46508c 75%, #dbe7f2); }
.cc[data-place="core"] { background: radial-gradient(ellipse at 50% 55%, #8a2a34, #4a1220 55%, #1b0810); box-shadow: 0 0 0 4px #ff4a3c, 0 0 0 8px #3a0f1c, 0 14px 0 6px #0f0a18; }
.cc:not([data-place="cave"]):not([data-place="core"]) :is(.cc-rocks, .cc-bat) { display: none; }
.cc:not([data-place="cave"]):not([data-place="core"]) { padding-top: 12px; padding-bottom: 14px; }
.cc-end[data-device="signal"] svg { scale: 1.12; }
@media (max-width: 480px) { .cc-place svg { height: 84px; } .cc-place b { font-size: 10px; } }
.cc-spacer { width: 66px; }
/* The countdown sits top right, just over the puzzle. */
.cc-above { display: flex; justify-content: flex-end; margin: 6px 2px 5px; }
.cc-timer { display: flex; align-items: center; gap: 8px; padding: 3px 12px; border: 3px solid #0b060f; border-radius: 10px; background: #14101c; box-shadow: 0 3px 0 #0b060f; }
.cc-timer small { color: #b9b0c9; font: 800 9px var(--font-body); letter-spacing: 1.5px; text-transform: uppercase; }
.cc-timer b { min-width: 52px; color: #8fffb0; font: 800 22px/1.2 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; text-align: right; }
.cc.low .cc-timer { border-color: #ff4a3c; animation: cc-throb .5s ease-in-out infinite alternate; }
.cc.low .cc-timer b { color: #ff6b5e; }
/* The result card. */
.cc-result { --tone: #35c26b; position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(9,6,16,.78); backdrop-filter: blur(3px); animation: cc-fade .25s ease-out; }
.cc-result.bad { --tone: #ef5148; }
.cc-result.gold { --tone: #f5c518; }
.cc-card { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 20px 20px; border: 1px solid rgba(255,255,255,.14); border-top: 5px solid var(--tone); border-radius: 16px; background: linear-gradient(#262033, #181421); color: #f3f0f8; text-align: center; box-shadow: 0 24px 50px rgba(0,0,0,.55); animation: cc-rise .35s cubic-bezier(.2, .9, .3, 1.2); }
.cc-medal { width: 70px; height: 70px; margin-top: 18px; padding: 5px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 22%, transparent); }
.cc-medal svg { display: block; width: 100%; height: 100%; }
.cc-card p { margin: 0; }
.cc-card .cc-kicker { margin-top: 8px; color: var(--tone); font: 800 10px var(--font-body); letter-spacing: 1.8px; text-transform: uppercase; }
.cc-card h4 { margin: 0; color: #fff; font: 800 25px/1.2 var(--font-body); }
.cc-card .cc-line { color: #b9b3c9; font: 500 13px/1.45 var(--font-body); }
.cc-card dl { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 8px 0 2px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.04); }
.cc-card dl div { padding: 8px 4px; }
.cc-card dl div + div { border-left: 1px solid rgba(255,255,255,.1); }
.cc-card dt { color: #8f88a3; font: 700 9px var(--font-body); letter-spacing: 1.2px; text-transform: uppercase; }
.cc-card dd { margin: 2px 0 0; color: #fff; font: 800 17px var(--font-body); font-variant-numeric: tabular-nums; }
.cc-pips { display: flex; gap: 6px; margin: 4px 0; }
.cc-pips i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); }
.cc-pips i.on { background: var(--tone); }
.cc-pips i.miss { background: var(--tone); opacity: .4; }
.cc-card button { position: relative; overflow: hidden; width: 100%; margin-top: 6px; padding: 12px; border: 0; border-radius: 10px; background: var(--tone); color: #14101c; font: 800 14px var(--font-body); cursor: pointer; }
.cc-card button:hover { filter: brightness(1.1); }
.cc-card button span { position: relative; }
@keyframes cc-fade { from { opacity: 0; } }
@keyframes cc-rise { from { translate: 0 24px; opacity: 0; } }
@media (max-width: 480px) { .cc-spacer { width: 58px; } .cc-timer b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .cc-result, .cc-card { animation: none !important; } }
.cc-chaos { inset: -16px -14px -8px; }
.cc-chaos svg { transform-origin: 50% 90%; }
.cc-result.brief { --tone: #a98bff; }
.cc-result.brief .cc-medal { background: #3a2a5e; }
.cc-result.brief .cc-line { color: #f3f0f8; font-size: 15px; }
/* The Royal Wardrobe */
.kw { max-width: 480px; margin: 0 auto; overflow: hidden; padding-bottom: 12px; border: 5px solid #1a0f22; border-radius: 22px; background: linear-gradient(#2a2158, #4b3a7e); box-shadow: 0 0 0 4px #f28ab2, 0 0 0 8px #f5c518, 0 14px 0 6px #0f0a18; scroll-margin-top: 6px; }
.kw [hidden] { display: none !important; }
.kw-hud { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-bottom: 4px solid #1a0f22; background: repeating-linear-gradient(90deg, #d9498a 0 30px, #c63d7c 30px 60px); }
.kw-title { font: 400 19px 'Luckiest Guy', sans-serif; color: #ffe45c; text-shadow: 0 3px 0 #1a0f22, 2px 0 0 #1a0f22, -2px 0 0 #1a0f22, 0 -2px 0 #1a0f22; white-space: nowrap; }
.kw-chip { min-width: 66px; padding: 3px 9px; border: 2px solid #1a0f22; border-radius: 999px; background: #fff3fa; color: #1a0f22; font: 800 11px var(--font-body); text-align: center; white-space: nowrap; }
.kw-path { display: flex; justify-content: center; gap: 7px; padding: 7px 8px 0; }
.kw-path i { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #1a0f22; border-radius: 50%; background: #6a5a9c; color: #d6cfec; font: 400 12px 'Luckiest Guy', sans-serif; font-style: normal; }
.kw-path i.done { background: #5fe36a; color: #1a0f22; }
.kw-path i.now { background: #ffe45c; color: #1a0f22; scale: 1.2; }
.kw-path i.crown { font-size: 11px; }
.kw-talk { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.kw-wizard { flex: none; width: 54px; }
.kw-wizard svg { display: block; width: 100%; filter: drop-shadow(0 4px 2px rgba(0,0,0,.4)); animation: kw-bob 2s ease-in-out infinite alternate; }
.kw-bubble { position: relative; flex: 1; min-width: 0; min-height: 68px; padding: 5px 12px 7px; border: 3px solid #1a0f22; border-radius: 16px; background: #fff; color: #1a0f22; }
.kw-bubble::before { content: ''; position: absolute; left: -9px; top: 50%; width: 13px; height: 13px; border: solid #1a0f22; border-width: 0 0 3px 3px; background: #fff; translate: 0 -50%; rotate: 45deg; }
.kw-bubble b { display: block; color: #5b3a8a; font: 400 12px 'Luckiest Guy', sans-serif; }
.kw-bubble p { margin: 0; font: 700 13px/1.35 var(--font-body); }
.kw-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 300px; overflow: hidden; border: solid #1a0f22; border-width: 4px 0; }
.kw-hall { position: absolute; inset: 0; width: 100%; height: 100%; }
.kw-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: kw-flicker .28s ease-in-out infinite alternate; }
.kw-glow { animation: kw-glow .7s ease-in-out infinite alternate; }
.kw-stage figure { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; height: 100%; margin: 0; padding: 22px 0 6px; }
.kw-stage figure div { flex: 1; min-height: 0; aspect-ratio: 200 / 284; }
.kw-stage figure svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 8px 4px rgba(0,0,0,.35)); }
.kw-stage figcaption { padding: 2px 10px; border: 2px solid #1a0f22; border-radius: 999px; background: #fff3fa; color: #1a0f22; font: 400 12px 'Luckiest Guy', sans-serif; white-space: nowrap; }
.kw-me { cursor: pointer; }
.kw[data-phase="dress"] .kw-me svg { animation: kw-bob 1.6s ease-in-out infinite alternate; }
.kw[data-phase="study"] .kw-me { height: calc(100% - 38px); margin-bottom: 20px; padding: 8px 16px; border: 8px solid #f5c518; outline: 3px solid #1a0f22; border-radius: 12px; background: radial-gradient(circle, #fff8d8, #e9c9f2); box-shadow: 0 0 0 7px rgba(245,197,24,.3), 0 10px 22px rgba(0,0,0,.45); animation: kw-pop .35s ease-out; }
.kw[data-phase="judged"] .kw-stage figure { width: 46%; padding-top: 76px; }
.kw[data-phase="judged"] .kw-stage figure div { max-width: 100%; }
.kw-answer div { border-radius: 10px; background: rgba(255,244,190,.4); box-shadow: 0 0 0 4px #f5c518; }
.kw-me.poof { animation: kw-poof .45s ease-out; }
.kw-me.pop { animation: kw-pop .3s ease-out; }
.kw-stage.cheer figure svg { animation: kw-hop .5s ease-in-out 4; }
.kw-stage.boo { animation: kw-shake .4s linear; }
.kw-curtain { position: absolute; top: 0; bottom: 0; z-index: 3; width: 51%; background: repeating-linear-gradient(90deg, #a3122c 0 14px, #d92a47 14px 30px, #8a0d24 30px 36px); border: solid #1a0f22; transform: translateX(-90%); transition: transform .5s cubic-bezier(.5, 0, .3, 1.15); box-shadow: 0 0 18px rgba(0,0,0,.5); }
.kw-curtain.left { left: 0; border-width: 0 4px 0 0; border-bottom-right-radius: 55% 16%; }
.kw-curtain.right { right: 0; border-width: 0 0 0 4px; transform: translateX(90%); border-bottom-left-radius: 55% 16%; }
.kw.shut .kw-curtain { transform: none; border-radius: 0; }
.kw-pelmet { position: absolute; left: -4px; right: -4px; top: 0; z-index: 4; height: 20px; background: radial-gradient(circle at 20px 0, #d92a47 20px, #1a0f22 21px 23px, transparent 24px) 0 0 / 40px 30px repeat-x; }
.kw-banner { position: absolute; left: 8px; right: 8px; top: 38%; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; text-align: center; }
.kw-banner b { color: #ffe45c; font: 400 34px/1.1 'Luckiest Guy', sans-serif; -webkit-text-stroke: 7px #1a0f22; paint-order: stroke fill; }
.kw-banner span { padding: 3px 14px; border: 3px solid #1a0f22; border-radius: 999px; background: #fff3fa; color: #1a0f22; font: 800 12px var(--font-body); }
.kw-banner.go { animation: kw-stamp .4s cubic-bezier(.3, 1.8, .5, 1); }
.kw[data-phase="judged"] .kw-banner { top: 24px; }
.kw-count { position: absolute; right: 16px; top: 30px; z-index: 5; color: #fff; font: 400 52px 'Luckiest Guy', sans-serif; -webkit-text-stroke: 8px #1a0f22; paint-order: stroke fill; pointer-events: none; }
.kw-count.go { animation: kw-stamp .35s ease-out; }
.kw-mmph { position: absolute; left: 58%; top: 66px; z-index: 5; padding: 4px 12px; border: 3px solid #1a0f22; border-radius: 16px 16px 16px 4px; background: #fff; color: #1a0f22; font: 400 14px 'Luckiest Guy', sans-serif; opacity: 0; pointer-events: none; white-space: nowrap; }
.kw-mmph.go { animation: kw-mmph 1.4s ease-out; }
.kw-dragon { position: absolute; left: 0; top: 34%; z-index: 2; width: 62%; translate: -110% 0; pointer-events: none; }
.kw-dragon svg { display: block; width: 100%; }
.kw.dragon .kw-dragon { animation: kw-fly 3.4s linear forwards; }
.kw-dark { position: absolute; inset: 0; z-index: 4; background: #07040f; opacity: 0; pointer-events: none; transition: opacity .12s; }
.kw.dark .kw-dark { opacity: .97; }
.kw-fx { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.kw-fx i { position: absolute; animation-delay: var(--d); animation-fill-mode: both; }
.kw-fx i.confetti { top: -14px; width: 9px; height: 14px; border: 1.5px solid #1a0f22; background: var(--c); animation: kw-fall 1.7s ease-in forwards; animation-delay: var(--d); }
.kw-fx i.spark { top: var(--top); width: 12px; height: 12px; background: var(--c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: kw-spark .6s ease-out forwards; animation-delay: var(--d); }
.kw-fx i.tomato { top: var(--top); width: 62px; margin-left: -31px; animation: kw-splat 1.5s ease-in forwards; animation-delay: var(--d); }
.kw-time { position: absolute; left: 10px; right: 10px; bottom: 5px; z-index: 5; height: 12px; overflow: hidden; border: 3px solid #1a0f22; border-radius: 999px; background: #1a0f22; }
.kw-time span { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ff4a3c, #ffe45c 45%, #7dff8a); }
.kw-time span.run { animation: kw-drain linear forwards; }
.kw-court { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 10px 0; background: linear-gradient(#5a3a28, #3d2619); border-bottom: 4px solid #1a0f22; }
.kw-court figure { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding-bottom: 6px; }
.kw-court svg { width: 62px; height: auto; }
.kw-court figcaption { padding: 1px 8px; border: 2px solid #1a0f22; border-radius: 5px; background: #f5c518; color: #1a0f22; font: 400 10px 'Luckiest Guy', sans-serif; white-space: nowrap; }
.kw-court .m-happy, .kw-court .m-angry { display: none; }
.kw-court .happy .m-happy, .kw-court .angry .m-angry { display: inline; }
.kw-court .happy .m-flat, .kw-court .angry .m-flat { display: none; }
.kw-court .happy svg { animation: kw-hop .45s ease-in-out 5; }
.kw-court .angry svg { animation: kw-shake .4s linear 2; }
.kw-court em { position: absolute; right: 4px; top: 2px; display: none; place-items: center; width: 34px; height: 38px; border: 3px solid #1a0f22; border-radius: 7px; background: #fff; color: #d9362f; font: 400 20px 'Luckiest Guy', sans-serif; font-style: normal; rotate: 8deg; }
.kw-court .scored em { display: grid; animation: kw-stamp .35s cubic-bezier(.3, 1.8, .5, 1); }
.kw-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 8px 0; }
.kw-checks span { padding: 4px 10px; border: 2px solid #1a0f22; border-radius: 999px; font: 800 12px var(--font-body); color: #fff; animation: kw-pop .3s ease-out backwards; }
.kw-checks .yes { background: #2fa84a; }
.kw-checks .no { background: #d9362f; }
.kw-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 9px 8px 7px; }
.kw-tabs button { padding: 6px 10px; border: 2px solid #1a0f22; border-radius: 999px; background: #bfb2e0; color: #1a0f22; font: 800 12px var(--font-body); cursor: pointer; touch-action: manipulation; }
.kw-tabs button.done { background: #8fffb0; }
.kw-tabs button.done::after { content: ' ✔'; }
.kw-tabs button[aria-selected="true"] { background: #ffe45c; box-shadow: 0 0 0 3px #f28ab2; }
.kw-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; margin: 0 8px; padding: 8px; border: 3px solid #1a0f22; border-radius: 14px; background: repeating-linear-gradient(90deg, #8a5a3b 0 26px, #7a4c31 26px 30px); }
.kw-items button { height: 84px; padding: 4px; border: 3px solid #1a0f22; border-radius: 12px; background: radial-gradient(circle, #fff, #d9cdf0); box-shadow: 0 4px 0 #1a0f22; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.kw-items button svg { display: block; width: 100%; height: 100%; }
.kw-items button[aria-pressed="true"] { background: radial-gradient(circle, #fffbe0, #ffd96a); border-color: #d9498a; translate: 0 2px; box-shadow: 0 2px 0 #1a0f22; }
.kw-items.jumble button { animation: kw-jumble .4s ease-out; }
.kw-main { display: block; width: calc(100% - 20px); margin: 12px 10px 0; padding: 12px; border: 3px solid #1a0f22; border-radius: 999px; background: linear-gradient(#ffd96a, #f5a518); color: #1a0f22; box-shadow: 0 5px 0 #1a0f22; font: 400 18px 'Luckiest Guy', sans-serif; cursor: pointer; touch-action: manipulation; }
.kw-main:disabled { background: #6a5f8c; color: #d6cfec; cursor: default; }
.kw-main:not(:disabled):active { translate: 0 4px; box-shadow: 0 1px 0 #1a0f22; }
@keyframes kw-drain { to { transform: scaleX(0); } }
@keyframes kw-pop { from { scale: .88; } 60% { scale: 1.04; } }
@keyframes kw-poof { from { opacity: 0; scale: 1.3; filter: brightness(3); } }
@keyframes kw-hop { 50% { translate: 0 -10px; } }
@keyframes kw-bob { to { translate: 0 -5px; } }
@keyframes kw-shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
@keyframes kw-flicker { to { transform: scale(1.15, .85); } }
@keyframes kw-glow { to { opacity: .45; } }
@keyframes kw-stamp { from { scale: 2.4; opacity: 0; } }
@keyframes kw-mmph { 0% { opacity: 0; scale: .4; } 15%, 75% { opacity: 1; scale: 1; } 100% { opacity: 0; translate: 0 -18px; } }
@keyframes kw-fly { 0% { translate: -110% 0; } 50% { translate: 40% -30px; } 100% { translate: 180% 10px; } }
@keyframes kw-fall { to { translate: var(--x) 340px; rotate: 540deg; } }
@keyframes kw-spark { from { scale: 0; } 50% { scale: 1.4; } to { scale: 0; translate: var(--x) -30px; rotate: 120deg; } }
@keyframes kw-splat { 0% { scale: .15; translate: var(--x) 220px; rotate: -300deg; } 30% { scale: 1.15; translate: 0 0; rotate: 0deg; } 75% { scale: 1; opacity: 1; } 100% { translate: 0 40px; opacity: 0; } }
@keyframes kw-jumble { from { rotate: 18deg; scale: .7; } }
@media (max-width: 480px) { #game:has(.kw) { padding-left: 8px; padding-right: 8px; } .kw { border-width: 4px; } .kw-title { font-size: 15px; } .kw-chip { min-width: 0; } .kw-path { gap: 5px; } .kw-path i { width: 21px; height: 21px; } .kw-wizard { width: 44px; } .kw-bubble p { font-size: 12px; } .kw-stage { height: 250px; } .kw-court svg { width: 48px; } .kw-court em { width: 28px; height: 32px; font-size: 16px; right: 0; } .kw-items { gap: 4px; margin: 0 5px; padding: 5px; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); } .kw-items button { height: 70px; padding: 2px; } .kw-tabs button { padding: 5px 8px; font-size: 11px; } .kw-banner b { font-size: 27px; } .kw-mmph { left: 62%; top: 50px; } }
@media (prefers-reduced-motion: reduce) { .kw *:not(.kw-time span):not(.kw-dragon) { animation: none !important; } }
.sx-frame { position: relative; }
.sx canvas { display: block; width: 100%; height: auto; border: 5px solid #1a1020; border-radius: 22px; background: #5d6470; box-shadow: 0 0 0 4px #ffd21c, 0 0 0 8px #2f5fb3, 0 14px 26px 6px rgba(0,0,0,.5); touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sx-buttons { display: grid; gap: 10px; margin-top: 18px; }
.sx-hop { padding: 5px; border: 3px solid #1a1020; border-radius: 999px; box-shadow: 0 4px 0 #0f0a18; cursor: pointer; touch-action: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sx-hop { background: linear-gradient(#6fa8ff, #2f5fb3); color: #fff; font: 400 18px 'Luckiest Guy', sans-serif; }
.sx-hop:active { translate: 0 3px; box-shadow: 0 1px 0 #0f0a18; }
@keyframes sx-ready { to { scale: 1.04; } }
@media (max-width: 480px) { #game:has(.sx) { padding-left: 8px; padding-right: 8px; } .sx canvas { width: auto; max-width: 100%; max-height: calc(100svh - 150px); margin: 0 auto; } .sx-hop { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .sx-card { animation: none !important; } }
.sx-frame, .sx-buttons { touch-action: none; overscroll-behavior: contain; }
.sx .sx-buttons { grid-template-columns: 1fr 1fr; }
.sx-duck { padding: 5px; border: 3px solid #1a1020; border-radius: 999px; background: linear-gradient(#ff9f4a, #d9531f); color: #fff; box-shadow: 0 4px 0 #0f0a18; font: 400 18px 'Luckiest Guy', sans-serif; cursor: pointer; touch-action: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sx-hop, .sx-duck { min-height: 52px; }
.sx-duck:active { translate: 0 3px; box-shadow: 0 1px 0 #0f0a18; }
@media (max-width: 480px) { .sx canvas { max-height: calc(100svh - 170px); } }
/* Stay Out of It: menus, story panels and results, in a comic cut-out style. */
.sx-menu { position: absolute; inset: 5px; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 18px; background: rgba(14,10,34,.6); backdrop-filter: blur(3px); touch-action: pan-y; }
.sx-menu[hidden] { display: none; }
.sx-card { --tone: #ffd21c; width: 100%; max-width: 320px; max-height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 4px solid #1a1020; border-radius: 18px; background: #fff3d6; color: #1a1020; text-align: center; box-shadow: 0 0 0 3px var(--tone), 0 12px 0 3px #0f0a18; animation: sx-rise .35s cubic-bezier(.2, .9, .3, 1.3); }
.sx-card.good { --tone: #35c26b; }
.sx-card.bad { --tone: #ef5148; }
.sx-card.gold { --tone: #f5c518; }
.sx-card p { margin: 0; color: #4a3a55; font: 600 12.5px/1.4 var(--font-body); }
.sx-card p strong { color: #1a1020; }
.sx-card p.sx-kicker { padding: 2px 12px; border: 2px solid #1a1020; border-radius: 999px; background: var(--tone); color: #1a1020; font: 400 12px 'Luckiest Guy', sans-serif; letter-spacing: .5px; }
.sx-card h4 { margin: 0; color: #2f5fb3; font: 400 25px/1.1 'Luckiest Guy', sans-serif; text-shadow: 0 2px 0 rgba(26,16,32,.18); }
.sx-card h4.sx-score { color: #d9362f; font-size: 48px; -webkit-text-stroke: 2px #1a1020; }
.sx-card canvas.sx-art { display: block; flex: none; width: 100%; height: auto; max-height: none; margin: 0; border: 3px solid #1a1020; border-radius: 12px; background: #bfe0ff; box-shadow: none; cursor: inherit; }
.sx-cover { position: relative; width: 100%; }
.sx-card h4.sx-logo { position: absolute; left: 0; right: 0; top: 8px; color: #ffd21c; font-size: 38px; line-height: .98; -webkit-text-stroke: 7px #1a1020; paint-order: stroke fill; rotate: -3deg; text-shadow: none; }
.sx-comic { width: 100%; }
.sx-line { position: relative; width: 100%; min-height: 66px; margin-top: 12px; padding: 7px 12px; border: 3px solid #1a1020; border-radius: 16px; background: #fff; }
.sx-line::before { content: ''; position: absolute; left: 50%; top: -10px; width: 14px; height: 14px; border: solid #1a1020; border-width: 3px 0 0 3px; background: #fff; translate: -50% 0; rotate: 45deg; }
.sx-line b { display: block; color: #d9362f; font: 400 13px 'Luckiest Guy', sans-serif; }
.sx-card .sx-line p { color: #1a1020; font: 700 13.5px/1.35 var(--font-body); }
.sx-dots { display: flex; gap: 6px; }
.sx-dots i { width: 9px; height: 9px; border: 2px solid #1a1020; border-radius: 50%; background: #fff; }
.sx-dots i.on { background: var(--tone); }
.sx-card p.sx-goal { width: 100%; padding: 6px 10px; border: 2px dashed #1a1020; border-radius: 10px; background: #fff; color: #1a1020; font-weight: 800; }
.sx-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin: 2px 0; }
.sx-card dl div { padding: 6px 3px; border: 3px solid #1a1020; border-radius: 10px; background: #fff; }
.sx-card dt { color: #6a5a75; font: 800 9px var(--font-body); letter-spacing: .8px; text-transform: uppercase; }
.sx-card dd { margin: 2px 0 0; color: #1a1020; font: 400 16px 'Luckiest Guy', sans-serif; }
.sx-level { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; border: 3px solid #1a1020; border-radius: 14px; background: #fff; color: #1a1020; text-align: left; box-shadow: 0 5px 0 #1a1020; cursor: pointer; }
.sx-level:hover:not(:disabled) { background: #fffbe0; }
.sx-level:active:not(:disabled) { translate: 0 4px; box-shadow: 0 1px 0 #1a1020; }
.sx-level:disabled { filter: grayscale(.9); opacity: .65; cursor: default; }
.sx-card .sx-level canvas.sx-art { width: 86px; }
.sx-level span { flex: 1; min-width: 0; }
.sx-level i { display: inline-block; padding: 0 7px; border-radius: 999px; background: #2f5fb3; color: #fff; font: 800 9px/1.7 var(--font-body); font-style: normal; letter-spacing: 1px; text-transform: uppercase; }
.sx-level b { display: block; font: 400 17px/1.25 'Luckiest Guy', sans-serif; }
.sx-level small { display: block; color: #6a5a75; font: 600 10.5px/1.3 var(--font-body); }
.sx-level em { flex: none; font-style: normal; }
.sx-go { width: 100%; padding: 11px; border: 3px solid #1a1020; border-radius: 999px; background: linear-gradient(#ffe066, #ffb31f); color: #1a1020; box-shadow: 0 4px 0 #1a1020; font: 400 17px 'Luckiest Guy', sans-serif; cursor: pointer; }
.sx-go:hover { filter: brightness(1.07); }
.sx-go:active { translate: 0 3px; box-shadow: 0 1px 0 #1a1020; }
.sx-back { padding: 3px 12px; border: 0; background: none; color: #4a3a55; font: 800 12px var(--font-body); text-decoration: underline; cursor: pointer; }
@keyframes sx-rise { from { translate: 0 22px; scale: .94; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sx-card { animation: none !important; } }
.kw-hole, .kw-drop, .kw-fire, .kw-ghost { position: absolute; z-index: 2; opacity: 0; pointer-events: none; }
.kw[data-phase="judged"] .kw-hole { left: 12%; bottom: 20px; width: 26%; height: 34px; border: 5px solid #1a0f22; border-radius: 50%; background: radial-gradient(#000 55%, #35210f); }
.kw.die-trapdoor .kw-hole { opacity: 1; animation: kw-stamp .3s ease-out; }
.kw.die-trapdoor .kw-me { animation: kw-sink .5s .55s cubic-bezier(.6, -0.5, 1, 1) forwards; transform-origin: 50% 90%; }
.kw-drop { left: 9%; top: -70%; width: 32%; }
.kw-drop svg { display: block; width: 100%; }
.kw.die-chandelier .kw-drop { opacity: 1; animation: kw-crash .85s cubic-bezier(.7, 0, 1, .6) forwards; }
.kw.die-chandelier.dead .kw-me { transform-origin: 50% 94%; transform: scale(1.35, .2); }
.kw.die-dragon .kw-dragon { z-index: 4; top: 18%; }
.kw-fire { left: 8%; bottom: 28px; width: 34%; height: 62%; border-radius: 50% 50% 40% 40%; background: radial-gradient(ellipse at 50% 80%, #fff4a0, #ff9a1f 40%, #e0322b 65%, transparent 72%); }
.kw.die-dragon .kw-fire { animation: kw-burn 1.4s .9s ease-in-out; }
.kw.die-dragon.dead .kw-me svg { filter: brightness(0) drop-shadow(0 0 2px #ff9a1f); }
.kw.die-dragon.dead .kw-me { transform-origin: 50% 94%; animation: kw-ash 1.2s .5s forwards; }
.kw-ghost { left: 18%; bottom: 30px; width: 15%; }
.kw-ghost svg { display: block; width: 100%; filter: drop-shadow(0 0 8px #bfe9ff); }
.kw.dead .kw-ghost { animation: kw-rise 4s 1s ease-in-out forwards; }
.kw-court q { position: absolute; left: 50%; bottom: calc(100% - 8px); z-index: 7; width: max-content; max-width: 150px; padding: 5px 10px; border: 3px solid #1a0f22; border-radius: 14px; background: #fff; color: #1a0f22; font: 400 13px/1.2 'Luckiest Guy', sans-serif; text-align: center; translate: -50% 0; quotes: none; animation: kw-pop .3s ease-out; }
.kw-court q:empty { display: none; }
.kw.dead .kw-banner { top: 22px; }
@keyframes kw-sink { to { transform: translateY(70%) scale(.1); opacity: 0; } }
@keyframes kw-crash { to { top: 56%; } }
@keyframes kw-burn { 20%, 80% { opacity: .95; } 50% { opacity: .7; transform: scale(1.12); } }
@keyframes kw-ash { to { transform: scale(1.2, .08); opacity: .8; } }
@keyframes kw-rise { 15% { opacity: .95; } to { opacity: .85; translate: 0 -150px; } }
@media (prefers-reduced-motion: reduce) { .kw.dead .kw-ghost, .kw.die-chandelier .kw-drop { opacity: 1; } }
.flair-highness { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #f5c518; border-radius: 999px; vertical-align: 1px; background: #d9498a; color: #fff; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.kw-wizard { width: 76px; }
.kw-court { padding-top: 4px; }
.kw-court svg { width: 82px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.4)); }
.kw-court figcaption { margin-top: -4px; position: relative; }
@media (max-width: 480px) { .kw-wizard { width: 58px; } .kw-court svg { width: 62px; } }
.kw-moon { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), transparent 0 56px, rgba(190,215,255,.22) 66px, rgba(6,6,28,.97) 82px); }
.kw.moon .kw-moon { opacity: 1; }
.kw.moon .kw-stage { cursor: none; touch-action: none; }
.kw-order { position: absolute; left: 8px; right: 8px; top: 24px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 3px solid #1a0f22; border-radius: 12px; background: #fff3d0; color: #1a0f22; box-shadow: 0 0 0 3px #d9362f, 0 8px 14px rgba(0,0,0,.4); animation: kw-stamp .4s cubic-bezier(.3, 1.8, .5, 1); }
.kw-order svg { flex: none; width: 62px; height: 52px; border: 2px solid #1a0f22; border-radius: 8px; background: #fff; }
.kw-order span { font: 700 12px/1.35 var(--font-body); }
.kw-order b { display: block; color: #d9362f; font: 400 14px 'Luckiest Guy', sans-serif; }
.kw[data-phase="dress"] .kw-order:not([hidden]) ~ .kw-me { padding-top: 0; }
.kw-stage:has(.kw-order:not([hidden])) .kw-me { padding-top: 96px; }
@media (max-width: 480px) { .kw-order svg { width: 50px; height: 44px; } .kw-order span { font-size: 11px; } .kw-stage:has(.kw-order:not([hidden])) .kw-me { padding-top: 84px; } }
/* The Super Cereal Hunt */
.bp { position: relative; max-width: 460px; margin: 0 auto; overflow: hidden; padding-bottom: 12px; border: 5px solid #14101c; border-radius: 22px; background: linear-gradient(#1b2760, #101736); box-shadow: 0 0 0 4px #e8601c, 0 0 0 8px #173f36, 0 14px 0 6px #0b0a14; scroll-margin-top: 6px; }
.bp [hidden] { display: none !important; }
.bp-hud { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-bottom: 4px solid #14101c; background: repeating-linear-gradient(90deg, #8a5a2a 0 34px, #7a4c22 34px 38px); }
.bp-title { color: #ffe45c; font: 400 18px 'Luckiest Guy', sans-serif; text-shadow: 0 3px 0 #14101c, 2px 0 0 #14101c, -2px 0 0 #14101c, 0 -2px 0 #14101c; white-space: nowrap; }
.bp-chip { min-width: 70px; padding: 3px 9px; border: 2px solid #14101c; border-radius: 999px; background: #fff6e0; color: #14101c; font: 800 11px var(--font-body); text-align: center; white-space: nowrap; }
.bp-goal { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px; border-bottom: 4px solid #14101c; color: #fff; font: 400 14px 'Luckiest Guy', sans-serif; }
.bp-pips { display: flex; gap: 6px; }
.bp-pips i { width: 22px; height: 16px; border: 3px solid #14101c; border-radius: 999px; background: #55638f; }
.bp-pips i.on { background: #ffcf1f; box-shadow: 0 0 10px #ffcf1f; animation: bp-pop .35s cubic-bezier(.3, 1.8, .5, 1); }
.bp-talk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.bp-stan { flex: none; width: 62px; }
.bp-stan svg { display: block; width: 100%; filter: drop-shadow(0 4px 2px rgba(0,0,0,.45)); }
.bp-bubble { position: relative; flex: 1; min-width: 0; min-height: 64px; padding: 5px 12px 7px; border: 3px solid #14101c; border-radius: 16px; background: #fff; color: #14101c; }
.bp-bubble::before { content: ''; position: absolute; left: -9px; top: 50%; width: 13px; height: 13px; border: solid #14101c; border-width: 0 0 3px 3px; background: #fff; translate: 0 -50%; rotate: 45deg; }
.bp-bubble b { display: block; color: #2f5fb3; font: 400 12px 'Luckiest Guy', sans-serif; }
.bp-bubble p { margin: 0; font: 700 13px/1.35 var(--font-body); }
.bp-field { position: relative; border-bottom: 4px solid #14101c; line-height: 0; }
.bp-field canvas { display: block; width: 100%; height: auto; aspect-ratio: 360 / 460; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.bp-shout { position: absolute; left: 0; right: 0; top: 34%; margin: 0; color: #fff; font: 400 54px/1 'Luckiest Guy', sans-serif; text-align: center; -webkit-text-stroke: 10px #14101c; paint-order: stroke fill; pointer-events: none; opacity: 0; }
.bp-shout.go { animation: bp-shout 1s ease-out; }
.bp-shout.good { color: #ffe45c; }
.bp-shout.bad { color: #ff5a4a; }
.bp-tools { display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; padding: 0 10px; }
.bp-tools button[data-dash] { background: linear-gradient(#a6e3ff, #46a8f0); }
.bp-tools button[data-dash].empty { background: #8f9cc4; }
.bp-tools button[data-dash] em { background: #fff; }
.bp.held .bp-tools button { background: linear-gradient(#ff8a70, #e0322b); color: #fff; animation: bp-held .18s linear infinite alternate; }
.bp.held .bp-tools button[data-drop] em { height: 10px; background: #7dff8a; }
.bp.held [data-drop] .bp-bags, .bp.held [data-drop] i { display: none; }
@keyframes bp-held { to { scale: 1.03; } }
.bp-tools button { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; border: 4px solid #14101c; border-radius: 999px; background: linear-gradient(#ffe066, #ffb31f); color: #14101c; box-shadow: 0 5px 0 #14101c; font: 400 21px 'Luckiest Guy', sans-serif; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.bp-tools button:active { translate: 0 3px; box-shadow: 0 2px 0 #14101c; }
.bp-tools button.empty { background: #8f9cc4; }
.bp-tools i { display: grid; place-items: center; width: 40px; height: 40px; font-style: normal; }
.bp-tools i svg { width: 100%; height: 100%; }
.bp-bags { letter-spacing: 3px; }
.bp-tools em { position: absolute; left: 0; bottom: 0; width: 0; height: 7px; background: #e8601c; }
.bp-card-wrap { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(8,8,24,.7); backdrop-filter: blur(3px); }
@media (max-width: 480px) { .bp-tools button { gap: 5px; font-size: 16px; line-height: 1.1; } .bp-tools i { width: 28px; height: 28px; } .bp-bags { letter-spacing: 1px; font-size: 13px; } }
.bp-card { --tone: #ffcf1f; width: 100%; max-width: 320px; max-height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border: 4px solid #14101c; border-radius: 18px; background: #fff3d6; color: #14101c; text-align: center; box-shadow: 0 0 0 4px var(--tone), 0 14px 0 4px #0b0a14; animation: bp-rise .35s cubic-bezier(.2, .9, .3, 1.3); }
.bp-card.good { --tone: #35c26b; }
.bp-card.bad { --tone: #ef5148; }
.bp-card p { margin: 0; color: #4a3a55; font: 700 12.5px/1.4 var(--font-body); }
.bp-card .bp-kicker { padding: 2px 12px; border: 2px solid #14101c; border-radius: 999px; background: var(--tone); color: #14101c; font: 400 12px 'Luckiest Guy', sans-serif; }
.bp-card h4 { margin: 0; color: #a5280f; font: 400 24px/1.15 'Luckiest Guy', sans-serif; }
.bp-poster { position: relative; width: 100%; height: 150px; border: 3px solid #14101c; border-radius: 12px; background: radial-gradient(circle at 80% 22%, #fff4c2 0 14px, transparent 15px), linear-gradient(#131c4a, #3d5390 70%, #e9f4ff 71%); }
.bp-poster svg { position: absolute; inset: 4px 0 0; width: 100%; height: calc(100% - 4px); }
.bp-poster.netted svg + svg { animation: bp-drop .5s ease-in; }
.bp-card dl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; width: 100%; margin: 2px 0; }
.bp-card dl div { padding: 6px 3px; border: 3px solid #14101c; border-radius: 10px; background: #fff; }
.bp-card dt { color: #6a5a75; font: 800 9px var(--font-body); letter-spacing: .8px; text-transform: uppercase; }
.bp-card dd { margin: 2px 0 0; font: 400 16px 'Luckiest Guy', sans-serif; }
.bp-rules { display: grid; gap: 5px; width: 100%; margin: 0; padding: 0; list-style: none; }
.bp-rules li { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border: 2px solid #14101c; border-radius: 10px; background: #fff; font: 800 12px var(--font-body); text-align: left; }
.bp-rules b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8601c; color: #fff; font: 400 12px 'Luckiest Guy', sans-serif; }
.bp-card button.plain { background: #fff; }
.bp-card button { flex: none; width: 100%; padding: 11px; border: 3px solid #14101c; border-radius: 999px; background: linear-gradient(#ffe066, #ffb31f); color: #14101c; box-shadow: 0 4px 0 #14101c; font: 400 17px 'Luckiest Guy', sans-serif; cursor: pointer; }
@keyframes bp-pop { from { scale: .2; } }
@keyframes bp-shout { 0% { scale: .3; opacity: 0; } 20% { scale: 1.2; opacity: 1; } 35% { scale: 1; } 75% { opacity: 1; } 100% { translate: 0 -26px; opacity: 0; } }
@keyframes bp-rise { from { translate: 0 22px; scale: .94; opacity: 0; } }
@keyframes bp-drop { from { translate: 0 -120%; } }
.pg-card .avatar { flex: none; }
.flair-cereal { display: inline-block; width: fit-content; margin-left: 6px; padding: 1px 6px; border: 2px solid #e8601c; border-radius: 3px; vertical-align: 1px; background: #173f36; color: #fff3a0; font: 800 10px var(--font-body); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
@media (max-width: 480px) { #game:has(.bp) { padding-left: 8px; padding-right: 8px; } .bp { border-width: 4px; } .bp-title { font-size: 14px; } .bp-chip { min-width: 0; } .bp-stan { width: 48px; } .bp-bubble p { font-size: 12px; } .bp-poster { height: 108px; } .bp-shout { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) { .bp-card, .bp-pips i.on { animation: none !important; } }
/* Starting menus: a shared frame, then each challenge dresses it its own way. */
.ts { --accent: #ffd21c; --ink: #14101c; --paper: #fff6e0; --text: #2a2036; --frame: var(--accent); --name: #ffd21c; max-width: 440px; margin: 0 auto; overflow: hidden; border: 5px solid var(--ink); border-radius: 22px; background: var(--paper); color: var(--text); box-shadow: 0 0 0 4px var(--frame), 0 16px 0 4px #0b0a14; animation: ts-in .45s cubic-bezier(.2, .9, .3, 1.2); }
.ts-art { position: relative; border-bottom: 5px solid var(--ink); }
.ts-art > svg { display: block; width: 100%; aspect-ratio: 400 / 268; }
.ts-kicker { position: absolute; left: 50%; bottom: -14px; z-index: 1; translate: -50% 0; margin: 0; padding: 3px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--accent); color: var(--ink); font: 400 12px 'Luckiest Guy', sans-serif; white-space: nowrap; }
.ts-body { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 14px 14px; text-align: center; }
.ts-body p { margin: 0; }
.ts-name { order: -1; margin: 0; }
.ts-art .ts-name { position: absolute; left: 0; right: 0; top: 8px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ts-name span { color: var(--name); font: 400 34px/1 'Luckiest Guy', sans-serif; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; letter-spacing: 1px; }
.ts-line { font: 700 13px/1.45 var(--font-body); }
.ts-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; margin: 0; padding: 0; list-style: none; }
.ts-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: 800 11px/1.3 var(--font-body); }
.ts-steps i { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent); color: var(--ink); font: 400 13px 'Luckiest Guy', sans-serif; font-style: normal; }
.ts-rewards { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.ts-prize, .ts-tag { flex: 1 1 150px; display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 3px dashed var(--ink); border-radius: 12px; background: rgba(255,255,255,.55); color: var(--ink); text-align: left; }
.ts-tag { flex-direction: column; justify-content: center; gap: 3px; text-align: center; }
.ts-tag [class^="flair-"] { margin: 0; }
.ts-rewards small { display: block; font: 800 9px/1.3 var(--font-body); letter-spacing: .8px; text-transform: uppercase; opacity: .72; }
.ts-rewards b { display: block; font: 400 14px 'Luckiest Guy', sans-serif; }
.ts-go { position: relative; overflow: hidden; width: 100%; margin-top: 2px; padding: 13px; border: 4px solid var(--ink); border-radius: 999px; background: var(--accent); color: var(--ink); box-shadow: 0 6px 0 var(--ink); font: 400 23px 'Luckiest Guy', sans-serif; letter-spacing: 1px; cursor: pointer; }
.ts-go::after { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 18%; background: rgba(255,255,255,.55); transform: skewX(-20deg); animation: ts-shine 2.8s ease-in-out infinite; }
.ts-go:hover { filter: brightness(1.08); }
.ts-go:active { translate: 0 4px; box-shadow: 0 2px 0 var(--ink); }
.ts-best { font: 800 12px var(--font-body); }
.ts-best b { font: 400 15px 'Luckiest Guy', sans-serif; }

/* AWESOM-O: a green boot screen. */
.ts-awesomo { --accent: #8fffb0; --paper: #0c1f1c; --text: #bfffd6; --frame: #c4905a; --name: #e9fbff; border-radius: 8px; }
.ts-awesomo .ts-name span, .ts-awesomo .ts-line, .ts-awesomo .ts-best { font-family: ui-monospace, Consolas, monospace; }
.ts-awesomo .ts-name span { font-weight: 900; letter-spacing: 5px; }
.ts-awesomo .ts-line::before { content: '> '; }
.ts-awesomo .ts-steps { grid-template-columns: 1fr; gap: 5px; }
.ts-awesomo .ts-steps li { flex-direction: row; gap: 10px; padding: 6px 10px; border: 2px solid #2f8a62; border-radius: 4px; background: #112c26; color: #bfffd6; font-family: ui-monospace, Consolas, monospace; }
.ts-awesomo .ts-steps i { border-radius: 3px; color: #0c1f1c; }
.ts-awesomo .ts-prize, .ts-awesomo .ts-tag { border-color: #2f8a62; border-radius: 4px; background: #112c26; color: #bfffd6; }
.ts-awesomo .ts-go { border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-weight: 900; text-transform: uppercase; }

/* Dodge and deflect: a red and gold dojo poster. */
.ts-ninjastar { --accent: #ffcf3f; --paper: #8f1d17; --text: #fff0d0; --frame: #ffcf3f; border-radius: 4px; }
.ts-ninjastar .ts-name { rotate: -4deg; }
.ts-ninjastar .ts-name span { font-size: 42px; }
.ts-ninjastar .ts-steps li { border-radius: 3px; background: #fff0d0; }
.ts-ninjastar .ts-go { border-radius: 4px; background: #14101c; color: #ffcf3f; box-shadow: 0 6px 0 #ffcf3f; }
.ts-ninjastar .ts-prize, .ts-ninjastar .ts-tag { border-radius: 3px; background: #fff0d0; }

/* Coon cave: hazard tape and a toolbox. */
.ts-toolshed { --accent: #f5c518; --paper: #2a1d38; --text: #efe4ff; --frame: #f5c518; }
.ts-toolshed .ts-art { border-bottom: 12px solid transparent; border-image: repeating-linear-gradient(135deg, #f5c518 0 12px, #14101c 12px 24px) 12; }
.ts-toolshed .ts-steps li, .ts-toolshed .ts-prize, .ts-toolshed .ts-tag { border-radius: 6px; background: #d9d2e4; }
.ts-toolshed .ts-go { border-radius: 10px; }

/* Too Much Pressure!: the chalkboard menu. */
.ts-tweek { --accent: #ffb347; --paper: #243128; --text: #eef6e6; --frame: #8a5a3b; --name: #fff3d6; }
.ts-tweek .ts-body { border: 8px solid #8a5a3b; border-width: 0 8px 8px; }
.ts-tweek .ts-steps { grid-template-columns: 1fr; gap: 0; }
.ts-tweek .ts-steps li { flex-direction: row; gap: 10px; padding: 7px 4px; border: 0; border-bottom: 2px dashed rgba(238,246,230,.35); border-radius: 0; background: none; color: #eef6e6; font-size: 13px; }
.ts-tweek .ts-prize, .ts-tweek .ts-tag { border-color: rgba(238,246,230,.55); background: none; color: #eef6e6; }
.ts-tweek .ts-name span { rotate: -2deg; }
.ts-tweek .ts-go { animation: ts-jitter .18s linear infinite; }

/* Berry Blaster: a superhero comic cover. */
.ts-mintberry { --accent: #ff7ac0; --paper: #25a03c; --text: #fff; --frame: #ff7ac0; --name: #7dff8a; }
.ts-mintberry .ts-body { background: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 2px) 0 0 / 11px 11px; }
.ts-mintberry .ts-name { rotate: -5deg; }
.ts-mintberry .ts-name span { font-size: 44px; }
.ts-mintberry .ts-steps li { border-radius: 50% / 22%; }
.ts-mintberry .ts-prize, .ts-mintberry .ts-tag { background: #fff; }

/* Sword of a Thousand Truths: a fantasy game's gold-trimmed window. */
.ts-swordtruths { --accent: #f0c04a; --paper: #1b1310; --text: #f3e2bd; --frame: #a9802a; --name: #ffe29a; border-radius: 6px; }
.ts-swordtruths .ts-body { border: 3px solid #a9802a; border-width: 0 3px 3px; background: radial-gradient(circle at 50% 0, #3a2616, #1b1310 70%); }
.ts-swordtruths .ts-name span, .ts-swordtruths .ts-go, .ts-swordtruths .ts-line { font-family: Georgia, 'Times New Roman', serif; }
.ts-swordtruths .ts-name span { font-weight: 700; font-size: 28px; font-variant: small-caps; }
.ts-swordtruths .ts-line { font-style: italic; }
.ts-swordtruths .ts-steps li, .ts-swordtruths .ts-prize, .ts-swordtruths .ts-tag { border: 2px solid #a9802a; border-radius: 4px; background: #2c1e12; color: #f3e2bd; }
.ts-swordtruths .ts-go { border-radius: 4px; border-color: #ffe29a; background: linear-gradient(#a8341f, #6d1c10); color: #ffe29a; font-weight: 700; font-variant: small-caps; box-shadow: 0 6px 0 #000; }

/* 'Member?: soft, round and purple. */
.ts-memberberries { --accent: #c9a0ff; --paper: #4b2380; --text: #fff; --frame: #8b3fd9; --name: #fff; border-radius: 40px; }
.ts-memberberries .ts-name { top: 4px; }
.ts-memberberries .ts-name span { font-size: 48px; }
.ts-memberberries .ts-steps li { border-radius: 26px; }
.ts-memberberries .ts-prize, .ts-memberberries .ts-tag { border-radius: 999px; background: #fff; }

/* Stay Out of It: a snowy road sign. */
.ts-craigchullo { --accent: #ffd21c; --paper: #2f5fb3; --text: #fff; --frame: #ffd21c; }
.ts-craigchullo .ts-name { rotate: -3deg; }
.ts-craigchullo .ts-name span { font-size: 44px; }
.ts-craigchullo .ts-steps li { border-radius: 8px; }
.ts-craigchullo .ts-prize, .ts-craigchullo .ts-tag { background: #eef5fc; }

/* The Royal Wardrobe: pink velvet and gold. */
.ts-princesskenny { --accent: #ffd96a; --paper: #6a1f52; --text: #ffeaf6; --frame: #ffd96a; --name: #ffe9a8; border-radius: 60px 60px 18px 18px; }
.ts-princesskenny .ts-body { background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 18px, transparent 18px 36px); }
.ts-princesskenny .ts-name span { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 32px; }
.ts-princesskenny .ts-steps li, .ts-princesskenny .ts-prize, .ts-princesskenny .ts-tag { border-color: #ffd96a; background: #fff3fa; }

/* The Super Cereal Hunt: a night-time warning poster. */
.ts-manbearpig { --accent: #ff6a3c; --paper: #0f1736; --text: #dce8ff; --frame: #a5280f; --name: #ff4a30; }
.ts-manbearpig .ts-name span { font-size: 38px; rotate: -1.5deg; }
.ts-manbearpig .ts-name span:last-child { color: #ffe45c; rotate: 1.5deg; }
.ts-manbearpig .ts-steps li, .ts-manbearpig .ts-prize, .ts-manbearpig .ts-tag { border-radius: 6px; background: #f1e4c4; }

@keyframes ts-in { from { translate: 0 24px; scale: .94; opacity: 0; } }
@keyframes ts-shine { 0%, 55% { left: -30%; } 100% { left: 130%; } }
@keyframes ts-jitter { 25% { translate: 1px 0; } 75% { translate: -1px 0; } }
@media (max-width: 480px) { #game:has(.ts) { padding-left: 8px; padding-right: 8px; } .ts { border-width: 4px; } .ts-name span { font-size: 29px; -webkit-text-stroke-width: 6px; } .ts-ninjastar .ts-name span, .ts-mintberry .ts-name span, .ts-craigchullo .ts-name span, .ts-memberberries .ts-name span { font-size: 36px; } .ts-swordtruths .ts-name span, .ts-princesskenny .ts-name span { font-size: 24px; } .ts-body { padding: 20px 10px 10px; } .ts-steps li { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .ts, .ts-go, .ts-go::after { animation: none !important; } }
/* The end-of-game screen inside a game, dressed for each one. */
.gr-host { position: relative; }
.gr { position: absolute; inset: 0; z-index: 30; display: flex; overflow: auto; padding: 18px 12px; border-radius: inherit; background: rgba(8,6,18,.74); backdrop-filter: blur(3px); animation: gr-fade .3s ease-out; cursor: default; touch-action: manipulation; }
.gr-card { --tone: #ffd21c; --paper: #fff6e0; --text: #2a2036; --head: #a5280f; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; max-width: 320px; margin: auto; padding: 14px 14px 16px; border: 4px solid #14101c; border-radius: 20px; background: var(--paper); color: var(--text); text-align: center; box-shadow: 0 0 0 4px var(--tone), 0 12px 0 4px rgba(0,0,0,.55); animation: gr-pop .45s cubic-bezier(.2, .9, .3, 1.35); }
.gr-medal { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border: 4px solid #14101c; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--tone) 70%); font-size: 30px; line-height: 1; }
.gr-card p { margin: 0; }
.gr-card .gr-kicker { padding: 3px 12px; border: 2px solid #14101c; border-radius: 999px; background: var(--tone); color: #14101c; font: 400 12px 'Luckiest Guy', sans-serif; letter-spacing: .5px; }
.gr-card h4 { margin: 0; color: var(--head); font: 400 28px/1.1 'Luckiest Guy', sans-serif; }
.gr-card .gr-line { font: 700 12.5px/1.4 var(--font-body); }
.gr-card dl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; width: 100%; margin: 2px 0; }
.gr-card dl div { padding: 6px 3px; border: 3px solid #14101c; border-radius: 10px; background: #fff; color: #14101c; }
.gr-card dt { color: #6a5a75; font: 800 9px/1.2 var(--font-body); letter-spacing: .6px; text-transform: uppercase; }
.gr-card dd { margin: 3px 0 0; font: 400 18px 'Luckiest Guy', sans-serif; }
.gr-card .gr-record { color: var(--head); font: 400 15px 'Luckiest Guy', sans-serif; animation: gr-throb .5s ease-in-out infinite alternate; }
.gr-card button { flex: none; width: 100%; margin-top: 3px; padding: 12px; border: 4px solid #14101c; border-radius: 999px; background: var(--tone); color: #14101c; box-shadow: 0 5px 0 #14101c; font: 400 20px 'Luckiest Guy', sans-serif; letter-spacing: .5px; cursor: pointer; }
.gr-card button:hover { filter: brightness(1.08); }
.gr-card button:active { translate: 0 3px; box-shadow: 0 2px 0 #14101c; }
.gr-lost .gr-card { --tone: #ff7a5c; }
.gr-ninja .gr-card { --paper: #8f1d17; --text: #fff0d0; --head: #ffcf3f; border-radius: 6px; }
.gr-ninja.gr-won .gr-card { --tone: #ffcf3f; }
.gr-ninja .gr-card dl div, .gr-ninja .gr-card button { border-radius: 4px; }
.gr-tweek .gr-card { --paper: #243128; --text: #eef6e6; --head: #fff3d6; border-color: #8a5a3b; border-width: 8px; }
.gr-tweek.gr-won .gr-card { --tone: #ffb347; }
.gr-berry .gr-card { --paper: #25a03c; --text: #fff; --head: #fff; }
.gr-berry.gr-won .gr-card { --tone: #ff7ac0; }
.gr-berry.gr-lost .gr-card { --paper: #3a2260; }
.gr-berry .gr-card h4 { -webkit-text-stroke: 6px #14101c; paint-order: stroke fill; rotate: -3deg; }
.gr-raid .gr-card { --paper: #1b1310; --text: #f3e2bd; --head: #ffe29a; border-color: #a9802a; border-radius: 8px; }
.gr-raid.gr-won .gr-card { --tone: #f0c04a; }
.gr-raid.gr-lost .gr-card { --tone: #c8352a; --head: #ff5a4a; }
.gr-raid .gr-card h4, .gr-raid .gr-card button { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-variant: small-caps; }
.gr-raid .gr-card dl div { border-color: #a9802a; border-radius: 4px; background: #2c1e12; color: #f3e2bd; }
.gr-raid .gr-card dt { color: #c9b184; }
.gr-raid .gr-card button { border-radius: 4px; }
.gr-raid.gr-lost .gr-card button { color: #fff; }
.gr-member .gr-card { --paper: #4b2380; --text: #fff; --head: #fff; border-radius: 34px; }
.gr-member.gr-won .gr-card { --tone: #c9a0ff; }
.gr-member .gr-card dl div { border-radius: 18px; }
@keyframes gr-fade { from { opacity: 0; } }
@keyframes gr-pop { from { translate: 0 26px; scale: .85; opacity: 0; } }
@keyframes gr-throb { to { scale: 1.08; } }
@media (max-width: 480px) { .gr { padding: 12px 8px; } .gr-card { gap: 5px; padding: 10px 10px 13px; } .gr-card h4 { font-size: 23px; } .gr-medal { width: 46px; height: 46px; font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .gr, .gr-card, .gr-card .gr-record { animation: none; } }
/* The hunt's keys are only worth naming where there is a keyboard. */
.bp kbd { display: none; padding: 2px 7px; border: 2px solid #14101c; border-bottom-width: 4px; border-radius: 6px; background: #fff; color: #14101c; font: 800 10px var(--font-body); letter-spacing: .5px; text-transform: uppercase; }
.bp .bp-keys { display: none; }
@media (hover: hover) and (pointer: fine) { .bp kbd { display: inline-block; } .bp .bp-keys { display: block; } .bp-tools button { gap: 7px; font-size: 17px; white-space: nowrap; } .bp-tools i { width: 28px; height: 28px; } .bp.held .bp-tools button[data-drop] kbd { display: none; } }

/* ---- The Playground's schoolyard look (everything here stays inside the Playground) ---- */
#playground { gap: 34px; padding-top: 22px; }
#playground > section, #playground > .pg-top { margin: 0; }
.pg-hero { position: relative; overflow: hidden; height: clamp(320px, 38vw, 430px); border: 5px solid #0b0a14; border-radius: 24px; background: #eef6ff; box-shadow: 0 0 0 4px #f5c518, 0 12px 0 4px #0b0a14; }
.pg-hero > svg { display: block; width: 100%; height: 100%; }
.pg-hero h1 { position: absolute; left: 0; right: 0; top: 12px; margin: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; line-height: 1; }
.pg-hero h1 small { font-size: clamp(20px, 3vw, 30px); color: #fff; -webkit-text-stroke: 6px #14101c; paint-order: stroke fill; rotate: -4deg; }
.pg-hero h1 span { display: flex; }
.pg-hero h1 i { display: inline-block; font-style: normal; font-size: clamp(36px, 8.4vw, 90px); color: #ffd21c; -webkit-text-stroke: clamp(7px, 1.2vw, 12px) #14101c; paint-order: stroke fill; text-shadow: 0 6px 0 #14101c; rotate: -5deg; animation: pg-bob 3.2s ease-in-out infinite; }
.pg-hero h1 i:nth-child(even) { color: #ff6a3c; rotate: 5deg; animation-delay: -1.6s; }
.pg-hero h1 i:nth-child(3n) { color: #5fdc6a; animation-delay: -.8s; }
.pg-jump { position: absolute; left: 8px; right: 8px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pg-jump a { padding: 6px 12px; border: 3px solid #14101c; border-radius: 999px; background: #fff6e0; color: #14101c; font: 400 14px 'Luckiest Guy', sans-serif; box-shadow: 0 3px 0 #14101c; transition: translate .15s, background .15s; }
.pg-jump a:hover { translate: 0 -3px; background: #ffd21c; color: #14101c; }
.pg-snow { position: absolute; inset: 0; pointer-events: none; opacity: .85; background-image: radial-gradient(circle, #fff 0 2.5px, transparent 3.5px), radial-gradient(circle, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle, #fff 0 2px, transparent 3px); background-size: 130px 120px, 90px 80px, 170px 160px; background-position: 0 0, 40px 20px, 90px 60px; animation: pg-snow 14s linear infinite; }
.pg-swing { animation: pg-swing 2.8s ease-in-out infinite alternate; }
.pg-swing.b { animation-duration: 3.4s; animation-direction: alternate-reverse; }
.pg-cloud { animation: pg-drift 18s ease-in-out infinite alternate; }
.pg-cloud.b { animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes pg-bob { 50% { translate: 0 -6px; } }
@keyframes pg-snow { to { background-position: 0 240px, 40px 260px, 90px 380px; } }
@keyframes pg-swing { from { rotate: -9deg; } to { rotate: 9deg; } }
@keyframes pg-drift { from { translate: -30px 0; } to { translate: 40px 0; } }

/* Section signs */
#playground .pg-top h2, #playground .pg-trophies > h2, #playground .pg-games > h2 { width: fit-content; max-width: 100%; margin: 0 auto 14px; padding: 8px 18px 5px; border: 3px solid #14101c; border-radius: 10px; background: #ffd21c; color: #14101c; font: 400 clamp(18px, 2.4vw, 25px)/1.25 'Luckiest Guy', sans-serif; text-align: center; box-shadow: 0 5px 0 #14101c; rotate: -1.2deg; scroll-margin-top: 90px; }
#playground .pg-top > .pg-panel, #playground > .pg-trophies { border: 5px solid #0b0a14; border-radius: 22px; box-shadow: 0 10px 0 #0b0a14; padding: 18px; }

/* Wendy's classroom: a chalkboard on the classroom wall */
#playground .pg-top > .pg-class { display: flex; flex-direction: column; background: linear-gradient(transparent calc(100% - 44px), #0b0a14 0 calc(100% - 40px), #9a6638 0), repeating-linear-gradient(90deg, #8fc7b8 0 34px, #84bdae 34px 68px); }
#playground .pg-top .pg-class h2 { background: #f28ab2; }
.pg-class .pg-lesson { flex: 1; }
.pg-class #fact { align-self: center; padding: 12px 14px; margin-bottom: 40px; border: 8px solid #b57a45; border-radius: 10px; background: radial-gradient(ellipse at 30% 20%, #3a6b55, #23493a 70%); color: #f2f7ee; box-shadow: 0 0 0 3px #14101c, inset 0 0 0 3px #14101c; }
.pg-class .pg-claim { font: 400 clamp(19px, 2.2vw, 23px)/1.35 'Luckiest Guy', sans-serif; letter-spacing: .03em; text-align: center; text-shadow: 0 0 6px rgba(255,255,255,.35); }
.pg-class .pg-note, .pg-class .empty { color: #cfe3d6; text-align: center; }
.pg-class .pg-stickers { justify-content: center; }
.pg-class .pg-stickers li { border-color: #cfe3d6; color: #cfe3d6; }
.pg-class .pg-stickers li.right, .pg-class .pg-stickers li.wrong { border-color: #fff; color: #fff; rotate: -8deg; }
.pg-class .pg-stickers li.now { border-color: #ffe45c; color: #ffe45c; animation: pg-pulse 1.4s ease-in-out infinite; }
.pg-class .pg-actions .btn { min-width: 104px; border: 3px solid #14101c; border-radius: 999px; font: 400 19px 'Luckiest Guy', sans-serif; box-shadow: 0 4px 0 #14101c; transition: translate .12s, rotate .12s; }
.pg-class .pg-actions .btn:hover { translate: 0 -2px; rotate: -2deg; }
.pg-class .pg-wendy { width: 134px; filter: drop-shadow(0 5px 0 rgba(0,0,0,.25)); }
@keyframes pg-pulse { 50% { scale: 1.18; } }

/* Trophy shelf: a wooden cabinet */
#playground > .pg-trophies { background: radial-gradient(ellipse at 50% 0, rgba(255,226,140,.4), transparent 65%), repeating-linear-gradient(90deg, #5a3620 0 46px, #503019 46px 50px); }
.pg-trophies .pg-shelf { row-gap: 20px; }
.pg-trophies .pg-shelf li { border-bottom: 10px solid #c98d54; box-shadow: 0 4px 0 #14101c; padding-bottom: 6px; }
.pg-trophies .pg-shelf li .avatar { transition: scale .2s, rotate .2s; }
.pg-trophies .pg-shelf li:hover .avatar { scale: 1.15; rotate: -6deg; }
.pg-trophies .pg-shelf li.won .avatar { box-shadow: 0 0 0 3px #ffd21c, 0 0 16px 4px rgba(255,214,60,.65); }
.pg-trophies .pg-shelf li.locked .avatar { border-color: #2c1a0e; background: rgba(0,0,0,.4); }
.pg-trophies .pg-note { color: #ffeccc; }
.pg-cup { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; border-bottom: 10px solid #c98d54; box-shadow: 0 4px 0 #14101c; text-align: center; }
.pg-cup svg { width: 108px; }
.pg-cup .gold { fill: #241409; } .pg-cup .base { fill: #3a2414; }
.pg-cup svg > path { display: none; }
.pg-cup p { order: -1; margin: 0 0 8px; color: #ffeccc; }
.pg-cup b { display: block; font: 400 18px 'Luckiest Guy', sans-serif; }
.pg-cup small { font-size: 12px; opacity: .85; }
.pg-cup.won .gold { fill: #ffd21c; } .pg-cup.won .base { fill: #8a4b2a; }
.pg-cup.won svg > path { display: inline; }
.pg-cup.won svg { filter: drop-shadow(0 0 12px rgba(255,214,60,.85)); animation: pg-bob 3s ease-in-out infinite; }
.pg-cup.won b { color: #ffd21c; }
.pg-progress { height: 14px; margin-top: 18px; overflow: hidden; border: 3px solid #14101c; border-radius: 999px; background: #2c1a0e; }
.pg-progress span { display: block; height: 100%; background: linear-gradient(90deg, #f2a31c, #ffe45c); }

/* The debate: two corners and a VS badge */
#playground .pg-debate { background: repeating-conic-gradient(from 0deg at 50% 0, #3a2560 0 6deg, #33205a 6deg 12deg); }
#playground .pg-debate > h2 { background: #ff6a3c; }
.pg-debate .pg-claim { color: #fff; font: 400 clamp(19px, 2.6vw, 27px)/1.35 'Luckiest Guy', sans-serif; text-align: center; }
.pg-debate .pg-sides { position: relative; gap: 18px; }
.pg-debate .pg-sides::after { content: "VS"; position: absolute; left: 50%; top: 34px; translate: -50% 0; display: grid; place-items: center; width: 50px; height: 50px; border: 4px solid #14101c; border-radius: 50%; background: #ffd21c; color: #14101c; font: 400 22px 'Luckiest Guy', sans-serif; box-shadow: 0 4px 0 #14101c; rotate: -8deg; pointer-events: none; }
.pg-debate .pg-side { border: 4px solid #14101c; border-radius: 18px; background: linear-gradient(#d8f3d6, #a9dfa8); color: #142616; box-shadow: 0 6px 0 #14101c; }
.pg-debate .pg-side.cartman { background: linear-gradient(#ffe0d8, #ffb3a6); color: #2e1210; }
.pg-debate .pg-side.mine { border-color: #ffd21c; box-shadow: 0 0 0 3px #14101c, 0 0 22px 4px rgba(255,214,60,.7); }
.pg-debate .pg-side h3 { font: 400 clamp(15px, 2vw, 20px)/1.3 'Luckiest Guy', sans-serif; }
.pg-debate .pg-side .pg-note { color: inherit; }
.pg-debate .pg-head { width: 150px; transition: rotate .2s, scale .2s; }
.pg-debate .pg-side:hover .pg-head { rotate: -5deg; scale: 1.08; }
.pg-debate .pg-side.cartman:hover .pg-head { rotate: 5deg; }
.pg-debate .pg-bar { height: 16px; border: 3px solid #14101c; border-radius: 999px; background: #fff; }
.pg-debate .pg-side .btn { border: 3px solid #14101c; border-radius: 999px; background: #2e8f45; color: #fff; font: 400 16px 'Luckiest Guy', sans-serif; box-shadow: 0 4px 0 #14101c; }
.pg-debate .pg-side.cartman .btn { background: #d9362f; }
.pg-debate #debate > .pg-note, .pg-debate .empty { color: #ddd2f5; text-align: center; }

/* Challenge cards */
.pg-games > .pg-note { text-align: center; margin: 0 0 22px; }
#playground .pg-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 20px; }
#playground .pg-card { flex: 0 1 340px; min-width: min(100%, 280px); overflow: hidden; padding: 0 0 18px; border: 5px solid #0b0a14; border-radius: 22px; background: linear-gradient(color-mix(in srgb, var(--a) 26%, #242c34), #242c34 75%); outline: 0; box-shadow: 0 0 0 3px var(--a), 0 10px 0 3px #0b0a14; transition: translate .2s, rotate .2s; }
#playground .pg-card:hover { translate: 0 -6px; rotate: -.7deg; }
#playground .pg-card:nth-child(even):hover { rotate: .7deg; }
.pg-art { position: relative; align-self: stretch; aspect-ratio: 400 / 240; overflow: hidden; border-bottom: 5px solid #0b0a14; }
.pg-art > svg { display: block; width: 100%; height: 100%; transition: scale .35s; }
.pg-card:hover .pg-art > svg { scale: 1.08; }
.pg-stamp { position: absolute; right: 10px; top: 10px; padding: 3px 12px 0; border: 4px solid #fff; border-radius: 10px; background: #25a03c; color: #fff; font: 400 20px 'Luckiest Guy', sans-serif; box-shadow: 0 0 0 3px #14101c; rotate: 9deg; }
#playground .pg-card > .avatar { position: relative; z-index: 1; margin-top: -40px; box-shadow: 0 0 0 4px #0b0a14; }
#playground .pg-card h3 { padding: 0 14px; color: #fff; font: 400 23px/1.2 'Luckiest Guy', sans-serif; text-shadow: 0 3px 0 #0b0a14; }
#playground .pg-card p { padding: 0 16px; }
#playground .pg-card .pg-prize { color: var(--text-soft); }
#playground .pg-card .btn { align-self: stretch; margin: auto 16px 0; padding: 12px; border: 3px solid #0b0a14; border-radius: 999px; background: var(--a); color: #14101c; font: 400 20px 'Luckiest Guy', sans-serif; box-shadow: 0 5px 0 #0b0a14; }
#playground .pg-card .btn:hover { filter: brightness(1.12); }
#playground .pg-card .btn:active { translate: 0 4px; box-shadow: 0 1px 0 #0b0a14; }
#playground .pg-games > #game { margin-top: 38px; }
#game > h3 { margin-top: 0; font: 400 25px/1.2 'Luckiest Guy', sans-serif; color: #ffd21c; text-align: center; }

@media (max-width: 480px) {
  .pg-jump { gap: 5px; left: 4px; right: 4px; }
  .pg-jump a { font-size: 11px; padding: 5px 8px; }
  #playground .pg-top > .pg-panel, #playground > .pg-trophies { padding: 14px 10px; }
  .pg-class .pg-wendy { width: 104px; }
  .pg-class #fact { align-self: stretch; }
  .pg-debate .pg-sides { gap: 8px; }
  .pg-debate .pg-sides::after { width: 40px; height: 40px; font-size: 17px; top: 26px; }
  .pg-debate .pg-head { width: 96px; }
  .pg-debate .pg-side .btn { padding: 9px 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pg-hero h1 i, .pg-snow, .pg-swing, .pg-cloud, .pg-class .pg-stickers li.now, .pg-cup.won svg { animation: none !important; } #playground .pg-card, .pg-art > svg, .pg-debate .pg-head, .pg-trophies .pg-shelf li .avatar { transition: none; } #playground .pg-card:hover { translate: none; rotate: none; } .pg-card:hover .pg-art > svg { scale: 1; } }
.pg-q { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; padding: 0; vertical-align: middle; border: 2px solid #0b0a14; border-radius: 7px; background: #fff6e0; color: #14101c; font: 400 15px/1 'Luckiest Guy', sans-serif; box-shadow: 0 2px 0 #0b0a14; cursor: pointer; }
.pg-q[aria-expanded="true"] { background: #ffd21c; }
#playground .pg-card p.pg-how { align-self: stretch; margin: 0 16px; padding: 8px 10px; border: 2px dashed var(--a); border-radius: 10px; background: rgba(0,0,0,.28); color: #fff; font-size: 13px; }

/* ======================================================================
   Home redesign: grouped header menu, short welcome card, Play cards,
   compact Valmer Times, Kyle card, small Tegridy card, phone swipe rows
   ====================================================================== */

/* ---- Header: grouped menu for signed-in members (computers) ---- */
.nav-grp { position: relative; }
.nav-grp-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.nav-grp-btn i { font-style: normal; font-size: 10px; opacity: .7; }
.nav-grp-menu { display: none; }
@media (min-width: 901px) {
  .site-header.has-user-menu .header-inner { flex-wrap: nowrap; gap: 20px; padding-top: 9px; padding-bottom: 9px; }
  .site-header.has-user-menu .header-right { flex: 1 1 auto; margin-left: 0; gap: 10px; min-width: 0; }
  .site-header.has-user-menu .header-search { flex: 1 1 auto; max-width: 360px; height: 40px; margin-left: auto; margin-right: auto; }
  .site-header.has-user-menu .header-search input[type="search"] { width: 100%; }
  .site-header.has-user-menu .header-right .icon-btn { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 10px; }
  .site-header.has-user-menu .user-wrap { margin-left: 4px; }
  .main-nav-grouped { flex-wrap: nowrap; gap: 2px; }
  .main-nav-grouped > a { padding: 9px 14px; border-radius: 999px; }
  .main-nav-grouped > a:hover, .nav-grp-btn:hover, .nav-grp:hover > .nav-grp-btn, .nav-grp:focus-within > .nav-grp-btn { background: #1c2130; color: #fff; }
  .nav-grp.is-current > .nav-grp-btn { color: var(--green); }
  .nav-grp-menu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 210px; margin-top: 6px; padding: 8px; flex-direction: column; gap: 2px; background: #171a22; border: 3px solid #000; border-radius: 12px; box-shadow: 4px 4px 0 #000; }
  .nav-grp-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav-grp:hover > .nav-grp-menu, .nav-grp:focus-within > .nav-grp-menu { display: flex; }
  .nav-grp-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: #dfe3ec; }
  .nav-grp-menu a:hover { background: #232a3b; color: #fff; }
  .nav-grp-menu a[aria-current="page"] { color: var(--green); }
  /* the account menu matches */
  .site-header .user-toggle[aria-expanded="true"] { background: #1c2130; color: #fff; border-radius: 8px; }
  .user-menu { top: calc(100% + 8px); background: #171a22; border: 3px solid #000; border-radius: 12px; box-shadow: 4px 4px 0 #000; padding: 8px; }
  .user-menu li a, .user-menu li .link-button { color: #dfe3ec; border-radius: 8px; padding: 6px 14px; }
  .user-menu li a:hover, .user-menu li a:focus-visible, .user-menu li .link-button:hover, .user-menu li .link-button:focus-visible { background: #232a3b; color: #fff; }
  .user-menu .um-group + .um-group { border-top-color: rgba(255,255,255,.12); }
}

/* ---- Home: welcome card ---- */
.hero.hero-slim { background: none; overflow: visible; }
.hero-slim .hero-inner { padding-top: 22px; padding-bottom: 0; text-align: left; }
.hero-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 170px; padding: 22px 28px; border: 4px solid #1a1a1a; border-radius: 10px; box-shadow: 4px 4px 0 #000; background: linear-gradient(120deg, #16264a, #2b5d9a 65%, #7fb6e6); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card > .hero-mountains, .hero-card > .hero-snow { position: absolute; z-index: 0; }
.hero-card > .hero-mountains { height: 104px; }
.hero-card .hero-mountains path:nth-child(1) { fill: #4b6cae; }
.hero-card .hero-mountains path:nth-child(2), .hero-card .hero-mountains path:nth-child(3) { fill: #eef6ff; }
.hero-card h1 { margin: 0 0 4px; font-size: clamp(24px, 3.6vw, 40px); line-height: 1.05; color: #fff; text-shadow: 3px 3px 0 #000; }
.hero-card p { margin: 0 0 14px; max-width: none; font-size: 15px; font-weight: 600; color: #e6f0ff; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.hero-card .hero-actions { justify-content: flex-start; flex-wrap: nowrap; gap: 10px; }
.hero-btn { padding: 6px 14px; border: 1px solid rgba(0,0,0,.65); border-radius: 6px; color: #14101c; font-size: 15px; line-height: 1.25; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.hero-btn:hover { filter: brightness(1.06); }
.hero-btn-green { background: #3fb950; }
.hero-btn-yellow { background: #ffd21c; }
.hero-card .aired { max-width: 250px; margin-bottom: 20px; padding: 11px 14px; background: #ffd21c; color: #2a1c0e; border-radius: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 8px 16px rgba(0,0,0,.35); transform: rotate(2.5deg); font-size: 13px; line-height: 1.35; }
.hero-card .aired .cut { margin-bottom: 2px; font-size: 16px; color: #2a1c0e; }
.hero-card .aired b { color: #2a1c0e; }
.hero-card .aired a { color: #7a1d17; font-weight: 700; text-decoration: underline; }
.aired-chip { display: none; }

/* ---- Home: layout ---- */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.home-main, .home-side { display: grid; gap: 32px; min-width: 0; align-content: start; }
.home-main > *, .home-side > * { min-width: 0; }

/* ---- Home: Stan's Picks as a normal section ---- */
.stan6 .section-head { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 10px; }
.stan6 .stan-hat { width: 34px; flex: 0 0 34px; }
.stan6-sub { font-size: 12.5px; color: var(--muted); }
.stan6 .stan-quote { flex: 0 1 auto; margin: 0 0 0 auto; padding: 0 2px; font-size: 12.5px; font-weight: 500; font-style: italic; background: none; border: 0; box-shadow: none; color: #aeb5c4; }
.stan6 .stan-quote::before { display: none; }
.stan6 .stan-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }
.stan6 .stan-reason { color: var(--yellow); font-weight: 700; }
.stan6 .stan-actions button { border: 1px solid rgba(0,0,0,.65); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); background: rgba(0,0,0,.3); }
.stan6 .stan-actions .stan-save { background: #c8332e; }
.stan6 .stan-actions .stan-save[aria-pressed="true"] { background: #2e8b45; }

/* ---- Home: Play cards ---- */
.home-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-games > * { margin: 0; min-height: 172px; padding: 18px 18px 16px; }
.home-games .club-ad { background: repeating-linear-gradient(var(--club-paper) 0 27px, var(--club-line) 27px 28px); }
.home-games .club-ad::before, .home-games .cage-ad::before { display: none; }
.home-games .club-ad-head { padding-right: 0; }
.home-games .club-ad-title, .home-games .cage-ad-title, .home-games .kenny-ad-title, .playground-card-title { font-size: 22px; }
.home-games .club-ad-text, .home-games .cage-ad-text, .home-games .kenny-ad-text, .playground-card-text { font-size: 13.5px; }
.home-games .club-ad-cta, .home-games .cage-ad-cta, .home-games .kenny-ad-cta, .playground-card-cta { padding: 6px 14px; border: 1px solid rgba(0,0,0,.65); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); font-size: 15px; line-height: 1.25; }
.playground-card { position: relative; display: flex; flex-direction: column; gap: 8px; border-radius: 8px; border: 4px solid #1a1a1a; box-shadow: inset 0 0 0 2px #ff7b9c, 4px 4px 0 #000; color: #f1efe4; transition: transform .15s;
  background: radial-gradient(ellipse at 28% 12%, rgba(255,255,255,.12), transparent 55%), radial-gradient(rgba(255,255,255,.16) 1.6px, transparent 2.2px) 0 0 / 16px 16px, #22345a; }
.playground-card:hover { color: #f1efe4; transform: scale(1.01); }
.playground-card-head { display: flex; gap: 10px; align-items: center; }
.playground-card-logo { width: 48px; flex: 0 0 48px; transform: rotate(-8deg); filter: drop-shadow(2px 2px 0 rgba(0,0,0,.55)); }
.playground-card-logo svg { display: block; width: 100%; height: auto; }
.playground-card-title { line-height: 1.05; background: linear-gradient(180deg, #fff7c2, #ffd21c 55%, #f2a23a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 2px 0 #000); }
.playground-card-text { font-weight: 600; color: #dfe6d6; }
.playground-card-cta { align-self: flex-start; margin-top: auto; background: #ffd21c; color: #14101c; }

/* ---- Home: The Valmer Times (compact) ---- */
.ht { background: #efe8d6; color: #26231d; font-family: Georgia, 'Times New Roman', serif; border: 4px solid #1a1a1a; border-radius: 8px; box-shadow: 4px 4px 0 #000; overflow: hidden; }
.ht a { color: #26231d; }
.ht-mast { text-align: center; padding: 12px 14px 8px; border-bottom: 4px double #26231d; }
.ht-name { display: block; font-size: 26px; font-weight: 700; text-decoration: none; }
.ht-mast p { margin: 0; font-size: 11px; font-style: italic; }
.ht-lead { padding: 12px 16px; border-bottom: 1px solid #26231d; }
.ht-lead h2 { margin: 0 0 4px; font: 700 19px/1.15 Georgia, 'Times New Roman', serif; color: #26231d; }
.ht-lead h2 a { text-decoration: none; }
.ht-lead p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.4; }
.ht-lead p.ht-by { font-size: 11px; font-style: italic; line-height: 1.3; }
.ht-more { font-weight: 700; font-size: 13px; }
.ht-brief { display: block; padding: 9px 16px; border-bottom: 1px solid #b9ae92; text-decoration: none; }
.ht-brief:last-child { border-bottom: 0; }
.ht-brief small { display: block; font: 700 10px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8a5a00; }
.ht-brief b { font-size: 15px; }
.ht-brief span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: #4a4436; }
.ht-brief:hover { background: #e6dcc0; }
.ht-kyle { display: none; }
.ht-head { display: none; }

/* ---- Home: Kyle card, with a Critic's corner tab ---- */
.kyle-wrap { position: relative; padding-top: 36px; margin-top: -20px; }
.kyle-tab { position: absolute; top: 0; left: 6px; z-index: 1; padding: 4px 12px; background: #efe8d6; color: #26231d; font: 700 10.5px Georgia, 'Times New Roman', serif; letter-spacing: .14em; text-transform: uppercase; border: 3px solid #1a1a1a; border-radius: 6px; box-shadow: 2px 2px 0 rgba(0,0,0,.45); transform: rotate(-1.2deg); }
.kyle-ad { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 16px; border-radius: 8px; border: 4px solid #1a1a1a; box-shadow: inset 0 0 0 2px #f2711c, 4px 4px 0 #000; color: #eaf6ee;
  background: radial-gradient(ellipse at 85% 10%, rgba(255,255,255,.14), transparent 55%), repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 3px, transparent 3px 10px), linear-gradient(160deg, #2b8a4a, #18603a); }
.kyle-ad-head { display: flex; gap: 10px; align-items: center; }
.kyle-ad-logo { width: 52px; flex: 0 0 52px; transform: rotate(-8deg); filter: drop-shadow(2px 2px 0 rgba(0,0,0,.55)); }
.kyle-ad-logo svg { display: block; width: 100%; height: auto; }
.kyle-ad-title { font-size: 23px; line-height: 1.05; background: linear-gradient(180deg, #f2ffd9, #9be37f 55%, #ffb066); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 2px 0 #000); }
.kyle-ad-ep { font-size: 13px; color: #d3eddc; }
.kyle-ad-ep a { color: #fff; }
.kyle-ad-ep .rating { color: #ffe066; letter-spacing: 1px; }
.kyle-ad-text { margin: 0; font-size: 14px; font-style: italic; line-height: 1.4; color: #fff; }
.kyle-ad-note { margin: 0; font-size: 12.5px; color: #cfe8d8; }
.kyle-ad-note b { color: #fff; }
.kyle-ad-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin-top: 4px; }
.kyle-ad-cta { padding: 6px 14px; background: #f2711c; color: #2b1300; border: 1px solid rgba(0,0,0,.65); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); font-size: 15px; line-height: 1.25; }
.kyle-ad-cta:hover { color: #2b1300; filter: brightness(1.06); }
.kyle-ad-more { font-size: 12.5px; text-decoration: underline; color: #cfe8d8; }

/* ---- Home: smaller Tegridy card (plant, days, title, Randy) ---- */
.home-streak .streak-card { padding: 10px 14px; gap: 12px; }
.home-streak .streak-plant { width: 52px; }
.home-streak .streak-num { min-width: 48px; }
.home-streak .streak-num b { font-size: 32px; }
.home-streak .streak-text .streak-best { display: none; }
.home-streak .streak-text strong { font-size: 15px; }
.home-streak .streak-text p { font-size: 12.5px; }

/* ---- Home on phones: shorter, swipeable ---- */
@media (max-width: 900px) {
  .home-cols { display: flex; flex-direction: column; gap: 28px; }
  .home-main, .home-side { display: contents; }
  .hm-play { order: 2; } .hm-news { order: 3; } .ht-head { display: flex; } .ht-brief span { display: none; } .hm-pop { order: 4; } .hm-rev { order: 5; } .hm-act { order: 7; }
  .kyle-wrap, .home-streak { display: none; }
  .ht-kyle { display: block; }
  .stan6 .stan-quote { display: none; }
}
@media (max-width: 700px) {
  .hero-slim .hero-inner { padding-top: 14px; }
  .hero-card { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 14px 14px 24px; }
  .hero-card h1 { font-size: 21px; }
  .hero-card p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.35; }
  .hero-btn { padding: 4px 10px; font-size: 12.5px; }
  .hero-card .aired { display: none; }
  .aired-chip { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 1px 6px; margin: 2px 0 0; padding: 3px 9px; background: #ffd21c; color: #2a1c0e; border-radius: 8px; box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 6px 12px rgba(0,0,0,.3); font-size: 10.5px; line-height: 1.25; transform: rotate(-.8deg); }
  .aired-chip .cut { font-size: 11px; }
  .aired-chip b { margin-left: 2px; color: #7a1d17; text-decoration: underline; }
  .stan6 .stan6-sub { display: none; }
  .stan6 .stan-grid, .home-games, .hm-pop .ep-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -24px; padding: 0 24px 8px; scroll-padding: 0 24px; scrollbar-width: none; }
  .stan6 .stan-grid > * { flex: 0 0 150px; scroll-snap-align: start; }
  .home-games > * { flex: 0 0 172px; min-height: 0; scroll-snap-align: start; }
  .home-games .club-ad-title, .home-games .cage-ad-title, .home-games .kenny-ad-title, .playground-card-title { font-size: 20px; }
  .hm-pop .ep-grid > * { flex: 0 0 160px; scroll-snap-align: start; }
  .hm-rev .review:nth-child(n+4) { display: none; }
  /* a shorter newspaper: headline + two lines, then Sports | Horoscopes | Kyle in one row */
  .ht { display: flex; flex-wrap: wrap; }
  .ht-mast { flex: 0 0 100%; padding: 8px 12px 6px; }
  .ht-name { font-size: 21px; }
  .ht-mast p { display: none; }
  .ht-lead { flex: 0 0 100%; padding: 10px 14px; }
  .ht-lead h2 { font-size: 17px; }
  .ht-lead .ht-by { display: none; }
  .ht-lead p:not(.ht-by) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; margin: 0 0 4px; }
  .ht-brief { flex: 1 1 0; min-width: 0; padding: 8px 10px; border-bottom: 0; border-right: 1px solid #b9ae92; }
  .ht-brief:last-child { border-right: 0; }
  .ht-brief b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.2; }
  .ht-brief span { display: none; }
}

@media (max-width: 900px) {
  #home > *, .home-cols { min-width: 0; max-width: 100%; }
  .hm-play, .hm-news, .ht, .hm-pop, .hm-rev, .hm-act { min-width: 0; max-width: 100%; }
}

/* ---- Home: while a signed-in visit loads, show an empty welcome card instead of the landing hero ---- */
html.has-session .hero:not(.hero-slim) { background: none; overflow: visible; }
html.has-session .hero:not(.hero-slim) .hero-mountains { display: none; }
html.has-session .hero:not(.hero-slim) .hero-inner { padding-top: 22px; padding-bottom: 0; }
html.has-session .hero:not(.hero-slim) .hero-inner > * { display: none; }
html.has-session .hero:not(.hero-slim) .hero-inner::before { content: ""; display: block; min-height: 170px; border: 4px solid #1a1a1a; border-radius: 10px; box-shadow: 4px 4px 0 #000; background: linear-gradient(120deg, #16264a, #2b5d9a 65%, #7fb6e6); }
@media (max-width: 700px) {
  html.has-session .hero:not(.hero-slim) .hero-inner { padding-top: 14px; }
  html.has-session .hero:not(.hero-slim) .hero-inner::before { min-height: 160px; }
}

/* ---- Home: Stan's Picks, cleaner cards ---- */
.stan6 .stan-grid { gap: 18px 16px; }
.stan6 .stan-pick { gap: 7px; }
.stan6 .stan-pick .ep-thumb { aspect-ratio: 16 / 9; padding: 6px; }
.stan6 .stan-pick .ep-card-title { font-size: 12.5px; }
.stan6 .stan-reason { flex: 0 0 auto; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.35; font-weight: 500; color: var(--text-soft); }
.stan6 .stan-actions { justify-content: space-between; align-items: center; gap: 6px; }
.stan6 .stan-actions button { flex: 0 0 auto; box-shadow: none; }
.stan6 .stan-actions .stan-save { padding: 4px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: transparent; color: var(--white); font-size: 12px; }
.stan6 .stan-actions .stan-save:hover { border-color: var(--yellow); color: var(--yellow); filter: none; }
.stan6 .stan-actions .stan-save[aria-pressed="true"] { background: rgba(63,185,80,.16); border-color: #3fb950; color: #7be08f; }
.stan6 .stan-actions .stan-hide { flex: 0 0 26px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 12px; }
.stan6 .stan-actions .stan-hide:hover { background: rgba(255,255,255,.1); color: var(--white); filter: none; }
@media (max-width: 700px) {
  .stan6 .stan-grid { gap: 12px; }
  .stan6 .stan-grid > * { flex: 0 0 164px; }
}

/* ---- Phone header (signed in): bigger logo, even square buttons ---- */
@media (max-width: 900px) {
  .site-header.has-user-menu .header-inner { column-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .site-header.has-user-menu .header-right { gap: 6px; }
  .site-header.has-user-menu .header-right .icon-btn, .site-header.has-user-menu .menu-toggle, .site-header.has-user-menu .header-inner > .search-toggle { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
  .site-header.has-user-menu .logo-letter { font-size: 26px !important; padding: 4px 5px 2px; }
}
@media (max-width: 480px) {
  .site-header.has-user-menu .header-inner { padding-left: 14px; padding-right: 14px; }
  .site-header.has-user-menu .logo-letter { font-size: 25px !important; padding: 3px 4px 1px; }
  .site-header.has-user-menu .header-right .icon-btn, .site-header.has-user-menu .menu-toggle, .site-header.has-user-menu .header-inner > .search-toggle { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .site-header.has-user-menu .header-right { gap: 5px; }
  .site-header.has-user-menu .header-right .icon-btn, .site-header.has-user-menu .menu-toggle, .site-header.has-user-menu .header-inner > .search-toggle { width: 38px; height: 38px; }
}
@media (max-width: 365px) {
  .site-header.has-user-menu .logo-letter { font-size: 23px !important; }
}
@media (max-width: 340px) {
  .site-header.has-user-menu .logo-letter { font-size: 19px !important; padding: 3px 3px 1px; }
  .site-header.has-user-menu .header-right .icon-btn, .site-header.has-user-menu .menu-toggle, .site-header.has-user-menu .header-inner > .search-toggle { width: 34px; height: 34px; }
}

/* ====================== Book Club page (club6): one hero on a library wall, cork-board discussion ====================== */
body.club6 #club { grid-template-areas: "book book" "talk vote" "talk card" "talk plaque" "rewards rewards" "shelf shelf"; grid-template-rows: auto auto auto 1fr auto auto; }

/* --- one hero: the week's book on a dark wood library wall --- */
body.club6 #club .club-book { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; padding: 30px 34px; border: 4px solid #1a1a1a; border-radius: 12px; box-shadow: 4px 4px 0 #000;
  background: radial-gradient(ellipse at 80% -10%, rgba(255, 210, 120, .34), transparent 58%), repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, transparent 2px 54px), linear-gradient(180deg, #3b2616, #23150b); }
body.club6 #club .club-cover { padding: 0; background: none; border-radius: 0; }
body.club6 #club .club-cover .ep-thumb { border-radius: 4px; transform: rotate(-1.6deg); box-shadow: 0 0 0 7px #fffbe6, 0 0 0 9px #1a1a1a, 10px 12px 0 9px rgba(0,0,0,.4); }
body.club6 #club .club-ribbon { top: -14px; left: -14px; border: 1px solid rgba(0,0,0,.65); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
body.club6 #club .club-cover .club-sticker { right: -16px; bottom: -18px; }
body.club6 #club .club-card { padding: 0; background: none; color: #f3e9d2; gap: 10px; }
body.club6 .club6-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding-right: 128px; }
body.club6 .club6-art { width: 56px; flex: 0 0 56px; transform: rotate(-6deg); }
body.club6 .club6-art svg { display: block; width: 100%; height: auto; }
body.club6 .club6-title { display: block; font-size: 27px; line-height: 1; color: #ffd21c; text-shadow: 2px 2px 0 #000; }
body.club6 .club6-sub { display: block; margin-top: 3px; font-size: 12.5px; font-style: italic; color: #d9c9a3; }
body.club6 .club6-sub a { color: #ffe58a; }
body.club6 #club .club-card .club-code { color: #d9c9a3; letter-spacing: .08em; }
body.club6 #club .club-card h2 { font-size: clamp(30px, 3.4vw, 42px); }
body.club6 #club .club-card h2 a { color: #fff; text-shadow: 3px 3px 0 #000; }
body.club6 #club .club-blurb { color: #eadfc6; font-size: 14.5px; line-height: 1.5; }
body.club6 #club .club-card .btn-green { border: 1px solid rgba(0,0,0,.65); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); font-family: var(--font-cut); font-weight: 400; font-size: 16px; letter-spacing: .02em; padding: 9px 18px; }
body.club6 #club .club-card .result-count { color: #d9c9a3; }
body.club6 #club .club-members { border-top: 1px dashed rgba(243, 233, 210, .3); padding-top: 12px; }
body.club6 #club .club-members-label { color: #ffd21c; }
body.club6 #club .club-book > .club-due { position: absolute; top: 20px; right: 24px; padding: 5px 14px; background: #fff3a6; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
body.club6 #club .club-book > .club-due b { font-size: 32px; }
/* Butters himself, in the corner of the hero */
body.club6 #club .club-book > .club6-butters { position: absolute; right: 22px; bottom: 0; display: flex; align-items: flex-start; gap: 6px; pointer-events: none; }
body.club6 .club6-butters .b-fig { width: 104px; flex: 0 0 104px; }
body.club6 .club6-butters .b-fig svg { display: block; width: 100%; height: auto; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.4)); }
body.club6 .club6-butters p { position: relative; max-width: 178px; margin: 14px 0 0; padding: 8px 12px; background: #fff8d6; color: #1d2a44; border-radius: 14px; font-size: 13px; font-weight: 700; line-height: 1.3; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
body.club6 .club6-butters p::after { content: ""; position: absolute; right: -8px; top: 16px; border: 7px solid transparent; border-left-color: #fff8d6; border-right: 0; }
body.club6 #club .club-members { margin-right: 120px; }

/* --- vote: compact rows on a dark card --- */
body.club6 #club .club-vote { padding: 16px; border: 4px solid #1a1a1a; border-radius: 10px; box-shadow: 4px 4px 0 #000; background: #171b24; color: var(--text); }
body.club6 #club .club-vote .section-head { border-bottom-color: #2a3142; }
body.club6 #club .club-vote .section-head h2 { color: #ffd21c; }
body.club6 #club .club-vote-butters { color: #aeb5c4; }
body.club6 #club .club-vote-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
body.club6 #club .club-vote-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px; border: 1px solid #2a3142; border-radius: 10px; box-shadow: none; background: #1f2533; color: var(--text); transform: none; }
body.club6 #club .club-vote-card.mine { border-color: #3fb950; background: #1c2a24; }
body.club6 #club .club-vote-card > a:first-of-type { grid-row: 1 / 4; grid-column: 1; }
body.club6 #club .club-vote-card .ep-thumb { border-radius: 6px; }
body.club6 #club .club-vote-title { grid-column: 2; grid-row: 1; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
body.club6 #club .club-vote-code { grid-column: 2; grid-row: 2; color: #8f98ab; font-size: 12px; }
body.club6 #club .club-vote-bar { grid-column: 2 / 4; grid-row: 3; height: 6px; margin-top: 4px; border: 0; border-radius: 99px; background: #2a3142; }
body.club6 #club .club-vote-bar > div { border-radius: 99px; background: #ffd21c; }
body.club6 #club .club-vote-card .btn { grid-column: 3; grid-row: 1 / 3; align-self: center; padding: 6px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; box-shadow: none; background: transparent; color: #fff; font-size: 12.5px; }
body.club6 #club .club-vote-card .btn.btn-green { background: rgba(63,185,80,.16); border-color: #3fb950; color: #7be08f; }
body.club6 #club .club-vote-flag { position: absolute; top: -9px; left: 10px; right: auto; padding: 2px 8px 0; font-size: 11px; border: 1px solid rgba(0,0,0,.65); box-shadow: 0 2px 0 rgba(0,0,0,.35); transform: rotate(-2deg); }

/* --- discussion: a cork board. Every review is a note pinned to it; Butters' big page is taped at the top --- */
body.club6 #club-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; align-items: start; padding: 28px 22px 26px; border: 10px solid #5b3a1e; border-radius: 8px; box-shadow: inset 0 0 0 2px #2a1708, inset 0 8px 16px rgba(0,0,0,.35), 4px 4px 0 #000;
  background: radial-gradient(rgba(60, 30, 8, .4) 1px, transparent 1.7px) 0 0 / 9px 9px, radial-gradient(rgba(255, 232, 190, .28) 1px, transparent 1.7px) 4px 5px / 11px 11px, #b8854f; }
body.club6 #club-reviews > .butters-review, body.club6 #club-reviews > .butters-thread, body.club6 #club-reviews > .empty { grid-column: 1 / -1; }
body.club6 #club-reviews > .butters-review { margin: 0 6px; border-bottom: 0; }
body.club6 #club-reviews > .empty { background: #fbf6e6; color: #1d2a44; border: 2px solid #1a1a1a; }
body.club6 #club-reviews > .review:not(.butters-review) { position: relative; padding: 18px 14px 12px; border: 2px solid #1a1a1a; border-radius: 4px; box-shadow: 3px 5px 0 rgba(0,0,0,.4); color: #1d2a44; background: #fbf6e6; }
body.club6 #club-reviews > .review:not(.butters-review)::after { content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a90, #d9362f 55%, #8f1d18); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
body.club6 #club-reviews > .review:not(.butters-review):nth-of-type(3n) { transform: rotate(-.9deg); background: #fff3a6; }
body.club6 #club-reviews > .review:not(.butters-review):nth-of-type(3n+1) { transform: rotate(.7deg); }
body.club6 #club-reviews > .review:not(.butters-review):nth-of-type(3n+2) { transform: rotate(-.4deg); background: #e8f4e2; }
body.club6 #club-reviews > .review.guest-review { background: #e3eeff; }
body.club6 #club-reviews > .review.guest-review .host-tag { background: #1d3557; color: #fff; border-color: #1d3557; }
body.club6 #club-reviews > .review.guest-review::after { background: radial-gradient(circle at 35% 30%, #9cc3ff, #2f6db5 55%, #1d3557); }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta,
body.club6 #club-reviews > .review:not(.butters-review) .review-foot,
body.club6 #club-reviews > .review:not(.butters-review) .review-foot a,
body.club6 #club-reviews > .review:not(.butters-review) .review-meta a { color: #4a5a78; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta strong { color: #1d2a44; }
body.club6 #club-reviews > .review:not(.butters-review) p { color: #1d2a44; }
body.club6 #club-reviews > .review:not(.butters-review) .rating { color: #1f8a34; }
body.club6 #club-reviews > .review:not(.butters-review) .link-button { color: #4a5a78; }
body.club6 #club-reviews > .review:not(.butters-review) .pc-toggle, body.club6 #club-reviews > .review:not(.butters-review) .pc-talk { color: #7b45b8; margin-left: 0; }
body.club6 #club-reviews > .butters-thread { margin: -12px 6px 0; padding: 10px 12px; border: 2px solid #1a1a1a; border-left: 2px solid #1a1a1a; border-radius: 4px; background: #fff8d6; box-shadow: 3px 5px 0 rgba(0,0,0,.4); }
body.club6 #club-reviews .butters-comment-form textarea { background: #fff; color: #1d2a44; border: 1px solid #b9ae92; }
@media (max-width: 700px) { body.club6 #club-reviews { grid-template-columns: minmax(0, 1fr); padding: 22px 12px 20px; border-width: 8px; } }

/* a sticky note from Butters next to the heading */
body.club6 .club6-note { margin-left: auto; padding: 5px 10px 4px; background: #ffe45c; color: #1d2a44; font: 700 11.5px var(--font-body); border-radius: 2px; box-shadow: 0 3px 0 rgba(0,0,0,.4); transform: rotate(2deg); white-space: nowrap; text-transform: none; letter-spacing: 0; }
body.club6 .club6-note b { font-family: var(--font-cut); font-weight: 400; font-size: 14px; }

/* --- sidebar order + rewards button --- */
body.club6 #club .club-rewards { grid-area: rewards; }
body.club6 #club .club-rewards > summary { border: 1px solid rgba(0,0,0,.65); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); border-radius: 8px; }

@media (max-width: 900px) {
  body.club6 #club { grid-template-columns: minmax(0, 1fr); grid-template-areas: "book" "talk" "vote" "card" "plaque" "rewards" "shelf"; grid-template-rows: none; }
  body.club6 #club .club-book > .club6-butters { position: static; justify-content: flex-end; margin-top: -6px; }
  body.club6 #club .club-members { margin-right: 0; }
  body.club6 #club .club-book { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 22px 18px 20px; }
  body.club6 .club6-brand { padding-right: 0; }
  body.club6 #club .club-book > .club-due { top: -14px; right: 10px; padding: 3px 10px; }
  body.club6 #club .club-book > .club-due b { font-size: 24px; }
  body.club6 #club .club-cover { margin: 14px 8px 0; }
  body.club6 #club .club-card h2 { font-size: 28px; }
  body.club6 .club6-note { display: none; }
}
body.club6 .club6-title { margin: 0; }

/* ====================== Cage Match page (cage6): arena lights, the cage, champions beside the ranking ====================== */
/* --- the ring under arena lights --- */
body.cage6 .cage-ring { position: relative; overflow: hidden; }
body.cage6 .cage-ring > * { position: relative; z-index: 1; }
body.cage6 .cage6-light { position: absolute; z-index: 0; top: -60px; width: 300px; height: 620px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 240, 190, .30), rgba(255, 240, 190, .08) 55%, transparent 82%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
body.cage6 .cage6-light.l { left: 4%; transform: rotate(-16deg); transform-origin: top center; }
body.cage6 .cage6-light.r { right: 4%; transform: rotate(16deg); transform-origin: top center; }
body.cage6 .cage-title { text-shadow: 0 0 18px rgba(255, 190, 60, .45); }
body.cage6 .cage6-stage { position: relative; overflow: hidden; border: 3px solid #000; border-radius: 12px; box-shadow: 4px 4px 0 #000; background: #0b0e14; }
/* the crowd: two rows of heads in the dark, with camera flashes */
body.cage6 .cage6-crowd { position: relative; height: 58px; background:
  radial-gradient(circle at 17px 58px, #4a5873 16px, #1a2232 17px, transparent 18px) 0 0 / 40px 58px repeat-x,
  radial-gradient(circle at 14px 42px, #33405a 13px, #141b28 14px, transparent 15px) 19px 0 / 33px 58px repeat-x,
  radial-gradient(circle at 11px 27px, #232d42 10px, transparent 11px) 7px 0 / 28px 58px repeat-x,
  linear-gradient(#0d121b, #1a2231); }
body.cage6 .cage6-crowd::before, body.cage6 .cage6-crowd::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
body.cage6 .cage6-crowd::before { background: radial-gradient(circle at 9% 46%, #fff 0 2px, rgba(255,255,255,.35) 3px 7px, transparent 8px), radial-gradient(circle at 41% 66%, #fff 0 2px, rgba(255,255,255,.35) 3px 7px, transparent 8px), radial-gradient(circle at 77% 40%, #fff 0 2.5px, rgba(255,255,255,.35) 3px 8px, transparent 9px); animation: cage6-flash 2.6s steps(1) infinite; }
body.cage6 .cage6-crowd::after { background: radial-gradient(circle at 24% 62%, #fff 0 2px, rgba(255,255,255,.35) 3px 7px, transparent 8px), radial-gradient(circle at 58% 38%, #fff 0 2px, rgba(255,255,255,.35) 3px 7px, transparent 8px), radial-gradient(circle at 92% 64%, #fff 0 2px, rgba(255,255,255,.35) 3px 7px, transparent 8px); animation: cage6-flash 3.4s steps(1) infinite 1.1s; }
@keyframes cage6-flash { 0% { opacity: 0; } 6% { opacity: 1; } 10% { opacity: 0; } 52% { opacity: .9; } 56% { opacity: 0; } 100% { opacity: 0; } }
/* the cage itself: chain-link fence, ropes, and a lit mat on the floor */
body.cage6 #cage .cage-arena { padding: 26px 38px 30px; border: 0; border-bottom: 4px solid #000; border-radius: 0; box-shadow: inset 0 -30px 44px rgba(0,0,0,.5); background:
  repeating-linear-gradient(45deg, rgba(214, 224, 238, .16) 0 2px, transparent 2px 15px),
  repeating-linear-gradient(-45deg, rgba(214, 224, 238, .16) 0 2px, transparent 2px 15px),
  linear-gradient(#d63a3a, #d63a3a) 0 22% / 100% 4px no-repeat,
  linear-gradient(#f4f6fa, #f4f6fa) 0 50% / 100% 3px no-repeat,
  linear-gradient(#4a90e2, #4a90e2) 0 78% / 100% 4px no-repeat,
  radial-gradient(ellipse 46% 30% at 50% 104%, rgba(255, 228, 150, .34), transparent 70%),
  radial-gradient(ellipse at 50% 60%, #4c5c77, #161c27 74%); }
@keyframes cage6-sweep-l { from { transform: rotate(-22deg); } to { transform: rotate(-9deg); } }
@keyframes cage6-sweep-r { from { transform: rotate(22deg); } to { transform: rotate(9deg); } }
body.cage6 .cage6-light.l { animation: cage6-sweep-l 5s ease-in-out infinite alternate; }
body.cage6 .cage6-light.r { animation: cage6-sweep-r 6s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { body.cage6 .cage6-light, body.cage6 .cage6-crowd::before, body.cage6 .cage6-crowd::after { animation: none; } }
body.cage6 .cage-card { border-radius: 10px; }
body.cage6 .cage-card.red { transform: rotate(-1.2deg); }
body.cage6 .cage-card.blue { transform: rotate(1.2deg); }
body.cage6 .cage-card:hover, body.cage6 .cage-card:focus-visible { transform: translateY(-6px) scale(1.02); }
body.cage6 .cage-ring .cage-vs { filter: drop-shadow(0 0 16px rgba(245, 197, 24, .55)); }
body.cage6 .ringside .btn, body.cage6 .ringside select { border: 1px solid rgba(255,255,255,.28); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }

/* --- Cartman the commentator instead of the microphone --- */
body.cage6 .cage-mic.cage6-cartman { flex: 0 0 104px; width: 104px; height: auto; align-self: flex-end; border: 0; border-radius: 0; background: none; box-shadow: none; display: block; }
body.cage6 .cage-mic.cage6-cartman svg { display: block; width: 100%; height: auto; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.45)); }
body.cage6 .cage-host { align-items: center; }
@media (max-width: 640px) { body.cage6 .cage-mic.cage6-cartman { flex-basis: 72px; width: 72px; } }

/* --- below the ring: champion card(s) on the left, the ranking on the right --- */
body.cage6 .cage6-lower { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; }
body.cage6 .cage6-lower > * { margin: 0; min-width: 0; }
body.cage6 .cage6-lower .title-holders { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
body.cage6 .cage6-lower .title-holders > * { min-width: 0; }
body.cage6 .cage6-lower #champ .ep-thumb, body.cage6 .cage6-lower #crowd-champ .ep-thumb { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  body.cage6 .cage6-lower { grid-template-columns: minmax(0, 1fr); }
  body.cage6 .cage6-light { width: 180px; height: 420px; }
  body.cage6 #cage .cage-arena { padding: 18px 26px 20px; }
  body.cage6 .cage6-crowd { height: 44px; }
}

/* --- the whole ring fits in the window: Cartman, his line, both fighters and the buttons at once --- */
body.cage6 #cage { padding-top: 14px; }
body.cage6 #cage .cage-ring { padding-top: 14px; padding-bottom: 10px; gap: 8px; }
body.cage6 #cage .cage-title { font-size: clamp(26px, 3.4vw, 40px); }
body.cage6 .cage-mic.cage6-cartman { flex-basis: 86px; width: 86px; }
body.cage6 #cage .cage-bubble { padding-top: 8px; padding-bottom: 8px; }
body.cage6 #cage .cage-card .ep-thumb { aspect-ratio: auto; height: clamp(90px, calc(100vh - 706px), 300px); }
body.cage6 .cage6-crowd { height: 44px; }
body.cage6 #cage .cage-arena { padding-top: 16px; padding-bottom: 18px; }
body.cage6 #cage .ringside { padding-top: 8px; padding-bottom: 8px; }
body.cage6 #cage .cage-bubble .call { font-size: clamp(15px, 1.7vw, 19px); line-height: 1.2; }
body.cage6 #cage .cage-bubble .next { margin-top: 3px; font-size: 13px; }
@media (max-height: 820px) {
  body.cage6 #cage .cage-title { font-size: 28px; }
  body.cage6 #cage .cage-ring { padding-top: 10px; gap: 6px; }
  body.cage6 .cage-mic.cage6-cartman { flex-basis: 74px; width: 74px; }
}

/* --- bigger pictures: the corner bar and the black info strip under the picture are compact --- */
body.cage6 #cage .cage-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 3px; align-items: center; padding-bottom: 8px; }
body.cage6 #cage .cage-card > .corner, body.cage6 #cage .cage-card > .ep-thumb, body.cage6 #cage .cage-card > strong { grid-column: 1 / -1; }
body.cage6 #cage .cage-card > .corner { padding-top: 5px; padding-bottom: 3px; font-size: 15px; line-height: 1.2; }
body.cage6 #cage .cage-card > strong { font-size: 18px; line-height: 1.15; margin-top: 2px; }
body.cage6 #cage .cage-card > span:not(.corner):not(.cage-rating) { justify-self: end; font-size: 12px; }
body.cage6 #cage .cage-card > .cage-rating { justify-self: start; font-size: 12px; }
body.cage6 #cage .cage-card > .cage-rating b { font-size: 14px; }
/* The whole episode picture, never cropped: the picture keeps its 16:9 shape and gets narrower on short windows instead of losing its top and bottom. */
/* --ar is the picture's own width / height, set when it loads (js/pages/cage.js): the box takes that exact shape, so there are no bars either.
   The whole fighter card is sized around the picture, so there is no empty dark space beside it. */
body.cage6 #cage .cage-card { --pic-h: clamp(140px, calc(100vh - 676px), 340px); width: min(100%, calc(var(--pic-h) * var(--ar, 1.3333) + 10px)); justify-self: center; }
body.cage6 #cage .cage-card .ep-thumb { height: auto; aspect-ratio: var(--ar, 1.3333); width: 100%; justify-self: stretch; }
body.cage6 #cage .cage-card .ep-thumb img { object-fit: contain; background: #000; }
body.cage6 #cage .cage-card > strong { text-align: center; }
@media (max-width: 640px) {
  body.cage6 #cage .cage-card > span:not(.corner):not(.cage-rating), body.cage6 #cage .cage-card > .cage-rating { grid-column: 1 / -1; justify-self: center; }
  body.cage6 #cage .cage-card { --pic-h: clamp(120px, 24vh, 200px); }
}

/* ====================== Mystery Episode page (mystery6): a dark office, pages of handwritten clues, Kenny the witness ====================== */
body.mystery6 #mystery .m6-office { position: relative; margin: 26px 0 26px; padding: 18px 22px 22px; border: 4px solid #1a1a1a; border-radius: 4px 12px 12px 12px; box-shadow: 4px 4px 0 #000; color: #f1e8ff;
  background:
    radial-gradient(ellipse 46% 60% at 30% 0%, rgba(255,190,110,.22), transparent 70%),
    radial-gradient(ellipse at 100% 100%, rgba(242,113,28,.12), transparent 55%),
    linear-gradient(170deg, #43226e 0%, #2a1647 55%, #1c0f33 100%); }
/* light through the window blinds, falling across the wall */
body.mystery6 #mystery .m6-blinds { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden; }
body.mystery6 #mystery .m6-blinds::before { content: ""; position: absolute; right: -4%; top: -10%; width: 40%; height: 75%; transform: skewX(-24deg);
  background: repeating-linear-gradient(180deg, rgba(255,214,150,.06) 0 11px, transparent 11px 28px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%); }

/* title row on the wall */
body.mystery6 #mystery .case-head { position: static; padding: 0; margin: 0 0 16px; border: 0; border-radius: 0; box-shadow: none; background: none; }
body.mystery6 #mystery .case-head-row { position: relative; gap: 14px; align-items: center; }
body.mystery6 #mystery .mystery-logo { flex: 0 0 56px; width: 56px; }
body.mystery6 #mystery .case-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; white-space: nowrap; }
body.mystery6 #mystery .case-head-row > div:not(.m6-kenny) { flex: 0 1 auto; min-width: 0; }
body.mystery6 #mystery .case-head p:not(.mystery-next) { margin: 2px 0 0; font-size: 13px; max-width: 470px; color: #dccbf6; }
body.mystery6 #mystery .case-tab { top: -26px; left: -4px; }
body.mystery6 #mystery .case-stamp { right: auto; left: 430px; top: -20px; font-size: 14px; padding: 1px 8px; border-width: 2px; }
body.mystery6 #mystery .mystery-next { display: flex; flex-direction: column; align-items: center; margin: 0 0 0 auto; padding: 6px 14px 4px; border: 1px solid rgba(0,0,0,.65); border-radius: 8px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); background: #1a0e2e; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #cdb6ee; white-space: nowrap; }
body.mystery6 #mystery .mystery-next b { font-size: 22px; }
/* Kenny, the witness */
body.mystery6 #mystery .m6-kenny { display: flex; align-items: flex-end; gap: 4px; margin: -8px 0 -14px auto; flex: 0 0 auto; position: relative; z-index: 0; }
body.mystery6 #mystery .m6-kenny + .mystery-next { margin-left: 6px; }
body.mystery6 #mystery .m6-kenny svg { width: 74px; height: auto; display: block; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
body.mystery6 #mystery .m6-kenny { align-items: flex-end; gap: 9px; }
body.mystery6 #mystery .case-head .m6-kenny p:not(.mystery-next) { position: relative; margin: 0 0 31px; padding: 6px 11px 4px; max-width: none; border: 2px solid #000; border-radius: 12px; background: #f2711c; color: #2b1300; font: 400 15px 'Luckiest Guy', cursive; line-height: 1.15; white-space: nowrap; box-shadow: 2px 2px 0 #000; }
body.mystery6 #mystery .case-head .m6-kenny p:not(.mystery-next)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 12px; height: 12px; margin-top: -4px; background: #f2711c; border: 2px solid #000; border-left: 0; border-bottom: 0; transform: rotate(45deg) skew(12deg, 12deg); border-radius: 0 3px 0 0; }

/* the evidence wall */
body.mystery6 #mystery .mystery-layout { position: relative; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 26px; }
body.mystery6 #mystery .mystery-board { padding: 6px 0 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
body.mystery6 #mystery .mystery-board > .result-count { margin: 8px 0 0; font-size: 12px; color: #bfa8e4; }
body.mystery6 #mystery .kenny-lives { margin-top: 12px; }
body.mystery6 #mystery .mystery-guess { margin-top: 10px; }
body.mystery6 #mystery .m6-string { position: absolute; left: 0; top: -6px; width: 100%; height: 60px; z-index: 3; pointer-events: none; overflow: visible; }
body.mystery6 #mystery .mystery-side { gap: 16px; }
/* witness statements: cards pinned to the wall */
body.mystery6 #mystery .case-folder { position: relative; padding: 16px 14px 12px; border: 2px solid #141414; border-radius: 4px; box-shadow: 4px 5px 0 rgba(0,0,0,.5); background: #f4e6c4; color: #3b2a12; transform: rotate(.6deg); }
body.mystery6 #mystery .case-folder::before { content: ""; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border: 2px solid #000; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a80, #c4201c 60%); box-shadow: 1px 2px 0 rgba(0,0,0,.45); z-index: 4; }
body.mystery6 #mystery .case-folder h2 { margin: 0 0 12px; font-size: 18px; color: #3b2a12; text-align: center; }
body.mystery6 #mystery .case-folder .kenny-hint { margin-bottom: 9px; }
body.mystery6 #mystery .case-folder .kenny-hint:last-child { margin-bottom: 0; }
body.mystery6 #mystery .case-folder .kenny-hint.locked { padding: 13px 10px 6px; background: rgba(59,42,18,.07); color: #6b5530; border: 1.5px dashed #a58a55; border-radius: 4px; font-size: 12px; }
body.mystery6 #mystery .case-folder .kenny-hint.locked .kenny-means { font-size: 12px; }
body.mystery6 #mystery .case-folder .exhibit { background: #2a1647; color: #ffd9a8; }
/* the guesses: a detective's notepad */
body.mystery6 #mystery .m6-pad { position: relative; padding: 14px 16px 12px 16px; border: 2px solid #141414; border-radius: 3px; box-shadow: 4px 5px 0 rgba(0,0,0,.5); color: #2b2005; transform: rotate(-.8deg);
  background: #ffe98a; border-top: 12px solid #c4201c; }
body.mystery6 #mystery .m6-pad h2 { margin: 0 0 4px; font-size: 16px; color: #2b2005; }
body.mystery6 #mystery .m6-pad { margin-top: 18px; }
body.mystery6 #mystery .m6-pad .mystery-guesses { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 0 22px; }
body.mystery6 #mystery .m6-pad .mystery-guesses li { min-height: 32px; padding: 5px 0 3px; gap: 6px; flex-wrap: wrap; border: 0; border-bottom: 1.5px solid rgba(60,90,150,.32); border-radius: 0; box-shadow: none; background: none; color: #b3231f; font-size: 13px; font-weight: 700; }
body.mystery6 #mystery .m6-pad .mystery-guesses li::before { flex: 0 0 16px; height: auto; display: block; text-align: center; border-radius: 0; background: none; color: #8a6d1c; font-size: 14px; }
body.mystery6 #mystery .m6-pad .mystery-guesses li.empty-slot { color: #9a8440; font-weight: 500; font-style: italic; border-bottom: 1.5px solid rgba(60,90,150,.32); }
body.mystery6 #mystery .m6-pad .mystery-guesses li.right { color: #1c7a35; background: none; }
body.mystery6 #mystery .m6-pad .mystery-warmth { color: #4a3a10; }
body.mystery6 #mystery .m6-pad .mystery-warmth.warm { color: #b35a00; }

/* the back office: leaderboard, stats, cold cases */
body.mystery6 #mystery .mystery-records { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; align-items: stretch; }
body.mystery6 #mystery .mystery-records > .mystery-stats { margin: 0; padding: 16px 16px; border: 4px solid #1a1a1a; border-radius: 10px; box-shadow: 4px 4px 0 #000; background: linear-gradient(170deg, #33205a, #231440); }
body.mystery6 #mystery .mystery-records h2 { text-align: center; font-size: 19px; }
body.mystery6 #mystery .mc-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
/* cold cases: little file folders */
body.mystery6 #mystery .mc-case { position: relative; margin-top: 6px; padding: 7px 4px 5px; border: 2px solid #141414; border-radius: 0 5px 5px 5px; background: #6c4a9c; box-shadow: 2px 2px 0 #000; }
body.mystery6 #mystery .mc-case::before { content: ""; position: absolute; top: -8px; left: -2px; width: 46%; height: 6px; border: 2px solid #141414; border-bottom: 0; border-radius: 4px 4px 0 0; background: inherit; }
body.mystery6 #mystery .mc-case.won { background: #2f7d4a; } body.mystery6 #mystery .mc-case.lost { background: #a13a36; }
body.mystery6 #mystery .case-rewards { margin-bottom: 20px; }

@media (max-width: 900px) {
  body.mystery6 #mystery .m6-office { padding: 14px 12px 16px; margin-top: 30px; }
  body.mystery6 #mystery .case-stamp, body.mystery6 #mystery .m6-string, body.mystery6 #mystery .case-head .m6-kenny p:not(.mystery-next) { display: none; }
  body.mystery6 #mystery .case-head-row { flex-wrap: wrap; gap: 8px 10px; }
  body.mystery6 #mystery .case-head-row > div:not(.m6-kenny) { display: contents; }
  body.mystery6 #mystery .case-head p:not(.mystery-next) { order: 2; flex: 1 1 100%; }
  body.mystery6 #mystery .mystery-next { order: 3; }
  body.mystery6 #mystery .mystery-logo { flex-basis: 40px; width: 40px; }
  body.mystery6 #mystery .case-head h1 { font-size: 24px; }
  body.mystery6 #mystery .case-head p:not(.mystery-next) { font-size: 12px; }
  body.mystery6 #mystery .m6-kenny { margin: -6px 0 -6px 0; }
  body.mystery6 #mystery .m6-kenny svg { width: 50px; }
  body.mystery6 #mystery .mystery-next { flex: 1 1 100%; flex-direction: row; justify-content: center; gap: 8px; margin: 0; padding: 4px 10px 2px; }
  body.mystery6 #mystery .mystery-next b { font-size: 17px; }
  body.mystery6 #mystery .mystery-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.mystery6 #mystery .case-folder, body.mystery6 #mystery .m6-pad { transform: none; }
  body.mystery6 #mystery .case-head h1 { white-space: normal; }
  body.mystery6 #mystery .mystery-records { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
body.mystery6 #mystery .mystery-side .mystery-league { padding: 14px 16px; border: 2px solid #141414; border-radius: 8px; box-shadow: 4px 5px 0 rgba(0,0,0,.5); background: #1a0e2e; }
body.mystery6 #mystery .mystery-side .mystery-league h2 { font-size: 18px; }
/* ---- dark and mysterious ---- */
body.mystery6 #mystery .m6-office { border-color: #000; overflow: hidden; color: #e9defa;
  background:
    radial-gradient(ellipse 44% 62% at 31% 34%, rgba(255,196,120,.17), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(120,60,200,.20), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(242,113,28,.08), transparent 70%),
    linear-gradient(175deg, #170d2b 0%, #0d0719 60%, #07040f 100%); }
body.mystery6 #mystery .m6-office { overflow: visible; }
body.mystery6 #mystery .m6-blinds::before { background: repeating-linear-gradient(180deg, rgba(170,190,255,.05) 0 11px, transparent 11px 28px); }
/* drifting fog and a dark vignette */
body.mystery6 #mystery .m6-blinds::after { content: ""; position: absolute; inset: -20% -30%; pointer-events: none;
  background: radial-gradient(ellipse 30% 22% at 20% 78%, rgba(190,160,255,.10), transparent 70%), radial-gradient(ellipse 34% 20% at 70% 88%, rgba(190,160,255,.09), transparent 70%), radial-gradient(ellipse 26% 16% at 48% 60%, rgba(255,255,255,.035), transparent 70%);
  animation: m6-fog 26s ease-in-out infinite alternate; }
@keyframes m6-fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@media (prefers-reduced-motion: reduce) { body.mystery6 #mystery .m6-blinds::after { animation: none; } }
body.mystery6 #mystery .case-head p:not(.mystery-next) { color: #b9a6d9; }
body.mystery6 #mystery .mystery-next { background: #07040f; border-color: #2c1c4a; color: #9d88c4; }
body.mystery6 #mystery .mystery-board > .result-count { color: #8f7bb5; }
body.mystery6 #mystery .mystery-frame { box-shadow: 0 0 0 4px #000, 0 0 46px 6px rgba(255,190,110,.20), 6px 6px 0 #000; }
body.mystery6 #mystery .mystery-board .mystery-guess input { background: #0b0616; border-color: #3a2562; color: #f1e8ff; }
body.mystery6 #mystery .mystery-board .mystery-guess input::placeholder { color: #8f7bb5; }
/* lives: Kenny hoods */
body.mystery6 #mystery .kenny-lives { justify-content: center; gap: 4px; margin: 14px auto 0; padding: 0; border: 0; background: none; box-shadow: none; width: auto; }
body.mystery6 #mystery .kenny-lives span { display: block; width: 46px; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.6)); transition: opacity .3s, filter .3s, transform .3s; }
body.mystery6 #mystery .kenny-lives span svg { display: block; width: 100%; height: auto; }
body.mystery6 #mystery .kenny-lives span.used { opacity: .28; filter: grayscale(1) brightness(.7); transform: translateY(3px) rotate(-10deg) scale(.9); }
body.mystery6 #mystery .kenny-lives b { margin-left: 10px; padding: 3px 10px 1px; border: 2px solid #f2711c; border-radius: 6px; font: 400 15px 'Luckiest Guy', cursive; letter-spacing: .5px; color: #ffb066; text-transform: uppercase; transform: rotate(-3deg); }
/* the pages: old paper in dim light, written by hand */
body.mystery6 #mystery .case-folder, body.mystery6 #mystery .m6-pad { background: radial-gradient(ellipse at 50% 40%, #d8c8a0 0%, #c4b187 60%, #a8946a 100%); border-color: #000; box-shadow: inset 0 0 26px rgba(70,40,0,.35), 4px 6px 0 rgba(0,0,0,.6); color: #2a1d0c; }
body.mystery6 #mystery .m6-pad { border-top: 2px solid #000; padding-top: 16px; }
body.mystery6 #mystery .m6-pad::before { content: ""; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border: 2px solid #000; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a80, #c4201c 60%); box-shadow: 1px 2px 0 rgba(0,0,0,.45); }
body.mystery6 #mystery .case-folder h2, body.mystery6 #mystery .m6-pad h2 { color: #2a1d0c; }
body.mystery6 #mystery .m6-pad .mystery-guesses li { min-height: 34px; padding: 4px 0 2px; border-bottom: 1.5px solid rgba(40,60,110,.3); font: 700 21px/1.1 'Caveat', 'Segoe Print', cursive; color: #8f1f1a; }
body.mystery6 #mystery .m6-pad .mystery-guesses li.empty-slot { border-bottom: 1.5px solid rgba(40,60,110,.3); font-weight: 500; font-style: normal; color: #7d6a45; }
body.mystery6 #mystery .m6-pad .mystery-guesses li.right { color: #17602a; }
body.mystery6 #mystery .m6-pad .mystery-guesses li::before { font: 400 14px 'Luckiest Guy', cursive; color: #6b5530; }
body.mystery6 #mystery .m6-pad .mystery-warmth { font: 700 17px/1 'Caveat', 'Segoe Print', cursive; color: #3a2a10; }
body.mystery6 #mystery .case-folder .kenny-hint { background: none; border: 0; border-bottom: 1.5px dashed rgba(60,40,10,.45); border-radius: 0; box-shadow: none; outline: 0; padding: 20px 2px 8px; color: #2a1d0c; }
body.mystery6 #mystery .case-folder .kenny-hint:last-child { border-bottom: 0; }
body.mystery6 #mystery .case-folder .kenny-hint.locked { background: none; border: 0; border-bottom: 1.5px dashed rgba(60,40,10,.45); padding: 20px 2px 8px; color: #6b5a38; }
body.mystery6 #mystery .case-folder .kenny-hint.locked:last-child { border-bottom: 0; }
body.mystery6 #mystery .case-folder .kenny-hint.newest { outline: 0; background: rgba(255,210,63,.28); }
body.mystery6 #mystery .case-folder .exhibit { top: 0; left: 0; background: none; color: #8f1f1a; border: 1.5px solid #8f1f1a; transform: rotate(-3deg); }
body.mystery6 #mystery .case-folder .kenny-topic { border-bottom: 0; font-size: 13px; }
body.mystery6 #mystery .case-folder .kenny-says { font-size: 13px; color: #5a4420; }
body.mystery6 #mystery .case-folder .kenny-means, body.mystery6 #mystery .case-folder .kenny-hint.locked .kenny-means { font: 700 20px/1.1 'Caveat', 'Segoe Print', cursive; }
/* everything below, darker */
body.mystery6 #mystery .mystery-side .mystery-league, body.mystery6 #mystery .mystery-records > .mystery-stats { background: linear-gradient(175deg, #150c27, #0a0613); border-color: #000; }
body.mystery6 #mystery .case-rewards > summary { background: #2a1647; }
body.mystery6 #mystery .case-rewards .cr-folder { background: linear-gradient(175deg, #1c1033, #0d0719); }
body.mystery6 #mystery .mc-case { background: #33205a; }
body.mystery6 #mystery .mystery-new-clue { background: radial-gradient(ellipse at 50% 40%, #d8c8a0, #b9a67a); border: 2px solid #000; border-radius: 3px; box-shadow: inset 0 0 20px rgba(70,40,0,.3), 4px 5px 0 rgba(0,0,0,.6); color: #2a1d0c; transform: rotate(-.6deg); }
body.mystery6 #mystery .mystery-new-clue .exhibit { background: none; border: 1.5px solid #8f1f1a; color: #8f1f1a; }
body.mystery6 #mystery .mystery-new-clue .kenny-says { font-size: 14px; color: #5a4420; }
body.mystery6 #mystery .mystery-new-clue .kenny-means { font: 700 21px/1.1 'Caveat', 'Segoe Print', cursive; }
body.mystery6 #mystery .mystery-new-clue .kenny-topic { border-bottom-color: rgba(60,40,10,.45); }
/* ---- reactions ---- */
body.mystery6 #mystery .m6-kenny.m6-wrong svg { animation: m6-shake .5s ease-out; }
body.mystery6 #mystery .m6-kenny.m6-sweat svg { animation: m6-tremble .28s linear infinite; }
body.mystery6 #mystery .m6-kenny.m6-won svg { width: 84px; animation: m6-jump .7s ease-out 3; }
body.mystery6 #mystery .m6-kenny.m6-dead svg { animation: m6-float 3.2s ease-in-out infinite; }
body.mystery6 #mystery .m6-ghost .m6-ghost-body { opacity: .55; filter: grayscale(1) brightness(1.55) drop-shadow(0 0 5px rgba(200,220,255,.9)); }
body.mystery6 #mystery .case-head .m6-kenny.m6-sweat p:not(.mystery-next), body.mystery6 #mystery .case-head .m6-kenny.m6-won p:not(.mystery-next) { background: #ffd23f; }
body.mystery6 #mystery .case-head .m6-kenny.m6-sweat p:not(.mystery-next)::after, body.mystery6 #mystery .case-head .m6-kenny.m6-won p:not(.mystery-next)::after { background: #ffd23f; }
@keyframes m6-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px) rotate(-5deg); } 45% { transform: translateX(5px) rotate(5deg); } 70% { transform: translateX(-3px) rotate(-2deg); } }
@keyframes m6-tremble { 0%, 100% { transform: translateX(-1px); } 50% { transform: translateX(1px); } }
@keyframes m6-jump { 0%, 100% { transform: none; } 40% { transform: translateY(-12px); } }
@keyframes m6-float { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(-12px); } }
/* a lost life: the hood turns into a little ghost with a halo */
body.mystery6 #mystery .kenny-lives span { position: relative; }
body.mystery6 #mystery .kenny-lives span.used { opacity: 1; filter: none; transform: translateY(-5px); }
body.mystery6 #mystery .kenny-lives span.used svg { opacity: .42; filter: grayscale(1) brightness(1.6) drop-shadow(0 0 3px rgba(200,220,255,.9)); }
body.mystery6 #mystery .kenny-lives span.used::after { content: ""; position: absolute; left: 50%; top: -3px; width: 22px; height: 7px; margin-left: -11px; border: 2.5px solid #ffd23f; border-radius: 50%; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000; }
/* the verdict: a rubber stamp slammed on the photo */
body.mystery6 #mystery .case-verdict.m6-stamp { padding: 6px 18px 2px; border: 5px double currentColor; border-radius: 8px; background: rgba(255,248,228,.9); white-space: nowrap; animation: m6-slam .55s cubic-bezier(.2,1.6,.4,1) both; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
body.mystery6 #mystery .case-verdict.m6-stamp.won { color: #c4201c; }
body.mystery6 #mystery .case-verdict.m6-stamp.lost { color: #c4201c; font-size: clamp(15px, 2.4vw, 25px); }
@keyframes m6-slam { 0% { transform: translate(-50%, -50%) rotate(-24deg) scale(3.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-10deg) scale(1); opacity: 1; } }
body.mystery6 #mystery .m6-is-won .mystery-frame, body.mystery6 #mystery .m6-is-dead .mystery-frame { animation: m6-thud .4s ease-out .3s; }
@keyframes m6-thud { 0%, 100% { transform: none; } 30% { transform: translate(3px, 4px) rotate(.6deg); } 60% { transform: translate(-2px, -1px) rotate(-.4deg); } }
/* solved: the red string snaps tight */
body.mystery6 #mystery .m6-is-won .m6-s1 { d: path("M30.5 22 Q55 18 80.5 12"); animation: m6-snap1 .5s ease-out .45s backwards; }
body.mystery6 #mystery .m6-is-won .m6-s2 { d: path("M30.5 20 Q55 15 80.5 10"); animation: m6-snap2 .5s cubic-bezier(.3,2.2,.5,1) .45s backwards; }
@keyframes m6-snap1 { from { d: path("M30.5 22 Q58 70 80.5 12"); } }
@keyframes m6-snap2 { from { d: path("M30.5 20 Q58 66 80.5 10"); } }
body.mystery6 #mystery .m6-is-dead .m6-s2 { stroke: #6a5a80; }
@media (prefers-reduced-motion: reduce) { body.mystery6 #mystery .m6-kenny svg, body.mystery6 #mystery .case-verdict.m6-stamp, body.mystery6 #mystery .mystery-frame, body.mystery6 #mystery .m6-s1, body.mystery6 #mystery .m6-s2 { animation: none !important; } }
/* ---- fit on one screen ---- */
body.mystery6 #mystery .mystery-records { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); }
body.mystery6 #mystery .mystery-records > .mystery-league { padding: 16px; border: 4px solid #000; border-radius: 10px; box-shadow: 4px 4px 0 #000; }
@media (min-width: 901px) {
  body.mystery6 #mystery .m6-office { padding: 14px 22px 18px; margin-top: 24px; }
  body.mystery6 #mystery .case-head { margin-bottom: 10px; }
  body.mystery6 #mystery .mystery-frame { height: clamp(170px, calc(100vh - 486px), 340px); width: auto; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; }
  body.mystery6 #mystery .mystery-board > .result-count { display: none; }
  body.mystery6 #mystery .kenny-lives { margin-top: 8px; }
  body.mystery6 #mystery .kenny-lives span { width: 40px; }
  body.mystery6 #mystery .mystery-guess { margin-top: 8px; flex-direction: row; align-items: stretch; }
  body.mystery6 #mystery .mystery-guess input { flex: 1 1 auto; width: auto; min-width: 0; }
  body.mystery6 #mystery .mystery-guess .toolbar { margin: 0; flex: 0 0 auto; }
  body.mystery6 #mystery .m6-pad { margin-top: 14px; padding: 10px 16px 8px; }
  body.mystery6 #mystery .m6-pad h2 { margin: 0; font-size: 15px; }
  body.mystery6 #mystery .m6-pad .mystery-guesses li { min-height: 28px; padding: 2px 0 0; font-size: 19px; }
  /* compact clues: the muffled line stays on one line */
  body.mystery6 #mystery .case-folder { padding: 12px 14px 8px; }
  body.mystery6 #mystery .case-folder h2 { margin-bottom: 6px; font-size: 17px; }
  body.mystery6 #mystery .case-folder .kenny-hint, body.mystery6 #mystery .case-folder .kenny-hint.locked { margin: 0; padding: 20px 2px 4px; gap: 0; }
  body.mystery6 #mystery .case-folder .kenny-says { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  body.mystery6 #mystery .case-folder .kenny-means, body.mystery6 #mystery .case-folder .kenny-hint.locked .kenny-means { font-size: 18px; line-height: 1.05; }
  body.mystery6 #mystery .case-folder .kenny-evidence { font-size: 22px; line-height: 1.1; }
  body.mystery6 #mystery .case-folder .kenny-topic { margin: 0; padding: 0; font-size: 12px; }
}

/* Debate speeches: easy-to-read speech bubbles */
.pg-debate .pg-side .pg-say { flex: 1 1 auto; align-self: stretch; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.6); text-align: left; font: 500 15px/1.6 Inter, sans-serif; text-wrap: pretty; }
.pg-debate .pg-side h3 { margin-bottom: 2px; }
@media (max-width: 480px) { .pg-debate .pg-side .pg-say { padding: 9px 10px; font-size: 13px; line-height: 1.5; } }

/* ====================== Profile page: header, one row of sections that drop in below, Overview in two columns ====================== */
#profile { display: flex; flex-direction: column; gap: 22px; }
#profile > * { margin-top: 0; margin-bottom: 0; }
#profile .profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 22px; align-items: center; padding: 22px 26px; }
#profile .profile-head > :first-child { grid-row: 1 / span 2; align-self: center; }
#profile .profile-head .who { grid-column: 2; grid-row: 1; }
#profile .profile-head .profile-actions { grid-column: 2; grid-row: 2; width: auto !important; margin: 0; gap: 6px; flex-wrap: nowrap; }
#profile .profile-head .profile-actions .btn { padding: 5px 9px; font-size: 11px; letter-spacing: .4px; white-space: nowrap; border: 1px solid rgba(0,0,0,.65); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
#profile .profile-head .stats { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(4, auto); gap: 14px 22px; width: auto; margin: 0; padding: 0 0 0 22px; border: 0; border-left: 1px solid rgba(255,255,255,.1); }
#profile .profile-head .stats .stat { min-width: 0; padding: 0; border: 0; text-align: center; }
#profile .profile-head .stats .stat b { font-size: 22px; line-height: 1; }
#profile .profile-head .stats .stat span { font-size: 10px; letter-spacing: .8px; }
#profile .profile-head > .jimmy-bubble, #profile .profile-head > :not(.who):not(.stats):not(.profile-actions):not(:first-child) { grid-column: 1 / -1; }
/* the sections row */
#profile .pf-tabs { gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #2a3644; }
#profile .pf-tabs::-webkit-scrollbar { display: none; }
#profile .pf-tabs button { flex: 0 0 auto; margin: 0 0 -1px; padding: 10px 11px 9px; border: 0; border-bottom: 3px solid transparent; background: none; color: #8597ab; font: 700 12px Inter, system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
#profile .pf-tabs button:first-child { padding-left: 2px; }
#profile .pf-tabs button:hover { color: #fff; }
#profile .pf-tabs button[aria-current="page"] { color: #fff; border-bottom-color: var(--green, #3aa655); }
#profile .pf-panel { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
#profile .pf-panel[hidden] { display: none; }
#profile .pf-panel > * { margin: 0; min-width: 0; }
#profile .pf-cols { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; align-items: start; }
#profile .pf-main, #profile .pf-side { display: flex; flex-direction: column; min-width: 0; }
#profile .pf-main { gap: 28px; }
#profile .pf-side { gap: 14px; }
#profile .pf-main > *, #profile .pf-side > * { margin: 0; min-width: 0; }
#profile .pf-main .profile-reviews { display: flex; flex-direction: column; gap: 28px; }
#profile .pf-card { padding: 14px 14px 16px; border: 1px solid #2a3644; border-radius: 10px; background: #141b23; overflow: hidden; }
#profile .pf-card > .section-head { margin: 0 0 12px; }
#profile .pf-panel .empty { padding: 14px 16px; font-size: 13px; }
/* the streak, short: plant, days, one line; the rewards open on a click */
#profile .pf-streak .streak-card { padding: 10px 12px; gap: 10px; align-items: center; }
#profile .pf-streak .streak-plant { flex: 0 0 52px; width: 52px; }
#profile .pf-streak .streak-plant svg { width: 100%; height: auto; }
#profile .pf-streak .streak-num b { font-size: 26px; }
#profile .pf-streak .streak-text strong { font-size: 15px; line-height: 1.1; }
#profile .pf-streak .streak-text p { margin: 3px 0 4px; font-size: 12px; line-height: 1.3; }
#profile .pf-streak .streak-best { font-size: 11px; line-height: 1.3; }
#profile .pf-rewards { margin-top: 8px; }
#profile .pf-rewards > summary { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #2a3644; border-radius: 6px; background: #1f2933; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
#profile .pf-rewards > summary::-webkit-details-marker { display: none; }
#profile .pf-rewards > summary b { margin-left: auto; color: #ffd23f; }
#profile .pf-rewards > summary::after { content: "\25BE"; }
#profile .pf-rewards[open] > summary::after { content: "\25B4"; }
#profile .pf-rewards .streak-rewards { margin-top: 10px; grid-template-columns: minmax(0, 1fr); }
#profile .pf-card .profile-watchlist { gap: 8px; }
/* a page dropped in below the sections row: its own title and tab row are not needed here */
#profile .pf-embed > .page { display: flex; flex-direction: column; gap: 20px; padding: 0; max-width: none; }
#profile .pf-embed > .page > * { margin: 0; }
#profile .pf-embed .profile-tabs, #profile .pf-embed > .page > div:first-child > h1.cut, #profile .pf-embed > .page > h1.cut { display: none; }
@media (max-width: 900px) {
  /* phone header: small avatar beside the name; bio, tags, numbers and buttons each get the full width */
  #profile .profile-head { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 18px 16px 16px; align-items: center; }
  #profile .profile-head > :first-child { grid-column: 1; grid-row: 1 / span 2; --size: 64px !important; }
  #profile .profile-head .who { display: contents; }
  #profile .profile-head .who > * { grid-column: 1 / -1; min-width: 0; }
  #profile .profile-head .who > h1 { grid-column: 2; grid-row: 1; align-self: end; font-size: 26px; }
  #profile .profile-head .who > .handle { grid-column: 2; grid-row: 2; align-self: start; font-size: 12px; }
  #profile .profile-head .who > .bio { margin: 8px 0 0; font-size: 14px; line-height: 1.45; max-width: none; }
  #profile .profile-head .who > .member-tags { margin-top: 6px; }
  #profile .profile-head .stats { grid-column: 1 / -1; grid-row: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; margin-top: 10px; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  #profile .profile-head .stats .stat { flex: 0 0 25%; }
  #profile .profile-head .stats .stat b { font-size: 20px; }
  #profile .profile-head .stats .stat span { font-size: 9px; letter-spacing: .6px; }
  #profile .profile-head .profile-actions { grid-column: 1 / -1; grid-row: auto; flex-wrap: wrap; margin-top: 10px; }
  #profile .profile-head .profile-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; padding: 7px 9px; }
  #profile .profile-head .profile-actions .btn:last-child, #profile .profile-head .profile-actions > :last-child:not(.btn) { flex: 0 0 auto; }
  /* phone order: reviews, ratings, streak, personality, lists, diary (no watchlist card) */
  #profile .pf-cols { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  #profile .pf-main, #profile .pf-side, #profile .pf-main .profile-reviews { display: contents; }
  #profile .pf-main .profile-reviews > * { order: 1; }
  #profile .pf-side > * { order: 8; }
  #profile .pf-cols .pf-ratings { order: 2; }
  #profile .pf-cols .pf-streak { order: 3; }
  #profile .pf-cols .pf-pers { order: 4; }
  #profile .pf-cols .profile-reviews > .pf-lists { order: 5; }
  #profile .pf-cols .pf-diary { order: 6; }
  #profile .pf-cols .pf-watch { display: none; }
}

/* Small pictures in diary lists */
.diary .diary-thumb { flex: 0 0 68px; align-self: center; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #1f2933; }
.diary .diary-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.diary li:has(.diary-thumb) { align-items: center; }
.diary-month .diary .date { flex: 0 0 22px; text-align: right; }
@media (max-width: 560px) { .diary .diary-thumb { flex-basis: 52px; } }
/* A bar of quiet dropdowns: LABEL value ⌄ (watchlist) */
.pick-bar { align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.pick-bar .picks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-left: auto; }
.pick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #8597ab; cursor: pointer; }
.pick select { width: auto; padding: 4px 18px 4px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238597ab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 2px center / 10px 6px no-repeat; color: #fff; font: inherit; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pick select:hover, .pick:hover { color: #fff; }
.pick select:focus, .pick select:focus-visible { outline: 0; box-shadow: none; }
.pick { padding: 2px 6px; border-radius: 6px; }
.pick:focus-within { outline: 2px solid var(--green); outline-offset: 1px; color: #fff; }
.pick select option { background: #1a222c; color: #fff; text-transform: none; letter-spacing: 0; font-weight: 500; }
.pick-btn { padding: 5px 11px 4px; border: 1px solid rgba(0,0,0,.65); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); background: var(--green); color: #0d1a10; font: 700 12px Inter, system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.pick-btn:hover { filter: brightness(1.08); }
/* Report card: the torn edge in pixels, so a tall, wide card does not get deep notches */
.report-card.paper { clip-path: polygon(0 8px, 3% 0, 48% 5px, 96% 0, 100% 9px, calc(100% - 4px) 50%, 100% calc(100% - 9px), 95% 100%, 52% calc(100% - 5px), 3% 100%, 0 calc(100% - 8px), 4px 48%); padding: 26px 28px; }
/* "Soon" marker on pictures that are not released yet (admins only see these) */
.swatch { position: relative; }
.swatch .soon-tag { position: absolute; top: -4px; right: -6px; z-index: 3; padding: 1px 5px 0; border: 1.5px solid #000; border-radius: 4px; background: #ffd23f; color: #1a1a1a; font: 800 9px/1.3 Inter, system-ui, sans-serif; letter-spacing: .5px; text-transform: uppercase; transform: rotate(8deg); pointer-events: none; }

/* Friends icon in the top bar (phones have it in the bottom tab bar) */
.friends-btn[aria-current="page"] { color: var(--white); }
@media (max-width: 700px) { .header-right .friends-btn { display: none !important; } }

/* Press animation: Log episode / Chef's choice buttons squish, then a light sweep crosses them */
.fx-press { position: relative; overflow: hidden; animation: fx-squish .45s cubic-bezier(.3,1.6,.5,1); }
.fx-press::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: fx-sweep .6s ease-out forwards; }
@keyframes fx-squish { 0% { transform: scale(1); } 30% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes fx-sweep { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .fx-press, .fx-press::after { animation: none; } }

/* Earlier / later season hints: bright sticker pills, easy to read on the notepad */
body.mystery6 #mystery .m6-pad .mystery-warmth { padding: 3px 11px 2px; border: 2px solid #1a0e2e; border-radius: 999px; background: #fff4c2; color: #2b1300; font: 800 13px/1.2 system-ui, 'Segoe UI', sans-serif; letter-spacing: .2px; box-shadow: 2px 2px 0 #1a0e2e; }
body.mystery6 #mystery .m6-pad .mystery-warmth.warm { background: #ffb21e; color: #2b1300; }
.review-more { font-size: 13px; font-weight: 700; color: var(--green, #3fbf6b); }
.review-text .rv-full[hidden], .review-text .rv-short[hidden] { display: none; }
body.club6 #club-reviews .review-text { cursor: pointer; }

/* Review actions stay on one line; the mystery Log button is a small yellow tag */
.review-acts { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 12px; white-space: nowrap; }
body.club6 #club-reviews .review-acts { gap: 9px; }
body.club6 #club-reviews > .review .butters-liked { display: inline-block; margin: 0 0 6px; }
.m-log-mini { margin-left: 6px; padding: 1px 9px; border: 2px solid #000; border-radius: 999px; background: #ffd23f; color: #2b1300; font: 800 12px/1.5 system-ui, sans-serif; cursor: pointer; vertical-align: 1px; box-shadow: 1px 1px 0 #000; }
.m-log-mini:hover { background: #ffe27a; }

/* Stan and Kyle react when Kenny dies */
body.mystery6 #mystery .m6-chorus { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin: 0 0 24px; }
body.mystery6 #mystery .m6-say { position: relative; display: block; padding: 5px 10px 4px; border: 2px solid #000; border-radius: 12px; font: 400 13px/1.15 'Luckiest Guy', cursive; color: #1a1a1a; box-shadow: 2px 2px 0 #000; white-space: nowrap; }
body.mystery6 #mystery .m6-say b { display: block; font: 800 9px/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .6px; opacity: .7; }
body.mystery6 #mystery .m6-stan { background: #8ecbff; transform: rotate(-2deg); }
body.mystery6 #mystery .m6-kyle { background: #b7f08a; transform: rotate(2deg); margin-right: 10px; }
@media (max-width: 760px) { body.mystery6 #mystery .m6-chorus { display: none; } }

/* Home, Play: four small cards, all built the same: title, picture in the top right corner, two lines
   of text, one full-width button. One row on a computer, a swipe row of the same cards on a phone. */
.home-games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-games > * { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 0; padding: 12px; border: 3px solid #1a1a1a !important; border-radius: 10px; box-shadow: 3px 3px 0 #000 !important; background-image: none !important; transition: transform .12s; }
.home-games > *:hover { transform: translateY(-2px); }
.home-games .kenny-ad { background: #4b2a7c !important; color: #eadcff; }
.home-games .cage-ad { background: #25222b !important; color: #e9e3d6; }
.home-games .club-ad { background: #f2e7ae !important; color: #2b2a1f; }
.home-games .playground-card { background: #233a66 !important; color: #e6ecf7; }
.home-games [class$="-head"] { display: block; width: 100%; padding: 0 44px 0 0; }
.home-games .play-art.play-art { position: absolute; top: 8px; right: 8px; width: 42px; height: 42px; flex: none; margin: 0; transform: none; filter: none; font-size: 0; }
.home-games .play-art.play-art svg { display: block; width: 42px; height: 42px; filter: drop-shadow(1.5px 2px 0 rgba(0,0,0,.35)); }
.home-games [class*="-title "], .home-games [class$="-title"] { display: block; min-height: 3.24em; font-size: 13.5px !important; line-height: 1.08 !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: #fff !important; -webkit-text-fill-color: currentColor; filter: none !important; text-shadow: 1.5px 1.5px 0 rgba(0,0,0,.55) !important; transform: none !important; overflow-wrap: normal; word-break: keep-all; }
.home-games .club-ad [class*="-title "] { color: #1d3557 !important; text-shadow: none !important; }
.home-games [class$="-text"] { margin: 0; min-height: 2.6em; font-size: 11.5px !important; font-weight: 500; line-height: 1.3; opacity: .88; color: inherit !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-games [class$="-text"] strong { font-weight: 700; color: inherit !important; }
.home-games .club-ad-cta, .home-games .cage-ad-cta, .home-games .kenny-ad-cta, .home-games .playground-card-cta { align-self: stretch; margin-top: auto; height: 26px; padding: 0 8px !important; display: flex; align-items: center; justify-content: center; font-size: 12px !important; line-height: 1; letter-spacing: .5px; white-space: nowrap; border: 1px solid rgba(0,0,0,.65) !important; border-radius: 5px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18) !important; }
/* the same pictures on phones, where the cards keep their swipe row */
.play-art svg { display: block; width: 100%; height: auto; }

/* Episodes page: one tidy header, one filter row */
#ep-page .ep-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 18px; }
#ep-page .ep-title { margin: 0 auto 0 0; font-size: clamp(26px, 4vw, 34px); line-height: 1; color: var(--white); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--bg-deep); }
#ep-page .ep-view { margin-left: 0; }
#ep-page .ep-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin: 0 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
#ep-page .ep-filters input[type="search"] { flex: 1 1 260px; max-width: none; min-width: 0; }
#ep-page .ep-filters select { flex: 0 1 200px; min-width: 0; }
#ep-page .ep-filters .seg { background: transparent; border-color: var(--line-2); margin-left: auto; }
@media (max-width: 640px) {
  #ep-page .ep-top { gap: 10px; }
  #ep-page .ep-title { flex: 1 0 100%; }
  #ep-page .ep-filters .seg { margin-left: 0; width: 100%; overflow-x: auto; }
  #ep-page .ep-filters select { flex: 1 1 45%; }
}

/* Episodes page search: the same pill as the top bar */
#ep-page .ep-search { flex: 1 1 260px; min-width: 0; height: 40px; }
#ep-page .ep-search input[type="search"] { flex: 1; width: 100%; min-width: 0; }
#ep-page .ep-filters { gap: 10px 18px; }
#ep-page .ep-filters .pick { flex: 0 0 auto; }
/* Cage Match: the ring is only as wide as the fight needs now that the fighter cards are compact */
@media (min-width: 901px) {
  body.cage6 #cage .cage-ring { max-width: 860px; margin-left: auto; margin-right: auto; }
}

#ep-page .ep-top .ep-show { margin: 0; }
#ep-page .ep-top .seg[hidden] { display: none; }

/* Episodes page filters: no frame, three clean pills in one row */
#ep-page .ep-filters { padding: 0; margin: 0 0 16px; border: 0; border-radius: 0; background: none; gap: 10px; }
#ep-page .ep-filters .ep-search { flex: 1 1 280px; height: 42px; padding: 0 16px; border: 1px solid var(--line-2); }
#ep-page .ep-filters .pick { height: 42px; padding: 0 12px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); gap: 8px; max-width: 100%; }
#ep-page .ep-filters .pick select { max-width: 230px; text-overflow: ellipsis; padding-right: 20px; }
#ep-page .ep-filters .pick:hover { border-color: var(--muted); }
#ep-page .ep-filters .pick:focus-within, #ep-page .ep-filters .ep-search:focus-within { outline: 0; border-color: var(--green); }
@media (max-width: 640px) { #ep-page .ep-filters .pick { flex: 1 1 100%; } #ep-page .ep-filters .pick select { max-width: none; flex: 1; } }

/* Book Club notes, compact: the stars sit top right where you see them first; the picture floats beside the name
   and the review text runs the full width of the note underneath it */
body.club6 #club-reviews > .review:not(.butters-review) { display: block; padding: 30px 14px 10px; }
body.club6 #club-reviews > .review:not(.butters-review) > .avatar, body.club6 #club-reviews > .review:not(.butters-review) > a:first-child { float: left; margin: 0 10px 4px 0; }
body.club6 #club-reviews > .review:not(.butters-review) .review-body { display: block; min-width: 0; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta { min-height: 38px; align-content: center; gap: 2px 8px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-body > p, body.club6 #club-reviews > .review:not(.butters-review) .review-text { clear: both; margin: 4px 0 8px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-foot { clear: both; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta .rating { position: absolute; top: 7px; right: 13px; font-size: 16px; line-height: 1; letter-spacing: 1.5px; }

/* Clean dropdowns (js/dropdown.js): a pill that opens a tidy list */
.dd { position: relative; }
.dd .dd-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: none; cursor: pointer; padding: 0; max-width: 220px; }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn svg { flex: 0 0 auto; color: var(--muted); transition: transform .15s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 6px; }
.dd-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 100%; width: max-content; max-width: min(340px, 86vw); max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #1a222c; border: 1px solid var(--line-2); box-shadow: 0 14px 36px rgba(0,0,0,.5); text-transform: none; letter-spacing: 0; font-weight: 500; scrollbar-width: thin; scrollbar-color: #3a4756 transparent; }
.dd-menu[hidden] { display: none; }
.dd-menu li[data-v] { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: #dbe4ee; cursor: pointer; }
.dd-menu li[data-v]:hover, .dd-menu li.dd-hot { background: #26313d; color: #fff; }
.dd-menu li[aria-selected="true"] { color: var(--green); font-weight: 700; }
.dd-menu .dd-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #6f8296; }
#ep-page .ep-filters .pick { overflow: visible; }
#ep-page .ep-filters .pick:last-of-type .dd-menu { left: auto; right: 0; }

/* Page search pill, same look as the top bar */
.page-search { flex: 1 1 280px; max-width: 420px; height: 42px; padding: 0 16px; border: 1px solid var(--line-2); }
.page-search input[type="search"] { flex: 1; width: 100%; min-width: 0; }
.page-search:focus-within { outline: 0; border-color: var(--green); }

.dd-menu li[aria-selected="true"] svg { flex: 0 0 auto; }
#ep-page .ep-filters .pick .dd-btn { max-width: 260px; }

.ep-back-row { padding-top: 14px; padding-bottom: 4px; }
.ep-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ep-back:hover { color: #fff; border-color: var(--muted); }

/* Phones: the search icon (far right) opens a full-width search panel over the page */
.search-toggle, .search-cancel { display: none !important; }
@media (max-width: 900px) {
  .site-header .search-toggle { display: inline-grid !important; }
  .site-header { position: relative; }
  .site-header.has-user-menu .header-inner { grid-template-columns: auto 1fr auto auto; }
  .site-header.has-user-menu .header-inner > .search-toggle { grid-column: 4; grid-row: 1; }
  .site-header.has-user-menu .menu-toggle { position: relative; }
  .site-header .menu-toggle .bell-count { top: -5px; right: -5px; }
  .site-header.mobile-search .header-right > .header-search { display: flex; position: fixed !important; top: 0; left: 0; right: 0; z-index: 70; height: auto; max-width: none; margin: 0; padding: 10px 12px; gap: 0; flex-wrap: wrap; align-items: center; background: var(--bg-deep); border-radius: 0; border-bottom: 1px solid #000; box-shadow: 0 6px 18px rgba(0,0,0,.45); outline: 0; }
  .site-header.mobile-search .header-search > svg { position: absolute; left: 26px; top: 24px; pointer-events: none; color: var(--muted); }
  .site-header.mobile-search .header-search input[type="search"] { flex: 1 1 0; min-width: 0; width: auto; height: 44px; padding: 0 14px 0 40px; background: #232a36; border: 2px solid transparent; border-radius: 999px; color: var(--white); font-size: 16px; }
  .site-header.mobile-search .header-search input[type="search"]:focus { border-color: var(--green); outline: 0; }
  .site-header.mobile-search .search-cancel { display: inline-block !important; flex: 0 0 auto; margin-left: 10px; padding: 10px 2px; border: 0; background: none; color: var(--text); font: 600 15px var(--font-body); cursor: pointer; }
  .site-header.mobile-search .header-search .search-pop { position: static; flex: 0 0 100%; width: auto; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); margin: 10px -12px -10px; padding: 4px 6px 14px; background: var(--bg-deep); border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; overscroll-behavior: contain; }
  .site-header.mobile-search .search-pop-item { min-height: 48px; padding: 8px 10px; font-size: 15px; }
  .site-header.mobile-search .search-pop-all { min-height: 48px; }
  .site-header.mobile-search .search-pop-try .chip { min-height: 36px; }
  .site-header.mobile-search::before { content: ""; position: fixed; inset: 0; z-index: 69; background: rgba(0,0,0,.7); }
  body:has(.site-header.mobile-search) { overflow: hidden; }
  body:has(.site-header.mobile-search) .tab-bar { display: none; }
}

/* Top bar (computers): equal 10px gaps on both sides of the search, so it sits exactly between Play and the icons */
@media (min-width: 901px) {
  .site-header.has-user-menu .header-right { margin-left: -10px; }
  .site-header.has-user-menu .header-right .icon-btn svg { width: 20px; height: 20px; }
}
/* Book Club notes: less empty space on top; the name row starts beside the stars. A picture with a rank ring
   (the ring reaches about 16px past the picture) gets room on every side so the ring stays inside the note. */
body.club6 #club-reviews > .review:not(.butters-review) { padding-top: 14px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta { padding-right: 98px; min-height: 36px; }
body.club6 #club-reviews > .review:not(.butters-review) > .avatar.ranked,
body.club6 #club-reviews > .review:not(.butters-review) > a:first-child:has(.ranked) { margin: 6px 22px 14px 6px; }
body.club6 #club-reviews > .review:not(.butters-review) > a:first-child .avatar.ranked { margin: 0; }
/* Book Club, "Vote for next week": the same library wall as the big card on top (wood panelling, warm lamp light,
   cream lettering, photo-framed pictures, cut-out lettering on the title and buttons) */
body.club6 #club .club-vote { position: relative; padding: 22px 18px 18px; border: 4px solid #1a1a1a; border-radius: 12px; box-shadow: 4px 4px 0 #000; color: #f3e9d2;
  background: radial-gradient(ellipse at 80% -10%, rgba(255, 210, 120, .34), transparent 58%), repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, transparent 2px 54px), linear-gradient(180deg, #3b2616, #23150b); }
body.club6 #club .club-vote .section-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 8px; padding-bottom: 0; border-bottom: 0; }
body.club6 #club .club-vote .section-head h2 { font-family: var(--font-cut); font-weight: 400; font-size: 22px; line-height: 1.1; letter-spacing: .02em; text-transform: none; color: #fff; text-shadow: 2px 2px 0 #000; }
body.club6 #club .club-vote .section-head .result-count { color: #d9c9a3; font-size: 12px; }
body.club6 #club .club-vote-butters { margin-bottom: 14px; color: #e6d8b8; font-size: 13px; }
body.club6 #club .club-vote-butters span { color: #d9c9a3; }
body.club6 #club .club-vote-grid { gap: 12px; }
body.club6 #club .club-vote-card { padding: 10px 10px 10px 12px; border: 1px solid rgba(0,0,0,.6); border-radius: 8px; background: rgba(0,0,0,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); color: #f3e9d2; }
body.club6 #club .club-vote-card.mine { border-color: #3fb950; background: rgba(40, 90, 50, .38); }
body.club6 #club .club-vote-card .ep-thumb { border-radius: 3px; clip-path: none; box-shadow: 0 0 0 4px #fffbe6, 0 0 0 5px #1a1a1a, 4px 5px 0 5px rgba(0,0,0,.4); transform: rotate(-1.4deg); }
body.club6 #club .club-vote-card:nth-child(even) .ep-thumb { transform: rotate(1.2deg); }
body.club6 #club .club-vote-card > a:first-of-type { margin: 4px 6px 4px 2px; }
body.club6 #club .club-vote-title { color: #fff; font-family: var(--font-cut); font-weight: 400; font-size: 16px; letter-spacing: .02em; text-shadow: 1.5px 1.5px 0 #000; }
body.club6 #club .club-vote-code { color: #d9c9a3; letter-spacing: .06em; }
body.club6 #club .club-vote-bar { background: rgba(0,0,0,.45); }
body.club6 #club .club-vote-bar > div { background: #ffd21c; }
body.club6 #club .club-vote-card .btn { padding: 6px 14px 5px; border: 1px solid rgba(0,0,0,.65); border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); background: var(--green); color: #0d1a10; font-family: var(--font-cut); font-weight: 400; font-size: 14px; letter-spacing: .02em; }
body.club6 #club .club-vote-card .btn:hover { filter: brightness(1.08); background: var(--green); }
body.club6 #club .club-vote-flag { top: -11px; right: 8px; border: 1px solid rgba(0,0,0,.65); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
body.club6 #club .club-vote-flag { position: absolute; left: auto; right: 8px; top: -11px; width: auto; grid-column: auto; grid-row: auto; padding: 2px 9px 0; font-size: 12px; }
body.club6 #club .club-vote-title { font-size: 14.5px; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 901px) { .site-header.has-user-menu .main-nav-grouped { margin-left: -14px; } }
/* Search: 16px of space on both sides, measured from the ▾ of "Play" to the chef hat */
@media (min-width: 901px) {
  .site-header.has-user-menu .header-right { margin-left: -18px; }
  .site-header.has-user-menu .header-search { margin-right: 6px; }
}

/* Book Club notes: tags follow the name on the same line (the name row is ordinary running text; a small spacer
   keeps its first line clear of the stars in the corner) */
body.club6 #club-reviews > .review:not(.butters-review) .review-meta { display: block; padding-right: 0; line-height: 1.6; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta::before { content: ""; float: right; width: 94px; height: 20px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > * { margin-right: 5px; vertical-align: baseline; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > .rating { margin-right: 0; }
/* The paper bookmark reward on a note: a red ribbon hanging out of the bottom edge, instead of pushing the text in */
body.club6 #club-reviews > .review.bookmarked:not(.butters-review) .review-body > p:first-of-type { position: static; padding-left: 0; }
body.club6 #club-reviews > .review.bookmarked:not(.butters-review) .review-body > p:first-of-type::before { left: auto; right: 20px; top: auto; bottom: -15px; width: 15px; height: 34px; border-width: 2px; background: #d63a3a; box-shadow: 2px 3px 0 rgba(0,0,0,.35); }
body.club6 #club-reviews > .review.bookmarked:not(.butters-review) { margin-bottom: 10px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > span:first-child { font-size: 0; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > span:first-child > * { font-size: 13px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > span:first-child > [class*="flair"], body.club6 #club-reviews > .review:not(.butters-review) .review-meta > span:first-child > .host-tag { font-size: 10px; }
/* Tags keep their usual size from regular reviews, and sit on the name's line */
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > span:first-child > [class^="tag-"] { font-size: 10px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > .host-tag { font-size: 11px; line-height: 1.4; }
/* the stars sit in the note's top strip, so the name row has its full width for the tags */
body.club6 #club-reviews > .review:not(.butters-review) { padding-top: 30px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta::before { display: none; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta .rating { top: 9px; }
body.club6 #club-reviews > .review:not(.butters-review) .review-meta > span:not(:first-child) { white-space: nowrap; }
/* Book Club vote candidates: picture and title on top (the title gets the full width beside the picture),
   then one line with the vote bar and the Vote button */
body.club6 #club .club-vote-card { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 14px; row-gap: 2px; align-items: start; padding: 12px 12px 10px 14px; }
body.club6 #club .club-vote-card > a:first-of-type { grid-column: 1; grid-row: 1 / 3; align-self: center; margin: 2px 0 6px 2px; }
body.club6 #club .club-vote-title { grid-column: 2 / 4; grid-row: 1; align-self: end; font-size: 14px; line-height: 1.15; overflow-wrap: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.club6 #club .club-vote-code { grid-column: 2 / 4; grid-row: 2; align-self: start; font-size: 12px; }
body.club6 #club .club-vote-bar { grid-column: 1 / 3; grid-row: 3; align-self: center; height: 8px; margin-top: 8px; }
body.club6 #club .club-vote-card .btn { grid-column: 3; grid-row: 3; align-self: center; margin-top: 8px; padding: 4px 12px 3px; font-size: 13px; }
body.club6 #club .club-vote-flag { top: -10px; right: 10px; }

/* Playground layout (Dec 2026): shorter hero with the buttons on its bottom edge, Fact Check and
   Debate side by side, a long low trophy shelf, and the challenges 5 across (a swipe row on phones). */
.pg-hero { height: clamp(240px, 28vw, 320px); overflow: visible; margin-bottom: 20px; }
.pg-hero > svg { border-radius: 19px; }
.pg-hero > .pg-snow { border-radius: 19px; }
.pg-hero h1 small { font-size: clamp(16px, 2.2vw, 22px); }
.pg-hero h1 i { font-size: clamp(32px, 6vw, 64px); -webkit-text-stroke: clamp(6px, 1vw, 10px) #14101c; text-shadow: 0 5px 0 #14101c; }
.pg-jump { bottom: -22px; }
.pg-jump a { font-size: 13px; padding: 5px 11px; }
#playground .pg-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
#playground .pg-top h2, #playground .pg-trophies > h2, #playground .pg-games > h2 { font-size: clamp(17px, 1.9vw, 22px); }
#playground .pg-debate { display: flex; flex-direction: column; }
.pg-debate #debate { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pg-debate .pg-claim { font-size: clamp(17px, 1.8vw, 21px); margin: 0; }
.pg-debate .pg-sides { gap: 14px; }
.pg-debate .pg-sides::after { width: 42px; height: 42px; font-size: 18px; top: 26px; }
.pg-debate .pg-side { padding: 10px 8px; }
.pg-debate .pg-head { width: 96px; }
.pg-debate .pg-side h3 { font-size: clamp(14px, 1.4vw, 16px); margin: 0; }
.pg-debate .pg-side .btn { font-size: 14px; padding: 6px 12px; }
.pg-debate #debate > .pg-note { margin: 0; }
.pg-class .pg-wendy { width: 96px; }
.pg-class .pg-lesson { gap: 10px; }
.pg-class #fact { padding: 10px 12px; }
.pg-class .pg-claim { font-size: clamp(16px, 1.7vw, 20px); }
.pg-class .pg-actions .btn { min-width: 88px; font-size: 17px; }
.pg-class .pg-stickers li { width: 24px; height: 24px; font-size: 12px; }
/* The "Read argument" speech bubble and its pop-up */
.pg-read { position: relative; align-self: center; margin-top: 6px; padding: 7px 16px 5px; border: 3px solid #14101c; border-radius: 18px; background: #fff; color: #2e8f45; font: 400 15px 'Luckiest Guy', sans-serif; letter-spacing: .02em; box-shadow: 0 4px 0 #14101c; rotate: -2deg; cursor: pointer; transition: rotate .15s, translate .15s, background .15s; }
.pg-side.cartman .pg-read { color: #d9362f; rotate: 2deg; }
.pg-read::before { content: ""; position: absolute; left: 50%; top: -11px; width: 14px; height: 14px; translate: -50% 0; rotate: 45deg; background: inherit; border: 3px solid #14101c; border-right: 0; border-bottom: 0; }
.pg-read:hover { translate: 0 -3px; rotate: 0deg; background: #fff6c8; }
.pg-read:active { translate: 0 2px; box-shadow: 0 1px 0 #14101c; }
dialog.pg-pop { max-width: min(460px, 92vw); padding: 18px 20px; border: 5px solid #14101c; border-radius: 22px; background: linear-gradient(#d8f3d6, #a9dfa8); color: #142616; box-shadow: 0 10px 0 #14101c; }
dialog.pg-pop.cartman { background: linear-gradient(#ffe0d8, #ffb3a6); color: #2e1210; }
dialog.pg-pop::backdrop { background: rgba(10, 8, 20, .6); }
dialog.pg-pop .pg-pop-top { display: flex; align-items: center; gap: 10px; }
dialog.pg-pop .pg-head { width: 80px; flex: none; }
dialog.pg-pop h3 { margin: 0; font: 400 20px 'Luckiest Guy', sans-serif; }
dialog.pg-pop p { font: 500 15px/1.6 Inter, sans-serif; }
dialog.pg-pop .pg-pop-close { float: right; padding: 5px 14px; border: 3px solid #14101c; border-radius: 999px; background: #ffd21c; color: #14101c; font: 400 14px 'Luckiest Guy', sans-serif; box-shadow: 0 3px 0 #14101c; cursor: pointer; }
/* Friends who picked each side */
.pg-pals-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; color: #fff; }
.pg-pals { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.pg-pals .avatar { margin-left: -7px; box-shadow: 0 0 0 2px #14101c; }
.pg-pals .avatar:first-child { margin-left: 0; }
.pg-pals .pg-pals-who { margin-left: 6px; }
/* Long, low trophy shelf */
#playground > .pg-trophies { padding: 14px 18px; }
#playground .pg-trophies > h2 { margin-bottom: 12px; }
.pg-trophies #shelf { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 18px; }
.pg-trophies .pg-cup { grid-row: 1 / 3; margin: 0; padding-bottom: 4px; }
.pg-trophies .pg-cup svg { width: 72px; }
.pg-trophies .pg-cup b { font-size: 14px; }
.pg-trophies .pg-cup small { font-size: 11px; }
.pg-trophies .pg-shelf { grid-template-columns: repeat(10, 1fr); row-gap: 12px; }
.pg-trophies .pg-shelf li { padding-bottom: 4px; border-bottom-width: 8px; }
.pg-trophies .pg-foot { display: flex; align-items: center; gap: 14px; }
.pg-trophies .pg-progress { flex: 1; margin: 0; height: 12px; }
.pg-trophies .pg-note { margin: 0; white-space: nowrap; }
/* Challenges: 5 across */
#playground .pg-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; }
#playground .pg-card { min-width: 0; padding-bottom: 12px; border-width: 4px; border-radius: 18px; gap: 6px; }
#playground .pg-card > .avatar { margin-top: -30px; }
#playground .pg-card h3 { font-size: 16px; padding: 0 8px; }
#playground .pg-card p { padding: 0 10px; font-size: 12px; line-height: 1.4; }
#playground .pg-card .pg-prize, #playground .pg-card p.pg-tag { font-size: 11.5px; }
#playground .pg-card p.pg-tag { white-space: nowrap; }
#playground .pg-card p.pg-tag [class^="flair-"] { font-size: 10px; }
#playground .pg-card .pg-q { width: 20px; height: 20px; font-size: 13px; margin-left: 4px; }
#playground .pg-card .btn { margin: auto 10px 0; padding: 7px; font-size: 16px; }
#playground .pg-card p.pg-how { margin: 0 10px; font-size: 12px; }
#playground .pg-stamp { font-size: 14px; right: 6px; top: 6px; }
.pg-dots { display: none; }
@media (max-width: 1000px) { #playground .pg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  #playground .pg-top { grid-template-columns: minmax(0, 1fr); }
  .pg-trophies #shelf { grid-template-columns: 1fr; }
  .pg-trophies .pg-cup { grid-row: auto; flex-direction: row; gap: 10px; border: 0; box-shadow: none; }
  .pg-trophies .pg-cup p { order: 1; margin: 0; text-align: left; }
  .pg-trophies .pg-shelf { grid-template-columns: repeat(5, 1fr); }
  .pg-trophies .pg-foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .pg-trophies .pg-progress { flex: none; }
  .pg-trophies .pg-note { text-align: center; white-space: normal; }
}
@media (max-width: 620px) {
  .pg-jump { gap: 5px; }
  .pg-read { padding: 6px 10px 4px; font-size: 12.5px; white-space: nowrap; }
  .pg-pals { flex-wrap: wrap; row-gap: 4px; font-size: 11px; }
  .pg-pals .pg-pals-who { flex-basis: 100%; margin: 0; }
  .pg-jump a { font-size: 11px; padding: 5px 8px; }
  #playground .pg-cards { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 6px 14px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
  #playground .pg-cards::-webkit-scrollbar { display: none; }
  #playground .pg-card { flex: 0 0 72%; scroll-snap-align: center; }
  #playground .pg-card:hover { translate: none; rotate: none; }
  .pg-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .pg-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a4450; transition: width .2s, background .2s; }
  .pg-dots i.on { width: 22px; border-radius: 99px; background: #ffd21c; }
}

@keyframes play-up { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .play-sheet { animation: none; } }

/* ---- Phones: the page never slides sideways or zooms on its own ---- */
/* Swipe rows bleed to the screen edge by exactly the page padding (16px on phones), not more. */
@media (max-width: 640px) {
  .stan6 .stan-grid, .home-games, .hm-pop .ep-grid { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
}
/* Anything still too wide is cut off instead of letting you drag the whole page left and right.
   clip (not hidden) keeps sticky headers working. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
@media (max-width: 900px) {
  /* No double-tap zoom jumps; pinch zoom still works. */
  html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* iPhones zoom the page in when you tap a box with text under 16px, then it slides around. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}

/* ---- Phone header for visitors (logged out): a proper-size logo, Log in, Sign up, ☰ ---- */
@media (max-width: 480px) {
  .site-header:not(.has-user-menu) .header-inner { padding-left: 14px; padding-right: 14px; column-gap: 8px; }
  .site-header:not(.has-user-menu) .logo { gap: 1px; }
  .site-header:not(.has-user-menu) .logo-letter { font-size: 21px !important; padding: 3px 3px 1px !important; }
  .site-header:not(.has-user-menu) .header-right { gap: 8px; }
  .site-header:not(.has-user-menu) .header-link { font-size: 13px; font-weight: 700; white-space: nowrap; }
  .site-header:not(.has-user-menu) .header-right .btn-green { height: 38px; padding: 0 12px; font-size: 13px; }
  .site-header:not(.has-user-menu) .menu-toggle { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
}
@media (max-width: 380px) {
  .site-header:not(.has-user-menu) .logo-letter { font-size: 18px !important; padding: 3px 2px 1px !important; }
  .site-header:not(.has-user-menu) .header-right .btn-green { padding: 0 10px; }
}
@media (max-width: 340px) {
  .site-header:not(.has-user-menu) .logo-letter { font-size: 15px !important; }
  .site-header:not(.has-user-menu) .header-right .btn-green { padding: 0 8px; font-size: 12px; }
}

/* ---- Phones: review cards use the full width for the text (picture + title on top) ---- */
@media (max-width: 560px) {
  .review:has(> a > .ep-thumb):not(.butters-review) { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: start; }
  .review:has(> a > .ep-thumb):not(.butters-review) > a { grid-row: span 2; width: 96px; flex: none !important; }
  .review:has(> a > .ep-thumb):not(.butters-review) > .review-body { display: contents; }
  .review:has(> a > .ep-thumb):not(.butters-review) > .review-body > * { grid-column: 1 / -1; }
  .review:has(> a > .ep-thumb):not(.butters-review) > .review-body > :nth-child(-n+2) { grid-column: 2; }
  .review-acts { flex-wrap: wrap; row-gap: 4px; }
}
/* ---- Phones: the "Get the app" card is a slim strip, not a big box over the page ---- */
@media (max-width: 640px) {
  .install-ad { left: 10px; right: 10px; width: auto; gap: 10px; padding: 8px 40px 8px 8px; }
  .install-ad img { flex-basis: 36px; width: 36px; height: 36px; border-radius: 8px; }
  .install-ad > div { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 0; flex: 1; min-width: 0; }
  .install-ad strong { font-size: 15px; }
  .install-ad > div > span { display: none; }
  .install-ad .btn { margin: 0 0 0 auto; padding: 7px 12px; }
  .install-ad-close { top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px; }
}

/* ---- Phones: Messages. The list alone until you pick someone; then the chat fills the screen ---- */
.dm-back { display: none; }
@media (max-width: 760px) {
  .dm-thread:has(> .dm-empty):not(:has(.dm-empty .avatar)) { display: none; }
  #messages.dm-open { padding-top: 10px; padding-bottom: 10px; }
  #messages.dm-open .dm-head, #messages.dm-open .dm-list { display: none; }
  #messages.dm-open .dm-thread { min-height: 0; height: calc(100dvh - 92px - var(--tab-h, 0px)); }
  #messages.dm-open .dm-bubbles { max-height: none; }
  .dm-thread-head { display: flex; align-items: center; gap: 4px; }
  .dm-back { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: -6px; border-radius: 50%; color: var(--white); font-size: 30px; line-height: 1; text-decoration: none; }
  .dm-back:active { background: rgba(255,255,255,.08); }
}

/* ---- Phones: Friends rows keep their stats on one or two lines ---- */
@media (max-width: 560px) {
  .people li { gap: 10px; }
  .people-actions .btn[data-follow] { height: 36px; padding: 0 12px; font-size: 12px; letter-spacing: .04em; }
  .people-msg { width: 36px; height: 36px; }
}
/* ---- Phones: Rankings, "At least" sits right next to its dropdown ---- */
@media (max-width: 560px) {
  .toolbar:has(> label[for="min"]) { align-items: center; column-gap: 8px; }
  .toolbar:has(> label[for="min"]) > .result-count:first-child { flex-basis: 100%; }
  .toolbar:has(> label[for="min"]) > span[style*="flex:1"] { display: none; }
}

/* ---- iPhones: the page can reach under the notch and home line (viewport-fit=cover), so keep things clear of them ---- */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 900px) {
  .site-header.mobile-search .header-right > .header-search { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
}
body:not(.has-tab-bar) .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---- Phones: bigger rating stars in the Log dialog, easier to hit with a thumb ---- */
@media (max-width: 640px) {
  .log-dialog #log-stars.star-input { --size: 40px !important; letter-spacing: 3px; }
  .log-dialog .row:has(#log-stars) { flex-wrap: wrap; row-gap: 10px; }
}

/* Play sheet: four games make a 2 × 2 grid instead of 3 + 1 */
.play-sheet ul:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Phones: Messages in the bottom bar. New messages: a small orange count on the icon ---- */
@media (max-width: 900px) {
  .tab-bar .tab-mail .bell-count { top: 0; left: 32px; right: auto; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; box-shadow: 0 0 0 2px var(--bg-deep); }
  .tab-bar .tab-mail:has(.bell-count:not([hidden])) { color: var(--text); }
  .site-header .menu-toggle .bell-count { display: none; }
}
