:root {
  --bg:   #22303A;
  --card: #F0E6D2;
  --ink:  #1A1A1A;
  --sky:  #7FC8E8;
  --moss: #7A9455;
  --gold: #E0A93F;
  --letter-size: clamp(120px, 16vmin, 190px);
  --word-size: clamp(96px, 26vw, 130px);
  --gap: 8px;
  --errand-ask-size: clamp(30px, 10vmin, 40px);
  --oneword-size: clamp(36px, 12vmin, 44px);
  --ask-gap: 12px;
  --rest-word-scale: 0.42;
  --rest-word-size: calc(var(--word-size) * var(--rest-word-scale));
  --practice-title-letters: 0.52;
  --room-line-size: clamp(30px, 10vmin, 40px);
  --room-art-ratio: 1.79020979;
  --room-box-short: 100vmin;
  --room-box-long: 38vmax;
  --room-stage-w: 100vw;
  --room-stage-h: 38vh;
  --room-friend-top: 17.48vh;
  --room-table-thin: 0.6133;
  --room-table-rest: 0.90;
  --room-dish-sink: 0.20;
  --room-dish: min(calc(0.6782 * var(--room-friend-top) + 2px),
                   calc((0.5 * var(--room-stage-w) - 0.21 * var(--room-stage-h)
                         - 28px) / 2));
  --room-table-w: calc(2 * var(--room-dish) + 6px);
  --room-table-h: calc(var(--room-table-w) * var(--room-table-thin));
  --room-dish-stand: calc(var(--room-dish) - var(--room-dish-sink) * var(--room-dish));
  --room-shelf: min(calc(var(--room-table-rest) * var(--room-table-h) + 10px),
                    calc(var(--room-friend-top) + 6px - var(--room-dish-stand)));
  --room-art-w: max(var(--room-stage-w), calc(var(--room-stage-h) * var(--room-art-ratio)));
  --room-art-h: max(var(--room-stage-h), calc(var(--room-stage-w) / var(--room-art-ratio)));
  --room-art-x0: calc(0.05 * (var(--room-art-w) - var(--room-stage-w)));
  --room-art-y0: calc(0.5 * (var(--room-art-h) - var(--room-stage-h)));
  --room-mark-fridge-x: 0.158;
  --room-mark-fridge-y: 0.547;
  --room-mark-closet-x: 0.640;
  --room-mark-closet-y: 0.400;
  --room-fridge-ratio: 1.1228;
  --room-closet-ratio: 1.1963;
  --room-ask-box: 40px;
  --room-ask-glyph: 0.5714;
  --room-bag-thin: 1.0938;
  --room-bag-rest: 0.6698;
  --room-bag-lip: 0.7326;
  --room-bag-span: 1.0550;
  --room-bag-rim: 0.0035;
  --room-thing: min(calc(0.3928 * var(--room-friend-top) - 3.4px),
                    calc((0.5 * var(--room-stage-w) - 0.21 * var(--room-stage-h)
                          - 28.33px) / 2.11));
  --room-bag-w: calc(var(--room-bag-span) * (2 * var(--room-thing) + 6px));
  --room-bag-h: calc(var(--room-bag-w) * var(--room-bag-thin));
  --room-bag-shelf: calc(var(--room-bag-lip) * var(--room-bag-w) + 10px);
  --room-bag-right: max(10px,
                        min(calc(10px + var(--room-ask-box) + 6px),
                            calc(0.5 * var(--room-stage-w)
                                 - 0.21 * var(--room-stage-h)
                                 - 12px - var(--room-bag-w))));
  --room-bag-sink: 0.20;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--card);
  font-family: "Noto Sans Hebrew", "Arial Hebrew", "David", system-ui, sans-serif;
  overscroll-behavior: none;
}
body {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.screen { display: none; }
.screen.is-on {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.start-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow-y: auto;
  padding: 8px 12px 88px;
  min-height: 0;
}
.start-stack > :first-child { margin-top: auto; }
.start-stack > :last-child { margin-bottom: auto; }
.home-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
}
.home-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0px;
  flex-wrap: wrap;
  max-width: 100%;
}
.hero-box {
  width: 114px;
  height: 114px;
  display: block;
  flex: none;
}
.omer-box {
  width: 114px;
  height: 114px;
  display: block;
  flex: none;
  margin-inline-start: -62px;
}
.friend-box {
  width: 60px;
  height: 60px;
  display: block;
  flex: none;
  margin-inline-start: -34px;
}
.figure-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.home-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.app-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--card);
  text-align: center;
  line-height: 1.4;
}
.star-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
}
.star-glyph {
  width: 26px;
  height: 26px;
  display: block;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
                     50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star-num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--card);
}
.star-count.big .star-glyph { width: 36px; height: 36px; }
.star-count.big .star-num { font-size: 44px; }
.count-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.day-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
}
.day-glyph {
  width: 26px;
  height: 26px;
  display: block;
  flex: none;
  position: relative;
  border-radius: 5px;
  background: var(--card);
}
.day-glyph::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  border-radius: 5px 5px 0 0;
  background: var(--gold);
}
.day-num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--card);
}
.path-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.path-count[hidden] { display: none; }
.path-glyph { width: 26px; height: 26px; display: block; flex: none; }
.path-glyph svg { width: 100%; height: 100%; display: block; }
.path-num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--card);
}
.trophy-fig {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}
.trophy-fig.rung-2 { width: 42px; height: 42px; }
.nav-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.door-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 158px;
  height: 92px;
  padding: 6px 8px;
  background: transparent;
  border: 4px solid var(--gold);
  border-radius: 22px;
  cursor: pointer;
  font-family: inherit;
}
.door-btn:active { transform: scale(0.98); }
.hotel-btn {
  border-color: var(--sky);
  flex-direction: row;
  width: 220px;
  gap: 8px;
}
.hotel-art {
  height: 76px;
  aspect-ratio: 1376 / 768;
  display: block;
  flex: none;
}
.hotel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.door-word {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--card);
  white-space: nowrap;
}
.chip-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.chip-box {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
}
.choices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.choice {
  background: var(--card);
  color: var(--ink);
  border: none;
  border-radius: 18px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 8px solid var(--sky);
}
.choice:active { transform: scale(0.98); }
.choice-letter {
  width: 112px;
  height: 112px;
  font-size: 56px;
}
.choice-word {
  width: 200px;
  height: 112px;
  font-size: 44px;
  white-space: nowrap;
}
.choice-face { line-height: 1.25; }
.choice .door-word { color: var(--ink); }
.big-round {
  width: 100px;
  height: 100px;
  border: none;
  border-radius: 50%;
  background: var(--moss);
  color: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.big-round .glyph {
  font-size: 46px;
  line-height: 1;
  direction: ltr;
}
.big-round:active { transform: scale(0.96); }
.cube-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px 2px;
  flex: none;
}
.cube {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: transparent;
  border: 2px solid rgba(240, 230, 210, 0.28);
  flex: none;
}
.cube.filled {
  background: var(--moss);
  border-color: var(--moss);
}
.stage {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 2px 12px;
  min-height: 0;
}
.play-stack {
  width: 100%;
  max-width: 900px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--ask-gap);
}
.grid {
  display: grid;
  gap: var(--gap);
  width: 100%;
}
.grid.inert { pointer-events: none; }
.play-stack.word-lock .grid button:active, .word-lock .chall-say:active { transform: none; }
.grid.task-a { grid-template-columns: 1fr; }
.grid.task-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.task-e { grid-template-columns: 1fr 1fr; }
.grid.task-p { grid-template-columns: 1fr 1fr; }
.pic-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pic-img {
  display: block;
  width: 100%;
  height: clamp(178px, 35.6vmin, 285px);
  object-fit: contain;
}
.word-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  font-size: var(--wordpic-letter, var(--word-size));
  line-height: 1;
  min-height: calc(var(--wordpic-letter, var(--word-size)) * 1.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  white-space: nowrap;
}
.play-stack.wordpics {
  --wordpic-letter: max(var(--word-size), min(16vmin, 120px));
  --wordpic-tile-max: 266px;
}
@media (orientation: portrait), (min-height: 600px) {
  .play-stack.wordpics .word-card { align-self: center; width: min(100%, calc(2 * var(--wordpic-tile-max) + var(--gap))); }
}
.play-stack.wordpics .word-card { line-height: 1.5; }
.play-stack.build {
  --build-letter: max(var(--word-size), min(15vmin, 96px));
  --build-pic-h: clamp(105px, 22.4vh, 224px);
  --build-tile-w: calc(var(--build-letter) * 1.3);
}
.grid.task-s {
  grid-template-columns: repeat(2, minmax(0, var(--wordpic-tile-max)));
  justify-content: center;
}
.tile.pic-tile {
  aspect-ratio: 1;
  min-height: 0;
  padding: 6%;
}
.pic-tile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.play-stack.build .pic-img { height: var(--build-pic-h); }
.play-stack.build.letters-2 { --build-n: 2; }
.play-stack.build.letters-3 { --build-n: 3; }
.play-stack.build.letters-4 { --build-n: 4; }
.play-stack.build.letters-5 { --build-n: 5; }
.play-stack.build.letters-5 .build-slots,
.play-stack.build.letters-5 .grid.task-m { gap: 4px; }
.play-stack.build.letters-5 .build-slot,
.play-stack.build.letters-5 .tile.build-tile { min-width: auto; }
.build-slots,
.grid.task-m {
  display: flex;
  flex-direction: row;
  direction: rtl;
  justify-content: center;
  gap: var(--gap);
}
.build-slot,
.tile.build-tile {
  flex: 0 1 var(--build-tile-w);
  min-width: 0;
  min-height: calc(var(--build-letter, var(--word-size)) * 1.14);
  font-size: var(--build-letter, var(--word-size));
  line-height: 1;
  padding: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.build-slots { position: relative; }
.play-stack.build .build-slots { margin-bottom: 40px; }
@media (orientation: portrait) and (max-height: 600px) {
  .play-stack.build .build-slots { margin-bottom: 24px; }
}
.build-slots.finished::after {
  content: "";
  position: absolute;
  left: calc(var(--frame-x, 0px) - 12px);
  top: calc(var(--frame-y, 0px) - 12px);
  width: calc(var(--frame-w, 0px) + 24px);
  height: calc(var(--frame-h, 0px) + 24px);
  box-sizing: border-box;
  border: 5px solid var(--sky);
  border-radius: 22px;
  animation: build-frame-in 180ms ease-out;
}
@keyframes build-frame-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .build-slots.finished::after { animation: none; }
}
.build-slot {
  position: relative;
  outline: 3px dashed rgba(240, 230, 210, 0.45);
  outline-offset: -3px;
  color: var(--ink);
}
.build-slot.full {
  outline-color: transparent;
  background: var(--card);
}
.tile.build-tile.used {
  opacity: 0.4;
  pointer-events: none;
}
.tile.build-tile.away {
  visibility: hidden;
  pointer-events: none;
}
.build-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
}
.build-ghost.going {
  transition: transform 260ms ease-in;
}
@media (prefers-reduced-motion: reduce) {
  .build-ghost.going { transition: none; }
}
.grid.task-f { grid-template-columns: 1fr; }
.ftw-word {
  font-size: clamp(40px, 14vw, 60px);
  min-height: calc(1em * 1.14);
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 18px;
  background: rgba(240, 230, 210, 0.06);
  border: 4px solid rgba(240, 230, 210, 0.22);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.ftw-word:active { transform: scale(0.98); }
.ftw-word.spent { opacity: 0.4; }
.tile {
  background: var(--card);
  color: var(--ink);
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-size: var(--letter-size);
  line-height: 1;
  min-height: calc(var(--letter-size) * 1.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 8px;
}
.tile.word {
  font-size: var(--word-size);
  min-height: calc(var(--word-size) * 1.14);
  line-height: 1;
  white-space: nowrap;
}
.grid.task-b .tile.word {
  font-size: var(--rest-word-size);
  min-height: calc(var(--word-size) * 0.92);
}
.practice-title {
  font-size: calc(var(--letter-size) * var(--practice-title-letters));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.practice-title.words { font-size: var(--rest-word-size); }
.pt-word {
  font-size: 1em;
  line-height: 1.3;
  color: var(--card);
  text-align: center;
}
.pt-img {
  height: 1.9em;
  width: auto;
  display: block;
}
.tile:active { transform: scale(0.98); }
.tile.spent {
  opacity: 0.4;
}
.marked { box-shadow: 0 0 0 6px var(--sky), 0 0 28px 8px rgba(127, 200, 232, 0.55); }
@media (prefers-reduced-motion: no-preference) { .marked { animation: mark-breathe 1.1s ease-in-out infinite; } }
@keyframes mark-breathe { 50% { transform: scale(1.06); } }
.mark-done { background: var(--moss); box-shadow: none; animation: none; }
.ask {
  display: none;
  align-items: center;
  gap: 10px;
}
.ask.is-on { display: flex; }
.asker {
  flex: none;
  width: 96px;
  height: 96px;
  border: none;
  border-radius: 50%;
  background: var(--sky);
  padding: 6px;
  flex-shrink: 0;
}
.asker { cursor: default; }
.asker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform 190ms ease-in-out;
}
.asker-img.hop { transform: translateY(-8px); }
.ask-bubble {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  font-size: var(--errand-ask-size);
  line-height: 1.35;
}
.option {
  background: var(--card);
  color: var(--ink);
  border: none;
  border-radius: 18px;
  font-family: inherit;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.option:active { transform: scale(0.98); }
.option-art {
  flex: none;
  width: 98px;
  height: 98px;
  display: block;
}
.option-art.oneword { width: 113px; height: 113px; }
.option-art.friend { width: 152px; height: 152px; }
.option-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.ask.whoami .asker { display: none; }
.ask.whoami .ask-bubble { flex: 1; }
.ask.oneword .ask-bubble { font-size: var(--oneword-size); }
.ftw-clue {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  pointer-events: none;
}
.ftw-clue.trim { width: 60px; height: 60px; }
.foot.whoami { min-height: 36px; padding: 0px; }
.foot.whoami .audio-btn { display: none; }
.foot.whoami .big-round { display: none; }
.foot.whoami .play-bubble { display: none; }
@keyframes option-shake {
  0%   { transform: translateX(0); }
  22%  { transform: translateX(-6px); }
  48%  { transform: translateX(6px); }
  74%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
.option.shake { animation: option-shake 320ms ease-in-out 1; }
.option.given {
  transition: transform 380ms ease-in, opacity 380ms ease-in;
  transform: translate(40%, -60%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}
.foot {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 1px 12px;
  min-height: 102px;
}
.audio-img.hop { transform: translateY(-8px); }
.bubble {
  background: var(--card);
  color: var(--ink);
  border: 2px solid rgba(26, 26, 26, 0.18);
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
}
.play-bubble {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 118px;
  padding: 6px 9px;
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
  opacity: 0;
  transition: opacity 220ms ease-in-out;
}
.play-bubble.saying { opacity: 1; }
.audio-btn {
  width: 100px;
  height: 100px;
  border: none;
  border-radius: 50%;
  background: var(--sky);
  padding: 3px;
  cursor: pointer;
  flex: none;
}
.audio-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform 190ms ease-in-out;
  will-change: transform;
}
.audio-btn:active { transform: scale(0.96); }
.audio-btn.is-empty .audio-img { display: none; }
.asker.is-empty .asker-img { display: none; }
.audio-btn.is-mute {
  background: #7C8891;
  position: relative;
  outline: 3px solid #7C8891;
  outline-offset: 0px;
}
.audio-btn.is-mute::before {
  content: "";
  position: absolute;
  inset-inline-end: -34px;
  bottom: 0px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7C8891;
  border: 2px solid var(--bg);
}
.audio-btn.is-mute::after {
  content: "";
  position: absolute;
  inset-inline-end: -26px;
  bottom: 12px;
  width: 14px;
  height: 4px;
  border-radius: 3px;
  background: var(--card);
  transform: rotate(-38deg);
}
.foot.rest .audio-btn { display: none; }
.foot.find .big-round { display: none; }
.foot.errand { min-height: 36px; padding: 0px; }
.foot.errand .audio-btn { display: none; }
.foot.errand .big-round { display: none; }
.foot.errand .play-bubble { display: none; }
.foot.ftw { min-height: 36px; padding: 0px; }
.foot.ftw .audio-btn { display: none; }
.foot.ftw .audio-btn.is-mute {
  display: block;
  width: 34px;
  height: 34px;
  padding: 2px;
  cursor: default;
}
.foot.ftw .audio-btn.is-mute .audio-img { display: none; }
.foot.ftw .big-round { display: none; }
.foot.ftw .play-bubble { display: none; }
.store.is-on { background: var(--bg); }
.store-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px;
}
.screen-word {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--card);
  white-space: nowrap;
}
.store-body {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 4px 12px;
  min-height: 0;
}
.store-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  margin: auto 0;
}
.store-shelf.finished {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.store-shelf.finished .chip-row {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(240, 230, 210, 0.06);
  border: 4px solid transparent;
  border-radius: 18px;
  font-family: inherit;
  cursor: pointer;
}
.store-card.affordable { border-color: var(--gold); }
.store-card.owned { border-color: var(--moss); }
.store-card.locked,
.store-card.owned { cursor: default; }
.card-art {
  width: 84px;
  height: 84px;
  display: block;
  flex: none;
}
.price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}
.price .star-glyph { width: 22px; height: 22px; }
.price .star-num { font-size: 26px; }
.store-card.locked .price .star-glyph { background: rgba(240, 230, 210, 0.35); }
.store-card.locked .price .star-num { color: rgba(240, 230, 210, 0.55); }
.present-glyph {
  width: 44px;
  height: 44px;
  margin: -11px;
  display: block;
  flex: none;
}
.store-card.present .lock { display: none; }
.lock {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 26px;
  height: 21px;
  border-radius: 5px;
  background: var(--card);
}
.lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 16px;
  height: 12px;
  margin-left: -11px;
  border: 3px solid var(--card);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
}
.lock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--bg);
}
.store-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 12px 14px;
}
.menu.is-on { background: var(--bg); }
.menu-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px;
}
.menu-body {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 4px 12px;
  min-height: 0;
}
.menu-shelf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  margin: auto 0;
}
.dish-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: rgba(240, 230, 210, 0.06);
  border: 4px solid transparent;
  border-radius: 18px;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
}
.dish-card.affordable { border-color: var(--gold); }
.dish-card.not-yet { cursor: default; }
.dish-card.affordable:active { transform: scale(0.99); }
.dish-art {
  flex: none;
  width: 72px;
  height: 72px;
  display: block;
}
.dish-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.menu-shelf.trimmed .dish-art { width: 54px; height: 54px; }
.menu-shelf:not(.trimmed) .dish-img.trim { padding: 14.7%; }
.dish-name {
  flex: 1;
  min-width: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--card);
  text-align: center;
  overflow-wrap: anywhere;
}
.dish-card.not-yet .price .star-glyph { background: rgba(240, 230, 210, 0.35); }
.dish-card.not-yet .price .star-num { color: rgba(240, 230, 210, 0.55); }
.menu-giving {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 620px;
  margin: auto 0;
}
.menu-giving.is-off { display: none; }
.giving-dish {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.giving-dish-img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  display: block;
}
.giving-dish-img.trim { width: 99px; height: 99px; }
.giving-dish-name {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--card);
  text-align: center;
  overflow-wrap: anywhere;
}
.giving-friends {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.giving-friend {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  padding: 4px;
  background: rgba(240, 230, 210, 0.06);
  border: 4px solid var(--gold);
  border-radius: 18px;
  cursor: pointer;
}
.giving-friend:active { transform: scale(0.96); }
.giving-friend.has-it { border-color: var(--moss); }
.giving-friend .figure-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.menu-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 12px 14px;
}
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  height: 64px;
  padding: 0 18px;
  background: var(--sky);
  color: var(--ink);
  border: none;
  border-radius: 18px;
  font-family: inherit;
  cursor: pointer;
  flex: none;
}
.back-btn:active { transform: scale(0.96); }
.play-back {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 0;
  height: 36px;
  padding: 0 8px;
}
.play-back:active { transform: translateY(-50%) scale(0.96); }
.back-arrow {
  width: 0;
  height: 0;
  flex: none;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 15px solid var(--ink);
}
.back-word {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}
.hotel.is-on { background: var(--bg); }
.hotel-head {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
}
.hotel-body {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 4px 12px;
  min-height: 0;
}
.hotel-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 620px;
  margin: auto 0;
}
.hotel-shelf.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.place-box {
  width: min(72%, 320px);
  aspect-ratio: 256 / 143;
  display: block;
  flex: none;
}
.hotel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(240, 230, 210, 0.06);
  border: 4px solid rgba(240, 230, 210, 0.22);
  border-radius: 18px;
  font-family: inherit;
  cursor: pointer;
}
.door {
  width: 100%;
  aspect-ratio: 316 / 536;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  background-image: url("../seasons/plushies/doors/small/door.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.door-name {
  margin: 0;
  padding: 4px 6px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--gold);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}
