/* creepymocha V4 - the platform pages. Same world as V3: void black, bone type, one blood red for actions and filled fear cups,
   Cinzel titles, Archivo UI, hairline rules, 8px corners, drawn cup icons. New surfaces reuse the V3 vocabulary and add no new colours. */

:root { --danger: #f0454b; --ok: #9bd3a2; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root:lang(ja) { --ui: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Archivo", sans-serif; --title: "Cinzel", "Noto Serif JP", "Yu Mincho", serif; }
:root:lang(ko) { --ui: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Archivo", sans-serif; --title: "Cinzel", "Noto Serif KR", "Batang", serif; }
:root:lang(zh-Hans) { --ui: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Archivo", sans-serif; --title: "Cinzel", "Noto Serif SC", "SimSun", serif; }
button, input, select, textarea { font: inherit; color: inherit; }
textarea { resize: vertical; }
.grow { flex: 1; }
.avatar--sm { width: 30px; height: 30px; flex: none; }
.avatar--lg { width: 64px; height: 64px; border-radius: 12px; }
small { font-size: 12px; color: var(--ash); }
code { font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--bone-2); }
b { font-weight: 650; }

/* ------------------------------------------------------------------ top bar: six tabs, a language menu */
.tabs { gap: clamp(14px, 1.8vw, 32px); }
.lm { position: relative; }
.lm__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); display: none; z-index: 40; }
.lm[data-open] .lm__menu { display: grid; }
.lm__menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 38px; padding: 0 10px; border-radius: 6px; font-size: 14px; color: var(--bone-2); text-align: left; }
.lm__menu button:hover { background: var(--ink-3); color: var(--bone); }
.lm__menu button[aria-checked="true"] { color: var(--bone); font-weight: 650; }
.lm__menu button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 7px; background: var(--red-text); }
.lm__menu button[aria-checked="true"] small { display: none; }
.me__menu { min-width: 250px; max-height: calc(100svh - 90px); overflow: auto; }
.me__menu a, .me__menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--bone-2); }
.me__menu a:hover, .me__menu button:hover { background: var(--ink-3); color: var(--bone); }
.me__menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.me__who { align-items: center; }
.me__who small { display: block; font-weight: 400; margin-top: 1px; }
.top .lang { height: 34px; }
.tabs a[data-tab="create"] { white-space: nowrap; }

/* ------------------------------------------------------------------ footer */
.foot { display: block; padding: 34px var(--gutter) 28px; margin-top: clamp(56px, 7vw, 110px); }
.foot__top { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(120px, 1fr)); gap: 28px clamp(16px, 2.4vw, 40px); }
.foot__brand p { margin-top: 12px; font-size: 14px; color: var(--bone-2); max-width: 30ch; }
.foot__brand .foot__note { font-size: 12px; color: var(--ash); }
.foot__col { display: grid; gap: 8px; align-content: start; }
.foot__col h2 { font: 650 13px/1.3 var(--ui); color: var(--bone); margin-bottom: 4px; }
.foot__col a { font-size: 14px; color: var(--ash); width: fit-content; }
.foot__col a:hover { color: var(--bone); }
.foot__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ash); }
body.is-swipe .foot { display: none; }

/* ------------------------------------------------------------------ page scaffolds */
.gh { padding: clamp(18px, 2.4vw, 34px) var(--gutter) 0; }
.pagehead { display: grid; gap: 10px; margin-bottom: clamp(18px, 2.4vw, 30px); max-width: 78ch; }
.pagehead h1 { font-family: var(--title); font-weight: 800; font-size: clamp(32px, 3.8vw, 58px); line-height: 1.04; text-wrap: balance; }
.pagehead .lead { font-size: clamp(16px, 1.15vw, 18px); max-width: 66ch; }
.pagehead__acts { margin-top: 6px; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.subnav a { position: relative; height: 44px; display: grid; place-items: center; font-size: 15px; font-weight: 500; color: var(--bone-2); }
.subnav a:hover { color: var(--bone); }
.subnav a[aria-current="page"] { color: var(--bone); font-weight: 650; }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.chips--flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.chips--flow .chip { background: transparent; height: 38px; font-size: 14px; padding: 0 14px; }
.chips--flow .chip small { color: inherit; opacity: 0.6; margin-left: 2px; }
.chips--flow .chip .ic { display: inline; }
.chips--flow .chip:not([aria-pressed="true"]) .ic { display: inline; }
.chip[aria-pressed="true"] small { color: var(--void); }
a.chip[aria-pressed="true"] { background: var(--bone); color: var(--void); }
.chips--flow .chip[aria-pressed="true"] { background: var(--bone); color: var(--void); border-color: var(--bone); font-weight: 650; }
.chips--flow .chip[aria-pressed="true"] .ic { color: var(--red); }
.srcbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 14px var(--gutter) 0; padding: 12px 16px; border-radius: 10px; background: var(--roast); border: 1px solid var(--line-2); font-size: 15px; }
.shelf--row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.shelf--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
.tile__crown { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: rgba(14, 11, 10, 0.78); color: var(--bone); }
.tile__crown .ic { width: 15px; height: 15px; }
.tile__state { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 5px; background: rgba(14, 11, 10, 0.82); font-size: 12px; font-weight: 650; text-align: center; }
.tile__state.is-wip { color: var(--bone-2); font-weight: 500; }
.tile--ad .tile__poster--ad { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 14px; background: var(--ink-2); border: 1px dashed var(--line-2); }
.tile--ad .tile__poster--ad small { color: var(--bone-2); font-size: 13px; }
.src { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 650; background: var(--ink-3); color: var(--bone); border: 1px solid var(--line-2); white-space: nowrap; }
.src i { font-style: normal; font-weight: 400; color: var(--bone-2); }
.src--original { background: var(--red); border-color: var(--red); }
.src--folklore { background: var(--roast); border-color: transparent; }
.src--licensed { background: var(--bone); color: var(--void); border-color: var(--bone); }
.src--community { background: transparent; }
.told { font-style: normal; color: var(--bone-2); }

