@charset "UTF-8";
:root { color-scheme: dark; --ink: #11120f; --paper: #eeede5; --orange: #ff4c23; --muted: #adafa2; --line: #eeede52b; }
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--paper); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
code { font: .85em/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
p { margin: 0 0 18px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; margin-top: 0; }
h1 { font-size: clamp(45px, 6.4vw, 82px); margin-bottom: 25px; }
h1 span { color: var(--orange); }
h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 15px; }
h3 { font-size: 23px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -70px; left: 20px; background: var(--paper); color: var(--ink); padding: 10px 20px; z-index: 5; }
.skip-link:focus { top: 16px; }
.portal-header { min-height: 125px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.portal-brand { flex-shrink: 0; width: 105px; }
.portal-brand img { display: block; width: 100%; height: auto; }
.portal-header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 650; }
.portal-header a { text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 20px; border: 1px solid var(--orange); border-radius: 5px; background: var(--orange); color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.4; text-decoration: none; }
.button:hover { color: var(--ink); background: #ff7858; border-color: #ff7858; }
.button-small { padding: 10px 15px; font-size: 12px; }
.button-outline { color: var(--paper); background: transparent; border-color: var(--line); }
.button-outline:hover { color: var(--paper); background: #eeede50b; border-color: var(--orange); }
.text-link { font-size: 13px; font-weight: 700; }
.actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--orange); margin-bottom: 17px; }
.hero-copy { color: var(--muted); font-size: 18px; max-width: 590px; }
.portal-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; align-items: center; padding: 80px 0 70px; }
.portal-stamp { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: end; width: 300px; aspect-ratio: 1; border: 2px solid var(--paper); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 13px 13px 0 var(--orange); rotate: -8deg; }
.portal-stamp::before { content: ""; position: absolute; inset: 12px; border: 1px dashed #11120f70; border-radius: 50%; }
.portal-stamp span { z-index: 1; text-align: center; font-size: 11px; font-weight: 850; letter-spacing: .14em; line-height: 1.7; }
.portal-stamp b { z-index: 1; font-size: 100px; color: var(--orange); line-height: 1.3; margin-left: 15px; }
.section-nav { display: flex; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.section-nav a { font-size: 13px; font-weight: 700; text-decoration: none; }
.section-nav a span { color: var(--orange); margin-left: 7px; }
.portal-section { padding: 52px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 28px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin-bottom: 17px; text-align: right; }
.section-heading .eyebrow { margin-bottom: 10px; }
.sort-links { display: flex; gap: 20px; justify-content: end; font-size: 12px; }
.sort-links a[aria-current="page"] { color: var(--orange); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #eeede505; }
.game-art, .detail-art { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; aspect-ratio: 1.65; background: var(--orange); color: var(--ink); text-decoration: none; }
.game-art b, .detail-art b { font-size: 110px; line-height: 1; rotate: -8deg; text-shadow: 6px 6px 0 #eeede570; }
.game-art.has-thumbnail, .detail-art.has-thumbnail { background: #101317; }
.game-art img, .detail-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-art.has-thumbnail { aspect-ratio: 16 / 9; }
.has-thumbnail .art-arrow { color: #eeede5; background: #11120fcf; padding: 0 7px; border-radius: 4px; }
.game-art:hover { color: var(--ink); }
.game-card:nth-child(3n + 2) .game-art { background: var(--paper); }
.game-card:nth-child(3n + 3) .game-art { background: #dfdba4; }
.art-orbit { position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; border: 1px solid #11120f80; border-radius: 50%; transform: rotate(-30deg) scaleY(.58); }
.art-orbit::after { content: ""; position: absolute; inset: -35px; border: 1px dashed #11120f60; border-radius: 50%; }
.art-arrow { position: absolute; right: 18px; bottom: 10px; font-size: 32px; }
.game-card-body { padding: 22px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); margin-bottom: 17px; }
.status { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; font-weight: 700; line-height: 1.4; color: var(--muted); }
.status-playtest, .status-approved { color: var(--paper); border-color: #eeede554; }
.status-featured { color: var(--orange); border-color: var(--orange); }
.game-card h3 { margin-bottom: 13px; font-size: 24px; }
.game-card h3 a { text-decoration: none; }
.game-card-body > p { color: var(--muted); font-size: 13px; min-height: 63px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 11px; }
.card-footer > span { color: var(--muted); }
.card-footer a { font-weight: 750; text-decoration: none; }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; padding: 50px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 7px; }
.empty-state h3 { margin-bottom: 15px; font-size: 26px; }
.empty-state p { color: var(--muted); max-width: 480px; font-size: 14px; }
.empty-symbol { font-size: 45px; line-height: 1; color: var(--orange); margin-bottom: 22px; }
.repo-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0; border-top: 1px solid var(--line); }
.repo-row h3 { margin: 12px 0; }
.repo-row h3 a { text-decoration: none; }
.repo-row p, .repo-row small { color: var(--muted); font-size: 13px; }
.repo-row > a { flex-shrink: 0; }
.empty-repos { margin: 0; padding: 20px 0; }
.creator-invitation { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 50px 0; }
.creator-invitation p:not(.eyebrow) { max-width: 540px; color: var(--muted); }
.creator-invitation > a { flex-shrink: 0; }
.portal-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 11px; }
.portal-footer > span { margin-right: auto; }
.submit-heading { padding: 60px 0 30px; }
.submit-heading h1 { font-size: clamp(42px, 5.2vw, 68px); }
.submit-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 65px; padding: 5px 0 65px; }
.submit-card { padding: 30px; background: #eeede508; border: 1px solid var(--line); border-radius: 7px; }
.submit-card h2 { font-size: 25px; margin-bottom: 25px; }
.submit-card form { display: grid; gap: 12px; }
.submit-card label { font-size: 13px; font-weight: 650; }
.submit-card input { width: 100%; min-width: 0; padding: 13px; border: 1px solid #eeede540; border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 14px; }
.field-help, .submission-note, .form-progress { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.field-help { margin-bottom: 10px; }
.submission-note { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 0; }
.form-progress:empty { display: none; }
.errorlist { list-style: none; padding: 0; margin: 0; color: #ffb8a9; font-size: 13px; }
.submit-checklist ol { padding-left: 24px; }
.submit-checklist li { padding-left: 10px; margin-bottom: 24px; }
.submit-checklist li::marker { color: var(--orange); font-weight: 750; }
.submit-checklist li p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.review-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; padding: 32px 0 55px; border-top: 1px solid var(--line); }
.review-path div { display: grid; gap: 7px; }
.review-path b { color: var(--orange); font: 12px ui-monospace, monospace; }
.review-path strong { font-size: 17px; }
.review-path span { color: var(--muted); font-size: 12px; }
.back-link { display: inline-block; margin: 30px 0 0; color: var(--muted); font-size: 12px; text-decoration: none; }
.detail-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: center; padding: 45px 0 50px; }
.detail-hero h1 { font-size: clamp(40px, 5vw, 65px); margin-top: 20px; overflow-wrap: anywhere; }
.creator-credit { font-size: 13px; color: var(--muted); }
.creator-credit strong { color: var(--paper); }
.detail-art { aspect-ratio: 1; border-radius: 8px; }
.detail-art b { font-size: 150px; }
.vote-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: 5px; padding: 23px 25px; }
.vote-panel strong { font-size: 20px; }
.vote-panel p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.vote-panel form { flex-shrink: 0; }
.vote-panel [data-vote-status]:empty { display: none; }
.notice { padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 4px; background: #eeede507; font-size: 14px; margin-top: 25px; }
.notice p { margin: 8px 0 0; }
.notice.error { color: #ffb8a9; }
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: start; padding: 55px 0 70px; }
.detail-main h2 { font-size: 27px; margin: 30px 0 18px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-line; }
.instructions { padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
.instructions dt { font-size: 11px; color: var(--orange); text-transform: uppercase; font-weight: 750; letter-spacing: .05em; }
.instructions dd { margin: 6px 0 18px; color: var(--muted); font: 12px/1.7 ui-monospace, monospace; white-space: pre-line; overflow-wrap: anywhere; }
.instructions dd:last-child { margin-bottom: 0; }
.version-card { padding: 26px; border: 1px solid var(--line); border-radius: 5px; background: #eeede507; }
.version-card h3 { font-size: 25px; }
.version-card p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.commit-link { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 12px; background: var(--ink); text-decoration: none; }
.commit-link code { overflow-wrap: anywhere; font-size: 11px; }
.version-card dl { font-size: 12px; margin: 24px 0; }
.version-card dt { color: var(--muted); margin-top: 15px; }
.version-card dd { margin-left: 0; margin-top: 4px; }
.asset-credit { border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; overflow-wrap: anywhere; }
.asset-credit p { margin: 5px 0 0; font-size: 12px; }
.muted { color: var(--muted); }
.play-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 30px 0; }
.play-heading h1 { font-size: clamp(32px, 4vw, 52px); margin: 0 0 12px; overflow-wrap: anywhere; }
.play-heading p:last-child { font-size: 13px; color: var(--muted); margin: 0; }
.play-frame { width: 100%; height: min(790px, 88svh); min-height: 600px; border: 1px solid var(--line); background: #eeede508; border-radius: 7px; overflow: hidden; }
.play-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.play-note { color: var(--muted); font-size: 12px; margin: 22px 0 50px; }
@media (min-width: 761px) {
  .creator-play-page .portal-header { min-height: 72px; }
  .creator-play-page .portal-brand { width: 64px; }
  .creator-play-page .back-link { margin-top: 12px; }
  .creator-play-page .play-heading { padding: 12px 0; }
  .creator-play-page .play-heading .eyebrow { font-size: 9px; margin-bottom: 4px; }
  .creator-play-page .play-heading h1 { font-size: 30px; margin-bottom: 4px; }
  .creator-play-page .play-frame { height: calc(100svh - 246px); min-height: 360px; }
  .creator-play-page .play-note { margin-top: 12px; }
}
@media (max-width: 1000px) { .portal-hero { gap: 35px; } .portal-stamp { width: 240px; } .portal-stamp b { font-size: 80px; } .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .submit-layout, .detail-layout, .detail-hero { gap: 35px; } }
@media (max-width: 760px) {
  .wrap { width: min(100% - 40px, 580px); }
  .portal-header { min-height: 100px; gap: 16px; }
  .portal-brand { width: 80px; }
  .portal-header nav { gap: 12px; font-size: 11px; flex-wrap: wrap; justify-content: end; }
  .portal-header nav > a:first-child { display: none; }
  .portal-header nav > a:nth-child(2) { font-size: 11px; }
  .button-small { padding: 9px 11px; font-size: 11px; gap: 10px; }
  .portal-hero { grid-template-columns: 1fr; padding: 48px 0 45px; gap: 35px; }
  .portal-hero h1 { font-size: clamp(42px, 10vw, 66px); }
  .hero-copy { font-size: 16px; }
  .portal-stamp { width: 170px; justify-self: center; box-shadow: 9px 9px 0 var(--orange); }
  .portal-stamp b { font-size: 52px; }
  .portal-stamp span { font-size: 8px; }
  .section-nav { gap: 16px; flex-wrap: wrap; padding: 20px 0; }
  .section-nav a { font-size: 11px; }
  .portal-section { padding: 35px 0; }
  .section-heading { display: block; margin-bottom: 23px; }
  .section-heading p:not(.eyebrow) { text-align: left; margin-top: 15px; }
  .sort-links { justify-content: start; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card-body > p { min-height: 0; }
  .repo-row { align-items: start; gap: 20px; }
  .repo-row h3 { font-size: 21px; }
  .repo-row > a { font-size: 11px; margin-top: 6px; }
  .creator-invitation { display: block; padding: 35px 0; }
  .creator-invitation p:not(.eyebrow) { font-size: 14px; }
  .creator-invitation > a { margin-top: 10px; }
  .portal-footer { gap: 18px; padding-bottom: 30px; }
  .portal-footer > span { width: 100%; }
  .submit-heading { padding-top: 42px; }
  .submit-layout { grid-template-columns: 1fr; gap: 35px; padding-bottom: 35px; }
  .submit-card { padding: 22px; }
  .review-path { grid-template-columns: 1fr 1fr; gap: 25px; }
  .detail-hero { grid-template-columns: 1fr; padding-top: 32px; gap: 30px; }
  .detail-art { aspect-ratio: 1.7; }
  .detail-art b { font-size: 110px; }
  .vote-panel { display: block; padding: 22px; }
  .vote-panel form, .vote-panel > a { margin-top: 20px; }
  .detail-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 35px; }
  .play-heading { display: block; }
  .play-heading > a { margin-top: 20px; }
  .play-frame { min-height: 670px; height: 85svh; }
  .play-note { font-size: 11px; }
}
@media (max-width: 360px) { .wrap { width: calc(100% - 30px); } .portal-header nav > a:nth-child(2) { display: none; } .actions { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* A hosted game gets the viewport; catalog navigation stays on its other pages. */
.creator-play-page { height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.creator-play-page > .portal-header, .creator-play-page > .portal-footer { display: none; }
.creator-play-page > main.wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow: hidden;
}
.play-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 56px; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.play-toolbar a { display: inline-flex; align-items: center; min-height: 36px; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.play-back { color: var(--muted); }
.play-details { color: var(--orange); }
.play-title { min-width: 0; }
.play-title h1 { overflow: hidden; margin: 0; color: var(--paper); font-size: 16px; line-height: 1.2; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.play-title p { overflow: hidden; margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.creator-play-page .play-frame { width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.creator-play-page .play-note { margin: 0; padding: 4px 10px; color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; }
@media (max-width: 420px) {
  .play-toolbar { gap: 10px; min-height: 54px; padding: 7px 10px; }
  .play-toolbar a { font-size: 10px; }
  .play-title h1 { font-size: 12px; }
  .play-title p { font-size: 9px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .play-toolbar { min-height: 44px; padding-block: 4px; }
  .play-title h1 { font-size: 13px; }
  .play-title p { margin-top: 1px; font-size: 9px; }
  .play-toolbar a { min-height: 32px; }
  .creator-play-page .play-note { padding-block: 2px; font-size: 8px; }
}
