/* Only the new fixed overlay. No game/map/pyramid/hand widths or transforms. */
#tour-layer.tour666{position:fixed;inset:0;z-index:2147483000;pointer-events:none;color:#423b2b;font-family:'Trebuchet MS','Segoe UI',sans-serif;}
.tour666 .tour666-mask{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;}
.tour666 [hidden]{display:none!important;}
.tour666 .tour666-bar{position:absolute;left:12px;right:12px;bottom:12px;min-height:96px;box-sizing:border-box;border:14px solid transparent;border-image:url('../../assets/game/board_panel_clean.webp') 82 fill /14px stretch;padding:5px 13px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;pointer-events:auto;}
.tour666 .tour666-face{width:46px;height:55px;object-fit:contain;}
.tour666 .tour666-kicker{font-size:10px;letter-spacing:1px;color:#766a51;}
.tour666 .tour666-title{font:700 16px/1.2 Georgia,serif;margin-left:9px;color:#483c28;}
.tour666 .tour666-task{font-size:15px;line-height:1.35;margin:5px 0 0;min-height:21px;}
.tour666 .tour666-controls{display:flex;align-items:center;gap:7px;}
.tour666 button{pointer-events:auto;cursor:pointer;color:#443b2b;font:600 12px 'Trebuchet MS',sans-serif;min-height:36px;padding:8px 12px;border:0;background:transparent;}
.tour666 button:focus-visible{outline:2px solid #738b69;outline-offset:2px;}
.tour666 button:disabled{opacity:.45;cursor:default;}
.tour666 button.primary{min-width:90px;background:#d7e1c5 url('../../assets/game/plate_cream_clean.webp') center/100% 100%;font-size:14px;}
.tour666 .tour666-ready button.primary{background-color:#c7dbb8;}
.tour666 .tour666-help{position:absolute;right:20px;bottom:125px;width:min(370px,calc(100vw - 40px));max-height:calc(100dvh - 165px);overflow:auto;box-sizing:border-box;padding:16px 20px;border:12px solid transparent;border-image:url('../../assets/game/board_panel_clean.webp') 82 fill /12px stretch;pointer-events:auto;}
.tour666 .tour666-help h3{font:700 17px Georgia,serif;margin:0 0 9px;}
.tour666 .tour666-help p{font-size:12px;line-height:1.45;}
.tour666 .tour666-help button{display:block;width:100%;text-align:left;border-bottom:1px solid #ae9c7040;}
.tour666 .tour666-help .tour666-voice-state{font-size:11px;color:#756a54;}
.tour666 .tour666-bonus-card{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);padding:12px;background:#eee4c9;border:1px solid #a99668;border-radius:8px;pointer-events:auto;text-align:center;}
.tour666 .tour666-bonus-figure{position:relative;display:block;width:150px;height:100px;margin:auto;}
.tour666 .tour666-bonus-figure img{max-width:100%;height:100%;object-fit:contain;}
.tour666 .tour666-bonus-figure img.chest{position:absolute;left:100px;top:65px;width:28px;height:auto;}
.tour666 .tour666-bonus-card small{display:block;max-width:240px;font-size:11px;}
@media(max-width:1000px){.tour666 .tour666-bar{left:8px;right:8px;bottom:8px;gap:8px;padding:4px 9px;grid-template-columns:minmax(0,1fr) auto;}.tour666 .tour666-face{display:none;}.tour666 .tour666-task{font-size:13px;}.tour666 .tour666-controls{gap:2px;}.tour666 button{padding:7px;}.tour666 .tour666-title{font-size:15px;}}
@media(max-width:580px){.tour666 .tour666-bar{grid-template-columns:1fr;min-height:125px;gap:4px;border-width:10px;border-image-width:10px;}.tour666 .tour666-controls{justify-content:flex-end;}.tour666 .tour666-task{font-size:12px;margin-top:4px;}.tour666 .tour666-title{font-size:13px;}.tour666 .tour666-help{bottom:158px;max-height:calc(100dvh - 185px);}.tour666 button{min-height:31px;}.tour666 .tour666-kicker{font-size:9px;}}
@media(max-height:560px){.tour666 .tour666-bar{min-height:65px;border-width:9px;border-image-width:9px;bottom:5px;left:5px;right:5px;padding:3px 9px;gap:4px;}.tour666 .tour666-face{display:none;}.tour666 .tour666-task{font-size:12px;margin-top:2px;}.tour666 .tour666-help{bottom:90px;max-height:calc(100dvh - 115px);}}
/* Dialog-only safe area; no map/root/pyramid size mutation. Applies solely when
   a native dialog would otherwise run behind the small bottom strip. */
body.tutorial666-dialog-safe #game-overlay{padding-bottom:var(--tutorial666-clearance,120px);box-sizing:border-box;}
body.tutorial666-dialog-safe #game-overlay .game-dialog{max-height:calc(100dvh - var(--tutorial666-clearance,120px) - 28px);}

/* Docked choice dialogs start below the fixed header. Their remaining flex
   content height already excludes both that header and the tutorial strip. */
body.tutorial666-dialog-safe #game-overlay.pick-world .game-dialog{max-height:100%;}