.band { display: grid; gap: 24px clamp(20px, 3vw, 48px); align-items: center; margin: clamp(40px, 5vw, 72px) var(--gutter) 0; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: var(--ink-1); }
.band .h2 { font-size: clamp(24px, 2.4vw, 36px); text-wrap: balance; }
.band .lead { margin-top: 10px; max-width: 58ch; }
.swb { grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); }
.swb__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.swb__phone { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2); justify-self: end; width: 100%; }
.swb__phone img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 0.8s var(--out); }
.swb__phone:hover img { transform: scale(1.1); }
.swb__phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85)); }
.swb__beats { position: absolute; z-index: 1; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; }
.swb__beats i { flex: 1; height: 3px; border-radius: 3px; background: rgba(237, 230, 216, 0.3); }
.swb__beats i:nth-child(-n + 2) { background: var(--bone); }
.swb__cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 14px; font-size: 13px; font-weight: 600; line-height: 1.35; text-shadow: 0 2px 6px #000; }
.gb { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.gb__faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gb__faces a { aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.gb__faces img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--out); }
.gb__faces a:hover img { transform: scale(1.06); }
.gb__txt { display: grid; gap: 4px; justify-items: start; }
.gb__txt .btn { margin-top: 14px; }
.tb { grid-template-columns: minmax(0, 1fr) auto; }

/* ------------------------------------------------------------------ title page */
.rights { display: grid; gap: 4px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--bone-2); max-width: 62ch; }
.rights p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.promo { display: grid; gap: 4px; margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--ink-1); font-size: 15px; color: var(--bone-2); max-width: 78ch; }
.promo b { font-family: var(--title); color: var(--bone); font-size: 17px; }
.beats-legend { display: flex; gap: 4px; margin: 0 0 14px; font-size: 12px; color: var(--bone-2); max-width: 520px; }
.beats-legend span { display: grid; gap: 6px; min-width: 0; white-space: nowrap; }
.beats-legend i { display: block; height: 3px; border-radius: 3px; background: var(--red-text); }
.beats-legend span:nth-child(2) i { background: var(--bone-2); }
.beats-legend span:nth-child(3) i { background: var(--bone); }
.ep__dur { display: inline-flex; align-items: center; gap: 10px; }
.ep__dur .ic { width: 16px; height: 16px; }
.ep__dur em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--red-text); }
.ep--link { text-decoration: none; }
.ep__thumb { position: relative; }
.ep__thumb .uf__bar { z-index: 1; }
.also { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.also li { border-bottom: 1px solid var(--line); }
.also a, .also button, .also li > span { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; width: 100%; padding: 14px 12px 14px 0; text-align: left; }
.also a:hover, .also button:hover { background: var(--ink-1); }
.also .ic { margin-top: 2px; color: var(--red-text); }
.also b { display: block; font-size: 15px; }
.also small { display: block; margin-top: 2px; font-size: 13px; }
.ghostrow { display: flex; flex-wrap: wrap; gap: 14px; }
.ghostrow a { display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 10px; max-width: 360px; transition: border-color 0.2s var(--out); }
.ghostrow a:hover { border-color: var(--bone); }
.ghostrow img { width: 54px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.ghostrow b { display: block; font-size: 15px; }
.ghostrow small { display: block; font-size: 13px; color: var(--bone-2); }

/* ------------------------------------------------------------------ library filters */
.fgroup--d summary { cursor: pointer; list-style: none; }
.fgroup--d summary::-webkit-details-marker { display: none; }
.fgroup--d summary h3 { display: flex; align-items: center; justify-content: space-between; }
.fgroup--d summary h3::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--bone-2); border-bottom: 1.5px solid var(--bone-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s var(--out); }
.fgroup--d[open] summary h3::after { transform: rotate(225deg); }
.fgroup--d[open] > summary { margin-bottom: 6px; }
.filters .fgroup--d { gap: 0; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 16px; max-width: 760px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bone-2); }
.form input[type="text"], .form input[type="email"], .form input[type="number"], .form select, .form textarea, .lib__head select, .cm__form input, .cm__form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink-1); font-size: 15px; font-weight: 400; color: var(--bone); }
.form select { appearance: none; padding-right: 34px; background: var(--ink-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b1a5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; cursor: pointer; }
.form textarea { min-height: 120px; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder, .cm__form input::placeholder, .cm__form textarea::placeholder { color: var(--ash); }
.form input:focus, .form select:focus, .form textarea:focus, .cm__form input:focus, .cm__form textarea:focus { border-color: var(--bone); outline: none; }
.form input[type="range"] { accent-color: var(--red); min-height: 0; padding: 0; border: 0; background: none; height: 28px; }
.form__2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__set { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 10px; display: grid; gap: 2px; }
.form__set legend { padding: 0 8px; font-size: 13px; font-weight: 650; color: var(--bone-2); }
.opt--wrap { align-items: flex-start; height: auto; padding: 8px; line-height: 1.4; }
.opt--wrap input { margin-top: 2px; }
.form__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.form__err { padding: 10px 12px; border-radius: 8px; background: rgba(240, 69, 75, 0.12); border: 1px solid var(--danger); color: var(--bone); font-size: 14px; }
.form--inline, .form--col { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; max-width: none; }
.form--col { flex-direction: column; align-items: stretch; max-width: 420px; }
.form--inline label { min-width: 200px; }
.count { font-weight: 400; }
.count.is-ok { color: var(--ok); }
.checkgrid { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.checks { display: grid; gap: 8px; margin: 14px 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--bone-2); font-size: 15px; }
.checks .ic { color: var(--red-text); margin-top: 2px; width: 18px; height: 18px; }
.auth { max-width: 560px; margin: 0 auto; padding-bottom: 40px; }
.auth__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.rule { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ink-1); position: sticky; top: calc(var(--top) + 18px); font-size: 15px; color: var(--bone-2); }
.rule h2, .rule h3 { font-family: var(--title); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; color: var(--bone); }
.rule--wide { position: static; margin-top: 24px; max-width: 78ch; justify-items: start; }
.done { display: grid; gap: 16px; justify-items: start; }
.done__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--red); }
.done__mark .ic { width: 26px; height: 26px; }
.done h2 { font-family: var(--title); font-size: clamp(24px, 2.4vw, 34px); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); width: 100%; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ash); }
.steps li i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid var(--ash); font-style: normal; font-size: 12px; font-weight: 700; }
.steps li i .ic { width: 14px; height: 14px; }
.steps b { display: block; font-size: 15px; }
.steps small { display: block; font-size: 13px; }
.steps li.is-done { color: var(--bone-2); }
.steps li.is-done i { background: var(--bone-2); border-color: var(--bone-2); color: var(--void); }
.steps li.is-now { color: var(--bone); }
.steps li.is-now i { background: var(--red); border-color: var(--red); color: var(--bone); }
.mysubs { display: grid; gap: 18px; }
.mysubs > li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; }
.mysubs__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 17px; }
.mysubs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.split div { padding: 18px; display: grid; gap: 6px; }
.split div + div { border-left: 1px solid var(--line); }
.split dt { font-size: 13px; color: var(--bone-2); }
.split dd { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); font-variant-numeric: tabular-nums; }
.briefs { display: grid; border-top: 1px solid var(--line); }
.briefs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.briefs b { display: block; font-size: 16px; }
.briefs small { display: block; font-size: 14px; color: var(--bone-2); margin-top: 2px; }

