/* The companion is furniture around the activity, never a competing game. */
.bkc-sprite{display:inline-block;flex:none;width:112px;aspect-ratio:1;background-image:url('immersive/booriko-compagnon.webp');background-size:300% 200%;background-position:0 0;background-repeat:no-repeat;filter:drop-shadow(0 5px 8px #15364c22)}
.bkc-sprite[data-pose="1"]{background-position:50% 0}.bkc-sprite[data-pose="2"]{background-position:100% 0}.bkc-sprite[data-pose="3"]{background-position:0 100%}.bkc-sprite[data-pose="4"]{background-position:50% 100%}.bkc-sprite[data-pose="5"]{background-position:100% 100%}
.bki-hud .bkc-counter,.bkl-dialog .bkc-game-counter{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:1px solid #efb667;border-radius:14px;background:#fff4df;color:#17354e;padding:5px 10px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap;text-decoration:none}
.bki-hud .bkc-counter-name{font-size:13px}.bkl-dialog .bkc-game-counter{padding:0 7px 0 0;min-height:36px;font-size:14px;flex-shrink:0}.bkc-game-counter .bkc-sprite{width:36px}.bkl-dialog .bkl-room-brand{gap:8px}
.bkc-modal{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px 26px 20px;border:1px solid #f1ca90;border-radius:28px;background:linear-gradient(155deg,#fffef8,#fff8e9);color:#17354e;box-shadow:0 22px 90px #10283c66;font-family:Manrope,system-ui,sans-serif;text-align:center;overflow:auto;margin:auto;animation:bkc-arrive .24s ease-out}
.bkc-modal::backdrop{background:#10283c99;backdrop-filter:blur(5px)}.bkc-modal *{box-sizing:border-box}.bkc-modal .bkc-close{display:block;margin:0 0 0 auto;background:transparent;border:0;color:#36516a;min-height:32px;cursor:pointer;font:inherit;font-size:13px;padding:4px 6px}.bkc-modal .bkc-eyebrow{margin:0 0 2px;color:#785419;font-size:11px;font-weight:800;letter-spacing:.14em}.bkc-modal>.bkc-sprite{width:140px;max-width:38vw;margin:2px auto 0}.bkc-modal h2{font-size:25px;line-height:1.2;margin:4px 0 12px;font-weight:850;letter-spacing:-.035em}.bkc-modal p{line-height:1.5}.bkc-modal .bkc-intro{font-size:15px;margin:0 0 12px}.bkc-modal .bkc-total{display:inline-block;background:#ffdf9b;border:1px solid #eebd69;border-radius:12px;padding:7px 14px;font-weight:850;font-size:18px;margin:0 0 6px}.bkc-modal .bkc-next{margin:4px 0 8px;color:#4f6070;font-size:13px}.bkc-modal progress{display:block;width:100%;height:10px;border:0;border-radius:30px;overflow:hidden;accent-color:#e57d12;background:#e5e9e9}.bkc-modal progress::-webkit-progress-bar{background:#e5e9e9}.bkc-modal progress::-webkit-progress-value{background:linear-gradient(90deg,#ffb63e,#ed8514);border-radius:30px}.bkc-modal progress::-moz-progress-bar{background:#ed8514}
.bkc-modal .bkc-done{display:block;width:100%;min-height:46px;background:#ffae36;border:1px solid #dd8115;border-bottom-width:3px;border-radius:14px;padding:10px 14px;color:#16354d;cursor:pointer;font:inherit;font-size:15px;font-weight:800;margin:17px 0 7px}.bkc-modal .bkc-time-note{font-size:11px;color:#5c6d78;display:block}.bkc-modal button:focus-visible,.bkc-modal summary:focus-visible,.bkc-counter:focus-visible,.bkc-game-counter:focus-visible{outline:3px solid #2763c8;outline-offset:3px}.bkc-tiers{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:14px 0 10px;gap:7px}.bkc-tiers li{display:flex;flex-direction:column;justify-content:space-between;gap:4px;border:1px solid #d6dfe2;border-radius:12px;padding:9px 4px;font-size:11px;background:#fff}.bkc-tiers strong{font-size:15px}.bkc-tiers small{font-size:10px;color:#5a6d78}.bkc-tiers .is-earned{border-color:#70a891;background:#e9f4ed}.bkc-modal details{text-align:left;border-top:1px solid #e1d9c6;padding-top:10px;font-size:12px}.bkc-modal summary{cursor:pointer;min-height:28px;font-weight:700}.bkc-modal details p{font-size:12px;margin:6px 0}
.bkl-dialog .bkc-reaction{display:flex;align-items:center;gap:10px;text-align:left;border-bottom:1px solid #e8dac2;padding:0 0 7px;margin:0 0 8px}.bkc-reaction .bkc-sprite{width:60px}.bkl-dialog .bkc-reaction p{margin:0;font-size:14px;line-height:1.35}.bkc-reaction strong,.bkc-reaction p span{display:block}.bkc-reaction p span{font-size:12px;color:#536e78;margin-top:3px}
@keyframes bkc-arrive{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:600px){.bki-hud .bkc-counter{padding:3px 8px;min-height:34px}.bki-hud .bkc-counter-name{display:none}.bkl-dialog .bkc-game-counter{font-size:12px;gap:3px;min-height:30px}.bkc-game-counter .bkc-sprite{width:28px}.bkl-dialog .bkl-room-brand{gap:6px}.bkc-reaction .bkc-sprite{width:46px}.bkl-dialog .bkc-reaction p{font-size:13px}}
@media(max-height:650px){.bkc-modal{padding:12px 20px 13px}.bkc-modal>.bkc-sprite{width:88px}.bkc-modal h2{font-size:21px;margin:0 0 8px}.bkc-modal .bkc-intro{font-size:13px;margin-bottom:8px}.bkc-modal .bkc-total{font-size:16px}.bkc-modal .bkc-done{margin-top:10px}.bkc-tiers{margin-top:8px}.bkc-modal .bkc-close{min-height:26px}}
@media(max-height:450px){.bkc-modal{width:min(580px,calc(100vw - 24px));padding:12px 22px}.bkc-modal>.bkc-sprite{float:left;width:100px;margin:0 16px 0 0}.bkc-modal h2{font-size:20px}.bkc-modal .bkc-eyebrow{text-align:left}.bkc-modal .bkc-done{margin-top:10px}.bkc-modal .bkc-intro{font-size:12px}.bkc-modal .bkc-next{font-size:11px;margin:1px 0 5px}.bkc-modal .bkc-total{padding:4px 12px}.bkc-modal .bkc-close{position:absolute;right:10px;top:6px}.bkc-modal .bkc-eyebrow{padding-right:50px}.bkc-tiers{clear:both}}
@media(prefers-reduced-motion:reduce){.bkc-modal{animation:none}}
.bkc-carrot{display:inline-block;width:22px;height:22px;flex:none;vertical-align:middle;background:url('carrot.svg') center/contain no-repeat}.bkc-total .bkc-carrot{margin-right:6px}.bkc-tiers .bkc-carrot{width:17px;height:17px;margin-left:3px}
.bki-body dialog.bkl-player>header .bkc-game-counter{padding:0 6px 0 0;min-height:34px;gap:4px;background:#fff4df;border-color:#eab46b;font-size:12px}.bkc-game-counter .bkc-carrot{width:16px;height:16px}
/* Feedback remains a readable compact panel, including the Continue control. */
.bki-body dialog.bkl-player [data-stage=correction]>.bkl-feedback{padding:14px;gap:10px;min-height:0;overflow:auto;flex-shrink:1}
.bki-body dialog.bkl-player .bkl-feedback>p{margin:0!important;font-size:16px;line-height:1.4}
.bki-body dialog.bkl-player .bkl-feedback>.bkl-question-recap{font-size:14px;line-height:1.35}
.bki-body dialog.bkl-player .bkl-feedback>h3{margin:0!important;font-size:20px;line-height:1.25}
.bki-body dialog.bkl-player .bkl-feedback>.bkl-button{margin:2px 0 0;flex-shrink:0}
.bki-body dialog.bkl-player .bkc-reaction{gap:8px;padding-bottom:6px;margin:0;flex-shrink:0}
.bki-body dialog.bkl-player .bkc-reaction p{font-size:14px!important;margin:0!important;line-height:1.3}
.bki-body dialog.bkl-player .bkc-reaction .bkc-sprite{width:48px}
@media(max-height:650px){.bki-body dialog.bkl-player [data-stage=correction]>.bkl-feedback{padding:10px;gap:8px}.bki-body dialog.bkl-player .bkl-feedback>p{font-size:15px}.bki-body dialog.bkl-player .bkl-feedback>h3{font-size:18px}.bki-body dialog.bkl-player .bkl-feedback>.bkl-button{min-height:44px;padding:8px}.bki-body dialog.bkl-player .bkc-reaction .bkc-sprite{width:40px}}
.bki-mascot.bkc-room-sprite{background-image:url('immersive/booriko-compagnon.webp');background-size:300% 200%;background-repeat:no-repeat;background-color:transparent;border:0;border-radius:0;box-shadow:none;width:100px;height:100px;pointer-events:none}
@media(max-width:520px){
 .bki-hud{flex-wrap:wrap;padding:5px 10px;gap:0 8px}
 .bki-hud .bki-brand img{height:27px}
 .bki-hud .bki-profile{flex:1;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
 .bki-hud nav{flex:1 0 100%;width:100%;justify-content:space-between;gap:3px}
 .bki-hud nav a{min-height:32px;padding:5px 7px}
 .bki-hud .bkc-counter{min-height:30px;padding:2px 8px;font-size:12px}
 .bki-body .bkchild-clock{top:91px}
 .bki-welcome{top:132px}
 .bki-corridor{top:82px}
 .bki-mascot.bkc-room-sprite{width:76px;height:76px}
}
.bkl-dialog:has([data-stage="complete"]) [data-bkchild-pause]{display:none}
