/* Shared rhythm for the learning workspace. */
main :is(input,select,textarea){max-width:100%;box-sizing:border-box}main input[type=checkbox]{width:17px;min-width:17px;height:17px;min-height:17px;flex:none;accent-color:var(--cosmic-accent)}main label.checkline{display:flex;align-items:center;gap:9px;line-height:1.5}main :is(button,.btn){vertical-align:middle}main :is(h1,h2,h3,p){overflow-wrap:break-word}
[hidden]{display:none!important}.refresh-page{font-family:var(--cosmic-body,system-ui,sans-serif)}.tool-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.65fr);gap:40px;align-items:center;padding:50px 0}.tool-hero h1{font:800 clamp(34px,5vw,60px)/1.08 system-ui,sans-serif;letter-spacing:-.04em;margin:18px 0}.tool-hero .intro{font-size:18px;line-height:1.65;max-width:64ch}.tool-game-logo{width:100%;height:auto;object-fit:contain}.player-hero-art{width:230px;max-height:310px;object-fit:contain;justify-self:center}.tool-hero .actions{gap:10px}.tier-reference,.brand-archive details{border:1px solid var(--cosmic-border);border-radius:12px;padding:18px}.tier-reference summary,.brand-archive summary{min-height:32px;cursor:pointer}.tier-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:20px}.tier-reference figure,.event-photo-grid figure{margin:0;overflow:hidden;border-radius:12px;background:var(--cosmic-surface);border:1px solid var(--cosmic-border)}.tier-reference img{display:block;width:100%;height:auto}.tier-reference figcaption,.event-photo-grid figcaption{font:12px/1.5 system-ui;padding:14px;color:var(--cosmic-surface-muted)}.tier-roster{border:1px solid var(--cosmic-border);padding:14px;border-radius:10px;margin:18px 0}.tier-roster summary{font-weight:650;cursor:pointer;min-height:28px}.tier-roster-controls{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0;align-items:end}.tier-roster-controls label{flex:1;min-width:160px}.tier-roster-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:290px;overflow:auto;padding:4px}.tier-roster-grid button{font-size:12px;padding:9px 8px;min-height:46px}.tier-history{display:flex;gap:8px;margin:14px 0}.tier-history button{min-height:40px;font-size:12px}.tier-row h4{background-position:center;background-size:cover}.tier-row h4 span{position:relative}.tier-key-help{font:12px/1.7 system-ui;color:var(--cosmic-muted)}
.welcome-veil{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;background:linear-gradient(125deg,#0c182ccc,#2930519c,#32203ec7),url('/assets/brand-refresh/desert-night.webp') center/cover;backdrop-filter:blur(8px);opacity:0;transition:opacity .6s ease;overflow:auto}.welcome-visible{opacity:1}.welcome-card{width:min(690px,100%);box-sizing:border-box;padding:36px 40px;border-radius:22px;border:1px solid #e3dbc252;background:#0f1919e8;color:#f1efe7;box-shadow:0 30px 100px #0005;position:relative}.welcome-card::before{content:'';position:absolute;inset:-1px;border-radius:22px;pointer-events:none;background:radial-gradient(ellipse at 0% 0%,#80d8cb22,transparent 55%);animation:welcome-hue 12s ease-in-out infinite alternate}.welcome-card>*{position:relative}.welcome-mark{width:64px;height:64px;object-fit:contain;margin-bottom:14px}.welcome-card .eyebrow{display:block;color:#d8c58e}.welcome-card h2{font:800 clamp(29px,4vw,44px)/1.12 system-ui,sans-serif;letter-spacing:-.035em;margin:14px 0}.welcome-card>p{font:15px/1.7 system-ui;color:#c0ccc5}.welcome-actions{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0}.welcome-actions :is(a,button){min-height:46px;padding:12px 17px;border-radius:9px;font:650 13px/1.3 system-ui}.welcome-actions .secondary{background:transparent;color:#f1efe7;border:1px solid #a2b7a282}.welcome-shortcuts{display:flex;flex-wrap:wrap;gap:9px 18px;border-top:1px solid #91a49155;padding:20px 0}.welcome-shortcuts a{color:#dccc98;font:12px/1.6 system-ui;min-height:32px;display:flex;align-items:center}.welcome-sound{display:flex;align-items:center;gap:10px;font:12px/1.6 system-ui}.welcome-sound input{width:17px;height:17px;accent-color:#d2b975}.welcome-card .welcome-hint{font-size:11px;margin:16px 0 0;color:#9fafaa}.welcome-leaving{opacity:0;pointer-events:none}.welcome-leaving .welcome-card{transform:translateY(10px);transition:transform .6s ease}.quiet-sound{display:inline-flex;min-height:40px;padding:9px 13px;font-size:12px;margin-bottom:12px}.about-full-intro{display:grid;grid-template-columns:1fr 1.2fr;gap:35px;align-items:center}.about-full-intro video{width:100%;display:block;aspect-ratio:16/9;background:#080d0e;border:1px solid var(--cosmic-border);border-radius:12px}.about-full-intro .text-link{font-size:12px;display:inline-block;margin-top:14px}.event-photo-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:18px}.event-photo-grid img{display:block;width:100%;height:230px;object-fit:cover;object-position:center}.brand-archive>img{display:block;width:100%;border-radius:14px;margin:24px 0}.brand-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-top:20px;align-items:center}.brand-archive-grid img{width:100%;max-height:350px;object-fit:contain}.brand-archive-grid figure{margin:0}.brand-archive-grid figcaption{font-size:12px}.brand-archive details{margin-top:22px}
.alert-wordmark{width:min(500px,100%);height:auto;display:block;margin-bottom:25px}.alert-hero h1{font-size:clamp(34px,4.5vw,54px)}.alert-game-art{width:100%;border-radius:12px}.alert-intro{display:grid;grid-template-columns:1fr 1.2fr;gap:40px;align-items:center}.alert-intro video{width:100%;border:1px solid var(--cosmic-border);border-radius:12px;background:#090c0d}.alert-intro .alert-wordmark{max-width:300px}.alert-footer-mark{max-width:250px}.alert-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.alert-story{padding:22px;border:1px solid var(--cosmic-border);border-radius:12px;background:var(--cosmic-surface);color:var(--cosmic-surface-text)}.alert-story>time{display:block;font:11px/1.7 system-ui;color:var(--cosmic-surface-muted);margin-top:7px}.alert-story>p{white-space:pre-wrap;font-size:14px;line-height:1.8}.alert-author{font-weight:700}.alert-story>.text-link{font-size:12px}.feed-page-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:25px}.feed-page-controls button{min-height:44px}.alert-empty{padding:24px;border:1px solid var(--cosmic-border);border-radius:12px;grid-column:1/-1}.feed-digest{padding:17px 20px;margin:18px 0;border:1px solid var(--cosmic-border);border-radius:12px;background:var(--cosmic-surface)}.feed-digest summary{font:650 13px/1.6 system-ui;cursor:pointer;color:var(--cosmic-surface-link)}.feed-digest li{padding:8px 0;font:13px/1.7 system-ui}.feed-digest small{font-size:11px;color:var(--cosmic-surface-muted)}.owner-preview-status{font-size:12px;padding:10px 14px;border:1px dashed var(--cosmic-border);border-radius:8px}.timeline-curated-note{font-size:14px}.fgc-column-posts .feed-digest{margin:12px;font-size:12px}.fgc-column{align-self:start}.fgc-column-posts:has(>.fgc-empty-state){height:auto}
.account-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.account-path-grid a{padding:20px;border:1px solid var(--cosmic-border);border-radius:12px;display:grid;gap:12px;background:var(--cosmic-surface);text-decoration:none}.account-path-grid span{font-size:13px;color:var(--cosmic-surface-muted);line-height:1.7}.account-orientation h2{font:750 30px/1.2 system-ui}.profile-avatar,.member-avatar,.message-avatar,.player-portrait,.leaderboard-player img{display:inline-block;flex:none;object-fit:contain;object-position:center;aspect-ratio:1;border-radius:20%;overflow:hidden;background:var(--cosmic-surface)!important}.account-avatar{width:34px;height:34px;display:grid;place-items:center;flex:none;overflow:hidden}.account-avatar img{width:32px;height:32px;object-fit:contain;display:block}.showcase-author,.community-message{align-items:center}.preset-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.preset-option{min-width:0;box-sizing:border-box}.preset-option span{line-height:1.4;min-height:30px;display:grid;place-items:center}.preset-option img{object-fit:contain;padding:3px;box-sizing:border-box}.profile-settings form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-settings form>fieldset,.profile-settings form>.checkline,.profile-settings form>.community-status{grid-column:1/-1}.profile-settings form>label{margin:0}.profile-settings form label:has(textarea){grid-column:1/-1}.community-stats{display:flex;flex-wrap:wrap;gap:10px}.community-stats span{font-size:12px;border:1px solid var(--cosmic-border);border-radius:8px;padding:9px 12px}.player-settings-form{display:grid;gap:16px;border:1px solid var(--cosmic-border);border-radius:14px;padding:24px;background:var(--cosmic-surface);max-width:850px}.player-settings-form label{display:grid;gap:8px;font-size:13px}.player-settings-form .checkline{display:flex}.player-settings-form textarea{width:100%;min-height:110px}.player-settings-form input:not([type=checkbox]){min-height:46px;padding:10px}.player-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.player-metric{padding:20px;border:1px solid var(--cosmic-border);border-radius:12px;display:grid;gap:8px;background:var(--cosmic-surface)}.player-metric strong{font:750 27px/1.2 system-ui}.player-metric span{font-size:12px;color:var(--cosmic-surface-muted)}.learning-leaderboard{display:grid;gap:10px}.leaderboard-player{display:grid!important;grid-template-columns:30px 48px 1fr auto;text-align:left;align-items:center;gap:16px;padding:16px;border:1px solid var(--cosmic-border);border-radius:12px;background:var(--cosmic-surface);color:var(--cosmic-surface-text);width:100%}.leaderboard-player>span:last-child{font-size:12px;color:var(--cosmic-surface-muted)}.player-heading{display:flex;align-items:center;gap:20px}.player-heading h2{margin:0}.player-detail>.text-link{display:block;padding:12px 0}.legend-stat-list{font-size:13px;line-height:2}.player-detail h3{margin-top:28px}.feature-settings-form{display:grid;gap:18px;max-width:880px}.feature-setting-row{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;padding:20px;border:1px solid var(--cosmic-border);border-radius:12px;background:var(--cosmic-surface)}.feature-setting-row p{font-size:13px;line-height:1.7}.feature-setting-row select{width:100%;min-height:46px}.feature-connection{padding:16px;border:1px solid var(--cosmic-border);border-radius:10px}.fc-smart-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 16px;border:1px solid var(--cosmic-border);border-bottom:0;background:var(--cosmic-surface)}.fc-smart-tools label{display:grid;gap:6px;font-size:11px;flex:1;min-width:140px}.fc-smart-tools input{height:42px;padding:9px;font-size:13px}.fc-smart-tools button{font-size:12px;min-height:42px}.fc-map-review{font-size:12px;line-height:1.7;padding:10px 16px;border-inline:1px solid var(--cosmic-border);margin:0;background:var(--cosmic-surface)}
@keyframes welcome-hue{to{opacity:.45;filter:hue-rotate(35deg)}}
@media(max-width:850px){.tool-hero{grid-template-columns:1fr .55fr;gap:24px}.event-photo-grid{grid-template-columns:1fr}.event-photo-grid img{height:auto;max-height:430px;object-fit:contain}.about-full-intro,.alert-intro{grid-template-columns:1fr}.account-path-grid{grid-template-columns:1fr}.player-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tier-roster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-settings form{grid-template-columns:1fr}.profile-settings form>*{grid-column:1!important}}
@media(max-width:600px){.tool-hero{grid-template-columns:1fr;padding-block:30px}.tool-game-logo{max-width:230px}.tool-hero .player-hero-art{display:none}.alert-hero .alert-game-art{max-height:140px;object-fit:cover}.alert-feed,.tier-reference-grid,.brand-archive-grid{grid-template-columns:1fr}.welcome-veil{padding:14px;align-items:start;padding-top:6vh}.welcome-card{padding:24px 22px}.welcome-actions{display:grid;grid-template-columns:1fr 1fr}.welcome-actions>button{grid-column:1/-1}.welcome-shortcuts{gap:4px 16px}.welcome-card h2{font-size:31px}.welcome-mark{width:48px;height:48px}.welcome-card>p{font-size:13px}.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.player-settings-form{padding:18px}.leaderboard-player{grid-template-columns:22px 42px 1fr;gap:10px}.leaderboard-player>span:last-child{grid-column:3}.leaderboard-player img{width:42px;height:42px}.feature-setting-row{grid-template-columns:1fr;gap:12px}.tier-roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fc-smart-tools{gap:8px}.fc-smart-tools label{width:100%}.fc-smart-tools button{flex:1}.player-metric{padding:15px}.player-metric strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.welcome-veil,.welcome-card{transition:none!important;animation:none!important}.welcome-card::before{animation:none}}

.tier-row:not(:last-child) h4{color:#fff!important;text-shadow:0 1px 4px #000}
.chosen-auth-form{border-color:var(--cosmic-accent);box-shadow:inset 0 3px var(--cosmic-accent)}

/* Let headings follow the reading width instead of breaking individual phrases. */
main :is(h1,h2,h3){text-wrap:balance;word-break:normal;hyphens:none;overflow-wrap:normal}
main h2{max-width:24ch;line-height:1.16;letter-spacing:-.025em}
main h3{line-height:1.3}
.section.split>div{min-width:0}
.about-hero h1{max-width:16ch}
.section.split h2{font-size:clamp(27px,3.2vw,42px)}
:is(.section,.page-hero,.tool-hero,.community-card,.voice-card){scroll-margin-top:28px}
html{scroll-padding-top:24px}
@media(max-width:850px){.section.split{grid-template-columns:minmax(0,1fr)!important;gap:26px}.section.split>div:first-child{max-width:100%}.section.split h2{max-width:24ch}}
@media(max-width:600px){main h1{font-size:clamp(31px,8.4vw,43px);line-height:1.1}main h2{font-size:clamp(25px,6.7vw,32px);max-width:23ch;line-height:1.18}.section.split h2{font-size:clamp(26px,6.8vw,32px)}.section{padding-block:32px}.about-hero h1{max-width:16ch}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
.alert-game-art{height:auto;object-fit:contain}.alert-intro video{aspect-ratio:16/9}

.studio-tabs{position:relative;top:auto;backdrop-filter:none}.feature-settings-form{max-width:none}
/* The first visit opens like a cover spread, using the site's own night artwork. */
.welcome-veil{padding:clamp(16px,3vw,40px);background:linear-gradient(120deg,#07110edc,#12231bd4 48%,#0b1612db),url('/assets/brand-refresh/desert-night.webp') center/cover;isolation:isolate;overflow:hidden}
body:has(.welcome-veil){overflow:hidden}
.welcome-veil::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 22% 34%,#dbbd6b24,transparent 26%),radial-gradient(circle at 76% 74%,#71d9c51b,transparent 29%);animation:welcome-atmosphere 16s ease-in-out infinite alternate}
.welcome-card{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,.7fr);width:min(1120px,100%);min-height:min(610px,calc(100dvh - 80px));padding:0;overflow:hidden;border:1px solid #e1c87c8c;border-radius:20px;background:linear-gradient(98deg,#0b1713f5,#14271edc 58%,#0c1713f2),url('/assets/brand-refresh/desert-night.webp') center/cover;box-shadow:0 36px 110px #000c,0 0 0 8px #e5d69b0d}
.welcome-card::before{inset:0;border-radius:20px;background:linear-gradient(135deg,#e5ca8340,transparent 24%,transparent 75%,#76d6c33a);animation:none}
.welcome-story{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(30px,5vw,76px);position:relative}
.welcome-story::after{content:"";display:block;width:min(190px,45%);height:2px;margin-top:36px;background:linear-gradient(90deg,#efd38b,#7de1d3,transparent)}
.welcome-mark{width:78px;height:78px;margin-bottom:36px;filter:drop-shadow(0 8px 18px #0009)}
.welcome-card .eyebrow{color:#86e8da;letter-spacing:.2em;font-size:11px}
.welcome-card h2{font:400 clamp(44px,6vw,84px)/.99 Georgia,serif;letter-spacing:-.055em;color:#f7f2e5;max-width:12ch;margin:19px 0 23px;text-wrap:balance;text-shadow:0 4px 24px #0009}
.welcome-story>p{font:400 clamp(16px,1.5vw,19px)/1.65 system-ui,sans-serif;max-width:37ch;color:#dde9dc;margin:0}
.welcome-entry{display:flex;flex-direction:column;justify-content:center;gap:24px;padding:clamp(26px,3vw,48px);border-left:1px solid #cfbd7e4d;background:#0b1713a8;backdrop-filter:blur(8px)}
.welcome-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.welcome-actions .btn:not(.secondary){grid-column:1/-1;grid-row:1;min-height:57px;border:1px solid #e5c777;background:#dbbf79;color:#0b1812;font-weight:800;font-size:14px}
.welcome-actions .secondary{min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;border-color:#a7b69a88}
.welcome-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;padding:20px 0;border-top:1px solid #d8c78155;border-bottom:1px solid #d8c78155}
.welcome-shortcuts a{min-height:42px;color:#f0ddaa;font-size:13px;line-height:1.25}
.welcome-shortcuts a::after{content:"↗";margin-left:5px;color:#86e8da}
.welcome-sound{color:#d0d9ce}
.welcome-card .welcome-hint{margin:0;color:#a6b6a9}
@keyframes welcome-atmosphere{from{transform:translate3d(-2%,0,0) scale(1)}to{transform:translate3d(2%,-2%,0) scale(1.05)}}
@media(max-width:760px){.welcome-card{display:block;min-height:0}.welcome-story{padding:30px 28px 24px}.welcome-mark{width:52px;height:52px;margin-bottom:18px}.welcome-card h2{font-size:clamp(40px,9vw,60px);margin:12px 0 16px}.welcome-story>p{font-size:14px}.welcome-story::after{margin-top:22px}.welcome-entry{padding:24px 28px;border-left:0;border-top:1px solid #cfbd7e4d;gap:14px}.welcome-veil{align-items:start;overflow-y:auto;overflow-x:hidden}.welcome-shortcuts{padding:12px 0}.welcome-shortcuts a{min-height:33px;font-size:12px}}
@media(max-width:430px){.welcome-veil{padding:12px}.welcome-story{padding:24px 22px 18px}.welcome-entry{padding:20px 22px}.welcome-actions{grid-template-columns:1fr}.welcome-actions .btn:not(.secondary){grid-column:1}.welcome-actions .secondary{min-height:40px}.welcome-card h2{font-size:38px}}
@media(prefers-reduced-motion:reduce){.welcome-veil::before{animation:none}}