/* ------------------------------------------------------------------ comments, threads */
.cm { display: grid; gap: 14px; max-width: 760px; }
.cm .sect__head { margin-bottom: 0; }
.cm .h2 small { font-family: var(--ui); font-weight: 400; font-size: 14px; }
.cm__form { display: flex; gap: 10px; align-items: flex-start; }
.cm__form textarea, .cm__form input { flex: 1; min-height: 44px; }
.cm__form textarea { min-height: 44px; }
.cm__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cm__list > li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cm__by { font-weight: 650; font-size: 14px; }
.cm__by small { margin-left: 6px; font-weight: 400; }
.vw__comments .cm { max-width: none; }
.sheet--comments .cm { max-width: none; }
.threads { display: grid; border-top: 1px solid var(--line); margin-top: 14px; }
.threads > li { border-bottom: 1px solid var(--line); }
.threads summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; cursor: pointer; list-style: none; }
.threads summary::-webkit-details-marker { display: none; }
.threads summary b { display: block; font-size: 16px; }
.threads summary small { display: block; margin-top: 2px; }
.threads details[open] summary .ic { transform: rotate(180deg); }
.threads__rep { display: grid; gap: 8px; padding: 0 4px 12px; font-size: 15px; color: var(--bone-2); }
.threads__rep b { color: var(--bone); margin-right: 6px; }
.threads .cm__form { padding: 0 4px 14px; }

