/* PREMIUM-UI-V4: shared cosmetic tokens, deliberately scoped; no game globals. */
body[data-premium-v4]{--v4-ink:#2a1b3d;--v4-muted:#5b4b6b;--v4-purple:#6c3bff;--v4-pink:#db2777;--v4-gold:#b98714;--v4-line:#c9b2d6;--v4-lip:#e3d0ea;--v4-face:linear-gradient(160deg,#fff 0%,#fff7fc 52%,#f0e9ff 100%);--v4-action:linear-gradient(135deg,#6c3bff,#8c32cb 55%,#b92370)}
/* An ID-scoped reset prevents every game's h1/button/radio globals reaching the gate. */
#amzc-age-entry.amzc-age-panel{isolation:isolate;position:relative;box-sizing:border-box;width:calc(100% - 28px);max-width:490px;margin:clamp(18px,7vh,72px) auto;padding:clamp(20px,5vw,32px);border:1.5px solid #c9b2d6;border-radius:28px;color:#2a1b3d;background:radial-gradient(ellipse at 100% 0%,#ffe4d6aa,transparent 65%),linear-gradient(145deg,#ffffffed,#fdf2f8f5 60%,#ede9fef0);box-shadow:inset 0 2px 0 #fff,0 5px 0 #e3d0ea,0 24px 55px -30px #6d426d66;font:400 15px/1.5 'Segoe UI',system-ui,sans-serif;text-align:left;overflow-wrap:anywhere}
#amzc-age-entry #amzc-age-title{display:block;position:static;width:auto;height:auto;margin:0 0 12px;padding:0;max-width:none;color:#2a1b3d;background:none;-webkit-text-fill-color:currentColor;font:800 clamp(24px,6vw,30px)/1.15 'Segoe UI',system-ui,sans-serif;letter-spacing:-.035em;text-shadow:none;text-align:left}
#amzc-age-entry>p{margin:0 0 10px;color:#5b4b6b;font:400 14px/1.5 'Segoe UI',system-ui,sans-serif}
#amzc-age-entry #amzc-age-form{display:block;margin:20px 0 0;width:100%}
#amzc-age-entry fieldset{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:0;padding:0;margin:0;min-width:0}
#amzc-age-entry legend{float:none;width:100%;margin:0 0 10px;padding:0;color:#2a1b3d;font:700 14px/1.5 'Segoe UI',system-ui,sans-serif}
#amzc-age-entry label{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:85px;margin:0;padding:12px 6px;border:1.5px solid #9c86ae;border-radius:16px;background:linear-gradient(160deg,#fff,#f6eafa);color:#2a1b3d;font:700 14px/1.3 'Segoe UI',system-ui,sans-serif;text-align:center;box-shadow:inset 0 2px 0 #fff,0 3px 0 #e3d0ea;cursor:pointer;transition:transform 160ms,border-color 160ms,background 160ms}
#amzc-age-entry label:has(input:checked){border-color:#835e0c;background:linear-gradient(145deg,#fff9dd,#fce4f4 75%,#ebddff);box-shadow:inset 0 2px 0 #fff,0 3px 0 #c4a24f}
#amzc-age-entry input[type=radio]{appearance:auto;position:static;opacity:1;width:18px;height:18px;margin:0;accent-color:#6c3bff;transform:none;clip:auto}
#amzc-age-entry label:has(input:focus-visible){outline:3px solid #6c3bff;outline-offset:3px}
#amzc-age-entry button[type=submit]{display:block;width:100%;min-height:48px;height:auto;margin:18px 0 0;padding:12px 18px;border:1.5px solid #99730e;border-radius:15px;background:linear-gradient(175deg,#fff5b8,#f9d369 60%,#e9b73e);color:#39234b;font:800 16px/1.4 'Segoe UI',system-ui,sans-serif;box-shadow:inset 0 2px 0 #fff9dd,0 4px 0 #b98714;cursor:pointer;transition:transform 160ms}
#amzc-age-entry button:disabled{opacity:.6;cursor:wait}
#amzc-age-entry button:active:not(:disabled){transform:translateY(2px)}
#amzc-age-entry #amzc-age-message{font:600 14px/1.5 'Segoe UI',system-ui,sans-serif;margin:14px 0 0;min-height:0;color:#5b294c}
#amzc-age-entry #amzc-age-message:empty{margin:0}
#amzc-age-entry>a{display:flex;justify-content:center;align-items:center;min-height:44px;margin:12px 0 0;color:#6330b3;font:700 14px/1.4 'Segoe UI',system-ui,sans-serif;text-decoration:underline;text-underline-offset:4px}
#amzc-age-entry :focus-visible,#amzc-age-reset:focus-visible{outline:3px solid #6c3bff;outline-offset:3px}
body[data-premium-v4]:has(#amzc-age-entry:not([hidden])){display:flow-root;background:radial-gradient(ellipse at 10% 10%,#ffe6f1,transparent 65%),radial-gradient(ellipse at 90% 90%,#fff0cc,transparent 65%),#f6effc}
/* Same gallery treatment on Home and the already-consolidated Premium V3 hub. Original SVGs retained. */
body[data-premium-v4] #catalog .card{border:1.5px solid #c9b2d6;border-radius:26px;background:linear-gradient(155deg,#fff9fd,#f8efff 70%,#fff1dd);box-shadow:inset 0 2px 0 #fff,0 5px 0 #cbb6d7,0 18px 30px -23px #2a1b3d90;transition:transform 180ms,box-shadow 180ms;overflow:hidden}
body[data-premium-v4] #catalog .card-art{background:radial-gradient(ellipse at 35% 15%,#ffffffcf,transparent 55%),linear-gradient(145deg,#f5e4fa,#fbe6ed 55%,#fff0cc);border-bottom:1px solid #e7d8ec}
body[data-premium-v4] #catalog .card-body{color:#2a1b3d}
body[data-premium-v4] #catalog .card h3{color:#2a1b3d;text-shadow:0 1px #fff}
body[data-premium-v4] #catalog .card .description{color:#5b4b6b}
body[data-premium-v4] #catalog .card .eyebrow{color:#8c245f}
body[data-premium-v4] #catalog .card .badge{color:#5b365f;background:#f1e3fa;border-color:#c9b2d6}
body[data-premium-v4] #catalog .card .play{min-height:44px;border:1.5px solid #d4af37;background:var(--v4-action);color:#fff;box-shadow:inset 0 1px 0 #ffffff66,0 3px 0 #51218d;border-radius:13px;text-shadow:none}
body[data-premium-v4] #catalog .card .play:focus-visible{outline:3px solid #6c3bff;outline-offset:4px}
@media(hover:hover){body[data-premium-v4] #catalog .card:hover{transform:translateY(-4px);box-shadow:inset 0 2px #fff,0 7px 0 #cbb6d7,0 24px 35px -23px #2a1b3d90}#amzc-age-entry label:hover{transform:translateY(-2px)}}
/* Word Predictor only: preserve Step 80 sizing, semantic feedback colours and every gameplay control. */
body[data-premium-game="word-predictor"] #amzc-age-game .game{border-color:#c9b2d6;background:linear-gradient(150deg,#ffffffed,#fff6fbed 65%,#f5eeffed);box-shadow:inset 0 2px #fff,0 5px 0 #e3d0ea,0 30px 65px -35px #7e448b66}
body[data-premium-game="word-predictor"] #amzc-age-game .title-text{color:#632da4;text-shadow:0 2px #fff}
body[data-premium-game="word-predictor"] #amzc-age-game .length-picker{border-color:#c9b2d6;background:linear-gradient(160deg,#fff,#efe4f5);box-shadow:inset 0 1px #fff,0 2px 0 #e3d0ea}
body[data-premium-game="word-predictor"] #amzc-age-game .segment input:checked+span{background:var(--v4-action);color:#fff;border-color:#d4af37;box-shadow:inset 0 1px #ffffff66,0 2px #51218d}
body[data-premium-game="word-predictor"] #amzc-age-game :is(#new-word,#hint){background:var(--v4-action);color:#fff;border-color:#d4af37;box-shadow:inset 0 1px #ffffff66,0 3px #51218d}
body[data-premium-game="word-predictor"] #amzc-age-game #new-word .btn-icon{color:inherit}
body[data-premium-game="word-predictor"] #amzc-age-game .wp-clue{background:linear-gradient(140deg,#fff8e3,#fff3fa);border-color:#c8aa5f;box-shadow:inset 0 1px #fff}
body[data-premium-game="word-predictor"] #amzc-age-game .progress{color:#4e3066}
body[data-premium-game="word-predictor"] #amzc-age-game .tile:not(.state-correct,.state-present,.state-absent){background:var(--v4-face)}
body[data-premium-game="word-predictor"] #amzc-age-game .key:not(.key-action,.state-correct,.state-present,.state-absent){background:linear-gradient(175deg,#fff,#f1e6f8);box-shadow:inset 0 2px #fff,0 3px #d5bedf}
body[data-premium-game="word-predictor"] #amzc-age-game :is(.btn,.key,.segment):focus-visible{outline:3px solid #6c3bff;outline-offset:3px}
/* Do not alter Color Puzzle or other game selectors. Motion is finite interaction feedback only. */
@media(prefers-reduced-motion:reduce){body[data-premium-v4] #catalog .card,#amzc-age-entry label,#amzc-age-entry button{transition:none;transform:none!important}}
@media(max-width:350px){#amzc-age-entry.amzc-age-panel{width:calc(100% - 20px);padding:20px 16px;border-radius:22px}#amzc-age-entry fieldset{gap:6px}#amzc-age-entry label{font-size:13px;padding-inline:3px}}
/* V51-LIVE-01: keep the WP header bar and age reset above the fixed ambient decoration (tiles overlapped header controls). */
body[data-premium-game="word-predictor"] .acr-bar,body[data-premium-game="word-predictor"] .amzc-age-reset{position:relative;z-index:2}
