/*
 * GTA 6 Wasted ($WASTED6) — a neon-sunset beach city, a skeleton in a lawn chair, a countdown and the red WASTED screen.
 * Heavy poster type with a black stroke, hot pink and orange over a deep night purple, a hospital discharge sheet for the address.
 * GTA 6 Wasted（$WASTED6）——霓虹日落海滨城、躺椅上的骷髅、倒计时和红色 WASTED 画面。
 * 粗海报字配黑描边，深夜紫底上用热粉和橙，合约区做成一张医院出院单。
 */
:root {
  --night: #140c1f;
  --night-2: #1f1230;
  --night-3: #2c1a44;
  --cream: #fff1e6;
  --cream-soft: #d9c8d6;
  --pink: #ff2e88;
  --pink-deep: #e01a72;
  --orange: #ff8a3d;
  --gold: #ffcf3f;
  --teal: #2ee6d6;
  --red: #d3141c;
  --ink: #1a0b12;
  --sky: #c8407e;
  --display: 'Bowlby One', 'Impact', sans-serif;
  --sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --stroke: 0 3px 0 var(--ink), 0 0 1px var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

/* Header / 页眉 */
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 241, 230, 0.12); }
.monogram { font: 400 clamp(20px, 1.7vw, 26px)/1 var(--display); color: var(--red); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.monogram span { color: var(--gold); }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 40px); font: 700 15px/1 var(--sans); }
.site-nav a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s var(--ease); }
.site-nav a:hover { border-color: var(--pink); }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.header-social { font: 700 14px/1 var(--sans); padding: 8px 10px; border: 1.5px solid var(--cream); border-radius: 999px; }
.header-ticker { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--pink); color: var(--cream); font: 700 15px/1 var(--sans); letter-spacing: 0.04em; transition: transform 0.2s var(--ease); }
.header-ticker:hover { transform: translateY(-1px); }