/* ------------------------------------------------------------------ me */
.me__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; max-width: none; }
.me__head > div:nth-child(2) { flex: 1; min-width: 220px; }
.me__acts { display: flex; gap: 8px; }
.xp { display: grid; gap: 10px; max-width: 640px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.xp__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.xp__bar { height: 6px; border-radius: 6px; background: var(--ink-3); overflow: hidden; }
.xp__bar i { display: block; height: 100%; background: var(--red-text); border-radius: inherit; transition: width 0.6s var(--out); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--line); }
.badges li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); opacity: 0.55; }
.badges li.is-on { opacity: 1; }
.badges__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink-3); }
.badges li.is-on .badges__mark { background: var(--red); }
.badges b { display: block; font-size: 15px; }
.badges small { display: block; font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--bone-2); }
.facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ ghost encyclopedia */
.gh__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 4px; }
.gh__bar .search { flex: 1 1 280px; max-width: 460px; }
.search--lg { max-width: 640px; height: 54px; margin-bottom: 20px; }
.search--lg input { font-size: 17px; }
.ghgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: 6px; }
.ghgrid--sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gcard { display: grid; gap: 4px; align-content: start; }
.gcard__img { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--ink-1); margin-bottom: 6px; }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--out); }
.gcard:hover .gcard__img img { transform: scale(1.05); }
.gcard__name { font-family: var(--title); font-weight: 700; font-size: 18px; line-height: 1.15; }
.gcard:hover .gcard__name { color: var(--red-text); }
.gcard__native { font-size: 13px; color: var(--ash); }
.gcard__tag { font-size: 14px; color: var(--bone-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard__reg { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: var(--ash); }
.gcard__reg .ic { width: 14px; height: 14px; }
.gp { padding: clamp(18px, 2vw, 28px) var(--gutter) 0; }
.gp__top { display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 56px); margin-top: 14px; align-items: end; }
.gp__img { border-radius: 12px; overflow: hidden; background: var(--ink-1); aspect-ratio: 2 / 3; }
.gp__img img { width: 100%; height: 100%; object-fit: cover; }
.gp__head { display: grid; gap: 12px; align-content: end; padding-bottom: 6px; }
.gp__head h1 { font-family: var(--title); font-weight: 800; font-size: clamp(36px, 5vw, 76px); line-height: 1; text-wrap: balance; }
.gp__native { font-size: 18px; color: var(--bone-2); }
.gp__tag { font-family: var(--title); font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; max-width: 28ch; }
.gp__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gp__facts a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--bone-2); border-bottom: 1px solid var(--line-2); }
.gp__facts a:hover { color: var(--bone); border-color: var(--bone); }
.gp__facts .ic { width: 16px; height: 16px; }
.gp__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.gp__dl { margin: clamp(26px, 3vw, 44px) 0 0; border-top: 1px solid var(--line); max-width: 960px; }
.gp__row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gp__row dt { font-size: 14px; font-weight: 650; color: var(--bone-2); }
.gp__row dd { margin: 0; font-size: 17px; line-height: 1.55; max-width: 64ch; }
.gp__gal { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.gp__gal img { height: 240px; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; flex: none; }
.gp__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.gp__nav a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--title); font-weight: 700; font-size: 17px; color: var(--bone-2); }
.gp__nav a:hover { color: var(--bone); }
.linklist { display: grid; border-top: 1px solid var(--line); max-width: 760px; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 6px 12px 0; }
.linklist a:hover b { color: var(--red-text); }
.linklist .ic { color: var(--red-text); margin-top: 2px; }
.linklist b { display: block; font-size: 16px; }
.linklist small { display: block; font-size: 13px; }
.catlist { display: grid; border-top: 1px solid var(--line); }
.catrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background-color 0.2s var(--out); }
.catrow:hover { background: var(--ink-1); }
.catrow__txt { display: grid; gap: 3px; padding-left: 4px; }
.catrow__txt b { font-family: var(--title); font-size: clamp(20px, 2vw, 28px); }
.catrow__txt small { font-size: 14px; color: var(--bone-2); }
.catrow__txt em { font-style: normal; font-size: 13px; color: var(--red-text); font-weight: 650; }
.catrow__imgs { display: flex; gap: 6px; padding-right: 4px; }
.catrow__imgs img { width: 54px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.regions a { display: grid; gap: 2px; padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); }
.regions a:hover b { color: var(--red-text); }
.regions b { font-size: 16px; }

/* ------------------------------------------------------------------ stories and comics */
.storylist { display: grid; border-top: 1px solid var(--line); }
.storyrow { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.storyrow__img { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--ink-1); }
.storyrow__img img { width: 100%; height: 100%; object-fit: cover; }
.storyrow h3 { font-family: var(--title); font-size: clamp(20px, 1.9vw, 26px); }
.storyrow h3 a:hover { color: var(--red-text); }
.storyrow .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.storyrow__line { margin-top: 6px; font-size: 15px; color: var(--bone-2); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.storyrow__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.story { max-width: 740px; margin: 0 auto; padding: clamp(18px, 2vw, 28px) var(--gutter) 0; }
.story__head { display: grid; gap: 8px; margin: 14px 0 18px; }
.story__head h1 { font-family: var(--title); font-weight: 800; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.04; text-wrap: balance; }
.story__head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.story__head .meta a { text-decoration: underline; text-underline-offset: 3px; }
.story__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-block: 1px solid var(--line); position: sticky; top: var(--top); background: var(--void); z-index: 5; }
.seg--sm { grid-auto-flow: column; }
.seg--sm button { height: 32px; padding: 0 12px; font-size: 13px; }
.story__bar { height: 2px; background: var(--ink-3); margin-bottom: 8px; }
.story__bar i { display: block; height: 100%; width: 0; background: var(--red-text); transition: width 0.6s var(--out); }
.story__body { display: grid; gap: 1.1em; margin: 26px 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.75; font-family: Georgia, "Noto Serif Thai", "Noto Sans Thai", serif; }
:root:lang(th) .story__body { font-family: var(--th); line-height: 1.9; }
.story__body p { padding: 4px 10px; margin-inline: -10px; border-radius: 6px; transition: background-color 0.4s var(--out), color 0.4s var(--out); color: var(--bone-2); }
.story__body p.is-reading { background: rgba(192, 20, 28, 0.14); color: var(--bone); }
.plate { margin: 10px -4px; border-radius: 10px; overflow: hidden; background: var(--ink-1); }
.plate img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.plate figcaption { padding: 6px 10px; font-size: 12px; color: var(--ash); }
.story__end { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.cpages { display: grid; gap: 22px; margin: 22px 0; }
.cpage { background: #f3efe6; border-radius: 4px; overflow: hidden; }
.cpage img { width: 100%; height: auto; }
.cpage figcaption { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 14px; background: var(--ink-1); font-size: 15px; line-height: 1.55; color: var(--bone-2); }
.cpage figcaption span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--red); color: var(--bone); font-size: 12px; font-weight: 700; }
.lockbox { display: grid; gap: 14px; justify-items: start; padding: 26px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-1); margin: 22px 0; }
.lockbox h2 { font-family: var(--title); font-size: clamp(22px, 2.2vw, 32px); }
.lockov__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--ink-3); }
.pipemini { display: flex; gap: 3px; width: 100%; max-width: 560px; }
.pipemini li { flex: 1; height: 24px; display: grid; align-items: center; }
.pipemini i { display: block; height: 4px; border-radius: 4px; background: var(--ink-3); }
.pipemini .is-done i { background: var(--bone-2); }
.pipemini .is-now i { background: var(--red-text); height: 8px; }
body.lights-out .top, body.lights-out .foot, body.lights-out .bar { opacity: 0.08; transition: opacity 0.8s var(--out); }
body.lights-out .top:hover, body.lights-out .bar:hover { opacity: 1; }
body.lights-out .story { transition: filter 0.8s var(--out); }

