/* REHA HOUSE WEB GAMES v1.7.0 — all styles scoped to .rhg-app */
.rhg-app{--rhg-ink:#203735;--rhg-muted:#647c78;--rhg-accent:#267e6b;--rhg-dark:#125444;--rhg-white:#fff;--rhg-cream:#f8faf6;--rhg-light:#edf5f0;--rhg-line:#dce7e1;--rhg-shadow:0 14px 46px rgba(23,66,54,.09);font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:var(--rhg-ink);font-size:16px;line-height:1.65;width:100%;isolation:isolate}
.rhg-app *,.rhg-app *::before,.rhg-app *::after{box-sizing:border-box}
.rhg-app :where(h2,h3,p){margin:0;padding:0;border:0;line-height:1.45;letter-spacing:normal}
.rhg-app button,.rhg-app input,.rhg-app select{font:inherit;letter-spacing:normal}
.rhg-app button{cursor:pointer;appearance:none;-webkit-appearance:none;text-transform:none;box-shadow:none}
.rhg-app button:focus-visible,.rhg-app input:focus-visible,.rhg-app summary:focus-visible,.rhg-app select:focus-visible{outline:3px solid #e5ab47;outline-offset:3px}
.rhg-app button:disabled{cursor:default}
.rhg-app button[hidden],.rhg-app [hidden]{display:none!important}
.rhg-app svg{display:block;width:100%;height:100%;fill:none}
.rhg-app .rhg-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.rhg-app .rhg-init{padding:40px;text-align:center;color:var(--rhg-muted)}
.rhg-app .rhg-init-mark{color:var(--rhg-accent);font-size:28px;margin-right:12px}
.rhg-app .rhg-shell{background:linear-gradient(145deg,#fcfdfb 0%,#f7faf7 100%);border:1px solid var(--rhg-line);border-radius:24px;padding:clamp(16px,3.2vw,44px);box-shadow:0 2px 15px rgba(26,65,53,.04);overflow:hidden;max-width:1200px;margin:0 auto}
.rhg-app .rhg-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.17em;color:var(--rhg-accent);line-height:1.5}
.rhg-app .rhg-head{display:flex;align-items:center;justify-content:space-between;min-height:210px;gap:20px;padding:10px 0 29px;border-bottom:1px solid var(--rhg-line)}
.rhg-app .rhg-head [role="heading"]{font-size:clamp(27px,4.5vw,45px);font-weight:850;letter-spacing:-.06em;margin:12px 0 15px}
.rhg-app .rhg-head [role="heading"] span{color:var(--rhg-accent)}
.rhg-app .rhg-head p{font-size:clamp(13px,1.65vw,15px);color:var(--rhg-muted);line-height:1.95}
.rhg-app .rhg-head-art{flex:0 0 195px;width:195px;height:155px;position:relative;background:#e4f2e8;border-radius:42px 52px 60px 34px;transform:rotate(-7deg)}
.rhg-app .rhg-head-art span{position:absolute;font-size:52px;color:#337e70;line-height:1;transform:rotate(7deg)}
.rhg-app .rhg-head-art span:nth-child(1){left:42px;top:23px}
.rhg-app .rhg-head-art span:nth-child(2){right:30px;top:58px;color:#e4a968}
.rhg-app .rhg-head-art span:nth-child(3){left:46px;bottom:10px;color:#8db8bb}
.rhg-app .rhg-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:27px 0 22px}
.rhg-app .rhg-search-label{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--rhg-line);border-radius:12px;padding:2px 14px;width:min(100%,380px);min-height:48px}
.rhg-app .rhg-search-label>span{font-size:25px;color:var(--rhg-muted)}
.rhg-app .rhg-search-label input{font-size:14px;color:var(--rhg-ink);border:0;background:transparent;outline:none!important;width:100%;padding:8px 0;box-shadow:none}
.rhg-app .rhg-count{font-size:12px;color:var(--rhg-muted);white-space:nowrap}
.rhg-app .rhg-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rhg-app .rhg-game-card{padding:0;border:1px solid var(--rhg-line);background:#fff;text-align:left;border-radius:19px;display:flex;flex-direction:column;overflow:hidden;color:inherit;min-height:322px;transition:transform .18s,box-shadow .18s,border-color .18s}
.rhg-app .rhg-game-card:hover{transform:translateY(-4px);box-shadow:var(--rhg-shadow);border-color:#a8cfc1}
.rhg-app .rhg-game-art{height:136px;background:#e9f3eb;display:flex;justify-content:center;align-items:center;color:#407e6d}
.rhg-app .rhg-game-art svg{width:77px;height:77px}
.rhg-app .rhg-art-2{background:#eef2e8;color:#7f956e}
.rhg-app .rhg-art-3{background:#e5f1f2;color:#538891}
.rhg-app .rhg-game-card-body{display:flex;flex-direction:column;align-items:flex-start;padding:20px 21px 17px;gap:7px;flex:1}
.rhg-app .rhg-tag{font-size:11px;color:var(--rhg-accent);font-weight:750;letter-spacing:.02em}
.rhg-app .rhg-game-card-body strong{font-size:18px;font-weight:800;line-height:1.5}
.rhg-app .rhg-game-card-body>span:nth-child(3){color:var(--rhg-muted);font-size:12px;line-height:1.7;flex:1}
.rhg-app .rhg-card-arrow{border-top:1px solid #edf1ef;color:var(--rhg-accent);font-size:12px!important;font-weight:800;width:100%;padding-top:12px;margin-top:7px;display:flex;justify-content:space-between}
.rhg-app .rhg-footnote{color:var(--rhg-muted);font-size:12px;line-height:1.85;margin-top:25px}
.rhg-app .rhg-setup-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}
.rhg-app .rhg-text-button{border:0;background:transparent;color:var(--rhg-accent);padding:8px 1px;font-size:13px;font-weight:750;text-align:left}
.rhg-app .rhg-text-button:hover{text-decoration:underline}
.rhg-app .rhg-setup-hero{display:flex;gap:23px;align-items:center;border-bottom:1px solid var(--rhg-line);padding-bottom:27px}
.rhg-app .rhg-setup-icon{background:#e7f2ec;color:var(--rhg-accent);border-radius:21px;display:grid;place-items:center;flex:0 0 96px;width:96px;height:96px;padding:17px}
.rhg-app .rhg-setup-hero [role="heading"]{font-size:clamp(22px,3.4vw,29px);font-weight:800;margin:4px 0 8px}
.rhg-app .rhg-setup-hero p{color:var(--rhg-muted);font-size:14px;line-height:1.75}
.rhg-app .rhg-section{margin:29px 0}
.rhg-app .rhg-section [role="heading"]{font-size:17px;font-weight:800;margin-bottom:16px;display:flex;align-items:center;gap:12px}
.rhg-app .rhg-section [role="heading"]>span,.rhg-app .rhg-details>summary>span:first-child{color:var(--rhg-accent);font-size:12px;letter-spacing:.08em}
.rhg-app .rhg-chips{display:flex;flex-wrap:wrap;gap:9px}
.rhg-app .rhg-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border:1px solid var(--rhg-line);border-radius:100px;background:#fff;color:#4a6560;font-size:13px;font-weight:700;cursor:pointer;transition:.16s}
.rhg-app .rhg-chip-active{background:#e2f2e9;border-color:#68ac91;color:#125d49}
.rhg-app .rhg-chip input,.rhg-app .rhg-level input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.rhg-app .rhg-chip:focus-within,.rhg-app .rhg-level:focus-within{outline:3px solid #e5ab47;outline-offset:2px}
.rhg-app .rhg-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rhg-app .rhg-level{min-height:67px;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 5px;cursor:pointer;border:1px solid var(--rhg-line);border-radius:13px;background:white;font-size:14px;font-weight:750}
.rhg-app .rhg-level.rhg-selected{border:2px solid var(--rhg-accent);background:#eaf5ee;color:#155d4e}
.rhg-app .rhg-details{border:1px solid var(--rhg-line);border-radius:16px;background:white;overflow:hidden;margin:25px 0}
.rhg-app .rhg-details>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:19px 21px;font-weight:800;font-size:16px;cursor:pointer}
.rhg-app .rhg-details>summary::-webkit-details-marker{display:none}
.rhg-app .rhg-details>summary small{font-weight:600;color:var(--rhg-muted);font-size:12px;margin-left:5px}
.rhg-app .rhg-chevron{margin-left:auto;font-size:19px;transition:transform .2s}
.rhg-app .rhg-details[open] .rhg-chevron{transform:rotate(180deg)}
.rhg-app .rhg-fields{border-top:1px solid var(--rhg-line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:22px}
.rhg-app .rhg-field{display:flex;flex-direction:column;gap:7px;color:var(--rhg-ink);font-size:13px;font-weight:700}
.rhg-app .rhg-field select,.rhg-app .rhg-field input{border:1px solid #d5e2db;border-radius:10px;background:#fff;width:100%;font-size:15px;color:var(--rhg-ink);padding:12px 13px;min-height:47px;box-shadow:none}
.rhg-app .rhg-toggle{display:flex;align-items:center;gap:10px;min-height:46px;font-weight:650;font-size:13px;cursor:pointer}
.rhg-app .rhg-toggle input{width:19px;height:19px;accent-color:var(--rhg-accent);flex:0 0 19px}
.rhg-app .rhg-help{font-size:12px;color:var(--rhg-muted);line-height:1.8}
.rhg-app .rhg-details>.rhg-help{padding:0 22px 10px}
.rhg-app .rhg-details>.rhg-text-button{margin-left:22px;margin-bottom:17px}
.rhg-app .rhg-setup-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#ebf4ed;border-radius:16px;padding:20px 22px;margin-top:29px}
.rhg-app .rhg-start-summary{display:flex;flex-direction:column;gap:4px}
.rhg-app .rhg-start-summary strong{font-size:15px}
.rhg-app .rhg-start-summary span{color:var(--rhg-muted);font-size:12px;line-height:1.7}
.rhg-app .rhg-primary,.rhg-app .rhg-outline{display:inline-flex;align-items:center;justify-content:center;gap:14px;text-align:center;min-height:48px;border-radius:12px;padding:12px 21px;font-size:14px;font-weight:780;line-height:1.4;text-decoration:none;transition:background .18s,transform .18s;white-space:normal}
.rhg-app .rhg-primary{background:var(--rhg-accent);border:1px solid var(--rhg-accent);color:#fff}
.rhg-app .rhg-primary:hover{background:var(--rhg-dark);border-color:var(--rhg-dark)}
.rhg-app .rhg-outline{border:1px solid #b9d0c5;background:#fff;color:var(--rhg-ink)}
.rhg-app .rhg-outline:hover{background:#f0f7f1}
.rhg-app .rhg-filebar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:20px 0 0;padding:18px 0;border-bottom:1px solid var(--rhg-line)}
.rhg-app .rhg-filebar>div{display:flex;flex-direction:column;gap:4px;max-width:480px}
.rhg-app .rhg-filebar strong{font-size:13px}
.rhg-app .rhg-filebar span{color:var(--rhg-muted);font-size:12px;line-height:1.7}
.rhg-app .rhg-loaded{font-weight:700;color:var(--rhg-accent)!important}
.rhg-app .rhg-loaded button{border:0;background:transparent;color:var(--rhg-accent);text-decoration:underline;padding:3px}
.rhg-app .rhg-notice{color:#7c4b16;background:#fff3df;border-radius:9px;padding:11px;font-size:13px;margin-top:12px}
/* Dual display: in-page play as default DOM layout; expanded/native fullscreen when selected. */
body.rhg-no-scroll{overflow:hidden!important}
.rhg-app .rhg-stage{position:relative!important;inset:auto!important;z-index:1;width:100%!important;height:clamp(520px,76vh,800px)!important;background:#f5f9f6;color:var(--rhg-ink);margin:0!important;border:1px solid var(--rhg-line);border-radius:18px;box-shadow:var(--rhg-shadow);display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain;padding:0;transform:none!important}
.rhg-app .rhg-stage.rhg-stage-expanded{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.rhg-app .rhg-stage:fullscreen{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important}
.rhg-app .rhg-stage.rhg-stage-inline{position:relative!important;inset:auto!important;z-index:1!important}
.rhg-app .rhg-placekeeper{pointer-events:none}

.rhg-app .rhg-stage-wrap{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;margin:0 auto;max-width:1800px;padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left,0px))}
.rhg-app .rhg-gamebar{display:flex;justify-content:space-between;align-items:center;padding:9px clamp(2px,2vw,20px);gap:10px;flex:0 0 auto;border-bottom:1px solid var(--rhg-line);min-height:62px}
.rhg-app .rhg-game-brand{display:flex;align-items:center;gap:10px;min-width:0}
.rhg-app .rhg-brand-mark{width:37px;height:37px;border-radius:12px;display:grid;place-items:center;color:var(--rhg-accent);background:#e2f0e8;font-size:23px}
.rhg-app .rhg-game-brand>div{min-width:0;display:flex;flex-direction:column;line-height:1.35}
.rhg-app .rhg-game-brand>div span{font-size:9px;font-weight:800;letter-spacing:.09em;color:var(--rhg-muted)}
.rhg-app .rhg-game-brand>div strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rhg-app .rhg-game-tools{display:flex;align-items:center;gap:7px}
.rhg-app .rhg-tool-glyph{font-size:21px!important;line-height:1}
.rhg-app .rhg-tool-btn{border:1px solid var(--rhg-line);color:var(--rhg-ink);background:#fff;border-radius:9px;min-width:45px;min-height:43px;padding:6px 10px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:19px;font-weight:750;line-height:1}
.rhg-app .rhg-tool-btn span{font-size:11px;font-weight:800}
.rhg-app .rhg-tool-end{color:#ad564d}
.rhg-app .rhg-game-status{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:clamp(10px,2vh,23px) clamp(3px,3vw,38px)}
.rhg-app .rhg-stage-kicker{font-size:11px;letter-spacing:.07em;font-weight:750;color:var(--rhg-accent)}
.rhg-app .rhg-prompt{font-size:clamp(17px,2.2vw,26px);font-weight:850;line-height:1.5;max-width:650px}
.rhg-app .rhg-statrow{display:flex;gap:14px;flex:0 0 auto}
.rhg-app .rhg-statrow>div{background:#fff;border:1px solid var(--rhg-line);border-radius:10px;min-width:103px;padding:9px 13px;display:flex;flex-direction:column;gap:1px}
.rhg-app .rhg-statrow small{color:var(--rhg-muted);font-size:10px;font-weight:750}
.rhg-app .rhg-statrow strong{font-size:16px;font-variant-numeric:tabular-nums}
.rhg-app .rhg-playfield{flex:1;min-height:0;border-radius:20px;background:#fff;border:1px solid #e4ece6;box-shadow:0 8px 25px rgba(32,60,48,.035);display:flex;align-items:center;justify-content:center;padding:clamp(6px,1.5vw,22px);margin:0 clamp(1px,2vw,28px);overflow:hidden}
.rhg-app .rhg-target-board,.rhg-app .rhg-memory-board{display:grid;grid-template-columns:repeat(var(--rhg-cols),minmax(0,1fr));gap:clamp(5px,1.2vmin,16px);width:min(100%,min(82vw,540px));max-height:100%;aspect-ratio:1 / 1;align-content:center}
.rhg-app .rhg-symbol,.rhg-app .rhg-memory-cell{display:grid;place-items:center;aspect-ratio:1;border:1px solid #e6eee8;border-radius:clamp(6px,1.5vmin,15px);background:#f5f9f6;color:#315d59;font-size:clamp(19px,5vmin,42px);font-weight:750;line-height:1;min-width:0;min-height:0;padding:0;touch-action:manipulation;transition:background .1s,border-color .1s}
.rhg-app .rhg-symbol:hover:not(:disabled),.rhg-app .rhg-memory-cell:hover:not(:disabled){background:#e5f2e9;border-color:#a4ccaf}
.rhg-app .rhg-symbol.rhg-red{color:#b6544d}
.rhg-app .rhg-symbol.rhg-hit{background:#dcefe3;color:#267e6b;border-color:#b6dcc5}
.rhg-app .rhg-check{font-size:clamp(22px,4vmin,34px)}
.rhg-app .rhg-memory-board{width:min(100%,min(75vw,460px))}
.rhg-app .rhg-memory-cell{background:#ecf3ee;border:2px solid #dfe9e1;color:#fff}
.rhg-app .rhg-memory-cell.rhg-lit{background:#3e9b7b;border-color:#23785f;box-shadow:0 0 0 4px rgba(69,159,123,.15)}
.rhg-app .rhg-memory-cell.rhg-answered{background:#b7dfc5;border-color:#8bc6a5;color:#225740}
.rhg-app .rhg-board-caption{text-align:center;color:var(--rhg-muted);font-size:12px;margin-top:14px}
.rhg-app .rhg-memory-board+.rhg-board-caption{position:absolute;bottom:15px;left:10px;right:10px}
.rhg-app .rhg-playfield:has(.rhg-memory-board){position:relative;flex-direction:column}
.rhg-app .rhg-reach-arena{position:relative;width:100%;height:100%;min-height:0;background-image:linear-gradient(to right,transparent calc(50% - .5px),#e8f0ec 50%,transparent calc(50% + .5px));border-radius:12px;touch-action:manipulation}
.rhg-app .rhg-reach-target{position:absolute;transform:translate(-50%,-50%);width:min(var(--rhg-target-size),45vmin);height:min(var(--rhg-target-size),45vmin);min-width:48px;min-height:48px;background:#3d9b7a;border:5px solid #b9e4cd;box-shadow:0 4px 0 #26775f,0 13px 25px rgba(38,126,107,.21);border-radius:50%;color:#fff;font-size:clamp(20px,3vw,32px);font-weight:850;display:grid;place-items:center;touch-action:manipulation;line-height:1}
.rhg-app .rhg-reach-target:active{transform:translate(-50%,-50%) scale(.96)}
.rhg-app .rhg-reach-wait{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);white-space:nowrap;color:var(--rhg-muted);font-size:14px}
.rhg-app .rhg-stage-foot{flex:0 0 auto;min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px clamp(3px,3vw,38px);color:var(--rhg-muted);font-size:12px}
.rhg-app .rhg-modal-holder:empty{display:none}
.rhg-app .rhg-modal-backdrop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:15px;background:rgba(23,43,37,.58);z-index:4}
.rhg-app .rhg-modal{max-width:410px;width:100%;border-radius:22px;padding:28px;background:#fff;text-align:center;box-shadow:0 30px 70px rgba(0,0,0,.15)}
.rhg-app .rhg-modal-icon{font-size:34px;color:var(--rhg-accent);display:inline-block;margin-bottom:13px}
.rhg-app .rhg-modal [role="heading"]{font-size:24px;font-weight:850;margin-bottom:10px}
.rhg-app .rhg-modal p{font-size:14px;color:var(--rhg-muted);line-height:1.8;margin-bottom:24px}
.rhg-app .rhg-modal-actions{display:flex;flex-direction:column;gap:9px}
.rhg-app .rhg-result-head{text-align:center;padding:20px 0 30px}
.rhg-app .rhg-result-symbol{background:#e1f1e8;color:var(--rhg-accent);font-size:28px;font-weight:750;width:68px;height:68px;display:grid;place-items:center;border-radius:50%;margin:15px auto}
.rhg-app .rhg-result-head [role="heading"]{font-weight:850;font-size:clamp(23px,3.8vw,32px)}
.rhg-app .rhg-result-head p{color:var(--rhg-muted);font-size:14px;margin-top:9px}
.rhg-app .rhg-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:8px 0 25px}
.rhg-app .rhg-results-grid>div{display:flex;flex-direction:column;align-items:center;gap:6px;background:#e8f3ec;border:1px solid #e0eee5;border-radius:16px;padding:18px 8px}
.rhg-app .rhg-results-grid small{font-size:12px;color:#52766a;font-weight:750}
.rhg-app .rhg-results-grid strong{font-size:clamp(22px,3.5vw,33px);font-weight:850;line-height:1.2;font-variant-numeric:tabular-nums}
.rhg-app .rhg-results-grid span{font-size:11px;color:var(--rhg-muted)}
.rhg-app .rhg-result-panel{background:#fff;border:1px solid var(--rhg-line);border-radius:15px;padding:21px;margin-bottom:14px}
.rhg-app .rhg-result-panel [role="heading"]{font-size:17px;font-weight:850;margin:0 0 16px}
.rhg-app .rhg-sides,.rhg-app .rhg-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:17px}
.rhg-app .rhg-sides>div,.rhg-app .rhg-compare-grid>div{border-radius:11px;background:#f1f7f3;padding:15px;display:flex;flex-direction:column;gap:4px}
.rhg-app .rhg-sides strong{font-size:13px}
.rhg-app .rhg-sides span{font-size:16px;font-weight:700}
.rhg-app .rhg-mini-list{display:flex;flex-direction:column;gap:0}
.rhg-app .rhg-mini-list>div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px 0;border-bottom:1px solid #edf1ed;font-size:13px}
.rhg-app .rhg-mini-list>div:last-child{border-bottom:0}
.rhg-app .rhg-mini-list span{color:var(--rhg-muted)}
.rhg-app .rhg-mini-list strong{font-weight:750;text-align:right}
.rhg-app .rhg-compare-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.rhg-app .rhg-compare-grid small{font-size:11px;color:var(--rhg-muted)}
.rhg-app .rhg-compare-grid strong{font-size:22px}
.rhg-app .rhg-compare-note{color:#93652a;font-size:13px}
.rhg-app .rhg-result-buttons,.rhg-app .rhg-result-footer{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.rhg-app .rhg-result-footer>*{flex:1;min-width:160px}
@media(max-width:760px){
 .rhg-app .rhg-shell{border-radius:17px}
 .rhg-app .rhg-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .rhg-app .rhg-head-art{width:120px;height:100px;flex-basis:120px;border-radius:32px}
 .rhg-app .rhg-head-art span{font-size:33px}
 .rhg-app .rhg-setup-actions{flex-direction:column;align-items:stretch}
 .rhg-app .rhg-fields{grid-template-columns:1fr}
 .rhg-app .rhg-levels{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rhg-app .rhg-game-status{padding:12px 5px}
 .rhg-app .rhg-tool-btn span{display:none}
 .rhg-app .rhg-tool-btn .rhg-tool-glyph{display:inline!important}
 .rhg-app .rhg-statrow{gap:6px}
 .rhg-app .rhg-statrow>div{min-width:76px;padding:6px 8px}
 .rhg-app .rhg-gamebar{min-height:56px}
 .rhg-app .rhg-game-tools{gap:4px}
 .rhg-app .rhg-tool-btn{min-height:44px;min-width:44px;padding:6px}
}
@media(max-width:490px){
 .rhg-app .rhg-head{min-height:0;padding:4px 0 21px}
 .rhg-app .rhg-head-art{display:none}
 .rhg-app .rhg-toolbar{margin-top:19px;align-items:stretch;flex-direction:column}
 .rhg-app .rhg-cards{grid-template-columns:1fr}
 .rhg-app .rhg-game-card{min-height:0;flex-direction:row}
 .rhg-app .rhg-game-art{flex:0 0 105px;width:105px;height:auto;min-height:147px}
 .rhg-app .rhg-game-art svg{width:53px;height:53px}
 .rhg-app .rhg-game-card-body{padding:14px 15px}
 .rhg-app .rhg-game-card-body strong{font-size:15px}
 .rhg-app .rhg-setup-hero{gap:13px}
 .rhg-app .rhg-setup-icon{flex-basis:67px;width:67px;height:67px;border-radius:14px;padding:10px}
 .rhg-app .rhg-chips{gap:7px}
 .rhg-app .rhg-chip{font-size:12px;min-height:43px;padding:9px 12px}
 .rhg-app .rhg-details>summary{font-size:14px;padding:15px}
 .rhg-app .rhg-details>summary small{font-size:11px}
 .rhg-app .rhg-fields{padding:15px}
 .rhg-app .rhg-game-brand .rhg-brand-mark{display:none}
 .rhg-app .rhg-game-brand>div span{font-size:8px}
 .rhg-app .rhg-game-brand>div strong{font-size:13px}
 .rhg-app .rhg-game-status{align-items:flex-start;flex-direction:column;gap:7px}
 .rhg-app .rhg-stage-kicker{font-size:10px}
 .rhg-app .rhg-prompt{font-size:16px}
 .rhg-app .rhg-statrow{width:100%}
 .rhg-app .rhg-statrow>div{flex:1;min-width:0;flex-direction:row;align-items:center;justify-content:space-between}
 .rhg-app .rhg-statrow strong{font-size:14px}
 .rhg-app .rhg-playfield{border-radius:12px}
 .rhg-app .rhg-target-board,.rhg-app .rhg-memory-board{width:min(100%,min(90vw,480px));gap:5px}
 .rhg-app .rhg-stage-foot>span:last-child{display:none}
 .rhg-app .rhg-stage-foot{font-size:11px;min-height:45px}
 .rhg-app .rhg-results-grid{gap:6px}
 .rhg-app .rhg-results-grid>div{padding:12px 3px}
 .rhg-app .rhg-results-grid strong{font-size:20px}
 .rhg-app .rhg-results-grid small,.rhg-app .rhg-results-grid span{font-size:10px}
 .rhg-app .rhg-result-panel{padding:15px}
 .rhg-app .rhg-compare-grid strong{font-size:17px}
}
@media(max-height:570px){
 .rhg-app .rhg-gamebar{min-height:44px;padding-top:3px;padding-bottom:3px}
 .rhg-app .rhg-game-status{padding-top:5px;padding-bottom:5px}
 .rhg-app .rhg-prompt{font-size:16px}
 .rhg-app .rhg-stage-foot{min-height:31px;padding-top:3px;padding-bottom:3px}
 .rhg-app .rhg-target-board,.rhg-app .rhg-memory-board{width:min(100%,min(65vh,440px))}
}
@media(prefers-reduced-motion:reduce){.rhg-app *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.rhg-app .rhg-hint-btn{border:1px solid #b8d8c5;border-radius:9px;background:#e9f5ec;color:#226f59;min-height:39px;padding:6px 13px;font-size:12px;font-weight:800}
.rhg-app .rhg-hint-btn:hover{background:#d6eddf}
.rhg-app .rhg-symbol.rhg-hinted,.rhg-app .rhg-memory-cell.rhg-hinted{outline:4px solid #e6ad54;outline-offset:-4px;border-color:#ba8638}

/* Single-page game portal: navigation remains available in setup/results. */
.rhg-app .rhg-portal-nav{display:flex;flex-wrap:wrap;align-items:center;gap:13px 22px;padding-bottom:23px;margin-bottom:27px;border-bottom:1px solid var(--rhg-line)}
.rhg-app .rhg-portal-home{display:inline-flex;align-items:center;min-height:44px;border:0;border-radius:9px;padding:8px 10px;background:transparent;color:var(--rhg-accent);font-size:13px;font-weight:800;white-space:nowrap}
.rhg-app .rhg-portal-home:hover{background:#e8f3ec}
.rhg-app .rhg-portal-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1}
.rhg-app .rhg-portal-tab{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--rhg-line);border-radius:12px;padding:8px 12px;min-height:46px;background:#fff;color:var(--rhg-ink);font-size:12px;font-weight:750;white-space:nowrap}
.rhg-app .rhg-portal-tab svg{width:21px;height:21px;color:var(--rhg-accent);flex:0 0 21px}
.rhg-app .rhg-portal-tab.rhg-portal-current{background:#e7f3ec;border-color:#95c6b4;color:#115b49}
.rhg-app .rhg-portal-tab:not(.rhg-portal-current):hover{background:#f5faf6;border-color:#a8cfc1}
.rhg-app .rhg-last-session{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d5e6dd;background:#f5faf6;border-radius:12px;padding:14px;margin-top:18px}
.rhg-app .rhg-last-session span{font-size:13px;color:var(--rhg-muted)}
@media(max-width:620px){.rhg-app .rhg-portal-nav{gap:8px;margin-bottom:18px;padding-bottom:16px}.rhg-app .rhg-portal-tabs{width:100%;flex:0 0 100%;gap:6px}.rhg-app .rhg-portal-tab{flex:1;min-width:0;justify-content:center;padding:9px 4px;white-space:normal;line-height:1.4;text-align:center}.rhg-app .rhg-portal-tab svg{display:none}.rhg-app .rhg-portal-tab span{font-size:11px}}


/* Game display choice, shared by all three games. */
.rhg-app .rhg-display-options{border:0;padding:0;margin:24px 0 0;min-width:0}
.rhg-app .rhg-display-options legend{font-size:16px;font-weight:830;padding:0;margin-bottom:13px}
.rhg-app .rhg-display-options legend span{color:var(--rhg-accent);margin-right:10px;font-size:12px}
.rhg-app .rhg-display-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rhg-app .rhg-display-choice{display:flex;align-items:center;gap:13px;border:1.5px solid var(--rhg-line);border-radius:13px;background:#fff;padding:16px 15px;cursor:pointer;min-width:0;position:relative}
.rhg-app .rhg-display-choice-active{border-color:#47967d;background:#eef8f1;box-shadow:0 0 0 1px rgba(48,135,99,.1)}
.rhg-app .rhg-display-choice input{width:17px;height:17px;accent-color:var(--rhg-accent);flex-shrink:0;margin:0}
.rhg-app .rhg-display-choice-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:10px;background:#e5f2e9;color:var(--rhg-accent);font-size:23px}
.rhg-app .rhg-display-choice>span:last-child{display:flex;flex-direction:column;min-width:0;gap:2px}
.rhg-app .rhg-display-choice strong{font-size:14px;font-weight:800;line-height:1.45}
.rhg-app .rhg-display-choice small{font-size:10px;color:var(--rhg-accent);font-weight:750}
.rhg-app .rhg-display-choice em{font-size:12px;color:var(--rhg-muted);font-style:normal;line-height:1.5}
.rhg-app .rhg-display-help{font-size:12px;color:var(--rhg-muted);line-height:1.8;margin-top:10px}
@media(max-width:490px){.rhg-app .rhg-display-choices{grid-template-columns:1fr}.rhg-app .rhg-display-choice{padding:12px}}

/* v1.3.0 — Three-cup ball tracking game */
.rhg-app .rhg-art-4{background:linear-gradient(140deg,#faf0e5,#f3e5d4);color:#977252}
.rhg-app .rhg-cup-scene{width:min(100%,820px);height:100%;min-height:190px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:8px;position:relative;margin:auto;isolation:isolate}
.rhg-app .rhg-cup-scene-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 clamp(3px,2vw,16px);color:#6c7b72;font-size:10px;letter-spacing:.14em;font-weight:850}
.rhg-app .rhg-cup-label{color:#347e68}
.rhg-app .rhg-cup-round{white-space:nowrap;font-variant-numeric:tabular-nums}
.rhg-app .rhg-cup-track{position:relative;min-width:0;max-width:100%;width:100%;height:clamp(150px,29vh,290px);flex:1;min-height:145px;margin:auto;border-radius:22px;overflow:hidden;background:radial-gradient(ellipse 65% 38% at 50% 92%,rgba(120,146,115,.12),transparent 85%),linear-gradient(180deg,#f9fbf8 0%,#f4f6ee 100%)}
.rhg-app .rhg-cup-track::after{content:"";position:absolute;left:6%;right:6%;bottom:11%;height:2px;background:#c4d2c4;border-radius:100%;z-index:0}
.rhg-app .rhg-cup{position:absolute;left:calc(var(--rhg-slot) * 33.333333%);bottom:0;width:33.333333%;height:100%;border:2px solid transparent;border-radius:20px;background:transparent;padding:0;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;isolation:isolate;transition:left var(--rhg-swap-duration,700ms) cubic-bezier(.47,.05,.28,1);will-change:left;color:#2b7469;touch-action:manipulation;outline-offset:-4px!important}
.rhg-app .rhg-cup:disabled{opacity:1;cursor:default}
.rhg-app .rhg-cup-shape{position:relative;width:min(95%,162px);height:min(100%,215px);display:block;z-index:2;transform:translateY(0);transition:transform .28s ease;pointer-events:none;filter:drop-shadow(0 7px 9px rgba(50,85,71,.13))}
.rhg-app .rhg-cup-illustration{width:100%;height:100%;overflow:visible}
.rhg-app .rhg-cup-ball{width:clamp(19px,3.6vw,32px);height:clamp(19px,3.6vw,32px);display:block;position:absolute;left:50%;bottom:10%;transform:translateX(-50%) scale(.7);border-radius:50%;border:2px solid #a94b47;background:radial-gradient(circle at 30% 24%,#fff1e3 0%,#efb39a 18%,#d46c5a 46%,#ac4e49 92%);box-shadow:0 5px 5px rgba(99,58,44,.2);opacity:0;z-index:1;transition:opacity .2s,transform .25s}
.rhg-app .rhg-cup-show-ball .rhg-cup-ball{opacity:1;transform:translateX(-50%) scale(1)}
.rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-39px)}
.rhg-app .rhg-cup-swapping-up{z-index:5}
.rhg-app .rhg-cup-swapping-down{z-index:3}
.rhg-app .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-20px)}
.rhg-app .rhg-cup-swapping-down .rhg-cup-shape{transform:translateY(8px)}
.rhg-app .rhg-cup-picked-wrong{background:rgba(193,82,74,.07);border-color:rgba(193,82,74,.6)}
.rhg-app .rhg-cup-picked-right{background:rgba(49,142,98,.07);border-color:rgba(49,142,98,.6)}
.rhg-app .rhg-cup:not(:disabled):hover{background:rgba(79,155,123,.09);border-color:rgba(48,118,90,.3)}
.rhg-app .rhg-cup:not(:disabled):active .rhg-cup-shape{transform:scale(.96)}
.rhg-app .rhg-cup-counter{min-height:31px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:750;color:#456c5b;text-align:center;padding:0 8px}
.rhg-app .rhg-cup-counter-dot{width:8px;height:8px;border-radius:50%;background:#e8ae70;box-shadow:0 0 0 4px rgba(232,174,112,.16);flex:0 0 8px}
@media(max-width:590px){
 .rhg-app .rhg-cup-scene{min-height:175px;gap:3px}
 .rhg-app .rhg-cup-track{min-height:145px;height:clamp(145px,28vh,220px);border-radius:12px}
 .rhg-app .rhg-cup-shape{width:min(98%,130px);height:min(100%,190px)}
 .rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-30px)}
 .rhg-app .rhg-cup-counter{font-size:12px;min-height:26px}
 .rhg-app .rhg-cup-ball{width:22px;height:22px}
}
@media(max-height:600px){
 .rhg-app .rhg-cup-scene{min-height:120px;gap:0}
 .rhg-app .rhg-cup-track{min-height:100px;height:clamp(100px,24vh,175px)}
 .rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-21px)}
 .rhg-app .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-12px)}
 .rhg-app .rhg-cup-counter{font-size:11px;min-height:22px}
}

@media(min-width:1101px){.rhg-app .rhg-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1100px){.rhg-app .rhg-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.4.0 — A little pastel cup-garden, scoped ONLY to ボールはどこ？ */
.rhg-app .rhg-game-card[data-id="cup-shuffle"] .rhg-game-art{background:linear-gradient(145deg,#fff1e7,#f6dfdf);color:#b67c8a}
.rhg-app .rhg-shell-cup .rhg-setup-icon{background:linear-gradient(140deg,#fce9e4,#f8edf0);color:#a66578;border:1px solid #efd6d6}
.rhg-app .rhg-stage--cup{background:#fff8f2;border-color:#f2dedd}
.rhg-app .rhg-stage--cup .rhg-gamebar{background:#fffaf6;border-bottom-color:#f1e3da}
.rhg-app .rhg-stage--cup .rhg-brand-mark{background:#fae6e5;color:#ba788b}
.rhg-app .rhg-stage--cup .rhg-stage-kicker{color:#ad7184}
.rhg-app .rhg-stage--cup .rhg-game-status{background:linear-gradient(180deg,#fffaf6,#fff6ef)}
.rhg-app .rhg-stage--cup .rhg-statrow>div{background:#fffefb;border-color:#f1e3d9}
.rhg-app .rhg-stage--cup .rhg-playfield{background:#fffaf2;border:1px solid #f0ddd4;box-shadow:0 8px 24px rgba(146,92,96,.045);padding:clamp(7px,1.4vw,20px)}
.rhg-app .rhg-stage--cup .rhg-stage-foot{background:#fff8f2;color:#776773}
.rhg-app .rhg-cup-scene{width:min(100%,940px);gap:10px;min-height:175px}
.rhg-app .rhg-cup-scene-head{padding:3px clamp(6px,1.9vw,20px);font-size:11px;letter-spacing:.03em;color:#8e717b}
.rhg-app .rhg-cup-label{display:inline-flex;align-items:center;gap:7px;color:#926479;font-size:clamp(10px,1.25vw,13px);font-weight:800;letter-spacing:.02em}
.rhg-app .rhg-cup-flower{color:#cd8491;font-size:20px;font-weight:400;line-height:1}
.rhg-app .rhg-cup-round{letter-spacing:.04em;background:#fff7f6;border:1px solid #f0dcdc;border-radius:999px;padding:5px 11px;color:#8c6b7b;font-size:11px}
.rhg-app .rhg-cup-track{background:#fff5eb url("cup-garden.svg") center center / cover no-repeat;border:1px solid #f2ded2;border-radius:26px;box-shadow:inset 0 0 0 5px rgba(255,255,255,.30);height:clamp(180px,31vh,330px);min-height:160px}
.rhg-app .rhg-cup-track::after{left:7%;right:7%;bottom:12%;height:2px;background:#cbb9ae;opacity:.3}
.rhg-app .rhg-cup{bottom:10%;border-radius:26px;transition:left var(--rhg-swap-duration,700ms) cubic-bezier(.47,.05,.28,1)}
.rhg-app .rhg-cup-shape{width:min(99%,180px);height:min(100%,218px);filter:drop-shadow(0 8px 7px rgba(103,68,79,.12))}
.rhg-app .rhg-cup-ball{bottom:8%;border:2px solid #b65c55;background:radial-gradient(circle at 31% 26%,#fff9f0 0%,#ffd4b3 16%,#ec9682 39%,#d76e6a 78%,#b85563 100%);box-shadow:0 5px 6px rgba(128,76,65,.17)}
.rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-47px)}
.rhg-app .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-25px)}
.rhg-app .rhg-cup-swapping-down .rhg-cup-shape{transform:translateY(10px)}
.rhg-app .rhg-cup-picked-wrong{background:rgba(213,114,101,.08);border-color:#d67d78}
.rhg-app .rhg-cup-picked-right{background:rgba(94,150,115,.08);border-color:#69a77e}
.rhg-app .rhg-cup:not(:disabled):hover{background:rgba(255,255,255,.25);border-color:#bf8c98}
.rhg-app .rhg-cup-counter{margin:0 auto;background:#fffdfa;border:1px solid #f2e4dc;border-radius:999px;padding:5px 15px;min-height:34px;color:#805e70;font-size:13px;max-width:100%}
.rhg-app .rhg-cup-counter-dot{background:#deaa81;box-shadow:0 0 0 4px rgba(231,187,155,.19)}
@media(max-width:590px){
  .rhg-app .rhg-cup-scene{gap:7px;min-height:145px}
  .rhg-app .rhg-cup-track{height:clamp(145px,29vh,255px);min-height:130px;border-radius:19px}
  .rhg-app .rhg-cup-shape{width:min(99%,150px);height:min(100%,192px)}
  .rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-34px)}
  .rhg-app .rhg-cup-scene-head{padding:2px 3px}
  .rhg-app .rhg-cup-label{font-size:10px}
  .rhg-app .rhg-cup-round{font-size:10px;padding:4px 8px}
  .rhg-app .rhg-cup-counter{font-size:11px;padding:3px 10px;min-height:28px}
}
@media(max-height:600px){
  .rhg-app .rhg-cup-scene{gap:2px;min-height:100px}
  .rhg-app .rhg-cup-track{height:clamp(100px,25vh,195px);min-height:100px}
  .rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-21px)}
  .rhg-app .rhg-cup-scene-head{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .rhg-app .rhg-stage--cup .rhg-cup-shape{transition:none}
  /* Position swaps retain their timing and visible travel: visually tracking the swap is the task. */
}

/* v1.5.0 — MEMORY ATELIER. Scoped to the fifth game only. */
.rhg-app .rhg-game-card[data-id="pair-matching"] .rhg-game-art{background:linear-gradient(140deg,#f3eee6,#ebe8dd);color:#806b66}
.rhg-app .rhg-shell-pairs .rhg-setup-icon{background:#f1eae2;color:#77665c;border:1px solid #e9dcd1}
.rhg-app .rhg-stage--pairs{background:#f8f6f0;border-color:#e9dfd4;--rhg-pair-ink:#5a5850}
.rhg-app .rhg-stage--pairs .rhg-gamebar{background:#fffdfa;border-color:#eee5d9}
.rhg-app .rhg-stage--pairs .rhg-brand-mark{color:#826a5b;background:#f2eae1}
.rhg-app .rhg-stage--pairs .rhg-game-status{background:linear-gradient(#faf8f3,#f7f5ef)}
.rhg-app .rhg-stage--pairs .rhg-stage-kicker{color:#8c766e}
.rhg-app .rhg-stage--pairs .rhg-statrow>div{border-color:#e8ded3;background:#fffdfa}
.rhg-app .rhg-stage--pairs .rhg-playfield{background:radial-gradient(circle at 2% 8%,rgba(190,172,151,.1),transparent 30%),radial-gradient(circle at 97% 96%,rgba(126,158,142,.09),transparent 35%),#fdfaf5;border:1px solid #e7dbcc;box-shadow:inset 0 0 0 6px rgba(255,255,255,.48);padding:clamp(6px,1.3vw,20px)}
.rhg-app .rhg-stage--pairs .rhg-stage-foot{color:#8a786b;background:#f8f6f0}
.rhg-app .rhg-pairs-scene{width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:clamp(8px,1.4vh,17px);overflow-x:hidden;overflow-y:auto;padding:4px clamp(3px,1.4vw,14px) 9px;scrollbar-color:#cfc1b4 transparent}
.rhg-app .rhg-pairs-topline{width:min(100%,760px);display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.rhg-app .rhg-pairs-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(12px,1.3vw,15px);font-weight:650;letter-spacing:.17em;color:#8d786a;white-space:nowrap}
.rhg-app .rhg-pairs-round{font-size:11px;color:#877971;border:1px solid #ebdfd3;background:rgba(255,255,255,.8);border-radius:999px;padding:4px 10px;font-weight:700;white-space:nowrap}
.rhg-app .rhg-pairs-board{--rhg-pair-gap:clamp(6px,1.25vmin,13px);width:min(100%,710px);display:grid;grid-template-columns:repeat(var(--rhg-pair-cols),minmax(0,1fr));gap:var(--rhg-pair-gap);place-content:center;flex:0 0 auto;margin:0 auto}
.rhg-app .rhg-pair-card{border:0;background:transparent;border-radius:12px;min-width:0;min-height:0;width:100%;height:clamp(58px,11vh,114px);padding:0;perspective:700px;touch-action:manipulation;color:inherit;isolation:isolate;cursor:pointer}
.rhg-app .rhg-pair-card:disabled{opacity:1}
.rhg-app .rhg-pair-card-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform 460ms cubic-bezier(.2,.65,.2,1);border-radius:12px;will-change:transform}
.rhg-app .rhg-pair-card.rhg-pair-flipped .rhg-pair-card-inner{transform:rotateY(180deg)}
.rhg-app .rhg-pair-back,.rhg-app .rhg-pair-face{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;border-radius:12px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.rhg-app .rhg-pair-back{background:linear-gradient(155deg,#9cae9f 0%,#789785 45%,#587a69 100%);border:2px solid #658271;box-shadow:0 4px 0 #4f6d5d,0 7px 13px rgba(43,67,58,.13)}
.rhg-app .rhg-pair-back::before{content:'';position:absolute;inset:6px;border:1px solid rgba(255,248,231,.57);border-radius:7px}
.rhg-app .rhg-pair-back-lines{position:absolute;inset:0;opacity:.16;background:repeating-linear-gradient(130deg,transparent 0 15px,#fffbef 16px,#fffbef 17px,transparent 18px 32px)}
.rhg-app .rhg-pair-back-sigil{font-family:Georgia,serif;position:relative;font-size:clamp(19px,3.4vh,36px);font-weight:400;color:#fcf0da;text-shadow:0 1px 1px rgba(63,85,65,.18)}
.rhg-app .rhg-pair-face{background:linear-gradient(160deg,#fffefa,#f5efe5);border:1px solid #d6cabc;box-shadow:0 3px 8px rgba(68,59,52,.1);transform:rotateY(180deg);gap:2px}
.rhg-app .rhg-pair-face::after{content:'';position:absolute;inset:6px;border:1px solid #ebdfd2;border-radius:8px;pointer-events:none}
.rhg-app .rhg-pair-illustration{position:relative;width:clamp(26px,6vh,65px);height:clamp(26px,6vh,65px);display:flex;align-items:center;justify-content:center;color:var(--rhg-pair-icon);z-index:1}
.rhg-app .rhg-pair-illustration svg{display:block;width:100%;height:100%;color:var(--rhg-pair-icon)}
.rhg-app .rhg-pair-number{font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,6vh,60px);line-height:1.05}
.rhg-app .rhg-pair-face-label{position:relative;font-size:clamp(9px,1.35vh,12px);font-weight:700;line-height:1.15;color:#766a61;z-index:1;white-space:nowrap}
.rhg-app .rhg-pair-card:not(:disabled):hover .rhg-pair-back{background:linear-gradient(155deg,#b3bfa8,#7a9885 48%,#587a69)}
.rhg-app .rhg-pair-card:not(:disabled):active .rhg-pair-card-inner{scale:.975}
.rhg-app .rhg-pair-card.rhg-pair-matched .rhg-pair-face{border:2px solid #76a088;background:linear-gradient(160deg,#fffffa,#eaf2e9);box-shadow:0 0 0 3px rgba(103,151,118,.11)}
.rhg-app .rhg-pairs-caption{font-size:clamp(11px,1.3vw,13px);font-weight:650;color:#8a7970;text-align:center;line-height:1.5;flex:0 0 auto}
@media(max-width:600px){
  .rhg-app .rhg-pairs-board{grid-template-columns:repeat(min(4,var(--rhg-pair-cols)),minmax(0,1fr));--rhg-pair-gap:6px;width:min(100%,410px)}
  .rhg-app .rhg-pair-card{height:clamp(59px,9.2vh,86px);border-radius:9px}
  .rhg-app .rhg-pair-back,.rhg-app .rhg-pair-face,.rhg-app .rhg-pair-card-inner{border-radius:9px}
  .rhg-app .rhg-pair-back::before,.rhg-app .rhg-pair-face::after{inset:4px;border-radius:6px}
  .rhg-app .rhg-pairs-scene{gap:9px;padding:4px 2px}
  .rhg-app .rhg-pairs-title{font-size:11px;letter-spacing:.11em}
  .rhg-app .rhg-pairs-round{font-size:10px;padding:3px 8px}
  .rhg-app .rhg-pairs-caption{font-size:11px}
  .rhg-app .rhg-pair-face-label{font-size:9px}
  .rhg-app .rhg-pair-illustration{height:clamp(26px,5.5vh,48px);width:clamp(26px,5.5vh,48px)}
}
@media(max-height:600px){
  .rhg-app .rhg-stage--pairs .rhg-pair-card{height:58px}
  .rhg-app .rhg-pair-illustration{height:30px;width:30px}
  .rhg-app .rhg-pairs-scene{gap:6px}
}
@media(prefers-reduced-motion:reduce){.rhg-app .rhg-pair-card-inner{transition:none!important}}

/* Refined proportions: compact portrait cards instead of wide tiles. */
.rhg-app .rhg-pairs-board--few{width:min(100%,400px)}
.rhg-app .rhg-pairs-board--regular{width:min(100%,565px)}
.rhg-app .rhg-pairs-board--many{width:min(100%,660px)}
.rhg-app .rhg-pairs-board--few .rhg-pair-card{height:clamp(95px,15vh,152px)}
.rhg-app .rhg-pairs-board--regular .rhg-pair-card{height:clamp(77px,13vh,134px)}
.rhg-app .rhg-pairs-board--many .rhg-pair-card{height:clamp(60px,10.5vh,102px)}
@media(max-width:600px){
.rhg-app .rhg-pairs-board--few{width:min(100%,380px)}
.rhg-app .rhg-pairs-board--regular{width:min(100%,410px)}
.rhg-app .rhg-pairs-board--many{width:min(100%,410px)}
.rhg-app .rhg-pairs-board--few .rhg-pair-card{height:clamp(96px,15vh,126px)}
.rhg-app .rhg-pairs-board--regular .rhg-pair-card{height:clamp(75px,11.5vh,95px)}
.rhg-app .rhg-pairs-board--many .rhg-pair-card{height:clamp(60px,9.4vh,79px)}
}
@media(max-height:600px){
.rhg-app .rhg-pairs-board--few .rhg-pair-card{height:98px}
.rhg-app .rhg-pairs-board--regular .rhg-pair-card{height:73px}
.rhg-app .rhg-pairs-board--many .rhg-pair-card{height:59px}
}

/* Ver.1.6.0 — editorial game gallery, independent of WordPress heading styles. */
.rhg-app [role="heading"]{display:block;background:transparent!important;border:0!important;box-shadow:none!important;text-decoration:none!important;text-shadow:none!important;clip-path:none!important;transform:none!important;max-width:none}
.rhg-app .rhg-setup-hero [role="heading"],
.rhg-app .rhg-section [role="heading"],
.rhg-app .rhg-result-panel [role="heading"]{line-height:1.45!important;color:var(--rhg-ink)!important}
.rhg-app .rhg-section [role="heading"]{margin-bottom:16px!important;display:flex;align-items:center;gap:12px}
.rhg-app .rhg-game-art{position:relative;height:166px;display:block;overflow:hidden;background:#ecefe9!important}
.rhg-app .rhg-game-art img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.rhg-app .rhg-game-card:hover .rhg-game-art img{transform:scale(1.04)}
.rhg-app .rhg-game-card{border-radius:20px;box-shadow:0 4px 18px rgba(47,74,67,.045);min-height:355px}
.rhg-app .rhg-game-card-body{padding:18px 20px 18px}
.rhg-app .rhg-game-card-body strong{font-size:18px;line-height:1.35}
.rhg-app .rhg-card-arrow{margin-top:12px}
.rhg-app .rhg-game-card:focus-visible{outline:3px solid #d9af73;outline-offset:3px}
@media(max-width:490px){
 .rhg-app .rhg-game-card{min-height:165px}
 .rhg-app .rhg-game-art{width:128px;flex:0 0 128px;height:auto;min-height:166px}
 .rhg-app .rhg-game-card-body{padding:14px 15px}
 .rhg-app .rhg-game-card-body strong{font-size:16px}
}
@media(max-width:350px){
 .rhg-app .rhg-game-art{width:105px;flex-basis:105px}
}
/* The preview screen appears only after entering the actual game view.
   No clock, card reveal, movement or answer becomes active until the user presses Start. */
.rhg-app .rhg-playfield{position:relative}
.rhg-app .rhg-ready-screen{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;padding:15px;background:rgba(245,247,243,.89);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.rhg-app .rhg-ready-panel{width:min(100%,410px);display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:clamp(20px,4vw,35px);background:#fffdfa;border:1px solid #e3d9cb;border-radius:24px;box-shadow:0 16px 56px rgba(58,66,59,.16)}
.rhg-app .rhg-ready-decoration{font:normal 42px Georgia,serif;color:#9eae8c;line-height:1}
.rhg-app .rhg-ready-overline{font-size:11px;font-weight:750;letter-spacing:.19em;color:#988978}
.rhg-app .rhg-ready-title{font-size:clamp(23px,3.2vw,30px);font-weight:800;color:#36483f;line-height:1.3}
.rhg-app .rhg-ready-panel p{font-size:13px;line-height:1.8;color:#68796e;margin:0}
.rhg-app .rhg-ready-button{min-width:180px;margin-top:10px;font-size:17px;min-height:56px;border-radius:13px}
.rhg-app .rhg-ready-note{font-size:11px;color:#8a9089}
/* Bespoke, high-contrast playing cards. Natural height controlled by the board layout,
   preventing desktop fullscreen from being constrained to phone-sized tiles. */
.rhg-app .rhg-stage--pairs .rhg-gamebar{min-height:54px;padding-top:6px;padding-bottom:6px}
.rhg-app .rhg-stage--pairs .rhg-game-status{padding-top:6px;padding-bottom:6px;gap:12px}
.rhg-app .rhg-stage--pairs .rhg-stage-foot{min-height:34px;padding-top:4px;padding-bottom:4px}
.rhg-app .rhg-stage--pairs .rhg-playfield{padding:9px;margin:0 clamp(4px,1vw,16px);border-radius:16px;background:radial-gradient(ellipse at 22% 16%,#fffdfa,transparent 55%),radial-gradient(ellipse at 88% 80%,#eee8df,transparent 54%),#f7f1e9}
.rhg-app .rhg-pairs-scene{min-height:0;height:100%;flex:1;overflow:auto;width:100%;justify-content:safe center;gap:8px;padding:1px 3px 6px}
.rhg-app .rhg-pairs-topline{max-width:none;width:min(100%,980px);margin:0 auto;min-height:24px}
.rhg-app .rhg-pairs-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(12px,1.3vw,17px);letter-spacing:.19em;color:#7b7764}
.rhg-app .rhg-pairs-board,
.rhg-app .rhg-pairs-board--few,
.rhg-app .rhg-pairs-board--regular,
.rhg-app .rhg-pairs-board--many{max-width:100%;width:auto;margin:auto;display:grid;align-items:start;justify-items:stretch;align-content:start;gap:var(--rhg-pair-gap,10px);grid-template-columns:unset;flex:0 0 auto}
.rhg-app .rhg-stage--pairs .rhg-pair-card,
.rhg-app .rhg-pairs-board--few .rhg-pair-card,
.rhg-app .rhg-pairs-board--regular .rhg-pair-card,
.rhg-app .rhg-pairs-board--many .rhg-pair-card{height:var(--rhg-card-height,130px)!important;width:100%!important;max-width:none!important;min-height:0;border-radius:13px;box-shadow:none;aspect-ratio:unset}
.rhg-app .rhg-pair-card-inner,.rhg-app .rhg-pair-back,.rhg-app .rhg-pair-face{border-radius:13px}
.rhg-app .rhg-pair-back{background:linear-gradient(135deg,#526b5e 0%,#2f4e45 52%,#273f37 100%);border:2px solid #d3c29e;box-shadow:0 4px 0 #233b33,0 11px 19px rgba(49,62,50,.18)}
.rhg-app .rhg-pair-back::before{inset:7px;border:1px solid rgba(245,228,192,.8);border-radius:8px}
.rhg-app .rhg-pair-back::after{content:'';position:absolute;inset:14px;border:1px solid rgba(232,219,183,.25);border-radius:5px;pointer-events:none}
.rhg-app .rhg-pair-back-frame{position:absolute;inset:0;background:radial-gradient(circle at 20% 15%,rgba(255,255,255,.13),transparent 35%),repeating-linear-gradient(40deg,transparent 0 18px,rgba(223,214,180,.035) 19px,transparent 20px 38px)}
.rhg-app .rhg-pair-back-wreath{position:relative;width:58%;height:70%;color:#d6bf8e;display:grid;place-items:center}
.rhg-app .rhg-pair-back-wreath svg{width:100%;height:100%;fill:none!important;stroke:currentColor;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.rhg-app .rhg-pair-back-wreath svg path:nth-child(2){fill:rgba(214,191,142,.25)!important;stroke-width:1.8}
.rhg-app .rhg-pair-face{background:linear-gradient(160deg,#fffdfa 0%,#f9f4e9 72%,#eee6d7 100%);border:2px solid #d5c7b1;box-shadow:0 6px 14px rgba(62,59,46,.12);gap:clamp(2px,.5vh,7px);padding:8px}
.rhg-app .rhg-pair-face::before{content:'';position:absolute;inset:6px;border:1px solid #e3d7bf;border-radius:7px;pointer-events:none}
.rhg-app .rhg-pair-face::after{content:'';position:absolute;inset:12px;border:1px solid rgba(219,204,173,.35);border-radius:5px;pointer-events:none}
.rhg-app .rhg-pair-illustration,
.rhg-app .rhg-stage--pairs .rhg-pair-illustration{width:min(72%,110px)!important;height:min(64%,138px)!important;max-width:none;max-height:none;flex:0 1 auto;display:grid;place-items:center;position:relative;z-index:1;color:var(--rhg-pair-icon)}
.rhg-app .rhg-pair-illustration svg{width:100%;height:100%;overflow:visible;display:block}
.rhg-app .rhg-pair-illustration.rhg-pair-number{font-family:Georgia,'Times New Roman',serif;font-size:clamp(31px,6vmin,80px)!important;line-height:1;color:#536b5c}
.rhg-app .rhg-pair-face-label{font-size:clamp(11px,1.6vmin,16px)!important;font-weight:650;letter-spacing:.08em;white-space:nowrap;color:#5b625a;line-height:1.1;z-index:1}
.rhg-app .rhg-pair-card.rhg-pair-matched .rhg-pair-face{border-color:#7ba68d;background:linear-gradient(160deg,#fdfefa,#edf4eb)}
.rhg-app .rhg-pair-card:focus-visible{outline:3px solid #dcaf63;outline-offset:4px}
.rhg-app .rhg-pairs-caption{font-size:clamp(11px,1.4vw,15px);min-height:17px;color:#706c60}
@media(max-width:600px){
 .rhg-app .rhg-pairs-topline{min-height:22px}
 .rhg-app .rhg-pairs-title{font-size:11px}
 .rhg-app .rhg-pairs-board{gap:7px}
 .rhg-app .rhg-pair-face{padding:4px;border-width:1px}
 .rhg-app .rhg-pair-face::before{inset:4px}
 .rhg-app .rhg-pair-face::after{inset:8px}
 .rhg-app .rhg-pair-illustration{width:76%!important;height:64%!important}
 .rhg-app .rhg-pair-back::before{inset:4px}
 .rhg-app .rhg-pair-back::after{inset:8px}
 .rhg-app .rhg-pair-back-wreath{width:64%;height:70%}
 .rhg-app .rhg-pair-face-label{font-size:clamp(9px,2.4vw,12px)!important}
 .rhg-app .rhg-ready-panel{padding:23px 15px}
}
@media(max-height:560px){
 .rhg-app .rhg-ready-panel{gap:5px;padding:12px 15px}
 .rhg-app .rhg-ready-decoration{font-size:23px}
 .rhg-app .rhg-ready-button{min-height:44px}
 .rhg-app .rhg-stage--pairs .rhg-gamebar{min-height:45px}
 .rhg-app .rhg-stage--pairs .rhg-game-status{padding-top:3px;padding-bottom:3px}
 .rhg-app .rhg-stage--pairs .rhg-stage-foot{min-height:25px}
}
@media(prefers-reduced-motion:reduce){
 .rhg-app .rhg-game-art img{transition:none}
}

/* Let players see the actual board behind the pre-start control, without revealing its answer. */
.rhg-app .rhg-ready-screen{background:rgba(245,247,243,.42);backdrop-filter:blur(1.4px);-webkit-backdrop-filter:blur(1.4px)}
/* Prevent previews of target positions / ball positions before manual start.
   Pair matching can safely show card backs, but other tasks must hide their answers. */
.rhg-app .rhg-stage:not(.rhg-stage--pairs) .rhg-ready-screen{
  background:rgba(247,249,246,.94);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}


/* v1.7.0 — Improvements focused on ボールはどこ？ */
.rhg-app .rhg-shell-cup .rhg-setup-hero{background:linear-gradient(135deg,#fffaf6,#fff4ef);border:1px solid #f1dfd7;border-radius:22px;padding:20px 22px;margin-bottom:18px;box-shadow:0 14px 34px rgba(163,103,98,.06)}
.rhg-app .rhg-shell-cup .rhg-section{background:#fff;border:1px solid #f1e3da;border-radius:18px;padding:18px 18px 16px;margin:18px 0;box-shadow:0 8px 22px rgba(155,112,103,.04)}
.rhg-app .rhg-shell-cup .rhg-section [role="heading"]{margin-bottom:13px}
.rhg-app .rhg-shell-cup .rhg-level{border-radius:16px;min-height:74px;background:linear-gradient(180deg,#fffdfb,#fff7f5);border-color:#eeddd6}
.rhg-app .rhg-shell-cup .rhg-level.rhg-selected{background:linear-gradient(180deg,#fff3ee,#ffece8);border-color:#d98f87;color:#8f514f}
.rhg-app .rhg-shell-cup .rhg-chip{border-color:#efd9d5;background:#fffaf8;color:#845967}
.rhg-app .rhg-shell-cup .rhg-chip-active{background:#fdeeea;border-color:#e0aba3;color:#934f5a}
.rhg-app .rhg-shell-cup .rhg-details{border-color:#efdfd8;border-radius:20px;box-shadow:0 10px 25px rgba(155,112,103,.04)}
.rhg-app .rhg-shell-cup .rhg-fields{background:linear-gradient(180deg,#fff,#fff9f6)}
.rhg-app .rhg-shell-cup .rhg-field select,.rhg-app .rhg-shell-cup .rhg-field input{border-color:#ead7d1;background:#fffdfa}
.rhg-app .rhg-shell-cup .rhg-display-options{background:linear-gradient(135deg,#fff7f2,#fffdfb);border:1px solid #f0dfd9;border-radius:20px;padding:18px 18px 14px}
.rhg-app .rhg-shell-cup .rhg-setup-actions{background:linear-gradient(135deg,#fff2ed,#fffaf6);border:1px solid #f1dfd7;box-shadow:0 10px 26px rgba(161,109,101,.05)}
.rhg-app .rhg-shell-cup .rhg-filebar{background:#fff;border:1px solid #f1e3da;border-radius:18px;padding:16px 18px;border-bottom:1px solid #f1e3da}
.rhg-app .rhg-shell-cup .rhg-cup-setup-banner{margin:20px 0 8px;background:linear-gradient(135deg,#fff7f1,#fffdfc);border:1px solid #f1dfd7;border-radius:20px;padding:16px 18px;box-shadow:0 10px 24px rgba(156,106,99,.05)}
.rhg-app .rhg-shell-cup .rhg-cup-setup-pill{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#fcebe7;color:#a85e6a;font-size:11px;font-weight:800;letter-spacing:.12em;padding:7px 12px;margin-bottom:14px}
.rhg-app .rhg-shell-cup .rhg-cup-setup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rhg-app .rhg-shell-cup .rhg-cup-setup-grid>div{background:#fff;border:1px solid #f3e3dd;border-radius:16px;padding:14px 15px;display:flex;flex-direction:column;gap:6px}
.rhg-app .rhg-shell-cup .rhg-cup-setup-grid strong{font-size:13px;color:#875763}
.rhg-app .rhg-shell-cup .rhg-cup-setup-grid span{font-size:12px;color:#6f7272;line-height:1.75}

.rhg-app .rhg-cup-helper{display:inline-flex;align-items:center;justify-content:center;gap:10px;align-self:center;max-width:100%;padding:7px 14px;background:rgba(255,252,249,.92);border:1px solid #f2ddd4;border-radius:999px;color:#8a6270;font-size:12px;font-weight:700;box-shadow:0 6px 20px rgba(145,100,96,.08)}
.rhg-app .rhg-cup-helper-ball{width:16px;height:16px;border-radius:50%;flex:0 0 16px;background:radial-gradient(circle at 30% 28%,#fffaf0 0%,#ffd9b7 17%,#ec9880 42%,#cf6558 72%,#b44d53 100%);border:2px solid #b95c55;box-shadow:0 0 0 4px rgba(227,169,133,.16)}
.rhg-app .rhg-cup-track{overflow:visible}
.rhg-app .rhg-cup{overflow:visible}
.rhg-app .rhg-cup-ball{width:clamp(24px,4.2vw,38px);height:clamp(24px,4.2vw,38px);bottom:13%;z-index:4;border:2px solid #b95c55;background:radial-gradient(circle at 30% 28%,#fffef8 0%,#ffe4ca 20%,#f0a08a 44%,#d46960 72%,#b44d53 100%);box-shadow:0 8px 14px rgba(154,84,73,.26),0 0 0 5px rgba(255,242,231,.92);opacity:0;transform:translateX(-50%) translateY(2px) scale(.72);transition:opacity .22s,transform .26s ease}
.rhg-app .rhg-cup-ball-core{position:absolute;inset:0;border-radius:50%;display:block;background:radial-gradient(circle at 34% 30%,rgba(255,255,255,.95) 0 20%,transparent 22% 100%)}
.rhg-app .rhg-cup-show-ball .rhg-cup-ball{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}
.rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-58px)}
.rhg-app .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-28px)}
.rhg-app .rhg-cup-counter{margin-top:4px;background:#fffefa;border:1px solid #f0e1d9;box-shadow:0 8px 22px rgba(161,109,101,.07)}
.rhg-app .rhg-cup-picked-right{background:linear-gradient(180deg,rgba(101,166,120,.14),rgba(101,166,120,.04));border-color:#69a77e;box-shadow:0 0 0 4px rgba(105,167,126,.08)}
.rhg-app .rhg-cup-picked-wrong{background:linear-gradient(180deg,rgba(214,125,120,.14),rgba(214,125,120,.05));border-color:#d67d78;box-shadow:0 0 0 4px rgba(214,125,120,.08)}

.rhg-app .rhg-result-head--celebrate{position:relative;overflow:hidden;background:linear-gradient(180deg,#fffaf4 0%,#fff 92%);border:1px solid #f1e2d5;border-radius:24px;padding:26px 18px 34px;margin-bottom:18px;box-shadow:0 18px 40px rgba(170,116,97,.08)}
.rhg-app .rhg-confetti{pointer-events:none;position:absolute;inset:0;overflow:hidden}
.rhg-app .rhg-confetti span{position:absolute;font-size:20px;animation:rhg-fall 2.6s ease-in-out infinite;opacity:.85}
.rhg-app .rhg-confetti span:nth-child(1){left:8%;top:-2px;animation-delay:0s}
.rhg-app .rhg-confetti span:nth-child(2){left:21%;top:14px;animation-delay:.18s}
.rhg-app .rhg-confetti span:nth-child(3){left:38%;top:-4px;animation-delay:.05s}
.rhg-app .rhg-confetti span:nth-child(4){left:56%;top:10px;animation-delay:.27s}
.rhg-app .rhg-confetti span:nth-child(5){left:72%;top:-2px;animation-delay:.12s}
.rhg-app .rhg-confetti span:nth-child(6){left:84%;top:14px;animation-delay:.22s}
.rhg-app .rhg-confetti span:nth-child(7){left:93%;top:-1px;animation-delay:.34s}
@keyframes rhg-fall{0%{transform:translateY(-12px) rotate(0deg)}50%{transform:translateY(16px) rotate(12deg)}100%{transform:translateY(-12px) rotate(0deg)}}
.rhg-app .rhg-results-grid--cup{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.rhg-app .rhg-results-grid--cup>div{background:linear-gradient(180deg,#fff7f2,#fffefc);border-color:#f1e3da;box-shadow:0 8px 22px rgba(161,109,101,.05)}
.rhg-app .rhg-result-panel--cup{background:linear-gradient(180deg,#fff,#fffaf7);border-color:#f1e3da}
.rhg-app .rhg-cup-result-story{display:flex;flex-direction:column;gap:18px}
.rhg-app .rhg-cup-result-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rhg-app .rhg-cup-result-kpis>div{background:#fff7f2;border:1px solid #f2e3da;border-radius:16px;padding:15px 14px;display:flex;flex-direction:column;gap:6px}
.rhg-app .rhg-cup-result-kpis small{font-size:11px;color:#8b6c78;font-weight:800;letter-spacing:.06em}
.rhg-app .rhg-cup-result-kpis strong{font-size:20px;line-height:1.3;color:#73424d}
.rhg-app .rhg-cup-result-kpis span{font-size:12px;color:#6f7473;line-height:1.65}
.rhg-app .rhg-cup-result-timeline{display:flex;flex-direction:column;gap:10px}
.rhg-app .rhg-cup-run{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;border:1px solid #efe2da;border-radius:16px;padding:13px 14px;background:#fff}
.rhg-app .rhg-cup-run-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.rhg-app .rhg-cup-run-ok .rhg-cup-run-badge{background:#ecf7ef;color:#2d7f53}
.rhg-app .rhg-cup-run-ng .rhg-cup-run-badge{background:#fff1ef;color:#c15d58}
.rhg-app .rhg-cup-run-main{display:flex;flex-direction:column;gap:2px}
.rhg-app .rhg-cup-run-main strong{font-size:15px}
.rhg-app .rhg-cup-run-main span{font-size:12px;color:#6f7473}
.rhg-app .rhg-cup-run-meta{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.rhg-app .rhg-cup-run-meta span{font-size:12px;color:#7a5f6a;background:#fdf6f2;border:1px solid #f2e2da;border-radius:999px;padding:6px 9px;white-space:nowrap}

@media(max-width:760px){
 .rhg-app .rhg-shell-cup .rhg-cup-setup-grid{grid-template-columns:1fr}
 .rhg-app .rhg-results-grid--cup{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rhg-app .rhg-cup-result-kpis{grid-template-columns:1fr}
 .rhg-app .rhg-cup-run{grid-template-columns:1fr;justify-items:start}
 .rhg-app .rhg-cup-run-meta{justify-content:flex-start}
}
@media(max-width:590px){
 .rhg-app .rhg-cup-helper{font-size:11px;padding:5px 10px}
 .rhg-app .rhg-cup-ball{width:25px;height:25px;bottom:14%}
 .rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-38px)}
 .rhg-app .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-18px)}
}
@media(max-width:490px){
 .rhg-app .rhg-shell-cup .rhg-setup-hero{padding:14px}
 .rhg-app .rhg-results-grid--cup{grid-template-columns:1fr 1fr}
 .rhg-app .rhg-confetti span{font-size:16px}
}


/* v1.8.0 — premium visual refresh */
.rhg-app{--rhg-ink:#20383a;--rhg-muted:#617475;--rhg-accent:#2f8a77;--rhg-dark:#1d695a;--rhg-line:#dfe7e2;--rhg-line-strong:#cfdad4;--rhg-card:#ffffff;--rhg-card-soft:#f8fbf9;--rhg-stage-soft:#fbfcfb;--rhg-premium-shadow:0 18px 50px rgba(24,66,58,.10);--rhg-premium-shadow-soft:0 8px 24px rgba(24,66,58,.07)}
.rhg-app .rhg-shell{position:relative;background:radial-gradient(circle at top right,rgba(69,152,128,.08),transparent 24%),radial-gradient(circle at left 15%,rgba(226,180,114,.07),transparent 18%),linear-gradient(180deg,#fcfefd 0%,#f7fbf8 100%);border:1px solid #dfe9e3;border-radius:32px;padding:clamp(18px,3.2vw,42px);box-shadow:var(--rhg-premium-shadow);overflow:hidden}
.rhg-app .rhg-shell::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.65),transparent 26%);pointer-events:none}
.rhg-app .rhg-head{position:relative;border-bottom:1px solid #e6eeea;padding-bottom:34px;margin-bottom:2px}
.rhg-app .rhg-head [role="heading"]{letter-spacing:-.05em}
.rhg-app .rhg-head p{max-width:640px}
.rhg-app .rhg-head-art{box-shadow:0 18px 38px rgba(55,113,95,.12), inset 0 1px 0 rgba(255,255,255,.55)}
.rhg-app .rhg-search-label{background:rgba(255,255,255,.92);backdrop-filter:blur(4px);border-color:#dde8e2;box-shadow:var(--rhg-premium-shadow-soft)}
.rhg-app .rhg-game-card{position:relative;border:1px solid #dbe7e1;border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%);box-shadow:0 10px 26px rgba(25,73,62,.06);min-height:336px}
.rhg-app .rhg-game-card::after{content:"";position:absolute;inset:auto 18px 0 18px;height:1px;background:linear-gradient(90deg,transparent,#edf2ef 18%,#edf2ef 82%,transparent)}
.rhg-app .rhg-game-card:hover{transform:translateY(-6px);box-shadow:0 22px 42px rgba(24,66,58,.12);border-color:#cadbd3}
.rhg-app .rhg-game-art{position:relative;height:148px;overflow:hidden}
.rhg-app .rhg-game-art::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 22% 20%,rgba(255,255,255,.55),transparent 26%),linear-gradient(180deg,transparent,rgba(0,0,0,.02));pointer-events:none}
.rhg-app .rhg-game-art svg{width:84px;height:84px;filter:drop-shadow(0 8px 16px rgba(32,62,57,.14))}
.rhg-app .rhg-game-card[data-id="target-search"] .rhg-game-art{background:linear-gradient(145deg,#e7f4ef,#dff0eb 48%,#edf8f4)}
.rhg-app .rhg-game-card[data-id="memory-touch"] .rhg-game-art{background:linear-gradient(145deg,#eef1fb,#e6ecfb 52%,#f5f7fd)}
.rhg-app .rhg-game-card[data-id="touch-reach"] .rhg-game-art{background:linear-gradient(145deg,#e6f4f4,#ddf0f1 48%,#edf8f8)}
.rhg-app .rhg-game-card[data-id="cup-shuffle"] .rhg-game-art{background:linear-gradient(145deg,#fff0eb,#ffe7e2 50%,#fff7f5)}
.rhg-app .rhg-game-card[data-id="pair-matching"] .rhg-game-art{background:linear-gradient(145deg,#f3f5ec,#edf2e2 50%,#fafcf5)}
.rhg-app .rhg-game-card-body{padding:21px 22px 18px;gap:8px}
.rhg-app .rhg-tag{font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.rhg-app .rhg-card-arrow{margin-top:10px;padding-top:14px;color:#2d806e}
.rhg-app .rhg-setup-hero,.rhg-app .rhg-section,.rhg-app .rhg-details,.rhg-app .rhg-display-options,.rhg-app .rhg-filebar,.rhg-app .rhg-result-panel{background:linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%);border-color:#dfe7e2;box-shadow:var(--rhg-premium-shadow-soft)}
.rhg-app .rhg-setup-hero{border:1px solid #e2ebe6;border-radius:24px;padding:24px 25px}
.rhg-app .rhg-setup-icon{border:1px solid rgba(255,255,255,.8);box-shadow:0 12px 28px rgba(43,108,92,.12), inset 0 1px 0 rgba(255,255,255,.55)}
.rhg-app .rhg-section{border:1px solid #e2ebe6;border-radius:22px;padding:20px 20px 18px;margin:20px 0}
.rhg-app .rhg-section [role="heading"]{margin-bottom:14px}
.rhg-app .rhg-details{border-radius:22px;overflow:hidden}
.rhg-app .rhg-details>summary{padding:20px 22px;background:linear-gradient(180deg,#ffffff,#fbfdfc)}
.rhg-app .rhg-fields{background:linear-gradient(180deg,#fcfefd,#fafcfb)}
.rhg-app .rhg-field select,.rhg-app .rhg-field input{border-color:#d8e4de;border-radius:12px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.rhg-app .rhg-chip,.rhg-app .rhg-level{box-shadow:0 2px 6px rgba(22,65,57,.03)}
.rhg-app .rhg-chip{border-color:#dbe6e0;background:linear-gradient(180deg,#fff,#fbfdfc)}
.rhg-app .rhg-level{border-radius:16px;background:linear-gradient(180deg,#fff,#fafcfb)}
.rhg-app .rhg-setup-actions{border:1px solid #dfe8e3;background:linear-gradient(135deg,#eef7f2,#f7fbf9);box-shadow:var(--rhg-premium-shadow-soft)}
.rhg-app .rhg-primary{box-shadow:0 10px 22px rgba(35,116,96,.18)}
.rhg-app .rhg-outline{border-color:#cddbd4;background:linear-gradient(180deg,#fff,#fbfdfc)}

.rhg-app .rhg-game-stage{background:linear-gradient(180deg,#fdfefd,#f8fbf9);border:1px solid #dfe8e2;border-radius:30px;box-shadow:var(--rhg-premium-shadow);overflow:hidden}
.rhg-app .rhg-gamebar{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(247,251,248,.96));backdrop-filter:blur(8px);border-bottom:1px solid #e2ebe6;min-height:74px}
.rhg-app .rhg-tool-btn{border-color:#d8e4de;background:linear-gradient(180deg,#fff,#fbfdfc);box-shadow:0 4px 12px rgba(24,66,58,.05)}
.rhg-app .rhg-game-status{padding:clamp(12px,2.4vh,24px) clamp(8px,3vw,36px);background:linear-gradient(180deg,#fbfefd 0%,#f6faf7 100%)}
.rhg-app .rhg-prompt{font-size:clamp(19px,2.25vw,30px);letter-spacing:-.03em}
.rhg-app .rhg-statrow>div{background:linear-gradient(180deg,#fff,#fbfdfc);border:1px solid #dfe8e2;border-radius:14px;box-shadow:0 8px 18px rgba(24,66,58,.05)}
.rhg-app .rhg-playfield{position:relative;background:radial-gradient(circle at top left,rgba(255,255,255,.8),transparent 24%),linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%);border:1px solid #e4ece7;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 12px 28px rgba(25,66,58,.05);padding:clamp(10px,1.6vw,24px)}
.rhg-app .rhg-playfield::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.4),transparent 26%)}
.rhg-app .rhg-target-board,.rhg-app .rhg-memory-board{z-index:1}
.rhg-app .rhg-symbol,.rhg-app .rhg-memory-cell{border:1px solid #e1ebe6;background:linear-gradient(180deg,#fcfffd,#f1f7f4)}
.rhg-app .rhg-symbol:hover:not(:disabled),.rhg-app .rhg-memory-cell:hover:not(:disabled){background:linear-gradient(180deg,#f4fbf6,#e9f5ee)}
.rhg-app .rhg-memory-cell.rhg-lit{box-shadow:0 0 0 6px rgba(69,159,123,.12),0 12px 24px rgba(33,101,81,.12)}
.rhg-app .rhg-reach-arena{background:linear-gradient(180deg,#fbfdfc,#f4f9f6);border-radius:18px;border:1px dashed #dbe6e0}
.rhg-app .rhg-reach-target{box-shadow:0 6px 0 #26775f,0 16px 24px rgba(38,126,107,.22),inset 0 1px 0 rgba(255,255,255,.3)}
.rhg-app .rhg-ready-screen{background:linear-gradient(180deg,#fbfefd,#f6faf7);box-shadow:var(--rhg-premium-shadow)}
.rhg-app .rhg-ready-screen [role="heading"]{letter-spacing:-.04em}
.rhg-app .rhg-stage-foot{background:linear-gradient(180deg,#fbfefd,#f8fbf9);border-top:1px solid #e5eeea;padding-top:12px;padding-bottom:12px}

.rhg-app .rhg-result-head{border-radius:24px}
.rhg-app .rhg-results-grid>div{background:linear-gradient(180deg,#ffffff,#f7fbf9);border-color:#dfe8e2;box-shadow:var(--rhg-premium-shadow-soft)}
.rhg-app .rhg-sides>div,.rhg-app .rhg-compare-grid>div{background:linear-gradient(180deg,#fbfefd,#f4f9f6);border:1px solid #e1ebe5}

/* v1.8.0 — cup game premium redesign */
.rhg-app .rhg-shell-cup .rhg-setup-hero{background:radial-gradient(circle at top right,rgba(255,241,236,.9),transparent 28%),linear-gradient(180deg,#fffaf7,#fff4ef);border-color:#f0ddd5}
.rhg-app .rhg-shell-cup .rhg-section,.rhg-app .rhg-shell-cup .rhg-details,.rhg-app .rhg-shell-cup .rhg-display-options,.rhg-app .rhg-shell-cup .rhg-filebar,.rhg-app .rhg-shell-cup .rhg-result-panel{border-color:#f0dfd7}
.rhg-app .rhg-shell-cup .rhg-section{background:linear-gradient(180deg,#fffdfc,#fff8f5)}
.rhg-app .rhg-shell-cup .rhg-display-options{background:linear-gradient(180deg,#fffaf7,#fffdfc)}
.rhg-app .rhg-stage--cup{background:radial-gradient(circle at top right,rgba(255,236,229,.7),transparent 22%),linear-gradient(180deg,#fffaf8,#fff6f1);border-color:#eedfd8}
.rhg-app .rhg-stage--cup .rhg-gamebar{background:linear-gradient(180deg,rgba(255,253,251,.96),rgba(255,247,242,.96));border-bottom-color:#f0e2da}
.rhg-app .rhg-stage--cup .rhg-game-status{background:linear-gradient(180deg,#fffdfb,#fff7f3)}
.rhg-app .rhg-stage--cup .rhg-statrow>div{background:linear-gradient(180deg,#fff,#fff9f6);border-color:#efe1da}
.rhg-app .rhg-stage--cup .rhg-playfield{background:radial-gradient(circle at top left,rgba(255,255,255,.9),transparent 24%),linear-gradient(180deg,#fffdfa,#fff8f4);border-color:#f0e2da}
.rhg-app .rhg-cup-scene{width:min(100%,880px);gap:14px}
.rhg-app .rhg-cup-scene-head{padding:0 clamp(8px,2vw,24px);font-size:11px;color:#8b6471}
.rhg-app .rhg-cup-label{display:inline-flex;align-items:center;gap:8px;font-size:15px;letter-spacing:.02em}
.rhg-app .rhg-cup-round{background:#fff7f3;border:1px solid #efd9d1;border-radius:999px;padding:8px 14px;color:#8c6771;box-shadow:0 4px 14px rgba(145,100,96,.06)}
.rhg-app .rhg-cup-helper{padding:9px 18px;background:linear-gradient(180deg,#fffdfc,#fff5f1);border-color:#efdcd4;box-shadow:0 12px 26px rgba(145,100,96,.08)}
.rhg-app .rhg-cup-track{position:relative;min-height:170px;height:clamp(180px,32vh,320px);padding:18px 18px 34px;border-radius:30px;background:linear-gradient(180deg,#fff7f3 0%,#fffdfc 34%,#f7efe6 35%,#f2e4d7 100%);border:1px solid #efd8ca;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 22px 40px rgba(166,112,94,.08)}
.rhg-app .rhg-cup-track::before{content:"";position:absolute;left:0;right:0;top:0;height:36%;background:radial-gradient(circle at 18% 24%,rgba(255,255,255,.55),transparent 24%),radial-gradient(circle at 82% 18%,rgba(255,255,255,.45),transparent 20%),linear-gradient(180deg,#fdf7f4,#fbf1ea);border-radius:30px 30px 0 0;z-index:0}
.rhg-app .rhg-cup-track::after{content:"";position:absolute;left:7%;right:7%;bottom:15%;height:18%;border-radius:28px;background:linear-gradient(180deg,rgba(214,182,157,.06),rgba(182,144,116,.16));box-shadow:0 -1px 0 rgba(255,255,255,.55) inset;z-index:0}
.rhg-app .rhg-cup{bottom:5%;height:84%;padding-bottom:6px}
.rhg-app .rhg-cup-shape{width:min(96%,168px);height:min(100%,218px);filter:drop-shadow(0 18px 16px rgba(121,88,78,.12));z-index:3}
.rhg-app .rhg-cup-ball{width:clamp(27px,4.3vw,40px);height:clamp(27px,4.3vw,40px);bottom:15%;left:50%;opacity:0;z-index:2;border:2px solid #bf6159;background:radial-gradient(circle at 32% 28%,#fffefb 0 16%,#ffe8d1 20%,#f5b69d 42%,#dc7564 70%,#bd5a55 100%);box-shadow:0 10px 16px rgba(167,89,77,.24),0 3px 0 rgba(255,255,255,.75) inset}
.rhg-app .rhg-cup-ball::after{content:"";position:absolute;left:18%;right:18%;bottom:-8px;height:9px;border-radius:50%;background:rgba(146,98,83,.18);filter:blur(2px);z-index:-1}
.rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-82px)}
.rhg-app .rhg-cup-show-ball .rhg-cup-ball{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}
.rhg-app .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-34px)}
.rhg-app .rhg-cup-swapping-down .rhg-cup-shape{transform:translateY(10px)}
.rhg-app .rhg-cup-picked-right{background:linear-gradient(180deg,rgba(101,166,120,.10),rgba(101,166,120,.03));border-color:#69a77e;border-radius:24px}
.rhg-app .rhg-cup-picked-wrong{background:linear-gradient(180deg,rgba(214,125,120,.10),rgba(214,125,120,.03));border-color:#d67d78;border-radius:24px}
.rhg-app .rhg-cup-counter{min-height:40px;padding:10px 14px;background:linear-gradient(180deg,#fffefc,#fff8f5);border:1px solid #f0dfd7;border-radius:999px;box-shadow:0 12px 24px rgba(145,100,96,.08)}
.rhg-app .rhg-results-grid--cup>div,.rhg-app .rhg-cup-result-kpis>div{background:linear-gradient(180deg,#fffdfc,#fff7f3);border-color:#efe1d8}
.rhg-app .rhg-cup-run{background:linear-gradient(180deg,#ffffff,#fffaf7);border-color:#f0dfd7;box-shadow:0 8px 18px rgba(145,100,96,.05)}

@media(max-width:760px){
 .rhg-app .rhg-shell{border-radius:22px}
 .rhg-app .rhg-game-card{border-radius:18px}
 .rhg-app .rhg-setup-hero,.rhg-app .rhg-section,.rhg-app .rhg-details,.rhg-app .rhg-result-panel{border-radius:18px}
 .rhg-app .rhg-game-stage{border-radius:22px}
 .rhg-app .rhg-cup-track{border-radius:22px;padding:14px 10px 24px;height:clamp(170px,30vh,260px)}
 .rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-58px)}
 .rhg-app .rhg-cup{bottom:4%}
}
@media(max-width:490px){
 .rhg-app .rhg-game-card{box-shadow:0 8px 18px rgba(25,73,62,.05)}
 .rhg-app .rhg-game-art{height:auto;min-height:154px}
 .rhg-app .rhg-cup-scene{gap:10px}
 .rhg-app .rhg-cup-label{font-size:13px}
 .rhg-app .rhg-cup-round{padding:6px 10px;font-size:11px}
 .rhg-app .rhg-cup-helper{font-size:11px;padding:7px 10px}
 .rhg-app .rhg-cup-track{height:clamp(160px,28vh,220px);padding:10px 6px 16px}
 .rhg-app .rhg-cup-shape{width:min(98%,132px);height:min(100%,182px)}
 .rhg-app .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-42px)}
 .rhg-app .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-20px)}
 .rhg-app .rhg-cup-ball{bottom:13%;width:26px;height:26px}
}

/* v1.9.0: predictable ball layer and accessible, cohesive controls */
.rhg-app{
  --rhg-ink:#172f34;
  --rhg-muted:#466167;
  --rhg-accent:#176c61;
  --rhg-dark:#105047;
  --rhg-line:#ccdcd6;
  --rhg-shadow:0 16px 36px rgba(26,62,57,.10);
  color:var(--rhg-ink);
  line-height:1.65;
}
.rhg-app :where(button,input,select,summary){-webkit-tap-highlight-color:transparent}
.rhg-app :where(button,input,select,summary):focus-visible{outline:3px solid #b16d36!important;outline-offset:3px!important}
.rhg-app button:not(:disabled){touch-action:manipulation}
.rhg-app .rhg-eyebrow,.rhg-app .rhg-tag,.rhg-app .rhg-stage-kicker{color:#176c61}
.rhg-app .rhg-head p,.rhg-app .rhg-setup-hero p,.rhg-app .rhg-help,.rhg-app .rhg-display-help,.rhg-app .rhg-footnote{color:#466167}
.rhg-app .rhg-count{color:#466167;font-size:13px;font-weight:700}
.rhg-app .rhg-game-card-body>span:nth-child(3){color:#49636a;font-size:13px;line-height:1.75}
.rhg-app .rhg-game-card-body strong{color:#19343a;font-size:19px}
.rhg-app .rhg-card-arrow{color:#125d52;font-size:13px!important;font-weight:800}
.rhg-app .rhg-search-label{border:1.5px solid #c3d9cf}
.rhg-app .rhg-search-label input{font-size:15px;min-height:50px;color:#172f34}
.rhg-app .rhg-search-label input::placeholder{color:#617579}
.rhg-app .rhg-chip,.rhg-app .rhg-level{color:#294c50;border:1.5px solid #c6d8d1;box-shadow:0 2px 5px rgba(27,70,60,.03);transition:background-color .14s,border-color .14s,box-shadow .14s}
.rhg-app .rhg-level{min-height:76px;font-size:15px;font-weight:800}
.rhg-app .rhg-chip{min-height:50px;font-size:14px;font-weight:750}
.rhg-app .rhg-chip:hover,.rhg-app .rhg-level:hover{border-color:#579888;background:#f2faf5}
.rhg-app .rhg-chip.rhg-chip-active,.rhg-app .rhg-level.rhg-selected{background:#d5eee4;border:2px solid #176c61;color:#0f4d43;box-shadow:0 0 0 2px rgba(23,108,97,.09) inset}
.rhg-app .rhg-field{font-size:14px;gap:8px;color:#264a50}
.rhg-app .rhg-field select,.rhg-app .rhg-field input{min-height:52px;background:#fff;border:1.5px solid #bfcfc8;color:#18353a;font-size:16px}
.rhg-app .rhg-toggle{min-height:52px;font-size:14px;color:#25494f}
.rhg-app .rhg-toggle input{accent-color:#176c61;width:21px;height:21px;flex:0 0 21px}
.rhg-app .rhg-display-choice{border:1.5px solid #c5d7cf;min-height:76px}
.rhg-app .rhg-display-choice strong{font-size:15px;color:#18383d}
.rhg-app .rhg-display-choice em{font-size:13px;color:#49636a}
.rhg-app .rhg-display-choice-active{border:2px solid #176c61;background:#e3f4eb;box-shadow:0 0 0 2px rgba(23,108,97,.07) inset}
.rhg-app .rhg-start-summary span{font-size:13px;color:#45616a}
.rhg-app .rhg-primary,.rhg-app .rhg-outline{min-height:54px;padding:13px 20px;border-radius:14px;font-size:15px;font-weight:800}
.rhg-app .rhg-primary{background:#176c61;border-color:#176c61;color:#fff}
.rhg-app .rhg-primary:hover{background:#105047;border-color:#105047;color:#fff}
.rhg-app .rhg-outline{background:#fff;border:1.5px solid #97b7a9;color:#174941}
.rhg-app .rhg-outline:hover{background:#edf8f2;border-color:#4d907a}
.rhg-app .rhg-tool-btn{min-width:48px;min-height:48px;color:#1b4349;border:1.5px solid #c6d8d2;font-weight:800}
.rhg-app .rhg-tool-end{color:#9b3838;border-color:#e6bdb9}
.rhg-app .rhg-game-status{gap:13px}
.rhg-app .rhg-prompt{color:#19383c;line-height:1.45}
.rhg-app .rhg-statrow>div{border:1.5px solid #d2dfd9;min-width:110px}
.rhg-app .rhg-statrow small{font-size:12px;color:#49656a;font-weight:800}
.rhg-app .rhg-statrow strong{font-size:18px;color:#18393f}
.rhg-app .rhg-stage-foot{font-size:13px;color:#48636a}
.rhg-app .rhg-results-grid>div{border:1.5px solid #d5e4dd}
.rhg-app .rhg-results-grid small{color:#3c625e;font-size:13px;font-weight:800}
.rhg-app .rhg-results-grid strong{color:#17383c;font-size:clamp(23px,3.5vw,36px)}
.rhg-app .rhg-results-grid span{font-size:12px;color:#49646a}
.rhg-app .rhg-result-panel [role="heading"]{font-size:18px!important;color:#19363b!important}
.rhg-app .rhg-mini-list>div{font-size:14px;gap:10px}
.rhg-app .rhg-mini-list span{color:#516a6e}
.rhg-app .rhg-sides>div,.rhg-app .rhg-compare-grid>div{background:#f3faf5}
.rhg-app .rhg-compare-grid small{color:#4b6668;font-size:12px}
.rhg-app .rhg-cup-result-kpis small{color:#77515a;font-size:12px}
.rhg-app .rhg-cup-result-kpis strong{color:#653d4a;font-size:clamp(19px,2.3vw,25px)}
.rhg-app .rhg-cup-result-kpis span,.rhg-app .rhg-cup-run-main span{color:#516167;font-size:13px}
.rhg-app .rhg-cup-run-meta span{color:#695158}

/* The table ball is an independent sibling of all cups. The full-screen view can
   never bury it inside a cup's stacking context or its scaled illustration. */
.rhg-app .rhg-stage--cup .rhg-cup-track{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(180deg,#fff8f3 0%,#fffdfa 34%,#f8efe6 35%,#f0dfd0 100%)}
.rhg-app .rhg-stage--cup .rhg-cup-track::before{z-index:0;pointer-events:none}
.rhg-app .rhg-stage--cup .rhg-cup-track::after{z-index:0;pointer-events:none}
.rhg-app .rhg-stage--cup .rhg-cup{z-index:2;isolation:auto}
.rhg-app .rhg-stage--cup .rhg-cup-shape{z-index:3}
.rhg-app .rhg-stage--cup .rhg-cup-table-ball{
  position:absolute;
  left:calc((var(--rhg-ball-slot,1) + .5) * 33.333333%);
  bottom:17%;
  width:clamp(34px,4.6vw,48px);
  height:clamp(34px,4.6vw,48px);
  display:block;
  transform:translateX(-50%);
  pointer-events:none;
  z-index:12;
  border:2px solid #a6423c;
  border-radius:50%;
  background:radial-gradient(circle at 30% 25%,#fffdf6 0 10%,#ffd9bc 15%,#f5a17e 38%,#df6a53 65%,#b94143 100%);
  box-shadow:0 10px 13px rgba(124,74,61,.27),inset 0 -3px 4px rgba(128,43,48,.18),0 0 0 3px rgba(255,249,241,.55);
}
.rhg-app .rhg-stage--cup .rhg-cup-table-ball[hidden]{display:none!important}
.rhg-app .rhg-stage--cup .rhg-cup-table-ball::after{
  content:"";position:absolute;left:18%;right:18%;bottom:-11px;height:8px;border-radius:50%;
  background:rgba(111,72,55,.26);filter:blur(3px);
}
.rhg-app .rhg-stage--cup .rhg-cup-table-ball-gloss{position:absolute;top:14%;left:18%;width:25%;height:20%;border-radius:50%;background:rgba(255,255,255,.94);filter:blur(.5px)}
.rhg-app .rhg-stage--cup .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-90px)}
.rhg-app .rhg-stage--cup .rhg-cup-swapping-up .rhg-cup-shape{transform:translateY(-30px)}
.rhg-app .rhg-stage--cup .rhg-cup-helper{color:#6a4054;border:1.5px solid #e8c9c2;font-size:13px;max-width:100%}
.rhg-app .rhg-stage--cup .rhg-cup-counter{font-size:14px;color:#714351;border:1.5px solid #ebd5ce}
.rhg-app .rhg-stage--cup .rhg-cup-track{max-width:100%;height:clamp(210px,40dvh,385px);flex:0 0 auto;min-height:0;border:1.5px solid #e6cfc0}
.rhg-app .rhg-stage--cup .rhg-cup-scene{max-height:100%;height:auto;min-height:0;gap:10px}
.rhg-app .rhg-stage--cup .rhg-cup-scene-head{color:#7b4b5b}
.rhg-app .rhg-stage--cup .rhg-cup-round{font-size:12px;font-weight:800;color:#754957}
.rhg-app .rhg-stage--cup .rhg-cup-label{color:#834d61}
.rhg-app .rhg-stage--cup .rhg-game-status{background:#fff9f5}
.rhg-app .rhg-stage--cup .rhg-prompt{color:#402d36}
.rhg-app .rhg-stage--cup .rhg-statrow strong{color:#3e3439}

@media(max-width:760px){
  .rhg-app .rhg-game-card-body strong{font-size:17px}
  .rhg-app .rhg-chip{min-height:48px}
  .rhg-app .rhg-stage--cup .rhg-cup-track{height:clamp(190px,39dvh,330px)}
  .rhg-app .rhg-stage--cup .rhg-cup-table-ball{bottom:15%;width:clamp(30px,9vw,38px);height:clamp(30px,9vw,38px)}
  .rhg-app .rhg-stage--cup .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-63px)}
}
@media(max-width:490px){
  .rhg-app .rhg-shell{padding:14px;border-radius:18px}
  .rhg-app .rhg-setup-hero{padding:15px}
  .rhg-app .rhg-section{padding:14px;margin:15px 0}
  .rhg-app .rhg-level{min-height:68px}
  .rhg-app .rhg-game-status{padding:10px 6px}
  .rhg-app .rhg-statrow>div{min-width:0;padding:8px}
  .rhg-app .rhg-statrow small{font-size:11px}
  .rhg-app .rhg-statrow strong{font-size:15px}
  .rhg-app .rhg-stage--cup .rhg-cup-track{height:clamp(184px,34dvh,280px);border-radius:19px}
  .rhg-app .rhg-stage--cup .rhg-cup-table-ball{bottom:13%;width:30px;height:30px}
  .rhg-app .rhg-stage--cup .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-47px)}
  .rhg-app .rhg-stage--cup .rhg-cup-helper{font-size:11px;padding:7px 10px;line-height:1.45}
  .rhg-app .rhg-stage--cup .rhg-cup-counter{font-size:12px}
  .rhg-app .rhg-results-grid>div{padding:13px 5px}
  .rhg-app .rhg-results-grid small{font-size:11px}
  .rhg-app .rhg-results-grid strong{font-size:clamp(19px,5vw,25px)}
}
@media(max-height:590px){
  .rhg-app .rhg-stage--cup .rhg-cup-track{height:clamp(130px,31dvh,230px)}
  .rhg-app .rhg-stage--cup .rhg-cup-table-ball{width:29px;height:29px;bottom:12%}
  .rhg-app .rhg-stage--cup .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-38px)}
}
@media(prefers-reduced-motion:reduce){
 .rhg-app .rhg-confetti span{animation:none!important}
 .rhg-app .rhg-game-card,.rhg-app .rhg-primary,.rhg-app .rhg-outline{transition:none}
 /* Cup position-swaps retain visible motion: tracking them is the exercise. */
}

/* Compact portrait screens: keep the entire cup board and labels within view. */
@media(max-width:390px) and (max-height:720px){
  .rhg-app .rhg-stage--cup .rhg-gamebar{min-height:52px}
  .rhg-app .rhg-stage--cup .rhg-game-status{padding:7px 5px;gap:5px}
  .rhg-app .rhg-stage--cup .rhg-prompt{font-size:16px;line-height:1.35}
  .rhg-app .rhg-stage--cup .rhg-playfield{padding:6px 5px;margin:0 6px;overflow-y:auto;align-items:safe center;justify-content:safe center}
  .rhg-app .rhg-stage--cup .rhg-cup-scene{gap:5px;min-height:0;width:100%;max-height:none}
  .rhg-app .rhg-stage--cup .rhg-cup-scene-head{padding:0 4px;gap:4px}
  .rhg-app .rhg-stage--cup .rhg-cup-label{font-size:11px;gap:4px}
  .rhg-app .rhg-stage--cup .rhg-cup-round{font-size:10px;padding:3px 7px}
  .rhg-app .rhg-stage--cup .rhg-cup-helper{font-size:10px;min-height:0;padding:5px 8px;line-height:1.35}
  .rhg-app .rhg-stage--cup .rhg-cup-track{height:158px;min-height:158px;flex:0 0 158px;padding:4px;border-radius:14px}
  .rhg-app .rhg-stage--cup .rhg-cup-shape{height:min(100%,125px)}
  .rhg-app .rhg-stage--cup .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-35px)}
  .rhg-app .rhg-stage--cup .rhg-cup-table-ball{bottom:10%;width:27px;height:27px}
  .rhg-app .rhg-stage--cup .rhg-cup-counter{min-height:28px;padding:4px 6px;font-size:11px;line-height:1.25}
  .rhg-app .rhg-stage--cup .rhg-stage-foot{min-height:37px;padding:5px 8px;font-size:11px}
}

/* v2.0.0 — Numerical order touch / exclusive UI, themes scoped to new game. */
.rhg-app .rhg-game-card[data-id="number-sequence"] .rhg-game-art{background:linear-gradient(135deg,#e6f2ef,#d5e9e6)}
.rhg-app .rhg-shell-sequence .rhg-setup-icon{background:linear-gradient(145deg,#e4f2ee,#d5e7e3);color:#286b69}
.rhg-app .rhg-stage--sequence{background:linear-gradient(180deg,#f8fcfb,#edf6f3)}
.rhg-app .rhg-stage--sequence .rhg-gamebar{background:#fafdfe}
.rhg-app .rhg-stage--sequence .rhg-playfield{align-items:stretch;justify-content:stretch;padding:clamp(7px,1.4vw,19px);background:radial-gradient(circle at 5% 5%,rgba(137,191,183,.12),transparent 30%),#f8fcfa;overflow:hidden}
.rhg-app .rhg-seq-scene{display:flex;flex-direction:column;gap:13px;width:100%;height:100%;min-height:0;max-width:1100px;margin:auto;position:relative;z-index:1}
.rhg-app .rhg-seq-instructions{display:flex;align-items:center;gap:13px;flex:0 0 auto;background:linear-gradient(110deg,#f0f8f4,#ffffff);border:1px solid #d9e9e2;border-radius:20px;padding:11px 17px;box-shadow:0 7px 20px rgba(30,103,85,.055)}
.rhg-app .rhg-seq-next{display:flex;align-items:center;gap:10px;padding-right:17px;border-right:1px solid #cddfd7}
.rhg-app .rhg-seq-next span{font-size:11px;font-weight:700;color:#50796e;white-space:nowrap}
.rhg-app .rhg-seq-next strong{background:#176c5a;color:white;border-radius:13px;min-width:46px;padding:2px 10px;min-height:44px;display:grid;place-items:center;font-size:25px;line-height:1.2;font-variant-numeric:tabular-nums}
.rhg-app .rhg-seq-information{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.rhg-app .rhg-seq-information strong{font-size:14px;line-height:1.3;color:#27413d}
.rhg-app .rhg-seq-information span{font-size:11px;color:#687f78}
.rhg-app .rhg-seq-remaining{background:#fff;border:1px solid #dae8e1;padding:6px 12px;border-radius:999px;font-size:12px;color:#476d64;white-space:nowrap}
.rhg-app .rhg-seq-remaining strong{font-size:17px;color:#166857}
.rhg-app .rhg-seq-scroll{width:100%;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b2cec4 transparent;border-radius:20px;padding:clamp(9px,1.8vw,22px);background:linear-gradient(180deg,#ffffff,#f8fbf9);border:1px solid #dfeae4;box-shadow:inset 0 2px 7px rgba(38,86,68,.024)}
.rhg-app .rhg-seq-board{--rhg-seq-cols:4;display:grid;grid-template-columns:repeat(var(--rhg-seq-cols),minmax(0,1fr));grid-auto-rows:minmax(68px,1fr);gap:clamp(8px,1.4vw,16px);max-width:1000px;min-height:100%;width:100%;margin:0 auto;align-content:center}
.rhg-app .rhg-seq-board-many{align-content:start;grid-auto-rows:minmax(70px,auto)}
.rhg-app .rhg-seq-tile{position:relative;min-width:0;min-height:68px;display:grid;place-items:center;overflow:hidden;border:1.5px solid #d5e4de;border-radius:17px;background:linear-gradient(155deg,#ffffff,#edf5f2);box-shadow:0 4px 0 #d6e6de,0 10px 18px rgba(31,83,75,.055);color:#225d5c;padding:6px 3px;transition:background .16s,transform .13s,border-color .16s;touch-action:manipulation;isolation:isolate}
.rhg-app .rhg-seq-tile:not(:disabled):hover{background:linear-gradient(155deg,#f0faf5,#dff2e9);border-color:#73aa96;transform:translateY(-2px)}
.rhg-app .rhg-seq-tile:not(:disabled):active{transform:translateY(2px);box-shadow:0 2px 0 #d6e6de}
.rhg-app .rhg-seq-tile-text{font-size:clamp(27px,4.2vmin,49px);font-weight:850;line-height:1;letter-spacing:-.05em;color:var(--seq-ink,#245b62);display:block;transform:translateX(var(--seq-shift,0px)) rotate(var(--seq-rotate,0deg)) scale(var(--seq-scale,1));transform-origin:center;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums}
.rhg-app .rhg-seq-distractor{background:linear-gradient(160deg,#fffaf5,#f9f1e7);border-color:#ecdcca}
.rhg-app .rhg-seq-distractor .rhg-seq-tile-text{font-size:clamp(27px,4.2vmin,48px);font-weight:650;opacity:.87}
.rhg-app .rhg-seq-done{background:#e1f0e9;border-color:#a8cfbd;box-shadow:none;opacity:.65;cursor:default}
.rhg-app .rhg-seq-done .rhg-seq-tile-text{color:#2a8a62;font-weight:800;font-size:25px;transform:none}
.rhg-app .rhg-seq-hinted{border-color:#e5a84c!important;box-shadow:0 0 0 4px rgba(229,168,76,.24)!important;animation:rhg-seq-hint .8s ease-in-out infinite alternate}
.rhg-app .rhg-seq-wrong{border-color:#c15c58!important;background:#fff0ed!important;animation:rhg-seq-shake .25s ease-in-out}
@keyframes rhg-seq-hint{to{box-shadow:0 0 0 7px rgba(229,168,76,.13)}}
@keyframes rhg-seq-shake{0%,100%{translate:0}25%{translate:-3px}75%{translate:3px}}
.rhg-app .rhg-seq-caption{flex:0 0 auto;text-align:center;font-size:11px;color:#638179;line-height:1.5}
.rhg-app .rhg-seq-result-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
.rhg-app .rhg-seq-result-summary>div{display:flex;flex-direction:column;gap:6px;background:linear-gradient(180deg,#f2f9f5,#fff);border:1px solid #dce8e1;border-radius:16px;padding:15px 13px}
.rhg-app .rhg-seq-result-summary small{font-size:11px;color:#5d7770;font-weight:750}
.rhg-app .rhg-seq-result-summary strong{font-size:clamp(18px,2.5vw,26px);color:#245649;font-variant-numeric:tabular-nums}
.rhg-app .rhg-seq-runs{display:flex;flex-direction:column;gap:9px;margin-bottom:16px}
.rhg-app .rhg-seq-run{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fff;border:1px solid #e0ebe5;border-radius:12px;padding:13px 16px;font-size:12px;color:#617971;flex-wrap:wrap}
.rhg-app .rhg-seq-run strong{font-size:14px;color:#254a42}
@media(max-width:760px){
 .rhg-app .rhg-seq-instructions{gap:8px;padding:8px 10px;border-radius:12px}
 .rhg-app .rhg-seq-next{gap:5px;padding-right:8px}
 .rhg-app .rhg-seq-next span{font-size:10px}
 .rhg-app .rhg-seq-next strong{font-size:20px;min-width:34px;min-height:36px;border-radius:8px;padding:3px 7px}
 .rhg-app .rhg-seq-remaining{font-size:10px;padding:4px 7px}
 .rhg-app .rhg-seq-information strong{font-size:12px}
 .rhg-app .rhg-seq-information span{font-size:10px}
 .rhg-app .rhg-seq-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:490px){
 .rhg-app .rhg-stage--sequence .rhg-gamebar{min-height:52px}
 .rhg-app .rhg-stage--sequence .rhg-game-status{padding:8px 6px}
 .rhg-app .rhg-stage--sequence .rhg-prompt{font-size:18px}
 .rhg-app .rhg-stage--sequence .rhg-playfield{padding:5px;margin:0 5px}
 .rhg-app .rhg-seq-scene{gap:7px}
 .rhg-app .rhg-seq-instructions{gap:6px;flex-wrap:wrap}
 .rhg-app .rhg-seq-remaining{margin-left:auto}
 .rhg-app .rhg-seq-next span{font-size:9px}
 .rhg-app .rhg-seq-information{flex-basis:110px}
 .rhg-app .rhg-seq-information strong{font-size:11px}
 .rhg-app .rhg-seq-scroll{padding:8px;border-radius:11px}
 .rhg-app .rhg-seq-board{grid-template-columns:repeat(min(var(--rhg-seq-cols),4),minmax(0,1fr));gap:7px;grid-auto-rows:minmax(65px,auto);align-content:start}
 .rhg-app .rhg-seq-tile{min-height:65px;border-radius:11px;padding:4px 2px}
 .rhg-app .rhg-seq-tile-text{font-size:clamp(24px,7.8vw,38px)}
 .rhg-app .rhg-seq-distractor .rhg-seq-tile-text{font-size:clamp(24px,7vw,35px)}
 .rhg-app .rhg-seq-caption{font-size:10px}
 .rhg-app .rhg-seq-result-summary>div{padding:12px 10px}
}
@media(max-height:610px){
 .rhg-app .rhg-stage--sequence .rhg-game-status{padding:6px 8px}
 .rhg-app .rhg-seq-instructions{padding:5px 8px}
 .rhg-app .rhg-seq-scene{gap:6px}
 .rhg-app .rhg-seq-tile{min-height:54px}
 .rhg-app .rhg-seq-board{grid-auto-rows:minmax(54px,auto)}
}
@media(prefers-reduced-motion:reduce){.rhg-app .rhg-seq-tile,.rhg-app .rhg-seq-hinted,.rhg-app .rhg-seq-wrong{animation:none!important;transition:none!important}}
/* Keep the game message and Hint control readable on narrow devices. */
.rhg-app .rhg-stage--sequence .rhg-stage-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px}
.rhg-app .rhg-stage--sequence .rhg-stage-foot>span{min-width:0;overflow-wrap:anywhere;line-height:1.5}
.rhg-app .rhg-stage--sequence .rhg-hint-btn{white-space:nowrap;min-width:112px;min-height:44px;padding:8px 12px;line-height:1.3;flex-shrink:0}
@media(max-width:359px){
 .rhg-app .rhg-seq-information{display:none}
 .rhg-app .rhg-seq-instructions{flex-wrap:nowrap;justify-content:space-between}
 .rhg-app .rhg-stage--sequence .rhg-stage-foot{gap:6px;padding:7px 8px}
 .rhg-app .rhg-stage--sequence .rhg-hint-btn{min-width:100px;font-size:11px}
}

/* Ver.2.2.0 | 数字さがし・自由配置 (no cards or grid lines) */
.rhg-app .rhg-game-card[data-id="number-scatter"] .rhg-game-art{background:linear-gradient(145deg,#e9f3ee,#d9ece6 54%,#e9f4ef)}
.rhg-app .rhg-shell-scatter .rhg-setup-icon{background:linear-gradient(140deg,#e9f3e8,#d6e9df);color:#286d5b}
.rhg-app .rhg-stage--scatter{background:#f7fbf8}
.rhg-app .rhg-stage--scatter .rhg-playfield{align-items:stretch;justify-content:stretch;overflow:hidden;padding:clamp(6px,1.3vw,16px);margin:0 clamp(1px,2vw,22px);background:linear-gradient(145deg,#fbfdfb,#f1f7f3)}
.rhg-app .rhg-scatter-scene{width:100%;max-width:1150px;margin:0 auto;min-height:0;height:100%;display:flex;flex-direction:column;gap:11px;position:relative;z-index:1}
.rhg-app .rhg-scatter-toolbar{background:linear-gradient(125deg,#eef6ef,#fff);border:1px solid #dbe8df;box-shadow:0 8px 22px rgba(31,85,68,.05);padding:9px 14px;border-radius:17px;display:flex;align-items:center;gap:15px;flex:0 0 auto}
.rhg-app .rhg-scatter-next{display:flex;align-items:center;gap:10px;border-right:1px solid #d8e6de;padding-right:16px}
.rhg-app .rhg-scatter-next small{color:#516e64;font-size:11px;font-weight:750;white-space:nowrap}
.rhg-app .rhg-scatter-next strong{background:#237c66;color:#fff;font-size:28px;min-width:52px;min-height:48px;display:grid;place-items:center;border-radius:13px;font-variant-numeric:tabular-nums;line-height:1}
.rhg-app .rhg-scatter-guide{display:flex;flex-direction:column;flex:1;gap:3px}
.rhg-app .rhg-scatter-guide strong{font-size:14px;line-height:1.3;color:#24443b}
.rhg-app .rhg-scatter-guide span{font-size:11px;color:#536f66}
.rhg-app .rhg-scatter-remaining{white-space:nowrap;font-size:12px;color:#43685a;background:#f9fffb;border:1px solid #d9e9df;border-radius:999px;padding:6px 13px}
.rhg-app .rhg-scatter-remaining strong{font-size:18px;color:#1d7058}
.rhg-app .rhg-scatter-scroll{flex:1;min-height:0;width:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;border-radius:21px;border:1px solid #d9e7df;background:linear-gradient(150deg,#fffdf8 0%,#f7fbf6 46%,#eaf5f0 100%);scrollbar-width:thin;scrollbar-color:#afc9b9 #f3faf5;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 12px 27px rgba(41,95,75,.055)}
.rhg-app .rhg-scatter-board{position:relative;width:100%;min-height:100%;background:radial-gradient(circle at 8% 13%,rgba(216,236,225,.45),transparent 23%),radial-gradient(circle at 95% 85%,rgba(224,235,218,.38),transparent 20%);isolation:isolate}
.rhg-app .rhg-scatter-board::before{content:"";pointer-events:none;position:absolute;inset:9px;border:1px dashed rgba(77,125,102,.09);border-radius:13px}
.rhg-app .rhg-scatter-token{position:absolute;width:clamp(60px,6vw,76px);height:clamp(60px,6vw,76px);min-width:0;min-height:0;transform:translate(-50%,-50%);background:transparent!important;border:2px solid transparent!important;border-radius:50%;box-shadow:none!important;padding:0;display:grid;place-items:center;z-index:2;touch-action:manipulation;color:var(--scatter-color,#23554b);transition:background .14s ease,border-color .14s ease;line-height:1}
.rhg-app .rhg-scatter-token>span{font-size:clamp(27px,3.7vw,44px);font-weight:850;color:var(--scatter-color,#23554b);transform:rotate(var(--scatter-angle,0deg)) scale(var(--scatter-size,1));font-variant-numeric:lining-nums tabular-nums;white-space:nowrap;line-height:1.25;letter-spacing:-.04em;user-select:none;pointer-events:none;text-shadow:0 1px 0 rgba(255,255,255,.7)}
.rhg-app .rhg-scatter-token:not(:disabled):hover,.rhg-app .rhg-scatter-token:not(:disabled):focus-visible{border-color:#91c6ad!important;background:rgba(211,239,221,.58)!important;outline-offset:1px}
.rhg-app .rhg-scatter-token:not(:disabled):active{background:rgba(193,227,209,.65)!important}
.rhg-app .rhg-scatter-decoy>span{color:#a3695c;font-weight:720;opacity:.9}
.rhg-app .rhg-scatter-done>span{transform:none;color:#2c8a66;font-size:27px;text-shadow:none}
.rhg-app .rhg-scatter-done{opacity:.65;cursor:default}
.rhg-app .rhg-scatter-token.rhg-seq-hinted{border-color:#daa24b!important;background:rgba(255,235,187,.52)!important}
.rhg-app .rhg-scatter-token.rhg-seq-wrong{border-color:#c65f59!important;background:rgba(254,223,217,.65)!important}
.rhg-app .rhg-scatter-caption{text-align:center;flex:0 0 auto;color:#4f7769;font-size:11px;line-height:1.5;padding:1px 6px}
@media(max-width:760px){
 .rhg-app .rhg-scatter-toolbar{padding:7px 9px;gap:8px;border-radius:12px}
 .rhg-app .rhg-scatter-next{gap:6px;padding-right:8px}
 .rhg-app .rhg-scatter-next small{font-size:10px}
 .rhg-app .rhg-scatter-next strong{min-width:40px;min-height:39px;font-size:23px}
 .rhg-app .rhg-scatter-guide strong{font-size:11px}
 .rhg-app .rhg-scatter-guide span{font-size:10px}
 .rhg-app .rhg-scatter-remaining{font-size:10px;padding:5px 8px}
 .rhg-app .rhg-scatter-remaining strong{font-size:16px}
 .rhg-app .rhg-scatter-token{width:64px;height:64px}
 .rhg-app .rhg-scatter-token>span{font-size:clamp(27px,8vw,37px)}
}
@media(max-width:490px){
 .rhg-app .rhg-stage--scatter .rhg-gamebar{min-height:52px}
 .rhg-app .rhg-stage--scatter .rhg-game-status{padding:8px 6px}
 .rhg-app .rhg-stage--scatter .rhg-prompt{font-size:18px}
 .rhg-app .rhg-stage--scatter .rhg-playfield{margin:0 5px;padding:5px}
 .rhg-app .rhg-scatter-scene{gap:6px}
 .rhg-app .rhg-scatter-scroll{border-radius:11px}
 .rhg-app .rhg-scatter-guide{display:none}
 .rhg-app .rhg-scatter-remaining{margin-left:auto}
 .rhg-app .rhg-scatter-token>span{font-size:31px}
 .rhg-app .rhg-scatter-caption{font-size:10px}
 .rhg-app .rhg-stage--scatter .rhg-stage-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:8px 7px}
 .rhg-app .rhg-stage--scatter .rhg-stage-foot>span{min-width:0;overflow-wrap:anywhere;line-height:1.4}
 .rhg-app .rhg-stage--scatter .rhg-hint-btn{font-size:11px;white-space:nowrap;min-width:105px;min-height:44px;padding:8px 10px}
}
@media(max-height:620px){.rhg-app .rhg-stage--scatter .rhg-game-status{padding:5px 7px}.rhg-app .rhg-scatter-toolbar{padding:5px 9px}.rhg-app .rhg-scatter-scene{gap:5px}}
@media(prefers-reduced-motion:reduce){.rhg-app .rhg-scatter-token{transition:none!important}}


/* v2.2.0: Free-placement digits remain visible after being tapped. Only a quiet
   optional marker is added; actual numeral glyph, angle, size and color persist. */
.rhg-app .rhg-stage--scatter .rhg-scatter-token.rhg-scatter-done{
  opacity:1!important;filter:none!important;cursor:default;
}
.rhg-app .rhg-stage--scatter .rhg-scatter-token.rhg-scatter-done>span{
  color:var(--scatter-color,#23554b)!important;
  font-size:clamp(27px,3.7vw,44px)!important;
  transform:rotate(var(--scatter-angle,0deg)) scale(var(--scatter-size,1))!important;
  text-shadow:0 1px 0 rgba(255,255,255,.7)!important;
  line-height:1.25!important;
}
.rhg-app .rhg-stage--scatter .rhg-scatter-mark-check .rhg-scatter-done::after{
  content:'✓';position:absolute;right:2px;bottom:3px;z-index:3;
  width:19px;height:19px;display:grid;place-items:center;
  border-radius:50%;background:#197a5f;color:#fff;
  font-size:12px;font-weight:850;line-height:1;
  box-shadow:0 2px 6px rgba(18,91,69,.16);pointer-events:none;
}
.rhg-app .rhg-stage--scatter .rhg-scatter-mark-ring .rhg-scatter-done::after{
  content:'';position:absolute;inset:2px;z-index:0;border-radius:50%;
  border:2px solid #318b70;background:rgba(106,171,134,.09);pointer-events:none;
}
.rhg-app .rhg-scatter-progress{
  flex:0 0 5px;height:5px;border-radius:99px;background:#dce9e0;
  overflow:hidden;margin:0 3px;box-shadow:inset 0 1px 2px rgba(17,74,56,.07);
}
.rhg-app .rhg-scatter-progress-fill{
  height:100%;width:0;border-radius:inherit;
  background:linear-gradient(90deg,#26836a,#54aa83);
  transition:width .24s ease-out;
}
.rhg-app .rhg-stage--scatter .rhg-scatter-caption{
  font-size:12px;font-weight:650;color:#426a59;
}
@media(max-width:760px){
 .rhg-app .rhg-stage--scatter .rhg-scatter-token.rhg-scatter-done>span{font-size:clamp(27px,8vw,37px)!important}
}
@media(max-width:490px){
 .rhg-app .rhg-stage--scatter .rhg-scatter-token.rhg-scatter-done>span{font-size:31px!important}
 .rhg-app .rhg-stage--scatter .rhg-scatter-caption{font-size:10px}
 .rhg-app .rhg-stage--scatter .rhg-scatter-mark-check .rhg-scatter-done::after{width:17px;height:17px;right:0;bottom:1px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .rhg-app .rhg-scatter-progress-fill{transition:none}
}

/* v2.3.0: Always expose the start of the in-page game when opening. */
.rhg-app .rhg-stage.rhg-stage-inline{scroll-margin-top:12px}

/* v2.4.0 | Fit the PLAY screen into one viewport (only setup/results may scroll).
   Avoid hiding controls by making the field flexible, rather than forcing 520px
   stages or tall inner scrolling boards. */
.rhg-app .rhg-stage.rhg-stage-inline{
  height:var(--rhg-inline-height,calc(100dvh - 24px))!important;
  max-height:100dvh!important;
  min-height:0!important;
}
.rhg-app .rhg-stage.rhg-stage-expanded,
.rhg-app .rhg-stage:fullscreen{height:100dvh!important;max-height:100dvh!important;min-height:0!important}
.rhg-app .rhg-stage,
.rhg-app .rhg-stage-wrap{overflow:hidden!important;min-height:0!important}
.rhg-app .rhg-stage-wrap{height:100%!important;max-height:100%!important;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.rhg-app .rhg-stage .rhg-gamebar{flex:0 0 auto;min-height:42px;max-height:58px;padding-top:4px;padding-bottom:4px}
.rhg-app .rhg-stage .rhg-game-status{flex:0 0 auto;min-height:0;padding-top:6px;padding-bottom:6px;gap:6px}
.rhg-app .rhg-stage .rhg-statrow>div{padding:4px 8px;gap:0}
.rhg-app .rhg-stage .rhg-stage-foot{flex:0 0 auto;min-height:28px;max-height:54px;padding-top:4px;padding-bottom:4px;overflow:hidden}
.rhg-app .rhg-stage .rhg-playfield{container-type:size;flex:1 1 0;min-height:0!important;max-height:none!important;overflow:hidden!important;padding:clamp(3px,1vw,12px)}
.rhg-app .rhg-stage .rhg-ready-panel{max-height:100%;overflow:hidden;padding:clamp(8px,2vmin,23px);gap:clamp(3px,1vh,10px)}
.rhg-app .rhg-stage .rhg-ready-decoration{font-size:clamp(18px,4vh,40px)}
.rhg-app .rhg-stage .rhg-ready-title{font-size:clamp(17px,3.7vmin,28px)}
.rhg-app .rhg-stage .rhg-ready-panel p{line-height:1.45;font-size:clamp(10px,1.8vh,13px)}
.rhg-app .rhg-stage .rhg-ready-button{margin-top:3px;min-height:42px}
.rhg-app .rhg-stage .rhg-ready-note{font-size:10px}
/* Square grids fit the actual remaining field height, not the full viewport width. */
.rhg-app .rhg-stage .rhg-target-board,.rhg-app .rhg-stage .rhg-memory-board{
  height:auto;aspect-ratio:1;width:min(100%,90cqh,580px)!important;
  max-height:100%!important;min-height:0;align-content:center;margin:auto;
}
.rhg-app .rhg-stage .rhg-symbol,.rhg-app .rhg-stage .rhg-memory-cell{min-height:0!important;min-width:0!important}
/* The memory-card view keeps its cards entirely on screen. */
.rhg-app .rhg-stage--pairs .rhg-playfield{overflow:hidden!important}
.rhg-app .rhg-stage--pairs .rhg-pairs-scene{overflow:hidden!important;max-height:100%!important;height:100%;min-height:0;padding:1px 2px;gap:3px;justify-content:center}
.rhg-app .rhg-stage--pairs .rhg-pairs-board{flex:0 0 auto;max-height:100%;overflow:visible!important}
.rhg-app .rhg-stage--pairs .rhg-pairs-topline{min-height:18px}
.rhg-app .rhg-stage--pairs .rhg-pairs-caption{font-size:10px;line-height:1.15}
/* Numeric tile game: show one fitted page of targets instead of an inner scroll. */
.rhg-app .rhg-stage--sequence .rhg-playfield,
.rhg-app .rhg-stage--scatter .rhg-playfield{align-items:stretch;justify-content:stretch;overflow:hidden!important}
.rhg-app .rhg-seq-scene,.rhg-app .rhg-scatter-scene{height:100%!important;min-height:0!important;max-height:100%;gap:4px!important;overflow:hidden}
.rhg-app .rhg-seq-scroll,.rhg-app .rhg-scatter-scroll{flex:1 1 0;min-height:0;max-height:100%;overflow:hidden!important;padding:clamp(3px,.7vw,9px)}
.rhg-app .rhg-seq-board,.rhg-app .rhg-seq-board-many{
  height:100%;min-height:0;max-height:100%;align-content:stretch;
  grid-template-columns:repeat(var(--rhg-seq-cols),minmax(0,1fr))!important;
  grid-template-rows:repeat(var(--rhg-seq-rows),minmax(0,1fr))!important;
  grid-auto-rows:minmax(0,1fr)!important;gap:clamp(3px,.7vmin,9px);
}
.rhg-app .rhg-seq-tile{min-height:0!important;min-width:0!important;height:100%;border-radius:9px;padding:1px}
.rhg-app .rhg-seq-tile-text{font-size:clamp(18px,3.2vmin,35px)!important;line-height:1.1}
.rhg-app .rhg-scatter-board{height:100%!important;min-height:0!important;max-height:100%!important}
.rhg-app .rhg-scatter-token{width:clamp(38px,5.8vmin,60px)!important;height:clamp(38px,5.8vmin,60px)!important}
.rhg-app .rhg-scatter-token>span{font-size:clamp(22px,4vmin,37px)!important}
.rhg-app .rhg-page-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto;padding:2px 3px;min-height:36px;color:#31574d;font-size:12px;font-weight:800}
.rhg-app .rhg-page-nav button{min-width:78px;min-height:34px;padding:5px 10px;border-radius:9px;background:#e6f3ec;color:#205b48;border:1px solid #a9d1bd;font-size:12px;font-weight:800;line-height:1.2}
.rhg-app .rhg-page-nav button:disabled{background:#f0f3f0;color:#9ba8a0;border-color:#e2e6e2}
.rhg-app .rhg-page-single{justify-content:center;min-height:15px;font-size:10px;color:#587a6e}
.rhg-app .rhg-seq-instructions,.rhg-app .rhg-scatter-toolbar{min-height:0;padding:4px 8px;gap:6px}
.rhg-app .rhg-seq-caption,.rhg-app .rhg-scatter-caption{font-size:10px;line-height:1.2;min-height:0;padding:0;margin:0}
.rhg-app .rhg-scatter-progress{flex:0 0 4px;margin:0 3px}
/* Cup game: the table takes the field's *remaining* height, never a fixed px/vh. */
.rhg-app .rhg-stage--cup .rhg-playfield{overflow:hidden!important}
.rhg-app .rhg-stage--cup .rhg-cup-scene{height:100%!important;max-height:100%!important;min-height:0!important;gap:4px!important;justify-content:stretch}
.rhg-app .rhg-stage--cup .rhg-cup-scene-head,.rhg-app .rhg-stage--cup .rhg-cup-helper,.rhg-app .rhg-stage--cup .rhg-cup-counter{flex:0 0 auto}
.rhg-app .rhg-stage--cup .rhg-cup-track{height:auto!important;min-height:0!important;max-height:none!important;flex:1 1 0!important;overflow:hidden}
.rhg-app .rhg-stage--cup .rhg-cup{height:90%;bottom:2%}
.rhg-app .rhg-stage--cup .rhg-cup-shape{height:min(100%,205px)}
.rhg-app .rhg-stage--cup .rhg-cup-table-ball{bottom:11%}
/* Short/compact screens: concise labels preserve room for the game itself. */
@media(max-height:700px){
 .rhg-app .rhg-stage .rhg-gamebar{min-height:40px;max-height:48px}
 .rhg-app .rhg-stage .rhg-game-status{padding-top:4px;padding-bottom:4px}
 .rhg-app .rhg-stage .rhg-prompt{font-size:clamp(12px,2.9vmin,17px);line-height:1.2}
 .rhg-app .rhg-stage .rhg-game-brand>div span{display:none}
 .rhg-app .rhg-stage .rhg-game-status .rhg-stage-kicker{font-size:9px}
 .rhg-app .rhg-stage .rhg-stage-foot{min-height:24px;font-size:10px}
 .rhg-app .rhg-stage--cup .rhg-cup-helper{font-size:10px;padding:4px 7px}
 .rhg-app .rhg-stage--cup .rhg-cup-counter{min-height:24px;padding:3px 5px;font-size:10px}
 .rhg-app .rhg-stage--cup .rhg-cup-show-ball .rhg-cup-shape{transform:translateY(-39px)}
 .rhg-app .rhg-scatter-guide,.rhg-app .rhg-seq-information{display:none}
 .rhg-app .rhg-scatter-next strong,.rhg-app .rhg-seq-next strong{min-height:32px;font-size:19px}
 .rhg-app .rhg-scatter-toolbar,.rhg-app .rhg-seq-instructions{min-height:35px}
}
@media(max-width:490px){
 .rhg-app .rhg-stage-wrap{padding-left:3px;padding-right:3px}
 .rhg-app .rhg-stage .rhg-gamebar{gap:4px;padding-left:6px;padding-right:6px}
 .rhg-app .rhg-stage .rhg-game-status{gap:2px;padding-left:5px;padding-right:5px}
 .rhg-app .rhg-stage .rhg-playfield{margin-left:2px;margin-right:2px;padding:3px}
 .rhg-app .rhg-stage .rhg-stage-foot{padding-left:5px;padding-right:5px}
 .rhg-app .rhg-stage .rhg-statrow{gap:4px}
 .rhg-app .rhg-stage .rhg-tool-btn{min-height:39px;min-width:39px}
 .rhg-app .rhg-seq-scroll,.rhg-app .rhg-scatter-scroll{padding:3px}
 .rhg-app .rhg-seq-scene,.rhg-app .rhg-scatter-scene{gap:3px!important}
 .rhg-app .rhg-page-nav button{min-height:35px}
 .rhg-app .rhg-stage--cup .rhg-cup-track{border-radius:13px}
}
/* Landscape phones and unusually short in-page viewports: remove repeated chrome
   rather than cutting interactive content or introducing a scrollbar. */
@media(max-height:440px){
 .rhg-app .rhg-stage--cup .rhg-game-status,
 .rhg-app .rhg-stage--pairs .rhg-game-status,
 .rhg-app .rhg-stage--sequence .rhg-game-status,
 .rhg-app .rhg-stage--scatter .rhg-game-status{display:none!important}
 .rhg-app .rhg-stage .rhg-stage-foot{min-height:21px;max-height:32px;font-size:9px;padding:2px 6px}
 .rhg-app .rhg-stage--cup .rhg-cup-scene-head{display:none}
 .rhg-app .rhg-stage--cup .rhg-cup-helper{display:none}
 .rhg-app .rhg-stage--cup .rhg-cup-counter{min-height:20px;font-size:10px;padding:2px 5px}
 .rhg-app .rhg-stage--pairs .rhg-pairs-caption{display:none}
 .rhg-app .rhg-stage--pairs .rhg-pairs-topline{min-height:15px}
 .rhg-app .rhg-stage--scatter .rhg-scatter-caption,.rhg-app .rhg-stage--sequence .rhg-seq-caption{display:none}
 .rhg-app .rhg-page-single{display:none}
 .rhg-app .rhg-stage--scatter .rhg-scatter-toolbar,.rhg-app .rhg-stage--sequence .rhg-seq-instructions{min-height:30px}
 .rhg-app .rhg-stage--cup .rhg-cup-track{flex:1 1 0;min-height:0}
}


/* v2.5.0 — purpose-first game catalogue and clinical readability */
.rhg-app .rhg-category-panel{margin:23px 0 18px;padding:21px 22px 20px;background:linear-gradient(145deg,#f0f8f5,#fbfefd);border:1px solid #d6e8df;border-radius:22px;box-shadow:0 9px 25px rgba(31,77,62,.04)}
.rhg-app .rhg-category-panel-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:15px}
.rhg-app .rhg-category-panel-title>div{display:flex;flex-direction:column;gap:4px}
.rhg-app .rhg-category-panel-title strong{font-size:18px;font-weight:850;color:#1f4540;line-height:1.35}
.rhg-app .rhg-category-panel-title span{font-size:12px;color:#486b62}
.rhg-app .rhg-category-panel-hint{max-width:260px;text-align:right}
.rhg-app .rhg-category-filters{display:flex;flex-wrap:wrap;gap:8px}
.rhg-app button.rhg-category-filter{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border-radius:999px;background:#ffffff;border:1.5px solid #cadbd3;color:#294a44;font-size:13px;font-weight:750;line-height:1.3;box-shadow:0 3px 9px rgba(31,77,62,.035);transition:background-color .15s,border-color .15s}
.rhg-app button.rhg-category-filter span{font-size:11px;line-height:1.25;min-width:19px;padding:2px 5px;border-radius:999px;color:#597770;background:#edf5f1;font-weight:800}
.rhg-app button.rhg-category-filter:hover{background:#eff8f3;border-color:#91b9a8}
.rhg-app button.rhg-category-filter[aria-pressed="true"]{background:#155e52;color:#ffffff;border-color:#155e52;box-shadow:0 6px 15px rgba(21,94,82,.17)}
.rhg-app button.rhg-category-filter[aria-pressed="true"] span{color:#155e52;background:#ecfaf3}
.rhg-app .rhg-toolbar{margin:20px 0 18px}
.rhg-app .rhg-count{font-weight:750;color:#526d66;font-size:13px}
.rhg-app .rhg-game-card-body{gap:8px}
.rhg-app .rhg-category-badge{display:inline-flex;align-items:center;align-self:flex-start;max-width:100%;font-size:11px;font-weight:850;line-height:1.3;color:#1c6b54;border:1px solid #cde9db;padding:5px 9px;border-radius:7px;background:#e8f6ee;letter-spacing:.015em}
.rhg-app .rhg-category-badge.rhg-category-memory{background:#eef0ff;color:#444c89;border-color:#d5ddfa}
.rhg-app .rhg-category-badge.rhg-category-attention{background:#e6f5f0;color:#1b6a60;border-color:#c4e9dd}
.rhg-app .rhg-category-badge.rhg-category-other{background:#fff1e3;color:#80532d;border-color:#f6dab8}
.rhg-app .rhg-category-badge.rhg-category-neglect,.rhg-app .rhg-category-badge.rhg-category-spatial{background:#eef5fd;color:#315b82;border-color:#cee0f3}
.rhg-app .rhg-category-badge.rhg-category-executive,.rhg-app .rhg-category-badge.rhg-category-language{background:#fff0f2;color:#86495d;border-color:#f1d3db}
.rhg-app .rhg-game-card-body .rhg-game-purpose{font-size:14px;font-weight:760;color:#294d47;line-height:1.65;min-height:2.9em}
.rhg-app .rhg-game-card-body .rhg-game-description{font-size:12px;color:#5b706c;line-height:1.65;min-height:3.1em}
.rhg-app .rhg-category-related-row{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 3px}
.rhg-app .rhg-category-related{display:inline-flex;padding:4px 7px;border-radius:6px;background:#f2f6f4;color:#526963;border:1px solid #e0e9e4;font-size:10px;font-weight:680;line-height:1.35}
.rhg-app .rhg-game-card-body .rhg-card-arrow{font-size:12px;color:#126b58;margin-top:auto}
.rhg-app .rhg-empty-result{border:1px dashed #a6c7b8;border-radius:20px;padding:38px 18px;margin:8px 0 0;text-align:center;background:#fbfefd;color:#254b40}
.rhg-app .rhg-empty-result strong{display:block;font-size:17px;margin-bottom:8px}
.rhg-app .rhg-empty-result span{display:block;font-size:13px;color:#57716a;margin-bottom:16px}
.rhg-app .rhg-empty-result button{min-width:190px}
.rhg-app .rhg-category-legend{font-size:12px;color:#557169;margin:16px 0 0;line-height:1.8}
.rhg-app .rhg-purpose-panel{display:flex;align-items:flex-start;gap:16px;margin:18px 0 15px;padding:18px 20px;border-radius:19px;background:linear-gradient(135deg,#eef7f2,#f9fcfa);border:1px solid #d9e9df}
.rhg-app .rhg-purpose-symbol{display:flex;flex:0 0 39px;align-items:center;justify-content:center;width:39px;height:39px;background:#d9ece2;border-radius:12px;color:#216c55;font-size:22px;font-weight:800;line-height:1}
.rhg-app .rhg-purpose-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.rhg-app .rhg-purpose-kicker{font-size:11px;color:#47685d;font-weight:750;letter-spacing:.03em}
.rhg-app .rhg-purpose-body>strong{font-size:17px;font-weight:840;color:#1d4540;line-height:1.5}
.rhg-app .rhg-purpose-tags{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0}
.rhg-app .rhg-purpose-tags>span{display:inline-flex;padding:4px 9px;border-radius:7px;border:1px solid #cedfd6;background:#fff;color:#506d61;font-size:11px;font-weight:750}
.rhg-app .rhg-purpose-tags>.rhg-purpose-primary{color:#115c48;background:#e1f2e8;border-color:#c4e4d2}
.rhg-app .rhg-purpose-body>p{font-size:12px;color:#516c62;line-height:1.8}
.rhg-app .rhg-result-purpose{font-weight:740;color:#315f54!important;margin:7px auto 0!important;max-width:640px}
@media(max-width:760px){
 .rhg-app .rhg-category-panel{padding:16px 14px;border-radius:17px}
 .rhg-app .rhg-category-panel-title{flex-direction:column;align-items:start}
 .rhg-app .rhg-category-panel-hint{text-align:left;max-width:none}
 .rhg-app button.rhg-category-filter{min-height:43px;padding:8px 12px}
 .rhg-app .rhg-game-card-body .rhg-game-purpose{min-height:0}
 .rhg-app .rhg-game-card-body .rhg-game-description{min-height:0}
 .rhg-app .rhg-purpose-panel{padding:14px;gap:11px}
 .rhg-app .rhg-purpose-symbol{flex-basis:32px;width:32px;height:32px}
}
@media(max-width:490px){
 .rhg-app .rhg-category-filters{gap:7px}
 .rhg-app button.rhg-category-filter{font-size:12px;min-height:43px;padding:7px 10px}
 .rhg-app .rhg-category-badge{font-size:10px}
 .rhg-app .rhg-game-card-body .rhg-game-purpose{font-size:12px;line-height:1.55}
 .rhg-app .rhg-game-card-body .rhg-game-description{font-size:11px;line-height:1.55}
 .rhg-app .rhg-category-related{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.rhg-app .rhg-category-filter{transition:none!important}}
/* v2.5.0 — report reading guidance */
.rhg-app .rhg-result-insight{display:flex;align-items:flex-start;gap:12px;padding:17px 19px;margin:14px 0;border:1px solid #d9e6df;border-radius:17px;background:linear-gradient(145deg,#eef7f3,#fbfefd)}
.rhg-app .rhg-result-insight-icon{display:flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;font-size:15px;font-weight:800;font-style:normal;background:#d8ece2;color:#1b6d57}
.rhg-app .rhg-result-insight strong{display:block;font-size:14px;font-weight:820;color:#1d5043;line-height:1.5;margin-bottom:4px}
.rhg-app .rhg-result-insight p{font-size:12px;color:#435c55;line-height:1.8;margin:0}
@media(max-width:490px){
 .rhg-app .rhg-game-card{min-height:140px!important}
 .rhg-app .rhg-game-art{flex:0 0 105px!important;width:105px!important;min-height:135px!important}
 .rhg-app .rhg-game-card-body{padding:12px 12px 11px!important;gap:5px!important}
 .rhg-app .rhg-game-card-body strong{font-size:15px!important;line-height:1.4}
 .rhg-app .rhg-game-card-body .rhg-game-purpose{font-size:13px;line-height:1.5}
 .rhg-app .rhg-game-card-body .rhg-game-description{display:none}
 .rhg-app .rhg-category-related-row{margin:1px 0}
 .rhg-app .rhg-game-card-body .rhg-card-arrow{margin-top:5px!important;padding-top:7px!important;font-size:11px!important}
}
@media(max-width:350px){
 .rhg-app .rhg-game-art{flex-basis:88px!important;width:88px!important}
 .rhg-app .rhg-game-card-body{padding:10px!important}
 .rhg-app .rhg-game-card-body strong{font-size:14px!important}
 .rhg-app .rhg-game-card-body .rhg-game-purpose{font-size:12px}
}

/* v2.6.0 — visual and clinical data clarity; theme-safe scoped elements */
.rhg-app .rhg-overview{margin:16px 0 25px;padding:20px;border:1px solid #d8e8df;background:linear-gradient(145deg,#f3faf5,#fbfdfb);border-radius:19px;box-shadow:0 9px 24px rgba(25,79,59,.045)}
.rhg-app .rhg-overview-title{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-bottom:14px}
.rhg-app .rhg-overview-title strong{font-size:16px;font-weight:800;color:#1c5144}
.rhg-app .rhg-overview-title span{font-size:12px;color:#536f64}
.rhg-app .rhg-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rhg-app .rhg-overview-grid>div{padding:14px 12px;border-radius:12px;background:#fff;border:1px solid #dcebe1;display:flex;flex-direction:column;gap:4px;min-width:0}
.rhg-app .rhg-overview-grid small{font-size:11px;color:#496b60}
.rhg-app .rhg-overview-grid strong{font-size:clamp(18px,2.8vw,25px);font-weight:850;line-height:1.25;color:#234e40;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rhg-app .rhg-preset-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 8px}
.rhg-app .rhg-preset-actions .rhg-outline{min-height:44px;padding:9px 13px;font-size:12px}
.rhg-app .rhg-result-score-explainer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px}
.rhg-app .rhg-result-score-explainer>div{background:#fff;border:1px solid #d8e8e0;box-shadow:0 8px 22px rgba(31,71,51,.04);padding:16px;border-radius:15px;display:flex;flex-direction:column;gap:5px}
.rhg-app .rhg-result-score-explainer small{color:#496f61;font-weight:800;font-size:12px}
.rhg-app .rhg-result-score-explainer strong{font-size:clamp(22px,3.2vw,29px);line-height:1.25;color:#234b41;font-variant-numeric:tabular-nums}
.rhg-app .rhg-result-score-explainer span{font-size:12px;color:#5a7169}
.rhg-app .rhg-result-score-explainer p{grid-column:1/-1;font-size:12px;line-height:1.85;color:#4e6960;padding:4px 6px}
.rhg-app .rhg-copy-feedback{font-size:12px;min-height:1.5em;color:#12684f;font-weight:700;margin-top:13px}
.rhg-app .rhg-result-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rhg-app .rhg-result-buttons>button{min-height:50px;white-space:normal}
.rhg-app .rhg-level.rhg-selected{outline:2px solid rgba(39,126,106,.3);outline-offset:2px}
.rhg-app .rhg-results-grid small,.rhg-app .rhg-result-panel [role="heading"]{letter-spacing:normal}
@media(max-width:600px){.rhg-app .rhg-overview{padding:14px}.rhg-app .rhg-overview-grid{gap:7px}.rhg-app .rhg-overview-grid>div{padding:10px 8px}.rhg-app .rhg-overview-grid strong{font-size:17px}.rhg-app .rhg-result-buttons{grid-template-columns:1fr}.rhg-app .rhg-result-score-explainer{gap:8px}.rhg-app .rhg-result-score-explainer>div{padding:12px 9px}}

/* v2.6.0 — non-intrusive finishing details without changing game mechanics */
.rhg-app .rhg-stage .rhg-tool-btn:focus-visible,
.rhg-app .rhg-overview button:focus-visible,
.rhg-app .rhg-result-buttons button:focus-visible{outline:3px solid #c27d25;outline-offset:3px}
.rhg-app .rhg-stage .rhg-statrow>div{box-shadow:0 5px 15px rgba(24,70,51,.045)}
.rhg-app .rhg-game-status .rhg-prompt{letter-spacing:-.025em}
.rhg-app .rhg-results-grid>div{border-radius:17px}
.rhg-app .rhg-results-grid>div strong{font-variant-numeric:tabular-nums}
.rhg-app .rhg-result-score-explainer>div:first-child{border-color:#b8d7c6;background:linear-gradient(160deg,#f0f8f3,#fff)}
.rhg-app .rhg-result-score-explainer>div:first-child strong{color:#176248}
.rhg-app .rhg-result-buttons .rhg-outline:hover{background:#f1f8f4;border-color:#92c0a7}
.rhg-app .rhg-cup-result-story,.rhg-app .rhg-seq-runs{overflow-wrap:anywhere}
@media(prefers-reduced-motion: reduce){
  .rhg-app .rhg-confetti span{animation:none!important;transform:none!important}
  .rhg-app .rhg-game-card,.rhg-app .rhg-primary,.rhg-app .rhg-outline{transition:none!important}
}


/* v2.7.0 – accessible presentation, patient-readable start and instant progress */
.rhg-app .rhg-visual-options{margin:16px 0 25px;padding:18px 20px;background:linear-gradient(150deg,#f9fcfa,#ffffff);border:1px solid #dbe8e0;border-radius:19px;min-width:0;box-shadow:0 6px 22px rgba(30,77,58,.04)}
.rhg-app .rhg-visual-options legend{font-size:15px;font-weight:820;color:#244a40;padding:0 8px}
.rhg-app .rhg-visual-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rhg-app .rhg-visual-choice{position:relative;display:flex;align-items:center;gap:13px;padding:12px 14px;min-height:64px;border-radius:14px;border:1.5px solid #d9e6df;background:#fff;cursor:pointer}
.rhg-app .rhg-visual-choice.rhg-visual-selected{background:#edf7f0;border-color:#267c61;box-shadow:inset 0 0 0 1px #267c61}
.rhg-app .rhg-visual-choice input{position:absolute;opacity:0;width:1px;height:1px}
.rhg-app .rhg-visual-choice:focus-within{outline:3px solid #d19a48;outline-offset:2px}
.rhg-app .rhg-visual-swatch{font-size:20px;line-height:1;font-weight:850;display:grid;place-items:center;width:44px;height:40px;border-radius:9px;flex:0 0 44px}
.rhg-app .rhg-visual-swatch--standard{color:#557b6c;background:#eff5ef;border:1px solid #dce9df}
.rhg-app .rhg-visual-swatch--contrast{color:#092e25;background:#ffffff;border:2px solid #17382f}
.rhg-app .rhg-visual-choice strong,.rhg-app .rhg-visual-choice small{display:block;font-size:13px;line-height:1.35}
.rhg-app .rhg-visual-choice strong{color:#294b40;font-weight:820}
.rhg-app .rhg-visual-choice small{font-size:11px;color:#5c7169;margin-top:4px}
.rhg-app .rhg-visual-options p{font-size:12px;color:#506b62;line-height:1.6;margin:10px 0 0}
.rhg-app .rhg-stage-progress{position:absolute;bottom:0;left:0;right:0;height:4px;background:#e3ede6;overflow:hidden}
.rhg-app .rhg-game-status{position:relative}
.rhg-app .rhg-stage-progress span{height:100%;width:0;display:block;background:#267f69;transition:width .16s ease;will-change:width}
.rhg-app .rhg-ready-guide{display:grid;grid-template-columns:1fr;gap:8px;text-align:left;width:100%;max-width:350px}
.rhg-app .rhg-ready-guide>div{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:13px;background:#f3f8f4;border:1px solid #dfe9e0}
.rhg-app .rhg-ready-guide>div>span{flex:0 0 26px;width:26px;height:26px;display:grid;place-items:center;background:#2e806b;border-radius:50%;color:white;font-size:12px;font-weight:800}
.rhg-app .rhg-ready-guide strong{font-size:clamp(11px,1.7vh,14px);line-height:1.5;font-weight:740;color:#254b40}
.rhg-app .rhg-ready-panel{width:min(100%,420px);gap:clamp(6px,1vh,11px)!important}
.rhg-app .rhg-ready-panel .rhg-ready-title{font-size:clamp(18px,3.3vmin,27px)}
.rhg-app .rhg-ready-panel .rhg-ready-overline{letter-spacing:.14em;color:#307b65;font-size:10px}
.rhg-app .rhg-ready-panel .rhg-ready-button{font-weight:820;min-height:46px}
.rhg-app .rhg-result-achievement{margin:10px 0 20px;padding:18px 20px;border:1px solid #dbe9df;background:linear-gradient(135deg,#f6faf7,#ffffff);border-radius:17px}
.rhg-app .rhg-result-achievement-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;color:#264b41}
.rhg-app .rhg-result-achievement-top strong{font-size:15px;font-weight:850}
.rhg-app .rhg-result-achievement-top span{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.rhg-app .rhg-result-achievement-track{height:11px;background:#e5eee7;border-radius:999px;overflow:hidden;margin:13px 0 8px}
.rhg-app .rhg-result-achievement-track span{display:block;height:100%;background:linear-gradient(90deg,#338d73,#237360);border-radius:999px}
.rhg-app .rhg-result-achievement p{font-size:12px;color:#4c675d;line-height:1.7;margin:0}
/* High contrast targets. Never change scoring, timing or shuffle identities. */
.rhg-app .rhg-stage--contrast{--rhg-ink:#102e2a;--rhg-muted:#314e48;--rhg-accent:#076b52;--rhg-line:#bccdc4}
.rhg-app .rhg-stage--contrast .rhg-gamebar,
.rhg-app .rhg-stage--contrast .rhg-game-status,
.rhg-app .rhg-stage--contrast .rhg-stage-foot{background:#ffffff!important}
.rhg-app .rhg-stage--contrast .rhg-playfield{background:#ffffff!important;border:2px solid #839d90!important}
.rhg-app .rhg-stage--contrast .rhg-symbol,
.rhg-app .rhg-stage--contrast .rhg-memory-cell{background:#ffffff!important;border:2px solid #4f6f61!important;color:#163e32!important}
.rhg-app .rhg-stage--contrast .rhg-memory-cell.rhg-lit{background:#095c47!important;color:white!important;border-color:#033b2c!important;box-shadow:0 0 0 4px rgba(4,89,64,.25)}
.rhg-app .rhg-stage--contrast .rhg-symbol.rhg-red{color:#af222b!important}
.rhg-app .rhg-stage--contrast .rhg-symbol.rhg-hit{background:#e1efe5!important}
.rhg-app .rhg-stage--contrast .rhg-reach-target{background:#08775c!important;border-color:#1b4538!important}
.rhg-app .rhg-stage--contrast .rhg-cup-track{border:2px solid #aa8f83!important}
.rhg-app .rhg-stage--contrast .rhg-statrow>div{border:1.5px solid #78988a!important}
.rhg-app .rhg-stage--contrast .rhg-prompt,
.rhg-app .rhg-stage--contrast .rhg-stage-foot{color:#193b31!important}
.rhg-app .rhg-stage--contrast .rhg-stage-progress{background:#cee2d5}
.rhg-app .rhg-stage--contrast .rhg-stage-progress span{background:#0b694f}
@media(max-width:600px){
 .rhg-app .rhg-visual-options{padding:13px}
 .rhg-app .rhg-visual-choice{gap:7px;padding:8px;min-height:58px}
 .rhg-app .rhg-visual-swatch{width:32px;flex-basis:32px;height:35px;font-size:17px}
 .rhg-app .rhg-visual-choice strong{font-size:12px}
 .rhg-app .rhg-visual-choice small{font-size:10px}
 .rhg-app .rhg-result-achievement{padding:13px}
 .rhg-app .rhg-ready-guide>div{padding:5px 9px;gap:7px}
 .rhg-app .rhg-ready-guide>div>span{width:22px;height:22px;flex-basis:22px}
}
@media(max-height:550px){
 .rhg-app .rhg-ready-guide{gap:4px}
 .rhg-app .rhg-ready-guide>div{padding:3px 7px}
 .rhg-app .rhg-ready-panel .rhg-ready-title{font-size:17px}
 .rhg-app .rhg-ready-panel .rhg-ready-note{display:none}
}
@media(prefers-reduced-motion:reduce){
 .rhg-app .rhg-stage-progress span{transition:none!important}
}

/* The high-contrast option also encompasses all card and number games. */
.rhg-app .rhg-stage--contrast .rhg-seq-tile{background:#ffffff!important;border:2px solid #477061!important;box-shadow:0 3px 0 #b5d2c2!important}
.rhg-app .rhg-stage--contrast .rhg-seq-tile-text{text-shadow:none!important;filter:contrast(1.2)}
.rhg-app .rhg-stage--contrast .rhg-scatter-board{background:#ffffff!important;border-color:#b6cbbc!important}
.rhg-app .rhg-stage--contrast .rhg-scatter-token>span{text-shadow:0 1px 0 white,0 -1px 0 white!important;filter:contrast(1.25)}
.rhg-app .rhg-stage--contrast .rhg-scatter-token:focus-visible{border:2px solid #15583c!important}
.rhg-app .rhg-stage--contrast .rhg-pair-card{border-color:#3e6550!important}
.rhg-app .rhg-stage--contrast .rhg-pairs-scene{background:#ffffff!important}


/* Ver.2.8.0 — game-specific visual polish (no rule, timer or score changes) */
.rhg-app .rhg-shell-target .rhg-setup-hero{background:linear-gradient(140deg,#f3faf6,#fff);border-color:#cfdfd6}
.rhg-app .rhg-shell-memory .rhg-setup-hero{background:linear-gradient(140deg,#f0f5fd,#fff);border-color:#d6e0ee}
.rhg-app .rhg-shell-reach .rhg-setup-hero{background:linear-gradient(140deg,#effafa,#fff);border-color:#d2e8e6}
.rhg-app .rhg-shell-pairs .rhg-setup-hero{background:linear-gradient(140deg,#f3f5eb,#fff);border-color:#dfe5d4}
.rhg-app .rhg-shell-sequence .rhg-setup-hero{background:linear-gradient(140deg,#f2f5ff,#fff);border-color:#d6dfed}
.rhg-app .rhg-shell-scatter .rhg-setup-hero{background:linear-gradient(140deg,#eef7f9,#fff);border-color:#d2e5e9}
.rhg-app .rhg-stage--target .rhg-playfield{background:radial-gradient(circle at 80% 10%,rgba(215,240,221,.26),transparent 42%),#fff}
.rhg-app .rhg-stage--memory .rhg-playfield{background:radial-gradient(circle at 15% 16%,rgba(218,227,245,.27),transparent 42%),#fff}
.rhg-app .rhg-stage--reach .rhg-playfield{background:radial-gradient(circle at 85% 20%,rgba(214,238,240,.32),transparent 45%),#fff}
/* Consistent, legible focus states even when WordPress themes override buttons. */
.rhg-app .rhg-stage button:focus-visible{outline:3px solid #be7a29!important;outline-offset:3px!important}
.rhg-app .rhg-stage button:active:not(:disabled){filter:brightness(.97)}
.rhg-app .rhg-symbol{transition:background-color .16s,border-color .16s,box-shadow .16s}
.rhg-app .rhg-symbol.rhg-hit{box-shadow:inset 0 0 0 2px rgba(42,133,94,.18);background:#e5f3ea!important}
.rhg-app .rhg-symbol.rhg-target-wrong{animation:rhg-v28-wrong .32s ease;border-color:#ad5960!important;background:#fff2f1!important}
@keyframes rhg-v28-wrong{0%,100%{box-shadow:none}45%{box-shadow:0 0 0 5px rgba(182,81,91,.17)}}
/* Memory: three phases share the existing caption area to avoid vertical scrolling. */
.rhg-app .rhg-memory-phase-caption{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rhg-app .rhg-memory-step{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dfe7ec;background:#f7f9fc;border-radius:100px;padding:3px 9px;color:#5e707c;font-size:clamp(9px,1.4vmin,12px);font-weight:700;line-height:1.5;white-space:nowrap;min-width:0}
.rhg-app .rhg-memory-step-active{border-color:#3c786f;background:#e5f4ed;color:#144b3d;box-shadow:0 3px 10px rgba(38,105,81,.10)}
.rhg-app .rhg-memory-phase-arrow{font-size:13px;color:#77948a;flex:0 0 auto}
.rhg-app .rhg-memory-cell{transition:background .2s ease, border-color .2s ease,box-shadow .2s ease}
.rhg-app .rhg-memory-cell.rhg-lit{background:linear-gradient(145deg,#349a7e,#146b57)!important;border-color:#0f6a55!important;box-shadow:0 0 0 5px rgba(39,123,96,.16),0 10px 25px rgba(22,92,73,.22)!important}
.rhg-app .rhg-memory-cell.rhg-answered{box-shadow:inset 0 0 0 2px rgba(39,119,88,.15)}
/* Cup flow is labelled without making the play area taller. */
.rhg-app .rhg-cup-helper{font-weight:780;letter-spacing:.015em;transition:background-color .25s,border-color .25s}
.rhg-app .rhg-cup-scene[data-phase="reveal"] .rhg-cup-helper{background:#fff9ec;border-color:#e6cb9c;color:#855c35}
.rhg-app .rhg-cup-scene[data-phase="shuffle"] .rhg-cup-helper{background:#f8ecf2;border-color:#e4bfcf;color:#835770}
.rhg-app .rhg-cup-scene[data-phase="choose"] .rhg-cup-helper{background:#eaf6ef;border-color:#9fceb0;color:#225e43}
.rhg-app .rhg-cup-scene[data-phase="choose"] .rhg-cup:not(:disabled){transition:left var(--rhg-swap-duration,700ms) cubic-bezier(.47,.05,.28,1),background .13s,border-color .13s}
.rhg-app .rhg-cup-scene[data-phase="choose"] .rhg-cup:not(:disabled):focus-visible{border:3px solid #2f8464!important;background:rgba(54,137,99,.09)}
/* Pair-matching: tactile paper-and-foil design, clear states, no gimmicky motion. */
.rhg-app .rhg-stage--pairs .rhg-pairs-scene{background:radial-gradient(circle at 50% 14%,rgba(246,247,236,.8),transparent 62%),#fffefb;border-radius:15px}
.rhg-app .rhg-pair-card{perspective:1000px;transition:filter .16s ease}
.rhg-app .rhg-pair-card:not(:disabled):hover{filter:brightness(1.045)}
.rhg-app .rhg-pair-back{background:radial-gradient(ellipse at 35% 20%,#506b5a 0%,#29483e 57%,#1c352e 100%)!important;border-color:#cbb58a!important;box-shadow:inset 0 1px 0 rgba(255,251,228,.28),0 5px 0 #1f3b32,0 11px 17px rgba(25,53,43,.18)!important}
.rhg-app .rhg-pair-back-wreath{color:#e4d2a9!important;filter:drop-shadow(0 2px 2px rgba(8,27,19,.22))}
.rhg-app .rhg-pair-face{background:radial-gradient(ellipse at 50% 0%,#fffef9 0%,#fbf5e9 78%,#f0e8d9 100%)!important;border-color:#d2c19f!important;box-shadow:inset 0 1px 0 #fff,0 7px 12px rgba(67,59,45,.11)!important}
.rhg-app .rhg-pair-card.rhg-pair-matched{filter:drop-shadow(0 2px 5px rgba(38,118,75,.13))}
.rhg-app .rhg-pair-card.rhg-pair-matched .rhg-pair-face{background:linear-gradient(145deg,#fffef9,#ebf6ec)!important;border-color:#3a9567!important;box-shadow:inset 0 0 0 2px rgba(92,162,114,.14)!important}
.rhg-app .rhg-pair-card.rhg-pair-matched::after{content:"✓";display:grid;place-items:center;position:absolute;top:4px;right:4px;z-index:3;width:clamp(13px,2.2vmin,21px);height:clamp(13px,2.2vmin,21px);border-radius:50%;background:#267c5d;color:#fff;font-size:clamp(8px,1.5vmin,12px);font-weight:800;pointer-events:none}
.rhg-app .rhg-pairs-caption{font-weight:700;color:#3b6352;line-height:1.35}
/* Touch & reach: the whole arena acknowledges an accurate tap, without moving the target. */
.rhg-app .rhg-reach-arena{transition:border-color .18s,box-shadow .18s}
.rhg-app .rhg-stage--reach.rhg-reach-success .rhg-reach-arena{border-color:#389875!important;box-shadow:inset 0 0 0 3px rgba(56,152,117,.13)}
.rhg-app .rhg-reach-target{background:radial-gradient(circle at 34% 23%,#68c6a4,#2c9974 64%,#146c57 100%);border-color:#b8e6d0}
/* Numeral games: visible, consistent state feedback, no change to task layout. */
.rhg-app .rhg-stage--sequence .rhg-seq-next,
.rhg-app .rhg-stage--scatter .rhg-scatter-next{border-color:#b7d5c8;box-shadow:0 4px 15px rgba(29,101,77,.08)}
.rhg-app .rhg-stage.rhg-number-success .rhg-seq-next,
.rhg-app .rhg-stage.rhg-number-success .rhg-scatter-next{box-shadow:0 0 0 4px rgba(42,138,98,.13),0 4px 14px rgba(29,101,77,.1)}
.rhg-app .rhg-scatter-token:focus-visible{outline:3px solid #b96d28!important;outline-offset:2px!important}
.rhg-app .rhg-scatter-mark-none .rhg-scatter-token.rhg-scatter-done{opacity:1!important;filter:none!important}
@media(max-width:490px){
 .rhg-app .rhg-memory-step{padding:2px 5px;font-size:9px}
 .rhg-app .rhg-memory-phase-caption{gap:2px}
 .rhg-app .rhg-pair-card.rhg-pair-matched::after{top:2px;right:2px}
 .rhg-app .rhg-cup-helper{letter-spacing:0;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .rhg-app .rhg-symbol,.rhg-app .rhg-memory-cell,.rhg-app .rhg-reach-arena,.rhg-app .rhg-pair-card,.rhg-app .rhg-cup-helper{transition:none!important}
 .rhg-app .rhg-symbol.rhg-target-wrong{animation:none!important}
}


/* REHA HOUSE v2.9.0: tablet-first touch clarity and stable viewport fitting.
   All selectors are scoped to .rhg-app to avoid affecting SWELL / WordPress. */
.rhg-app .rhg-device-tip{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:10px 13px;border-radius:12px;border:1px solid #d9e9e1;background:#f3f9f5;color:#315c4a;font-size:12px;font-weight:650;line-height:1.55}
.rhg-app .rhg-device-tip>span{width:25px;height:25px;min-width:25px;display:grid;place-items:center;border-radius:8px;background:#e0efe7;color:#25785f;font-size:18px}
/* Prefer the actual visible height while tablet browser UI expands/collapses. */
.rhg-app .rhg-stage.rhg-stage-expanded{height:var(--rhg-viewport-height,100dvh)!important;max-height:var(--rhg-viewport-height,100dvh)!important}
.rhg-app .rhg-stage:fullscreen{height:100%!important;max-height:100%!important}
.rhg-app .rhg-stage-wrap{padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px))}
/* Avoid accidental text selection and double-tap zoom on targets, never disable page zoom. */
.rhg-app .rhg-stage :is(button,.rhg-symbol,.rhg-memory-cell,.rhg-reach-target,.rhg-seq-tile,.rhg-scatter-token,.rhg-pair-card,.rhg-cup){touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.rhg-app .rhg-stage button:focus-visible{outline:3px solid #b77928!important;outline-offset:2px!important}
/* Touch users need explicit press feedback; hover-only cues don't help on tablets. */
@media (hover:none) and (pointer:coarse){
  .rhg-app .rhg-game-card:hover{transform:none;box-shadow:0 10px 26px rgba(25,73,62,.06)}
  .rhg-app .rhg-chip,.rhg-app .rhg-level,.rhg-app .rhg-primary,.rhg-app .rhg-outline,.rhg-app .rhg-display-choice,.rhg-app .rhg-visual-choice{min-height:50px}
  .rhg-app .rhg-chip:active,.rhg-app .rhg-level:active,.rhg-app .rhg-game-card:active{filter:brightness(.96)}
  .rhg-app .rhg-stage :is(.rhg-tool-btn,.rhg-hint-btn,.rhg-ready-button,.rhg-page-nav button){min-height:46px;min-width:46px}
  .rhg-app .rhg-stage :is(.rhg-cup,.rhg-symbol,.rhg-memory-cell,.rhg-seq-tile,.rhg-pair-card,.rhg-scatter-token):active:not(:disabled){filter:brightness(.93)}
}
/* Tablet portrait: 2-column catalogue and generous touch spacing. */
@media (min-width:600px) and (max-width:899px){
  .rhg-app .rhg-shell{padding:clamp(20px,3.2vw,30px)}
  .rhg-app .rhg-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
  .rhg-app .rhg-game-card{min-height:328px}
  .rhg-app .rhg-game-art{height:150px}
  .rhg-app .rhg-level{min-height:72px;font-size:15px}
  .rhg-app .rhg-chip{min-height:48px;font-size:14px}
  .rhg-app .rhg-fields{gap:17px}
  .rhg-app .rhg-stage .rhg-tool-btn{min-width:48px;min-height:48px;padding:8px 12px}
  .rhg-app .rhg-stage .rhg-game-status{padding-left:13px;padding-right:13px}
  .rhg-app .rhg-stage .rhg-prompt{font-size:clamp(19px,2.4vw,25px)}
  .rhg-app .rhg-stage .rhg-statrow>div{min-width:110px;padding:7px 11px}
}
/* Tablet landscape: show three proper cards instead of oversized two-column tiles. */
@media (min-width:900px) and (max-width:1199px){
  .rhg-app .rhg-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .rhg-app .rhg-game-card{min-height:325px}
  .rhg-app .rhg-game-art{height:143px}
  .rhg-app .rhg-game-card-body{padding:18px 17px 15px}
  .rhg-app .rhg-game-card-body strong{font-size:17px}
  .rhg-app .rhg-stage .rhg-tool-btn{min-width:48px;min-height:46px}
  .rhg-app .rhg-stage .rhg-prompt{font-size:clamp(18px,2.3vw,25px)}
}
/* Tablet screens in landscape with limited vertical room: protect the playfield. */
@media (min-width:600px) and (max-height:720px){
  .rhg-app .rhg-stage .rhg-gamebar{min-height:48px;max-height:56px;padding-top:3px;padding-bottom:3px}
  .rhg-app .rhg-stage .rhg-game-status{padding-top:3px;padding-bottom:4px}
  .rhg-app .rhg-stage .rhg-stage-foot{min-height:28px;max-height:40px;padding:3px 10px}
  .rhg-app .rhg-stage--pairs .rhg-pairs-topline{font-size:11px}
  .rhg-app .rhg-stage--cup .rhg-cup-helper{padding:4px 10px;font-size:11px}
  .rhg-app .rhg-stage--cup .rhg-cup-counter{min-height:26px;padding:4px 8px}
  .rhg-app .rhg-ready-guide{gap:5px}
  .rhg-app .rhg-ready-guide>div{padding:6px 9px}
}
@media (prefers-reduced-motion:reduce){
  .rhg-app .rhg-stage :is(.rhg-gamebar,.rhg-tool-btn,.rhg-page-nav button){transition:none!important}
}
