/* 奥特曼卡牌 官网. The look is the game's own: the loading screen's silhouettes on old film,
   the duty room's warm desk light, the cream of the logo and the gold of the game's buttons. */
@font-face { font-family: "Oswald"; src: url("assets/oswald.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0b0b0c;
  --ink-2: #121211;
  --ink-3: #1a1916;
  --paper: #efe6d2;
  --paper-2: #d9cfb9;
  --muted: #a39b89;
  --faint: #6f6a5e;
  --gold: #e3a94f;
  --gold-2: #c98a36;
  --red: #c7412f;
  --rule: rgba(239, 230, 210, .13);
  --rule-2: rgba(239, 230, 210, .24);
  --sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --num: "Oswald", "Bahnschrift", "Arial Narrow", sans-serif;
  --wrap: min(1320px, 88vw);
  --header: 72px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* A whisper of film grain over everything: the page is one strip of old stock. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -200px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: max(20px, 4vw);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(11, 11, 12, .84); border-bottom-color: var(--rule); backdrop-filter: blur(10px); }
.site-header .brand { width: 112px; opacity: 0; transform: translateY(-4px); transition: opacity .35s ease, transform .35s ease; }
.site-header.is-solid .brand { opacity: 1; transform: none; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: .9375rem; }
.site-nav a { position: relative; color: var(--paper-2); padding-block: 6px; transition: color .2s; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav .nav-cta { padding: 8px 18px; border: 1px solid rgba(227, 169, 79, .7); color: var(--paper); text-shadow: none; transition: background .2s, color .2s; }
.site-nav .nav-cta:hover { background: var(--gold); color: #1b1206; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-2); background: rgba(11, 11, 12, .5); position: relative; }
.menu-toggle span:not(.visually-hidden) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--paper); transition: transform .25s; }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; font-size: 1rem; font-weight: 700; letter-spacing: .12em; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn-primary { background: linear-gradient(#ecb65f, var(--gold-2)); color: #1b1206; box-shadow: 0 10px 30px -10px rgba(227, 169, 79, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(227, 169, 79, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { border-color: rgba(239, 230, 210, .38); color: var(--paper); background: rgba(11, 11, 12, .25); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(239, 230, 210, .08); }
.btn-disabled { border-color: var(--rule-2); color: var(--muted); font-weight: 400; letter-spacing: .08em; cursor: default; }

/* ---------- hero: the reel ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: grid; align-items: end; isolation: isolate; overflow: hidden; background: #060608; }
.reel { position: absolute; inset: 0; z-index: -1; --mx: 0; --my: 0; }
.reel-layers { position: absolute; inset: 0; }
.reel-layer { position: absolute; inset: -3%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.reel-layer.is-back { transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -6px)); }
.reel-layer.is-front { transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 9px)); }
.reel-layer.is-glow { mix-blend-mode: screen; }
.reel-layer .drift { position: absolute; inset: 0; }
.reel-layer img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.is-back .drift { animation: drift-back 30s ease-in-out infinite alternate; }
.is-front .drift { animation: drift-front 30s ease-in-out infinite alternate; }
.is-glow img { animation: breathe 3.3s linear infinite; }
@keyframes drift-back { from { transform: scale(1) translate(.4%, .2%); } to { transform: scale(1.03) translate(-.5%, -.3%); } }
@keyframes drift-front { from { transform: scale(1.005) translate(-.3%, .3%); } to { transform: scale(1.045) translate(.8%, -.2%); } }
@keyframes breathe { 0% { opacity: .9; } 11% { opacity: 1; } 24% { opacity: .84; } 37% { opacity: .97; } 52% { opacity: .88; } 66% { opacity: 1; } 79% { opacity: .86; } 91% { opacity: .95; } 100% { opacity: .9; } }
.reel canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.film-grain { mix-blend-mode: overlay; opacity: .22; }
.reel-scrim { position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 70% at 50% 42%, transparent 50%, rgba(0, 0, 0, .62) 100%),
  linear-gradient(to top, rgba(6, 6, 8, .94) 0%, rgba(6, 6, 8, .6) 24%, rgba(6, 6, 8, .08) 50%, transparent 62%),
  linear-gradient(90deg, rgba(6, 6, 8, .72) 0%, rgba(6, 6, 8, .35) 34%, transparent 56%),
  linear-gradient(to bottom, rgba(6, 6, 8, .55), transparent 22%); }
/* A changeover between reels: dark for a breath, the way a projector cuts. */
.reel-cut { position: absolute; inset: 0; background: #050506; opacity: 0; pointer-events: none; transition: opacity .22s ease-in; }
.reel.is-cutting .reel-cut { opacity: 1; transition-duration: .16s; }
.reel.is-cutting .reel-layers { filter: brightness(1.6); transition: filter .12s; }

.hero-content { position: relative; width: var(--wrap); margin: 0 auto; padding-bottom: clamp(84px, 12vh, 130px); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.eyebrow { font-size: .8125rem; letter-spacing: .32em; color: var(--paper-2); opacity: .85; text-shadow: 0 1px 10px #000; }
.hero h1 { width: clamp(240px, 25vw, 440px); margin: 16px 0 12px -.6%; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .75)); }
.hero-line { font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: .18em; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.hero-sub { max-width: 30em; margin-top: 14px; color: var(--paper-2); font-size: clamp(.9375rem, 1.05vw, 1.0625rem); line-height: 1.9; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.reel-meta { position: absolute; right: max(20px, 4vw); bottom: clamp(84px, 12vh, 130px); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.reel-caption { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-shadow: 0 1px 8px #000; }
.reel-no, .reel-work { white-space: nowrap; }
.reel-no { font-family: var(--num); font-size: .75rem; letter-spacing: .28em; color: var(--gold); }
.reel-work { font-size: .8125rem; letter-spacing: .2em; color: var(--paper-2); }
.reel-pager { display: flex; gap: 6px; pointer-events: auto; }
.reel-pager button { position: relative; width: 34px; height: 22px; padding: 0; border: 0; background: none; }
.reel-pager button::before, .reel-pager button::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(239, 230, 210, .28); }
.reel-pager button::after { background: var(--paper); transform: scaleX(0); transform-origin: left; }
.reel-pager button[aria-current="true"]::after { animation: reel-progress var(--reel-ms, 7000ms) linear forwards; }
.reel-pager.is-paused button[aria-current="true"]::after { animation-play-state: paused; }
.reel-pager button:hover::before { background: rgba(239, 230, 210, .6); }
@keyframes reel-progress { to { transform: scaleX(1); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }
.section-head { max-width: 46rem; }
.label { display: flex; align-items: center; gap: 14px; font-size: .8125rem; letter-spacing: .3em; color: var(--muted); }
.label span { font-family: var(--num); font-size: .875rem; letter-spacing: .12em; color: var(--gold); }
.label::after { content: ""; width: 40px; height: 1px; background: var(--rule-2); }
h2 { margin-top: 18px; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.3; letter-spacing: .04em; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 22px; color: var(--muted); font-size: 1.0625rem; line-height: 2; max-width: 34em; }

/* A projector-gate frame for every picture from the game. */
.frame { position: relative; padding: 8px; background: #0f0f0e; border: 1px solid var(--rule); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }
.frame::before { content: ""; position: absolute; inset: -1px; pointer-events: none; background:
  linear-gradient(var(--gold), var(--gold)) left top / 18px 1px, linear-gradient(var(--gold), var(--gold)) left top / 1px 18px,
  linear-gradient(var(--gold), var(--gold)) right top / 18px 1px, linear-gradient(var(--gold), var(--gold)) right top / 1px 18px,
  linear-gradient(var(--gold), var(--gold)) left bottom / 18px 1px, linear-gradient(var(--gold), var(--gold)) left bottom / 1px 18px,
  linear-gradient(var(--gold), var(--gold)) right bottom / 18px 1px, linear-gradient(var(--gold), var(--gold)) right bottom / 1px 18px;
  background-repeat: no-repeat; opacity: .75; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { margin-top: 14px; font-size: .8125rem; letter-spacing: .12em; color: var(--faint); }
figcaption b { color: var(--paper-2); font-weight: 700; letter-spacing: .04em; margin-right: .4em; }

/* 01 duty room */
.duty { background: linear-gradient(var(--ink), var(--ink-2)); }
.duty .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.duty-stage { position: relative; aspect-ratio: 1672 / 941; container-type: inline-size; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); background: #11120e; }
.duty-defs { position: absolute; pointer-events: none; }
.duty-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
/* Everything below is placed as apps/client/styles.css places it in .duty-stage. */
.duty-logo { position: absolute; left: 5%; top: 9%; width: 29%; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); }
.duty-flag { position: absolute; left: 8%; top: 31%; width: 15%; height: 30%; }
.duty-flag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.duty-flag .duty-badge { left: 36%; top: 19%; width: 28%; height: 55%; opacity: .87; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .55)); }
.duty-clock { position: absolute; top: 10%; right: 8%; width: 11%; aspect-ratio: 1; }
.duty-clock img { width: 100%; height: 100%; }
.duty-clock i { position: absolute; bottom: 50%; left: calc(50% - 2px); width: 4px; height: 33%; background: #302919; transform-origin: 50% 100%; border-radius: 3px; }
.duty-clock [data-hand="hour"] { height: 24%; width: 5px; }
.duty-clock [data-hand="second"] { background: #ae4e33; width: 1px; height: 40%; }
.duty-clock b { position: absolute; left: 50%; top: 50%; width: 3%; height: 3%; transform: translate(-50%, -50%); border-radius: 50%; background: #302919; }
.duty-prop { position: absolute; padding: 0; border: 0; background: none; isolation: isolate; }
.duty-prop > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.duty-prop:hover > img, .duty-prop:focus-visible > img { filter: url("#duty-outline") brightness(1.04); }
.duty-prop:focus-visible { outline: 0; }
.duty-label { position: absolute; z-index: 4; left: 50%; top: 0; transform: translate(-50%, calc(-100% - 8px)); white-space: nowrap; opacity: 0; font: 600 clamp(12px, 1.25cqw, 24px)/1.3 var(--sans); letter-spacing: .18em; color: #fff; text-shadow: 0 2px 5px rgba(0, 0, 0, .75); transition: opacity .16s; pointer-events: none; }
.duty-prop:hover .duty-label, .duty-prop:focus-visible .duty-label { opacity: 1; }
.duty-board { left: 38%; top: 9%; width: 37%; height: 42%; }
.duty-radio { left: 28%; bottom: 8%; width: 17%; aspect-ratio: 1.5; }
.duty-profile { left: 45%; bottom: 13%; width: 17%; aspect-ratio: 1.5; }
.duty-decks { left: 62%; bottom: 6%; width: 25%; aspect-ratio: 1.5; }
.duty-folder { left: 12%; bottom: 8%; width: 14%; aspect-ratio: 1.5; }
.duty-radio .duty-label { top: 18%; }
.duty-decks .duty-label { top: 24%; }
.duty-nameplate { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.duty-nameplate text { fill: #dca76e; font: 64px var(--sans); filter: drop-shadow(0 0 4px rgba(235, 106, 38, .4)); }
.duty-prop .prop-open { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .32s; }
.duty-prop .prop-closed { transition: opacity .32s, transform .32s; }
.duty-prop.is-opening .prop-open { opacity: 1; }
.duty-prop.is-opening .prop-closed { opacity: 0; }
.duty-prop.is-opening .duty-label { opacity: 0; }
.duty-folder .prop-open { width: 177%; height: 100%; left: -77%; object-fit: fill; }
.duty-folder.is-opening { z-index: 8; }
.duty-folder.is-opening .prop-closed { transform-origin: 10% 50%; transform: perspective(650px) rotateY(-80deg); }
/* Each prop stands on the desk: a soft shadow under it, toward the viewer. */
.duty-prop:is(.duty-radio, .duty-profile, .duty-decks, .duty-folder)::before { content: ""; position: absolute; z-index: 0; left: 3%; top: 78%; width: 94%; height: 30%; border-radius: 50%; background: radial-gradient(ellipse, rgba(16, 11, 8, .72) 0%, rgba(19, 12, 7, .5) 35%, rgba(16, 11, 8, .22) 58%, transparent 73%); filter: blur(5px); pointer-events: none; }
.duty-radio::before { left: 7% !important; top: 83% !important; width: 87% !important; height: 23% !important; }
.duty-decks::before { left: 17% !important; top: 87% !important; width: 68% !important; height: 21% !important; }
.duty-folder::before { left: -8% !important; top: 73% !important; transform: rotate(-9deg); }
.duty-tip { margin-top: 16px; min-height: 1.8em; font-size: .9375rem; color: var(--paper-2); letter-spacing: .04em; }
/* No hover on a touch screen: the labels stay up. */
@media (hover: none) { .duty-label { opacity: 1; font-size: clamp(10px, 2.4cqw, 16px); letter-spacing: .08em; } .duty-prop.is-opening .duty-label { opacity: 0; } }

/* 02 battle */
.battle { background: var(--ink-2); border-top: 1px solid var(--rule); }
.battle-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.rules { margin-top: 36px; border-top: 1px solid var(--rule); counter-reset: rule; }
.rules li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.rules b { color: var(--paper); letter-spacing: .08em; }
.rules b::before { counter-increment: rule; content: counter(rule, decimal-leading-zero); font-family: var(--num); font-weight: 400; color: var(--gold); margin-right: .7em; letter-spacing: .06em; }
.rules span { color: var(--muted); line-height: 1.85; }
.battle-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.battle-more figcaption { letter-spacing: .02em; line-height: 1.8; color: var(--muted); }

/* 03 works */
.works { background: #08090a; overflow: hidden; isolation: isolate; border-top: 1px solid var(--rule); }
.works-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; transition: opacity .35s ease; }
.works-backdrop.is-switching .works-silhouette { opacity: 0; }
/* The result screen's backdrop, as apps/client/styles.css moves it (.victory-backdrop): two copies
   of the painting drift against each other, each work with its own motion on top. */
.works-bg { position: absolute; inset: -6% -10%; }
.works-bg::before, .works-bg::after { content: ""; position: absolute; inset: -8%; background: inherit; pointer-events: none; }
.works-bg::before { opacity: 0; }
.works-bg[data-motion]::after { animation: bd-wander-a 21s ease-in-out infinite; }
.works-bg[data-motion]::before { opacity: .55; mix-blend-mode: soft-light; animation: bd-wander-b 34s ease-in-out infinite; }
.works-bg[data-motion="twinkle"]::before { mix-blend-mode: screen; animation: bd-wander-b 34s ease-in-out infinite, bd-flicker 2.3s steps(6) infinite; }
.works-bg[data-motion="churn"]::before { mix-blend-mode: screen; animation: bd-wander-b 34s ease-in-out infinite, bd-smoulder 7s ease-in-out infinite alternate; }
.works-bg[data-motion="pulse"]::before { mix-blend-mode: screen; animation: bd-wander-b 34s ease-in-out infinite, bd-breathe 5s ease-in-out infinite alternate; }
.works-bg[data-motion="surge"]::after { animation: bd-wander-a 21s ease-in-out infinite, bd-surge-a 6.5s ease-in-out infinite alternate; }
.works-bg[data-motion="surge"]::before { mix-blend-mode: screen; opacity: 0; animation: bd-surge 4.2s cubic-bezier(.2, .6, .4, 1) infinite; }
@keyframes bd-surge { 0% { opacity: 0; transform: scale(.72) rotate(0deg); } 18% { opacity: .55; } 100% { opacity: 0; transform: scale(1.32) rotate(1.4deg); } }
@keyframes bd-surge-a { from { filter: brightness(.95) saturate(1); } to { filter: brightness(1.12) saturate(1.2); } }
@keyframes bd-wander-a { 0% { transform: translate(0, 0) scale(1.06); } 19% { transform: translate(2.6%, -1.8%) scale(1.1) rotate(.6deg); } 41% { transform: translate(-2%, 2.4%) scale(1.05) rotate(-.4deg); } 63% { transform: translate(3.2%, 1.6%) scale(1.12); } 82% { transform: translate(-2.8%, -2.2%) scale(1.07) rotate(.5deg); } 100% { transform: translate(0, 0) scale(1.06); } }
@keyframes bd-wander-b { 0% { transform: translate(1.5%, 2%) scale(1.14) rotate(-.8deg); } 27% { transform: translate(-3%, -1%) scale(1.08); } 46% { transform: translate(2%, -3%) scale(1.16) rotate(.9deg); } 71% { transform: translate(-1.5%, 3%) scale(1.1) rotate(-.3deg); } 100% { transform: translate(1.5%, 2%) scale(1.14) rotate(-.8deg); } }
@keyframes bd-flicker { 0% { opacity: .25; } 30% { opacity: .7; } 55% { opacity: .35; } 80% { opacity: .8; } 100% { opacity: .25; } }
@keyframes bd-smoulder { from { opacity: .15; } to { opacity: .75; } }
@keyframes bd-breathe { from { opacity: .2; filter: brightness(.9); } to { opacity: .7; filter: brightness(1.25); } }
/* A new backdrop wipes in over the last, from the side the result screen would pick. */
.works-bg[data-wipe] { animation: .5s cubic-bezier(.2, .9, .2, 1) both; }
.works-bg[data-wipe="from-left"] { animation-name: wipe-left; }
.works-bg[data-wipe="from-right"] { animation-name: wipe-right; }
.works-bg[data-wipe="from-top"] { animation-name: wipe-top; }
.works-bg[data-wipe="from-bottom"] { animation-name: wipe-bottom; }
.works-bg[data-wipe="from-top-right"] { animation-name: wipe-top-right; }
.works-bg[data-wipe="from-top-left"] { animation-name: wipe-top-left; }
.works-bg[data-wipe="from-bottom-right"] { animation-name: wipe-bottom-right; }
@keyframes wipe-left { from { clip-path: polygon(-10% -30%, -10% -30%, -10% 130%, -10% 130%); } to { clip-path: polygon(-10% -30%, 130% -30%, 130% 130%, -10% 130%); } }
@keyframes wipe-right { from { clip-path: polygon(130% -30%, 130% -30%, 130% 130%, 130% 130%); } to { clip-path: polygon(-10% -30%, 130% -30%, 130% 130%, -10% 130%); } }
@keyframes wipe-top { from { clip-path: polygon(-10% -30%, 130% -30%, 130% -30%, -10% -30%); } to { clip-path: polygon(-10% -30%, 130% -30%, 130% 130%, -10% 130%); } }
@keyframes wipe-bottom { from { clip-path: polygon(-10% 130%, 130% 130%, 130% 130%, -10% 130%); } to { clip-path: polygon(-10% -30%, 130% -30%, 130% 130%, -10% 130%); } }
@keyframes wipe-top-right { from { clip-path: polygon(130% -30%, 130% -30%, 130% -30%, 130% -30%); } 55% { clip-path: polygon(130% -30%, 130% 130%, 130% 130%, -10% -30%); } to { clip-path: polygon(130% -30%, 130% 130%, -10% 130%, -10% -30%); } }
@keyframes wipe-top-left { from { clip-path: polygon(-10% -30%, -10% -30%, -10% -30%, -10% -30%); } 55% { clip-path: polygon(-10% -30%, 130% -30%, 130% -30%, -10% 130%); } to { clip-path: polygon(-10% -30%, 130% -30%, 130% 130%, -10% 130%); } }
@keyframes wipe-bottom-right { from { clip-path: polygon(130% 130%, 130% 130%, 130% 130%, 130% 130%); } 55% { clip-path: polygon(130% 130%, -10% 130%, -10% 130%, 130% -30%); } to { clip-path: polygon(130% 130%, -10% 130%, -10% -30%, 130% -30%); } }
/* The Ultraman in ink, standing in from the right as on the result screen (there from the left). */
.works-silhouette { --fig: 90; position: absolute; left: 50%; translate: -50% 0; bottom: -2%; height: calc(var(--fig) * 1%); width: auto; max-width: 44%; object-fit: contain; object-position: center bottom; }
.works-backdrop:not(.is-switching) .works-silhouette { animation: works-slide .72s cubic-bezier(.16, 1.2, .3, 1) both; }
@keyframes works-slide { from { opacity: 0; transform: translateX(-60%); } to { opacity: 1; transform: none; } }
.works-backdrop::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8, 9, 10, .94) 0%, rgba(8, 9, 10, .88) 26%, rgba(8, 9, 10, .35) 36%, transparent 44%),
  linear-gradient(to bottom, #08090a 0%, rgba(8, 9, 10, .5) 13%, transparent 26%, transparent 90%, rgba(8, 9, 10, .6) 100%); }
.work-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 56px); border-block: 1px solid var(--rule-2); background: rgba(8, 9, 10, .66); backdrop-filter: blur(8px); }
.work-tabs button { position: relative; padding: 16px 10px 14px; background: none; border: 0; text-align: left; color: var(--faint); transition: color .2s, background .2s; }
.work-tabs button + button { border-left: 1px solid var(--rule); }
.work-tabs button span { display: block; font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.work-tabs button small { display: block; font-family: var(--num); font-size: .75rem; letter-spacing: .18em; }
.work-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s ease; }
.work-tabs button:hover { color: var(--paper-2); background: rgba(239, 230, 210, .03); }
.work-tabs button[aria-selected="true"] { color: var(--paper); background: rgba(227, 169, 79, .07); }
.work-tabs button[aria-selected="true"] small { color: var(--gold); }
.work-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.work-panel { display: grid; grid-template-columns: minmax(0, 30%) 1fr minmax(0, 34%); gap: 0; align-items: center; min-height: 600px; padding-top: clamp(40px, 5vw, 64px); }
.work-panel .work-cards { grid-column: 3; }
.work-copy { max-width: 32rem; }
.work-logo { height: 96px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7)); }
.work-meta { margin-top: 22px; font-family: var(--num); font-size: .8125rem; letter-spacing: .24em; color: var(--gold); }
.work-copy h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: .06em; line-height: 1.4; }
.work-description { margin-top: 16px; color: var(--paper-2); font-size: 1.0625rem; line-height: 2; }
.work-team { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }
.work-team img { width: 36px; height: 36px; object-fit: contain; }
.work-team span { font-family: var(--num); letter-spacing: .14em; font-size: 1.0625rem; }
.work-team small { color: var(--muted); font-size: .8125rem; padding-left: 14px; border-left: 1px solid var(--rule-2); }
.work-cards { position: relative; height: clamp(380px, 38vw, 540px); }
.work-cards img { position: absolute; top: 50%; left: 50%; width: clamp(150px, 13vw, 210px); border-radius: 8px; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; }
.work-back { transform: translate(-150%, -42%) rotate(-10deg); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .6)); }
.work-hq { transform: translate(-88%, -50%) rotate(-2deg); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .6)); }
.work-cards .work-card { width: clamp(180px, 16vw, 260px); transform: translate(-22%, -52%) rotate(6deg); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .65)); }
.work-cards:hover .work-back { transform: translate(-158%, -41%) rotate(-13deg); }
.work-cards:hover .work-hq { transform: translate(-90%, -54%) rotate(-3deg); }
.work-cards:hover .work-card { transform: translate(-16%, -56%) rotate(4deg); }
.work-panel.is-switching .work-cards img { opacity: 0; }
.work-panel.is-switching .work-cards .work-card { transform: translate(-22%, -46%) rotate(9deg); }
.work-panel .work-copy > * { transition: opacity .3s ease, transform .3s ease; }
.work-panel.is-switching .work-copy > * { opacity: 0; transform: translateY(8px); }

/* 04 modes */
.modes { background: linear-gradient(#08090a, var(--ink-2)); border-top: 1px solid var(--rule); }
.modes-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); margin-top: clamp(40px, 5vw, 64px); }
.mode { grid-column: span 5; display: flex; flex-direction: column; gap: 22px; }
.mode-wide { grid-column: span 7; }
.mode-text { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); padding-top: 12px; }
.mode-copy h3, .mode-text h3 { font-size: 1.25rem; letter-spacing: .08em; }
.mode-copy p, .mode-text p { margin-top: 10px; color: var(--muted); line-height: 1.95; }
.mode-text h3 { grid-row: 1; padding-top: 22px; border-top: 1px solid var(--rule-2); }
.mode-text p { grid-row: 2; }