/* ------------------------------------------------------------------ plans and shop */
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan.is-now h2::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 8px; background: var(--red-text); vertical-align: middle; }
.plan .btn[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.compare th, .compare td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--title); font-size: 18px; border-bottom: 1px solid var(--line-2); }
.compare tbody th { font-weight: 500; color: var(--bone-2); width: 26%; }
.compare .yes { color: var(--red-text); }
.compare .no { color: var(--ash); }
.compare td { color: var(--bone-2); }
.collab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 18px 22px; margin-bottom: 26px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--roast); }
.collab .lead { max-width: 60ch; margin-top: 6px; color: var(--bone-2); }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.prod { display: grid; gap: 12px; align-content: start; }
.prod__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink-1); cursor: pointer; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--out); }
.prod__img:hover img { transform: scale(1.05); }
.prod__info { display: grid; gap: 6px; }
.prod__info h3 { font-family: var(--title); font-size: 19px; }
.prod__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.prod__row b, .prod__price { font-size: 18px; font-variant-numeric: tabular-nums; }
.prodsheet { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 22px; align-items: start; }
.prodsheet img { width: 100%; border-radius: 10px; }
.prodsheet > div { display: grid; gap: 12px; }
.cart { display: grid; border-top: 1px solid var(--line); }
.cart li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cart b { display: block; font-size: 15px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-2); }
.qty button:hover { border-color: var(--bone); }
.qty b { min-width: 22px; text-align: center; }
.cart__total { display: flex; justify-content: space-between; margin: 14px 0; font-size: 18px; }

