/* Rhyme Rush: letterpress shop. Paper, ink, one red stamp. */
.rr{--paper:#efe5cf;--paper2:#e1d4b6;--ink:#24201b;--red:#c8321f;--cream:#f6edd8;--gold:#d9a21b;font-family:Georgia,"Times New Roman",serif;color:var(--ink);-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.rr-hud{display:flex;align-items:center;gap:.5rem;padding:.35rem .1rem .5rem;min-height:48px}
.rr-hud .rr-l{flex:1;min-width:0;line-height:1.15}
.rr-hud b{display:block;font-size:1.05rem}
.rr-hud small{font-size:.75rem;opacity:.75}
.rr-hud .rr-sc{text-align:right;line-height:1.15;margin-right:.2rem}
.rr-hud .rr-sc b{font-size:1.35rem;font-variant-numeric:tabular-nums}
.rr-ic{width:44px;height:44px;border:2px solid var(--ink);background:var(--paper);color:var(--ink);border-radius:8px;display:grid;place-items:center;padding:0;cursor:pointer;touch-action:manipulation}
.rr-ic:active{background:var(--paper2)}
.rr-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:square}
.rr-ic.off .rr-wave{display:none}
.rr-ic:not(.off) .rr-x{display:none}
.rr-stage{position:relative;width:100%;height:560px;border:3px solid var(--ink);border-radius:6px;overflow:hidden;background:var(--paper);box-shadow:5px 5px 0 rgba(36,32,27,.35)}
.rr-stage canvas{display:block;touch-action:none;width:100%;height:100%;-webkit-touch-callout:none;cursor:pointer}
.rr-ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(239,229,207,.94);padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:auto}
.rr-ov[hidden]{display:none}
.rr-card{width:100%;max-width:320px;display:flex;flex-direction:column;gap:.7rem;align-items:stretch;text-align:center;animation:rrIn .28s ease-out}
.rr-mark{display:flex;flex-direction:column;line-height:.92;font-size:3.1rem;letter-spacing:-.02em;margin:.1rem 0 0}
.rr-mark .rr-red{color:var(--red);transform:rotate(-2deg);display:inline-block}
.rr-h{font-size:1.9rem;line-height:1.1}
.rr-tag{font-size:1rem;line-height:1.35}
.rr-btn{min-height:52px;border:2px solid var(--ink);background:var(--paper);color:var(--ink);font:700 1.1rem Georgia,"Times New Roman",serif;border-radius:8px;cursor:pointer;touch-action:manipulation;box-shadow:3px 3px 0 var(--ink);padding:.4rem .8rem;display:flex;flex-direction:column;align-items:center;justify-content:center}
.rr-btn small{font-weight:400;font-size:.78rem;opacity:.8}
.rr-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.rr-btn:disabled{opacity:.35;box-shadow:none}
.rr-btn.rr-primary{background:var(--red);color:var(--cream);min-height:58px;font-size:1.25rem}
.rr-btn:focus-visible,.rr-ic:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.rr-step{display:flex;align-items:center;gap:.5rem}
.rr-step .rr-sq{width:52px;min-width:52px;padding:0}
.rr-stepmid{flex:1;display:flex;flex-direction:column;align-items:center;gap:.2rem;font-weight:700}
.rr-stars{display:flex;gap:6px;justify-content:center}
.rr-star{width:18px;height:18px;border:2px solid var(--ink);transform:rotate(45deg);background:transparent}
.rr-star.on{background:var(--gold)}
.rr-stats{font-size:.85rem;opacity:.8}
.rr-keys{font-size:.75rem;opacity:.65;line-height:1.3}
.rr-note{font-size:.9rem;line-height:1.35}
.rr-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.rr-cell{border:2px solid var(--ink);border-radius:6px;padding:.45rem .3rem;background:var(--cream)}
.rr-cell b{display:block;font-size:1.35rem;font-variant-numeric:tabular-nums}
.rr-cell span{font-size:.78rem;opacity:.8}
.rr-cell.hot{background:var(--gold)}
.rr-info{font-size:.85rem;line-height:1.45;margin-top:.8rem;opacity:.85}
@keyframes rrIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.rr-card{animation:none}.rr-btn:active{transform:none}}
@media (max-width:360px){.rr-mark{font-size:2.6rem}}
.rr-star.on{animation:rrPop .4s cubic-bezier(.3,1.6,.5,1) both}
@keyframes rrPop{from{transform:rotate(45deg) scale(0)}to{transform:rotate(45deg) scale(1)}}
.rr-ex{display:flex;align-items:center;justify-content:center;gap:.4rem;flex-wrap:wrap}
.rr-ex-st{background:var(--red);color:var(--cream);font-weight:700;padding:.35rem .7rem;border-radius:6px;transform:rotate(-2deg)}
.rr-ex-w{background:var(--ink);color:var(--cream);font-weight:700;padding:.35rem .7rem;border-radius:6px;position:relative}
.rr-ex-w.rr-yes{outline:3px solid var(--gold)}
.rr-ex-w.rr-no{opacity:.65;transform:translateX(6px) rotate(4deg)}
.rr-stats{display:block}
@media (prefers-reduced-motion:reduce){.rr-star.on{animation:none}}

/* Finish: soft paper vignette */
.rr-stage{box-shadow:5px 5px 0 rgba(36,32,27,.35),inset 0 0 60px rgba(120,90,40,.18)}
/* Full screen: the stage fills the space under the dock */
html.pip-immersive .game-wrap,html.pip-native .game-wrap,.game-wrap:fullscreen{display:flex;flex-direction:column;box-sizing:border-box;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 .rr,html.pip-native .rr,.game-wrap:fullscreen .rr{flex:1;min-height:0;display:flex;flex-direction:column}
html.pip-immersive .rr-stage,html.pip-native .rr-stage,.game-wrap:fullscreen .rr-stage{flex:1;height:auto;min-height:0}
html.pip-immersive .rr-info,html.pip-native .rr-info,.game-wrap:fullscreen .rr-info{display:none}
@media (orientation:landscape) and (max-height:500px){html.pip-immersive .rr-mark,html.pip-native .rr-mark{font-size:2rem;flex-direction:row;gap:.4rem;justify-content:center}html.pip-immersive .rr-ov,html.pip-native .rr-ov{overflow:auto}}
