/* A soft scene, a clear question, and one generous frosted drop window. */
.fog-backdrop{position:fixed;inset:-18px;z-index:-1;pointer-events:none;background:#e5c391 url('art/kindness-stage-v4.webp') 40% center/cover no-repeat;filter:blur(9px);transform:scale(1.04)}
.fog-backdrop::after{content:'';position:absolute;inset:0;background:linear-gradient(#fff6db35,#fff3d325 60%,#a76b2c30)}
body.room-adventure.feelings-fog-active .story-world-backdrop{visibility:hidden}
body.room-adventure.feelings-fog-active #playScreen{display:block!important;height:100%!important;min-height:0!important;overflow:auto!important;padding:0!important}
body.room-adventure.feelings-fog-active #playScreen .story-window{display:none!important}
body.room-adventure.feelings-fog-active #playScreen .play-world{display:block!important;height:100%!important}
body.room-adventure.feelings-fog-active #gameBoard{position:relative;height:100%!important;width:100%!important;display:block!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
body.room-adventure.feelings-fog-active #gameBoard .mini-heading{position:absolute;top:0;right:6px;width:auto;min-height:28px;padding:0;z-index:40;pointer-events:none}
body.room-adventure.feelings-fog-active #gameBoard .mini-heading :is(.eyebrow,#listen){display:none!important}
body.room-adventure.feelings-fog-active #roundCount{font-size:14px;padding:5px 14px!important;background:#fff8e8ee;border-radius:22px}
body.room-adventure.feelings-fog-active #feedback{display:none}
body.room-adventure.feelings-fog-active #roundBoard.feelings-fog{display:grid!important;position:relative;isolation:isolate;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) 24px!important;align-items:center;justify-items:center;gap:12px 24px!important;padding:32px 14px 4px!important;height:100%!important;min-height:0!important;overflow:visible!important}
.fog-question{grid-column:1/-1;grid-row:1;position:relative;z-index:300;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:14px;width:max-content;max-width:95%;min-height:48px!important;padding:14px 30px!important;color:#174f48!important;background:#fff8e8f5!important;border:0!important;border-radius:42% 38% 35% 39% / 26% 42% 30% 41%!important;box-shadow:0 5px 0 #a8844a40!important;text-align:center;touch-action:manipulation}
.fog-title{font:clamp(27px,3.5vw,48px)/1.12 Froople,'Trebuchet MS',sans-serif!important;margin:0!important;text-wrap:balance}
.fog-speaker{font-size:clamp(24px,3vw,38px);flex:none}
.fog-mirror{grid-column:1;grid-row:2;position:relative;isolation:isolate;display:block!important;height:100%;width:min(100%,420px);min-height:140px!important;max-height:100%;min-width:140px;aspect-ratio:4/5;padding:0!important;overflow:hidden;border:4px dashed #fffc!important;border-radius:38% 42% 36% 40% / 30% 35% 38% 40%!important;background:#fff5e944!important;box-shadow:0 0 22px #fffc,0 8px 35px #7f624022!important;touch-action:manipulation}
.fog-scene{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:blur(14px);opacity:.7;transition:filter 1s ease,opacity 1s ease;pointer-events:none;user-select:none}
.fog-object-mirror .fog-scene{object-fit:contain}
.fog-frost{position:absolute;inset:0;background:linear-gradient(135deg,#fff9dc66,#fff4ed22 45%,#ffe8e866);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);opacity:1;transition:opacity 1s;pointer-events:none}
.fog-mirror.drop-near{outline:5px solid #ffe69b!important;outline-offset:4px;box-shadow:0 0 35px #fff3a5!important}
.fog-mirror.fog-revealed .fog-scene{filter:blur(0);opacity:1}
.fog-mirror.fog-revealed .fog-frost{opacity:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.fog-answers{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;max-width:650px;height:min(75%,260px);min-height:120px;align-self:center}
.fog-answer{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;position:relative;width:100%;min-width:0;min-height:0!important;padding:8px 7px!important;gap:3px;align-items:center;justify-items:center;border:3px solid #fff2ce!important;border-radius:28px!important;background:linear-gradient(#fff4cf,#fff9e8)!important;color:#174f48!important;box-shadow:0 7px 0 #b78e60aa,0 10px 20px #6e493522!important;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.fog-answer-art{display:block;width:100%;height:100%;min-height:0;pointer-events:none}
.fog-answer-art :is(img,svg){display:block;object-fit:contain;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 5px 3px #754a2529)}
.fog-answer-label{font:clamp(16px,1.8vw,23px)/1.1 Froople,'Trebuchet MS',sans-serif;min-height:2.2em;display:grid;place-items:center;text-align:center;pointer-events:none;text-wrap:balance}
.fog-selected{outline:4px solid #07808d!important;outline-offset:3px}
.fog-answer:disabled{opacity:.65;cursor:default}
.fog-answer.drag-source{opacity:.3}
.fog-answer.touch-drag-ghost{width:110px!important;height:150px!important;z-index:1500!important;pointer-events:none!important;cursor:grabbing}
.fog-status{grid-row:3;grid-column:1/-1;width:100%;padding:0!important;margin:0!important;min-height:20px;font-size:16px;line-height:1.2;text-align:center;font-weight:800;color:#214f49;text-shadow:0 1px 2px #fff,0 0 8px #fff8e8}
@media(orientation:portrait) and (max-width:900px){
 body.room-adventure.feelings-fog-active #roundBoard.feelings-fog{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(140px,1fr) minmax(118px,25%) 24px!important;gap:12px!important;padding:32px 8px 4px!important;min-height:460px!important}
 .fog-question{max-width:100%;width:100%;padding:12px 16px!important;gap:8px}
 .fog-title{font-size:clamp(25px,6vw,42px)!important}
 .fog-mirror{grid-column:1;grid-row:2;width:min(78%,370px)}
 .fog-answers{grid-column:1;grid-row:3;height:100%;min-height:0;gap:10px}
 .fog-status{grid-row:4;font-size:13px}
 .fog-answer{padding:5px!important;border-radius:24px!important}
 .fog-answer-label{font-size:clamp(16px,4.2vw,23px)}
}
@media(orientation:landscape) and (max-height:540px){
 body.room-adventure.feelings-fog-active #roundBoard.feelings-fog{padding:24px 8px 2px!important;gap:5px 14px!important;grid-template-rows:auto minmax(100px,1fr) 18px!important;min-height:210px!important}
 .fog-question{padding:6px 18px!important;min-height:38px!important;gap:8px}.fog-title{font-size:24px!important}.fog-speaker{font-size:23px}
 .fog-mirror{min-height:100px!important;width:min(100%,230px)}
 .fog-answers{height:100%;min-height:90px;gap:8px}.fog-answer{padding:3px!important;border-radius:18px!important}.fog-answer-label{font-size:15px}
 .fog-status{font-size:12px;min-height:16px}
}
@media(prefers-reduced-motion:reduce){.fog-scene,.fog-frost{transition:none!important}}
body.reduce-motion :is(.fog-scene,.fog-frost){transition:none!important}

/* The shared shell's button touch-action must not turn answer drags into page pans.
   Establish this before pointerdown; capture alone cannot stop Safari pointercancel. */
body.room-adventure.rrdd-game-shell .fog-answer,
body.room-adventure.rrdd-game-shell .fog-answer *{
 touch-action:none!important;
 -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}

/* The original 900px single-column breakpoint must keep all four grid rows.
   Otherwise the desktop three-row override squeezes answer cards into 24px. */
@media(max-width:900px) and (orientation:portrait){
 body.room-adventure.feelings-fog-active #playScreen #roundBoard.feelings-fog{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:0 minmax(120px,1fr) clamp(130px,23vh,210px) 20px!important;
  min-height:0!important;padding:5px 10px!important;gap:8px!important;
 }
 body.room-adventure.feelings-fog-active #playScreen #roundBoard.feelings-fog .fog-answers{
  grid-column:1;grid-row:3;height:100%;min-height:0;align-self:stretch;
 }
 body.room-adventure.feelings-fog-active #playScreen #roundBoard.feelings-fog .fog-mirror{grid-column:1;grid-row:2}
 body.room-adventure.feelings-fog-active #playScreen #roundBoard.feelings-fog .fog-status{grid-row:4}
}


@media(min-width:901px), (orientation:landscape){
 body.room-adventure.feelings-fog-active #roundBoard.feelings-fog:not(.face-game){
  grid-template-columns:minmax(0,380px) minmax(0,490px)!important;
  justify-content:center;column-gap:clamp(8px,1.6vw,20px)!important;
 }
 .fog-mirror{justify-self:end}
 .fog-answers{justify-self:start}
}
@media(max-width:900px) and (orientation:portrait){
 body.room-adventure.feelings-fog-active #playScreen #roundBoard.feelings-fog .fog-answers{
  width:min(100%,480px);
 }
 .fog-mirror{align-self:end}
}
