:root{color-scheme:light;--paper:#f6f3e9;--surface:#fffcf4;--ink:#1c3931;--muted:#50645c;--line:#d4dace;--accent:#a94118;--green:#244e40;--light:#e4ebdc;--orange:#f5a257;--focus:#a94118;font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select{font:inherit}button,.action{cursor:pointer;min-height:48px;padding:.7rem 1.1rem;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.65rem}button:hover,.action:hover{border-color:#87a291;background:#eef1e5}button:active,.action:active{background:#e4ebdc}button:disabled{cursor:default;opacity:.6}.primary{background:var(--green);color:#fff8e9;border-color:var(--green)}.primary:hover{background:#173a2e;color:white}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,iframe:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.top{background:var(--paper);border-bottom:1px solid var(--line)}.bar,main,footer{width:min(1232px,100%);margin:auto;padding-left:clamp(20px,3.2vw,44px);padding-right:clamp(20px,3.2vw,44px)}.bar{min-height:82px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-size:1.15rem;line-height:1.15;text-decoration:none;font-weight:780;white-space:nowrap}.brand small{display:block;font-size:.5625rem;letter-spacing:.14em;margin-top:7px;font-weight:700}.bar nav{display:flex;align-items:center;gap:4px}.bar nav a{display:flex;gap:9px;align-items:center;justify-content:center;min-height:48px;padding:12px 14px;text-decoration:none;border-radius:12px;color:var(--muted);font-weight:650;white-space:nowrap}.bar nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.bar nav a:hover{background:var(--light)}.bar nav a[aria-current=page]{background:var(--green);color:#fff8eb}.env{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:.75rem;color:var(--muted);white-space:nowrap}.env i{width:7px;height:7px;background:#4e795d;border-radius:50%}.skip{position:fixed;top:-100px;padding:12px;background:#fff;z-index:20}.skip:focus{top:12px;left:12px}
main{min-height:74vh;padding-top:34px;padding-bottom:44px}.screen-heading{font-size:clamp(1.8rem,3vw,2.55rem);line-height:1.2;letter-spacing:-.035em;margin:0 0 10px}.library-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.library-welcome .intro{margin:0}.eyebrow{display:block;color:var(--accent);font-size:.72rem;font-weight:750;letter-spacing:.1em;margin:0 0 12px}.intro{font-size:1rem;line-height:1.65;color:var(--muted)}.hero{display:grid;grid-template-columns:1fr 46%;align-items:stretch;border:1px solid #becbb9;border-radius:22px;overflow:hidden;background:#e4ebd9}.hero-info{padding:clamp(24px,3.2vw,40px)}.hero h2{font-size:clamp(2rem,4vw,3.3rem);line-height:1.13;margin:0 0 16px;letter-spacing:-.035em}.hero p,.detail p{font-size:1rem;line-height:1.7;color:#3c574b;margin:0 0 23px;max-width:48ch}.hero-art{width:100%;height:100%;min-height:260px;max-height:365px;object-fit:cover;display:block}.hero-caption{display:block;margin-top:20px;color:var(--muted);font-size:.78rem}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.text-link{display:inline-flex;align-items:center;gap:8px;min-height:48px;font-size:.875rem;font-weight:650;padding:10px 2px;text-underline-offset:5px}.library-head{margin:0 0 18px;display:flex;gap:15px;align-items:baseline;justify-content:space-between}.library-head h2{font-size:1.6rem;letter-spacing:-.03em;margin:0}.library-head .meta{margin:.5rem 0 0}.count,.small,.meta{font-size:.8125rem;color:var(--muted)}.library-tools{position:sticky;top:0;z-index:2;padding-top:30px;padding-bottom:4px;background:var(--paper)}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.filters input,.filters select{min-height:48px;border:1px solid #aebfaf;border-radius:12px;background:var(--surface);color:var(--ink);padding:.65rem .9rem}.filters input{flex:1;min-width:min(220px,100%)}.filters select{max-width:100%}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;background:var(--surface);text-decoration:none;min-width:0}.card:hover{border-color:#879c87;background:#fffef7;box-shadow:0 5px 16px #1c39310a}.card:active{background:var(--light)}.card-art{display:block;aspect-ratio:600/316;background:var(--light);overflow:hidden}.thumb{width:100%;height:100%;object-fit:cover;display:block}.glyph{display:grid;place-items:center;color:var(--green);font-family:ui-monospace,monospace;font-size:2.6rem;font-weight:750;letter-spacing:.04em;background:#e6e9dc}.card-content{min-width:0;padding:18px;display:flex;flex:1;flex-direction:column}.card-category{font-size:.7rem;font-weight:650;color:var(--muted);letter-spacing:.03em}.card strong{display:block;font-size:1.15rem;line-height:1.35;margin:7px 0 9px;overflow-wrap:anywhere}.card-description{font-size:.82rem;line-height:1.65;color:var(--muted);margin-bottom:18px;overflow-wrap:anywhere}.card-foot{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}.card-foot small{font-size:.72rem;color:var(--muted)}.avail{color:#266747!important}.recent-shelf{margin-top:32px}.pagination{display:flex;justify-content:center;gap:18px;align-items:center;margin-top:28px}.pagination span{font-size:.875rem}
.back{display:inline-flex;align-items:center;min-height:48px;margin:0 0 16px;font-size:.875rem;color:var(--muted);text-underline-offset:5px}.detail{padding:clamp(22px,3vw,38px);border:1px solid var(--line);border-radius:22px;background:var(--surface)}.detail h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.15;margin:0 0 18px;letter-spacing:-.035em;overflow-wrap:anywhere}.detail-visual{display:grid;grid-template-columns:minmax(0,1fr) 40%;align-items:center;gap:32px}.detail-visual>img{width:100%;height:auto;aspect-ratio:600/316;object-fit:cover;border-radius:16px}.facts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.chip{display:inline-block;padding:6px 11px;border:1px solid #c8d4c3;background:var(--light);border-radius:30px;font-size:.75rem;font-weight:650}.detail-secondary{margin-top:18px}.detail-modes{margin-top:30px;padding-top:25px;border-top:1px solid var(--line)}.detail-modes h2{font-size:1rem;margin:0 0 15px}.play-options{align-items:stretch}.play-option{flex:1 1 250px;display:flex;align-items:center;gap:16px;padding:20px;border-radius:15px;border:1px solid #b7c7b5;text-decoration:none;min-height:100px;background:var(--light);color:var(--ink)}.play-option.primary{color:#fff8e9;background:var(--green);border-color:var(--green)}.play-option:hover{box-shadow:0 0 0 2px #87a291}.play-option:active{box-shadow:inset 0 0 0 2px #f5a257}.play-symbol{font-size:1.3rem;font-weight:800;letter-spacing:-.04em;flex-shrink:0}.play-option strong,.play-option small{display:block}.play-option strong{font-size:1.05rem;margin:0 0 6px}.play-option small{font-size:.78rem;line-height:1.55;font-weight:400;opacity:.9}.play-option>span:last-child{margin-left:auto}.note{padding:16px 18px;border-left:3px solid var(--orange);background:#f6efd9;margin:18px 0;line-height:1.7}.wide{margin-top:20px}.wide h2{font-size:1.25rem}.notice{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:24px;line-height:1.65}.grid>.notice{grid-column:1/-1}.loading{color:var(--muted)}.runner{width:100%;display:block;height:min(710px,84vh);min-height:545px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}.game-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}.game-top h1{font-size:1.25rem;margin:0}.game-top span{font-size:.75rem;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:12px;padding-top:17px;padding-bottom:19px;border-top:1px solid var(--line);font-size:.75rem;color:var(--muted)}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;width:min(440px,90vw);padding:26px}dialog::backdrop{background:#16362a60}dialog h2{margin:0}dialog p{line-height:1.65}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}main:focus{outline:none}[hidden]{display:none!important}

/* Account paths share the lobby's paper, ink and accent labels. */
.profile-panel{max-width:930px;margin:0 auto}.profile-hero{padding:clamp(20px,4vw,34px);background:var(--light);border:1px solid var(--line);border-radius:18px}.profile-hero h1{margin:.2rem 0 .5rem;font-size:clamp(1.75rem,4vw,2.8rem);line-height:1.12}.profile-hero p{margin:0;color:var(--muted);overflow-wrap:anywhere}.profile-columns{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.profile-block{margin:16px 0 0;padding:clamp(16px,3vw,26px);border:1px solid var(--line);border-radius:15px;background:var(--surface);overflow-wrap:anywhere}.profile-block h2{margin:0 0 .65rem;font-size:1.22rem}.profile-note,.profile-block>p{color:var(--muted);line-height:1.6}.profile-note:empty{display:none}.profile-block.review{border-color:var(--accent)}.profile-links,.profile-list{display:grid;gap:.35rem}.profile-links a,.profile-list li{display:flex;justify-content:space-between;align-items:center;min-height:44px;gap:1rem;border-bottom:1px solid var(--line)}.profile-links a:last-child,.profile-list li:last-child{border:0}.profile-list{list-style:none;margin:0;padding:0}.profile-list a{font-weight:700;padding:.65rem 0}.profile-scores{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1.25rem}.profile-scores dt{color:var(--muted)}.profile-scores dd{margin:0;font-weight:700}.profile-panel>.back{margin-top:1.25rem}.favorite-tools,.invite-account{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.favorite-tools .profile-note,.invite-account .profile-note{margin:0}.invite-account{margin:0 0 1rem}.favorite-action[aria-pressed=true]{color:var(--green);background:var(--light)}.profile-panel button:disabled,.favorite-action:disabled{opacity:.65}
@media(max-width:620px){.profile-columns{grid-template-columns:1fr;gap:0}.bar nav:has([data-nav=account]){gap:2px;justify-content:space-between}.bar nav:has([data-nav=account]) a{padding:.55rem .45rem;white-space:nowrap;font-size:.9rem}.profile-block .actions{flex-wrap:wrap}}
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0}.legacy-file{display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem;font-weight:650}.legacy-file input{width:100%;min-width:0;max-width:100%;min-height:44px;padding:.5rem;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit;color:inherit}
.device-list li{flex-wrap:wrap}.device-list small{color:var(--muted)}.device-confirm{padding:.75rem 1rem;background:var(--light);border-radius:.65rem}.device-confirm p{margin:.15rem 0 .6rem}.device-confirm .actions{margin:0}
.result-panel>.back{margin:.25rem 0 1rem}.results-list{list-style:none;padding:0;margin:0}.result-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;padding:.9rem .15rem;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}.result-row:hover,.result-row:focus-visible{background:var(--light)}.result-row small{display:block;color:var(--muted);margin-top:.25rem}.result-outcome{background:#ecede6;color:#395047;border-radius:1rem;padding:.25rem .6rem}.result-outcome.win{background:#e3efdd;color:#305435}.result-outcome.loss{background:#f5e9df;color:#75452c}.result-scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;max-width:32rem}.result-scoreboard div{padding:1rem;border-radius:.75rem;background:var(--light)}.result-scoreboard b,.result-scoreboard span{display:block}.result-scoreboard b{font-size:2.3rem}.result-digest{display:block;overflow-wrap:anywhere;margin:.7rem 0}.result-panel details summary{cursor:pointer}.or-result{margin:1rem 0}.or-result a{display:inline-block;min-height:44px;padding:.5rem 0;color:inherit;font-weight:700}
@media(max-width:620px){.result-row{grid-template-columns:auto minmax(0,1fr);gap:.4rem .8rem}.result-row>.result-when{grid-column:2}.result-row small{overflow-wrap:anywhere}}

.save-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.9rem 0;border-bottom:1px solid var(--line)}
.save-row small{display:block;flex-basis:100%;overflow-wrap:anywhere}.save-actions{margin:.5rem 0 .8rem;flex-wrap:wrap}

/* This document opts into the Android root font preference. Allow multi-line controls at large sizes. */
main .oa-room { font-size: 1rem; }
main .oa-room .or-board button { font-size: clamp(1rem,3.5vw,1.5rem); }
.bar nav, .library-head, .game-top { flex-wrap: wrap; }
@media (max-width:620px) {
  .bar nav { justify-content: flex-start; }
  .hero-info, .detail-visual > div, .card > div { min-width: 0; }
  .hero-info, .card small, .note { overflow-wrap: anywhere; }
  .actions > .action, .actions > button { max-width: 100%; overflow-wrap: anywhere; }
}

.android-return{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;max-width:1176px;margin:.5rem auto;padding:0 clamp(1rem,4vw,2.875rem)}.android-return span{color:var(--muted)}

.storage-list li{flex-wrap:wrap;gap:.75rem;padding:.8rem 0}.storage-list li>div:first-child{flex:1;min-width:min(15rem,100%)}.storage-list small{display:block;margin-top:.35rem;color:var(--muted);line-height:1.5}.storage-confirm{flex-basis:100%;margin-bottom:.3rem}.storage-list button{max-width:100%;white-space:normal}footer{flex-wrap:wrap}footer>a{min-height:44px;display:flex;align-items:center;text-underline-offset:4px}

/* Library / detail pilot: one navigation tree, shared with native wrappers. */
@media(min-width:1040px){
 body{padding-left:208px}.top{position:fixed;inset:0 auto 0 0;width:208px;border:0;border-right:1px solid var(--line);z-index:5}
 .top .bar{height:100%;min-height:0;align-items:stretch;flex-direction:column;gap:38px;padding:34px 20px 24px}
 .top .brand{font-size:1.08rem;gap:7px}.top .brand img{width:32px;height:32px}.top .brand small{font-size:.5rem}
 .top .bar nav{flex-direction:column;align-items:stretch;gap:10px;flex-wrap:nowrap}.top .bar nav a{justify-content:flex-start;padding:14px 17px;gap:15px}
 .top .env{margin: auto 0 0;padding:0 12px;white-space:normal;line-height:1.6}.android-return{max-width:1232px}
}
@media(min-width:761px) and (max-width:1039px){
 .top .bar{gap:16px;padding-left:24px;padding-right:24px}.top .bar nav{flex-wrap:nowrap;gap:2px}.top .bar nav a{padding:12px 10px;font-size:.9rem}.top .env{display:none}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr 40%}.hero-info{padding:28px}
}
@media(max-width:760px){
 body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}.top .bar{min-height:70px;flex-wrap:nowrap;gap:12px;padding:15px 20px}.top .brand{font-size:1.05rem}.top .brand img{width:32px;height:32px}.top .brand small{font-size:.5rem;margin-top:5px}.top .env{margin-left:auto;font-size:.7rem}
 .top .bar nav{position:fixed;inset:auto 0 0;z-index:10;display:flex;flex-wrap:nowrap;gap:4px;justify-content:space-around;align-items:stretch;background:var(--surface);border-top:1px solid var(--line);padding:8px max(12px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}
 .top .bar nav a{flex:1;flex-direction:column;gap:5px;min-height:58px;padding:8px 4px;font-size:.7rem;line-height:1.2;border-radius:12px}.top .bar nav svg{width:20px;height:20px}
 main{padding-top:24px}.library-welcome{align-items:flex-start;gap:8px;margin-bottom:22px}.library-welcome .eyebrow{font-size:.64rem}.library-welcome .screen-heading{font-size:1.75rem}.library-welcome .intro{font-size:.86rem}.library-welcome>.text-link{font-size:.75rem;white-space:nowrap;padding-top:0;min-height:48px}
 .hero{grid-template-columns:minmax(0,1fr) 33%;border-radius:18px}.hero-info{padding:24px 16px 24px 22px}.hero h2{font-size:1.95rem;margin-bottom:12px}.hero .eyebrow{font-size:.64rem;letter-spacing:0;margin-bottom:12px}.hero p{font-size:.82rem;margin-bottom:17px}.hero-art{max-height:none;min-height:100%;object-position:52%}.hero .actions{gap:8px}.hero .action{font-size:.82rem;padding:.65rem .85rem}.hero-caption{font-size:.68rem;margin-top:15px}
 .library-tools{padding-top:27px}.library-head{gap:8px;margin-bottom:14px}.library-head h2{font-size:1.35rem}.count{font-size:.73rem}.filters{gap:8px;margin-bottom:17px}.filters input{flex-basis:100%}.filters select{flex:1;min-width:0;font-size:.85rem}.grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .card{flex-direction:row;min-height:152px;border-radius:15px}.card-art{width:30%;max-width:140px;flex-shrink:0;aspect-ratio:auto}.thumb{min-height:100%;object-fit:cover;object-position:50%}.card-content{padding:14px;flex:1}.card strong{font-size:1rem;margin:5px 0 7px}.card-category{font-size:.65rem}.card-description{font-size:.75rem;margin-bottom:12px;line-height:1.6}.card-foot{padding-top:9px}.card-foot small{font-size:.66rem}.glyph{font-size:1.7rem}
 .detail{padding:22px;border-radius:18px}.detail-visual{grid-template-columns:minmax(0,1fr) 88px;gap:16px;align-items:start}.detail-visual>img{display:block;width:88px;height:104px;aspect-ratio:auto;order:0;border-radius:12px}.detail h1{font-size:2rem}.detail p{font-size:.9rem}.detail-modes{margin-top:22px;padding-top:20px}.play-option{flex-basis:100%;padding:18px;min-height:100px}.play-symbol{font-size:1.2rem}.play-option small{font-size:.75rem}.pagination{gap:12px}.runner{min-height:590px;height:78vh}.screen-heading{font-size:2rem}
 .library-tools,.library-head h2{scroll-margin-top:16px}.profile-columns{grid-template-columns:1fr;gap:0}.actions>.action,.actions>button{max-width:100%;overflow-wrap:anywhere}footer{padding-bottom:24px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Profile, results and device settings reuse the library's hierarchy and surfaces. */
.profile-panel{max-width:980px}.profile-panel .profile-hero{padding:0;margin:0 0 28px;border:0;border-radius:0;background:transparent}.profile-hero h1{font-size:clamp(2rem,3.5vw,3rem);line-height:1.2;letter-spacing:-.035em;margin:0 0 12px}.profile-hero p{line-height:1.7;max-width:60ch}.profile-heading{display:flex;gap:22px;align-items:center}.profile-heading>div{min-width:0}.profile-heading .eyebrow{margin-bottom:9px}.profile-avatar{display:grid;place-items:center;flex-shrink:0;width:84px;height:84px;border:1px solid #dfbd8e;border-radius:28px;background:#f8edda}.profile-avatar img{display:block}.profile-identity{font-size:.9rem}.profile-panel .profile-block{padding:28px;margin-top:20px;border-radius:18px}.profile-block h2{font-size:1.12rem;line-height:1.45;margin:0 0 16px}.profile-block>p,.profile-disclosure-body>p{line-height:1.75;font-size:.9rem;color:var(--muted)}.profile-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.profile-columns>.profile-block{min-width:0}.profile-note{font-size:.82rem;line-height:1.7}.profile-panel>p[role=status]:not(:empty){margin:20px 0;padding:16px 20px;border:1px solid var(--line);border-radius:12px;background:var(--light)}
.profile-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-links a{display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0;min-height:78px;padding:15px;border:1px solid var(--line)!important;border-radius:12px;background:var(--paper);font-size:.85rem;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}.profile-links a:hover{border-color:#87a291!important;background:var(--light)}.profile-links b{font-size:1.3rem;font-variant-numeric:tabular-nums;color:var(--green)}.profile-scores{gap:14px 20px;margin:20px 0;font-size:.88rem;line-height:1.65}.profile-scores dd{min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.profile-list:not(.storage-list):not(.device-list){gap:10px}.profile-list:not(.storage-list):not(.device-list)>li{gap:16px;flex-wrap:wrap;min-height:70px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.profile-list:not(.storage-list):not(.device-list) a{min-height:48px;display:flex;align-items:center;min-width:0;flex:1;font-size:.95rem;text-underline-offset:5px}.profile-list small{color:var(--muted);font-size:.78rem}
.profile-panel .profile-disclosure{padding:0}.profile-disclosure>summary{padding:22px 28px;min-height:64px;font-weight:700;font-size:1rem;cursor:pointer;list-style-position:inside}.profile-disclosure>summary:hover{background:var(--light);border-radius:18px}.profile-disclosure>summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px;border-radius:18px}.profile-disclosure[open]>summary{border-bottom:1px solid var(--line);border-radius:18px 18px 0 0}.profile-disclosure-body{padding:8px 28px 26px}.profile-disclosure-body [data-import-preview]:not(:empty){margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--light)}.profile-disclosure-body [data-import-preview] p{margin-top:0}.legacy-file{font-size:.85rem;line-height:1.6;gap:10px}.legacy-file input{min-height:48px;padding:12px;border-radius:10px}.profile-danger{border-color:#dac6b5}.profile-danger h2{color:#7b411e}.profile-security [data-device-list]:not(:empty){margin-top:20px}.device-list li{padding:16px 0;gap:14px}.device-confirm .actions{gap:10px}.profile-section-head{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}.profile-section-head h2{margin:0}.profile-section-head button{font-size:.85rem}
.result-panel .profile-hero{margin-bottom:24px}.result-hero .eyebrow{margin-bottom:12px}.result-hero h1{font-size:clamp(2.5rem,5vw,4rem)}.result-panel .result-summary{padding:30px}.result-scoreboard{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);align-items:center;gap:12px;max-width:560px;margin:24px 0}.result-scoreboard>div{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}.result-scoreboard>div:first-child{background:#e4ebdc;border-color:#b5c7af}.result-scoreboard span{font-size:.88rem;color:var(--muted)}.result-scoreboard b{font-size:3.5rem;line-height:1.2;margin-top:10px;font-variant-numeric:tabular-nums;color:var(--ink)}.result-scoreboard .result-score-divider{text-align:center;font-size:1.8rem;font-weight:650}.result-cargo strong{font-size:3.5rem;color:var(--green)}.result-actions{margin:24px 0;gap:24px}.result-row{grid-template-columns:76px minmax(0,1fr) auto 20px;gap:20px;padding:22px 0;line-height:1.6}.result-row b{font-size:1rem}.result-row small,.result-when time{font-size:.78rem}.result-when{color:var(--muted);text-align:right}.result-outcome{padding:12px 8px;min-height:48px;border:1px solid var(--line);border-radius:12px;text-align:center;font-size:.82rem}.result-outcome.cooperative{background:var(--light);color:var(--green)}.result-row>.result-arrow{grid-column:auto;color:var(--green);font-size:1.2rem}.result-digest{font-size:.78rem;line-height:1.7;background:var(--paper);padding:14px;border-radius:10px}.result-panel .results-list:empty+.profile-note{padding:24px 0;font-size:1rem}.or-result{border:1px solid var(--line);border-radius:14px;padding:18px 22px;background:var(--light)}.or-result p{margin:0}.or-result a{min-height:48px;line-height:1.6}
.storage-panel .storage-list{gap:12px;margin:22px 0}.storage-panel .storage-list>li{padding:20px;gap:18px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.storage-panel .storage-list strong{font-size:.95rem}.storage-panel .storage-list small{line-height:1.7}.storage-panel .storage-scope{padding-top:20px;margin-bottom:0;border-top:1px solid var(--line);font-size:.78rem}.storage-panel [role=status]{margin:20px 0}.storage-panel .storage-confirm{border:1px solid #b7c7b5;padding:16px}.storage-panel .storage-confirm p{line-height:1.7}.storage-panel .storage-list button{font-size:.85rem}
@media(max-width:760px){
 .profile-panel .profile-hero{margin-bottom:22px}.profile-hero h1{font-size:2rem}.profile-heading{gap:16px;align-items:flex-start}.profile-avatar{width:64px;height:64px;border-radius:21px}.profile-avatar img{width:38px;height:38px}.profile-panel .profile-block{padding:22px;margin-top:16px;border-radius:16px}.profile-columns{grid-template-columns:minmax(0,1fr);gap:0}.profile-links a{min-height:72px;padding:14px;font-size:.82rem}.profile-scores{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px 16px;font-size:.82rem}.profile-panel .profile-disclosure{padding:0}.profile-disclosure>summary{padding:21px 22px;font-size:.95rem}.profile-disclosure-body{padding:6px 22px 22px}.profile-panel .actions button{font-size:.85rem}.profile-section-head{gap:12px}.profile-section-head button{padding:10px 14px}.profile-block h2{font-size:1.08rem}
 .result-hero h1{font-size:2.6rem}.result-panel .result-summary{padding:22px}.result-scoreboard{gap:8px;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);margin:20px 0}.result-scoreboard>div{padding:18px 14px}.result-scoreboard span{font-size:.78rem}.result-scoreboard b{font-size:3rem}.result-row{grid-template-columns:64px minmax(0,1fr) 16px;gap:8px 14px;padding:20px 0}.result-row b{font-size:.9rem}.result-row>.result-when{grid-column:2;text-align:left}.result-row>.result-arrow{grid-column:3;grid-row:1 / span 2}.result-outcome{font-size:.76rem;padding:10px 6px}.result-actions{gap:12px}.result-actions>.action{width:100%}.result-actions>.text-link{padding-left:2px}.storage-panel .storage-list>li{padding:18px}.storage-panel .storage-list>li>div:first-child{min-width:0;flex-basis:100%}.storage-panel .storage-confirm{padding:14px}
}
.help-recording{display:flex;align-items:center;gap:10px;min-height:48px;font-size:.85rem}.help-recording input{width:22px;height:22px;min-height:22px;accent-color:var(--green)}.help-preview{margin-top:22px}.help-preview summary{padding:12px 0;min-height:48px;cursor:pointer;font-weight:650}.help-preview label{display:block;font-size:.85rem;color:var(--muted)}.help-preview textarea{display:block;width:100%;max-width:100%;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:12px/1.65 ui-monospace,monospace;resize:vertical}.help-panel [data-events]:empty{display:none}.help-panel .actions{margin-top:20px}.help-panel [data-events] li{font-size:.85rem;padding:14px 0;min-height:48px}.help-panel [data-status]{font-size:.85rem;line-height:1.65}.help-panel [data-status]:empty{display:none}

/* Image-first V3: real controls above independent original illustrations. */
:root{--paper:#f7f6f0;--surface:#fffdf8;--ink:#183d32;--muted:#5b6c63;--line:#dedfd5;--green:#183d32;--light:#e9eee2;--orange:#ea783e;--accent:#9a401b;--focus:#183d32}
button.primary:not(:disabled),a.action.primary{background:var(--orange);border-color:var(--orange);color:#102e25}
button.primary:not(:disabled):hover,a.action.primary:hover{background:#f18a52;border-color:#df6b32;color:#102e25}
button.primary:not(:disabled):active,a.action.primary:active{background:#df6b32}
.bar,main,footer{width:min(1440px,100%)}
.brand-break{display:none}
main{padding-top:44px;padding-bottom:52px}
.screen-heading{font-size:clamp(2rem,3.3vw,3.15rem);font-weight:750;letter-spacing:-.045em}
.library-welcome{margin-bottom:32px;align-items:flex-end}
.library-welcome .eyebrow{display:none}
.library-welcome .intro{margin-top:12px;color:var(--muted);font-size:.95rem}
.library-featured{display:grid;grid-template-columns:minmax(0,2.65fr) minmax(250px,1fr);gap:22px}
.library-featured:has(>.hero:only-child){grid-template-columns:minmax(0,1fr)}
.hero-warrior{position:relative;isolation:isolate;display:flex;align-items:center;min-height:354px;border:0;border-radius:22px;background:#244a46;color:#fffdf3}
.hero-warrior>.hero-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:65% 50%}
.hero-warrior::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#183d32c9 0%,#183d328a 32%,#183d3200 72%);pointer-events:none}
.hero-warrior .hero-info{width:67%;padding:36px}
.hero-warrior .eyebrow{color:#f5ddba;font-size:.72rem;letter-spacing:.06em;margin-bottom:19px}
.hero-warrior h2{font-size:clamp(2rem,3.1vw,3rem);line-height:1.22;letter-spacing:-.04em;margin-bottom:18px;text-wrap:balance}
.hero-warrior p{color:#fcf8e9;font-size:.85rem;line-height:1.75;max-width:24ch;margin-bottom:24px}
.hero-warrior .hero-caption{color:#e0e9dd;font-size:.72rem;margin-top:20px}
.hero-warrior .action{padding:12px 20px}
.library-together{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:30px;border:1px solid #ecd6bd;border-radius:22px;background:#f8e8d1;min-width:0}
.together-friends{display:flex;align-items:center;margin:0 0 22px;padding-left:4px}
.together-friends span{display:grid;place-items:center;width:52px;height:52px;border:3px solid #f8e8d1;border-radius:50%;background:#eacb9c;color:#2a5042;font-size:1.6rem;line-height:1;margin-left:-4px}
.together-friends span:nth-child(2){background:#c7d4b5;transform:rotate(-12deg)}
.together-friends span:last-child{width:39px;height:39px;background:transparent;border:1px dashed #947b59;font-size:1.1rem;margin-left:6px}
.library-together .eyebrow{font-size:.67rem;color:#754626;margin-bottom:11px}
.library-together h2{font-size:clamp(1.2rem,1.8vw,1.65rem);line-height:1.45;letter-spacing:-.025em;margin:0 0 12px}
.library-together p{font-size:.8rem;line-height:1.7;color:#665941;margin:0 0 22px}
.library-together .action{font-size:.85rem;min-width:148px}
.library-tools{padding-top:38px}
.library-head h2{font-size:1.45rem}
.filters input,.filters select{border-color:var(--line);background:var(--surface)}
.filters input{padding-left:17px}
.card{border-radius:20px;transition:border-color .18s ease,box-shadow .18s ease}
.card:hover{border-color:#a8b8a5;box-shadow:0 6px 22px #183d3209;background:#fffefb}
.card-content{padding:20px}
.card strong{font-size:1.12rem;letter-spacing:-.02em}
.card-art{aspect-ratio:1.6}
.card-category{font-size:.65rem;letter-spacing:.015em}
.card-description{font-size:.78rem;line-height:1.7}
.card-foot{padding-top:13px}
.card-foot small{font-size:.7rem;line-height:1.5}
.detail,.profile-panel .profile-block,.notice{border-radius:20px}
.profile-avatar{background:#f8e8d1;border-color:#ecd6bd}
footer{border-color:var(--line);font-size:.72rem}
@media(min-width:1040px){
 body{padding-left:224px}.top{width:224px;background:#f4f3ec}
 .top .bar{padding:38px 22px 26px;gap:50px}
 .top .brand{font-size:1.35rem;gap:12px;line-height:1.2}.top .brand img{width:48px;height:48px}.top .brand-break{display:block}.top .brand small{font-size:.48rem;letter-spacing:.1em}
 .top .bar nav{gap:12px}.top .bar nav a{min-height:54px;padding:15px 19px;gap:15px;border-radius:14px;font-size:.92rem}
 .top .env{padding-left:16px;font-size:.72rem}
}
@media(min-width:1400px){#cards.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1199px){
 .library-featured{grid-template-columns:minmax(0,1fr) 245px;gap:16px}
 .hero-warrior{min-height:340px}.hero-warrior .hero-info{width:78%;padding:28px}
 .hero-warrior h2{font-size:2.1rem}.library-together{padding:24px}
 .library-together h2{font-size:1.3rem}
}
@media(min-width:761px) and (max-width:1039px){.library-featured{grid-template-columns:minmax(0,1fr) 240px}.hero-warrior .hero-info{width:83%}}
@media(max-width:760px){
 main{padding-top:26px}.library-welcome{margin-bottom:24px;align-items:flex-start}
 .library-welcome .screen-heading{font-size:1.8rem}.library-welcome .intro{font-size:.8rem;margin-top:9px}
 .library-welcome>.text-link{font-size:.7rem;min-height:48px}
 .library-featured{grid-template-columns:minmax(0,1fr);gap:14px}
 .hero-warrior{min-height:300px;border-radius:20px}
 .hero-warrior>.hero-art{object-position:73% 50%}
 .hero-warrior::before{background:linear-gradient(90deg,#183d32d9,#183d3270 50%,#183d3200)}
 .hero-warrior .hero-info{width:77%;padding:26px}.hero-warrior .eyebrow{font-size:.64rem;margin-bottom:15px}
 .hero-warrior h2{font-size:2rem;margin-bottom:14px}.hero-warrior p{font-size:.76rem;max-width:21ch;margin-bottom:18px}
 .hero-warrior .hero-caption{font-size:.65rem;margin-top:16px}.hero-warrior .action{font-size:.8rem;padding:11px 17px}
 .library-together{position:relative;padding:22px 20px;min-height:168px;border-radius:20px}
 .library-together .together-friends{position:absolute;top:22px;right:18px;transform:scale(.8);transform-origin:top right;margin:0}
 .library-together .eyebrow{margin-bottom:8px;font-size:.62rem}
 .library-together h2{font-size:1.16rem;line-height:1.4;margin-bottom:8px;padding-right:110px}.library-together h2 br{display:none}
 .library-together p{font-size:.74rem;margin:0 0 16px}.library-together .action{font-size:.78rem;min-width:136px;min-height:48px}
 .library-tools{padding-top:29px}.library-head h2{font-size:1.25rem}.filters{gap:8px}
 #cards.grid,.recent-shelf>.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .grid>.card{flex-direction:column;min-height:0;border-radius:16px}
 .grid .card-art{width:100%;max-width:none;aspect-ratio:1.45;flex-shrink:1}
 .grid .card-content{padding:13px;min-width:0}.grid .card-category{font-size:.6rem}
 .grid .card strong{font-size:.96rem;margin:6px 0 11px;line-height:1.4}
 .grid .card-description{display:none}.grid .card-foot{gap:5px;padding-top:10px;align-items:flex-start}
 .grid .card-foot small{font-size:.62rem;overflow-wrap:anywhere}
 .grid .card-foot>span{font-size:.8rem}.grid .thumb{min-height:0;height:100%}
 footer{gap:8px 16px}
}
