#h5-game-links, #h5-game-error {font: 500 14px/1.4 system-ui, sans-serif; color: #f4f6ff;}
#h5-game-links {position: fixed; right: max(4px, env(safe-area-inset-right)); bottom: max(4px, env(safe-area-inset-bottom)); z-index: 30; background: #141a2c; border: 1px solid #667396; border-radius: 7px;}
#h5-game-links summary {cursor: pointer; padding: 4px 10px; color: #f4f6ff;}
#h5-game-links[open] summary {border-bottom: 1px solid #46516f;}
#h5-game-links nav {display: grid;}
#h5-game-links a, #h5-game-error a {display: inline-block; color: #96f2f2; padding: 8px 12px; text-decoration: underline;}
#h5-game-links :focus-visible, #h5-game-error :focus-visible {outline: 3px solid #ffc857; outline-offset: -3px;}
#h5-game-error {position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow: auto; padding: 12px; box-sizing: border-box; background: #0e1424;}
#h5-game-error > div {max-width: 28rem; padding: 16px;}
#h5-game-error h1 {font-size: clamp(20px, 5vw, 29px); margin: 0 0 8px;}
#h5-game-error p {margin: 0 0 12px;}
#h5-game-error button {cursor: pointer; color: #071416; background: #8af2ef; border: 0; padding: 9px 16px; border-radius: 6px; font: inherit;}
html[data-h5-ad-active="true"] #h5-game-links, html[data-h5-ad-active="true"] #h5-game-error,
html[data-game-load-failed="true"] #h5-game-links {display: none;}

.h5-screen-reader, #h5-title-actions:not(:focus-within) {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}
#h5-title-actions:focus-within {
  position:fixed; z-index:32; top:max(8px,env(safe-area-inset-top)); left:max(8px,env(safe-area-inset-left));
  display:flex; flex-wrap:wrap; gap:6px; max-width:90vw; padding:6px; border-radius:7px; background:#141a2c;
}
#h5-title-actions button {font:600 16px/1.4 system-ui,sans-serif; padding:8px 14px; color:#112134; background:#acf4ec; border:0; border-radius:4px;}
#h5-title-actions button:focus-visible {outline:3px solid #ffc857; outline-offset:2px;}
html[data-h5-ad-active="true"] #h5-title-actions, html[data-game-load-failed="true"] #h5-title-actions {display:none;}
