:root{--body:-apple-system,BlinkMacSystemFont,"Avenir Next",system-ui,sans-serif;--display:"Avenir Next",ui-rounded,system-ui,sans-serif;--fg:#172936;--accent:#287c59;font-family:var(--body);font-size:var(--ip-native-root-font-size,16px);color-scheme:light}
*{box-sizing:border-box} [hidden]{display:none!important}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--g-bg,#e6efe8);-webkit-tap-highlight-color:transparent}
body{font-size:inherit;line-height:1.4;overscroll-behavior:none}
button,input,select{font:inherit;color:inherit}button{padding:0;border:0;background:none;cursor:pointer}button:disabled{cursor:default}
:focus-visible{outline:3px solid var(--g-accent,#287c59);outline-offset:2px}
.game-host{position:absolute;inset:0;container-type:size;overflow:hidden;touch-action:none;color:var(--g-fg,#172936)}
.game-host canvas{display:block;touch-action:none}
#runtime-notice{position:absolute;z-index:20;bottom:8px;left:12px;right:12px;border-radius:14px;padding:10px 14px;background:#1a263bf2;color:#ffe091;border:1px solid #ffe09166;pointer-events:none;font-size:.875rem;font-weight:600;box-shadow:0 6px 20px #0006}
#runtime-modal{position:fixed;inset:0;z-index:30;background:#050a12b8;display:grid;place-items:center;padding:20px}
#runtime-modal section{width:min(100%,360px);max-height:100%;overflow:auto;background:var(--rr-card);color:#fff;border-radius:22px;padding:24px;box-shadow:0 12px 40px #0008;border:1px solid #ffffff14}
#runtime-modal h1{font-family:var(--rr-display);font-weight:800;font-size:1.5rem;line-height:1.2;margin:0 0 12px}#runtime-modal p{font-size:1.0625rem;color:#ffffffb8}
#runtime-modal-actions{display:grid;gap:12px}#runtime-modal-actions button{min-height:52px;padding:12px;border-radius:18px;background:#ffffff1a;color:#fff;font-weight:750}#runtime-modal-actions button:first-child{background:var(--rr-yellow);color:var(--rr-ink)}
/* Host-owned level settlement card (7AH). Sizes in rem follow large text.
   Unified app look (Founder 2026-12-04): Discover/Quests navy card, warm-yellow primary, translucent secondary. */
:root{--rr-card:#1a263b;--rr-yellow:#ffe091;--rr-ink:#0f242e;--rr-display:ui-rounded,"SF Pro Rounded","Avenir Next",system-ui,sans-serif}
#runtime-result{position:fixed;inset:0;z-index:25;background:#050a12b8;display:grid;place-items:center;padding:20px}
#runtime-result section{width:min(100%,360px);max-height:100%;overflow:auto;background:var(--rr-card);color:#fff;border:1px solid #ffffff14;border-radius:22px;padding:22px 22px 18px;text-align:center;box-shadow:0 12px 40px #0006}
#runtime-result .rr-kicker{margin:0 0 4px;font-size:.875rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--rr-yellow)}
#runtime-result h1{font-family:var(--rr-display);font-weight:800;font-size:1.5rem;line-height:1.2;margin:0 0 10px}
#runtime-result .rr-stars{margin:0 0 8px;font-size:2.5rem;line-height:1;color:#ffbd33;letter-spacing:.12em;text-shadow:0 2px 12px #ffbd3366}
#runtime-result .rr-criteria,#runtime-result .rr-best,#runtime-result .rr-detail{margin:0 0 8px;font-size:1rem;line-height:1.35}
#runtime-result .rr-criteria{color:#ffffffe0}#runtime-result .rr-best,#runtime-result .rr-detail{color:#ffffffa8}
#runtime-result .rr-actions{display:grid;gap:10px;margin-top:14px}
#runtime-result .rr-difficulty{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.25rem),1fr));gap:6px;margin:12px 0 6px}
#runtime-result .rr-difficulty button{min-height:44px;padding:8px 4px;border-radius:12px;font-size:.875rem;overflow-wrap:anywhere}
#runtime-result .rr-difficulty button[aria-pressed="true"]{background:var(--rr-yellow);color:var(--rr-ink)}
#runtime-result .rr-difficulty button:disabled{opacity:.55;transform:none}
#runtime-result button{min-height:52px;padding:12px;border-radius:18px;font:inherit;font-weight:750;font-size:1.0625rem;border:0}
#runtime-result .rr-primary{background:var(--rr-yellow);color:var(--rr-ink)}#runtime-result .rr-secondary{background:#ffffff1a;color:#fff}
#runtime-result button:focus-visible{outline:3px solid #ffbd33;outline-offset:2px}
#runtime-result.runtime-result-enter section{animation:rr-pop .28s ease-out}
@keyframes rr-pop{from{transform:scale(.92);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){#runtime-result.runtime-result-enter section{animation:none}}
#runtime-result button:active,#runtime-modal-actions button:active{transform:scale(.97)}
