/* Visual Engine — site styles.
   Modelled on how big studio sites work: black page, white type, the game art does the talking,
   rounded pill buttons and rounded art cards. One accent (crimson) is used only for status. */
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-normal-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-italic-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #101012;
  --panel-2: #18181b;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .28);
  --text: #fff;
  --muted: #a7a7ad;
  --dim: #6c6c73;
  --accent: #e2283b;
  --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --wrap: 1240px;
  --pad-l: max(24px, env(safe-area-inset-left, 0px));
  --pad-r: max(24px, env(safe-area-inset-right, 0px));
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 300; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: var(--pad-l); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin-inline: auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: #fff; color: #000; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.pill:hover { background: #dcdce0; }
.pill:active { transform: scale(.97); }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pill--ghost:hover { background: rgba(255, 255, 255, .08); }
.pill--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link::after { content: "→"; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transition: background .3s; }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(#000c, #0000); pointer-events: none; transition: opacity .3s; }
.nav.is-solid { background: #000; }
.nav.is-solid::before { opacity: 0; }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 36px; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.nav__logo img { width: 44px; height: 44px; transition: transform .5s var(--ease); }
.nav__logo:hover img { transform: rotate(-12deg); }
.nav__links { display: flex; gap: 30px; margin-inline: auto; }
.nav__links a { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #fff; opacity: .86; padding-block: 8px; border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="page"] { opacity: 1; border-color: #fff; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__account { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; overflow: hidden; transition: background .2s; }
.nav__account:hover { background: rgba(255, 255, 255, .1); }
.nav__account svg { width: 22px; height: 22px; }
.nav__account img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav__menu { display: none; background: none; border: 0; font-weight: 700; font-size: 15px; padding: 10px 0; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; gap: 6px; padding: calc(var(--nav-h) + 30px) var(--pad-r) 40px var(--pad-l); }
.menu a:not(.pill) { font-size: 34px; font-weight: 800; text-decoration: none; padding-block: 4px; }
.menu .pill { margin-top: 24px; align-self: flex-start; }

/* ------------------------------------------------------------------ reveal (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ hero (game art + game logo) */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-bottom: clamp(56px, 9vh, 110px); }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; animation: heroIn 2.2s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000 0%, #000a 30%, #0000 62%), linear-gradient(90deg, #000c 0%, #0000 55%); }
.hero__body { display: grid; gap: 22px; justify-items: start; }
.hero__logo { width: min(520px, 82vw); height: auto; filter: drop-shadow(0 6px 30px #000); }
.hero__title { font-size: clamp(34px, 4.6vw, 64px); max-width: 15ch; }
.hero__text { font-size: clamp(17px, 1.4vw, 20px); color: #e2e2e6; max-width: 46ch; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 #e2283b88; animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px #e2283b00; } 100% { box-shadow: 0 0 0 0 #e2283b00; } }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(70px, 9vw, 120px); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(30px, 3.4vw, 46px); }

/* game cards (studio games row) */
.games { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.game { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.game__art { position: relative; height: clamp(300px, 32vw, 470px); max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--panel); margin-bottom: 4px; }
.game__art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.game:hover .game__art > img:first-child { transform: scale(1.05); }
.game__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000d 0%, #0000 55%); }
.game__logo { position: absolute; left: 6%; bottom: 8%; z-index: 1; width: min(56%, 420px); }
.game h3 { font-size: 24px; }
.game p { color: var(--muted); font-size: 16px; }
.game--soon .game__art { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1d1e23, #08080a 70%); }
.game--soon .game__art > img:first-child { width: 34%; height: auto; opacity: .2; filter: grayscale(1); }
.game--soon .game__art::after { display: none; }
.tag { display: inline-block; justify-self: start; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }

/* news cards */
.news { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.post { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.post__img { aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post .eyebrow { font-size: 13px; }
.post h3 { font-size: 22px; }
.post:first-child h3 { font-size: 28px; }
.post p { color: var(--muted); font-size: 16px; }

/* full-width art band with a statement */
.band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(100px, 14vw, 180px); }
.band__art { position: absolute; inset: 0; z-index: -2; }
.band__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.1) brightness(.62); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000e 0%, #0008 55%, #0003 100%); }
.band h2 { font-size: clamp(32px, 4vw, 54px); max-width: 20ch; }
.band p { margin-block: 20px 30px; color: #d9d9de; max-width: 50ch; font-size: 19px; }

/* ------------------------------------------------------------------ page header (inner pages) */
.page-head { padding-block: calc(var(--nav-h) + clamp(48px, 7vw, 100px)) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); max-width: 20ch; margin-top: 12px; }
/* art that comes with its own torn black frame: zoom past the frame */
img.unframe { scale: 1.42; }
.choice__card > img.unframe { scale: 1.7; }
.page-head p { margin-top: 20px; font-size: 20px; color: #d9d9de; max-width: 54ch; }

/* split rows: text beside an image */
.rows { display: grid; gap: clamp(60px, 8vw, 110px); }
.row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.row:nth-child(even) .row__img { order: 2; }
.row__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: var(--panel); }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.row__text { display: grid; gap: 16px; }
.row__text h2 { font-size: clamp(28px, 3vw, 40px); }
.row__text p { color: #cfcfd4; }

/* two choices (factions) */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice__card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; }
.choice__card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.choice__card:hover > img { transform: scale(1.05); }
.choice__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000f 0%, #0009 45%, #0000 80%); }
.choice__body { padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; }
.choice__body h3 { font-size: clamp(28px, 3vw, 38px); }
.choice__body p { color: #d4d4d9; }
.choice__body ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; font-size: 16px; }

/* screenshot gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--panel); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: #000e; display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 88vh; border-radius: 8px; }
.lightbox p { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: var(--muted); }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
.person { display: grid; gap: 10px; }
.person img { width: 100%; aspect-ratio: 1; max-width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.person b { font-size: 20px; }
.person span { color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.contact__side { display: grid; gap: 16px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.card h2 { font-size: 22px; }
.card p { color: var(--muted); }
.form { display: grid; gap: 18px; background: var(--panel); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; background: #000; border: 1px solid var(--line-2); border-radius: 8px; font-size: 16px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #fff; outline-offset: 0; border-color: transparent; }
.trap { position: absolute; left: -9999px; }
.form__status { font-weight: 600; }
.form__status.is-error { color: #ff8c95; }

/* simple text pages */
.prose { max-width: 70ch; display: grid; gap: 1em; color: #cfcfd4; padding-bottom: 100px; }
.prose h2 { color: #fff; font-size: 24px; margin-top: 1em; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: #fff; }

/* account */
.acct { padding-block: calc(var(--nav-h) + 48px) 100px; min-height: 80svh; }
.acct__wrap { display: grid; gap: 28px; }
.acct__wrap > *, .acct__staff > * { min-width: 0; }
.acct__danger { padding: clamp(24px, 3vw, 36px); }
.acct__notice { background: var(--panel-2); border-radius: var(--radius); padding: 16px 20px; font-weight: 600; }
.acct__signin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; background: var(--panel); min-height: 520px; }
.acct__art { position: relative; overflow: hidden; min-width: 0; }
.acct__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.acct__art img.unframe { scale: 1.85; }
.acct__panel { display: grid; gap: 18px; align-content: center; justify-items: start; padding: clamp(28px, 5vw, 64px); }
.acct__panel h1 { font-size: clamp(30px, 3.4vw, 44px); }
.acct__google svg { width: 20px; height: 20px; }
.acct__small { font-size: 14px; color: var(--muted); }
.acct__small a { color: #fff; }
.acct__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.acct__who { display: grid; gap: 10px; justify-items: start; }
.acct__who img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: var(--panel-2); }
.acct__who h1 { font-size: 32px; overflow-wrap: anywhere; }
.acct__who p { overflow-wrap: anywhere; }
.acct__main { display: grid; gap: 24px; min-width: 0; }
.acct__main .form h2 { font-size: 24px; }
.field small { color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #fff; }
.acct__confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.acct__red { background: var(--accent); color: #fff; }
.acct__red:hover { background: #c41d2f; }
.table { overflow-x: auto; background: var(--panel); border-radius: var(--radius); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 700; }
.msgs { display: grid; gap: 12px; }
.msg { background: var(--panel); border-radius: var(--radius); padding: 20px 24px; display: grid; gap: 8px; justify-items: start; }
.msg.is-done { opacity: .5; }
.msg__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.msg__head span, .msg__reply { color: var(--muted); font-size: 14px; }
.msg__body { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .acct__signin, .acct__grid { grid-template-columns: 1fr; }
  .acct__art { aspect-ratio: 16 / 9; max-width: 100%; }
}

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding-block: 56px calc(30px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 15px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; font-weight: 800; font-size: 18px; align-self: start; }
.footer__logo img { width: 56px; height: 56px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 7vw, 100px); }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__cols h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer__cols a { text-decoration: none; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer__bottom a { text-decoration: none; margin-left: 18px; }
.footer__bottom a:hover { color: #fff; }

/* ------------------------------------------------------------------ opener (first visit of a session)
   a loading line grows while the art loads -> it becomes a sword slash -> the art, cut in two, slams shut -> the logo hits */
.intro { position: fixed; inset: 0; z-index: 500; background: #000; overflow: hidden; }
html:not(.is-loading) .intro:not(.is-out) { display: none; }
html.is-loading body { overflow: hidden; }
.intro__stage { position: absolute; inset: 0; }
.intro__line { position: absolute; left: 50%; top: 50%; width: min(420px, 60vw); height: 2px; transform: translate(-50%, -50%); background: #ffffff1a; }
.intro__line i { display: block; height: 100%; width: 0; background: #fff; box-shadow: 0 0 12px #fff; transition: width .35s; }
.intro.is-cut .intro__line { opacity: 0; transition: opacity .08s; }
.intro__slash { position: absolute; left: 0; top: 72%; z-index: 3; width: var(--len, 150vw); height: 3px; margin-top: -1.5px; border-radius: 3px; pointer-events: none; transform-origin: 0 50%; transform: rotate(var(--ang, -15deg)) scaleX(0); background: linear-gradient(90deg, #fff0, #fff 12%, #fff 88%, #fff0); box-shadow: 0 0 10px #fff, 0 0 28px #b9c6ff; }


.intro.is-cut .intro__slash { animation: slash .24s cubic-bezier(.6, 0, .2, 1) forwards, fadeOut .5s .55s forwards; }
.intro__flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.intro.is-cut .intro__flash { animation: flash .55s .16s ease-out; }
.intro__half { position: absolute; inset: 0; opacity: 0; }
.intro__half img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; filter: brightness(.5) saturate(1.1); }
.intro__half--a { clip-path: polygon(0 0, 100% 0, 100% 34%, 0 72%); --dx: -2.5%; --dy: -7%; }
.intro__half--b { clip-path: polygon(0 72%, 100% 34%, 100% 100%, 0 100%); --dx: 2.5%; --dy: 7%; }
.intro.is-cut .intro__half { animation: shut .7s .2s cubic-bezier(.75, 0, .2, 1) both; }
.intro.is-cut .intro__stage { animation: shake .38s .88s both; }
.intro__mark { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 22px; }
.intro__logo { width: min(230px, 46vw); height: auto; opacity: 0; filter: drop-shadow(0 8px 40px #000); }
.intro.is-cut .intro__logo { animation: punch .6s .84s cubic-bezier(.2, .9, .25, 1.15) both; }
.intro__name { font-size: 13px; font-weight: 700; letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; color: #c9ccd4; opacity: 0; }
.intro.is-cut .intro__name { animation: fadeIn .7s 1.25s both; }
.intro__skip { position: absolute; z-index: 5; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); padding: 10px 14px; background: none; border: 0; color: #ffffff8c; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.intro__skip:hover { color: #fff; }
.intro.is-out { opacity: 0; transition: opacity .7s .1s; }
.intro.is-out .intro__mark { transform: scale(.88); transition: transform .8s var(--ease); }
@keyframes slash { to { transform: rotate(var(--ang, -15deg)) scaleX(1); } }
@keyframes flash { from { opacity: .5; } to { opacity: 0; } }
@keyframes shut { from { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes shake { 20% { transform: translate(-7px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } 100% { transform: none; } }
@keyframes punch { from { opacity: 0; transform: scale(1.8); filter: blur(10px) drop-shadow(0 8px 40px #000); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ------------------------------------------------------------------ project select (top of the home page) */
.select { position: relative; height: 100svh; min-height: 640px; display: flex; flex-direction: column; padding-top: var(--nav-h); }
.select__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; padding-block: 14px 20px; }
.select__head h1 { font-size: clamp(30px, 3.4vw, 46px); }
.select__head p { color: var(--muted); }
.select__row { flex: 1; min-height: 0; display: flex; gap: 10px; padding-left: var(--pad-l); padding-right: var(--pad-r); padding-bottom: 24px; }
.proj { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--panel); cursor: pointer; transition: flex-grow .8s var(--ease); outline-offset: -3px; }
.proj.is-open { flex-grow: 4.4; }
.proj__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); filter: grayscale(.9) brightness(.42); transition: transform 1.6s var(--ease), filter .8s; }
.proj:hover .proj__art { filter: grayscale(.5) brightness(.55); }
.proj.is-open .proj__art { transform: scale(1); filter: none; }
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000f 0%, #0008 38%, #0000 68%); pointer-events: none; }
.proj__num { position: absolute; top: 20px; left: 22px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #ffffffb3; }
.proj__label { position: absolute; left: 50%; bottom: 30px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: 22px; font-weight: 800; white-space: nowrap; transition: opacity .3s; }
.proj.is-open .proj__label { opacity: 0; }
.proj__body { position: absolute; left: 0; bottom: 0; width: min(660px, 72vw); padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; justify-items: start; opacity: 0; transform: translateY(24px); transition: opacity .25s, transform .3s; pointer-events: none; }
.proj.is-open .proj__body { opacity: 1; transform: none; transition: opacity .6s .35s, transform .8s .35s var(--ease); pointer-events: auto; }
.proj__body h2 { font-size: clamp(32px, 3.6vw, 52px); }
.proj__logo { width: min(460px, 100%); height: auto; }
.proj__body p { color: #dedee3; max-width: 46ch; }
.proj__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.proj--locked { background: repeating-linear-gradient(135deg, #0c0c0e 0 14px, #101013 14px 28px); cursor: default; }
.proj__lock { position: absolute; left: 50%; top: 42%; width: min(120px, 60%); translate: -50% -50%; opacity: .14; filter: grayscale(1); transition: opacity .6s, width .8s var(--ease); }
.proj--locked.is-open .proj__lock { opacity: .22; width: min(200px, 40%); }
.js .select__head > *, .js .proj { animation: riseIn .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
html.is-loading .select__head > *, html.is-loading .proj { animation-play-state: paused; }
@keyframes riseIn { from { opacity: 0; transform: translateY(40px); } }
/* clicking a project: its art grows to fill the screen, then the page opens */
.wipe { position: fixed; z-index: 400; overflow: hidden; border-radius: var(--radius); background: #000; pointer-events: none; transition: top .62s var(--ease), left .62s var(--ease), width .62s var(--ease), height .62s var(--ease), border-radius .62s; }
.wipe.is-full { top: 0; left: 0; width: 100vw; height: 100vh; border-radius: 0; }
.wipe img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .select { height: auto; min-height: 100svh; }
  .select__row { flex-direction: column; flex: none; }
  .proj { flex: none; height: 84px; transition: height .7s var(--ease); }
  .proj.is-open { height: min(470px, 64svh); }
  .proj__num { top: 32px; left: auto; right: 22px; }
  .proj__label { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: auto; top: 26px; font-size: 22px; }
  .proj__body { width: auto; right: 0; }
  .proj__lock { top: 50%; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .nav__links, .nav__right .pill { display: none; }
  .nav__menu { display: block; }
  .nav__right { margin-left: auto; }
  .games, .news { grid-template-columns: 1fr 1fr; }
  .news .post:first-child { grid-column: 1 / -1; }
  .row, .contact { grid-template-columns: 1fr; }
  .row:nth-child(even) .row__img { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .games, .news, .choice, .team { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .choice__card { min-height: 380px; }
  .game__art { aspect-ratio: 4 / 3; }
  .footer__bottom a { margin: 0 18px 0 0; }
}
/* "Reduce motion" (also on whenever Windows animations are switched off for performance): the site still moves,
   but without the screen shake, the white flash, the pulsing status dot or the slow zooms. */
@media (prefers-reduced-motion: reduce) {
  .intro.is-cut .intro__stage, .intro.is-cut .intro__flash, .status i { animation: none; }
  .hero__art img { animation-duration: .8s; }
  .proj__art { transform: none; }
}

/* ================================================================== shared bits for devlog, support and the dashboard */
.tag--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: #d4d4d9; }
.tag--hot { background: #fff; color: #000; }
.tag[style*="--rc"] { box-shadow: inset 0 0 0 1px var(--rc); color: var(--rc); }
.link--back::after { content: none; }
.link--back::before { content: "←"; transition: transform .2s var(--ease); }
.link--back:hover::before { transform: translateX(-4px); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: #fff; }
.danger { color: #ff8c95 !important; }
.check--sm { font-weight: 500; font-size: 15px; gap: 10px; }
.check--sm input { width: 17px; height: 17px; }
.chip { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { color: #fff; }
.chip.is-on { background: #fff; color: #000; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
select { background: #000; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; font-size: 15px; }

/* devlog cards */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; padding-bottom: 6px; }
.pcard__img { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pcard h3 { font-size: 22px; }
.pcard p { color: var(--muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__by { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.devlog-empty { padding: 40px 0; }
.devlog-more { justify-content: center; margin-top: 40px; }

/* devlog post */
.article__hero { position: relative; isolation: isolate; min-height: min(70svh, 640px); display: flex; align-items: flex-end; padding-top: var(--nav-h); }
.article__art { position: absolute; inset: 0; z-index: -1; }
.article__art img { width: 100%; height: 100%; object-fit: cover; }
.article__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.2) 75%, rgba(0,0,0,.5) 100%); }
.article .wrap { max-width: calc(760px + 48px); }
.article__head { display: grid; gap: 16px; padding-block: 40px 36px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article__tags a.tag { text-decoration: none; }
.article__head h1 { font-size: clamp(36px, 5vw, 64px); }
.article__by { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #c9c9cf; font-size: 15px; }
.article__body { max-width: 760px; padding-block: 24px 40px; font-size: 19px; line-height: 1.7; color: #dcdce0; display: grid; gap: 1.1em; }
.article__body h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; margin-top: .8em; }
.article__body a { color: #fff; }
.article__body strong { color: #fff; }
.article__body figure { margin: .4em 0; display: grid; gap: 10px; }
.article__body figure img { width: 100%; border-radius: var(--radius); }
.article__body figure.wide { margin-inline: calc((min(100vw - 48px, 1240px) - 100%) / -2); }
.article__body figcaption, .article__body .caption { font-size: 15px; color: var(--muted); }
.article__body blockquote { margin: .4em 0; padding: 4px 0 4px 22px; border-left: 3px solid #fff; font-size: 22px; color: #fff; }
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.article__body .video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.article__body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-grid { display: grid; gap: 12px; }
.gallery-grid.g2 { grid-template-columns: 1fr 1fr; }
.gallery-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-grid figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.article__foot { padding-bottom: 100px; max-width: 760px; border-top: 1px solid var(--line); padding-top: 28px; }

/* support (players) */
.support-signin { max-width: 640px; gap: 16px; padding: clamp(24px, 4vw, 40px); }
.support-signin h2 { font-size: 28px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.support-grid .form h2, .support-mine h2 { font-size: 24px; }
.support-mine { display: grid; gap: 14px; }
#s-list { display: grid; gap: 10px; }
.trow { display: grid; gap: 6px; padding: 16px 18px; background: var(--panel); border-radius: var(--radius); text-decoration: none; transition: background .2s; }
.trow:hover { background: var(--panel-2); }
.trow__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trow__subject { font-weight: 600; overflow-wrap: anywhere; }
.trow__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 14px; }
.ticket { display: grid; gap: 22px; min-width: 0; }
.ticket__head { display: grid; gap: 12px; }
.ticket__head h2 { font-size: clamp(26px, 3vw, 36px); overflow-wrap: anywhere; }
.ticket__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.thread { display: grid; gap: 14px; }
.msgline { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.msgline.is-staff { background: #17181d; box-shadow: inset 3px 0 0 #fff; }
.msgline.is-internal { background: #1d1a12; box-shadow: inset 3px 0 0 #f2c46d; }
.msgline__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.msgline__who img, .msgline__mark { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.msgline__mark { display: grid; place-items: center; background: var(--panel-2); font-size: 12px; font-weight: 800; }
.msgline__who time { color: var(--dim); margin-left: auto; font-size: 14px; }
.msgline__body { white-space: normal; overflow-wrap: anywhere; color: #dcdce0; }
.reply textarea { min-height: 120px; }

/* dashboard */
.page-dash .footer { display: none; }
.dash { padding-block: calc(var(--nav-h) + 36px) 80px; min-height: 100svh; }
.dash__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dash__head h1 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 6px; }
.dash__roles { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs a { padding: 12px 16px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-color: #fff; }
.panel { display: grid; gap: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar input:not([type=checkbox]) { flex: 1 1 260px; min-width: 0; padding: 11px 14px; background: #000; border: 1px solid var(--line-2); border-radius: 8px; font-size: 15px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--panel); padding: 4px; border-radius: 999px; }
.seg button { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button b { font-weight: 800; margin-left: 4px; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; }
.seg button:disabled { opacity: .5; cursor: default; }
.seg--stack { display: grid; border-radius: 12px; }
.seg--stack button { text-align: left; border-radius: 9px; }
.list { display: grid; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: var(--panel); border-radius: var(--radius); text-decoration: none; transition: background .2s; }
.lrow:hover { background: var(--panel-2); }
.lrow__main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.lrow__main b { overflow-wrap: anywhere; }
.lrow__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lrow__side { display: grid; justify-items: end; gap: 2px; font-size: 14px; text-align: right; flex: none; }
.lrow__thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--panel-2); flex: none; }
.lrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 16px; }
.side { display: grid; gap: 14px; }
.side__card { padding: 20px; gap: 12px; }
.side__card h3 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.side__small { font-size: 14px; }
.who { display: flex; gap: 12px; align-items: center; }
.who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.who div { display: grid; min-width: 0; }
.who span { font-size: 14px; overflow-wrap: anywhere; }
.newpost select { flex: none; }
.editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; position: sticky; top: var(--nav-h); z-index: 5; background: #000; padding-block: 12px; border-bottom: 1px solid var(--line); }
.editbar .actions { margin-left: auto; }
.editbar__state { font-size: 14px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 18px; }
.editor__main { display: grid; gap: 14px; min-width: 0; border-radius: var(--radius); outline: 2px dashed transparent; outline-offset: 8px; transition: outline-color .2s; }
.editor__main.is-drop { outline-color: #fff; }
.editor__side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 70px); }
.ed-title { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 14px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.ed-summary { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0 14px; font-size: 18px; color: #d4d4d9; resize: none; }
.ed-title:focus, .ed-summary:focus { outline: none; border-color: #fff; }
.blocks { display: grid; gap: 10px; }
.block { display: grid; gap: 10px; background: var(--panel); border-radius: var(--radius); padding: 12px 14px 14px; border: 1px solid transparent; }
.block:focus-within { border-color: var(--line-2); }
.block__tools { display: flex; align-items: center; gap: 4px; }
.block__name { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-right: auto; }
.block__tools button { font: inherit; font-size: 12px; background: none; border: 0; color: var(--dim); padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.block__tools button:hover:not(:disabled) { color: #fff; background: var(--panel-2); }
.block__tools button:disabled { opacity: .3; cursor: default; }
.block textarea, .block input:not([type=checkbox]):not([type=file]) { width: 100%; background: #000; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 17px; line-height: 1.6; resize: none; }
.block--heading input { font-size: 24px !important; font-weight: 800; }
.block--quote textarea { font-size: 19px; border-left: 3px solid #fff; }
.block hr { border: 0; border-top: 1px solid var(--line-2); margin: 10px 0; }
.drop { display: grid; place-items: center; min-height: 160px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: 15px; cursor: pointer; overflow: hidden; text-align: center; padding: 12px; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-drop { border-color: #fff; background: rgba(255,255,255,.04); }
.drop img { width: 100%; max-height: 420px; object-fit: contain; }
.drop--cover { aspect-ratio: 16 / 9; min-height: 0; padding: 0; max-width: 100%; }
.drop--cover img { height: 100%; max-height: none; object-fit: cover; }
.drop--small { min-height: 90px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal__item { display: grid; gap: 6px; }
.gal__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.gal__item input { font-size: 14px !important; padding: 8px 10px !important; }
.addbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.addbar button { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 0; background: var(--panel-2); color: #fff; cursor: pointer; }
.addbar button:hover { background: #2a2a30; }
.slug { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.slug span { padding: 0 4px 0 12px; color: var(--dim); font-size: 14px; }
.slug input { border: 0 !important; padding-left: 2px !important; min-width: 0; }
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 24px; }
.modal__box { width: min(900px, 100%); max-height: calc(100svh - 48px); display: flex; flex-direction: column; background: #000; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.modal__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.modal__scroll { overflow: auto; padding: 24px clamp(18px, 4vw, 48px); }
.article--preview h1 { font-size: clamp(30px, 4vw, 48px); }
.staff-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.staff-cols > div { display: grid; gap: 14px; min-width: 0; }
.staff-cols h2 { font-size: 26px; }
.staff-cols .section__head { margin-bottom: 0; }
#roles { display: grid; gap: 14px; }
.role { gap: 14px; padding: 20px; }
.role__top { display: flex; align-items: center; gap: 12px; }
.role__top input[name=name] { flex: 1; min-width: 0; background: #000; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 18px; font-weight: 700; }
.role__top input[type=color] { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.role fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.role legend { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.role__projects { display: grid; gap: 8px; padding-left: 28px; }
.rolepick { display: grid; gap: 8px; }
#staff-list { display: grid; gap: 8px; }
.person-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--panel); border-radius: var(--radius); }
.person-row img, .person-row .msgline__mark { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.person-row > div { display: grid; min-width: 0; flex: 1; }
.person-row > div span { font-size: 14px; overflow-wrap: anywhere; }
.person-row__roles { display: flex; flex-wrap: wrap; gap: 6px; }
#proj-list { display: grid; gap: 14px; }
.proj-form { padding: 20px; gap: 14px; max-width: 760px; }
.proj-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proj-form input:disabled { opacity: .6; }
.acct__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (max-width: 1000px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .support-grid, .ticket-layout, .editor, .staff-cols { grid-template-columns: 1fr; }
  .editor__side { position: static; }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .lrow { flex-wrap: wrap; }
  .lrow__side { justify-items: start; text-align: left; }
  .lrow__thumb { width: 100%; }
  .gallery-grid.g3 { grid-template-columns: 1fr 1fr; }
  .proj-form__row { grid-template-columns: 1fr; }
  .editbar .actions { margin-left: 0; }
  .article__body { font-size: 17px; }
}