.hotel-card.bringing { border-color: var(--moss); }
.hotel-card:active { transform: scale(0.98); }
.hotel-foot {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 12px 14px;
}
.lobby.is-on { background: var(--bg); }
.lobby-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}
.lobby-body {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 4px 12px;
  min-height: 0;
}
.lobby-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 620px;
  margin: auto 0;
}
.lobby-way {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  max-width: 240px;
  margin-inline: auto;
  width: 100%;
  background: rgba(240, 230, 210, 0.06);
  border: 4px solid var(--sky);
  border-radius: 22px;
  font-family: inherit;
  cursor: pointer;
}
.lobby-way:active { transform: scale(0.98); }
.way-art {
  width: 100%;
  aspect-ratio: 1376 / 768;
  display: flex;
  align-items: center;
  justify-content: center;
}
.way-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.way-art .chip-row {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 4%;
}
.way-art .chip-box {
  width: 30%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: none;
}
.way-word {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--card);
  white-space: nowrap;
}
#word-store { white-space: normal; text-align: center; margin-inline: -6px; }
.lobby-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 12px 14px;
}
.arrival.is-on { background: var(--bg); }
.arrival-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 12px;
  overflow-y: auto;
  min-height: 0;
}
.arrival-bubble {
  padding: 10px 18px;
  font-size: 30px;
  line-height: 1.35;
  max-width: 100%;
}
.arrival-figure {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.arrival-figure:active { transform: scale(0.98); }
.hero-box.big {
  width: 248px;
  height: 248px;
  animation: arrival-settle 520ms ease-out 1;
}
@keyframes arrival-settle {
  0%   { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.arrival-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 12px 14px;
}
.present.is-on { background: var(--bg); }
.present-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 0;
}
.present-box {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.present-frame {
  position: relative;
  display: block;
  width: 320px;
  height: 320px;
}
.present-lid {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.present-reward {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.reward-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
}
.reward-mark .figure-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.present-above {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  --prize-ink: 1.2;
}
.present-above .star-count { gap: 3px; }
.present-above .star-glyph { width: 44px; height: 44px; }
.present-above .star-num { font-size: 54px; }
.present-above .reward-mark {
  flex: none;
  align-self: flex-start;
  max-width: 100%;
  max-height: none;
  height: calc(var(--prize-ink) * 100%);
  aspect-ratio: 1;
}
.present-above .reward-mark.star-count {
  align-self: center;
  height: auto;
  aspect-ratio: auto;
  max-height: 100%;
}
.present-reward .reward-mark { height: 100%; aspect-ratio: 1; }
.present-reward .reward-mark.star-count { height: auto; aspect-ratio: auto; flex: none; }
#present-giving {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px;
  margin: 0 auto;
}
.present-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 12px 14px;
}
.end-line {
  position: relative;
  flex: none;
  width: 100%;
  height: 92px;
}
.end-buddy {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
}
.end-buddy.has-friend { display: block; }
.end-buddy-box {
  width: 92px;
  height: 92px;
  display: block;
  transition: transform 190ms ease-in-out;
  will-change: transform;
}
.end-buddy-box.hop { transform: translateY(-8px); }
.end-bubble {
  position: absolute;
  inset-inline-start: 102px;
  bottom: 54px;
  width: auto;
  padding: 6px 9px;
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
  opacity: 0;
  transition: opacity 220ms ease-in-out;
}
.end-bubble.saying { opacity: 1; }
.play-count {
  flex: none;
  height: 44px;
  margin: 14px 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  direction: ltr;
  pointer-events: none;
}
.play-count-box { height: 100%; width: auto; display: block; }
.play-count .star-glyph { width: 30px; height: 30px; }
.play-count .star-num { font-size: 36px; }
.play-count .pop { animation: count-pop 320ms ease-out 1; }
@keyframes count-pop {
  0% { transform: scale(1); }
  40% { transform: scale(var(--count-pop, 1.35)); }
  100% { transform: scale(1); }
}
.end-stack { gap: 14px; }
.end-box {
  --box-w: 230px;
  --box-s: 1;
  position: relative;
  flex: none;
  width: calc(var(--box-w) * 1.22);
  height: calc(var(--box-w) * 537 / 460 * 1.22);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.end-box.step-1 { --box-s: 1.12; }
.end-box.step-2,
.end-box.step-3 { --box-s: 1.22; }
.box-grow {
  position: absolute;
  left: 50%;
  bottom: calc(var(--box-w) * 537 / 460 * 0.0773 * 0.22);
  width: var(--box-w);
  height: calc(var(--box-w) * 537 / 460);
  margin-left: calc(var(--box-w) / -2);
  transform: scale(var(--box-s));
  transform-origin: 50% 92.27%;
  transition: transform 260ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
.box-shake { position: absolute; inset: 0; transform-origin: 50% 92.27%; }
.box-shake.s1 { animation: box-shake1 480ms ease-in-out 1; }
.box-shake.s2 { animation: box-shake2 640ms ease-in-out 1; }
.box-shake.s3 { animation: box-pop 300ms ease-out 1; }
@keyframes box-shake1 {
  0% { transform: rotate(0); }
  20% { transform: rotate(-3deg); }
  40% { transform: rotate(3deg); }
  60% { transform: rotate(-2deg); }
  80% { transform: rotate(1.5deg); }
  100% { transform: rotate(0); }
}
@keyframes box-shake2 {
  0% { transform: rotate(0); }
  12% { transform: rotate(-7deg) translateX(-4px); }
  28% { transform: rotate(7deg) translateX(4px); }
  44% { transform: rotate(-6deg) translateX(-3px); }
  60% { transform: rotate(5deg) translateX(3px); }
  76% { transform: rotate(-3deg); }
  90% { transform: rotate(1.5deg); }
  100% { transform: rotate(0); }
}
@keyframes box-pop {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.box-pic,
.box-heap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.box-heap { overflow: visible; }
.box-open,
.box-front,
.box-heap { display: none; }
.end-box.step-3 .box-closed { display: none; }
.end-box.step-3 .box-open,
.end-box.step-3 .box-front,
.end-box.step-3 .box-heap { display: block; }
.box-heap polygon { fill: url(#box-shine); stroke: #4a2a10; stroke-width: 5; stroke-linejoin: round; }
.box-shine-top { stop-color: #ffe9a6; }
.box-shine-gold { stop-color: var(--gold); }
.heap-star { transform-box: fill-box; transform-origin: 50% 50%; }
.end-box.step-3 .heap-star { animation: heap-pop 300ms cubic-bezier(0.3, 1.6, 0.5, 1) 105ms 1 both; }
.end-box.step-3 .heap-star.r3 { animation-delay: 0ms; }
.end-box.step-3 .heap-star.r2 { animation-delay: 35ms; }
.end-box.step-3 .heap-star.r1 { animation-delay: 70ms; }
@keyframes heap-pop {
  0% { transform: translateY(12%) scale(0.55); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.box-mark {
  position: absolute;
  left: calc(50% + var(--box-w) * 0.4084 * var(--box-s) - var(--room-ask-box) * 0.9);
  bottom: calc(var(--box-w) * 537 / 460 * 0.0773 * 1.22 - var(--room-ask-box) * 0.1);
  transition: left 260ms cubic-bezier(0.3, 1.5, 0.5, 1);
  pointer-events: none;
}
.end-box.step-3 .box-mark { display: none; }
.end-earned { opacity: 0; }
.end-box.step-3 ~ .end-earned { opacity: 1; transition: opacity 260ms ease-out 350ms; }
.end-earned .star-glyph { width: 44px; height: 44px; }
.end-earned .star-num { font-size: 56px; }
@media (prefers-reduced-motion: reduce) {
  .play-count .pop,
  .box-shake.s1,
  .box-shake.s2,
  .box-shake.s3,
  .end-box.step-3 .heap-star { animation: none; }
  .box-grow,
  .box-mark { transition: none; }
}
@media (orientation: portrait) and (max-height: 760px) {
  .start-stack.end-stack { padding-bottom: 8px; }
  .play-count { height: 30px; margin: 4px 0 2px; gap: 8px; }
  .play-count .star-glyph { width: 20px; height: 20px; }
  .play-count .star-num { font-size: 24px; }
  .end-box { --box-w: min(230px, calc((100vh - 240px) / 1.4243)); }
}
@media (orientation: landscape) {
  .play-count { position: absolute; top: env(safe-area-inset-top, 0px); left: calc(env(safe-area-inset-left, 0px) + 12px);
    height: 22px; margin: 0; gap: 6px; --count-pop: 1.2; }
  .play-count .star-glyph { width: 16px; height: 16px; }
  .play-count .star-num { font-size: 18px; }
}
@media (orientation: portrait) and (max-height: 600px) {
  .play-count { display: none; }
}
@media (orientation: landscape) and (min-height: 600px) {
  .play-count { top: calc(env(safe-area-inset-top, 0px) + 14px); height: 60px; gap: 14px; --count-pop: 1.15; }
  .play-count .star-glyph { width: 38px; height: 38px; }
  .play-count .star-num { font-size: 48px; }
}
@media (orientation: landscape) and (max-height: 599px) {
  .start-stack.end-stack { flex-direction: row; justify-content: center; align-items: center; gap: 16px; }
  .end-stack > .end-line { width: 104px; height: 110px; align-self: flex-start; margin: 0; }
  .end-stack .end-bubble { inset-inline-start: 0; bottom: 74px; }
  .end-box { --box-w: min(230px, calc((100vh - 60px) / 1.4243), calc((100vw - 300px) / 1.22)); border: none; }
  .end-stack > .end-earned { margin: 0; flex: none; min-width: 110px; }
  .end-earned .star-glyph { width: 30px; height: 30px; }
  .end-earned .star-num { font-size: 38px; }
}
#check-corner {
  position: fixed;
  left: 0;
  top: env(safe-area-inset-top);
  width: 76px;
  height: 76px;
  background: transparent;
  touch-action: none;
  z-index: 10;
}
.check.is-on { background: var(--bg); }
.check-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 40px;
  -webkit-user-select: text;
  user-select: text;
}
.check-label {
  color: var(--sky);
  font-size: 19px;
  margin: 22px 0 6px;
}
.check-version {
  font-size: 92px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  direction: ltr;
  text-align: right;
}
.admin { direction: ltr; text-align: left; background: var(--card); color: var(--ink); border-radius: 18px; padding: 14px;
  margin-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.admin-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.admin-title { font-size: 19px; font-weight: 700; }
.admin-tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--sky);
  background: var(--bg); padding: 3px 8px; border-radius: 99px; }
.admin-state { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.admin-cell { background: rgba(26, 26, 26, 0.08); border-radius: 10px; padding: 8px; text-align: center; }
.admin-cell b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.admin-cell-name { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: .05em; }
.admin-section { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(26, 26, 26, 0.18); padding-top: 12px; }
.admin-h { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: .07em; }
.admin-row { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-btn { font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer;
  background: var(--sky); color: var(--ink); }
.admin-btn.soft { background: rgba(26, 26, 26, 0.12); color: var(--ink); }
.admin-btn.danger { background: var(--gold); color: var(--ink); }
.admin-note { font-size: 12px; opacity: 0.75; margin: 0; }
.admin-toast { min-height: 20px; font-size: 14px; font-weight: 700; color: var(--moss); }
.check-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 12px 14px;
}
.room.is-on {
  background: var(--bg);
  justify-content: center;
  align-items: center;
}
.room-scene {
  position: relative;
  width: 100%;
  height: 38vh;
  flex: none;
}
.room-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg);
}
.room-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 5% center;
}
.room-party {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.room-party[hidden] { display: none; }
.room-friend {
  position: absolute;
  left: 50%;
  bottom: 4%;
  height: 42%;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.room-friend .figure-img { height: 100%; width: auto; }
@keyframes room-hop {
  0%   { transform: translateX(-50%) scale(1) rotate(0deg); }
  35%  { transform: translateX(-50%) scale(1.16) rotate(-7deg); }
  70%  { transform: translateX(-50%) scale(1.08) rotate(5deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0deg); }
}
.room-friend.reacting { animation: room-hop 520ms ease-out 1; }
.room-mark {
  width: var(--room-ask-box);
  height: var(--room-ask-box);
  border: none;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(34, 48, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.room-mark > svg {
  display: block;
  width: calc(var(--room-ask-glyph) * 100%);
  height: calc(var(--room-ask-glyph) * 100%);
  fill: none;
  stroke: var(--ink);
}
.room-ask {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  font-family: inherit;
  font-size: calc(var(--room-ask-box) * var(--room-ask-glyph));
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.room-ask::after {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  width: calc(var(--room-ask-box) + 8px);
  height: calc(var(--room-ask-box) + 8px);
  border-radius: 50%;
}
.room-ask:active { transform: scale(0.94); }
.room-food {
  position: absolute;
  left: 10px;
  bottom: calc(var(--room-shelf) - var(--room-dish-sink) * var(--room-dish));
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 6px;
  height: var(--room-dish);
  pointer-events: none;
}
.room-dish {
  flex: none;
  width: var(--room-dish);
  height: var(--room-dish);
  display: block;
}
.room-dish-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.room-table {
  position: absolute;
  left: 10px;
  bottom: calc(var(--room-shelf) - var(--room-table-rest) * var(--room-table-h));
  width: var(--room-table-w);
  height: var(--room-table-h);
  object-fit: fill;
  pointer-events: none;
  display: block;
}
.feed-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.feed-dish {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.feed-dish > img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.feed-crumb {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
}
.feed-heart,
.feed-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
}
.feed-heart > svg,
.feed-spark > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.room-fridge-hit {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(10px + var(--room-table-w));
  height: calc(var(--room-friend-top) + 12px);
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.room-mark-fridge {
  position: absolute;
  pointer-events: none;
  left: calc(var(--room-mark-fridge-x) * var(--room-art-w) - var(--room-art-x0)
             - var(--room-ask-box) / 2);
  bottom: calc(var(--room-stage-h)
               - (var(--room-mark-fridge-y) * var(--room-art-h) - var(--room-art-y0))
               - var(--room-ask-box) / 2);
}
.room-fridge {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(34, 48, 58, 0.86);
}
.room-fridge.is-off { display: none; }
.room-fridge-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.room-fridge-shelves {
  position: absolute;
  top: 0;
  height: 100%;
  left: 50%;
  width: calc(38vh * var(--room-fridge-ratio));
  transform: translateX(-50%);
}
.fridge-dish {
  position: absolute;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.fridge-dish:active { transform: scale(0.94); }
.fridge-dish-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.room-closet-hit {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 45%;
  height: calc(54% - 12px);
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.room-mark-closet {
  position: absolute;
  pointer-events: none;
  inset-inline-start: calc(var(--room-stage-w)
                           - (var(--room-mark-closet-x) * var(--room-art-w)
                              - var(--room-art-x0))
                           - var(--room-ask-box) / 2);
  top: calc(var(--room-mark-closet-y) * var(--room-art-h) - var(--room-art-y0)
            - var(--room-ask-box) / 2);
}
.room-closet {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(34, 48, 58, 0.86);
}
.room-closet.is-off { display: none; }
.room-closet-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.room-closet-shelves {
  position: absolute;
  top: 0;
  height: 100%;
  left: 50%;
  width: calc(38vh * var(--room-closet-ratio));
  transform: translateX(-50%);
}
.closet-thing {
  position: absolute;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
}
.closet-thing:active { transform: scale(0.94); }
.closet-thing-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.room-bag {
  position: absolute;
  right: var(--room-bag-right);
  bottom: calc(var(--room-bag-shelf) - var(--room-bag-rest) * var(--room-bag-h));
  width: var(--room-bag-w);
  height: var(--room-bag-h);
  display: block;
  pointer-events: none;
}
.room-bag-img {
  display: block;
  pointer-events: none;
}
.room-things {
  position: absolute;
  right: calc(var(--room-bag-right) + var(--room-bag-rim) * var(--room-bag-w));
  bottom: calc(var(--room-bag-shelf) - var(--room-bag-sink) * var(--room-thing));
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 6px;
  height: var(--room-thing);
  pointer-events: none;
}
.room-thing {
  flex: none;
  position: relative;
  width: var(--room-thing);
  height: var(--room-thing);
  display: block;
}
.room-thing-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.room-thing.can-wear {
  pointer-events: auto;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.room-thing.can-wear .room-thing-img {
  pointer-events: none;
}
.room-line {
  position: absolute;
  inset-inline: 10px;
  bottom: calc(46% + 12px);
  width: fit-content;
  margin-inline: auto;
  margin-block: 0;
  padding: 10px 14px;
  border: 5px solid var(--bg);
  box-shadow: 0 4px 14px rgba(34, 48, 58, 0.45);
  font-size: var(--room-line-size);
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}
.room-line::before {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: calc(50% - 14px);
  width: 0;
  height: 0;
  border-inline: 14px solid transparent;
  border-top: 14px solid var(--bg);
  border-bottom: 0;
}
.room-line::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: calc(50% - 9px);
  width: 0;
  height: 0;
  border-inline: 9px solid transparent;
  border-top: 9px solid var(--card);
  border-bottom: 0;
}
.room-line.is-off { display: none; }
.room-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 10px;
}
.bring-btn {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 3px solid var(--moss);
  border-radius: 18px;
  background: rgba(240, 230, 210, 0.06);
  font-family: inherit;
  cursor: pointer;
}
.bring-figure {
  display: block;
  width: 100%;
  height: 100%;
}
.bring-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.bring-label {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--card);
  white-space: nowrap;
  pointer-events: none;
}
.parents-btn {
  position: absolute;
  left: calc(env(safe-area-inset-left) + 70px);
  bottom: calc(env(safe-area-inset-bottom) + 8px);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--sky);
  cursor: pointer;
}
.parents-btn:active { transform: scale(0.96); }
.info-glyph {
  font-size: 26px;
  width: 1em;
  height: 1em;
  display: block;
  flex: none;
  position: relative;
}
.info-glyph::before {
  content: "";
  position: absolute;
  top: 0.04em;
  left: 50%;
  width: 0.21em;
  height: 0.21em;
  margin-left: -0.105em;
  border-radius: 50%;
  background: var(--card);
}
.info-glyph::after {
  content: "";
  position: absolute;
  top: 0.33em;
  left: 50%;
  width: 0.21em;
  height: 0.60em;
  margin-left: -0.105em;
  border-radius: 0.105em;
  background: var(--card);
}
.parents.is-on { background: var(--bg); }
.parents-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 28px;
  -webkit-user-select: text;
  user-select: text;
}
.parents-sheet {
  max-width: 640px;
  margin-inline: auto;
}
.parents-head {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--card);
}
.parents-text {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--card);
}
.parents-sub {
  margin: 22px 0 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sky);
}
.parents-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.parents-item {
  position: relative;
  margin: 0 0 10px;
  padding-inline-start: 18px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--card);
}
.parents-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}
.report-way {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 8px solid var(--sky);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
  cursor: pointer;
}
.report-way:active { transform: scale(0.98); }
.report-glyph {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 34px;
  height: 30px;
  padding: 0 3px;
  border-bottom: 3px solid var(--ink);
}
.report-glyph i { flex: 1; border-radius: 3px 3px 0 0; background: var(--moss); }
.report-glyph i:nth-child(1) { height: 40%; }
.report-glyph i:nth-child(2) { height: 70%; }
.report-glyph i:nth-child(3) { height: 100%; }
.report-screen.is-on { background: var(--bg); }
.report-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 24px;
}
.report-col {
  max-width: 460px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--card);
}
.report-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  border-bottom: 8px solid var(--sky);
  padding: 16px;
}
.report-note { font-size: 12px; opacity: .7; text-align: center; margin: 0; color: var(--card); }
.report-gate { padding: 22px 18px; text-align: center; }
.gate-line { margin: 0 0 6px; color: #5a5348; }
.gate-date { font-size: 26px; line-height: 1.35; text-wrap: balance; font-weight: 700; margin: 8px 0 16px; color: var(--ink); }
.gate-boxes { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.gate-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gate-box span { font-size: 13px; color: #5a5348; }
.gate-box input {
  width: 64px;
  height: 56px;
  border-radius: 14px;
  border: 0;
  background: #e7dbc2;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  padding: 0;
}
.gate-box.gate-year input { width: 96px; }
.gate-box input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.gate-boxes.wrong input { background: #f2c1b8; }
@media (prefers-reduced-motion: no-preference) { .gate-boxes.wrong { animation: gate-shake .35s; } }
@keyframes gate-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.gate-go {
  margin-top: 16px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--moss);
  color: var(--card);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.gate-go:disabled { opacity: .45; cursor: default; }
@media (orientation: landscape) and (max-height: 500px) {
  #screen-gate .report-body { padding: 8px 16px 6px; }
  #screen-gate .report-col { max-width: 600px; gap: 6px; }
  .report-gate { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: end; column-gap: 16px; padding: 10px 18px 12px; }
  .report-gate .gate-line, .report-gate .gate-date { grid-column: 1 / -1; }
  .gate-line { margin: 0 0 2px; font-size: 14px; }
  .gate-date { font-size: 21px; line-height: 1.25; margin: 4px 0 8px; }
  .gate-box input { height: 46px; }
  .gate-go { margin-top: 0; width: auto; min-width: 150px; height: 46px; padding: 0 20px; border: 0; }
}
.rp-head h1, .rp-title { font-size: 26px; margin: 4px 0 0; line-height: 1.3; }
.rp-sub { margin: 0; opacity: .75; font-size: 14px; }
.rp-h2 { margin: 0 0 12px; font-size: 15px; color: #5a5348; font-weight: 700; }
.rp-soft { margin: 10px 0 0; font-size: 14px; color: #5a5348; }
.rp-letters-note { margin: 0 0 9px; font-size: 12px; }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp-stat { background: #e7dbc2; border-radius: 12px; padding: 10px 8px; text-align: center; min-width: 0; }
.rp-stat b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rp-stat span { font-size: 12px; color: #5a5348; }
.rp-bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 14px; }
.rp-bars i { flex: 1; background: var(--moss); border-radius: 4px 4px 0 0; min-height: 4px; }
.rp-bars-label { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #5a5348; margin-top: 4px; }
.rp-steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin: 6px 0 4px; }
.rp-steps::before { content: ""; position: absolute; inset-inline: 16.6%; top: 17px; height: 4px; background: #d9ccb2; border-radius: 2px; }
.rp-fill { position: absolute; inset-inline-start: 16.6%; top: 17px; height: 4px; background: var(--moss); border-radius: 2px; }
.rp-step { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; text-align: center; }
.rp-dot { width: 38px; height: 38px; box-sizing: border-box; border-radius: 50%; background: var(--card); border: 4px solid #d9ccb2;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #5a5348; }
.rp-step.done .rp-dot { background: var(--moss); border-color: var(--moss); color: var(--card); }
.rp-step.now .rp-dot { border-color: var(--gold); background: #fff6df; color: var(--ink); }
.rp-step b { font-size: 15px; }
.rp-step small { font-size: 12px; color: #5a5348; }
.rp-started { font-size: 11px; font-weight: 700; background: var(--sky); color: var(--ink); border-radius: 999px; padding: 2px 8px; }
.rp-now-line { margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.rp-now-line b { color: #7a5a12; }
.rp-climb { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.rp-ylab { display: grid; grid-template-rows: repeat(8, 22px); gap: 3px; font-size: 11px; color: #5a5348; }
.rp-ylab span { display: flex; align-items: center; white-space: nowrap; }
.rp-chart { min-width: 0; }
.rp-cols, .rp-xlab { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.rp-col { display: grid; grid-template-rows: repeat(8, 22px); gap: 3px; min-width: 0; }
.rp-col i { border-radius: 5px; box-shadow: inset 0 0 0 1.5px #d6c9ad; }
.rp-col i.knows { background: var(--moss); box-shadow: none; }
.rp-col i.learning { background: #f3d58f; box-shadow: inset 0 0 0 2px #d9a93c; }
.rp-xlab { font-size: 11px; color: #5a5348; text-align: center; margin-top: 6px; }
.rp-xlab span { min-width: 0; overflow-wrap: anywhere; }
.rp-xlab .now { color: var(--ink); font-weight: 700; }
.rp-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #5a5348; margin-top: 10px; }
.rp-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rp-key { display: inline-block; width: 13px; height: 13px; border-radius: 4px; }
.rp-key.knows { background: var(--moss); }
.rp-key.learning { background: #f3d58f; box-shadow: inset 0 0 0 2px #d9a93c; }
.rp-key.notyet { box-shadow: inset 0 0 0 1.5px #b9ab90; }
.rp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #d9ccb2; }
.rp-h2 + .rp-row { border-top: 0; }
.rp-what { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.rp-glyph { font-size: 30px; line-height: 1.25; min-width: 44px; flex: none; text-align: center; white-space: nowrap; }
.rp-name { font-size: 15px; min-width: 0; }
.rp-name small { display: block; font-size: 12px; color: #5a5348; margin-top: 2px; }
.rp-word { font-size: 20px; color: var(--ink); }
.rp-pill { flex: none; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.rp-pill.knows { background: var(--moss); color: var(--card); }
.rp-pill.learning { background: #f3d58f; color: #5b420a; }
.rp-pill.notyet { background: transparent; color: #5a5348; border: 1.5px dashed #b9ab90; }
.rp-wait { text-align: center; padding: 22px 16px; }
.rp-wait p { margin: 6px 0; }
.rp-big { font-size: 20px; font-weight: 700; }
.rp-three { display: flex; justify-content: center; gap: 12px; margin: 14px 0 10px; }
.rp-three i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 3px #d9ccb2; display: grid; place-items: center;
  font-style: normal; color: var(--card); font-weight: 700; }
.rp-three i.on { background: var(--moss); box-shadow: none; }
.parents-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 12px 14px;
}
@media (orientation: landscape) {
  :root {
    --word-size: clamp(60px, 10vmin, 130px);
    --ask-gap: 10px;
    --rest-word-scale: 0.78;
    --practice-title-letters: 0.42;
    --room-box-short: 100vmin;
    --room-box-long: 38vmax;
    --room-band-x0: 0.021;
    --room-band-x1: 0.809;
    --room-art-pos: 0.05;
    --room-band-ratio: calc(var(--room-art-ratio) *
                            max(calc((var(--room-band-x1) - var(--room-art-pos))
                                     / (1 - var(--room-art-pos))),
                                calc(1 - var(--room-band-x0) / var(--room-art-pos))));
    --room-wide-ratio: max(var(--room-box-ratio), var(--room-band-ratio));
    --room-box-h: min(calc(100dvh - 68px
                           - env(safe-area-inset-top) - env(safe-area-inset-bottom)),
                      calc((100vw - env(safe-area-inset-left)
                            - env(safe-area-inset-right)) / var(--room-wide-ratio)));
    --room-box-w: calc(var(--room-wide-ratio) * var(--room-stage-h));
    --room-stage-h: var(--room-box-h, var(--room-box-long));
    --room-stage-w: var(--room-box-w, var(--room-box-short));
    --room-friend-top: calc(0.46 * var(--room-stage-h));
    --room-table-thin: 0.6133;
    --room-table-rest: 0.90;
    --room-dish-sink: 0.20;
    --room-dish: min(calc(0.6782 * var(--room-friend-top) + 2px),
                     calc((0.5 * var(--room-stage-w) - 0.21 * var(--room-stage-h)
                           - 28px) / 2));
    --room-table-w: calc(2 * var(--room-dish) + 6px);
    --room-table-h: calc(var(--room-table-w) * var(--room-table-thin));
    --room-dish-stand: calc(var(--room-dish) - var(--room-dish-sink) * var(--room-dish));
    --room-shelf: min(calc(var(--room-table-rest) * var(--room-table-h) + 10px),
                      calc(var(--room-friend-top) + 6px - var(--room-dish-stand)));
    --room-fridge-ratio: 1.1228;
    --room-closet-ratio: 1.1963;
    --room-ask-box: 40px;
    --room-ask-glyph: 0.5714;
    --room-bag-thin: 1.0938;
    --room-bag-rest: 0.6698;
    --room-bag-lip: 0.7326;
    --room-bag-span: 1.0550;
    --room-bag-rim: 0.0035;
    --room-thing: min(calc(0.3928 * var(--room-friend-top) - 3.4px),
                      calc((0.5 * var(--room-stage-w) - 0.21 * var(--room-stage-h)
                            - 28.33px) / 2.11));
    --room-bag-w: calc(var(--room-bag-span) * (2 * var(--room-thing) + 6px));
    --room-bag-h: calc(var(--room-bag-w) * var(--room-bag-thin));
    --room-bag-shelf: calc(var(--room-bag-lip) * var(--room-bag-w) + 10px);
    --room-bag-right: max(10px,
                          min(calc(10px + var(--room-ask-box) + 6px),
                              calc(0.5 * var(--room-stage-w)
                                   - 0.21 * var(--room-stage-h)
                                   - 12px - var(--room-bag-w))));
    --room-bag-sink: 0.20;
  }
  .grid.task-a { grid-template-columns: 1fr 1fr 1fr; }
  .play-stack.pics {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .play-stack.pics .pic-art { flex: 0 0 auto; }
  .play-stack.pics .pic-img {
    width: calc(var(--letter-size) * 0.81);
    height: calc(var(--letter-size) * 0.81);
  }
  .play-stack.pics .grid.task-p { flex: 1 1 auto; min-width: 0; }
  .grid.task-b { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid.task-b.words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.task-b .tile { padding: 0 2px; }
  .practice-title { flex-direction: column; gap: 2px; margin-bottom: 6px; }
  .pt-img { height: 1.3em; }
  .grid.task-e { grid-template-columns: repeat(4, 1fr); }
  .grid.task-f { grid-template-columns: 1fr 1fr; }
  .ftw-word {
    font-size: clamp(34px, 7.4vw, 48px);
    padding: 4px 10px;
    border: 4px solid rgba(240, 230, 210, 0.22);
  }
  .option-art { width: 87px; height: 87px; }
  .option-art.oneword { width: 102px; height: 102px; }
  .option-art.friend { width: 136px; height: 136px; }
  .asker { width: 80px; height: 80px; border: none; }
  .ask-bubble { padding: 6px 12px; }
  .ftw-clue { width: 68px; height: 68px; object-fit: contain; }
  .ftw-clue.trim { width: 51px; height: 51px; }
  .foot { min-height: 90px; gap: 40px; padding: 1px 12px; }
  .audio-btn { width: 88px; height: 88px; border: none; }
  .big-round { width: 88px; height: 88px; border: none; }
  .big-round .glyph { font-size: 40px; }
  .cube-bar { padding: 4px 12px 2px; }
  .cube { width: 16px; height: 16px; border: 2px solid rgba(240, 230, 210, 0.28); }
  .play-bubble { width: 118px; padding: 5px 8px; font-size: 15px; }
  .back-btn { min-width: 132px; height: 52px; padding: 0 14px; border: none; }
  .back-word { font-size: 20px; }
  .back-arrow { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 13px; }
  .play-back { min-width: 0; height: 36px; padding: 0 8px; }
  .store-btn .star-glyph { width: 18px; height: 18px; }
  .store-btn .star-num { font-size: 20px; }
  .arrival-stack { flex-direction: column; gap: 8px; padding: 4px 12px; }
  .hero-box.big {
    width: 158px;
    height: 158px;
    animation: arrival-settle-narrow 520ms ease-out 1;
  }
  @keyframes arrival-settle-narrow {
    0%   { transform: scale(1.08); }
    100% { transform: scale(1); }
  }
  .arrival-bubble { font-size: 24px; padding: 6px 14px; }
  .arrival-foot { padding: 6px 12px 10px; }
  .check-foot { padding: 6px 12px 10px; }
  .end-buddy-box { width: 68px; height: 68px; }
  .end-bubble {
    bottom: 0;
    inset-inline-start: 74px;
    width: auto;
    padding: 5px 8px;
    font-size: 15px;
  }
  .end-line { height: 68px; }
  .start-stack { flex-direction: column; gap: 6px; padding-top: 6px; padding-bottom: 24px; }
  .home-head { flex-direction: row; align-items: baseline; gap: 14px; }
  .hero-box { width: 61px; height: 61px; }
  .omer-box { width: 61px; height: 61px; margin-inline-start: -32px; }
  .friend-box { width: 40px; height: 40px; margin-inline-start: -18px; }
  .app-title { font-size: 24px; }
  .nav-row { gap: 10px; }
  .door-btn { flex-direction: column; width: 148px; height: 62px; gap: 2px; padding: 4px 8px;
              border: 4px solid var(--gold); }
  .hotel-btn { flex-direction: row; width: 200px; gap: 8px; border-color: var(--sky); }
  .hotel-art { height: 50px; aspect-ratio: 1376 / 768; }
  .door-word { font-size: 16px; }
  .chip-box { width: 22px; height: 22px; }
  .star-glyph { width: 22px; height: 22px; }
  .star-num { font-size: 26px; }
  .star-count.big .star-glyph { width: 26px; height: 26px; }
  .star-count.big .star-num { font-size: 34px; }
  .day-glyph { width: 22px; height: 22px; }
  .day-num { font-size: 26px; }
  .path-glyph { width: 22px; height: 22px; }
  .path-num { font-size: 26px; }
  .day-glyph::before { height: 7px; }
  .trophy-fig { width: 18px; height: 18px; }
  .trophy-fig.rung-2 { width: 26px; height: 26px; }
  .present.is-on { flex-direction: row; }
  .present-foot { align-items: center; }
  .present-frame { width: 280px; height: 280px; }
  .present-above .star-count { gap: 3px; }
  .present-above .star-glyph { width: 38px; height: 38px; }
  .present-above .star-num { font-size: 47px; }
  .screen-word { font-size: 24px; }
  .choice-letter { width: 84px; height: 80px; font-size: 38px; }
  .choice-word { width: 156px; height: 80px; font-size: 30px; }
  .store-head { padding: 6px 12px; }
  .hotel-head { flex-direction: column; padding: 6px 12px; gap: 6px; }
  .hotel-shelf { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
  .door { aspect-ratio: 316 / 372; padding: 3px; }
  .door-name { font-size: 20px; padding: 3px 4px; border: 2px solid var(--gold); }
  .card-art { width: 76px; height: 76px; }
  .price .star-glyph { width: 18px; height: 18px; }
  .price .star-num { font-size: 22px; }
  .present-glyph { width: 36px; height: 36px; margin: -9px; }
  .store-foot { padding: 6px 12px 10px; }
  .hotel-foot { padding: 6px 12px 10px; }
  .lobby-head { padding: 6px 12px; }
  .lobby-foot { padding: 6px 12px 10px; }
  .lobby-shelf {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    max-width: 900px;
    gap: 12px;
  }
  .lobby-way { flex-direction: column; padding: 8px; gap: 6px; border: 4px solid var(--sky);
               max-width: 240px; margin-inline: auto; width: 100%; }
  .way-word { font-size: 20px; }
  .room-scene { height: var(--room-stage-h); }
  .room-stage {
    position: relative;
    width: min(var(--room-stage-w), 100%);
    height: 100%;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg);
  }
  .room-art { object-fit: cover; object-position: 5% center; }
  .room-foot { flex-direction: row; gap: 12px; padding: 6px 12px 10px; }
  .bring-label { font-size: 20px; line-height: 1.3; }
  .bring-btn { width: 52px; height: 52px; border: 3px solid var(--moss); }
  .room-friend { height: 42%; border: none; }
  .room-line { padding: 8px 12px; bottom: calc(46% + 12px); border: 5px solid var(--bg); }
  .room-ask {
    width: 40px;
    height: 40px;
    border: none;
    font-size: calc(var(--room-ask-box) * var(--room-ask-glyph));
    inset-inline-start: 10px;
  }
  .room-food {
    left: 10px;
    bottom: calc(var(--room-shelf) - var(--room-dish-sink) * var(--room-dish));
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    height: var(--room-dish);
    pointer-events: none;
  }
  .room-table {
    left: 10px;
    bottom: calc(var(--room-shelf) - var(--room-table-rest) * var(--room-table-h));
    width: var(--room-table-w);
    height: var(--room-table-h);
    object-fit: fill;
    pointer-events: none;
  }
  .room-bag {
    right: var(--room-bag-right);
    bottom: calc(var(--room-bag-shelf) - var(--room-bag-rest) * var(--room-bag-h));
    width: var(--room-bag-w);
    height: var(--room-bag-h);
    display: block;
    pointer-events: none;
  }
  .room-things {
    right: calc(var(--room-bag-right) + var(--room-bag-rim) * var(--room-bag-w));
    bottom: calc(var(--room-bag-shelf) - var(--room-bag-sink) * var(--room-thing));
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    height: var(--room-thing);
    pointer-events: none;
  }
  .room-fridge-hit {
    left: 0;
    bottom: 0;
    width: calc(10px + var(--room-table-w));
    height: calc(var(--room-friend-top) + 12px);
    border: none;
  }
  .room-fridge-shelves {
    top: 0;
    height: 100%;
    left: 50%;
    width: calc(var(--room-stage-h) * var(--room-fridge-ratio));
    transform: translateX(-50%);
  }
  .room-closet-shelves {
    top: 0;
    height: 100%;
    left: 50%;
    width: calc(var(--room-stage-h) * var(--room-closet-ratio));
    transform: translateX(-50%);
  }
  .parents-btn {
    left: calc(env(safe-area-inset-left) + 60px);
    bottom: calc(env(safe-area-inset-bottom) + 6px);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
  }
  .parents-body { flex: 1; min-height: 0; padding: 10px 14px 16px; }
  .parents-head { font-size: 24px; margin: 0 0 10px; }
  .parents-sub { margin: 16px 0 8px; }
  .parents-foot { flex: none; padding: 6px 12px 10px; }
}
@media (orientation: landscape) and (min-height: 600px) {
  #screen-start .hero-box { width: 140px; height: 140px; }
  #screen-start .omer-box { width: 140px; height: 140px; margin-inline-start: -77px; }
  #screen-start .friend-box { width: 92px; height: 92px; margin-inline-start: -41px; }
  #screen-start .parents-btn { left: calc(env(safe-area-inset-left) + 92px); width: 76px; height: 76px; }
  #screen-start .app-title { font-size: 44px; }
  #screen-start .door-btn { width: 290px; height: 124px; }
  #screen-start .hotel-btn { width: 330px; gap: 18px; }
  #screen-start .hotel-art { height: 92px; }
  #screen-start .door-word { font-size: 26px; }
  #screen-start .choice-letter { width: 190px; height: 168px; font-size: 84px; }
  #screen-start .choice-word { width: 340px; height: 168px; font-size: 64px; }
}
@media (orientation: landscape) and (max-height: 599px) {
  .play-stack.wordpics {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    --wordpic-tile-max: calc(100vh - 124px);
  }
  .play-stack.wordpics .word-card { flex: 0 0 auto; }
  .play-stack.wordpics .grid.task-s { flex: 1 1 auto; min-width: 0; }
  .play-stack.build {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: center;
    column-gap: 16px;
    --build-pic-h: calc(0.747 * min(240px, calc(100vh - 124px),
                       calc(100vw - 40px - var(--build-n, 5) * var(--build-tile-w)
                            - (var(--build-n, 5) - 1) * var(--gap))));
  }
  .play-stack.build .pic-art { grid-row: 1 / span 2; }
  .play-stack.build .pic-img { width: var(--build-pic-h); }
  .play-stack.build .build-slots { align-self: end; }
  .play-stack.build .grid.task-m { align-self: start; }
  .play-stack.build .build-slot,
  .play-stack.build .grid.task-m .tile.build-tile { flex-shrink: 0; }
}
@media (orientation: landscape) and (min-height: 600px) {
  #screen-play .play-stack.pics {
    flex-direction: column;
    align-items: stretch;
  }
  #screen-play .play-stack.pics .pic-img {
    width: 100%;
    height: clamp(178px, 31.3vmin, 285px);
  }
  #screen-play .play-stack.pics .grid.task-p { flex: 0 1 auto; }
}
@media (max-height: 640px) {
  .practice-title {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }
  .pt-img { height: 1.3em; }
  .foot.rest { min-height: 68px; }
  .foot.rest .big-round { width: 64px; height: 64px; border: none; }
  .foot.rest .big-round .glyph { font-size: 30px; }
}
@media (max-height: 640px) and (orientation: portrait) {
  .ask.whoami .ask-bubble { font-size: clamp(30px, 9.3vmin, 40px); }
}
@font-face {
  font-family: "KtavPlaypen";
  src: url("fonts/PlaypenSansHebrew-Hebrew.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
:root {
  --ktav-font: "KtavPlaypen", "Noto Sans Hebrew", "Arial Hebrew", "David", system-ui, sans-serif;
}
.ktav,
.choice-ktav .choice-face,
.choice-ktav .door-word {
  font-family: var(--ktav-font);
  font-weight: 400;
}
.choices.has-ktav { flex-wrap: nowrap; }
.choice-ktav .door-word { font-size: 24px; }
@media (orientation: landscape) {
  .choice-ktav .door-word { font-size: 19.2px; }
}
@media (orientation: landscape) and (min-height: 600px) {
  #screen-start .choice-ktav .door-word { font-size: 31.2px; }
}
.tile.ktav-shake { animation: option-shake 320ms ease-in-out 1; }
@media (prefers-reduced-motion: reduce) {
  .tile.ktav-shake { animation: none; }
}
.tile.ktav-right { background: var(--moss); color: var(--card); }
.play-stack.ktav-match { --wordpic-letter: var(--letter-size); }
.play-stack.ktav-match .word-card {
  align-self: center;
  min-width: calc(var(--letter-size) * 1.14);
}
.grid.task-k2 {
  grid-template-columns: repeat(2, minmax(0, calc(var(--letter-size) * 1.6)));
  justify-content: center;
}
.tile.ktav-card { padding: 0; }
#screen-play .tile.ktav,
#screen-play .tile.ktav-card,
#screen-play .word-card.ktav { overflow: hidden; }
.play-stack.ktav-build { --build-pic-h: clamp(72px, 14.9vh, 164px); }
.play-stack.ktav-build .word-card { align-self: center; }
@media (orientation: landscape) and (max-height: 599px) {
  .play-stack.ktav-match {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    --k2-w: min(calc(var(--letter-size) * 1.14), calc((100vw - 24px - 48px - 4 * var(--gap)) / 5));
  }
  .play-stack.ktav-match .word-card { flex: 0 0 auto; width: var(--k2-w); min-width: 0; padding: 0; }
  .grid.task-k2 {
    width: auto;
    grid-template-columns: repeat(4, var(--k2-w));
    margin-inline-start: 22px;
    padding-inline-start: 22px;
    border-inline-start: 4px solid var(--gold);
  }
  .play-stack.ktav-build {
    grid-template-areas: "card slots" "pic pool";
    grid-template-columns: auto auto;
    row-gap: 6px;
    --build-pic-h: calc(0.747 * max(40px, min(96px, calc(100vh - 230px))));
  }
  .play-stack.ktav-build .word-card { grid-area: card; align-self: center; margin: 0; }
  .play-stack.ktav-build .pic-art { grid-area: pic; align-self: center; }
  .play-stack.ktav-build .build-slots { grid-area: slots; align-self: center; margin: 0; }
  .play-stack.ktav-build .grid.task-m { grid-area: pool; align-self: center; }
}
@media (orientation: landscape) and (max-height: 599px) {
  .play-stack.wordpics.ktav-read { --wordpic-tile-max: calc(100svh - 136px); }
}
@media (orientation: landscape) and (max-height: 599px) {
  .play-stack.wordpics:not(.ktav-read) { --wordpic-tile-max: calc(100svh - 136px); }
  .play-stack.build:not(.ktav-build) {
    row-gap: 0;
    --build-pic-h: calc(0.747 * min(240px, calc(100svh - 136px),
                       calc(100vw - 40px - var(--build-n, 5) * var(--build-tile-w) - (var(--build-n, 5) - 1) * var(--gap))));
  }
}
@media (orientation: landscape) and (max-height: 280px) {
  .play-stack.build:not(.ktav-build) .build-slots { margin-bottom: 2px; }
}
@media (orientation: portrait) and (max-width: 599px) {
  .play-stack.ktav-build {
    --build-pic-h: clamp(72px, 14.9svh, 164px);
    --build-letter: min(max(var(--word-size), min(15vmin, 96px)),
                        calc((100vw - 48px - (var(--build-n, 5) - 1) * var(--gap)) / var(--build-n, 5) / 1.14));
    --build-tile-w: calc(var(--build-letter) * 1.14);
  }
}
@media (orientation: landscape) and (max-height: 280px) {
  #stage { padding-top: 0; padding-bottom: 0; }
  .play-stack.ktav-build { row-gap: 2px; }
}
@media (orientation: portrait) {
  .grid.task-b:not(.words) {
    --pl: min(var(--letter-size), 10vh);
    grid-template-columns: repeat(2, calc(var(--pl) * 1.6));
    justify-content: center;
  }
  .grid.task-b:not(.words) .tile {
    font-size: var(--pl);
    min-height: calc(var(--pl) * 1.25);
    padding: 0;
  }
}
@media (orientation: landscape) {
  .lobby-shelf {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    max-width: 900px;
    gap: 12px;
  }
}
@media (max-height: 640px) {
  .lobby-shelf.is-full .lobby-way { padding: 6px; gap: 4px; border: 4px solid var(--sky); max-width: 146px; }
}
#btn-kitchen .way-art {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  container-type: inline-size;
}
.way-soon {
  --ks-f: 13cqw;
  --ks-c: 18cqw;
  position: absolute;
  left: calc(100% - var(--ks-c));
  top: var(--ks-c);
  width: 100cqw;
  box-sizing: border-box;
  padding: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #e8452c;
  color: #fffdf8;
  font-weight: 700;
  font-size: var(--ks-f);
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.way-soon:empty { display: none; }
#btn-ball .way-art { position: relative; overflow: hidden; border-radius: 10px; container-type: inline-size; aspect-ratio: 320 / 173; }
#btn-ball .way-word { white-space: normal; text-align: center; margin-inline: -6px; }
@media (orientation: portrait) and (max-height: 700px) {
  .lobby-shelf.is-many { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lobby-shelf.is-many .way-word { font-size: 16px; white-space: normal; text-align: center; }
}
@media (orientation: landscape) and (max-height: 330px) {
  .lobby-shelf.is-many { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
  .lobby-shelf.is-many .way-word { font-size: 16px; white-space: normal; text-align: center; }
}
.lobby-way .way-art.has-new { position: relative; overflow: hidden; container-type: inline-size; }
.way-soon.way-new { --ks-f: 10cqw; --ks-c: 22cqw; width: 130cqw; }
@media (orientation:landscape) and (min-height:600px){.lobby-shelf.is-many{grid-template-columns:repeat(4,minmax(0,1fr));max-width:820px;gap:22px 18px}.lobby-shelf.is-many .lobby-way{max-width:none}.is-many .way-word{font-size:24px;white-space:normal;text-align:center}}
@media (orientation:landscape) and (max-height:599px){.is-many .way-word{font-size:18px;white-space:normal;text-align:center}}
.pool.is-on, .poolin.is-on { background: var(--bg); overflow: hidden; }
.pool-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background-color: #79B1AF;
}
.pool-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 21vh auto auto;
  grid-template-areas: "board" "path" "pick" "foot";
  gap: 6px;
  padding: 8px 16px 0;
}
.pool-board-cell {
  grid-area: board;
  container-type: size;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pool-board {
  --bh: min(100cqh, calc(100cqw / 0.5726));
  position: relative;
  height: var(--bh);
  width: calc(var(--bh) * 0.5726);
  overflow: hidden;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}
.pool-board-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.pool-sign {
  position: absolute;
  top: 17.5%;
  bottom: 30%;
  left: 13.6%;
  right: 13.6%;
  box-sizing: border-box;
  padding: 0 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: #1b1b1b;
  background: #e9eef2;
  border-radius: 3px;
  font-size: calc(var(--bh) * 0.043);
}
.pool-t1 { font-weight: 700; font-size: 0.96em; line-height: 1.2; }
.pool-t2 { line-height: 1.2; margin: 0.1em 0 0.05em; }
.pool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  line-height: 1.22;
  font-size: 1em;
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: inherit;
}
button.pool-row { cursor: pointer; }
.pool-mark { font-weight: 700; width: 1.2em; flex: none; text-align: center; }
.pool-row.ok .pool-mark { color: var(--moss); }
.pool-row.no {
  width: calc(100% + 0.6em);
  box-sizing: border-box;
  margin: 0.05em -0.3em;
  padding: 0.04em 0.3em;
  border-radius: 6px;
  background: rgba(217, 72, 59, 0.16);
  color: #b8322a;
  font-weight: 700;
  font-size: 1.22em;
}
.pool-row.no .pool-mark { color: #d9483b; }
.pool-row.pop { animation: pool-pop 0.55s ease-out 1; }
@keyframes pool-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pool-row.pop { animation: none; }
}
.pool-moby { font-size: 1.15em; line-height: 1.45; font-weight: 600; }
.pool-path {
  grid-area: path;
  container-type: size;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pool-pair {
  --ph: min(100cqh, 50cqw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--ph);
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}
.pool-friend { height: 100%; width: auto; aspect-ratio: 1 / 1; display: block; }
.pool-bag {
  position: relative;
  display: block;
  height: 40%;
  aspect-ratio: 288 / 315;
  overflow: hidden;
  margin-inline-start: -14%;
  margin-bottom: 6%;
  flex: none;
}
.pool-bag-img { position: absolute; width: 177.78%; height: auto; left: -37.5%; top: -30.16%; }
.pool-bag.full { height: 52%; aspect-ratio: 1 / 1; margin-bottom: 2%; }
.pool-bag.full .pool-bag-img { width: 100%; height: 100%; left: 0; top: 0; }
.pool-pick {
  grid-area: pick;
  justify-self: center;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 253, 248, 0.85);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.pool-pick::-webkit-scrollbar { display: none; }
.pool-pick-friend {
  flex: none;
  scroll-snap-align: center;
  --pk: min(52px, 11.5vw);
  width: var(--pk);
  height: var(--pk);
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  box-sizing: content-box;
}
.pool-pick-friend.on { border-color: #1f9bb5; }
.pool-pick-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pool-foot {
  grid-area: foot;
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
}
.poolin-art {
  --pw: max(100vw, 100vh);
  --pw: max(100vw, 100dvh);
  position: absolute;
  width: var(--pw);
  aspect-ratio: 1 / 1;
  left: clamp(calc(100vw - var(--pw)), calc(50vw - var(--pw) * 500 / 1024), 0px);
  top: clamp(calc(100vh - var(--pw)), calc(50vh - var(--pw) * 640 / 1024), 0px);
  top: clamp(calc(100dvh - var(--pw)), calc(50dvh - var(--pw) * 640 / 1024), 0px);
}
.poolin-art-img { display: block; width: 100%; height: 100%; }
.poolin-art { background-color: #4F8277; }
.poolin-friend {
  position: absolute;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  height: auto;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
  touch-action: none;
  transform-origin: 50% 100%;
}
.poolin-friend-img { display: block; width: 100%; height: 100%; }
.poolin-friend.water { left: 32.715%; width: 26.367%; bottom: 9.180%; }
.poolin-friend.lounger { left: 46.631%; width: 17.090%; bottom: 41.406%; }
.poolin-foot {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  padding: 10px 12px;
}
@media (orientation: portrait) and (max-height: 760px) {
  .poolin-foot { padding-bottom: 4px; }
  .poolin-foot .back-btn { min-width: 132px; height: 52px; padding: 0 14px; }
  .poolin-foot .back-word { font-size: 20px; }
  .poolin-foot .back-arrow { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 13px; }
}
.poolin-slide {
  --st: min(30vw, 30vh, 150px);
  --st: min(30vw, 30dvh, 150px);
  position: absolute;
  top: 12px;
  right: 12px;
  width: var(--st);
  height: var(--st);
  box-sizing: border-box;
  padding: 0;
  border: 4px solid #fffdf8;
  border-radius: 16px;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.poolin-slide-img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.poolin-dive { --st: min(30vw, 30vh, 150px); --st: min(30vw, 30dvh, 150px); position: absolute; top: 12px; right: calc(20px + var(--st));
  width: var(--st); height: var(--st); box-sizing: border-box; padding: 0; border: 4px solid #fffdf8;
  border-radius: 16px; background: #fffdf8; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); cursor: pointer; }
.poolin-dive[hidden] { display: none; }
.poolin-dive-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; pointer-events: none; }
.poolin-dive.dive-arrive { animation: dive-pop 0.6s ease-out; }
.poolin-dive .dive-hand { position: absolute; right: -6px; bottom: -10px; width: 40px; height: 40px; pointer-events: none;
  animation: path-nudge 1400ms ease-in-out infinite; }
@keyframes dive-pop { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } }
.dive.is-on { background: #d8c3a0; overflow: hidden; }
.dive-foot { position: absolute; left: 0; top: 0; display: flex; padding: 10px 12px; z-index: 5; }
@media (orientation: landscape) {
  .poolin-slide { top: 10px; border: 4px solid #fffdf8; }
  .poolin-dive { top: 10px; border: 4px solid #fffdf8; }
  .pool-stage {
    grid-template-columns: auto minmax(0, 1fr) min(45vw, calc((100vh - 16px) * 0.5726));
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "pick path board" "pick foot board";
    gap: 8px;
    padding: 8px 12px;
  }
  .pool-pick { flex-direction: column; align-self: center; gap: 6px; padding: 6px; max-width: none; max-height: 100%;
    overflow-x: hidden; overflow-y: auto; scroll-snap-type: y proximity; overscroll-behavior-y: contain; }
  .pool-pick-friend { --pk: min(44px, 11vh); border: 3px solid transparent; }
  .pool-pair { --ph: min(100cqh, 45cqw); }
  .pool-foot { padding: 0; }
  .poolin-friend.water { left: 34.668%; width: 22.461%; bottom: 16.016%; }
  .poolin-foot { padding: 6px 12px; }
}
.ladder.is-on, .ride.is-on { background: var(--bg); overflow: hidden; }
.slide-scene {
  --sw: min(100vw, calc(100vh * 768 / 1376));
  --sw: min(100vw, calc(100dvh * 768 / 1376));
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--sw);
  height: calc(var(--sw) * 1376 / 768);
  transform: translate(-50%, -50%);
  container-type: size;
}
#ladder-scene { background-color: #B1A698; }
#ride-scene { background-color: #BCC6B2; }
.slide-scene-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ladder-friend { position: absolute; left: 10%; top: 55%; width: 36%; aspect-ratio: 1 / 1; display: block; pointer-events: none; }
.ladder-ticket {
  position: absolute;
  left: 68%;
  top: 70%;
  width: 21%;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
  transition: left 0.7s ease-in, top 0.7s ease-in, width 0.7s ease-in, opacity 0.2s 0.6s;
}
.ladder-ticket-img { width: 100%; display: block; pointer-events: none; }
.ladder-ticket.given { left: 78.8%; top: 55.8%; width: 4%; opacity: 0; }
.ladder-ticket-mark { position: absolute; left: 14%; top: 86%; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.ladder-ticket.given .ladder-ticket-mark { display: none; }
.ladder-ticket { container-type: inline-size; }
.slide-board { aspect-ratio: 576 / 1006; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35)); }
.slide-board-img { width: 100%; height: 100%; display: block; pointer-events: none; }
.slide-glass {
  position: absolute;
  top: 17.5%;
  bottom: 30%;
  left: 13.6%;
  right: 13.6%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9eef2;
  color: #1b1b1b;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  border-radius: 2px;
  overflow: hidden;
}
.ladder-need { position: absolute; left: 68%; top: 58%; width: 30%; transform: translateX(-50%); }
.ladder-need-word { flex-direction: column; font-size: clamp(14px, 3.5cqh, 28px); line-height: 1.5; }
.ladder-need-word .price { direction: ltr; unicode-bidi: isolate; gap: 0.15em; }
.ladder-need-word .star-glyph { width: 0.9em; height: 0.9em; }
.ladder-need-word .star-num { font-size: 1em; color: inherit; }
.ladder-stars {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 48, 58, 0.82);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.ladder-foot { position: absolute; left: 0; bottom: 0; display: flex; padding: 12px; }
.ride-foot { position: absolute; left: 0; top: 0; display: flex; padding: 10px 12px; }
.slide-back { position: relative; transform-origin: 100% 0; }
.ride-foot .slide-back, .ladder.side .slide-back { transform-origin: 100% 100%; }
.ride-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ride-float { mix-blend-mode: multiply; }
.ride-item { cursor: pointer; }
.ride-item:focus { outline: none; }
.ride-item:focus-visible circle { stroke: #1f9bb5; stroke-width: 8; }
.ride-sign {
  position: absolute;
  left: 70.7031%;
  top: 0.3634%;
  width: 28.9063%;
  aspect-ratio: 508 / 640;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.ride-sign.on { opacity: 1; }
.ride-sign-img { width: 100%; height: 100%; display: block; }
.ride-word {
  position: absolute;
  left: 10.63%;
  right: 10.24%;
  top: 18.91%;
  height: 37.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1b1b;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .ladder-ticket, .ride-sign { transition: none; }
}
.ladder.side .ladder-foot { top: 0; bottom: auto; padding: 10px 12px; }
.ladder.side .ladder-stars { top: auto; bottom: 14px; }
.poolin.glide .poolin-art { transition: top 0.6s ease-in-out, left 0.6s ease-in-out; }
.poolin.glide .poolin-friend { transition: left 0.6s ease-in-out, bottom 0.6s ease-in-out, width 0.6s ease-in-out; }
.poolin-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.ride-train-pic { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); }
@media (prefers-reduced-motion: reduce) {
  .poolin.glide .poolin-art, .poolin.glide .poolin-friend { transition: none; }
}
.poolin-mark {
  position: absolute;
  left: calc(74% - var(--room-ask-box) / 2);
  top: calc(80% - var(--room-ask-box) / 2);
  pointer-events: none;
}
.poolin.swim .poolin-friend { transition: left 1.6s ease-in-out, bottom 1.6s ease-in-out; }
.poolin.swim .poolin-friend-img { animation: poolin-paddle 0.4s ease-in-out infinite alternate; }
@keyframes poolin-paddle {
  from { transform: rotate(-5deg) translateY(0); }
  to { transform: rotate(5deg) translateY(-4px); }
}
.poolin-feed {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.poolin-coconut {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  transform-origin: 50% 50%;
}
.poolin-coconut > img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 2px #fffdf8) drop-shadow(0 0 2px #fffdf8) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}
.poolin-line {
  inset-inline: auto;
  left: 0;
  top: 0;
  bottom: auto;
  margin: 0;
  padding: 8px 16px;
  font-size: 30px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.25s;
}
.poolin-line.on { opacity: 1; }
.poolin.side .poolin-line { font-size: 26px; padding: 6px 14px; }
.poolin-line.down::before { inset-inline-start: auto; left: calc(var(--tail, 50%) - 14px); }
.poolin-line.down::after { inset-inline-start: auto; left: calc(var(--tail, 50%) - 9px); }
.poolin-line.right::before {
  top: calc(var(--tail, 50%) - 14px);
  inset-inline-start: auto;
  left: 100%;
  border-inline: 0;
  border-block: 14px solid transparent;
  border-left: 14px solid var(--bg);
}
.poolin-line.right::after {
  top: calc(var(--tail, 50%) - 9px);
  inset-inline-start: auto;
  left: 100%;
  border-inline: 0;
  border-block: 9px solid transparent;
  border-left: 9px solid var(--card);
}
@media (prefers-reduced-motion: reduce) {
  .poolin.swim .poolin-friend { transition: none; }
  .poolin.swim .poolin-friend-img { animation: none; }
  .poolin-line { transition: none; }
}
.pool.side .pool-stage { display: block; padding: 0; }
.pool.side .pool-board-cell { position: absolute; }
.pool.side .pool-path { position: absolute; justify-content: flex-start; }
.pool.side .pool-pair { --ph: 100cqh; }
.pool.side .pool-bag { margin-inline-start: calc(var(--ph) * -0.2); }
.pool.side .pool-pick { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); max-height: calc(100% - 16px); }
.pool.side .pool-pick-friend { --pk: var(--gate-pk, 44px); }
.pool.side .pool-foot { position: absolute; padding: 0; }
.kit.is-on { overflow: hidden; background: var(--bg); padding: 0; }
.kit.kit-fetch.is-on { background: #f3efe8; }
.kit-frame, .kit-scene, .kit-clip, .kit-band { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.kit-clip { overflow: hidden; width: 100%; height: 100%; }
.kit-frame { width: 390px; height: 844px; }
.kit-overlay { width: 0 !important; height: 0 !important; }
.kit-scene > .kit-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.kit-shelves { background: #fbfbfa; }
.kit button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.kit-back { position: absolute; min-width: 128px; width: 128px; height: 50px; padding: 0 10px; border-radius: 16px; z-index: 7; }
.kit-back .back-word { font-size: 23px; }
.kit-mark { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; }
.kit-clip-word { position: absolute; display: flex; align-items: flex-start; justify-content: center; font-weight: 700;
  color: #1b1b1b; white-space: nowrap; line-height: 1.3; box-sizing: border-box; text-align: center; }
.kit-check { position: absolute; text-align: center; font-weight: 700; color: var(--moss); line-height: 1; }
.kit-clip { position: absolute; display: block; max-width: none; }
.kit-bubble { position: absolute; background: #fffdf8; border: 4px solid var(--moss); border-radius: 24px; padding: 8px 19px;
  font-weight: 700; white-space: nowrap; color: var(--ink); line-height: 1.45; }
.kit-sparkle { position: absolute; line-height: 1; animation: kit-pop 0.6s ease-out 1 both; }
.kit-earned { position: absolute; border-radius: 999px; background: rgba(34, 48, 58, 0.82); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.kit-arrow { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: none; padding: 0; z-index: 6;
  background: var(--sky); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); cursor: pointer; display: flex;
  align-items: center; justify-content: center; }
.kit-arrow svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 3.2; fill: none; stroke-linecap: round;
  stroke-linejoin: round; }
.kit-clip-word.fresh { animation: kit-fresh 0.7s ease-out 1 both; }
@keyframes kit-fresh { 0% { opacity: 0; transform: scale(0.85); } 100% { opacity: 1; transform: none; } }
.dish-card.kmenu-card { border-color: var(--gold); color: inherit; width: 100%; }
.dish-card.kmenu-card.now { border-color: var(--sky); }
.dish-card.kmenu-card:active { transform: scale(0.99); }
.dish-art.kmenu-art { position: relative; overflow: hidden; }
.kmenu-img { position: absolute; display: block; max-width: none; pointer-events: none; }
.dish-name.kmenu-name.long { font-size: 30px; }
.dish-new { flex: none; width: 40px; font-size: 28px; line-height: 1; text-align: center; }
@media (orientation: landscape) and (max-height: 499px) {
  .kmenu.is-on { display: grid; grid-template-columns: 1fr 150px; grid-template-rows: auto 1fr;
    grid-template-areas: "head head" "body foot"; }
  .menu-head.kmenu-head { grid-area: head; padding: 6px 12px 2px; }
  .screen-word.kmenu-title { font-size: 26px; }
  .menu-body.kmenu-body { grid-area: body; padding: 4px 12px 10px; }
  .menu-shelf.kmenu-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 840px; }
  .dish-art.kmenu-art { width: 56px; height: 56px; }
  .dish-name.kmenu-name { font-size: 28px; }
  .dish-name.kmenu-name.long { font-size: 22px; }
  .menu-foot.kmenu-foot { grid-area: foot; align-items: flex-end; justify-content: flex-start; padding: 0 0 10px 12px; }
  .back-btn.kmenu-back { min-width: 0; width: 128px; height: 50px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .kit-clip-word.fresh { animation: none; } }
.kit-pick { position: absolute; display: flex; align-items: center; gap: 8px; height: 48px; max-width: 300px; padding: 4px 14px 4px 4px;
  border: none; border-radius: 24px; background: rgba(255, 253, 248, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); z-index: 7;
  cursor: pointer; font-weight: 700; font-size: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.kit-pick .kit-pick-arrow { position: static; flex: none; box-shadow: none; }
.kit-zone { position: absolute; background: transparent; border: none; padding: 0; cursor: pointer; }
.kit-items { position: absolute; left: 0; top: 0; }
.kit-g, .kit-crate { position: absolute; display: block; overflow: hidden; }
.kit-crate { overflow: visible; }
.kit-g-img, .kit-crate-img { position: absolute; display: block; max-width: none; }
.kit-take { cursor: pointer; }
.kit-carrot-in { transform-origin: 50% 100%; }
.kit-crate-front { clip-path: inset(69.9% 0 0 0); }
.kit-band { background: #ecdcc2; }
.kit-frost { position: absolute; left: 410px; top: 138px; width: 262px; height: 504px; pointer-events: none; border-radius: 6px;
  background: linear-gradient(180deg, rgba(200, 232, 255, 0.55), rgba(225, 242, 255, 0.38) 60%, rgba(200, 232, 255, 0.5));
  box-shadow: inset 0 0 18px 6px rgba(255, 255, 255, 0.85), inset 0 0 0 3px rgba(170, 215, 250, 0.6); }
.kit-bench { position: absolute; }
.kit-table { position: absolute; display: block; }
.kit-on-table, .kit-stars { position: absolute; left: 0; top: 0; }
.kit-extra { cursor: pointer; }
.kit-extra-x { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background: rgba(217, 72, 59, 0.16); color: #d9483b; font-weight: 700; font-size: 26px; line-height: 1; cursor: pointer; }
.kit-vanish { animation: kit-vanish 0.7s ease-in 1 both; }
.kit-dish-on { animation: kit-pop 0.5s ease-out 1 both; }
.kit-star { position: absolute; line-height: 1; pointer-events: none; animation: kit-burst 0.9s ease-out 1 both; }
.kit-hop { transform-origin: 50% 100%; animation: kit-hop 940ms ease-in-out 1 both; }
.kit-twinkle { position: absolute; line-height: 1; pointer-events: none; animation: kit-twinkle 846ms ease-out 1 both; }
.kit-card { position: absolute; left: 190px; top: 12px; width: 196px; box-sizing: border-box; background: #fbf7ee;
  border: 4px solid #7a4a2a; border-radius: 8px; padding: 6px 8px 8px; text-align: center; color: var(--ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.kit-card-title { font-weight: 700; font-size: 21px; line-height: 1.2; }
.kit-card-need { font-size: 15px; line-height: 1.2; margin: 2px 0 4px; }
.kit-row { display: flex; justify-content: space-between; align-items: center; font-size: 18px; line-height: 1.3; padding: 0 2px; }
.kit-row-word { white-space: nowrap; }
.kit-row-mark { font-weight: 700; width: 1.2em; flex: none; text-align: center; }
.kit-row.ok { color: #4f6b2e; }
.kit-row.ok .kit-row-mark { color: var(--moss); }
.kit-row.no { margin: 3px -5px; padding: 1px 6px; border-radius: 6px; background: rgba(217, 72, 59, 0.16); color: #b8322a;
  font-weight: 700; font-size: 21px; }
.kit-row.no .kit-row-mark { color: #d9483b; }
@keyframes kit-pop { 0% { transform: scale(0.2); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes kit-burst { 0% { transform: translateY(24px) scale(0.2); opacity: 0; } 45% { transform: translateY(0) scale(1.3); opacity: 1; }
  100% { transform: translateY(-14px) scale(0.9); opacity: 0; } }
@keyframes kit-vanish { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.5) translateY(-20px); } }
@keyframes kit-hop { 0% { transform: none; } 12% { transform: scale(1.05, 0.92); } 48% { transform: translateY(-30px) scale(0.97, 1.05); }
  82% { transform: translateY(0) scale(1.05, 0.93); } 100% { transform: none; } }
@keyframes kit-twinkle { 0% { transform: scale(0.1) rotate(0); opacity: 0; } 35% { transform: scale(1.25) rotate(20deg); opacity: 1; }
  70% { transform: scale(1) rotate(-10deg); opacity: 1; } 100% { transform: scale(0.4) rotate(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .kit-sparkle, .kit-star, .kit-vanish, .kit-dish-on, .kit-hop, .kit-twinkle { animation: none; }
}
.kit-rs-shelf { display: flex; justify-content: center; align-items: center; height: 100%; padding: 0; overflow: visible; }
.kit-rs-card { width: auto; height: auto; max-width: none; max-height: none; flex: none; }
.kit-rs-door .door { position: relative; aspect-ratio: auto; }
.kit-rs-hand { position: absolute; left: 50%; top: 68%; transform: translate(-50%, -50%); pointer-events: none; }
.kit-rs-door .door.knock { animation: rs-rap 110ms ease-in-out 2; }
@keyframes rs-rap { 50% { transform: translateX(1.5px); } }
@media (prefers-reduced-motion: reduce) {
  .kit-rs-door .door.knock { animation: none; }
}
.kit-rs-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kit-rs-trolley { position: absolute; left: 0; top: 0; }
.kit-rs-trolley > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.kit-rs-plate { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.kit-rs-plate > img { position: absolute; left: 0; top: 0; display: block; }
#btn-start.choice-book {
  width: auto; height: auto; padding: 14px 34px 10px; background: var(--card); box-shadow: none; border: none; border-radius: 18px;
  border-bottom: 8px solid var(--sky); gap: 0;
  display: flex; flex-direction: column; align-items: center;
}
#btn-start .book-img { height: 96px; display: block; transform: none; }
#btn-start .door-word { font-size: 40px; line-height: 1.1; color: var(--ink); margin-top: 2px; }
@media (orientation: landscape) and (min-height: 600px) {
  #btn-start .book-img { height: 120px; }
  #btn-start .door-word { font-size: 50px; }
}
@media (orientation: landscape) and (max-height: 599px) {
  #hotel-way.with-door { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 40px; }
  #hotel-way.with-door .choices { margin: 0; }
  #btn-start.choice-book { padding: 8px 22px 6px; }
  #btn-start .book-img { height: 48px; }
  #btn-start .door-word { font-size: 24px; margin-top: 2px; }
}
#hotel-way.with-door { display: flex; flex-direction: row; align-items: stretch; justify-content: center; gap: 16px; margin: 14px auto auto; }
.start-stack > #hotel-way { margin-bottom: auto; }
#hotel-way.with-door .choices { margin: 0; display: flex; align-items: stretch; flex-wrap: nowrap; }
#hotel-way #btn-hotel, #hotel-way #btn-start.choice-book {
  width: 150px; height: auto; padding: 12px 18px 8px; background: var(--card); box-shadow: none; border: none; border-radius: 18px;
  border-bottom: 8px solid var(--sky); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
}
#hotel-way #btn-hotel .hotel-art { display: block; width: auto; height: auto; aspect-ratio: auto; }
#hotel-way #btn-hotel .hotel-img { height: 110px; width: auto; display: block; border-radius: 10px; }
#hotel-way #btn-start .book-img { height: 96px; margin-bottom: 6px; }
#hotel-way #btn-hotel .door-word, #hotel-way #btn-start .door-word { color: var(--ink); font-size: 34px; line-height: 1.15; margin: 2px 0 0; }
@media (orientation: landscape) and (min-height: 600px) {
  #hotel-way #btn-hotel, #hotel-way #btn-start.choice-book { width: 190px; }
  #hotel-way #btn-hotel .hotel-img { height: 150px; }
  #hotel-way #btn-start .book-img { height: 130px; }
  #hotel-way #btn-hotel .door-word, #hotel-way #btn-start .door-word { font-size: 42px; }
}
@media (orientation: landscape) and (max-height: 599px) {
  #hotel-way.with-door { margin-top: 4px; gap: 16px; }
  #hotel-way #btn-hotel, #hotel-way #btn-start.choice-book { width: 110px; padding: 6px 12px 4px; }
  #hotel-way #btn-hotel .hotel-img { height: 62px; }
  #hotel-way #btn-start .book-img { height: 52px; margin-bottom: 2px; }
  #hotel-way #btn-hotel .door-word, #hotel-way #btn-start .door-word { font-size: 22px; }
}
.play-stack.wordpics.four {
  --wordpic-letter: clamp(64px, 13vmin, 100px);
  --wordpic-tile-max: min(207px, calc((100vw - 40px) * 0.39));
}
.grid.task-s.four { grid-template-columns: repeat(2, minmax(0, var(--wordpic-tile-max))); }
@media (orientation: portrait), (min-height: 600px) {
  .play-stack.wordpics.four .word-card { width: auto; max-width: 100%; min-width: min(100%, calc(2 * var(--wordpic-tile-max) + var(--gap))); }
}
.grid.task-s.four .tile.pic-tile { padding: 3%; overflow: hidden; }
.grid.task-s.four .pic-tile-img { padding: 5.2%; }
@media (orientation: landscape) {
  .grid.task-s.four { grid-template-columns: repeat(4, minmax(0, var(--wordpic-tile-max))); }
}
@media (orientation: landscape) and (min-height: 600px) {
  .play-stack.wordpics.four { --wordpic-tile-max: min(171px, calc((100vw - 64px) * 0.195)); }
  .play-stack.wordpics.four .word-card { min-width: min(100%, calc(4 * var(--wordpic-tile-max) + 3 * var(--gap))); }
}
@media (orientation: landscape) and (max-height: 599px) {
  .play-stack.wordpics.four { --wordpic-letter: clamp(48px, 15vh, 80px);
    --wordpic-tile-max: min(110px, calc((100svh - 136px) * 0.78)); }
}
@media (orientation: landscape) {
  .grid.task-a.four { grid-template-columns: 1fr 1fr; }
}
.path-screen { --grass: #cfe3a6; background: var(--grass); overflow: hidden; }
.path-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.path-view img { -webkit-user-drag: none; }
.path-foot { position: absolute; left: 0; bottom: 0; display: flex; padding: 12px; z-index: 10; direction: ltr; }
.path-col { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); overflow: hidden;
  box-shadow: 0 0 40px 30px var(--grass); }
.path-world { position: absolute; left: 0; top: 0; width: 100%; transition: transform 900ms cubic-bezier(.3, .8, .3, 1); }
.path-world.still { transition: none; }
.path-tile { position: absolute; left: 0; width: 100%; display: block; }
.path-warm { display: none; }
.path-done { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; background: #f6c445;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.path-piece { position: absolute; transform: translate(-50%, -88%); z-index: 4;
  transition: left 700ms ease-in-out, top 700ms ease-in-out; }
.path-piece.still { transition: none; }
.path-piece img, .path-piece .path-star { display: block; width: 100%; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .25)); }
.path-piece .path-star { aspect-ratio: 1; background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.path-piece.hop img, .path-piece.hop .path-star { animation: path-hop 700ms ease-in-out; }
@keyframes path-hop { 0% { transform: translateY(0); } 45% { transform: translateY(-38%); } 100% { transform: translateY(0); } }
.path-gift { position: absolute; transform: translate(-50%, -80%); z-index: 3; cursor: pointer;
  transition: left 900ms cubic-bezier(.25, .9, .35, 1), top 900ms cubic-bezier(.25, .9, .35, 1); }
.path-gift.front { z-index: 5; }
.path-gift .path-box { display: block; width: 100%; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .25)); }
.path-gift.ready .path-box { animation: path-breathe 1600ms ease-in-out infinite; }
@keyframes path-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.path-gift.shake .path-box { animation: path-shake 520ms ease-in-out; }
@keyframes path-shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 35% { transform: rotate(8deg); }
  55% { transform: rotate(-6deg); } 75% { transform: rotate(4deg); } }
.path-gift.open .path-box { animation: path-burst 450ms ease-out; }
@keyframes path-burst { 0% { transform: scale(1); } 40% { transform: scale(1.2, .82); } 100% { transform: scale(1); } }
.path-hand { position: absolute; right: -18%; bottom: 0; width: 40px; height: 40px; pointer-events: none;
  animation: path-nudge 1400ms ease-in-out infinite; }
@keyframes path-nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -4px); } }
.path-prize .path-hand, .path-piece .path-hand { animation: none; }
.path-prize { position: absolute; width: calc(var(--path-col, 412px) * .24); transform: translate(-50%, -88%); z-index: 6;
  display: flex; align-items: center; justify-content: center;
  transition: left 900ms cubic-bezier(.3, 1.3, .5, 1), top 900ms cubic-bezier(.3, 1.3, .5, 1), transform 900ms cubic-bezier(.3, 1.3, .5, 1),
  opacity 250ms; }
.path-prize.ticket { width: calc(var(--path-col, 412px) * .14); }
.path-prize.stars { width: calc(var(--path-col, 412px) * .34); }
.path-prize.from-box, .path-piece.from-box { transform: translate(-50%, -88%) scale(.3); opacity: 0; transition: none; }
.path-prize.out::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, #fff6c4 0%, #fff6c400 70%); }
.path-prize.tap, .path-piece.tap { cursor: pointer; }
.path-prize .path-hand { right: -14%; bottom: -8%; }
.path-piece .path-hand { right: -12%; bottom: 4%; }
.path-prize.gone { transform: translate(-50%, -88%) scale(.2); opacity: 0; }
.path-prize.onto { transform: translate(-50%, -88%) scale(.6); opacity: 0; transition-duration: 900ms, 900ms, 900ms, 900ms; }
.path-prize.fly { transform: translate(-50%, -88%) scale(.3); opacity: 0; transition-duration: 900ms; }
.path-prize.hop img { animation: path-hop 600ms ease-in-out 2; }
.path-prize img { display: block; width: 100%; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .25)); }
.path-prize .star-count { white-space: nowrap; }
.path-prize .star-num { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.path-confetti { position: absolute; width: 9px; height: 9px; border-radius: 2px; z-index: 7; pointer-events: none; }
.path-prize.bell { width: calc(var(--path-col, 412px) * .175); }
.path-prize.bell .path-hand { right: -16%; bottom: -14%; }
.path-prize.ring img { animation: path-ring 900ms ease-in-out; transform-origin: 50% 85%; }
@keyframes path-ring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg) scale(1.06); } 25% { transform: rotate(11deg) scale(1.06); }
  40% { transform: rotate(-8deg); } 55% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } 85% { transform: rotate(2deg); } }
.path-wave { position: absolute; left: 50%; top: 18%; width: 60%; aspect-ratio: 1; border: 3px solid var(--card); border-radius: 50%; opacity: 0;
  transform: translate(-50%, -50%) scale(.4); pointer-events: none; animation: path-wave 900ms ease-out forwards; }
@keyframes path-wave { 0% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); } }
#btn-kitchen.kit-arrive { transform: scale(.1); opacity: 0; transition: transform 750ms cubic-bezier(.3, 1.5, .5, 1), opacity 250ms; }
#btn-kitchen.kit-arrive.in { transform: scale(1); opacity: 1; }
.kit-arrive-hand { position: absolute; right: 4%; top: 28%; width: 40px; height: 40px; pointer-events: none;
  animation: path-nudge 1400ms ease-in-out infinite; }
.kit-spark { position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 3; background: #FFE27A;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.path-stars { position: absolute; left: 16px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 9; pointer-events: none; }
.path-stars .star-num { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
@keyframes path-pop { 40% { transform: scale(1.4); } }
.path-me { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--card); background: var(--sky); padding: 4px; margin-left: 12px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); align-self: center; }
.path-me[hidden] { display: none; }
.path-me:active { transform: scale(.96); }
.path-me-img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) {
  .path-gift, .path-prize { transition: none; }
  .path-gift.ready .path-box, .path-gift.shake .path-box, .path-gift.open .path-box, .path-hand, .path-prize.hop img { animation: none; }
  .path-prize.ring img, .path-wave, .kit-arrive-hand { animation: none; }
  #btn-kitchen.kit-arrive { transition: none; }
}
.ticket-count { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
.ticket-count-img { height: 1.3em; width: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.star-count.big .ticket-count-img { height: 40px; }
.kit-rs-door.with-name .door-name { visibility: visible; }
.kit-rs-door.with-name .kit-rs-hand { top: 68%; }
.pool.from-path .pool-pick { visibility: hidden; }
.pool-row.got { animation: path-pop 600ms ease-out 400ms both; background: rgba(122, 148, 85, .22); border-radius: 6px; }
button.star-count, button.day-count { border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; cursor: pointer; position: relative; }
button.star-count:active, button.day-count:active { transform: scale(0.94); }
.count-hand { position: absolute; width: 24px; height: 24px; left: 1px; bottom: -20px; pointer-events: none; }
.day-count.big .day-glyph { width: 36px; height: 36px; border-radius: 7px; }
.day-count.big .day-glyph::before { height: 11px; border-radius: 7px 7px 0 0; }
.day-count.big .day-num { font-size: 44px; }
.counter-screen.is-on { background: var(--bg); }
.cnt-head { flex: none; display: flex; justify-content: center; align-items: center; padding: 14px 16px 10px; }
.days-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 8px; -webkit-overflow-scrolling: touch; }
.days-grid { direction: rtl; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 330px; margin: 0 auto; }
.day-page { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; background: var(--card); overflow: hidden; display: flex;
  flex-direction: column; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.day-page .band { flex: none; height: 30%; background: var(--gold); display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-weight: 700; font-size: clamp(9px, 2.6vw, 12px); line-height: 1; direction: ltr; }
.day-page .tick { flex: 1; display: flex; align-items: center; justify-content: center; }
.day-page .tick svg { width: 62%; height: auto; max-height: 90%; display: block; }
.day-page.today { outline: 3px solid var(--sky); outline-offset: 2px; }
.piles-area { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 26px 16px 6px; overflow: hidden; }
.piles { direction: ltr; display: flex; align-items: flex-end; justify-content: center; gap: 26px; transform-origin: center center; }
.pile-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pile { position: relative; flex: none; }
.pile-star { position: absolute; left: 0; display: block; height: auto;
  filter: drop-shadow(0 3px 0 rgba(90, 60, 10, 0.55)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.pile-more { position: absolute; left: 50%; top: -4px; z-index: 20; transform: translate(-50%, -100%); background: var(--sky); color: var(--ink);
  font-weight: 700; font-size: 15px; line-height: 1; padding: 4px 8px; border-radius: 999px; white-space: nowrap; direction: ltr;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.pile-label { direction: ltr; font-weight: 700; color: var(--card); line-height: 1; white-space: nowrap; font-size: 22px; }
.pile-label .x { color: #9fb0bc; margin: 0 3px; font-weight: 400; }
.pile-label .v { color: var(--gold); }
.plate { width: 100%; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); margin-top: -4px; }
@media (orientation: landscape) and (max-height: 520px) {
  .counter-screen.is-on { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; }
  .counter-screen .cnt-head { grid-column: 1; grid-row: 1; padding: 8px 16px; }
  .counter-screen .cnt-foot { grid-column: 1; grid-row: 2; padding: 8px 16px 12px; }
  .counter-screen .days-scroll, .counter-screen .piles-area { grid-column: 2; grid-row: 1 / span 2; }
  .counter-screen .days-scroll { padding-top: 10px; }
  .days-grid { max-width: 420px; }
  .day-page .band { font-size: 13px; }
  .piles-area { padding-top: 26px; padding-bottom: 10px; }
}
.rd-chip { position: fixed; top: 12px; right: 12px; z-index: 40; display: flex; gap: 10px; align-items: center; direction: rtl;
  padding: 6px 14px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--sky);
  font-family: inherit; font-size: 26px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.rd-chip[hidden], .rd-first[hidden], .rd-dim[hidden], .rd-list[hidden], .rd-ask[hidden] { display: none; }
.rd-arr { font-size: 16px; color: #7a6c55; }
.rd-ic { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 40px; }
.rd-ic img { height: 40px; width: auto; }
.rd-chip .rd-ic { width: auto; height: 34px; }
.rd-chip .rd-ic img, .rd-chip .rd-ic svg { height: 34px; }
.rd-ic svg { height: 40px; width: auto; color: var(--ink); }
.rd-first { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 16px; box-sizing: border-box; background: var(--bg); direction: rtl; overflow: auto; }
.rd-first-title { margin: 0; color: var(--card); font-size: clamp(30px, 8vmin, 44px); }
.rd-box { display: flex; flex-direction: column; gap: 14px; width: min(380px, 100%); box-sizing: border-box; padding: 18px;
  border-radius: 22px; background: var(--card); box-shadow: 0 6px 0 var(--sky); }
.rd-framed { border: 5px solid var(--moss); box-shadow: 0 0 0 6px rgba(122, 148, 85, .35), 0 0 26px rgba(122, 148, 85, .7); }
.rd-input { width: 100%; box-sizing: border-box; padding: 10px 14px; border: 2px solid #cbbd9f; border-radius: 14px; background: #fffdf8;
  color: var(--ink); font-family: inherit; font-size: 36px; }
.rd-go { padding: 10px; border: 0; border-radius: 14px; background: var(--moss); color: var(--card); font-family: inherit; font-size: 28px;
  font-weight: 700; }
.rd-go:disabled { opacity: .45; }
.rd-skip { padding: 8px; border: 2px solid #cbbd9f; border-radius: 14px; background: transparent; color: #5a5040; font-family: inherit;
  font-size: 20px; }
.rd-soft { margin: 0; color: #555; font-size: 16px; }
.rd-warn { color: #8a5a2a; font-size: 15px; }
.rd-dim { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .35); }
.rd-dim.hard { z-index: 50; background: rgba(10, 16, 20, .72); }
.rd-list { position: fixed; top: 64px; right: 12px; z-index: 51; width: 270px; max-height: calc(100vh - 76px); overflow: auto;
  border-radius: 16px; background: var(--card); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); direction: rtl; }
.rd-list.must { top: 12px; width: 290px; max-height: calc(100vh - 24px); border: 5px solid var(--moss); border-radius: 22px;
  box-shadow: 0 0 0 6px rgba(122, 148, 85, .35), 0 0 26px rgba(122, 148, 85, .7); }
.rd-list-title { display: none; margin: 0; padding: 12px 16px 6px; color: var(--ink); font-size: 32px; }
.rd-list.must .rd-list-title { display: block; }
.rd-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: transparent; color: var(--ink); font-family: inherit; font-size: 26px; font-weight: 700; text-align: start; cursor: pointer; }
.rd-list.must .rd-row { border-bottom: 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.rd-row.on { background: #dcebd0; }
.rd-row.sub { padding: 8px 16px; padding-inline-start: 34px; background: rgba(0, 0, 0, .025); font-size: 21px; }
.rd-row.sub.on { background: #dcebd0; }
.rd-off { display: flex; gap: 8px; align-items: center; padding: 12px 16px; background: rgba(0, 0, 0, .04); color: #8a7f6c; font-size: 15px; }
.rd-ask { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .55); direction: rtl; }
.rd-askbox { display: flex; flex-direction: column; gap: 14px; max-width: 420px; width: 100%; box-sizing: border-box; padding: 20px;
  border-radius: 20px; background: var(--card); box-shadow: 0 6px 0 var(--sky); }
.rd-ask-text { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.4; }
.rd-ask-text:empty, .rd-ask .rd-input[hidden] { display: none; }
.rd-btns { display: flex; gap: 12px; }
.rd-btns button { flex: 1; padding: 10px; border: 0; border-radius: 14px; font-family: inherit; font-size: 22px; font-weight: 700; }
.rd-no { background: #cfe7f2; color: var(--ink); }
.rd-yes { background: #e9c2b8; color: #7a2a1a; }
.rd-yes.go { background: var(--moss); color: var(--card); }
.kids-way { margin-top: -10px; }
.kids-glyph { flex: none; display: inline-flex; width: 34px; height: 30px; color: var(--ink); }
.kids-glyph svg { height: 30px; width: auto; }
.kids-title { margin: 0 0 14px; color: var(--card); font-size: 30px; }
.kids-card { max-width: 560px; padding: 14px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 6px 0 var(--sky); }
.kids-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); color: var(--ink);
  font-size: 24px; }
.kids-row.auto { padding-inline-start: 26px; color: #3a3a3a; font-size: 20px; }
.kids-row .rd-ic { width: 48px; }
.kids-name { overflow-wrap: anywhere; }
.kids-ed { margin-inline-start: auto; padding: 4px 10px; border: 1px solid #cbbd9f; border-radius: 10px; background: transparent; color: #7a6c55;
  font-family: inherit; font-size: 16px; }
.kids-ed.del { margin-inline-start: 8px; border-color: #e2b3a8; color: #a14a3a; }
.kids-note { margin-inline-start: auto; color: #7a6c55; font-size: 14px; }
.kids-full { margin-top: 12px; color: #7a6c55; font-size: 16px; }
.kids-add { width: 100%; margin-top: 12px; padding: 10px; border: 2px dashed var(--moss); border-radius: 14px; background: transparent;
  color: var(--ink); font-family: inherit; font-size: 22px; font-weight: 700; }
#btn-cinema .way-art { aspect-ratio: 1030 / 627; }
#btn-cinema.kit-arrive { transform: scale(.1); opacity: 0; transition: transform 750ms cubic-bezier(.3, 1.5, .5, 1), opacity 250ms; }
#btn-cinema.kit-arrive.in { transform: scale(1); opacity: 1; }
.cstand, .cposters, .cbooth { background: #2a1b1d; }
.cbooth-scene { position: relative; margin: auto; flex: none; width: min(100vw, calc(100vh * 1.7917)); aspect-ratio: 1376 / 768; }
.cbooth-poster { position: absolute; top: 27.1%; width: 11.2%; height: 31%; object-fit: cover; pointer-events: none; }
.cbooth-poster.left { left: 5.6%; }
.cbooth-poster.right { left: 83.3%; }
.cbooth-friend { position: absolute; left: 24%; bottom: 7.5%; width: 10.9%; pointer-events: none; }
.cbooth-ledge { position: absolute; left: 50.2%; top: 54.4%; transform: translateX(-50%); }
.cbooth-ledge .cstand-card { width: clamp(84px, 10.9vw, 150px); }
.cbooth-stars { position: absolute; left: 2%; top: 2%; color: var(--card); }
.cstand-top, .cposters-top { flex: none; display: flex; justify-content: flex-end; padding: 8px 14px 0; }
.cstand-scene { position: relative; flex: none; align-self: center; width: min(100vw, calc((100vh - 270px) * 1.7917)); aspect-ratio: 1376 / 768; }
.cstand-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cstand-poster { position: absolute; top: 28.1%; width: 10.6%; height: 29.6%; object-fit: cover; pointer-events: none; }
.cstand-poster.left { left: 5.9%; }
.cstand-poster.right { left: 83.5%; }
.cstand-in { position: relative; --dh: 200px; padding: 0; border: 0; background: none; font-family: inherit; font-weight: 700; }
.cstand-in span { position: absolute; left: 19%; top: 7%; width: 56%; padding: 2px 0; background: var(--card); border: 2px solid var(--gold);
  border-radius: 8px; font-size: calc(var(--dh) / 10); line-height: 1.25; }
.cstand-in img { height: var(--dh); border: 3px solid transparent; border-radius: 8px; }
.cstand-in.ready img { border-color: #ffd25a; box-shadow: 0 0 18px 6px #ffcd50bf; }
.cstand-shelf { --cw: 64px; align-self: center; max-width: calc(4 * var(--cw) + 54px); }
.cstand-shelf [data-id=popcorn] { order: 1; }
.cstand-shelf [data-id^=bar] { order: 2; }
.cstand-friend { position: absolute; left: 22%; bottom: 2%; width: 14%; pointer-events: none; }
.cstand-friend-img { width: 100%; height: auto; display: block; }
.cstand-shelf { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px;
  padding: 8px 12px; direction: rtl; }
.cstand-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: var(--cw, 92px); padding: 6px;
  background: var(--card); border: 4px solid transparent; border-radius: 16px; font-family: inherit; cursor: pointer; }
.cstand-card.affordable { border-color: var(--gold); }
.cstand-card.his { border-color: var(--moss); }
.cstand-card.not-yet { cursor: default; }
.cstand-card .price .star-num { color: var(--ink); font-size: 22px; }
.cstand-img { width: min(64px, 100%); aspect-ratio: 1; object-fit: contain; display: block; pointer-events: none; }
.cstand-card.bought { animation: cstand-pop 420ms ease-out; }
@keyframes cstand-pop { 50% { transform: scale(1.08); } }
.cstand-hand { right: -10px; bottom: -6px; }
.cstand-foot, .cposters-foot, .chall-foot, .cbooth-foot { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 10px; }
.cbooth-foot, .cstand-foot { position: absolute; inset: auto 0 0; align-items: flex-end; pointer-events: none; }
.cbooth-foot > *, .cstand-foot > * { pointer-events: auto; }
.cposters-row { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 4vw; padding: 6px 12px; direction: rtl; }
.cposter { position: relative; height: min(100%, 84vh, calc((100vw - 24px - (var(--n, 2) - 1) * 4vw) / var(--n, 2) * 1264 / 848));
  aspect-ratio: 848 / 1264; max-width: 44vw; padding: 0; border: 4px solid var(--gold);
  border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; font-family: inherit; }
.cposter-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cposter-title { position: absolute; left: 0; right: 0; top: 0; padding: 6% 4% 10%; font-weight: 700; font-size: clamp(18px, 4.2vmin, 34px);
  line-height: 1.25; color: #fff8e6; text-align: center; text-shadow: 0 2px 4px rgba(0, 0, 0, .85), 0 0 12px rgba(0, 0, 0, .6);
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); pointer-events: none; }
@media (orientation: portrait) {
  .cposters-row { flex-wrap: wrap; align-content: center; gap: 14px; }
  .cposter { height: auto; width: min(44vw, 38vh * .67); max-width: none; }
  .cstand-scene { width: 100vw; }
  .cstand-foot { position: static; }
  .cstand-shelf { --cw: min(92px, 25vw - 14px, 10vh); }
  .cstand-in { --dh: min(20vh, 170px); }
}
.chall { background: #1d0f10; overflow: hidden; }
.chall-box { position: absolute; --u: 0.744px; }
.chall-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chall-screen { position: absolute; overflow: hidden; background: #000; }
.chall-scene { width: 100%; height: 100%; display: block; object-fit: fill; }
.chall-end { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; pointer-events: none; }
.chall-end-word { position: absolute; text-align: center; font-size: calc(var(--u) * 150); font-weight: 700; line-height: 1.4; color: #fff6e0;
  text-shadow: 0 calc(var(--u) * 4) 0 #b88a2e, 0 calc(var(--u) * 8) calc(var(--u) * 18) rgba(0, 0, 0, .55); opacity: 0;
  transition: opacity 600ms ease-in 900ms; pointer-events: none; }
.chall-end.on, .chall-end-word.on { opacity: 1; }
.chall-line { position: absolute; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 10);
  font-size: clamp(16px, calc(var(--u) * 32), 34px); font-weight: 700; }
.chall-slot { min-width: calc(var(--u) * 70); min-height: calc(var(--u) * 54); padding: 0 calc(var(--u) * 10); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(240, 230, 210, .7); border-radius: 10px;
  background: rgba(20, 10, 10, .55); color: var(--card); line-height: 1.45; }
.chall-slot.on { border: 2px solid var(--moss); background: var(--card); color: var(--ink); }
.chall-line.whole .chall-slot { border-color: var(--moss); background: var(--card); color: var(--ink); }
.chall-stage { position: absolute; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center;
  gap: calc(var(--u) * 12) calc(var(--u) * 16); padding-top: calc(var(--u) * 8); box-sizing: border-box; }
.chall-word { font-family: inherit; font-size: clamp(16px, calc(var(--u) * 32), 34px); font-weight: 700; line-height: 1.45; color: var(--ink);
  background: var(--card); border: 3px solid var(--sky); border-radius: 12px; padding: 2px calc(var(--u) * 14);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .45); cursor: pointer; }
.chall-word.placed { visibility: hidden; pointer-events: none; }
.chall-word.back { animation: chall-back 480ms ease-out; }
@keyframes chall-back { 30% { transform: translateY(calc(var(--u) * -22)); } 100% { transform: translateY(0); } }
.chall-sit { position: absolute; transform: translateX(-50%); pointer-events: none; }
.chall-friend { width: auto; object-fit: cover; object-position: top; display: block;
  filter: brightness(.78) drop-shadow(0 calc(var(--u) * -3) calc(var(--u) * 7) rgba(255, 236, 190, .55)); }
.chall-friend.eat { animation: chall-nod 900ms ease-in-out; }
@keyframes chall-nod { 40% { transform: translateY(calc(var(--u) * 6)) rotate(-3deg); } }
.chall-seat { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chall-table { position: absolute; display: flex; flex-wrap: wrap-reverse; justify-content: center; align-items: flex-end; pointer-events: none; }
.chall-snack { width: calc(var(--u) * 64); height: calc(var(--u) * 64); margin: 0 calc(var(--u) * -14); object-fit: contain; display: block;
  filter: brightness(.85); }
.chall-snack[data-id^=bar] { position: absolute; left: 32%; bottom: calc(var(--u) * -22); }
.chall-snack.eat { animation: chall-eat 1300ms ease-in-out; }
@keyframes chall-eat { 35%, 60% { transform: translate(var(--bite-x), var(--bite-y)) scale(.9); } }
.chall-foot { position: absolute; left: 0; bottom: 0; gap: 12px; padding: 0 10px 8px; }
.chall-bubble { position: static; transform: none; }
.chall-earned { position: absolute; left: 10px; top: 10px; z-index: 6; padding: 4px 12px; border-radius: 999px; background: rgba(34, 48, 58, 0.82); color: var(--card); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.chall-earned[hidden] { display: none; }
.chall-earned.pop { animation: chall-pop 0.45s ease-out 1; }
@keyframes chall-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.hotel-earned { position: absolute; z-index: 6; padding: 4px 12px; border-radius: 999px; background: rgba(34, 48, 58, 0.82); color: var(--card); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); pointer-events: none; }
.hotel-earned[hidden] { display: none; }
.hotel-earned.pop { animation: chall-pop 0.45s ease-out 1; }
.ride-earned { right: 10px; bottom: 10px; }
.dive-earned { right: 10px; top: 16px; }
@media (orientation: landscape) { .dive-earned { right: auto; top: auto; left: 10px; bottom: 10px; } }
@media (max-height: 480px) { .chall-say { width: 64px; height: 64px; } }
@media (orientation: portrait) {
  .chall-foot { left: 0; right: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .chall-word.back, .chall-snack.eat, .chall-friend.eat, .cstand-card.bought { animation: none; }
  .chall-end, .chall-end-word { transition: none; }
  #btn-cinema.kit-arrive { transition: none; }
}
.play-stack.missing {
  --ml-letter: max(var(--word-size), min(15vmin, 96px));
  --ml-pic-h: clamp(105px, 22.4vh, 224px);
  align-items: center;
}
.play-stack.missing .pic-img { height: var(--ml-pic-h); }
.play-stack.missing .word-card { direction: rtl; font-size: var(--ml-letter); min-height: calc(var(--ml-letter) * 1.3); max-width: 100%; }
.ml-blank { display: inline-block; text-align: center; white-space: nowrap; }
.ml-line { display: inline-block; width: 0.6em; margin: 0 0.09em; border-bottom: 6px solid var(--sky); }
.ml-blank.filled { color: var(--moss); }
.grid.task-gap { display: flex; direction: rtl; justify-content: center; gap: 14px; }
.play-stack.missing { --ml-tile-w: min(calc(var(--ml-letter) * 1.35), calc((100vw - 60px) / 3)); }
.tile.ml-tile { flex: 0 0 var(--ml-tile-w); width: var(--ml-tile-w); min-width: 0; font-size: var(--ml-letter); min-height: calc(var(--ml-letter) * 1.3);
  padding: 0; }
.tile.ml-tile.ml-right { background: var(--moss); color: var(--card); }
.play-stack.missing.ending { --ml-tile-w: min(calc(var(--ml-letter) * 2.4), calc((100vw - 60px) / 3)); }
.play-stack.missing.ending .tile.ml-tile { font-size: calc(var(--ml-letter) * 0.8); white-space: nowrap; overflow: hidden; }
@media (orientation: landscape) and (max-height: 599px) {
  .play-stack.missing {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: center;
    column-gap: 16px;
    --ml-letter: min(96px, calc((100svh - 170px) / 2.6));
    --ml-pic-h: min(200px, calc(100svh - 160px));
  }
  .play-stack.missing .pic-art { grid-row: 1 / span 2; }
  .play-stack.missing .pic-img { width: var(--ml-pic-h); }
  .play-stack.missing .word-card { align-self: end; justify-self: center; }
  .play-stack.missing .grid.task-gap { align-self: start; }
  .play-stack.missing { --ml-tile-w: calc(var(--ml-letter) * 1.35); }
  .play-stack.missing.ending { --ml-tile-w: min(calc(var(--ml-letter) * 2.4), calc((100vw - var(--ml-pic-h) - 90px) / 3)); }
}
.play-stack.sentence { --sent-size: clamp(24px, 6.6vmin, 40px); --sent-pic-h: clamp(90px, 20vh, 200px); }
.play-stack.sentence .pic-img { height: var(--sent-pic-h); }
.build-slots.sent-line { flex-wrap: wrap; align-items: center; gap: 8px; min-height: calc(var(--sent-size) * 1.9); padding: 8px;
  border-radius: 16px; background: rgba(240, 230, 210, 0.08); }
.sent-slot { min-width: calc(var(--sent-size) * 2); min-height: calc(var(--sent-size) * 1.6); padding: 0 10px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; font-size: var(--sent-size); line-height: 1.45; color: var(--ink);
  border-radius: 12px; outline: 3px dashed rgba(240, 230, 210, 0.45); outline-offset: -3px; }
.sent-slot.on { background: var(--card); outline-color: transparent; }
.build-slots.sent-line.whole .sent-slot { background: #dcebc6; outline: 3px solid var(--moss); }
.grid.task-sn { display: flex; flex-wrap: wrap; direction: rtl; justify-content: center; align-content: flex-start; gap: 10px 12px; }
.sent-word { font-family: inherit; font-size: var(--sent-size); line-height: 1.45; color: var(--ink); background: var(--card);
  border: 3px solid var(--sky); border-radius: 12px; padding: 2px 14px; cursor: pointer; }
.sent-word.placed { visibility: hidden; pointer-events: none; }
.sent-word.shake { animation: option-shake 320ms ease-in-out 1; }
@media (prefers-reduced-motion: reduce) { .sent-word.shake { animation: none; } }
@media (orientation: landscape) and (max-height: 599px) {
  .play-stack.sentence { --sent-size: clamp(20px, 7vh, 30px); --sent-pic-h: min(150px, calc(100vh - 170px)); }
  .play-stack.sentence.sent-pic { display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 16px; }
  .play-stack.sentence.sent-pic .pic-art { grid-row: 1 / span 2; }
  .play-stack.sentence .pic-img { width: var(--sent-pic-h); }
}
@media (prefers-reduced-motion: reduce) { .poolin-dive.dive-arrive, .poolin-dive .dive-hand { animation: none; } }
.cheer-friend { position: fixed; z-index: 60; pointer-events: none; }
.cheer-friend img { position: absolute; left: 4%; top: 0; width: 92%; height: 88%; object-fit: contain; display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); transform-origin: 50% 100%; }
.cheer-bubble { position: fixed; z-index: 61; pointer-events: none; white-space: nowrap; direction: rtl; font-weight: 700; font-size: 20px;
  line-height: 1.2; color: var(--ink); background: var(--card); border: 3px solid var(--sky); border-radius: 14px; padding: 5px 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.cheer-bubble::after { content: ""; position: absolute; top: 50%; margin-top: -8px; border: 8px solid transparent; }
.cheer-bubble.cheer-left::after { right: -19px; border-left-color: var(--sky); }
.cheer-bubble.cheer-right::after { left: -19px; border-right-color: var(--sky); }
@keyframes cheer-hop { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14%) rotate(-6deg); }
  60% { transform: translateY(0) rotate(4deg); } 80% { transform: translateY(-5%) rotate(0); } }
@media (prefers-reduced-motion: no-preference) { .cheer-friend img { animation: cheer-hop 0.6s ease-in-out 3; } }
.cheer-friend.waiting img { animation: none; }