/* ------------------------------------------------------------------ partners */
.tablewrap { overflow-x: auto; border-top: 1px solid var(--line); }
.tablewrap--tall { max-height: 620px; overflow: auto; }
.lic { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.lic th, .lic td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.lic thead th { position: sticky; top: 0; z-index: 2; background: var(--void); font-size: 12px; font-weight: 650; color: var(--bone-2); white-space: nowrap; }
.lic tbody th { font-weight: 500; }
.lic small { display: block; font-size: 12px; color: var(--ash); }
.licname { display: flex; align-items: center; gap: 12px; }
.licname img { width: 34px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.licname span { font-weight: 650; font-size: 15px; }
.adformats { display: grid; gap: 30px; margin-top: 18px; }
.adformats section { display: grid; gap: 10px; max-width: 760px; }
.adprev, .sponsorprev { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 26px; border-radius: 14px; background: #060505; border: 1px solid var(--line); max-width: 420px; }
.sponsorprev { display: flex; align-items: center; gap: 16px; text-align: left; justify-items: start; padding: 0; overflow: hidden; max-width: 520px; }
.sponsorprev img { width: 46%; aspect-ratio: 16 / 10; object-fit: cover; }
.sponsorprev div { display: grid; gap: 2px; padding: 12px 14px 12px 0; }
.sponsorprev b { font-size: 20px; }
.sponsorprev h3 { font-family: var(--title); font-size: 22px; }
.collabs { display: grid; border-top: 1px solid var(--line); max-width: 860px; margin-top: 16px; }
.collabs li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.collabs b { font-family: var(--title); font-size: 20px; }
.collabs span { color: var(--bone-2); font-size: 15px; }

/* ------------------------------------------------------------------ about and studio */
.hero { display: grid; gap: 14px; padding: clamp(10px, 3vw, 40px) 0 clamp(30px, 4vw, 60px); max-width: 86ch; }
.hero h1 { font-family: var(--title); font-weight: 800; font-size: clamp(44px, 7vw, 108px); line-height: 0.98; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.4vw, 21px); max-width: 60ch; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.trio > div { padding: 18px 20px 18px 0; display: grid; gap: 6px; align-content: start; }
.trio > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.trio dt { font-family: var(--title); font-weight: 800; font-size: 28px; }
.trio dd { margin: 0; color: var(--bone-2); font-size: 16px; }
.products4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); }
.products4 li { border-bottom: 1px solid var(--line); }
.products4 a { display: grid; grid-template-columns: 24px 1fr 20px; gap: 12px; align-items: center; padding: 15px 8px 15px 0; font-size: 16px; font-weight: 500; }
.products4 a:hover { color: var(--red-text); }
.products4 .ic { color: var(--red-text); }
.pipe { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pipe button { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 14px; color: var(--bone-2); }
.pipe button i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ink-3); font-style: normal; font-size: 11px; font-weight: 700; }
.pipe button:hover { color: var(--bone); border-color: var(--bone); }
.pipe button[aria-selected="true"] { background: var(--bone); color: var(--void); border-color: var(--bone); font-weight: 650; }
.pipe button[aria-selected="true"] i { background: var(--red); color: var(--bone); }
.pipe__out { display: grid; gap: 8px; max-width: 70ch; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-1); }
.pipe__out h3 { font-family: var(--title); font-size: 24px; }
.pipe__out p { font-size: 17px; color: var(--bone-2); }
.pipe__out .meta { display: flex; align-items: center; gap: 8px; }
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.sources li { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.sources p { font-size: 15px; color: var(--bone-2); }
.cues { display: grid; border-top: 1px solid var(--line); max-width: 780px; }
.cues li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cues__b { font-size: 13px; font-weight: 650; color: var(--red-text); }
.cues p { font-size: 18px; line-height: 1.5; }
.words { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--title); font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); }
.vision { display: grid; gap: 18px; justify-items: start; margin-top: clamp(36px, 5vw, 70px); padding: clamp(24px, 4vw, 52px); border-radius: 16px; background: var(--red); }
.vision p { font-family: var(--title); font-weight: 700; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.25; max-width: 32em; text-wrap: balance; }
.vision .btn--line { border-color: rgba(237, 230, 216, 0.6); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.dtag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.dtag--live { background: var(--bone); color: var(--void); }
.dtag--demo { background: transparent; color: var(--bone-2); border: 1px dashed var(--bone-2); }
.kpi { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.kpi th, .kpi td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kpi thead th { font-size: 12px; color: var(--bone-2); font-weight: 650; }
.kpi tbody th { font-weight: 650; min-width: 220px; }
.kpi tbody th .ic { color: var(--red-text); width: 16px; height: 16px; margin-right: 6px; display: inline-block; vertical-align: -2px; }
.kpi tbody th small { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--bone-2); }
.kpi td { font-variant-numeric: tabular-nums; }
.kpi .is-star { background: rgba(192, 20, 28, 0.1); }
.inl { display: inline-flex; align-items: center; gap: 6px; }
.inl input { width: 104px; min-height: 36px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--ink-1); }
.funnel { display: grid; gap: 8px; max-width: 640px; }
.funnel li { display: grid; grid-template-columns: 42px 1fr 48px; gap: 12px; align-items: center; font-size: 14px; }
.funnel__bar { height: 14px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.funnel__bar i { display: block; height: 100%; background: var(--red); }
.funnel b { text-align: right; font-variant-numeric: tabular-nums; }
.lab__ctl { margin-bottom: 16px; }
.lab__ctl label { font-size: 14px; }
.lab tr.is-top { background: rgba(192, 20, 28, 0.13); }
.lab td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.ladder li { flex: 1 1 160px; display: grid; gap: 4px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.ladder li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.ladder b { font-family: var(--title); font-size: 30px; font-variant-numeric: tabular-nums; }
.ladder span { font-size: 14px; color: var(--bone-2); }
.engine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.engine__fw { display: grid; gap: 10px; }
.fw { width: 100%; max-width: 520px; height: auto; color: var(--bone-2); }
.fw__a { fill: none; stroke: currentColor; stroke-width: 1.6; }
.fw__n rect { fill: var(--ink-1); stroke: var(--line-2); transition: fill 0.2s var(--out), stroke 0.2s var(--out); }
.fw__n text { fill: var(--bone); font: 600 13px var(--ui); }
.fw__n:hover rect, .fw__n:focus rect { fill: var(--red); stroke: var(--red); }
.fw__c { fill: var(--bone-2); font: 800 20px var(--title); }
.moat { display: grid; border-top: 1px solid var(--line); }
.moat li { border-bottom: 1px solid var(--line); }
.moat a { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 20px; gap: 14px; align-items: center; padding: 12px 6px 12px 0; }
.moat a:hover b { color: var(--red-text); }
.moat span { font-size: 14px; color: var(--bone-2); }
.thesis { margin: clamp(30px, 4vw, 56px) 0 0; padding: 0; font-family: var(--title); font-weight: 600; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.35; max-width: 40em; text-wrap: balance; }
.road { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); border-top: 1px solid var(--line); }
.road li { border-bottom: 1px solid var(--line); }
.road a { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 13px 8px 13px 0; font-size: 15px; }
.road a:hover { color: var(--red-text); }
.road__s { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--ash); }
.road--live .road__s { background: var(--red); border-color: var(--red); }
.road--partial .road__s { border-color: var(--bone-2); }
.road__s .ic { width: 12px; height: 12px; }
.road em { font-style: normal; font-size: 12px; color: var(--ash); }
.road--later { color: var(--bone-2); }

