:root{color-scheme:dark;--bg:#0c1020;--surface:#151a2d;--surface2:#1d2339;--line:#30374e;--text:#f5f4f1;--muted:#a4adc4;--accent:#d4ff66;--violet:#8c79ff;--cyan:#62dddc;font-family:'DM Sans',system-ui,sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:'Space Grotesk',system-ui,sans-serif;letter-spacing:-.045em}p{line-height:1.6}.view[hidden],.guest-panel[hidden],#editor[hidden],#creator-signed[hidden],#creator-guest[hidden],#my-guest[hidden],#my-signed[hidden],iframe[hidden]{display:none!important}
.topbar{height:76px;max-width:1360px;margin:auto;display:flex;align-items:center;gap:52px;padding:0 38px;border-bottom:1px solid rgba(255,255,255,.08)}.brand{display:flex;align-items:center;gap:10px;font:700 21px 'Space Grotesk',sans-serif;letter-spacing:-.055em;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:var(--accent);color:#101729;border-radius:10px;font-size:22px}.brand-verse{color:var(--accent)}nav{display:flex;gap:28px}nav a{color:var(--muted);font-size:14px;font-weight:700}nav a:hover,nav a.active{color:var(--text)}.account{margin-left:auto;display:flex;align-items:center;gap:16px}.account-name{font-size:13px;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;border:1px solid transparent;border-radius:10px;padding:12px 18px;font-size:13px;font-weight:700;line-height:1.2;min-height:44px;transition:transform .16s,background .16s,border .16s}.button:hover{transform:translateY(-2px)}.button:disabled{opacity:.48;cursor:not-allowed;transform:none}.primary{background:var(--accent);color:#131925}.primary:hover{background:#e6ff9a}.outline{border-color:#6c7696;color:var(--text);background:transparent}.outline:hover{border-color:var(--accent)}.ghost{background:transparent;color:var(--muted)}.ghost:hover{color:var(--text);background:var(--surface2)}.light{background:#f7f6ed;color:#111527}.text-button{border:0;background:none;color:var(--muted);text-decoration:underline;padding:8px}.text-button:hover{color:var(--text)}
.hero-wrap{position:relative;overflow:hidden;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;min-height:565px;max-width:1360px;margin:auto;padding:60px 38px 65px}.hero-glow{position:absolute;width:720px;height:600px;right:-110px;top:-60px;background:radial-gradient(ellipse,rgba(98,221,220,.13),transparent 65%);pointer-events:none}.hero{position:relative;z-index:1}.eyebrow{font-size:11px;line-height:1.5;letter-spacing:.19em;font-weight:700;color:var(--cyan)}.live-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(212,255,102,.12)}.hero h1{font-size:clamp(45px,5.5vw,79px);line-height:1.04;margin:22px 0 22px}.hero h1 em,.page-intro em{font-style:normal;color:var(--accent)}.hero p{max-width:580px;color:var(--muted);font-size:17px}.hero-actions{display:flex;gap:12px;margin-top:28px}.hero-note{font-size:12px!important;color:#737d9b!important;margin-top:25px}.hero-orbit{position:relative;width:400px;height:400px;justify-self:center}.orbit{position:absolute;border-radius:50%;border:1px solid rgba(175,192,244,.2)}.ring-one{inset:20px}.ring-two{inset:75px;border-style:dashed;transform:rotate(-16deg)}.orbit-center{position:absolute;inset:120px;border-radius:32px;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#b2a6ff,#5c53a3 65%,#302b62);box-shadow:0 35px 100px rgba(113,95,255,.32),inset 0 0 0 1px #d5ceff66;font-size:90px;color:#e8e3ff;transform:rotate(-12deg)}.orbit-label{position:absolute;font-size:10px;letter-spacing:.2em;color:var(--accent);font-weight:700;background:#20263b;padding:8px 10px;border:1px solid #4f5b6e;border-radius:6px}.orbit-label.one{top:26px;left:80px}.orbit-label.two{right:8px;top:185px}.orbit-label.three{bottom:30px;left:90px}
.section-block{border-top:1px solid var(--line);padding:70px 38px 90px;max-width:1360px;margin:auto}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:30px}.section-heading h2{font-size:clamp(28px,3vw,42px);margin:10px 0 0}.section-sub{font-size:13px;color:var(--muted)}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.game-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;min-height:320px;transition:transform .16s,border .16s}.game-card:hover{transform:translateY(-4px);border-color:#819170}.game-art{height:170px;display:grid;place-items:center;position:relative;overflow:hidden;background:radial-gradient(circle at 30% 20%,var(--art-a),transparent 45%),linear-gradient(135deg,var(--art-b),#111d32 75%)}.game-art::before,.game-art::after{content:'';position:absolute;border:1px solid rgba(255,255,255,.2);border-radius:28%;transform:rotate(30deg)}.game-art::before{width:130px;height:130px}.game-art::after{width:230px;height:230px}.game-art-icon{font-size:52px;color:#fff;z-index:1;filter:drop-shadow(0 12px 16px #0006)}.game-card-body{padding:20px;display:flex;flex:1;flex-direction:column}.game-card h3{font-size:23px;margin:0 0 7px}.game-card p{color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 20px}.game-card-foot{display:flex;justify-content:space-between;gap:8px;margin-top:auto;color:#a9b3c9;font-size:11px}.game-card-foot strong{color:var(--accent)}.empty{grid-column:1/-1;border:1px dashed #576078;border-radius:14px;padding:48px;color:var(--muted);text-align:center}.create-banner{max-width:1284px;margin:0 auto 85px;min-height:180px;padding:35px 42px;background:linear-gradient(110deg,#b2ff84,#dfff9f 45%,#c8efce);border-radius:18px;color:#16201c;display:flex;align-items:center;gap:24px}.banner-icon{display:grid;place-items:center;width:70px;height:70px;border:1px solid #31453755;border-radius:50%;font-size:34px}.create-banner h2{font-size:29px;margin:0 0 4px}.create-banner p{margin:0;color:#375044}.create-banner .button{margin-left:auto;white-space:nowrap}
.page-intro{max-width:1260px;margin:0 auto;padding:64px 28px 42px}.page-intro h1{font-size:clamp(38px,5vw,63px);margin:12px 0}.page-intro p{color:var(--muted);max-width:620px}.guest-panel{max-width:850px;margin:0 auto 100px;padding:60px;background:var(--surface);border:1px solid var(--line);border-radius:20px;text-align:center}.guest-panel h2{font-size:32px}.guest-panel p{color:var(--muted)}#creator-signed,#my-signed{max-width:1260px;margin:0 auto;padding:0 28px 100px}.new-game-card{background:linear-gradient(145deg,#20283f,#161c2f);border:1px solid #424d69;border-radius:20px;padding:34px;max-width:820px}.new-game-card h2{font-size:34px;margin:8px 0 25px}.new-game-card label,.panel label,#auth-form label{display:block;font-size:12px;font-weight:700;color:#c6cee0;margin:17px 0}.new-game-card input,.new-game-card textarea,.panel input,.panel textarea,.panel select,#auth-form input{display:block;width:100%;margin-top:8px;padding:12px 14px;background:#0e1426;border:1px solid #45516e;border-radius:9px;color:var(--text);resize:vertical}.new-game-card .button{margin-top:7px}.editor-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 24px}.editor-heading h2{font-size:33px;margin:5px 0}.studio-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(400px,1.28fr);gap:22px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);padding:25px;border-radius:16px;margin-bottom:20px}.panel h3{font-size:22px;margin:0 0 8px}.panel p{font-size:13px;color:var(--muted)}.panel small{color:#8894ae;font-weight:400}.code{font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace!important;min-height:280px}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.preview-heading h3{margin:2px 0 0}.game-frame-wrap{height:430px;background:#0a0f1d;border:1px solid #38435e;border-radius:12px;overflow:hidden;display:grid;place-items:center}.game-frame-wrap iframe{width:100%;height:100%;border:0}.preview-empty{max-width:250px;text-align:center;color:#7f8da9;font-size:13px}.publish-row{display:flex;align-items:end;justify-content:space-between;gap:10px;border-top:1px solid var(--line);margin-top:20px;padding-top:10px}.publish-row label{margin:0}.fine-print{font-size:11px!important;margin-top:12px}.status{min-height:20px;color:var(--cyan);font-size:12px!important;margin:12px 0 0}.status.error{color:#ff9b9b}
.new-game-note{font-size:13px;color:var(--accent);max-width:560px;margin:16px 0}.creation-guide{border:1px solid #526784;background:linear-gradient(110deg,#182b3b,#1b2239);border-radius:16px;padding:24px 28px;margin:0 0 22px}.creation-guide.blocked{border-color:#917a4c;background:linear-gradient(110deg,#302a22,#1e2537)}.creation-guide h3{font-size:27px;margin:8px 0}.creation-guide p{font-size:14px;color:#c3ccdc;max-width:760px;margin-bottom:18px}.creation-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}.creation-steps li{border:1px solid #49536c;border-radius:999px;padding:7px 11px;color:#aeb9ce;font-size:11px;font-weight:700}.creation-steps li:first-child,.creation-steps li.done{border-color:#91a75b;background:#304033;color:#e9ffac}.developer-tools{margin:18px 0;border-top:1px solid var(--line);padding-top:18px}.developer-tools summary{cursor:pointer;color:var(--cyan);font-size:13px;font-weight:700}.developer-tools p{margin:13px 0}.developer-tools code{color:var(--accent)}
.idea-starters{margin:2px 0 20px}.idea-starters>p:first-child{margin:0 0 9px;color:#c6cee0;font-size:13px}.idea-starter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.idea-starter{min-width:0;min-height:82px;padding:11px 12px;text-align:left;border:1px solid #586886;border-radius:10px;background:#18233a;color:var(--text)}.idea-starter:hover{border-color:var(--accent);background:#24334a}.idea-starter strong,.idea-starter span{display:block}.idea-starter strong{font-size:13px;margin-bottom:5px}.idea-starter span{font-size:11px;line-height:1.4;color:#b8c4d8}.idea-starter-note{min-height:17px;margin:7px 0 0;color:var(--cyan);font-size:11px}@media(max-width:620px){.idea-starter-options{grid-template-columns:1fr}.idea-starter{min-height:55px}}
.change-panel{border-color:#6a8050;background:linear-gradient(155deg,#1e2b30,#171d31 70%)}.change-panel h3{font-size:27px;margin:8px 0}.change-panel textarea{min-height:120px;font-size:15px}.change-panel label{font-size:14px}.change-ideas{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 20px}.change-ideas span{color:var(--muted);font-size:12px}.change-ideas button{border:1px solid #5a6885;background:#242d45;color:#eef4ff;border-radius:999px;padding:8px 11px;font-size:12px}.change-ideas button:hover{border-color:var(--accent);color:var(--accent)}.change-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.change-actions .primary{font-size:14px}.project-details>summary{cursor:pointer;color:#bfc9dd;font-weight:700;font-size:14px}.project-details[open]>summary{margin-bottom:20px}.project-details form{border-top:1px solid var(--line);padding-top:10px}.studio-preview{position:sticky;top:16px}.studio-preview .publish-row{margin-top:18px}
.studio-grid{display:flex;flex-direction:column;gap:0}.studio-controls,.studio-preview{width:100%}.studio-preview{position:static;scroll-margin-top:20px}.game-frame-wrap{height:min(70vw,680px);min-height:430px}.change-panel{max-width:920px}.project-details{max-width:920px}.change-panel textarea{max-width:760px}
.play-header{max-width:1284px;margin:auto;padding:38px 28px 22px;display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:25px}.back-link{color:var(--muted);font-size:13px}.play-title h1{font-size:clamp(28px,4vw,48px);margin:3px 0}.play-title p{font-size:13px;color:var(--muted);margin:0}.play-actions{display:flex;gap:9px}.play-stage{max-width:1284px;height:min(72vh,760px);min-height:400px;margin:auto;background:#040915;border:1px solid #35405e;border-radius:15px;overflow:hidden;box-shadow:0 45px 120px #0007}.play-stage iframe{border:0;width:100%;height:100%}.play-bottom{max-width:1284px;margin:auto;padding:18px 28px 80px;display:flex;justify-content:space-between;gap:25px;color:var(--muted)}.play-bottom p{max-width:700px}
.moderation-layout{max-width:1260px;margin:0 auto 100px;padding:0 28px;display:grid;grid-template-columns:1.4fr 1fr;gap:22px;align-items:start}.moderation-report{border-top:1px solid var(--line);padding:18px 0}.moderation-report h3{font-size:19px;margin:0 0 5px}.moderation-report p{margin:7px 0}.moderation-report .meta{font-size:11px;color:var(--muted)}.moderation-report .button{margin:10px 8px 0 0}
footer{border-top:1px solid var(--line);max-width:1360px;margin:auto;padding:30px 38px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#7f89a5}footer span:first-child{color:var(--accent);font-weight:700}
dialog{width:min(430px,calc(100vw - 24px));background:#1b2237;color:var(--text);border:1px solid #54617e;border-radius:18px;padding:34px;box-shadow:0 30px 100px #000c}dialog::backdrop{background:#050913bb;backdrop-filter:blur(7px)}dialog h2{font-size:32px;margin:8px 0 20px}.dialog-close{float:right;background:none;border:0;color:var(--muted);font-size:28px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:20px}.auth-tabs button{background:none;border:0;color:var(--muted);padding:10px 16px;font-weight:700}.auth-tabs button.active{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}#auth-form .button{width:100%;margin-top:8px}.toast{position:fixed;right:22px;bottom:22px;max-width:400px;padding:15px 20px;border-radius:10px;background:#d4ff66;color:#111926;font-size:13px;font-weight:700;box-shadow:0 12px 35px #0008;z-index:20}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.google-help{font-size:12px;color:var(--muted);margin:18px 0 10px}#google-button{min-height:42px;display:flex;justify-content:center}
.game-card-signals{font-size:11px;color:#c9d3e3;margin:-7px 0 18px}.workshop-heading{font-size:25px;margin:40px 0 18px}.workshop-heading:first-child{margin-top:0}.play-social{max-width:1284px;margin:12px auto 0;padding:0 28px;display:flex;align-items:center;gap:17px;color:var(--muted);font-size:13px}.like-button{border:1px solid #52607c;background:#1b2339;color:#f2f4fb;border-radius:999px;padding:8px 13px;font-weight:700}.like-button[aria-pressed="true"]{border-color:#e685af;color:#ffafd2}.like-button:hover{border-color:var(--accent)}.like-button:disabled{opacity:.5}.play-social+#play-save-note{max-width:1284px;margin:12px auto 0;padding:0 28px;color:var(--muted)}
.game-art-detail{position:absolute;z-index:2;left:18px;right:18px;bottom:14px;color:#fff;font-size:14px;font-weight:700;line-height:1.3;text-shadow:0 2px 8px #000;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.game-art:has(.game-art-detail) .game-art-icon{transform:translateY(-15px)}.creator-link{display:inline-block;color:var(--accent);font-size:13px;font-weight:700;margin-top:8px}.creator-link:hover{text-decoration:underline}.related-games,.profile-games{padding-top:40px}.related-games .game-card{min-height:300px}
.game-card-insights{font-size:11px;color:var(--cyan);margin:-12px 0 18px}
.game-cover{position:absolute;width:100%;height:100%;object-fit:contain;background:#08101c;z-index:3}.game-art.has-cover::before,.game-art.has-cover::after,.game-art.has-cover .game-art-icon,.game-art.has-cover .game-art-detail{display:none}.cover-picker{display:flex;align-items:center;gap:18px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.cover-picker h3{font-size:19px}.cover-picker>div{flex:1;min-width:0}.cover-picker img{width:38%;max-height:150px;object-fit:contain;border:1px solid var(--line);border-radius:9px;background:#08101c}@media(max-width:620px){.cover-picker{flex-direction:column;align-items:stretch}.cover-picker img{width:100%;max-height:220px}}
.game-card.no-cover,.home-games .game-card.no-cover,.recent-section .game-card.no-cover,.related-games .game-card.no-cover{min-height:0}.game-card.no-cover .game-art{height:auto;min-height:54px;display:flex;align-items:center;justify-content:flex-start;padding:12px 18px;background:#1b2539;border-bottom:1px solid #394862}.game-card.no-cover .game-art::before,.game-card.no-cover .game-art::after{display:none}.game-art-empty{font-size:13px;line-height:1.35;color:#d7e4f3;font-weight:700}.game-card.no-cover .game-card-foot{margin-top:10px}.workshop-draft .draft-picture-link{width:100%;margin-top:8px;text-align:center;white-space:normal}#cover-picker-title:focus{outline:2px solid var(--accent);outline-offset:4px}.return-shelf .game-card.no-cover{display:flex}.return-shelf .game-card.no-cover .game-art{display:none}
@media(max-width:960px){.topbar{gap:20px;padding:0 20px}.topbar nav{gap:16px}.hero-wrap{grid-template-columns:1fr;padding:70px 24px}.hero-orbit{display:none}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-grid,.moderation-layout{grid-template-columns:1fr}.play-header{grid-template-columns:1fr auto}.play-header .back-link{grid-column:1/-1}.create-banner{margin-left:20px;margin-right:20px}}
@media(max-width:620px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;gap:10px;padding:12px 16px}.topbar nav{order:3;width:100%;justify-content:space-between}.topbar .account{margin-left:auto}.brand{font-size:18px}.hero-wrap{min-height:auto;padding:70px 20px}.hero h1{font-size:48px}.hero-actions{flex-wrap:wrap}.section-block{padding:50px 20px}.section-heading{display:block}.game-grid{grid-template-columns:1fr}.create-banner{display:block;padding:26px}.banner-icon{margin-bottom:16px}.create-banner .button{margin:22px 0 0}.page-intro{padding:50px 20px 30px}#creator-signed,#my-signed{padding:0 20px 80px}.new-game-card,.panel{padding:22px}.editor-heading{align-items:start}.game-frame-wrap{height:350px;min-height:0}.publish-row{align-items:stretch;flex-direction:column}.play-header{grid-template-columns:1fr;padding:30px 20px}.play-actions{justify-content:stretch}.play-actions .button{flex:1}.play-stage{min-height:300px;height:58vh;border-radius:0}.play-bottom{padding:20px;display:block}footer{padding:25px 20px;display:block}footer span{display:block;margin:5px 0}}
.draft-history summary{cursor:pointer;font-weight:700}.draft-history ul{list-style:none;padding:0;margin:12px 0;max-height:460px;overflow:auto}.history-version{padding:16px 0;border-top:1px solid #3b4860;display:flex;align-items:center;gap:12px}.history-version>div{flex:1;min-width:0}.history-version strong{font-size:14px;overflow-wrap:anywhere}.history-version p{font-size:13px;margin:6px 0;overflow-wrap:anywhere;white-space:pre-wrap}.history-version small{color:#9cabc1}.history-version button{flex-shrink:0}@media(max-width:620px){.history-version{align-items:stretch;flex-direction:column}}
/* Recovery actions must not consume the saved request's reading column. */
.history-version.creator-run{flex-wrap:wrap}.history-version.creator-run>div{flex:1 0 100%;width:100%}.history-version.creator-run button{max-width:100%;white-space:normal}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button,.game-card{transition:none}}
.art-pack-label{margin:16px 0 9px;color:#eef4ff!important;font-size:14px!important;font-weight:700}.art-pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:760px}.panel .art-pack-card,.new-game-card .art-pack-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:156px;margin:0;padding:12px 9px;border:1px solid #52617e;border-radius:12px;background:#121b2e;text-align:center;cursor:pointer}.art-pack-card:has(input:checked){border-color:#d4ff66;background:#233130;box-shadow:inset 0 0 0 1px #d4ff66}.art-pack-card:has(input:focus-visible){outline:3px solid #d4ff66;outline-offset:2px}.art-pack-selected{font-size:12px;font-weight:700;color:#e9ffac;visibility:hidden;margin-top:auto}.art-pack-card:has(input:checked) .art-pack-selected{visibility:visible}.art-pack-image.art-pack-fallback{font-size:12px;line-height:1.3;color:#bbc6d7;padding:6px}.art-pack-fieldset{min-width:0;border:0;padding:0;margin:18px 0 12px}.art-pack-fieldset legend{font-size:14px;font-weight:700;color:#eef4ff;margin-bottom:10px}.art-pack-card input{position:absolute;opacity:0;width:1px;height:1px}.art-pack-image{display:grid;place-items:center;width:74px;height:74px;border-radius:10px;background:#26344b;font-size:38px;color:#d4ff66}.art-pack-image img{display:block;max-width:70px;max-height:70px;object-fit:contain;image-rendering:auto}.art-pack-name{color:#f7faff;font-size:13px;font-weight:700}.art-pack-description{color:#bbc6d7;font-size:12px;line-height:1.3;font-weight:400}.art-pack-original{background:radial-gradient(circle at 30% 30%,#43558a,#202d4c 70%)}@media(max-width:620px){.art-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel .art-pack-card,.new-game-card .art-pack-card{min-height:152px}}
.play-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}.play-guide>div{min-width:0;padding:11px 14px;border:1px solid #405471;border-radius:10px;background:#172338}.play-guide span{display:block;margin-bottom:3px;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.play-guide p{margin:0;color:#eef3ff;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.public-play-guide{max-width:1284px;margin:0 auto 12px;padding:0 28px}.public-play-guide>div{background:#17243a}@media(max-width:620px){.play-guide{grid-template-columns:1fr}.public-play-guide{padding:0 20px}}
.game-search{max-width:620px;margin:0 0 24px}.game-search label{display:block;margin-bottom:8px;color:#d8e2f1;font-size:13px;font-weight:700}.game-search-controls{display:flex;gap:9px}.game-search input{width:100%;min-width:0;padding:12px 14px;background:#11192b;border:1px solid #586680;border-radius:10px;color:var(--text)}.game-search input::placeholder{color:#8f9ab0}.game-search .section-sub{margin:7px 0 0;min-height:18px}.game-search .section-sub.error{color:#ff9b9b}@media(max-width:620px){.game-search-controls{flex-wrap:wrap}.game-search-controls .button{width:100%}}
.recent-section{padding-top:32px;padding-bottom:48px}.recent-section .section-heading{align-items:center}.recent-section .section-heading p{margin:6px 0 0;color:var(--muted);font-size:13px}.recent-section .game-card{min-height:300px}@media(max-width:620px){.recent-section .section-heading{display:flex;align-items:flex-start}.recent-section .section-heading .button{white-space:nowrap;padding-inline:10px}}
.generation-recovery{display:flex;flex-wrap:wrap;gap:8px;margin:-10px 0 20px}.generation-recovery .button{min-height:42px}
#editor .generation-recovery{margin-top:12px}
.home-games{padding-top:36px;padding-bottom:58px}.home-games .section-heading{align-items:center;margin-bottom:22px}.home-games h1{font-size:clamp(32px,3.5vw,48px);margin:7px 0 5px}.home-games .section-heading p{margin:0;color:var(--muted);font-size:14px}.home-games .game-search{margin-bottom:18px}.home-games .game-card{min-height:300px}@media(max-width:620px){.home-games{padding-top:28px;padding-bottom:48px}.home-games .section-heading{margin-bottom:18px}.home-games .section-sub{display:block;margin-top:6px}.home-games .game-search{margin-bottom:14px}}
@media(max-width:620px){#play-view .play-header{padding:12px 16px 10px;grid-template-columns:minmax(0,1fr);gap:5px}#play-view .back-link{grid-column:1;display:inline-flex;align-items:center;min-height:24px}#play-view .play-title .eyebrow{font-size:9px;line-height:1.2}#play-view .play-title h1{font-size:clamp(23px,7vw,30px);line-height:1.1;margin:1px 0}#play-view .play-title p{font-size:11px;line-height:1.25}#play-view .play-actions{gap:8px}#play-view .play-actions .button{flex:1;min-width:0;min-height:44px;padding:8px 6px;font-size:11px;gap:4px}#play-view .public-play-guide{display:block;max-width:none;margin:0 16px 8px;padding:0;border:1px solid #405471;border-radius:10px;overflow:hidden;background:#17243a}#play-view .public-play-guide>div{display:flex;align-items:baseline;gap:7px;padding:4px 8px;border:0;border-bottom:1px solid #405471;border-radius:0;background:transparent}#play-view .public-play-guide>div:last-child{border-bottom:0}#play-view .public-play-guide span{flex:0 0 76px;margin:0;font-size:9px;line-height:1.25}#play-view .public-play-guide p{font-size:11px;line-height:1.25}#play-view .play-stage{height:min(58vh,520px);min-height:390px}}
.report-dialog h2{font-size:28px;margin:4px 0 8px}.report-dialog p{font-size:13px;color:var(--muted)}.report-form label{display:block;margin:15px 0;color:var(--text);font-size:13px;font-weight:700}.report-form select,.report-form textarea{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #63708c;border-radius:9px;background:#11192b;color:var(--text)}.report-form textarea{min-height:90px;resize:vertical}.report-status{min-height:20px;color:var(--cyan);font-size:12px}.report-status.error{color:#ffb5b5}.report-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}@media(max-width:620px){.report-dialog{padding:22px}.report-actions .button{flex:1}}
.game-card-insights{margin:0 0 16px;padding:10px 12px;border:1px solid #405471;border-radius:9px;background:#17243a}.game-card-insights p{margin:0 0 7px;font-size:12px;line-height:1.4}.game-card-insights p:last-child{margin-bottom:0}.game-card-insights .counts{color:var(--cyan);font-weight:700}.game-card-insights .explanation{color:#c0cbe0}.game-card-insights .next-step{color:#e7f5c0}
#my-view .page-intro{padding-top:30px;padding-bottom:15px}#my-view .page-intro h1{font-size:clamp(32px,4vw,48px);margin:5px 0}#my-view .page-intro p{margin:0}#my-signed .workshop-heading{font-size:23px;margin:20px 0 10px}#my-signed .empty-drafts{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;text-align:left}#my-signed .empty-drafts p{margin:0}#my-signed .empty-drafts .button{white-space:nowrap}@media(max-width:620px){#my-view .page-intro{padding:24px 20px 12px}#my-signed .empty-drafts{align-items:stretch;flex-direction:column}#my-signed .empty-drafts .button{width:100%}}
#published-grid .game-art{height:110px}
#published-grid .game-card.no-cover .game-art{height:auto;min-height:54px}
.unsent-recovery{font-size:12px;line-height:1.5;margin:8px 0 16px}.unsent-recovery p{margin:0 0 8px}.unsent-recovery button{min-height:44px;white-space:normal;margin:0 8px 6px 0}
.resume-work-dialog{width:min(560px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;background:#17243a;color:#fff;border:1px solid #60708c;border-radius:12px;padding:20px}.resume-work-dialog h2{font-size:24px;line-height:1.2;margin:0 0 12px}.resume-work-dialog p{font-size:15px;line-height:1.45}.resume-work-dialog details{margin:12px 0}.resume-work-dialog summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:700}.resume-work-dialog summary::before{content:'▸';margin-right:8px}.resume-work-dialog details[open]>summary::before{content:'▾'}.resume-work-dialog label{display:block;margin:16px 0 8px;font-weight:700}.resume-work-dialog textarea{width:100%;box-sizing:border-box;min-height:96px;padding:12px;border:1px solid #63708c;border-radius:9px;background:#11192b;color:#fff;font:inherit;resize:vertical}.resume-original-request{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.resume-work-dialog button{min-height:44px;margin:8px 8px 0 0}
.published-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.published-card-actions a{min-height:44px;white-space:normal;text-align:center}.published-draft-note{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 0}
.play-origin{margin:10px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}.play-origin a{color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.share-dialog{max-height:calc(100dvh - 24px);overflow:auto}.share-dialog h2{font-size:26px;margin:4px 0 12px;overflow-wrap:anywhere}.share-dialog p{font-size:14px;line-height:1.5;color:var(--muted)}.share-dialog label{display:block;font-size:13px;font-weight:700;margin:18px 0 8px}.share-dialog input{display:block;width:100%;padding:12px;border:1px solid #63708c;border-radius:9px;background:#11192b;color:var(--text);font-size:16px}.share-dialog .button{display:block;margin:18px 0 0 auto;min-height:44px}
.preview-feedback-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}.preview-feedback-dialog h2{font-size:26px;margin:0 0 10px}.preview-feedback-dialog p{font-size:14px;line-height:1.5;color:var(--muted)}.preview-feedback-dialog fieldset{border:0;padding:0;margin:18px 0}.preview-feedback-dialog legend{font-weight:700;margin-bottom:8px}.preview-feedback-dialog label{display:block;padding:9px 0;font-size:15px;line-height:1.4}.preview-feedback-dialog input[type=radio]{margin-right:8px;accent-color:var(--accent)}.preview-feedback-dialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px;border:1px solid #63708c;border-radius:9px;background:#11192b;color:var(--text);font:inherit}.preview-feedback-dialog [data-note]{min-height:20px;color:#ffc5bd}.preview-feedback-actions{display:flex;flex-wrap:wrap;gap:10px}.preview-feedback-actions .button{min-height:44px;white-space:normal}@media(max-width:620px){.preview-feedback-dialog{padding:22px}.preview-feedback-actions .button{flex:1 1 100%}}
#fix-preview-button,#resolve-preview-button,#prepare-saved-repair-button{min-height:44px;white-space:normal;margin:4px 8px 4px 0}
.following-creators{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.following-creator{display:flex;align-items:center;gap:14px;max-width:100%;padding:4px 12px;border:1px solid var(--line);border-radius:12px}.following-creator a{overflow-wrap:anywhere;color:var(--accent)}.following-creator button{min-height:44px;white-space:nowrap}.following-section .section-heading{flex-wrap:wrap}.following-section .fine-print,#follow-creator-note{font-size:13px;line-height:1.5}#follow-creator{min-height:44px}
.play-navigation{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.play-navigation .back-link{display:inline-flex;align-items:center;min-height:44px}.play-navigation #reload-game{min-height:44px;padding:8px 10px;white-space:nowrap}@media(max-width:620px){#play-view .play-navigation{flex-direction:row;align-items:center;justify-content:space-between}#play-view .play-navigation .back-link{min-height:44px}}
.play-actions:has(#edit-game-link:not([hidden])){flex-wrap:wrap;max-width:520px}.owner-edit-note{max-width:1284px;margin:0 auto 12px;padding:0 28px}.play-actions a[hidden]{display:none}
#explore-view.is-searching .return-shelf{display:none!important}
.discover-intro{padding-top:30px;padding-bottom:22px;border-top:0}.discover-intro .section-heading{align-items:center;margin-bottom:18px}.discover-intro h1{font-size:clamp(32px,3.5vw,48px);margin:7px 0 5px}.discover-intro .section-heading p{margin:0;color:var(--muted);font-size:14px}.discover-intro .game-search{margin-bottom:0}.return-shelf{padding-top:18px;padding-bottom:20px}.return-shelf .section-heading{align-items:center;flex-wrap:wrap;margin-bottom:12px}.return-shelf .section-heading h2{font-size:22px;margin:0}.return-shelf .section-heading p{margin:4px 0 0;color:var(--muted);font-size:12px}.return-shelf .game-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(300px,100%);gap:12px;overflow-x:auto;padding:4px 4px 8px;scroll-padding:4px}.return-shelf .game-card{display:grid;grid-template-columns:76px minmax(0,1fr);min-height:116px}.return-shelf .game-art{height:100%;min-height:116px}.return-shelf .game-art-icon{font-size:30px}.return-shelf .game-card-body{min-width:0;padding:12px}.return-shelf .game-card h3{font-size:17px;overflow-wrap:anywhere}.return-shelf .game-card-body>p,.return-shelf .game-card-signals,.return-shelf .game-art-detail{display:none}.return-shelf .game-card-foot{display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}.return-shelf .empty{padding:18px;margin:0}.return-shelf .fine-print{margin:8px 0}.return-shelf .following-creators{flex-wrap:nowrap;overflow-x:auto;padding:4px}.return-shelf .following-creator{flex-shrink:0}.home-games .section-heading h2{font-size:28px;margin:0}@media(max-width:620px){.discover-intro{padding:24px 20px 18px}.discover-intro .section-heading{display:block}.discover-intro .section-sub{display:block;margin-top:6px}.discover-intro .game-search-controls{flex-wrap:nowrap}.discover-intro .game-search-controls .button{width:auto}.return-shelf{padding:16px 20px}.return-shelf .section-heading h2{font-size:21px}.return-shelf .game-grid{grid-auto-columns:min(280px,100%)}.home-games{padding-top:24px}.home-games .section-heading h2{font-size:25px}}
.play-stage{position:relative}.player-recovery{position:absolute;z-index:2;top:16px;left:16px;right:16px;max-width:580px;margin:0 auto;padding:20px;border:1px solid #efbc76;border-radius:12px;background:#17243a;box-shadow:0 8px 35px #0008;color:#f3f6ff}.player-recovery h2{font-size:23px;margin:0 0 8px}.player-recovery p{font-size:14px;line-height:1.5;margin:0 0 16px}.player-recovery-actions{display:flex;flex-wrap:wrap;gap:10px}.player-recovery-actions .button{min-height:44px;white-space:normal}@media(max-width:620px){.player-recovery{top:12px;left:12px;right:12px;padding:16px}.player-recovery-actions .button{flex:1;min-width:110px}}
#publish-help{font-size:13px!important;line-height:1.55}.published-audience{font-size:13px!important;line-height:1.5;color:var(--text)!important}
.return-shelf.compact-return{padding-top:4px;padding-bottom:4px}.return-toggle{min-height:44px;padding:12px 0;cursor:pointer;font-size:16px;line-height:20px;color:var(--text)}.return-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.return-count{color:var(--muted)}.compact-return details[open]>.section-heading{margin-top:12px}.compact-return details[open]>.game-grid{margin-bottom:12px}
.full-game-instructions{grid-column:1/-1;min-width:0;color:#eef3ff;font-size:14px;overflow-wrap:anywhere}.full-game-instructions summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;padding:10px 14px;border:1px solid #405471;border-radius:10px;box-sizing:border-box}.full-game-instructions h3{font-size:15px;margin:14px 0 6px}.full-game-instructions ul{margin:0 0 12px;padding-left:24px}.full-game-instructions li{margin:6px 0}.full-game-instructions summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Public identity is plain text; long words must not push a phone viewport. */
.profile-about { white-space: pre-wrap; overflow-wrap: anywhere; }
#creator-profile-name { overflow-wrap: anywhere; }
.creator-identity{max-width:1360px;margin:auto;padding:26px 38px 24px;display:flex;align-items:start;justify-content:space-between;gap:24px}.creator-identity-copy{flex:1;min-width:0}.creator-identity .eyebrow{font-size:12px;color:var(--cyan);letter-spacing:.13em}.creator-identity h1{font-size:clamp(30px,3.5vw,44px);line-height:1.15;margin:7px 0 8px}.creator-identity p{font-size:15px;color:var(--muted);line-height:1.5;margin:0}.creator-identity #creator-profile-handle{color:var(--accent);font-size:15px;overflow-wrap:anywhere}.creator-identity .profile-about{max-width:660px;margin-top:12px;color:var(--text)}.creator-identity p:empty{display:none}.creator-identity-actions{flex:0 1 340px;padding-top:7px;min-width:0}.creator-identity-buttons{display:flex;flex-wrap:wrap;gap:8px}.creator-identity-actions #follow-creator-note{font-size:13px;line-height:1.5;margin-top:10px}.profile-games{padding-top:22px;padding-bottom:64px}.profile-games>h2{font-size:25px;margin:0 0 18px}.profile-games .game-card h3{overflow-wrap:anywhere}.profile-games .game-card-foot{flex-wrap:wrap;align-items:center;row-gap:10px}.profile-games .game-card-foot>span{overflow-wrap:anywhere}.profile-games .game-card-foot strong{font-size:13px;white-space:nowrap}
@media(max-width:620px){.creator-identity{padding:22px 20px 20px;flex-direction:column;gap:16px}.creator-identity h1{font-size:30px}.creator-identity-actions{flex:auto;width:100%;padding-top:0}.creator-identity-buttons .button{font-size:14px;padding:12px 6px}.creator-identity-actions #follow-creator-note{max-width:340px;margin-top:8px}.profile-games{padding-top:20px;padding-bottom:48px}.profile-games>h2{font-size:23px;margin-bottom:16px}}
.profile-games .game-card-foot,.profile-games .game-card.no-cover .game-card-foot{margin:2px 0 16px}
#creator-games-search-form{margin-bottom:16px}#creator-games-search-form .game-search-controls{flex-wrap:nowrap}#creator-games-search-form input{flex:1 1 0;min-width:0}#creator-games-search-form .button{width:auto;flex:none}#creator-games-status,#creator-gallery-page-note{overflow-wrap:anywhere}@media(max-width:620px){#creator-games-search-form input{font-size:16px;padding:12px 10px}#creator-games-search-form .button{padding:12px 10px}.profile-games .game-card:not(.no-cover) .game-art{height:125px}}
.profile-editor { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--text, #eef2ff); background: #151b2d; border: 1px solid #3b4867; border-radius: 16px; padding: 24px; }
.profile-editor::backdrop { background: #000a; }
.profile-editor label { display: grid; gap: 8px; margin: 18px 0; }
.profile-editor input,.profile-editor textarea { width: 100%; min-width: 0; }
.profile-editor-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-editor button { min-height: 44px; }
.publish-review{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.publish-review img{width:100%;max-height:40dvh;object-fit:contain}.publish-review button{min-height:44px}.missing-cover{position:absolute;left:12px;top:12px;padding:5px 8px;background:#101728d9;border-radius:6px;color:#e5ebf5;font-size:12px}
.playtest-notes{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.playtest-notes h2{font-size:24px}.playtest-notes button{min-height:44px}.playtest-notes textarea{width:100%;box-sizing:border-box;background:#101728;color:#fff;border:1px solid #65708b;border-radius:8px;padding:12px;font:inherit}.playtest-notes ul{padding-left:20px}.playtest-notes li{overflow-wrap:anywhere;white-space:pre-wrap;border-top:1px solid #46516a;padding:8px 0}
.game-card-choice{margin:0 0 16px;min-width:0;overflow-wrap:anywhere}.game-card .game-card-choice p{margin:0 0 8px;color:var(--text)}.game-card-choice-label{font-size:11px;color:var(--muted)}.game-card-choice ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:5px 0 0}.game-card-choice li{max-width:100%;font-size:12px;line-height:1.4;padding:5px 8px;background:#ffffff09;border:1px solid var(--line);border-radius:7px}.game-card .game-card-choice-more{font-size:11px;color:var(--muted)}.return-shelf .game-card-choice{display:none}
.request-review { width: min(600px, calc(100vw - 32px)); max-height: 85dvh; overflow: auto; border: 1px solid #64748b; border-radius: 16px; padding: 24px; }
.request-review pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.request-review button { min-height: 44px; margin-top: 12px; max-width: 100%; white-space: normal; }
.request-review [data-replace] { line-height: 1.6; }
/* The first viewport belongs to choosing, making and playing a game. */
.discover-intro{display:grid;grid-template-columns:1fr minmax(300px,480px);align-items:center;gap:24px;padding-top:22px;padding-bottom:16px}
.discover-intro .section-heading{display:block;margin:0}.discover-intro h1{font-size:36px}.discover-intro .section-sub{display:block;margin-top:6px}.discover-intro .game-search{margin:0}.discover-intro .game-search label{font-size:14px}.discover-intro .game-search-status{min-height:0}
.return-shelf.compact-return{padding-top:0;padding-bottom:0}.home-games{padding-top:18px}.home-games .section-heading{margin-bottom:14px}.home-games .section-heading h2{font-size:25px}
.home-games .game-art{height:140px}.home-games .game-card-body{padding:14px}.home-games .game-card h3{font-size:22px}.home-games .game-card p{margin-bottom:8px}.home-games .game-card-choice{margin-bottom:10px}.home-games .game-card-foot{font-size:12px}.home-games .game-card-signals{margin-bottom:10px}
#creator-view .creator-intro{padding:24px 28px 18px}#creator-view .creator-intro h1{font-size:36px;margin:8px 0}#creator-view .creator-intro p{margin:0;font-size:15px}
#creator-view:has(#editor:not([hidden])) .creator-intro{display:none}#creator-view:has(#editor:not([hidden])) #creator-signed{padding-top:20px}
.new-game-card{padding:24px;max-width:820px}.new-game-card>label{font-size:22px;color:var(--text);margin:0 0 12px}.new-game-card>textarea{font-size:16px;line-height:1.5}.new-game-card>#start-game-button{margin-top:14px}.new-game-note{font-size:14px;margin:12px 0}.new-game-card>.status:empty{display:none}
.new-game-options{margin:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.new-game-options summary{padding:12px 0;min-height:44px;font-size:14px;font-weight:700;cursor:pointer}.new-game-options summary span{color:var(--muted);font-weight:400}.new-game-options summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.new-game-options select{display:block;width:100%;padding:12px;margin-top:8px;background:#0e1426;border:1px solid #45516e;border-radius:9px;color:var(--text);font-size:16px}
.editor-heading{margin-bottom:12px}.editor-heading h2{font-size:28px}.creation-guide{padding:14px 18px;margin-bottom:16px}.creation-guide h3{font-size:22px;margin:4px 0}.creation-guide p{margin-bottom:8px;max-width:100%;line-height:1.45}.creation-steps li{padding:4px 8px}
.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.28fr);gap:18px}.studio-controls>.change-panel{padding:18px}.change-panel h3{font-size:23px}.studio-preview{padding:18px}.studio-preview .play-guide{gap:6px}.studio-preview .play-guide>div{padding:8px}.studio-preview .play-guide p{font-size:13px}.studio-preview .preview-heading{margin-bottom:10px}.studio-preview .game-frame-wrap{height:430px;min-height:0}
@media(max-width:960px){.studio-grid{grid-template-columns:1fr}}
#play-view .play-header{padding:14px 28px 10px;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 20px}#play-view .play-navigation{grid-column:auto;flex-direction:row;align-items:center;gap:8px}#play-view .play-title h1{font-size:32px;margin:2px 0}#play-view .play-title p{margin:0}#play-view .play-actions{align-self:center}
#play-view .public-play-guide{gap:6px;margin-bottom:8px}#play-view .public-play-guide>div{padding:6px 10px}#play-view .public-play-guide p{font-size:14px;line-height:1.4}#play-view .public-play-guide span{font-size:12px;letter-spacing:.04em}#play-view .public-play-guide .full-game-instructions summary{min-height:36px;padding:7px 10px}#play-view .play-stage{height:calc(100dvh - 300px);min-height:390px}
@media(max-width:800px){.discover-intro{grid-template-columns:1fr;gap:14px}.discover-intro h1{font-size:30px}}
@media(min-width:621px) and (max-width:960px){#play-view .play-header{grid-template-columns:minmax(0,1fr) auto}#play-view .play-navigation{grid-column:1/-1}}
@media(min-width:961px){.return-shelf.compact-return:not(:has(details[open])){display:inline-block;vertical-align:top;width:32.8%;padding-right:10px}.home-games .game-art{height:110px}.home-games .game-card-body:has(.game-card-choice)>p{display:none}}
#public-controls-short{display:none}
/* Fixed-canvas games can remove phone letterboxing without prescribing a genre
   or changing responsive/legacy games. Fullscreen keeps its own fit layout. */
@media(max-width:620px){#play-view .play-stage.game-sized:not(.game-focused){height:auto;min-height:0;max-height:70dvh;aspect-ratio:var(--game-aspect-ratio)}}
@media(min-width:961px){#play-view .play-header{padding-top:8px;padding-bottom:6px}}
#play-view .public-play-guide .full-game-instructions summary{min-height:44px}
@media(max-width:620px){#public-controls{display:none}#public-controls-short{display:block}#play-view .public-play-guide>div:has(#public-mechanics){display:none}#play-view .public-play-guide>div>span{flex-basis:76px;text-transform:none;letter-spacing:0;font-size:12px}#play-view .public-play-guide>div{align-items:baseline}#play-view .public-play-guide .full-game-instructions{font-size:14px}#play-view .public-play-guide .full-game-instructions summary{border:0;border-radius:0}}
@media(max-width:620px){#creator-view .creator-intro{padding:20px 20px 16px}#creator-view .creator-intro h1{font-size:30px}.new-game-card{padding:18px}.new-game-card>label{font-size:22px}.new-game-card>#start-game-button{width:100%}.new-game-note{font-size:14px;line-height:1.45}.idea-starter span{font-size:12px}.discover-intro{padding:18px 20px 14px}.discover-intro .section-heading .section-sub{font-size:12px}.home-games{padding-top:18px}#creator-view:has(#editor:not([hidden])) #creator-signed{padding-top:16px}.creation-guide{padding:12px 14px}.creation-guide h3{font-size:20px}.creation-guide .eyebrow{font-size:12px}.studio-controls>.change-panel,.studio-preview{padding:16px}
#play-view .play-header{padding:10px 16px 8px;grid-template-columns:minmax(0,1fr);gap:5px}#play-view .play-navigation{gap:4px;justify-content:space-between}#play-view .play-navigation .button{padding:8px 6px;font-size:12px}#play-view .play-title h1{font-size:26px}#play-view .play-actions{width:100%}#play-view .public-play-guide>div{padding:5px 8px}#play-view .public-play-guide p{font-size:14px}#play-view .public-play-guide span{font-size:12px}#play-view .play-stage{height:58dvh;min-height:390px}}
.draft-artwork{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:12px;min-width:0}.draft-artwork summary{cursor:pointer;min-height:44px;line-height:24px;padding:10px 0;font-weight:700}.draft-artwork p{overflow-wrap:anywhere}.draft-artwork input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}.draft-artwork input[type=file]{max-width:100%;box-sizing:border-box}.draft-artwork img{display:block;max-width:100%;width:120px;height:90px;object-fit:contain}.draft-artwork img[hidden]{display:none}.draft-artwork button{min-height:44px;white-space:normal;max-width:100%}.draft-artwork-card{border-top:1px solid var(--line);padding:14px 0}.draft-artwork-card label{min-height:44px;display:flex;align-items:center}.draft-artwork [data-status]{margin:12px 0}
#auth-dialog{max-height:calc(100dvh - 24px);overflow:auto;padding:26px}#auth-dialog h2{margin-bottom:12px}#auth-dialog #auth-help,#auth-dialog .google-help,#auth-dialog .status{font-size:14px!important;line-height:1.45}#auth-dialog .auth-tabs{margin-bottom:14px}#auth-dialog .auth-tabs button,#auth-dialog .dialog-close,#auth-dialog #auth-dismiss{min-height:44px}#auth-form label{font-size:14px;margin:12px 0}#auth-form input{font-size:16px;min-height:44px}#signup-details-help,#email-password-help{font-size:14px;line-height:1.4;margin:12px 0;color:var(--muted)}#email-method{border-top:1px solid var(--line);margin-top:16px}#email-method summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:14px;font-weight:700}#email-method summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}#email-fields{border:0;padding:0;margin:0;min-width:0}#auth-dialog .status:empty{display:none}#google-button{min-height:44px;max-width:100%}#google-button iframe{max-width:100%}#auth-dialog #auth-dismiss{width:100%;margin-top:14px}@media(max-width:620px){#auth-dialog{padding:20px}}
.studio-preview .sharing-help{font-size:14px;line-height:1.45;margin:8px 0}.studio-preview .publish-row label{font-size:14px}.studio-preview .publish-row select{min-height:44px;font-size:16px}.publish-review[aria-labelledby="publish-review-title"]{padding:24px}.publish-review[aria-labelledby="publish-review-title"] h2{font-size:26px;margin:0 0 12px}.publish-review[aria-labelledby="publish-review-title"] p{font-size:14px;line-height:1.45;margin:8px 0}.publish-review .publish-review-game{font-size:18px!important;font-weight:700;overflow-wrap:anywhere}.publish-review .publish-review-revision{color:var(--muted)}
.remix-continuation{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px}.remix-continuation h2{font-size:26px;margin:0 0 12px}.remix-continuation p,#auth-dialog #auth-remix-note,.draft-remix-credit{font-size:14px;line-height:1.45;overflow-wrap:anywhere}.remix-continuation button,.draft-remix-credit button{min-height:44px}.draft-remix-credit{margin:0 0 20px;padding:14px;border:1px solid var(--line);border-radius:12px}.draft-remix-credit a{color:var(--accent)}
#forgot-password{min-height:44px;width:100%;margin-top:12px}#password-recovery-dialog{max-height:calc(100dvh - 24px);overflow:auto;padding:24px}#password-recovery-dialog h2{font-size:28px;margin:8px 0 14px}#password-recovery-dialog p,#password-recovery-dialog .status{font-size:14px!important;line-height:1.5}#password-recovery-dialog label{display:block;font-size:14px;margin:16px 0}#password-recovery-dialog input{display:block;width:100%;min-height:44px;margin-top:8px;padding:12px;font-size:16px;border:1px solid #63708c;border-radius:9px;background:#11192b;color:var(--text)}#password-recovery-dialog button{min-height:44px}#password-recovery-dialog form .button,#password-return-signin{width:100%;margin-top:12px}#password-recovery-dialog .status:empty{display:none}
.public-remixes-section .remix-games-note{font-size:14px;line-height:1.45}.public-remixes-section button,#view-public-remixes{min-height:44px}.public-remixes-section h2:focus{outline:2px solid var(--accent);outline-offset:5px}.play-social{flex-wrap:wrap}
/* The phone reading order is play, ask, then optional sharing—not visual-only tabs. */
.studio-grid{grid-template-areas:"controls preview"}.studio-preview{grid-area:preview}.studio-controls{grid-area:controls;min-width:0}.creator-navigation,.creator-return{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.creator-return{margin:12px 0}.creator-navigation button,.creator-return button,#editor button,#editor summary{min-height:44px}.creator-navigation button{flex:1}.creation-guide .eyebrow,.creation-guide .creation-steps{display:none}.creation-guide{padding:10px 14px}.creation-guide h3{font-size:18px;line-height:1.4;margin:0 0 4px}.creation-guide p{font-size:14px;line-height:1.45;margin:0}.creation-guide.ready-guidance #creation-guide-detail{display:none}.creation-guide.ready-guidance h3{margin:0}.editor-heading h2{overflow-wrap:anywhere}.change-panel textarea{font-size:16px;line-height:1.5}.change-panel h3{font-size:22px}.change-panel #change-help{font-size:14px;line-height:1.45}.change-panel .change-actions{margin:12px 0}.change-options>summary{cursor:pointer;font-size:14px;line-height:1.4;padding:12px 0}.change-options{border-top:1px solid var(--line);margin-top:14px}.change-options .change-ideas button{font-size:14px}.studio-controls .fine-print,#editor .status,.unsent-recovery p{font-size:14px!important;line-height:1.45}.studio-controls .status:empty,.studio-preview .status:empty{display:none}.studio-sharing .sharing-help{font-size:14px;line-height:1.45;margin:8px 0}.studio-sharing .publish-row label{font-size:14px}.studio-sharing select{font-size:16px;min-height:44px}.studio-preview h3:focus{outline:2px solid var(--accent);outline-offset:4px}
#preview-controls-short{display:none}
#editor summary:focus-visible,.game-frame-wrap:focus-within{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:960px){.studio-grid{grid-template-areas:"preview" "controls"}.studio-preview .play-guide{display:flex;flex-direction:column}.studio-preview .play-guide>div{display:flex;gap:8px;align-items:baseline;padding:6px 8px}.studio-preview .play-guide>div>span{flex:0 0 70px;text-transform:none;letter-spacing:0;font-size:12px}.studio-preview .play-guide p{font-size:14px;line-height:1.4;margin:0}#preview-controls{display:none}#preview-controls-short{display:block}.studio-preview .play-guide>div:has(#preview-mechanics){display:none}.studio-preview .full-game-instructions{font-size:14px}.studio-preview .full-game-instructions summary{min-height:44px}.studio-preview .game-frame-wrap{height:430px}.draft-remix-credit{padding:10px 12px;margin-bottom:12px}.editor-heading{gap:10px;align-items:flex-start}.editor-heading h2{font-size:26px}.preview-heading h3{font-size:20px}}
/* Decision text stays readable; larger copy may wrap rather than disappear. */
.game-card .game-card-choice p,.game-card-choice-label,.game-card-choice li,.game-card .game-card-choice-more{font-size:14px;line-height:1.45}
.home-games .game-card-foot,.profile-games .game-card-foot,.profile-games .game-card-foot strong,#my-view .game-card-foot{font-size:14px;line-height:1.45;flex-wrap:wrap;overflow-wrap:anywhere}
#my-view .published-audience{font-size:14px!important;line-height:1.5}
#my-view .game-card-insights p,#my-view .published-draft-note{font-size:14px;line-height:1.5}
#play-save-note,#preview-save-note{font-size:14px!important;line-height:1.5}
/* Notes and sharing are secondary; playing an available version is the clear action. */
#my-view .button.secondary{font-size:14px;line-height:1.3;background:var(--surface2);color:var(--text);border-color:#6c7696;white-space:normal;overflow-wrap:anywhere}
#my-view .published-card-actions{margin-top:0}
#my-view .published-card-actions .button{min-height:44px;font-size:14px;line-height:1.3}
#my-view .published-draft-note{margin:10px 0 14px}
#my-view .owner-version-feedback{margin-top:14px;border-top:1px solid var(--line)}
#my-view .owner-version-feedback>summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:14px;line-height:1.45;color:var(--text);overflow-wrap:anywhere}
#my-view .owner-version-feedback>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#my-view .owner-version-feedback>p,#my-view .owner-version-feedback .game-card-signals{font-size:14px;line-height:1.5;margin:0 0 14px}
#my-view .owner-version-feedback .game-card-insights{margin-bottom:0}
#report-dialog p,#report-dialog label,#report-dialog small{font-size:14px;line-height:1.5}
#report-dialog select,#report-dialog textarea{font-size:16px;line-height:1.5}
@media(max-width:620px){#play-view .play-actions .button,#play-view .play-title p{font-size:14px;line-height:1.4}#play-view .play-title .eyebrow{font-size:12px;line-height:1.4}}
.owner-games-search label,.owner-games-search .button{font-size:14px}.owner-games-search .game-search-controls{flex-wrap:wrap}.owner-games-search input{flex:1 1 240px}.owner-games-search .button{width:auto}#owner-games-status{font-size:14px!important;overflow-wrap:anywhere}#published-grid h3{overflow-wrap:anywhere}@media(max-width:620px){.owner-games-search input{flex-basis:100%}.owner-games-search .button{flex:1}}
.private-drafts-search label,.private-drafts-search .button{font-size:14px}.private-drafts-search .game-search-controls{flex-wrap:wrap}.private-drafts-search input{flex:1 1 240px;min-height:44px}.private-drafts-search .button{width:auto;min-height:44px}#private-drafts-status{font-size:14px!important;overflow-wrap:anywhere}#draft-grid h3{overflow-wrap:anywhere}@media(max-width:620px){.private-drafts-search input{flex-basis:100%;font-size:16px}.private-drafts-search .button{flex:1}}
/* Before a first game exists, the idea is the action and the preview is a note. */
.editor.first-game .studio-preview .game-frame-wrap:has(#draft-frame[hidden]){height:auto;min-height:0;padding:12px 14px}
.editor.first-game .studio-preview .preview-empty{max-width:none;text-align:left;font-size:14px;line-height:1.45}
@media(max-width:960px){.editor.first-game .studio-grid{grid-template-areas:"controls" "preview"}}
/* Reuse the public player's focus controls without replacing the private frame. */
.studio-preview .preview-heading{flex-wrap:wrap}
.studio-preview .preview-heading>div{min-width:0;flex:1 1 190px}
.studio-preview .game-frame-wrap.game-focused{position:fixed;inset:0;z-index:1000;display:grid;grid-template-rows:auto minmax(0,1fr);place-items:stretch;width:100%;height:100dvh;max-width:none;min-height:0;margin:0;border:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}
.studio-preview .game-frame-wrap.game-focused iframe{width:100%;height:100%;min-height:0}
.contribution-dialog label{display:block;margin:14px 0;font-size:15px;line-height:1.45}.contribution-dialog input:not([type=checkbox]),.contribution-dialog select{display:block;width:100%;box-sizing:border-box;min-height:44px;margin-top:6px;padding:10px;background:#101728;color:#fff;border:1px solid #65708b;border-radius:8px;font:inherit}.contribution-dialog .contribution-check{display:flex;align-items:flex-start;gap:10px}.contribution-dialog input[type=checkbox]{flex:0 0 22px;width:22px;height:22px;margin-top:2px}.contribution-dialog p{font-size:14px;line-height:1.5}.contribution-dialog{overflow-wrap:anywhere}
.fresh-approach-choice .fresh-approach-label{display:flex;align-items:center;gap:10px;margin:12px 0 4px;font-size:14px}.fresh-approach-choice .fresh-approach-checkbox{display:inline-block;flex:0 0 22px;width:22px;height:22px;margin:0}
