/* Pulse Rings page styles. Art direction: sonar scope, phosphor rings on a dark ink field. */
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:#0a1618;color:#e8f4ee;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;min-height:100vh;padding-bottom:env(safe-area-inset-bottom)}
a{color:#b8f26b}
.game-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 1rem;padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right));background:#0e2024;border-bottom:1px solid #1d3b41}
.game-header a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-weight:700}
.game-tag{font-size:.8rem;color:#8fb0a8}
.game-title{margin:.25rem 0 .5rem}
.game-title p{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#8fb0a8}
.game-title p a{color:inherit;text-decoration:none}
.game-title h1{font-size:1.35rem;font-weight:800;letter-spacing:.02em}
.facts{display:none}

#pr{--ac:#b8f26b;--ac-ink:#10200a;--panel:#0e2024;--line:#1d3b41;--mut:#8fb0a8;--bad:#ff5d73;--txt:#e8f4ee;--bg:#0a1618}
#pr[data-palette="amber"]{--ac:#ffb347;--ac-ink:#2a1500;--panel:#2a190c;--line:#4a2f17;--mut:#c9a679;--bad:#ff4f4f;--txt:#fff1dc;--bg:#170e07}
#pr[data-palette="ice"]{--ac:#7dfcf0;--ac-ink:#02201e;--panel:#0e1b36;--line:#1b3157;--mut:#8ea6d6;--bad:#ff6b8b;--txt:#e6efff;--bg:#070d1c}
#pr{color:var(--txt)}
.pr-hud{display:grid;grid-template-columns:1fr auto;gap:.4rem .6rem;align-items:center;margin-bottom:.5rem}
.pr-stat{display:flex;flex-direction:column;min-width:0}
.pr-stat .k{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pr-stat b{font:800 1.6rem/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}
.pr-side{display:flex;flex-direction:column;align-items:flex-end;gap:.15rem}
.pr-pips{display:flex;gap:5px}
.pip{width:14px;height:14px;border-radius:50%;background:var(--ac);box-shadow:0 0 8px var(--ac);transition:transform .15s,background .15s}
.pip.off{background:transparent;border:2px solid var(--line);box-shadow:none;transform:scale(.8)}
#pr-lay{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--mut)}
.pr-bar{display:flex;gap:.5rem;margin-top:.5rem}
.pr-ibtn,.pr-btn{font:700 .95rem/1 inherit;font-family:inherit;color:var(--txt);background:transparent;border:2px solid var(--line);border-radius:6px;min-height:48px;padding:0 1rem;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pr-ibtn{flex:1;min-width:44px}
.pr-btn{width:100%}
.pr-btn.primary{background:var(--ac);border-color:var(--ac);color:var(--ac-ink);font-size:1.1rem;font-weight:800}
.pr-ibtn:focus-visible,.pr-btn:focus-visible,.lvl:focus-visible{outline:3px solid var(--ac);outline-offset:2px}
.pr-ibtn:active,.pr-btn:active{transform:translateY(1px)}
.pr-btn[disabled]{opacity:.4}

.pr-stage{position:relative;width:100%;aspect-ratio:4/5;max-height:64vh;margin:0 auto;border:2px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@supports not (aspect-ratio:4/5){.pr-stage{height:440px}}
#pr-cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.pr-card{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:.55rem;padding:1rem;background:color-mix(in srgb,var(--bg) 90%,transparent);overflow-y:auto;touch-action:pan-y}
.pr-card[hidden]{display:none}
.pr-card .eyebrow{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ac)}
.pr-card h2{font-size:2rem;font-weight:800;line-height:1.05}
.pr-card p{color:var(--mut);font-size:.92rem;line-height:1.4}
.pr-card .stats{font-size:.78rem;color:var(--mut);font-family:ui-monospace,Menlo,Consolas,monospace}
.pr-row{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
#pr-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.lvl{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:transparent;color:var(--txt);border:2px solid var(--line);border-radius:6px;font-family:inherit;cursor:pointer;touch-action:manipulation}
.lvl .n{font:800 1.05rem/1 ui-monospace,Menlo,Consolas,monospace}
.lvl .r{font-size:.7rem;font-weight:800;color:var(--ac);min-height:.7rem}
.lvl[disabled]{opacity:.35;cursor:default}
.lvl[data-rank="S"]{border-color:var(--ac)}
#pr-result .eyebrow{display:none}
#pr-rank{font:800 3.6rem/1 ui-monospace,Menlo,Consolas,monospace;color:var(--ac);text-shadow:0 0 22px var(--ac)}
#pr-rank[data-rank="x"]{color:var(--bad);text-shadow:none}
#pr-rbody{display:grid;grid-template-columns:1fr auto;gap:.2rem .8rem;font-size:.9rem}
#pr-rbody dt{color:var(--mut)}
#pr-rbody dd{font:700 .9rem ui-monospace,Menlo,Consolas,monospace;text-align:right}
.pr-note{min-height:2.4em}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pr-foot{margin:.6rem 0 0;font-size:.8rem;color:#8fb0a8;line-height:1.4}
footer{padding:1rem;font-size:.8rem;color:#8fb0a8;text-align:center}
#similar-games{padding:0 1rem}
@keyframes pr-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pr-pop{0%{transform:scale(.5);opacity:0}70%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
.pr-card:not([hidden]){animation:pr-in .22s ease-out}
#pr-result:not([hidden]) #pr-rank{animation:pr-pop .4s ease-out}
.pr-stage::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:3;background:radial-gradient(ellipse at center,transparent 55%,rgba(0,0,0,.35) 100%)}
.pr-btn.primary{box-shadow:0 0 18px color-mix(in srgb,var(--ac) 35%,transparent)}
.pr-stage{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
@media (max-height:700px){.pr-card{gap:.35rem;padding:.7rem}.pr-card h2{font-size:1.6rem}#pr-rank{font-size:3rem}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* full screen (game-shell immersive and native): the board fills the stage below the dock */
html.pip-immersive .game-wrap.pip-stage{display:flex;flex-direction:column;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:max(8px,env(safe-area-inset-bottom));overflow:hidden}
html.pip-immersive #pr{flex:1;min-height:0;display:flex;flex-direction:column}
html.pip-immersive .pr-foot,html.pip-immersive .game-title{display:none}
html.pip-immersive .pr-stage{flex:1;min-height:0;aspect-ratio:auto;max-height:none;height:auto;width:100%;padding:0}
html.pip-immersive .pr-bar{flex:none}
html.pip-immersive .pr-ibtn,html.pip-immersive .pr-btn{min-height:48px}
html.pip-immersive .lvl{min-height:48px}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive #pr{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,170px);grid-template-rows:auto 1fr auto;grid-template-areas:"stage hud" "stage ." "stage bar";gap:0 .6rem}
html.pip-immersive .pr-stage{grid-area:stage}
html.pip-immersive .pr-hud{grid-area:hud;margin:0;grid-template-columns:1fr}
html.pip-immersive .pr-side{align-items:flex-start}
html.pip-immersive .pr-bar{grid-area:bar;flex-direction:column;margin:0}
html.pip-immersive .pr-card{gap:.3rem;padding:.5rem .8rem}
html.pip-immersive .pr-card h2{font-size:1.4rem}
html.pip-immersive .pr-card>p:not(.stats):not(.pr-note){display:none}
html.pip-immersive #pr-rank{font-size:2.4rem}
html.pip-immersive #pr-grid{grid-template-columns:repeat(10,1fr)}
}
/* title and result finish: accent hairline and soft glow */
.pr-card{background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--ac) 12%,transparent),transparent 60%),color-mix(in srgb,var(--bg) 90%,transparent)}
.pr-card h2{text-shadow:0 0 24px color-mix(in srgb,var(--ac) 30%,transparent)}
.pr-stage{box-shadow:inset 0 0 40px rgba(0,0,0,.45)}