/* ------------------------------------------------------------------ sheet and toasts */
.sheet { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; }
.sheet__bg { position: absolute; inset: 0; background: rgba(5, 4, 4, 0.74); opacity: 0; transition: opacity 0.3s var(--out); }
.sheet.is-in .sheet__bg { opacity: 1; }
.sheet__box { position: relative; width: min(760px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow: auto; padding: 30px; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(14px); transition: opacity 0.3s var(--out), transform 0.4s var(--out); scrollbar-width: thin; }
.sheet.is-in .sheet__box { opacity: 1; transform: none; }
.sheet__x { position: absolute; right: 10px; top: 10px; }
.sheet__h { font-family: var(--title); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); margin: 0 36px 14px 0; }
.sheet__lead { color: var(--bone-2); margin-bottom: 16px; max-width: 60ch; }
.sheet--sm .sheet__box { width: min(480px, calc(100% - 32px)); }
.sheet--form .sheet__box { width: min(640px, calc(100% - 32px)); }
.sheet--share .sheet__box { width: min(820px, calc(100% - 32px)); }
.share { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 22px; align-items: start; }
.share__clip { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; }
.share__clip img { width: 100%; height: 100%; object-fit: cover; }
.share__clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 28%, transparent 56%, rgba(0, 0, 0, 0.9)); }
.share__title { position: absolute; z-index: 1; left: 10px; right: 10px; top: 10px; font-family: var(--title); font-weight: 700; font-size: 14px; }
.share__end { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 12px; padding: 8px 10px; border-radius: 8px; background: var(--red); font-size: 13px; font-weight: 700; text-align: center; }
.share__side { display: grid; gap: 10px; }
.share__side label { font-size: 13px; font-weight: 650; color: var(--bone-2); }
.share__side textarea { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--void); font: 14px/1.5 var(--ui); color: var(--bone); }
.share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.toasts { position: fixed; z-index: 160; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 10px; background: var(--bone); color: var(--void); font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity 0.3s var(--out), transform 0.4s var(--out); pointer-events: auto; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7); }
.toast.is-in { opacity: 1; transform: none; }
.toast a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .top .lk__word { display: none; }
  .brewbtn span { display: none; }
  .brewbtn { width: 38px; padding: 0; justify-content: center; }
  .shelf--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .engine { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .top { grid-template-columns: auto 1fr; }
  .tabs { display: none; }
  body { padding-bottom: 64px; }
  .bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(14, 11, 10, 0.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--ash); min-width: 0; padding: 0 2px; }
  .bar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar a[aria-current="page"] { color: var(--bone); }
  .bar a[aria-current="page"] .ic { color: var(--red-text); }
  .toasts { bottom: 82px; }
  .swb, .gb, .tb { grid-template-columns: 1fr; }
  .swb__phone { justify-self: start; max-width: 220px; }
  .gp__top { grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); }
  .tell, .calc { grid-template-columns: 1fr; }
  .rule { position: static; }
  .plans { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .share { grid-template-columns: 1fr; }
  .share__clip { max-width: 200px; }
  .storyrow { grid-template-columns: 64px minmax(0, 1fr); }
  .storyrow__acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .shelf--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shelf--row .tile__title { font-size: 13px; }
  .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp__top { grid-template-columns: 1fr; }
  .gp__img { max-width: 260px; }
  .gp__row { grid-template-columns: 1fr; gap: 4px; }
  .form__2 { grid-template-columns: 1fr; }
  .moat a { grid-template-columns: 1fr 20px; }
  .moat span { grid-column: 1; }
  .cues li { grid-template-columns: 1fr; gap: 4px; }
  .sheet { place-items: end center; }
  .sheet__box { width: 100%; max-height: 90svh; border-radius: 16px 16px 0 0; padding: 24px 18px 28px; transform: translateY(40px); }
  .sheet--sm .sheet__box, .sheet--form .sheet__box, .sheet--share .sheet__box { width: 100%; }
  .prodsheet { grid-template-columns: 1fr; }
  .prodsheet img { max-width: 220px; }
  .compare tbody th { width: auto; }
  .catrow__imgs img:nth-child(3) { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 64px); }
  .pagehead h1 { font-size: clamp(30px, 9vw, 44px); }
  .unfinished { grid-template-columns: 1fr; }
  .split dd { font-size: 20px; }
}

/* ------------------------------------------------------------------ V5: films, the landscape category */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.fgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fcard { display: grid; gap: 12px; align-content: start; }
.fcard__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink-1); }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transition: transform 0.7s var(--out); }
.fcard:hover .fcard__img img { transform: scale(1.04); }
.fcard__len { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 5px; background: rgba(14, 11, 10, 0.82); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.fcard__img .uf__bar { z-index: 1; }
.fcard__info { display: grid; gap: 6px; align-content: start; }
.fcard__title { font-family: var(--title); font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.15; }
.fcard__title a:hover { color: var(--red-text); }
.fcard__promo { font-size: 14px; color: var(--bone-2); max-width: 60ch; }
.fcard__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fhero { position: relative; display: grid; align-items: end; min-height: clamp(280px, 36vw, 500px); border-radius: 16px; overflow: hidden; background: var(--ink-1); margin-bottom: clamp(8px, 1.6vw, 20px); }
.fhero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.fhero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14, 11, 10, 0.94) 0%, rgba(14, 11, 10, 0.66) 36%, rgba(14, 11, 10, 0) 68%), linear-gradient(0deg, rgba(14, 11, 10, 0.78), rgba(14, 11, 10, 0) 42%); }
.fhero__txt { position: relative; z-index: 1; display: grid; gap: 10px; max-width: 560px; padding: clamp(20px, 3vw, 44px); }
.fhero h2 { font-family: var(--title); font-weight: 800; font-size: clamp(32px, 4.6vw, 70px); line-height: 1; text-wrap: balance; }
.fhero__syn { color: var(--bone-2); font-size: clamp(15px, 1.2vw, 18px); max-width: 48ch; }
.fhero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ladder--n b { color: var(--red-text); }