/* 05 finale */
.finale { position: relative; min-height: min(100svh, 62vw); display: flex; align-items: center; isolation: isolate; overflow: hidden; background: #000; }
.finale-image { position: absolute; inset: 0; z-index: -1; }
.finale-image img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transition: opacity .4s ease; }
.finale-image img.is-switching { opacity: 0; }
.finale-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 6, 8, .96) 0%, rgba(6, 6, 8, .82) 34%, rgba(6, 6, 8, .25) 60%, transparent 75%); }
.finale-copy { padding-block: clamp(88px, 10vw, 140px); }
.finale-copy > * { max-width: 30rem; }
.finale-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.finale-switch button { padding: 10px 16px; border: 1px solid var(--rule-2); background: rgba(11, 11, 12, .6); color: var(--muted); font-size: .875rem; letter-spacing: .06em; transition: border-color .2s, color .2s; }
.finale-switch button:hover { color: var(--paper); }
.finale-switch button[aria-pressed="true"] { border-color: var(--gold); color: var(--paper); }

/* download */
.download { background: var(--ink); border-top: 1px solid var(--rule); }
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.download-action { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.download-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 14px; border: 1px solid var(--rule); background: rgba(255,255,255,.025); color: var(--paper); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.download-link img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.download-link > span:not(.download-arrow) { flex-basis: 100%; font-size: .9375rem; white-space: nowrap; }
.download-link .download-arrow { margin-left: auto; order: -1; color: var(--gold); }
.download-link img { order: -2; }
.download-link:hover, .download-link:focus-visible { border-color: var(--gold); background: rgba(227,169,79,.07); transform: translateY(-2px); }
.download-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 600px) {
  .download-action { grid-template-columns: 1fr; }
  .download-link { flex-wrap: nowrap; min-height: 66px; }
  .download-link > span:not(.download-arrow) { flex-basis: auto; }
  .download-link .download-arrow { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .download-link { transition: none; } .download-link:hover { transform: none; } }
.specs { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.specs div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-size: .75rem; letter-spacing: .24em; color: var(--faint); }
.specs dd { margin-top: 4px; color: var(--paper-2); font-size: .9375rem; }
.steps { counter-reset: step; padding-top: 8px; }
.steps li { position: relative; display: grid; gap: 6px; padding: 26px 0 26px 76px; border-bottom: 1px solid var(--rule); }
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--num); font-size: 2.5rem; line-height: 1; color: rgba(227, 169, 79, .85); }
.steps b { font-size: 1.125rem; letter-spacing: .08em; }
.steps span { color: var(--muted); }

