:root {
  color-scheme: dark;
  --ink: #08080a;
  --carbon: #0e0e11;
  --panel: #131317;
  --panel-soft: #17171c;
  --red: #ff173d;
  --red-dark: #9d001e;
  --red-soft: #ff6d84;
  --white: #f5f4f1;
  --muted: #8d8d96;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(12,12,14,.16);
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--white); font-family: Inter,"Avenir Next","Helvetica Neue",Arial,sans-serif; line-height: 1.5; }
button,input,textarea,select { font: inherit; }
a { color: inherit; }
::selection { background: var(--red); color: white; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { border-radius: 2rem; background: #5b1020; }

.portal-skip { position: fixed; z-index: 1000; top: 1rem; left: 1rem; padding: .8rem 1rem; transform: translateY(-160%); background: var(--red); color: white; font: 800 .65rem/1 monospace; text-decoration: none; letter-spacing: .1em; }
.portal-skip:focus { transform: translateY(0); }
.portal-brand { display: inline-flex; align-items: center; gap: .7rem; color: white; text-decoration: none; }
.portal-brand i { color: var(--red); font: 400 2.4rem/.7 Arial,sans-serif; font-style: normal; filter: drop-shadow(0 0 .8rem rgba(255,23,61,.35)); }
.portal-brand span { font-family: "Arial Black",Arial,sans-serif; font-size: .64rem; line-height: .86; letter-spacing: .11em; }
.portal-eyebrow { margin: 0; color: var(--red); font: 800 .57rem/1.2 monospace; letter-spacing: .16em; text-transform: uppercase; }

.public-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 6rem; padding-inline: clamp(1.2rem,4vw,4rem); border-bottom: 1px solid var(--line); }
.public-header nav { display: flex; gap: 2rem; }
.public-header nav a { color: #b8b8c0; font: 800 .6rem/1 monospace; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; transition: color .25s ease; }
.public-header nav a:hover { color: var(--red); }
.public-main { min-height: calc(100svh - 6rem); }
.public-footer { display: flex; justify-content: space-between; padding: 2rem clamp(1.2rem,4vw,4rem); border-top: 1px solid var(--line); color: #65656d; font: 700 .52rem/1 monospace; letter-spacing: .13em; }
.public-footer a { text-decoration: none; }

.auth-shell { display: grid; grid-template-columns: 1.08fr .62fr; align-items: stretch; min-height: calc(100svh - 6rem); }
.auth-copy { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(3rem,8vw,9rem); background: radial-gradient(circle at 72% 38%,rgba(255,23,61,.2),transparent 27%),linear-gradient(145deg,#09090c,#1d050a 72%,#4b0010); }
.auth-copy::before { position: absolute; inset: 0; content: ""; opacity: .25; background: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: 5rem 5rem; mask-image: linear-gradient(90deg,black,transparent); }
.auth-copy::after { position: absolute; right: -.03em; bottom: -.03em; content: "∞"; color: rgba(255,255,255,.035); font: 400 47vw/.55 Arial,sans-serif; }
.auth-copy>* { position: relative; z-index: 1; }
.auth-copy h1,.application-hero h1,.submission-complete h1,.install-card h1 { margin: 1.6rem 0 2rem; font-family: "Arial Black",Arial,sans-serif; font-size: clamp(3.8rem,8vw,9rem); line-height: .81; letter-spacing: -.08em; text-transform: uppercase; }
.auth-copy h1 em,.application-hero h1 em,.submission-complete h1 em { color: var(--red); font-family: Georgia,serif; font-weight: 400; text-transform: none; }
.auth-copy>p:not(.portal-eyebrow) { max-width: 38rem; color: #a3a3ab; line-height: 1.75; }
.auth-copy>a { align-self: flex-start; margin-top: 2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--red); color: white; font: 800 .58rem/1 monospace; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.auth-card { position: relative; align-self: center; width: min(calc(100% - 3rem),32rem); margin-inline: auto; padding: clamp(2rem,4vw,4rem); border: 1px solid var(--line); background: var(--carbon); box-shadow: 0 2rem 6rem rgba(0,0,0,.36); }
.auth-card::before { position: absolute; top: 0; left: 0; width: 3.5rem; height: 3px; content: ""; background: var(--red); box-shadow: 0 0 1rem rgba(255,23,61,.7); }
.card-index { color: #686870; font: 700 .52rem/1 monospace; letter-spacing: .14em; }
.auth-card h2 { margin: 2rem 0; font-family: "Arial Black",Arial,sans-serif; font-size: clamp(2rem,4vw,3.5rem); line-height: .9; letter-spacing: -.06em; }
.auth-card>p { color: var(--muted); }

.portal-form { display: grid; gap: 1.1rem; }
.grid-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
.field { display: grid; gap: .55rem; }
.field--full { grid-column: 1/-1; }
.field>span { color: #8f8f98; font: 700 .54rem/1.2 monospace; letter-spacing: .11em; text-transform: uppercase; }
.field input,.field textarea,.field select,.task-move select,.milestone-list select,.member-list select { width: 100%; border: 1px solid rgba(255,255,255,.16); border-radius: 0; outline: 0; background: #0b0b0e; color: white; transition: border-color .25s ease,background-color .25s ease; }
.field input,.field select { min-height: 3.2rem; padding: 0 .9rem; }
.field textarea { min-height: 7rem; padding: .9rem; resize: vertical; }
.field input:focus,.field textarea:focus,.field select:focus { border-color: var(--red); background: #101014; box-shadow: 0 0 0 3px rgba(255,23,61,.08); }
.check-field { display: flex; align-items: flex-start; gap: .8rem; color: #9999a1; font-size: .78rem; line-height: 1.55; }
.check-field input { accent-color: var(--red); }
.honeypot { position: absolute; left: -10000px; }
.portal-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 3.2rem; padding: 0 1.1rem; border: 1px solid var(--red); background: var(--red); color: white; font: 800 .58rem/1 monospace; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background-color .3s ease,color .3s ease,border-color .3s ease; }
.portal-button i { font-size: .9rem; font-style: normal; }
.portal-button:hover { background: transparent; color: var(--red); }
.portal-button--ghost { border-color: var(--line); background: transparent; color: white; }
.portal-button--ghost:hover { border-color: var(--red); }
.portal-button--wide { width: 100%; }
.danger-button { min-height: 3rem; border: 1px solid rgba(255,23,61,.35); background: transparent; color: #ff6d84; font: 800 .55rem/1 monospace; letter-spacing: .1em; cursor: pointer; }
.danger-button:hover { background: rgba(255,23,61,.1); }
.form-error { margin: 1rem 0; padding: 1rem; border: 1px solid rgba(255,23,61,.4); background: rgba(255,23,61,.08); color: #ff9aaa; font-size: .82rem; }

.application-hero { padding: clamp(5rem,10vw,10rem) max(1.2rem,calc((100vw - 92rem)/2)); overflow: hidden; background: radial-gradient(circle at 80% 35%,rgba(255,23,61,.24),transparent 27%),#08080a; }
.application-hero h1 { max-width: 78rem; margin-bottom: 2.5rem; }
.application-hero>p:last-child { max-width: 38rem; color: #a1a1a9; line-height: 1.8; }
.application-form-wrap { display: grid; grid-template-columns: .35fr 1fr; gap: clamp(3rem,8vw,9rem); padding: clamp(5rem,9vw,9rem) max(1.2rem,calc((100vw - 92rem)/2)); background: #eceae6; color: #111114; }
.application-aside>span { color: var(--red); font: 800 .55rem/1 monospace; letter-spacing: .13em; }
.application-aside ul { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.application-aside li { padding-bottom: 1rem; border-bottom: 1px solid rgba(10,10,12,.17); font-family: "Arial Black",Arial,sans-serif; font-size: 1rem; text-transform: uppercase; }
.application-form .field>span { color: #626269; }
.application-form .field input,.application-form .field textarea,.application-form .field select { border-color: rgba(10,10,12,.2); background: white; color: #111114; }
.application-form .check-field { color: #55555d; }
.submission-complete { display: grid; min-height: calc(100svh - 6rem); place-content: center; padding: 3rem 1.2rem; text-align: center; background: radial-gradient(circle,rgba(255,23,61,.18),transparent 32%),#08080a; }
.submission-complete>span { color: var(--red); font: 800 .55rem/1 monospace; letter-spacing: .14em; }
.submission-complete p { max-width: 40rem; margin: 0 auto 2rem; color: #a2a2aa; line-height: 1.8; }
.submission-complete .portal-button { justify-self: center; }
.install-main { display: grid; min-height: 90svh; place-items: center; padding: 4rem 1.2rem; background: radial-gradient(circle at 50% 20%,rgba(255,23,61,.13),transparent 36%),#08080a; }
.install-card { width: min(100%,52rem); }
.install-card h1 { font-size: clamp(2.8rem,6vw,5.8rem); }
.install-card>p { color: #a3a3ab; line-height: 1.7; }

.portal-sidebar { position: fixed; z-index: 100; inset: 0 auto 0 0; display: flex; width: 17.5rem; flex-direction: column; border-right: 1px solid var(--line); background: #09090b; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; height: 5.2rem; padding: 0 1.4rem; border-bottom: 1px solid var(--line); }
.sidebar-close { display: none; border: 0; background: none; color: white; font-size: 1.5rem; }
.studio-switch { display: grid; gap: .4rem; margin: 1.2rem; padding: 1rem; border: 1px solid var(--line); background: linear-gradient(135deg,rgba(255,23,61,.11),transparent); }
.studio-switch small { color: #686870; font: 700 .48rem/1 monospace; letter-spacing: .12em; }
.studio-switch strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-nav { display: flex; flex: 1; flex-direction: column; padding: .7rem; }
.portal-nav a { position: relative; padding: .9rem 1rem; color: #92929a; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-decoration: none; transition: color .25s ease,background-color .25s ease; }
.portal-nav a::before { position: absolute; top: 50%; left: 0; width: 2px; height: 0; content: ""; transform: translateY(-50%); background: var(--red); transition: height .3s var(--ease); }
.portal-nav a:hover { background: rgba(255,255,255,.035); color: white; }
.portal-nav a:hover::before { height: 48%; }
.nav-label { margin: 1.8rem 1rem .5rem; color: #52525a; font: 700 .47rem/1 monospace; letter-spacing: .13em; }
.sidebar-user { display: grid; padding: 1.3rem; border-top: 1px solid var(--line); }
.sidebar-user>span { font-size: .75rem; font-weight: 800; }
.sidebar-user>small { margin: .2rem 0 .8rem; overflow: hidden; color: #686870; font-size: .58rem; text-overflow: ellipsis; }
.sidebar-user button { padding: 0; border: 0; background: none; color: var(--red-soft); font: 800 .52rem/1 monospace; letter-spacing: .1em; cursor: pointer; }
.app-header { position: fixed; z-index: 80; top: 0; right: 0; left: 17.5rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 5.2rem; padding: 0 clamp(1rem,3vw,2.5rem); border-bottom: 1px solid var(--line); background: rgba(8,8,10,.86); backdrop-filter: blur(1rem); }
.app-header button { display: none; border: 0; background: none; color: white; font-size: 1.2rem; }
.app-header span { color: #7a7a82; font: 700 .56rem/1 monospace; letter-spacing: .12em; }
.app-header a { color: #a0a0a8; font: 700 .52rem/1 monospace; letter-spacing: .1em; text-decoration: none; }
.app-main { min-height: 100svh; margin-left: 17.5rem; padding: calc(5.2rem + clamp(2rem,4vw,4rem)) clamp(1rem,3vw,3.5rem) clamp(3rem,6vw,6rem); background: radial-gradient(circle at 88% 0,rgba(255,23,61,.055),transparent 26%),#0b0b0e; }

.flash-stack { position: fixed; z-index: 300; top: 1rem; right: 1rem; display: grid; gap: .6rem; width: min(calc(100% - 2rem),28rem); }
.flash { padding: 1rem 1.2rem; border: 1px solid var(--line); background: #17171b; box-shadow: 0 1rem 3rem rgba(0,0,0,.4); font-size: .78rem; }
.flash--success { border-left: 3px solid var(--red); }
.flash--error { border-left: 3px solid #ff526f; color: #ff9aaa; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem,4vw,4rem); }
.page-heading h1,.game-heading h1,.empty-state h1 { margin: .9rem 0 0; font-family: "Arial Black",Arial,sans-serif; font-size: clamp(3rem,6.2vw,7rem); line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.page-heading>div>p:last-child { max-width: 38rem; margin: 1rem 0 0; color: #84848d; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: clamp(2rem,4vw,4rem); border: 1px solid var(--line); }
.metric-grid article { position: relative; display: flex; min-height: 11rem; flex-direction: column; justify-content: space-between; padding: 1.4rem; overflow: hidden; border-right: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.025),transparent); }
.metric-grid article:last-child { border: 0; }
.metric-grid article::after { position: absolute; right: -.04em; bottom: -.12em; content: "∞"; color: rgba(255,255,255,.024); font: 400 8rem/.7 Arial,sans-serif; }
.metric-grid span { color: #6c6c75; font: 800 .5rem/1 monospace; letter-spacing: .12em; }
.metric-grid strong { font-family: "Arial Black",Arial,sans-serif; font-size: clamp(3rem,5vw,5.5rem); line-height: .8; letter-spacing: -.08em; }
.metric-grid article:first-child strong { color: var(--red); }

.desk-panel { border: 1px solid var(--line); background: var(--panel); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.panel-heading>div { display: grid; gap: .4rem; }
.panel-heading span { color: #65656e; font: 800 .47rem/1 monospace; letter-spacing: .13em; }
.panel-heading h2 { margin: 0; font-family: "Arial Black",Arial,sans-serif; font-size: 1.25rem; letter-spacing: -.04em; }
.panel-heading>a,.panel-heading>button { border: 0; background: none; color: var(--red-soft); font: 800 .52rem/1 monospace; letter-spacing: .1em; text-decoration: none; cursor: pointer; }
.panel-heading>i { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: rgba(255,23,61,.12); color: var(--red); font: 800 .6rem/1 monospace; font-style: normal; }
.panel-empty { padding: 2rem; color: #6d6d75; font-size: .8rem; text-align: center; }
.panel-empty--large { min-height: 18rem; border: 1px solid var(--line); display: grid; place-items: center; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.dashboard-main { grid-row: span 2; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); color: #63636c; font: 800 .48rem/1 monospace; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.07); color: #aaaab2; font-size: .75rem; }
.data-table td strong { display: block; color: white; font-size: .78rem; }
.data-table td small { display: block; margin-top: .25rem; color: #686871; }
.data-table td>a { color: var(--red-soft); font: 800 .52rem/1 monospace; letter-spacing: .08em; text-decoration: none; }
.status { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 .55rem; border: 1px solid rgba(255,255,255,.15); color: #aaaab2; font: 800 .46rem/1 monospace; letter-spacing: .08em; text-transform: uppercase; }
.status--pending,.status--critical,.status--on_hold { border-color: rgba(255,23,61,.45); background: rgba(255,23,61,.08); color: #ff7890; }
.status--reviewing,.status--production,.status--prototype { border-color: rgba(255,109,132,.35); color: #ff9aaa; }
.status--accepted,.status--active,.status--released,.status--complete { border-color: rgba(255,255,255,.28); color: white; }
.status--rejected,.status--archived { opacity: .55; }
.filter-tabs,.task-filters { display: flex; gap: .25rem; margin-bottom: 1rem; overflow-x: auto; }
.filter-tabs a,.task-filters a { padding: .75rem 1rem; border: 1px solid var(--line); color: #74747d; font: 800 .49rem/1 monospace; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.filter-tabs a.is-active,.task-filters a.is-active { border-color: var(--red); background: var(--red); color: white; }

.game-row-list { display: grid; }
.game-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; min-height: 9.5rem; padding: 1.3rem; border-bottom: 1px solid var(--line); color: white; text-decoration: none; transition: background-color .3s ease; }
.game-row:last-child { border: 0; }
.game-row:hover { background: rgba(255,23,61,.055); }
.game-row span { color: var(--red-soft); font: 800 .49rem/1 monospace; letter-spacing: .1em; }
.game-row h3 { margin: .6rem 0 .35rem; font-family: "Arial Black",Arial,sans-serif; font-size: 1.55rem; letter-spacing: -.04em; }
.game-row p { margin: 0; color: #74747d; font-size: .72rem; }
.progress-ring { display: grid; width: 5rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(var(--red) calc(var(--progress)*1%),rgba(255,255,255,.08) 0); }
.progress-ring::before { grid-area: 1/1; width: 4.1rem; aspect-ratio: 1; border-radius: 50%; background: var(--panel); content: ""; }
.progress-ring strong { z-index: 1; grid-area: 1/1; font: 800 .58rem/1 monospace; }
.compact-list,.activity-list { display: grid; }
.compact-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.compact-list article:last-child { border: 0; }
.compact-list article>div { display: grid; gap: .25rem; }
.compact-list strong { font-size: .72rem; }
.compact-list small,.compact-list time { color: #696972; font-size: .56rem; }
.priority { width: .45rem; height: .45rem; border-radius: 50%; background: #595961; }
.priority--critical { background: var(--red); box-shadow: 0 0 .8rem var(--red); }
.priority--high { background: var(--red-soft); }
.activity-list article { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.activity-list article>i { width: .45rem; height: .45rem; border: 1px solid var(--red); border-radius: 50%; box-shadow: 0 0 .5rem rgba(255,23,61,.4); }
.activity-list article>div { display: grid; gap: .22rem; }
.activity-list strong { font-size: .68rem; }
.activity-list span { color: #686871; font-size: .55rem; }

.invite-result { margin-bottom: 1.2rem; padding: 1.2rem; border: 1px solid rgba(255,23,61,.4); background: rgba(255,23,61,.07); }
.invite-result>strong { color: var(--red-soft); font: 800 .55rem/1 monospace; letter-spacing: .11em; }
.invite-result>p { color: #8b8b94; font-size: .7rem; }
.invite-result>div { display: grid; grid-template-columns: 1fr auto; }
.invite-result input { min-width: 0; padding: .8rem; border: 1px solid var(--line); background: #08080a; color: #bcbcc3; font: 600 .62rem/1 monospace; }
.invite-result button { border: 0; background: var(--red); color: white; font: 800 .52rem/1 monospace; letter-spacing: .09em; cursor: pointer; }
.review-grid { display: grid; grid-template-columns: 1fr minmax(18rem,.34fr); gap: 1rem; align-items: start; }
.application-detail { padding-bottom: 1.5rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); margin: 0; }
.detail-grid>div { min-height: 6rem; padding: 1.1rem 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid>div:nth-child(even) { border-right: 0; }
.detail-grid dt { color: #66666f; font: 800 .48rem/1 monospace; letter-spacing: .1em; text-transform: uppercase; }
.detail-grid dd { margin: .8rem 0 0; color: #c2c2c8; font-size: .78rem; }
.detail-grid a,.review-links a { color: var(--red-soft); text-decoration: none; }
.pitch-block { padding: 1.5rem 1.3rem; }
.pitch-block>span { color: var(--red); font: 800 .49rem/1 monospace; letter-spacing: .12em; }
.pitch-block p { color: #a3a3ab; font-size: .82rem; line-height: 1.8; }
.review-links { display: flex; gap: 1rem; padding: 0 1.3rem; }
.review-links a { padding-bottom: .35rem; border-bottom: 1px solid var(--red); font: 800 .52rem/1 monospace; letter-spacing: .09em; }
.review-panel { position: sticky; top: 6.5rem; }
.review-panel .portal-form { padding: 1.2rem; }
.review-meta { display: block; padding: 0 1.2rem 1.2rem; color: #686871; }

.studio-card-grid,.game-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.studio-card { padding: 1.4rem; border: 1px solid var(--line); background: var(--panel); }
.studio-card__top { display: flex; align-items: center; justify-content: space-between; }
.studio-card__top small { color: #5f5f68; font: 700 .45rem/1 monospace; }
.studio-card h2 { margin: 2rem 0 .5rem; font-family: "Arial Black",Arial,sans-serif; font-size: 1.8rem; letter-spacing: -.05em; }
.studio-card>p { min-height: 2.5rem; color: #74747d; font-size: .75rem; }
.studio-card__stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-card__stats div { display: grid; gap: .4rem; padding: 1rem .5rem; border-right: 1px solid var(--line); text-align: center; }
.studio-card__stats div:last-child { border: 0; }
.studio-card__stats strong { font-family: "Arial Black",Arial,sans-serif; font-size: 1.5rem; }
.studio-card__stats span { color: #65656e; font: 800 .43rem/1 monospace; }

.desk-game-card { display: grid; overflow: hidden; border: 1px solid var(--line); background: var(--panel); color: white; text-decoration: none; transition: transform .5s var(--ease),border-color .3s ease; }
.desk-game-card:hover { transform: translateY(-.45rem); border-color: rgba(255,23,61,.45); }
.desk-game-card__visual { position: relative; display: grid; min-height: 14rem; place-items: center; overflow: hidden; background: radial-gradient(circle at 70% 30%,rgba(255,23,61,.3),transparent 28%),linear-gradient(145deg,#1b050a,#09090c); }
.desk-game-card__visual::before { position: absolute; inset: 0; content: ""; opacity: .25; background: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 3rem 3rem; }
.desk-game-card__visual>span { color: rgba(255,255,255,.07); font-family: "Arial Black",Arial,sans-serif; font-size: 8rem; line-height: .7; }
.desk-game-card__visual>i { position: absolute; bottom: 0; left: 0; width: var(--progress); height: 3px; background: var(--red); box-shadow: 0 0 1rem var(--red); }
.desk-game-card__body { padding: 1.2rem; }
.desk-game-card__body h2 { margin: .9rem 0 .5rem; font-family: "Arial Black",Arial,sans-serif; font-size: 1.7rem; letter-spacing: -.05em; }
.desk-game-card__body>p { min-height: 3.7rem; color: #797982; font-size: .73rem; line-height: 1.6; }
.desk-game-card__body>div { display: flex; justify-content: space-between; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #66666e; font: 800 .42rem/1 monospace; }

.game-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.game-heading>div>a { color: #686871; font: 800 .48rem/1 monospace; letter-spacing: .1em; text-decoration: none; }
.game-heading .portal-eyebrow { margin-top: 1.5rem; }
.progress-hero { display: grid; justify-items: end; }
.progress-hero strong { color: var(--red); font-family: "Arial Black",Arial,sans-serif; font-size: clamp(3.5rem,6vw,6.5rem); line-height: .75; letter-spacing: -.08em; }
.progress-hero span { margin-top: .8rem; color: #686871; font: 800 .47rem/1 monospace; letter-spacing: .11em; }
.game-workspace-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1rem; align-items: start; }
.game-settings { grid-row: span 2; }
.game-settings .portal-form { padding: 1.2rem; }
.game-task-panel { grid-column: 2; }
.milestone-list { display: grid; }
.milestone-list article { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; padding: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.milestone-list article:last-child { border: 0; }
.milestone-dot { width: .65rem; height: .65rem; margin-top: .25rem; border: 1px solid #6a6a73; border-radius: 50%; }
.milestone-dot--in_progress { border-color: var(--red); box-shadow: 0 0 .7rem var(--red); }
.milestone-dot--complete { background: var(--red); border-color: var(--red); }
.milestone-list strong { font-size: .76rem; }
.milestone-list p { margin: .35rem 0; color: #76767f; font-size: .69rem; }
.milestone-list small { color: #5f5f68; font: 700 .45rem/1 monospace; }
.milestone-list select,.member-list select { width: auto; min-height: 2rem; padding: 0 .5rem; font-size: .6rem; }

.task-board { display: grid; grid-template-columns: repeat(5,minmax(15rem,1fr)); gap: .8rem; overflow-x: auto; padding-bottom: .5rem; }
.task-column { min-height: 30rem; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.task-column__head { display: flex; align-items: center; justify-content: space-between; min-height: 3.7rem; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.task-column__head span { color: #888891; font: 800 .5rem/1 monospace; letter-spacing: .1em; }
.task-column__head i { display: grid; width: 1.7rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); color: #8a8a93; font: 800 .5rem/1 monospace; font-style: normal; }
.task-column__cards { display: grid; gap: .65rem; padding: .65rem; }
.task-card { padding: .9rem; border: 1px solid var(--line); background: var(--panel); }
.task-card__top,.task-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.task-card__top small,.task-card__meta { color: #5f5f68; font: 700 .43rem/1 monospace; }
.priority-label { padding: .3rem .4rem; border: 1px solid var(--line); color: #81818a; font: 800 .42rem/1 monospace; }
.priority-label--critical { border-color: var(--red); background: rgba(255,23,61,.1); color: var(--red-soft); }
.priority-label--high { border-color: rgba(255,109,132,.45); color: #ff9aaa; }
.task-card h3 { margin: 1.1rem 0 .5rem; font-size: .8rem; line-height: 1.35; }
.task-card>p { min-height: 2.8rem; margin: 0 0 1rem; color: #73737c; font-size: .66rem; line-height: 1.55; }
.task-card__meta { padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.07); }
.task-move { display: grid; grid-template-columns: 1fr auto; margin-top: .7rem; }
.task-move select { min-height: 2rem; padding: 0 .4rem; font-size: .55rem; }
.task-move button { border: 0; background: var(--red); color: white; font: 800 .46rem/1 monospace; cursor: pointer; }

.team-layout { display: grid; grid-template-columns: 1fr .42fr; gap: 1rem; align-items: start; }
.member-list,.pending-list { display: grid; }
.member-list article { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.member-avatar { display: grid; width: 2.5rem; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,23,61,.4); border-radius: 50%; background: rgba(255,23,61,.08); color: var(--red-soft); font-family: "Arial Black",Arial,sans-serif; }
.member-list article>div:nth-child(2) { display: grid; }
.member-list strong { font-size: .75rem; }
.member-list span:not(.role-badge) { color: #686871; font-size: .6rem; }
.member-list small { color: #5f5f68; font: 700 .44rem/1 monospace; }
.role-badge { padding: .35rem .5rem; border: 1px solid var(--line); color: #8f8f98; font: 800 .44rem/1 monospace; }
.role-badge--owner { border-color: var(--red); color: var(--red-soft); }
.pending-list article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.pending-list article>div { display: grid; gap: .25rem; }
.pending-list strong { font-size: .69rem; }
.pending-list span,.pending-list small { color: #62626b; font: 700 .44rem/1 monospace; }

.portal-modal { width: min(calc(100% - 2rem),42rem); max-height: 90svh; padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.18); background: #111115; color: white; box-shadow: 0 2rem 8rem rgba(0,0,0,.7); }
.portal-modal::backdrop { background: rgba(2,2,3,.82); backdrop-filter: blur(.4rem); }
.portal-modal>.portal-form { padding: 1.3rem; }
.modal-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 1rem; }
.modal-heading span { color: var(--red); font: 800 .48rem/1 monospace; letter-spacing: .11em; }
.modal-heading h2 { margin: .7rem 0 0; font-family: "Arial Black",Arial,sans-serif; font-size: 2rem; letter-spacing: -.05em; }
.modal-heading button { border: 0; background: none; color: #777780; font-size: 1.5rem; cursor: pointer; }
.empty-state { display: grid; min-height: 60svh; place-content: center; padding: 2rem; text-align: center; }
.empty-state>span { color: var(--red); font-family: "Arial Black",Arial,sans-serif; font-size: 5rem; }
.empty-state .portal-button { justify-self: center; margin-top: 2rem; }

@media (max-width: 1180px) {
  .studio-card-grid,.game-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-main { grid-row: auto; }
  .review-grid { grid-template-columns: 1fr; }
  .review-panel { position: static; }
  .team-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .portal-sidebar { transform: translateX(-105%); box-shadow: 2rem 0 5rem rgba(0,0,0,.5); transition: transform .5s var(--ease); }
  .sidebar-open .portal-sidebar { transform: translateX(0); }
  .sidebar-close { display: block; }
  .app-header { left: 0; grid-template-columns: auto 1fr auto; gap: 1rem; }
  .app-header button { display: block; }
  .app-main { margin-left: 0; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { min-height: 60svh; padding: 5rem 1.2rem; }
  .auth-card { margin-block: 4rem; }
  .application-form-wrap { grid-template-columns: 1fr; }
  .application-aside { display: none; }
  .game-workspace-grid { grid-template-columns: 1fr; }
  .game-settings { grid-row: auto; }
  .game-task-panel { grid-column: auto; }
}

@media (max-width: 650px) {
  .public-header { height: 5rem; padding-inline: 1rem; }
  .public-header nav a:first-child { display: none; }
  .portal-brand i { font-size: 2rem; }
  .portal-brand span { font-size: .55rem; }
  .public-footer { display: grid; gap: 1rem; }
  .auth-copy h1,.application-hero h1,.submission-complete h1 { font-size: clamp(3.1rem,16vw,5.5rem); }
  .application-hero { padding-inline: 1.2rem; }
  .application-form-wrap { padding-inline: 1.2rem; }
  .grid-form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .app-header { height: 4.7rem; }
  .app-header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-main { padding: 7rem .8rem 3rem; }
  .page-heading,.game-heading { display: grid; align-items: start; }
  .page-heading h1,.game-heading h1 { font-size: clamp(2.8rem,15vw,5rem); }
  .page-heading .portal-button { justify-self: start; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-grid article { min-height: 8rem; }
  .metric-grid article:nth-child(2) { border-right: 0; }
  .metric-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-grid strong { font-size: 3.5rem; }
  .studio-card-grid,.game-card-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid>div { border-right: 0; }
  .invite-result>div { grid-template-columns: 1fr; }
  .invite-result button { min-height: 2.7rem; }
  .member-list article { grid-template-columns: auto 1fr auto; }
  .member-list article>small { display: none; }
  .member-list article>form { grid-column: 2/4; }
  .progress-hero { justify-items: start; }
}