/* ------------------------------------------------------------------ V6: the reviewer's inbox (mock) */
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.inbox__list { display: grid; gap: 12px; align-content: start; position: sticky; top: calc(var(--top) + 14px); max-height: calc(100svh - var(--top) - 28px); overflow: auto; scrollbar-width: thin; padding-right: 4px; }
.inbox__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inbox__tools .search { flex: 1 1 200px; height: 40px; }
.inbox__tools .sort select { height: 40px; }
.inbox .chips--flow { margin: 0; gap: 6px; }
.inbox .chips--flow .chip { height: 32px; font-size: 13px; padding: 0 10px; }
.ibrows { display: grid; border-top: 1px solid var(--line); }
.ibrows li { border-bottom: 1px solid var(--line); }
.ibrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 8px 12px 4px; border-radius: 6px; transition: background-color 0.2s var(--out); }
.ibrow:hover { background: var(--ink-1); }
.ibrow.is-cur { background: var(--ink-2); }
.ibrow.is-cur .ibrow__main b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 7px; background: var(--red-text); vertical-align: middle; }
.ibrow__main { display: grid; gap: 2px; min-width: 0; }
.ibrow__main b { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibrow__main small { font-size: 12px; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibrow__side { display: grid; justify-items: end; gap: 4px; }
.ibrow__side em { font-style: normal; font-size: 11px; color: var(--bone-2); }
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; border: 1px solid var(--line-2); color: var(--bone-2); }
.st--new { background: var(--bone); color: var(--void); border-color: var(--bone); }
.st--review { color: var(--bone); border-color: var(--bone-2); }
.st--needs { color: var(--red-text); border-color: var(--red-text); }
.st--cleared { background: var(--ink-3); color: var(--bone); }
.st--prod { background: var(--roast); color: var(--bone); border-color: transparent; }
.st--live { background: var(--red); color: var(--bone); border-color: var(--red); }
.st--declined { color: var(--ash); border-style: dashed; }
.inbox__detail { min-width: 0; }
.ibd { display: grid; gap: 18px; }
.ibd__head { display: grid; gap: 8px; }
.ibd__head h2 { font-family: var(--title); font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; text-wrap: balance; }
.ibd__back { display: none; }
.ibd__st { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ibd__assign { margin-left: auto; font-size: 13px; color: var(--bone-2); }
.ibd__assign select { height: 34px; min-height: 0; padding: 0 28px 0 8px; font-size: 14px; border-radius: 6px; border: 1px solid var(--line-2); background-color: var(--ink-1); }
.stagebar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 6px; }
.stagebar li { display: grid; gap: 5px; font-size: 12px; color: var(--ash); }
.stagebar i { display: block; height: 4px; border-radius: 4px; background: var(--ink-3); }
.stagebar .is-done i { background: var(--bone-2); }
.stagebar .is-now i { background: var(--red-text); }
.stagebar .is-done, .stagebar .is-now { color: var(--bone); }
.ibd__flag { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--ink-1); font-size: 15px; color: var(--bone-2); }
.ibd__flag b { color: var(--bone); }
.ibd__flag--ok { border-color: var(--ok); }
.ibd__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ibd__sec { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.ibd__sec h3 { font: 650 14px/1.3 var(--ui); color: var(--bone-2); }
.ibd__sec h3 small { font-weight: 400; margin-left: 6px; }
.ibd__story { display: grid; gap: 10px; max-width: 66ch; font-size: 16px; line-height: 1.7; }
.ibd__chk { display: grid; }
.ibd__chk li { border-bottom: 1px solid var(--line); }
.ibd__chk .opt { padding: 8px 4px; }
.ibd__sec textarea { width: 100%; min-height: 78px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink-1); font-size: 15px; line-height: 1.5; }
.ibd__sec textarea:focus { border-color: var(--bone); outline: none; }
.ibd__log { display: grid; border-top: 1px solid var(--line); }
.ibd__log li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--bone-2); }
.ibd__log li span { color: var(--ash); font-size: 12px; padding-top: 2px; }
.ibd__log li b { color: var(--bone); margin-right: 4px; }
.mysubs__flag { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--ink-1); font-size: 15px; color: var(--bone-2); }
.mysubs__flag b { color: var(--bone); }
.mysubs__flag--no { border-style: dashed; }
.mysubs__links { display: flex; flex-wrap: wrap; gap: 8px; }
/* the live inbox: team sign-in, partner requests, and the bot trap field on the public forms */
.gate { display: grid; gap: 14px; max-width: 440px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-1); }
.gate label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; color: var(--bone-2); }
.gate input[type="password"] { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--void); font-size: 15px; font-weight: 400; color: var(--bone); }
.gate input[type="password"]:focus { border-color: var(--bone); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inqlist { display: grid; max-width: 78ch; border-top: 1px solid var(--line); }
.inq { display: grid; gap: 6px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.inq.is-done { opacity: 0.72; }
.inq__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inq__top b { font-size: 16px; }
.inq__msg { max-width: 66ch; white-space: pre-wrap; font-size: 15px; line-height: 1.6; color: var(--bone-2); }
.inq__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 980px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox__list { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .inbox--has-id .inbox__list { display: none; }
  .inbox:not(.inbox--has-id) .inbox__detail { display: none; }
  .ibd__back { display: inline-flex; }
  .ibd__assign { margin-left: 0; }
}
@media (max-width: 1360px) {
  .top .lk__word { display: none; }
  .brewbtn span { display: none; }
  .brewbtn { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 980px) {
  .fgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid--3 .fcard:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  .fgrid, .fgrid--3 { grid-template-columns: 1fr; }
  .fgrid--3 .fcard:nth-child(3) { display: grid; }
  .fhero { min-height: 340px; }
  .fhero::after { background: linear-gradient(0deg, rgba(14, 11, 10, 0.95) 0%, rgba(14, 11, 10, 0.72) 52%, rgba(14, 11, 10, 0.1) 100%); }
}
