#instruction-screen { display:none; text-align:center; }
.instruction-step { color:#765179; font-size:12px; font-weight:700; margin:24px 0 12px; text-transform:uppercase; letter-spacing:2px; }
.instruction-dots { display:flex; justify-content:center; gap:8px; margin-bottom:24px; }
.instruction-dots span { height:5px; width:40px; border-radius:8px; background:#e8d9ed; }
.instruction-dots .active { background:#b830a7; }
.instruction-icon { width:100px; height:100px; margin:0 auto 24px; display:grid; place-items:center; border-radius:30px; background:linear-gradient(140deg,#f8e5f7,#e6f4ff); color:#913c99; font-family:'Syne',sans-serif; font-size:36px; font-weight:800; white-space:nowrap; line-height:1; border:1px solid #fff; }
#instruction-screen h1 { font-size:28px; line-height:1.15; margin:0 0 16px; outline:none; }
.instruction-copy { color:#634c6a; font-size:15px; line-height:1.65; margin-bottom:24px; }
.instruction-ready { display:block; margin-top:20px; font-size:26px; font-weight:800; line-height:1.25; text-align:center; }
.instruction-back { background:transparent; color:#765179; border:0; padding:14px 24px; font:inherit; cursor:pointer; }
.instruction-back[hidden] { display:none; }
.badge-board { display:none !important; }
#no-q-screen .badge-board,
#end-screen .badge-board,
#bonus-result-finale .badge-board { display:block !important; }
#player-stats-question { display:none !important; }
.milestone-next { display:grid; gap:8px; color:#66406e; padding:12px; border-radius:14px; background:rgba(255,255,255,.65); font-size:12px; }
.milestone-next span { font-size:11px; }
.milestone-next progress { width:100%; height:7px; accent-color:#ad369f; }
.bonus-card .badge-board { margin-top:16px; padding:14px; border-radius:18px; background:rgba(255,255,255,.45); text-align:left; }
.bonus-card .badge-board-title { font-size:12px; font-weight:800; margin-bottom:10px; }
.bonus-card .badge-list { display:grid; gap:8px; }
.bonus-card .badge-chip { display:flex; align-items:center; gap:10px; padding:10px; border-radius:14px; background:rgba(255,255,255,.72); }
.bonus-card .badge-chip-icon { display:grid; place-items:center; flex:0 0 32px; height:32px; border-radius:10px; background:#e9e4ff; font-weight:800; }
.bonus-card .badge-chip-name { font-size:12px; font-weight:800; }
.bonus-card .badge-chip-text { font-size:11px; line-height:1.5; color:#68596b; }
.micro-toast-stack { top:auto; bottom:16px; pointer-events:none; padding-bottom:env(safe-area-inset-bottom,0px); }
@media (max-width:430px) { #instruction-screen h1 {font-size:25px;} .instruction-icon {width:80px;height:80px;margin-bottom:18px;font-size:28px;} }
.institution-picker {text-align:left; margin-bottom:14px;}
#institution-options {max-height:var(--institution-list-height,135px);scrollbar-gutter:stable;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b29bc9 #f4eff9;border:1px solid #d7c4e5;border-radius:12px;background:#fff;margin-top:6px;}
#institution-options::-webkit-scrollbar {width:6px;}
#institution-options::-webkit-scrollbar-thumb {background:#b29bc9;border-radius:6px;}
#institution-options::-webkit-scrollbar-track {background:#f4eff9;}
#institution-options[hidden] {display:none;}
#institution-options button {display:block;width:100%;min-height:44px;text-align:left;border:0;border-bottom:1px solid #eee5f4;background:white;color:#493154;padding:12px;font:13px/1.5 system-ui;cursor:pointer;}
#institution-options button:hover,#institution-options button[aria-selected="true"] {background:#f2e6f8;}
#institution-status {font:12px/1.5 system-ui;color:#705377;margin:8px 0;}
#institution-retry {padding:4px 0;font-size:11px;text-decoration:underline;}
#institution-retry[hidden] {display:none;}

.after-game-actions{display:grid;gap:12px;margin-top:18px}.after-game-actions[hidden],.after-game-link[hidden]{display:none}.after-game-link{display:block;padding:16px 18px;border:1px solid #ddd0f8;border-radius:16px;background:linear-gradient(120deg,#fff5fb,#f1edff);color:#513471;text-decoration:none;text-align:center}.after-game-link strong{display:block;font-size:17px;color:#8047b0}.after-game-link span{display:block;font-size:13px;margin-top:4px}.after-game-link:focus-visible{outline:3px solid #9962db;outline-offset:3px}

.player-help-row{display:flex;justify-content:flex-end;margin:-8px 0 6px}.player-help-button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #d7c7ed;border-radius:50%;background:#f4edff;color:#7946aa;font:800 24px/1 system-ui;cursor:pointer}.player-help-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:380px;margin:auto;padding:28px 24px;border:1px solid #ded0f4;border-radius:24px;background:#fffaff;color:#392b59;text-align:center;box-shadow:0 20px 60px #24133f40}.player-help-dialog::backdrop{background:#20103480}.player-help-dialog h2{font-size:23px;line-height:1.25;margin:0 0 16px}.player-help-dialog p{font-size:16px;line-height:1.6;margin:0 0 22px}.player-help-close{border:0;border-radius:14px;padding:13px 24px;min-height:44px;color:#fff;background:linear-gradient(120deg,#fc3b80,#8960ed);font:700 16px system-ui;cursor:pointer}.player-help-button:focus-visible,.player-help-close:focus-visible{outline:3px solid #8c59d9;outline-offset:3px}

body.after-game-separated{flex-direction:column}.after-game-actions{width:100%;max-width:var(--screen-card-width);margin-top:24px;position:relative;z-index:1;flex-shrink:0}.after-game-actions.after-game-home{max-width:500px}.after-game-actions .after-game-link{padding:20px 22px;border-radius:20px;background:linear-gradient(120deg,#fff5fb,#f1edff);box-shadow:0 12px 32px #24133f20}
.player-help-dialog #player-help-copy{text-align:center}.player-help-dialog #player-help-copy span{display:block}