/* Hero: the image hugs the right edge, the copy sits in the empty sky on the left / 首屏：图贴右边，文字放在左侧空天空里 */
.hero { position: relative; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); overflow: hidden; background: linear-gradient(to bottom, #ae279b 0%, #e32d8e 15%, #fa3d7b 30%, #fc5864 45%, #fd764e 55%, #fe9f3c 62.4%, #f25667 62.6%, #c53a83 75%, #622e96 90%, #532a90 100%); }
.hero-art { position: absolute; inset: 0; }
.hero-art img { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 50%) 1fr; min-height: inherit; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(40px, 5vw, 72px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 720px; }
.eyebrow { font: 600 clamp(12px, 1vw, 14px)/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.dot { opacity: 0.6; padding: 0 2px; }
.wordmark { display: flex; flex-direction: column; font: 400 clamp(60px, 7.6vw, 132px)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.wm-gta { color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.wm-wasted { color: var(--red); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink), 0 10px 30px rgba(0, 0, 0, 0.4); }
.hero-lede { font: 700 clamp(22px, 2.2vw, 32px)/1.15 var(--sans); color: var(--cream); text-shadow: 0 2px 0 var(--ink), 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero-line { font: 500 clamp(16px, 1.3vw, 19px)/1.45 var(--sans); color: var(--cream); max-width: 40ch; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 18px rgba(20, 12, 31, 0.5); }
.countdown { display: flex; gap: 8px; margin-top: 4px; }
.countdown > div { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 10px 10px 8px; border-radius: 10px; background: rgba(20, 12, 31, 0.78); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.countdown span { font: 400 clamp(28px, 2.6vw, 40px)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown small { margin-top: 4px; font: 600 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 10px; font: 700 15px/1 var(--sans); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.2s var(--ease); }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-hot { background: var(--pink); color: var(--cream); }
.btn-line { background: var(--cream); color: var(--ink); }
.btn-ink { background: var(--cream); color: var(--ink); }
.ca-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 14px; border-radius: var(--radius); background: rgba(20, 12, 31, 0.82); border: 2px solid var(--ink); width: fit-content; }
.ca-label { font: 600 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.ca-short { font: 400 15px/1 var(--mono); color: var(--cream); }
.btn-copy { padding: 10px 14px; border-radius: 8px; border: 2px solid var(--ink); background: var(--gold); color: var(--ink); font: 700 14px/1 var(--sans); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.btn-copy:hover { transform: translateY(-1px); }
.btn-copy.is-copied { background: var(--teal); }
.btn-copy-sm { padding: 7px 12px; font-size: 13px; }
.hero-note { width: fit-content; padding: 6px 12px; border-radius: 8px; background: rgba(20, 12, 31, 0.7); font: 500 14px/1.5 var(--sans); color: var(--cream-soft); max-width: 56ch; }

/* Running head / 跑马灯 */
.running-head { overflow: hidden; background: var(--red); color: var(--cream); padding: 12px 0; font: 600 13px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; border-block: 2px solid var(--ink); }
.running-track { display: flex; gap: 48px; width: max-content; animation: run 40s linear infinite; }
.running-track span::before { content: '✚'; margin-right: 18px; font-size: 11px; }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections / 区块 */
.section { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.kicker { font: 600 clamp(12px, 1vw, 14px)/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); margin-bottom: 18px; }
.section h2 { font: 400 clamp(32px, 3.8vw, 58px)/1.02 var(--display); text-transform: uppercase; max-width: 20ch; }
.section p + p { margin-top: 14px; }
.plain { color: var(--cream-soft); }

/* The wait / 等待 */
.wait { background: var(--night-2); }
.wait-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.wait-copy h2 { margin-bottom: 26px; }
.wait-copy p { color: var(--cream-soft); }
.timeline { border-left: 3px solid var(--pink); margin-top: 8px; padding-left: 22px; }
.timeline li { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 12px 0; font: 700 clamp(16px, 1.35vw, 19px)/1.3 var(--sans); }
.timeline li::before { content: ''; position: absolute; left: -31px; top: 17px; width: 13px; height: 13px; border-radius: 50%; background: var(--night-2); border: 3px solid var(--pink); }
.timeline .year { font: 600 14px/1.6 var(--mono); letter-spacing: 0.08em; color: var(--orange); }
.timeline .now .year { color: var(--gold); }
.timeline .now::before { background: var(--gold); border-color: var(--gold); }

/* Objectives / 任务目标 */
.objectives { background: var(--night); }
.objectives h2 { margin-bottom: 40px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rules li { padding: 28px 24px 26px; background: var(--night-3); border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--pink-deep); }
.rule-no { display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: 0.2em; color: var(--teal); margin-bottom: 18px; }
.rules h3 { font: 400 clamp(22px, 1.9vw, 28px)/1.08 var(--display); text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.rules p { color: var(--cream-soft); font-size: 15.5px; }

/* The wasted screen: grayscale until Respawn / WASTED 屏：点 Respawn 前是灰的 */
.wasted-screen { position: relative; min-height: clamp(520px, 56vw, 1100px); background: #2a2a2a; overflow: hidden; display: grid; place-items: start center; }
.wasted-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: grayscale(1) contrast(1.05) brightness(0.9); transition: filter 0.9s var(--ease); }
.wasted-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: clamp(48px, 7vw, 110px) var(--gutter) 0; text-align: center; }
.wasted-word, .respawned-word { font: 400 clamp(64px, 11vw, 190px)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.02em; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.wasted-word { color: var(--red); text-shadow: 0 8px 0 var(--ink), 0 14px 40px rgba(0, 0, 0, 0.5); }
.respawned-word { display: none; color: var(--gold); text-shadow: 0 8px 0 var(--ink); }
.wasted-sub { font: 700 clamp(16px, 1.5vw, 21px)/1.3 var(--sans); color: var(--cream); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.when-respawned { display: none; }
.btn-respawn { padding: 13px 26px; border-radius: 10px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); font: 700 15px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 4px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn-respawn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.is-respawned .wasted-art { filter: none; }
.is-respawned .wasted-word, .is-respawned .when-wasted { display: none; }
.is-respawned .respawned-word { display: block; }
.is-respawned .when-respawned { display: inline; }

/* Press start (cream) / 开始（奶油底） */
.get { background: var(--cream); color: var(--ink); }
.get .kicker { color: var(--pink-deep); }
.get .plain { color: #5a4552; }
.get-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.action img { border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--pink); }
.action figcaption { margin-top: 14px; font: 600 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #5a4552; }
.get-copy h2 { margin-bottom: 18px; }
.ticker-inline { font: 700 1.05em/1 var(--sans); color: var(--pink-deep); }
.get-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.get .btn-ink { background: #fff; }
.ca-block { display: grid; gap: 10px; margin-top: 22px; padding: 16px 18px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); }
.ca-block .ca-label { color: var(--pink-deep); }
.ca-full { font: 400 14px/1.5 var(--mono); word-break: break-all; color: var(--ink); }
.ca-block .btn-copy { width: fit-content; }

/* Discharge sheet / 出院单 */
.discharge { background: var(--night-2); }
.sheet { max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); background: #fdfbf7; color: var(--ink); border: 2px solid var(--ink); border-top: 14px solid var(--teal); border-radius: 8px; box-shadow: 10px 10px 0 var(--pink); }
.sheet-head { text-align: center; margin-bottom: 26px; }
.sheet-head .kicker { color: #0f8f86; margin-bottom: 12px; }
.sheet-head h2 { margin: 0 auto; }
.sheet-sub { margin-top: 10px; font: 600 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #6a5a64; }
.sheet-rows { border-top: 2px solid var(--ink); }
.sheet-rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(26, 11, 18, 0.18); }
.sheet-rows dt { font: 600 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #6a5a64; }
.sheet-rows dd { font: 700 15px/1.45 var(--sans); }
.sheet-rows dd a { text-decoration: underline; text-underline-offset: 3px; }
.row-ca dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-ca code { font: 400 13px/1.5 var(--mono); word-break: break-all; }
.sheet-sign { margin-top: 22px; display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; font: 400 14px/1 var(--mono); color: #6a5a64; }
.sheet-sign .sign { font: 400 26px/1 var(--display); color: var(--red); text-transform: uppercase; transform: rotate(-3deg); display: inline-block; }

/* Footer / 页脚 */
.site-footer { padding: 32px var(--gutter) 40px; font: 400 13.5px/1.6 var(--sans); color: var(--cream-soft); max-width: 900px; }

/* Reveal / 滚入 */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .running-track { animation: none; }
}

/* Tablet and below: stacked hero with the tall image / 平板及以下：首屏叠放，用竖图 */
@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { justify-content: flex-start; }
  .hero { display: flex; flex-direction: column; min-height: 0; background: #a628a5; }
  .hero-inner { order: 1; position: static; display: flex; flex-direction: column; padding: 28px var(--gutter) 0; }
  .hero-copy { position: relative; z-index: 1; max-width: none; gap: 12px; }
  .hero-art { order: 2; position: relative; inset: auto; width: 100%; margin: -30% 0 0; height: auto; z-index: 0; }
  .hero-art img { position: relative; inset: auto; right: auto; top: auto; width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: center bottom; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
  .wait-grid, .get-grid { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
}

/* Phone / 手机 */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .site-nav { display: none; }
  :root { --gutter: 16px; }
  .hero-note { display: none; }
  .hero-art { margin-top: -36%; }
  .wordmark { font-size: clamp(54px, 16vw, 80px); }
  .hero-lede { font-size: 22px; }
  .countdown > div { min-width: 0; flex: 1; padding: 8px 4px 6px; }
  .btn { padding: 11px 15px; font-size: 14px; }
  .wasted-screen { min-height: 78vh; }
  .wasted-art { object-position: 66% 100%; }
  .sheet-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .sheet { box-shadow: 6px 6px 0 var(--pink); }
  .sheet-sub { font-size: 11px; letter-spacing: 0.1em; }
}

/* Wide / 超宽 */
@media (min-width: 2000px) {
  body { font-size: 20px; }
  :root { --gutter: 7vw; }
  .hero-copy { max-width: 980px; }
  .wordmark { font-size: clamp(132px, 6.6vw, 200px); }
  .hero-lede, .hero-line, .hero-note { font-size: 1.3em; }
  .btn, .btn-copy { font-size: 18px; padding: 16px 26px; }
  .section h2 { font-size: clamp(58px, 3.2vw, 84px); }
  .sheet { max-width: 1100px; }
  .wait-grid, .get-grid, .rules, .objectives h2, .site-footer { max-width: 1800px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 3000px) {
  body { font-size: 26px; }
  .wordmark { font-size: clamp(200px, 6vw, 260px); }
  .btn, .btn-copy { font-size: 24px; padding: 20px 34px; }
  .wait-grid, .get-grid, .rules, .objectives h2, .site-footer { max-width: 2600px; }
  .sheet { max-width: 1500px; }
}