/* faq */
.faq { background: var(--ink); padding-top: 0; }
/* The changelog, laid out like the questions below it: newest release first. */
.releases { border-top: 1px solid var(--rule); }
.release { padding: 24px 0 8px; }
.release + .release { border-top: 1px solid var(--rule); }
.release header { display: flex; align-items: baseline; gap: 16px; }
.release h3 { font-family: var(--num); font-size: 2rem; font-weight: 500; color: var(--gold); letter-spacing: .04em; }
.release header p { color: var(--muted); font-size: .875rem; letter-spacing: .06em; }
.release ul { margin-top: 18px; }
.release li { display: grid; grid-template-columns: 4.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: .9375rem; line-height: 1.9; }
.release li b { color: var(--paper); letter-spacing: .12em; }
.release li span { color: var(--muted); }
.spec-link { color: var(--gold); border-bottom: 1px solid rgba(227, 169, 79, .45); }
.spec-link:hover { color: var(--paper); border-color: var(--paper); }
@media (max-width: 760px) { .release li { grid-template-columns: 1fr; gap: 2px; } }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--rule); }
.faq h2 { margin-top: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.questions { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.0625rem; color: var(--paper-2); transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--paper); }
details p { padding: 0 40px 24px 0; color: var(--muted); line-height: 2; overflow-wrap: anywhere; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); background: #070708; padding: 44px 0 52px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.site-footer .brand { width: 120px; opacity: .85; }
.site-footer p { font-size: .8125rem; color: var(--faint); line-height: 1.9; max-width: 52em; }
.to-top { font-size: .8125rem; letter-spacing: .16em; color: var(--muted); }
.to-top:hover { color: var(--paper); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .battle-grid { grid-template-columns: 1fr; }
  .work-panel { grid-template-columns: 1fr 1fr; min-height: 0; }
  .work-panel .work-cards { grid-column: 2; }
  .works-silhouette { left: 52%; max-width: 34%; height: calc(var(--fig) * .75%); }
  .works-backdrop::after { background: linear-gradient(90deg, rgba(8, 9, 10, .94) 0%, rgba(8, 9, 10, .85) 38%, transparent 55%), linear-gradient(to bottom, #08090a 0%, rgba(8, 9, 10, .5) 14%, transparent 28%); }
  .work-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work-tabs button:nth-child(5) { border-left: 0; }
  .work-tabs button:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
  .mode, .mode-wide { grid-column: 1 / -1; }
    /* The result screen has its own words on the right: below 1100px the copy goes under it. */
  .finale { min-height: 0; flex-direction: column; align-items: stretch; background: #060608; }
  .finale-image { position: relative; height: 56.25vw; }
  .finale-image::after { background: linear-gradient(to top, #060608 0%, transparent 40%); }
  .finale-copy { padding-block: 36px 80px; }
}
@media (max-width: 760px) {
  :root { --header: 60px; --wrap: calc(100vw - 40px); }
  .menu-toggle { display: block; }
  .site-header .brand { opacity: 1; transform: none; width: 96px; }
  .site-nav { position: fixed; inset: var(--header) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: rgba(11, 11, 12, .97); border-bottom: 1px solid var(--rule); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border: 1px solid var(--gold); }
  .site-header { background: rgba(11, 11, 12, .78); backdrop-filter: blur(8px); }
  /* On a phone the whole battle is shown as a band over the words, not cropped to a sliver. */
  .hero { display: block; min-height: 0; padding-top: var(--header); }
  .reel { position: relative; inset: auto; height: 60vw; overflow: hidden; }
  .reel-scrim { background: linear-gradient(to top, #060608 0%, rgba(6, 6, 8, .35) 30%, transparent 55%), radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%); }
  .hero-content { padding: 30px 0 40px; }
  .hero h1 { width: min(280px, 72vw); }
  .hero-line { letter-spacing: .1em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 140px; padding: 0 16px; }
  .reel-meta { top: calc(var(--header) + 60vw - 34px); bottom: auto; left: 20px; right: 20px; flex-direction: row; justify-content: space-between; align-items: center; }
  .reel-caption { flex-direction: row; align-items: baseline; gap: 10px; }
  .reel-work { font-size: .75rem; letter-spacing: .1em; }
  .reel-pager { gap: 4px; flex: none; }
  .reel-pager button { width: 14px; }
  .lead { font-size: 1rem; }
      .rules li { grid-template-columns: 1fr; gap: 4px; }
  .battle-more { grid-template-columns: 1fr; }
  .work-panel { grid-template-columns: 1fr; }
  .work-logo { height: 70px; }
  .work-cards { height: 340px; }
  .work-cards img { width: min(140px, 36vw); }
  .work-cards .work-card { width: min(180px, 46vw); }
  .work-panel .work-cards { grid-column: 1; }
  /* On a phone: the copy on a dark ground, then the art below it, the figure beside the cards. */
  .works-silhouette { left: auto; right: -4%; translate: none; max-width: 62%; height: calc(var(--fig) * 4.2px); bottom: 0; object-position: right bottom; }
  @keyframes works-slide { from { opacity: 0; transform: translateX(30%); } to { opacity: 1; transform: none; } }
  .works-backdrop::after { background: linear-gradient(to bottom, #08090a 0%, rgba(8, 9, 10, .9) 20%, rgba(8, 9, 10, .88) calc(100% - 470px), transparent calc(100% - 330px)); }
  .work-cards { margin-right: 22%; }
  .work-cards .work-back { transform: translate(-112%, -42%) rotate(-10deg); }
  .work-cards .work-hq { transform: translate(-72%, -50%) rotate(-2deg); }
  .mode-text { grid-template-columns: 1fr; }
  .mode-text h3, .mode-text p { grid-row: auto; }
  .mode-text p { margin-bottom: 8px; }
  .download-grid, .faq-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .steps li { padding-left: 64px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
