/* Pixel3DLab Games accessibility bridge v28. The global accessibility toolbar
   already stores these body classes; this file makes the controls effective on Games. */

/* Larger text: keep headings visibly hierarchical and scale the compact UI labels/copy. */
body.a11y-text-large .pgh-page .pgh-hero h1 { font-size:clamp(44px,6.2vw,76px)!important; line-height:1.06!important; }
body.a11y-text-large .pgh-page .pgh-section-heading h2 { font-size:clamp(30px,3.5vw,40px)!important; }
body.a11y-text-large .pgh-page .pgh-group-heading h3 { font-size:24px!important; }
body.a11y-text-large .pgh-page .pgh-game-content h4 { font-size:21px!important; }
body.a11y-text-large .pgh-page :is(.pgh-kicker,.pgh-hero-copy>p,.pgh-hero-note,.pgh-primary-action,.pgh-secondary-action,.pgh-visual-card-label,.pgh-visual-card small,.pgh-visual-chip,.pgh-hero-index,.pgh-overview-item strong,.pgh-overview-item small,.pgh-section-eyebrow,.pgh-section-heading p,.pgh-list-count,.pgh-filter-bar button,.pgh-group-heading>div>span,.pgh-group-heading p,.pgh-originals-label,.pgh-genre,.pgh-status,.pgh-game-description,.pgh-game-meta,.pgh-tag-row span,.pgh-card-footer small,.pgh-play-link,.pgh-card-footer button,.pgh-account-panel-copy p,.pgh-account-status,.pgh-account-link,.pgh-account-secondary,.pgh-dialog-summary,.pgh-dialog-detail,.pgh-dialog-facts small,.pgh-dialog-facts strong,.pgh-dialog-footer) { font-size:calc(1em + 2px)!important; }
body.a11y-text-large .plg-dots-shell .dots-hero h1 { font-size:clamp(36px,4.6vw,50px)!important; }
body.a11y-text-large .plg-dots-shell :is(.plg-dots-back,.plg-dots-account,.plg-dots-fullscreen,.eyebrow,.page-subtitle,.dots-room-status strong,.dots-room-status small,.dots-room-actions .button,.dots-code-pill small,.dots-code-pill strong,.dots-player-info small,.dots-player-info strong,.dots-player-info span,.dots-vs strong,.dots-vs small,.dots-board-heading h2,.dots-turn-pill,.dots-board-footer,.dots-side-head,.tiny-badge,.dots-rules li>span,.dots-rules strong,.dots-rules small,.dots-side-card p,.dots-side-card>small,.entry-brand strong,.entry-brand small,.entry-panel h2,.entry-intro,.entry-account-row small,.entry-account-row strong,.entry-label,.entry-select,.entry-size-hint,.entry-continue,.entry-cancel,.entry-footnote,.game-result-panel h2,.game-result-text,.toast,.chat-ready-tag,.chat-empty,.chat-bubble-head,.chat-bubble-text,.chat-send-row input,.chat-char-count,.chat-footnote) { font-size:calc(1em + 2px)!important; }
body.a11y-text-large .plg-dots-shell .dots-score-number { font-size:27px!important; }
body.a11y-text-large .plg-dots-shell .dots-board-overlay strong { font-size:22px!important; }

/* High contrast: remove subdued glass surfaces and use clear yellow borders/focus rings. */
body.a11y-contrast .pgh-page { --pgh-line:#ff0!important; --pgh-muted:#fff!important; color:#fff!important; }
body.a11y-contrast .pgh-page .pgh-hero { background:#000!important; border:2px solid #ff0!important; }
body.a11y-contrast .pgh-page :is(.pgh-overview-item,.pgh-filter-bar,.pgh-game-card,.pgh-account-panel) { background:#000!important; border:2px solid #ff0!important; color:#fff!important; }
body.a11y-contrast .pgh-page :is(h1,h2,h3,h4,p,span,small,strong,.pgh-genre,.pgh-status,.pgh-game-meta,.pgh-account-status,.pgh-dialog-summary,.pgh-dialog-detail) { color:#fff!important; text-shadow:none!important; }
body.a11y-contrast .pgh-page .pgh-hero h1 span { color:#ff0!important; }
body.a11y-contrast .pgh-page :is(.pgh-primary-action,.pgh-play-link,.pgh-dialog-play) { color:#000!important; background:#ff0!important; border:2px solid #ff0!important; }
body.a11y-contrast .pgh-page :is(a,button):focus-visible { outline:3px solid #ff0!important; outline-offset:4px!important; }
body.a11y-contrast .pgh-game-dialog .pgh-dialog-inner { color:#fff!important; background:#000!important; border:2px solid #ff0!important; }
body.a11y-contrast .plg-dots-shell { --page:#000!important; --text:#fff!important; --muted:#fff!important; --soft:#fff!important; --line:#ff0!important; --line-strong:#ff0!important; --glass:#000!important; --glass-strong:#050505!important; --field:#000!important; --accent:#ff0!important; --accent-soft:#292900!important; --accent-ink:#000!important; --danger:#ff8b8b!important; color:#fff!important; }
body.a11y-contrast .plg-dots-shell :is(.glass-panel,.entry-panel,.game-result-panel,.chat-messages,.chat-bubble,.dots-canvas-wrap) { background-color:#000!important; border-color:#ff0!important; color:#fff!important; }
body.a11y-contrast .plg-dots-shell .button-primary { background:#ff0!important; color:#000!important; border-color:#ff0!important; }
body.a11y-contrast .plg-dots-shell :is(button,a,input,select):focus-visible { outline:3px solid #ff0!important; outline-offset:4px!important; }

/* The remaining accessibility modes are also applied inside canvas-adjacent UI. */
body.a11y-highlight-links .pgh-page a,
body.a11y-highlight-links .plg-dots-shell a { text-decoration:underline!important; text-decoration-thickness:3px!important; text-underline-offset:3px!important; }
body.a11y-highlight-links .pgh-page :is(a,button):focus-visible,
body.a11y-highlight-links .plg-dots-shell :is(a,button,input,select):focus-visible { outline:3px solid #ffeb3b!important; outline-offset:4px!important; }
body.a11y-dyslexia .pgh-page,
body.a11y-dyslexia .pgh-page *,
body.a11y-dyslexia .plg-dots-shell,
body.a11y-dyslexia .plg-dots-shell * { font-family:"Trebuchet MS",Verdana,sans-serif!important; letter-spacing:.035em!important; word-spacing:.10em!important; line-height:1.7!important; }
body.a11y-no-animations .pgh-page *,
body.a11y-no-animations .pgh-page *::before,
body.a11y-no-animations .pgh-page *::after,
body.a11y-no-animations .plg-dots-shell *,
body.a11y-no-animations .plg-dots-shell *::before,
body.a11y-no-animations .plg-dots-shell *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; transform:none!important; }

/* Direct launch affordance for the one playable community game. */
.pgh-game-card[data-game-key="kaesekaestchen"] { cursor:pointer; }
.pgh-game-card[data-game-key="kaesekaestchen"] .pgh-play-link { position:relative; z-index:2; }

.pgh-card-title-link { color:inherit; text-decoration:none; }
.pgh-card-title-link:hover,.pgh-card-title-link:focus-visible { color:var(--pl-accent,#3ea0ff); text-decoration:underline; text-underline-offset:4px; }
