/* 무대 좌표 1600 x 900 기준. 폰 가로 화면에서 약 0.45배로 줄어드므로
   누르는 것은 100 이상, 글자는 34 이상(대사 40 이상)으로 잡는다. */
:root {
  --ink: #3a2e3f;
  --paper: #fffaf3;
  --accent: #ff8fb1;
  --accent-dark: #e0628a;
  --sky: #8fc8ef;
  --green: #3cae6a;
  --shadow: 0 6px 0 rgba(58, 46, 63, 0.18);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #2d2438; touch-action: none; }
body { font-family: "Jua", system-ui, sans-serif; color: var(--ink); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
img { -webkit-user-drag: none; }
#app { position: fixed; inset: 0; }
#stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; background: var(--sky); font-size: 40px; }
/* 화면 층: 장면 < HUD < 대사창 < 고르기 < 글쓰기 < 창. 장면 안의 z-index는 장면 밖으로 새지 않는다 */
#scene { position: absolute; inset: 0; isolation: isolate; }
#hud { z-index: 1; } #talk { z-index: 2; } #choices { z-index: 3; }
.hidden { display: none !important; }

/* ── 공통 버튼 ── */
.btn {
  font: inherit; font-size: 40px; color: var(--ink); background: var(--paper);
  border: 5px solid var(--ink); border-radius: 28px; padding: 14px 34px; min-height: 100px; min-width: 100px;
  box-shadow: var(--shadow); cursor: pointer;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(58, 46, 63, 0.18); }
.btn.primary { background: var(--accent); color: #fff; }
/* 나가기: 모든 장면에서 HUD 바로 아래 왼쪽(인물·대사창과 안 겹치는 자리) */
.btn.exit { position: absolute; left: 30px; top: 118px; z-index: 4; min-height: 84px; padding: 6px 28px; font-size: 36px; }
.btn.small { font-size: 34px; min-height: 100px; padding: 10px 24px; }
.btn:disabled { opacity: 0.45; }
.round { width: 100px; height: 100px; padding: 0; border-radius: 50%; font-size: 44px; }

/* ── 타이틀 ── */
.title-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 24px; box-sizing: border-box; }
.title-screen .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.title-screen .sub { position: relative; font-size: 34px; margin: 0; padding: 4px 28px; background: rgba(255,255,255,.85); border-radius: 30px; }
.title-screen .row { position: relative; display: flex; gap: 30px; }

/* ── 캐릭터 만들기 ── */
.create { position: absolute; inset: 0; background: linear-gradient(#ffe9f2, #fff6e6); display: flex; }
.create .preview { width: 560px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.create .preview canvas { height: 840px; }
.create .panel { flex: 1; padding: 40px 50px 30px 10px; display: flex; flex-direction: column; gap: 22px; }
.create h2 { font-size: 56px; margin: 0; }
.create .tabs { display: flex; gap: 10px; }
.create .tabs .btn { font-size: 30px; padding: 8px 16px; white-space: nowrap; }
.create .tabs .btn.on { background: #ffd36b; }
.create .options { flex: 1; display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; overflow: auto; padding: 6px; }
.create .swatch { width: 100px; height: 100px; border-radius: 50%; border: 5px solid var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.create .swatch.on { outline: 8px solid var(--accent); outline-offset: 4px; }
.create .choice { width: 200px; height: 200px; border-radius: 28px; border: 5px solid var(--ink); background: var(--paper); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 36px; cursor: pointer; overflow: hidden; }
.create .choice canvas { height: 150px; }
.create .choice { font-size: 28px; white-space: nowrap; }
.create .choice.on { background: #ffd36b; }
.create .nav { display: flex; justify-content: space-between; }
.create .name-box { display: flex; gap: 20px; align-items: center; }
.text-in { font: inherit; font-size: 56px; width: 520px; padding: 12px 24px; border: 5px solid var(--ink); border-radius: 24px; background: #fff; color: var(--ink); }
.create .hint { font-size: 36px; color: #8a6f86; margin: 0; }

/* 반려동물 고르기 */
.pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pet-card { height: 250px; border-radius: 28px; border: 5px solid var(--ink); background: var(--paper); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 38px; cursor: pointer; position: relative; }
.pet-card.on { background: #ffd36b; }
.pet-card .order { position: absolute; top: 10px; right: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.pet-card .slot { position: relative; width: 190px; height: 170px; }

/* ── 반려동물(정사각 상자, 그림 발끝이 상자 바닥) · 인물 자리 그림 ── */
.pet { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: flex; justify-content: center; transform-origin: 50% 100%; }
.pet img { position: absolute; left: 0; bottom: -9%; width: 100%; pointer-events: none; }
.pet .label { position: absolute; bottom: -50px; white-space: nowrap; font-size: 32px; background: rgba(255,255,255,.9); border: 3px solid var(--ink); padding: 0 14px; border-radius: 16px; }
.npc-box { position: absolute; width: 220px; height: 440px; border-radius: 110px 110px 30px 30px; border: 5px solid var(--ink); display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 34px; padding: 20px; transform-origin: 50% 100%; }

/* 걷기: 통통 튀고 살짝 기울기 */
.actor { position: absolute; transform-origin: 50% 100%; pointer-events: none; }
.actor canvas { height: 100%; display: block; }
.actor .body { height: 100%; transform-origin: 50% 100%; }
.actor.walking .body { animation: hop 0.42s ease-in-out infinite; }
.actor.flip .body canvas, .actor.flip .body .pet { transform: scaleX(-1); }
.actor.flip .pet .label { transform: scaleX(-1); } /* 이름표는 뒤집지 않는다 */
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
.actor.idle .body { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.015); } }
.bubble-icon { position: absolute; left: 50%; top: -90px; transform: translateX(-50%); width: 90px; height: 76px; background: #fff; border: 5px solid var(--ink); border-radius: 30px;
  display: flex; align-items: center; justify-content: center; font-size: 40px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -12px); } }

/* ── 마을 지도 ── */
.town { position: absolute; inset: 0; overflow: hidden; background: #9fd38a; }
.town .map { position: absolute; inset: 0; }
.town .map-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.town.t-evening .map-bg { filter: sepia(.25) saturate(1.15) brightness(.95) hue-rotate(-12deg); }
.town.t-night .map-bg { filter: brightness(.68) saturate(.95) sepia(.12); }
.town.t-night .map-bg.lit { filter: none; }
.town .map.slide-l { animation: slide-l .35s ease-out; } .town .map.slide-r { animation: slide-r .35s ease-out; }
@keyframes slide-l { from { transform: translateX(120px); opacity: 0; } }
@keyframes slide-r { from { transform: translateX(-120px); opacity: 0; } }
.town .hot { position: absolute; cursor: pointer; border-radius: 40px; }
.town .hot.press { animation: press .35s ease-out; background: rgba(255,255,255,.25); }
@keyframes press { 50% { background: rgba(255,255,255,.45); } }
/* 건물 이름표: 지붕 위 리본 */
.town .sign { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 40px; padding: 8px 28px; background: #fffaf0;
  border: 5px solid var(--ink); border-radius: 30px; box-shadow: 0 6px 0 rgba(0,0,0,.18); cursor: pointer; animation: sign-bob 3s ease-in-out infinite; }
.town .sign.k-home { background: #ffe0ec; } .town .sign.k-work { background: #e6f4ff; } .town .sign.k-shop { background: #fff3c4; }
.town .sign.k-learn { background: #f3e6ff; } .town .sign.k-play { background: #d8f6f8; }
@keyframes sign-bob { 50% { transform: translate(-50%, -58%); } }
/* 친구 얼굴 동그라미 */
.friend-pin { position: absolute; width: 170px; height: 170px; transform: translate(-50%, -50%); border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 5px var(--ink), 0 10px 0 4px rgba(0,0,0,.2);
  background: #fff1f6; cursor: pointer; animation: pin-bob 2.4s ease-in-out infinite; }
@keyframes pin-bob { 50% { transform: translate(-50%, calc(-50% - 12px)); } }
.friend-pin canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.friend-pin .name { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); background: #fff; border: 4px solid var(--ink); border-radius: 20px; padding: 0 16px; font-size: 32px; white-space: nowrap; }
.friend-pin .new { position: absolute; right: -24px; top: -24px; font-size: 52px; }
/* 가게 안·바다·집에 와 있는 친구(talk/friendTalk.js standFriend) */
.friend-stand { position: absolute; cursor: pointer; z-index: 3; filter: drop-shadow(0 10px 8px rgba(60,30,40,.25)); animation: fadein .4s; }
.friend-stand canvas { width: 100%; height: 100%; display: block; }
.friend-stand .name { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: #fff; border: 4px solid var(--ink); border-radius: 20px; padding: 0 16px; font-size: 30px; white-space: nowrap; }
.friend-stand .new { position: absolute; right: 0; top: 10px; width: 76px; height: 76px; display: grid; place-items: center; font-size: 44px; background: #fff3c4; border: 5px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 rgba(0,0,0,.18); animation: hop 1.2s ease-in-out infinite; }
/* 아래 거리 넘기기 */
.street-nav { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(24px + var(--safe-r)) 0 calc(24px + var(--safe-l)); pointer-events: none; }
.street-nav > * { pointer-events: auto; }
.street-nav .btn { min-width: 300px; background: #fffaf0; }
.street-nav .btn.hidden { display: block !important; visibility: hidden; }
.street-name { font-size: 46px; background: #fff; border: 5px solid var(--ink); border-radius: 40px; padding: 10px 40px; box-shadow: var(--shadow); }
.street-name::before { content: "📍 "; }
/* 대화 무대: 지도를 흐리게 하고 인물을 크게 */
.talk-stage { position: absolute; inset: 0; background: rgba(40, 30, 60, .5); backdrop-filter: blur(8px); animation: fadein .25s; }
.talk-stage .who { position: absolute; bottom: 60px; height: 760px; }
.talk-stage canvas.who.me { left: 120px; }
.talk-stage div.who.friend { right: 120px; width: 507px; }
.talk-stage div.who.friend > canvas { height: 100%; }
.talk-stage .friend-pet { left: -170px; bottom: 300px; width: 230px; height: 230px; transform: scaleX(-1); }
.talk-stage .friend-pet .label { transform: scaleX(-1); }
.talk-stage .who.npc { right: 220px; bottom: 300px; height: 440px; }
.talk-stage img.who.kogi { right: 150px; bottom: 40px; height: 780px; animation: kogi-hi .5s ease-out; }
@keyframes kogi-hi { from { transform: translateY(40px); opacity: 0; } }

/* ── 실내(장소·집) ── */
.room { position: absolute; inset: 0; background: linear-gradient(#fff3e2 0, #fff3e2 68%, #e9c9a0 68%, #dfb88c 100%); }
.room .wall-title { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); font-size: 64px; background: #fff; border: 6px solid var(--ink); border-radius: 26px; padding: 6px 40px; }
.room .furniture { position: absolute; border: 6px solid var(--ink); border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 36px; text-align: center; cursor: pointer; }
.room .furniture small { font-size: 28px; opacity: .7; }
/* 장소 안: 실내 배경 그림 + 오른쪽 아래 단추 */
.place .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place .place-title { position: absolute; z-index: 4; top: 118px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 44px; padding: 6px 34px;
  background: rgba(255, 255, 255, .92); border: 5px solid var(--ink); border-radius: 30px; box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.place .place-actions { position: absolute; z-index: 4; right: 30px; bottom: 30px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.place .place-actions .btn { display: flex; flex-direction: column; align-items: center; min-width: 330px; }
.place .place-actions .btn small { font-size: 24px; opacity: .7; }
.place .npc-stand { position: absolute; left: 1040px; bottom: 20px; height: 660px; transform: translateX(-50%); cursor: pointer; filter: drop-shadow(0 10px 8px rgba(60,30,40,.25)); animation: fadein .4s; }
.place .wall-frame { position: absolute; padding: 10px; background: #fff; border: 12px solid #a8743f; border-radius: 10px; box-shadow: 0 8px 0 rgba(0,0,0,.18); cursor: pointer; }
.place .wall-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }

/* ── 위 띠(HUD) ── */
#hud { position: absolute; left: 0; right: 0; top: 0; height: 120px; display: flex; align-items: center; gap: 18px; padding: 10px calc(24px + var(--safe-r)) 0 calc(24px + var(--safe-l)); pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud .chip { background: rgba(255,255,255,.92); border: 5px solid var(--ink); border-radius: 40px; height: 84px; padding: 0 28px; display: flex; align-items: center; gap: 12px; font-size: 38px; box-shadow: var(--shadow); }
#hud .grow { flex: 1; pointer-events: none; }

/* ── 대사창 ── */
#talk { position: absolute; left: 30px; right: 30px; bottom: 24px; height: 250px; display: flex; gap: 16px; align-items: flex-end; }
#talk .portrait { width: 250px; height: 250px; border-radius: 40px; border: 6px solid var(--ink); background: #fff1f6; overflow: hidden; flex: none; position: relative; }
#talk .portrait:empty { display: none; }
#talk .portrait canvas { position: absolute; left: 50%; top: -4%; height: 330%; transform: translateX(-50%); }
#talk .box { flex: 1; height: 100%; background: var(--paper); border: 6px solid var(--ink); border-radius: 40px; padding: 30px 46px; position: relative; box-shadow: var(--shadow); cursor: pointer; }
#talk .speaker { position: absolute; top: -40px; left: 36px; background: var(--accent); color: #fff; font-size: 38px; padding: 4px 30px; border-radius: 26px; border: 5px solid var(--ink); }
#talk .speaker:empty { display: none; }
#talk .line { font-size: 44px; line-height: 1.45; word-break: keep-all; }
#talk .line .ch { opacity: 0; }
#talk .line .ch.on { opacity: 1; }
#talk .line .word { display: inline-block; white-space: nowrap; }
#talk .line .hl { color: #f07a1a; }
#talk .line .hl-name { color: var(--green); }
#talk .next { position: absolute; right: 30px; bottom: 16px; font-size: 34px; opacity: 0; animation: blink 1s infinite; }
#talk.done .next { opacity: 1; }
@keyframes blink { 50% { opacity: 0.2; } }
#choices { position: absolute; right: 50px; bottom: 300px; display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
#choices .btn { min-width: 520px; text-align: left; font-size: 40px; }
#choices .btn .key { display: inline-block; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; text-align: center; line-height: 52px; font-size: 30px; margin-right: 14px; }
/* 글자 입력: 폰 화면 키보드가 아래 절반을 가리므로 위쪽에 */
#ask { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: 1100px; background: var(--paper); border: 6px solid var(--ink); border-radius: 36px; padding: 24px 36px; box-shadow: var(--shadow); z-index: 5; }
#ask .q { margin: 0 0 16px; font-size: 42px; }
#ask .row { display: flex; gap: 18px; }
#ask input { flex: 1; font: inherit; font-size: 50px; padding: 10px 22px; border: 5px solid var(--ink); border-radius: 22px; color: var(--ink); }

/* ── 덮개(지도 등) ── */
#overlay { position: absolute; inset: 0; background: rgba(45, 36, 56, 0.55); display: flex; align-items: center; justify-content: center; z-index: 6; }
.sheet { background: var(--paper); border: 6px solid var(--ink); border-radius: 40px; padding: 36px 44px; box-shadow: var(--shadow); max-width: 1400px; }
.sheet h2 { margin: 0 0 24px; font-size: 56px; }
.sheet .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sheet .grid .btn { font-size: 36px; }

/* ── 세로 화면 안내 ── */
#rotate { position: fixed; inset: 0; background: #2d2438; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; z-index: 10; text-align: center; font-size: 26px; }
#rotate .icon { font-size: 80px; }
#rotate .btn { font-size: 22px; min-height: 0; padding: 10px 24px; }

.fade { animation: fadein 0.35s ease-out; }
@keyframes fadein { from { opacity: 0; } }

/* ── 가게 진열대 ── */
.sheet.shop { width: 1440px; max-width: none; padding: 26px 34px; }
.sheet.shop h2 { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.sheet.shop .wallet { margin-left: auto; font-size: 40px; background: #fff3c4; border: 4px solid var(--ink); border-radius: 30px; padding: 4px 22px; }
.sheet.shop .tabs { display: flex; gap: 14px; margin-bottom: 14px; }
.sheet.shop .tabs .btn { font-size: 32px; padding: 6px 22px; } .sheet.shop .tabs .btn.on { background: #ffd36b; } .sheet.shop .tabs small { font-size: 22px; color: #a07850; }
.goods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.good { font: inherit; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 8px 6px 10px; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.good .pic { height: 150px; display: flex; align-items: center; justify-content: center; }
.good .pic img { width: 92%; height: 140px; object-fit: contain; }
.good .nm { font-size: 30px; white-space: nowrap; }
.good .pr { font-size: 28px; color: #d0507a; }
.good.owned { background: #eafbe9; } .good.owned .pr { color: #3a9a55; font-size: 24px; }
.sheet .bar { display: flex; justify-content: flex-end; gap: 20px; margin: 18px 0 0; }
/* 옷장(src/ui/dress.js) */
.sheet.dress { display: flex; gap: 30px; width: 1440px; height: 840px; max-width: none; padding: 26px 34px; box-sizing: border-box; }
.sheet.dress .me { width: 460px; display: flex; align-items: flex-end; justify-content: center; background: #fff3f8; border: 4px solid var(--ink); border-radius: 30px; }
.sheet.dress .me canvas { height: 760px; }
.sheet.dress .side { flex: 1; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.sheet.dress h2 { margin: 0; }
.sheet.dress .tabs { display: flex; gap: 14px; }
.sheet.dress .tabs .btn { font-size: 36px; padding: 8px 28px; }
.sheet.dress .tabs .btn.on { background: #ffd36b; }
.sheet.dress .options { flex: 1; display: flex; flex-wrap: wrap; gap: 16px; align-content: flex-start; overflow: auto; padding: 6px; }
.sheet.dress .choice { width: 196px; height: 205px; border-radius: 26px; border: 5px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); font: inherit; font-size: 26px; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; padding: 4px; color: var(--ink); }
.sheet.dress .choice canvas { height: 158px; }
.sheet.dress .choice.on { background: #ffd36b; }
.sheet.dress .bar { margin: 0; }
.sheet.shop-detail { display: flex; gap: 40px; align-items: center; width: 1200px; max-width: none; }
.shop-detail .big { width: 440px; height: 440px; background: #fff; border: 5px solid var(--ink); border-radius: 36px; display: flex; align-items: center; justify-content: center; flex: none; }
.shop-detail .big img { width: 85%; height: 85%; object-fit: contain; }
.shop-detail .txt { flex: 1; } .shop-detail h2 { font-size: 64px; margin: 0 0 10px; }
.shop-detail .desc { font-size: 40px; margin: 0 0 18px; } .shop-detail .price { font-size: 48px; margin: 0; color: #d0507a; }
.shop-detail .note { font-size: 34px; color: #6a5a7a; }

/* ── 내 방(집) ── */
.home { position: absolute; inset: 0; background: #d5c4ec; } /* 방 그림 바깥 배경색과 같게 */
.room-view { position: absolute; }
.room-view .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.room-view .item { position: absolute; pointer-events: none; }
.room-view .item.new { animation: item-pop .7s ease-out .3s backwards; }
@keyframes item-pop { from { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } }
.room-view .fixed { position: absolute; cursor: pointer; border-radius: 30px; }
.room-view .deco { position: absolute; pointer-events: none; }
.home .room-go { position: absolute; z-index: 4; right: 30px; bottom: 130px; font-size: 38px; }
.home .room-go.glow { background: #ffd36b; animation: hop 1.2s ease-in-out infinite; }
.room-view .kogi-home { position: absolute; transform: translateX(-50%); cursor: pointer; filter: drop-shadow(0 8px 6px rgba(80,40,90,.25)); }
.room-view .kogi-home.hop { animation: kogi-hop .5s ease-out; }
@keyframes kogi-hop { 40% { transform: translateX(-50%) translateY(-24px); } }
.room-count { position: absolute; z-index: 4; right: 30px; bottom: 40px; font-size: 38px; background: #fff; border: 5px solid var(--ink); border-radius: 40px; padding: 10px 30px; box-shadow: var(--shadow); }
.mirror-big { position: absolute; left: 50%; top: 40px; height: 820px; transform: translateX(-50%); z-index: 4; pointer-events: none; animation: fadein .3s; }

/* 코난 비치 잡기 놀이 */
.beach-game { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(#bff0f7 0, #7fd8e8 12%, #5cc8dc 62%, #f6eedd 66%, #f1e2c6 100%); }
.beach-game .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beach-game .critters { position: absolute; inset: 0; }
.critter { position: absolute; left: 0; top: 0; cursor: pointer; will-change: transform; }
.critter img, .critter span { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; filter: drop-shadow(0 6px 4px rgba(20, 60, 90, .25)); }
.critter span { font-size: 110px; line-height: 1; text-align: center; }
.critter.c-sand.walking img { animation: crab-step .25s steps(2) infinite; }
@keyframes crab-step { 50% { translate: 0 -6px; } }
.critter.pop-in img, .critter.pop-in span { animation: item-pop .5s ease-out; }
.critter.fade-out { opacity: 0; transition: opacity .4s; }
.critter.caught { transition: transform .55s cubic-bezier(.5, -0.3, .7, 1), opacity .55s; pointer-events: none; z-index: 5; }
.beach-game .splash { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 6px solid rgba(255, 255, 255, .9); border-radius: 50%; animation: splash .6s ease-out forwards; pointer-events: none; }
@keyframes splash { to { transform: scale(4); opacity: 0; } }
.beach-game .bucket { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 22px;
  background: rgba(255, 255, 255, .9); border: 5px solid var(--ink); border-radius: 40px; box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.beach-game .bucket .pail { font-size: 56px; }
.beach-game .slots { display: flex; gap: 8px; }
.beach-game .slots i { width: 72px; height: 72px; border-radius: 50%; background: #e6f6fa; border: 4px dashed #9cc9d6; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 44px; }
.beach-game .slots i.full { background: #fff6d8; border: 4px solid #f3b73c; animation: item-pop .4s ease-out; }
.beach-game .slots i img { width: 90%; height: 90%; object-fit: contain; }
.beach-game .actor.cheer .body { animation: cheer .6s ease-out; }
@keyframes cheer { 30% { transform: translateY(-40px); } }
.beach-result .haul { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 20px 0; }
.beach-result .one { width: 200px; display: flex; flex-direction: column; align-items: center; font-size: 28px; background: #eefafc; border: 4px solid #9cc9d6; border-radius: 24px; padding: 10px; }
.beach-result .one img { width: 130px; height: 130px; object-fit: contain; }
.beach-result .total { font-size: 48px; text-align: center; margin: 10px 0; }
.beach-result .note { font-size: 28px; text-align: center; opacity: .75; }
.beach-result .bar { display: flex; justify-content: center; gap: 24px; }

/* 결과 카드(src/ui/reward.js) */
.sheet.reward { width: 1000px; max-width: none; text-align: center; padding: 30px 40px; }
.sheet.reward h2 { margin-bottom: 10px; }
.reward .stars { font-size: 90px; color: #ffc93a; letter-spacing: 10px; text-shadow: 0 4px 0 #c98a1b; line-height: 1.1; }
.reward .stars i { font-style: normal; color: #e6dcea; text-shadow: none; }
.reward .total { font-size: 48px; margin: 12px 0; }
.sheet .gem { font-size: 34px; margin: 6px 0; color: var(--gem); font-weight: bold; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.sheet .gem b { color: var(--ink); }
.sheet .gem img { width: 84px; height: 84px; vertical-align: middle; margin-right: 6px; }
/* 보석 전시장(ui/gems.js): 놀이마다 세로 한 줄 */
.sheet.gem-case { width: 1420px; max-width: none; padding: 26px 34px; background: linear-gradient(#fff8ec, #ffeeda); }
.gem-case h2 { margin-bottom: 6px; } .gem-case h2 small { font-size: 36px; color: #a07850; margin-left: 12px; }
.gem-case .note { font-size: 32px; margin: 0 0 16px; min-height: 44px; }
.gem-case .rows { display: flex; gap: 14px; }
.gem-case .row { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 14px 6px; }
.gem-case .row > b { font-size: 26px; white-space: nowrap; }
.gem-case .slot { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 4px dashed #d8c4aa; background: #fbf4ea; padding: 8px; cursor: pointer; }
.gem-case .slot img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) opacity(.13); }
.gem-case .slot em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: bold; font-style: normal; color: #c8b090; }
.gem-case .slot.got { border: 4px solid var(--gem); background: radial-gradient(circle, #fff 30%, color-mix(in srgb, var(--gem) 22%, #fff)); box-shadow: 0 0 18px color-mix(in srgb, var(--gem) 55%, transparent); }
.gem-case .slot.got img { filter: drop-shadow(0 4px 3px rgba(60,30,40,.25)); }
.gem-case .slot.on { transform: scale(1.08); outline: 5px solid var(--ink); }
.gem-case .slot i { position: absolute; right: -4px; bottom: -4px; background: var(--ink); color: #fff; border-radius: 20px; padding: 0 10px; font: bold 24px sans-serif; font-style: normal; }
.reward .bar { justify-content: center; gap: 24px; }

/* 멍냥병원 수의사 놀이(src/scenes/vet.js) */
.vet-game { position: absolute; inset: 0; overflow: hidden; background: #e4fbe9; }
.vet-game .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px); }
.game-dim { position: absolute; inset: 0; background: rgba(255, 255, 255, .35); }
.game-steps { position: absolute; z-index: 3; top: 118px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.game-steps span { font-size: 32px; padding: 6px 22px; border-radius: 30px; background: #fff; border: 4px solid var(--ink); opacity: .55; }
.game-steps span.on { opacity: 1; background: #b8f0c8; transform: scale(1.08); }
.game-hint { position: absolute; z-index: 3; top: 192px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 40px; padding: 10px 34px; border-radius: 30px; background: #fffbe6; border: 5px solid var(--ink); box-shadow: var(--shadow); animation: fadein .3s; }
.game-hint.hidden { display: none; }
.vet-table { position: absolute; left: 400px; width: 800px; top: 730px; height: 130px; border-radius: 50px; background: linear-gradient(#ffffff, #d9f2e4); border: 6px solid var(--ink); box-shadow: 0 12px 0 rgba(0,0,0,.12); }
.vet-game .patient { position: absolute; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 6px rgba(0,0,0,.18)); transform-origin: 50% 100%; }
.vet-game .patient.pop { animation: item-pop .6s ease-out; }
.vet-game .patient.hop { animation: vet-hop .45s ease-out; }
@keyframes vet-hop { 40% { transform: translateY(-36px) scale(1.03, .97); } }
.vet-layer { position: absolute; inset: 0; pointer-events: none; }
.vet-layer > * { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.vet-spot { width: 130px; height: 130px; border-radius: 50%; cursor: pointer; background: radial-gradient(rgba(255,255,255,.95), rgba(255,236,120,.7) 45%, rgba(255,210,60,0) 70%); animation: vet-glow 1s ease-in-out infinite; }
.vet-spot.done { animation: none; background: none; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.vet-spot b { font-size: 80px; }
.vet-spot i { font-style: normal; font-size: 34px; color: #e8485a; font-weight: bold; text-shadow: 0 0 6px #fff, 0 0 6px #fff; animation: fadein .3s; }
@keyframes vet-glow { 50% { transform: translate(-50%, -50%) scale(1.15); } }
.germ { font-size: 86px; cursor: pointer; animation: germ-wiggle .6s ease-in-out infinite alternate; filter: drop-shadow(0 4px 2px rgba(0,0,0,.2)); }
.germ.gone { transform: translate(-50%, -50%) scale(1.8); opacity: 0; transition: all .35s; animation: none; pointer-events: none; }
@keyframes germ-wiggle { from { transform: translate(-50%, -50%) rotate(-12deg); } to { transform: translate(-50%, -50%) rotate(12deg) scale(1.08); } }
.stuck { font-size: 100px; pointer-events: none !important; animation: item-pop .5s ease-out; }
.treat-fly { font-size: 110px; pointer-events: none !important; transition: left .6s ease-in, top .6s cubic-bezier(.3,-0.6,.7,1), transform .6s; }
.vet-tray { position: absolute; right: 40px; top: 330px; display: flex; flex-direction: column; gap: 20px; }
.vet-tool { display: flex; flex-direction: column; align-items: center; font-size: 30px; min-width: 220px; animation: vet-glow-btn 1s ease-in-out infinite; }
.vet-tool b { font-size: 90px; line-height: 1.1; }
@keyframes vet-glow-btn { 50% { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(255, 210, 60, .5); } }
.reward .who-cured { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 34px; }
.reward .who-cured img { width: 200px; height: 200px; object-fit: contain; }

/* 감귤 레스토랑 쿠킹 클래스(src/scenes/cook.js) */
.cook-game { position: absolute; inset: 0; overflow: hidden; background: #fff0dc; }
.cook-game .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cook-game .recipe { position: absolute; left: 40px; top: 250px; width: 330px; padding: 16px 22px; background: #fffdf5; border: 5px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.cook-game .recipe.hidden { display: none; }
.recipe h3 { margin: 0 0 8px; font-size: 34px; }
.recipe p { margin: 6px 0; font-size: 32px; padding: 4px 10px; border-radius: 14px; }
.recipe p b { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; background: #ffd36b; font-size: 26px; }
.recipe p.now { background: #fff1b8; outline: 4px dashed #f0a020; }
.recipe p.ok { opacity: .55; text-decoration: line-through; }
.recipe p.ok b { background: #9fe0c0; }
.cook-game .counter { position: absolute; left: 0; right: 0; top: 700px; bottom: 0; background: linear-gradient(#e0a86a, #c4884c); border-top: 8px solid #8a5a2e; }
.dish-area { position: absolute; left: 540px; top: 330px; width: 520px; height: 400px; }
.bowl { position: absolute; left: 70px; bottom: 0; width: 380px; height: 220px; border-radius: 30px 30px 190px 190px; background: linear-gradient(#ffffff, #d6e9f5); border: 6px solid var(--ink); box-shadow: 0 10px 0 rgba(0,0,0,.15); cursor: pointer; overflow: hidden; }
.bowl.hidden { display: none; }
.bowl span { position: absolute; font-size: 80px; transform: translate(-50%, -50%) rotate(var(--turn, 0deg)); transition: transform .3s; pointer-events: none; }
.bowl.stir { animation: vet-glow-btn 1s ease-in-out infinite; }
.bowl.bump { animation: item-pop .35s ease-out; }
.bowl.cooking { animation: cook-shake .15s linear infinite; background: linear-gradient(#ffe0b0, #ffb36b); }
@keyframes cook-shake { 50% { transform: translateX(4px) rotate(1deg); } }
.cook-bar { position: absolute; left: 90px; right: 90px; bottom: -40px; height: 26px; border: 4px solid var(--ink); border-radius: 20px; background: #fff; overflow: hidden; }
.cook-bar i { display: block; height: 100%; width: 0; background: #ffb36b; transition: width .2s; }
.plate { position: absolute; left: 10px; bottom: 0; width: 500px; height: 270px; border-radius: 50%; background: radial-gradient(#ffffff 55%, #e6eef5 56%, #ffffff 70%); border: 6px solid var(--ink); box-shadow: 0 12px 0 rgba(0,0,0,.15); animation: item-pop .5s ease-out; }
.plate .food { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: 210px; line-height: 1; }
.plate .topping { position: absolute; font-size: 64px; padding: 18px; transform: translate(-50%, -50%); animation: item-pop .35s ease-out; cursor: grab; touch-action: none; }
.plate .topping.held { cursor: grabbing; filter: drop-shadow(0 8px 6px rgba(0,0,0,.3)); }
.cook-tray { position: absolute; right: 30px; top: 250px; display: grid; grid-template-columns: repeat(2, 200px); gap: 14px; }
.cook-btn { display: flex; flex-direction: column; align-items: center; font-size: 28px; padding: 8px; }
.cook-btn b { font-size: 70px; line-height: 1.1; }
.cook-btn.top b { font-size: 84px; }
.cook-btn.glow { grid-column: span 2; animation: vet-glow-btn 1s ease-in-out infinite; }
.cook-btn.primary { grid-column: span 2; font-size: 36px; }
.cook-btn.hidden { display: none; }
.cook-btn.nope { animation: cook-nope .4s; }
@keyframes cook-nope { 25% { transform: translateX(-12px); } 75% { transform: translateX(12px); } }
.buyer-spot { position: absolute; left: 60px; bottom: 0; width: 460px; height: 700px; pointer-events: none; }
.buyer-spot > img { position: absolute; left: 50%; bottom: -10px; height: 640px; transform: translateX(-50%); animation: buyer-in .5s ease-out; filter: drop-shadow(0 10px 8px rgba(0,0,0,.2)); }
@keyframes buyer-in { from { transform: translateX(-120%); opacity: 0; } }
.buyer-spot .bubble { display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; top: 24px; transform: translateX(-30%); white-space: nowrap; font-size: 36px; padding: 12px 28px; background: #fff; border: 5px solid var(--ink); border-radius: 30px; box-shadow: var(--shadow); animation: fadein .3s; }
.coin-fly { position: absolute; left: 800px; top: 500px; font-size: 90px; animation: coin-fly .9s ease-in forwards; pointer-events: none; z-index: 5; }
@keyframes coin-fly { to { left: 330px; top: 20px; transform: scale(.4); opacity: .3; } }
.reward .big-food { font-size: 160px; line-height: 1; }

/* 학원 수업(src/scenes/lesson.js) */
.lesson-game { position: absolute; inset: 0; overflow: hidden; background: #fff0f5; }
.lesson-game .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lesson-game .board { position: absolute; left: 350px; top: 240px; width: 900px; height: 400px; }
.lesson-game.art .board { background: #fff; border: 10px solid #a8743f; border-radius: 16px; box-shadow: 0 10px 0 rgba(0,0,0,.15); }
.lesson-game .board:empty { display: none; }
.board canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.board .model { position: absolute; right: 12px; top: 6px; font-size: 80px; opacity: .45; pointer-events: none; }
.piano { display: flex; justify-content: center; gap: 6px; height: 100%; padding: 40px 0 0; box-sizing: border-box; }
.piano .key { width: 104px; height: 330px; border: 5px solid var(--ink); border-radius: 0 0 22px 22px; background: linear-gradient(#ffffff, #f2eef5); box-shadow: 0 10px 0 rgba(0,0,0,.18); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; font: inherit; font-size: 34px; color: var(--ink); cursor: pointer; }
.piano .key.lit { background: linear-gradient(#fff4a8, #ffd36b); animation: vet-glow-btn .8s ease-in-out infinite; }
.piano .key.down { transform: translateY(8px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.lesson-game .me-teacher { position: absolute; right: 40px; bottom: 10px; pointer-events: none; }
.lesson-game .me-teacher canvas { height: 520px; display: block; }
.lesson-game .kids { position: absolute; left: 230px; bottom: -30px; display: flex; gap: 10px; }
.kid { position: relative; width: 230px; display: flex; justify-content: center; }
.kid canvas { height: 330px; display: block; transform-origin: 50% 100%; }
.kid .tag { position: absolute; bottom: 44px; font-size: 28px; background: #fff; border: 4px solid var(--ink); border-radius: 20px; padding: 0 14px; }
.kid.cheer canvas, .kid.playing canvas { animation: kid-hop .45s ease-in-out infinite alternate; }
.kid.ask canvas { filter: drop-shadow(0 0 14px #ffd36b); }
@keyframes kid-hop { to { transform: translateY(-20px); } }
.kid .artwork { position: absolute; top: -110px; font-size: 90px; background: #fff; border: 6px solid #a8743f; border-radius: 12px; padding: 4px 16px; animation: item-pop .4s ease-out; }
.kid .sticker { position: absolute; top: -140px; right: 20px; font-size: 64px; animation: item-pop .4s ease-out; }
.kid .sticker-btn { position: absolute; top: -40px; font-size: 30px; white-space: nowrap; animation: vet-glow-btn 1s ease-in-out infinite; z-index: 2; }
.lesson-tray { position: absolute; left: 150px; top: 250px; display: grid; grid-template-columns: repeat(2, 84px); gap: 12px; }
.lesson-tray .pen { width: 84px; height: 84px; border-radius: 50%; border: 5px solid var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.lesson-tray .pen.on { outline: 7px solid #fff; outline-offset: -14px; transform: scale(1.12); }
.lesson-tray .pen-done { position: absolute; top: 0; left: 1120px; white-space: nowrap; font-size: 36px; animation: vet-glow-btn 1s ease-in-out infinite; }
.lesson-tray .hidden { display: none; }

/* 놀이 소품 그림(src/ui/icon.js, 아트 요청 ICON-01): 글자 크기를 따라 커진다 */
.ic { width: 1.3em; height: 1.3em; object-fit: contain; vertical-align: middle; display: inline-block; pointer-events: none; }
.game-hint .ic, .recipe .ic, .bubble .ic, .sticker-btn .ic { width: 1.5em; height: 1.5em; margin: -0.3em 0; }
.buyer-spot .bubble .ic { margin: 0; flex: none; }
.bowl:has(.bowl-art) { background: none; border: none; box-shadow: none; border-radius: 0; overflow: visible; }
.bowl-art { position: absolute; left: -50px; bottom: -70px; width: 480px; height: 480px; object-fit: contain; pointer-events: none; }
.bowl span { z-index: 1; }
.bowl:has(.bowl-art) span { margin-top: -95px; font-size: 70px; }
.plate:has(.plate-art) { background: none; border: none; box-shadow: none; }
.plate-art { position: absolute; left: -40px; top: 50%; width: 580px; height: 580px; transform: translateY(-50%); object-fit: contain; pointer-events: none; }
.cooker { position: absolute; right: -150px; bottom: 0; font-size: 170px; line-height: 1; animation: cook-shake .2s linear infinite; pointer-events: none; }
.kid .artwork:has(img) { background: none; border: none; padding: 0; font-size: 130px; top: -150px; transform: rotate(-4deg); }

/* 옷가게·미용실(src/ui/boutique.js): 옷장 틀(.sheet.dress)에 지갑·색 고르기를 더한다 */
.shop-dress h2 { display: flex; align-items: center; gap: 20px; }
.shop-dress .wallet { margin-left: auto; font-size: 36px; background: #fff3c4; border: 4px solid var(--ink); border-radius: 30px; padding: 2px 20px; }
.shop-dress .note { margin: 0; font-size: 30px; color: #d0507a; }
.sheet.dress .note { margin: 0; font-size: 30px; color: #d0507a; }
.shop-dress .choice small { font-size: 22px; color: #d0507a; }
.shop-dress .choice.owned small { color: #3a9a55; }
.shop-dress .choice { height: 236px; }
.shop-dress .choice .pic canvas { height: 132px; }
.shop-dress .choice.small { height: 200px; }
.shop-dress .hair-opts { flex: none; }
.shop-dress .colors h3 { margin: 4px 0; font-size: 28px; }
.shop-dress .colors .row { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-dress .swatch { width: 66px; height: 66px; border-radius: 50%; border: 4px solid var(--ink); cursor: pointer; box-shadow: var(--shadow); padding: 0; }
.shop-dress .swatch.on { outline: 6px solid var(--accent); outline-offset: 3px; }
.shop-dress .bar .btn[disabled] { opacity: .45; }

/* ── 유튜버 놀이(scenes/studio.js) ── */
.studio-game, .build-game, .book-game { position: absolute; inset: 0; overflow: hidden; background: #ece3ff; }
.studio-game .room-bg, .build-game .room-bg, .book-game .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-game .set { position: absolute; left: 300px; top: 240px; width: 1000px; height: 562px; border: 10px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.studio-game .set.hidden, .studio-game .faces.hidden, .studio-game .edit.hidden, .studio-game .upload.hidden { display: none; }
.studio-game .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-game .actor-me { position: absolute; left: 230px; bottom: -150px; pointer-events: none; }
.studio-game .actor-me canvas { height: 620px; display: block; }
.studio-game .props { position: absolute; right: 40px; bottom: 30px; display: flex; gap: 20px; align-items: flex-end; }
.studio-game .prop { width: 160px; height: 160px; border: 0; background: none; padding: 0; cursor: pointer; }
.studio-game .prop .ic, .studio-game .prop .ic-emoji { width: 100%; height: 100%; font-size: 140px; }
.studio-game .prop.glow { animation: vet-glow-btn 1s ease-in-out infinite; border-radius: 30px; }
.studio-game .prop.boing { animation: hop .5s ease-out 2; }
.studio-game .rec { position: absolute; left: 22px; top: 16px; font: bold 34px sans-serif; color: #e8485a; opacity: .35; }
.studio-game .set.live .rec { opacity: 1; animation: blink 1s steps(2) infinite; }
.studio-game .ring { position: absolute; left: 24px; bottom: 10px; width: 180px; opacity: .9; pointer-events: none; }
.studio-game .set.flash::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .85; }
.studio-game .faces { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; gap: 16px; z-index: 2; }
.studio-game .faces .btn { font-size: 40px; padding: 12px 30px; white-space: nowrap; }
.studio-game .faces .btn.glow { background: #ffd36b; animation: vet-glow-btn 1s ease-in-out infinite; }
.studio-game .edit { position: absolute; left: 160px; right: 160px; top: 250px; display: flex; flex-direction: column; gap: 30px; align-items: center; }
.studio-game .shots, .studio-game .timeline { display: flex; gap: 24px; min-height: 230px; }
.studio-game .timeline { background: #3a2e3f; padding: 18px; border-radius: 26px; }
.studio-game .card { position: relative; width: 300px; height: 200px; border: 6px solid var(--ink); border-radius: 18px; background-size: cover; background-position: center; overflow: hidden; cursor: pointer; padding: 0; box-shadow: var(--shadow); }
.studio-game .card canvas { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); height: 190px; }
.studio-game .card .card-prop { position: absolute; right: 6px; bottom: 6px; width: 80px; height: 80px; }
.studio-game .slot { width: 300px; height: 200px; border: 5px dashed #9a8aa8; border-radius: 18px; display: grid; place-items: center; color: #9a8aa8; font-size: 60px; }
.studio-game .slot .card { box-shadow: none; }
.studio-game .slot.play { outline: 8px solid #ffd36b; transform: scale(1.06); }
.studio-game .upload { position: absolute; left: 220px; right: 220px; top: 250px; }
.studio-game .video { display: flex; gap: 30px; background: #fff; border: 6px solid var(--ink); border-radius: 30px; padding: 26px; box-shadow: var(--shadow); }
.studio-game .thumb { position: relative; width: 420px; height: 236px; border-radius: 18px; background-size: cover; overflow: hidden; flex: none; }
.studio-game .thumb canvas { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); height: 250px; }
.studio-game .meta h3 { font-size: 46px; margin: 0 0 6px; } .studio-game .meta .ch { font-size: 30px; color: #7a6a8a; margin: 0 0 14px; }
.studio-game .meta .nums { font-size: 36px; display: flex; gap: 30px; margin: 0 0 14px; } .studio-game .meta .nums .ic { width: 1.3em; height: 1.3em; vertical-align: middle; }
.studio-game .meta .comment { font-size: 30px; background: #f4efff; border-radius: 18px; padding: 10px 18px; margin: 0; }

/* ── 건축가 놀이(scenes/build.js) ── */
.build-game .client { position: absolute; left: 30px; top: 200px; width: 300px; }
.build-game .client .fig { height: 320px; overflow: hidden; }
.build-game .client .fig canvas { width: 300px; display: block; margin-top: -10px; }
.build-game .client .wish { position: relative; background: #fffbe6; border: 5px solid var(--ink); border-radius: 22px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 28px; box-shadow: var(--shadow); }
.build-game .client .wish b { font-size: 30px; }
.build-game .house { position: absolute; left: 400px; top: 280px; width: 570px; }
.build-game .house .roofs, .build-game .house .walls { display: grid; grid-template-columns: repeat(3, 190px); }
.build-game .cell { position: relative; width: 190px; height: 190px; }
.build-game .cell img { width: 100%; height: 100%; display: block; }
.build-game .cell.roof { height: 150px; }
.build-game .cell.roof img { height: 150px; object-fit: fill; }
.build-game .cell.tap:not([data-v]) { outline: 4px dashed rgba(58,46,63,.45); outline-offset: -8px; background: rgba(255,255,255,.55); }
.build-game .cell.tap { cursor: pointer; }
.build-game .cell.pop { animation: item-pop .35s ease-out; }
.build-game .cell .deco { position: absolute; inset: 15%; }
.build-game .cell .deco.d-door { inset: 15% 20% 0; } .build-game .cell .deco img { object-fit: contain; }
.build-game .house .ground { height: 26px; margin: 0 -40px; background: #8fcf7a; border-radius: 14px; border: 4px solid var(--ink); }
.build-game .house.done { animation: hop .6s ease-out 2; }
.build-game .palette { position: absolute; right: 30px; top: 280px; width: 560px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.build-game .palette.hidden { display: none; }
.build-game .pick { width: 160px; height: 190px; border: 5px solid var(--ink); border-radius: 22px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 24px; box-shadow: var(--shadow); padding: 8px; }
.build-game .pick img { width: 120px; height: 120px; object-fit: contain; }
.build-game .pick.on { background: #ffd36b; transform: scale(1.06); }
.build-game .palette .next { width: 100%; font-size: 38px; animation: vet-glow-btn 1s ease-in-out infinite; }
.build-game .palette .next.hidden { display: none; }

/* ── 작가 놀이(scenes/book.js) · 내 작품(ui/works.js) ── */
.book-page { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: 12px; overflow: hidden; container-type: inline-size; }
.book-page .st { position: absolute; height: auto; aspect-ratio: 1; touch-action: none; user-select: none; }
.book-page .line { position: absolute; left: 4%; right: 4%; bottom: 3%; margin: 0; background: rgba(255,255,255,.88); border-radius: 2cqw; padding: 1.2cqw 2.4cqw; font-size: 4.2cqw; text-align: center; color: var(--ink); }
.book-game .desk { position: absolute; left: 150px; top: 240px; width: 840px; }
.book-game .desk .book-page { border: 10px solid #fff; box-shadow: 0 0 0 5px var(--ink), var(--shadow); }
.book-game .desk .st { cursor: grab; } .book-game .desk .st.drag { cursor: grabbing; filter: drop-shadow(0 10px 6px rgba(0,0,0,.3)); }
.book-game .cover-title { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); background: #fff2c9; border: 5px solid var(--ink); border-radius: 22px; padding: 8px 28px; font-size: 44px; white-space: nowrap; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow); animation: item-pop .5s ease-out; }
.book-game .cover-title small { font-size: 24px; color: #7a6a8a; }
.book-game .tray { position: absolute; right: 40px; top: 240px; width: 520px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.book-game .tray.hidden { display: none; }
.book-game .st-pick { aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 20px; background: #fff; cursor: pointer; padding: 6px; box-shadow: var(--shadow); }
.book-game .st-pick img { width: 100%; height: 100%; object-fit: contain; }
.book-game .tray .next { grid-column: 1 / -1; font-size: 36px; animation: vet-glow-btn 1s ease-in-out infinite; }
.book-game .tray .next.hidden { display: none; }
.reward .book-result { flex-direction: column; } .reward .book-result .book-page { width: 520px; }
.reward .book-result .book-page img.st { height: auto; }
.sheet.works { width: 1400px; max-width: none; padding: 26px 34px; }
.works .tabs { display: flex; gap: 14px; margin-bottom: 16px; } .works .tabs .btn { font-size: 32px; padding: 6px 22px; } .works .tabs .btn.on { background: #ffd36b; }
.works .grid-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-height: 560px; overflow: auto; padding: 4px; }
.works .work { border: 4px solid var(--ink); border-radius: 22px; background: #fff; padding: 10px; cursor: pointer; font: inherit; font-size: 26px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.works .work span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.works .big { display: flex; flex-direction: column; align-items: center; gap: 10px; } .works .big > :first-child { width: 620px; }
.works .big > .house-pic { width: 420px; } .works .cap { font-size: 32px; margin: 0; }
.works .note { font-size: 36px; text-align: center; padding: 60px 0; }
.house-pic .r, .house-pic .w { display: grid; grid-template-columns: repeat(3, 1fr); } .house-pic img { width: 100%; display: block; }
.house-pic .r img { aspect-ratio: 190 / 150; object-fit: fill; } .house-pic .w > div { position: relative; }
.house-pic .w .d { position: absolute; left: 15%; top: 15%; width: 70%; height: 70%; object-fit: contain; } .house-pic .w .d-door { left: 20%; top: 15%; width: 60%; height: 85%; }
.video-pic { position: relative; aspect-ratio: 16 / 9; background-size: cover; border-radius: 14px; overflow: hidden; }
.video-pic canvas { position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%); height: 105%; }
.video-pic .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; font-size: 60px; color: #fff; background: rgba(232,72,90,.9); border-radius: 50%; width: 1.6em; height: 1.6em; display: grid; place-items: center; }
.sheet .gem.all { color: #e8485a; }
.gem-case.all { background: linear-gradient(#fff6d8, #ffe2f0); box-shadow: 0 0 0 8px #ffd36b, var(--shadow); }
.gem-case.all .slot.got { animation: hop 1.6s ease-in-out infinite; }

/* 계산 연출(ui/money.js): 장난감 돈이 한 장씩 쌓인다 */
.sheet { position: relative; }
.pay-anim { position: absolute; inset: 0; z-index: 5; border-radius: 34px; background: rgba(255, 251, 236, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.pay-anim .tray { position: relative; width: 760px; height: 300px; }
.pay-anim .note { position: absolute; left: calc(50% - 215px + var(--k) * 18px); top: calc(40px + var(--k) * 16px); width: 340px; height: 160px; border-radius: 16px; border: 5px solid rgba(0,0,0,.35); box-shadow: 0 8px 0 rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 56px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); animation: note-in .3s ease-out; transform: rotate(var(--r)); }
.pay-anim .note::before { content: ""; position: absolute; left: 22px; top: 50%; width: 70px; height: 70px; margin-top: -35px; border-radius: 50%; background: rgba(255,255,255,.35); border: 4px solid rgba(255,255,255,.6); }
.pay-anim .note span { font-size: 34px; }
.pay-anim .n10000 { background: linear-gradient(135deg, #7fcf8a, #4aa864); }
.pay-anim .n5000 { background: linear-gradient(135deg, #ffb27a, #e8784a); }
.pay-anim .n1000 { background: linear-gradient(135deg, #8cc4f4, #4e8fd6); }
.pay-anim .sum { font-size: 46px; margin: 0; color: var(--ink); } .pay-anim .sum b { color: #d0507a; }
@keyframes note-in { from { transform: translateY(-160px) rotate(-10deg); opacity: 0; } }

/* ── 반려동물 돌보기(ui/petcare.js) · 집에서 쉬는 반려동물(scenes/home.js) ── */
.home .actor.cheer .body { animation: cheer .6s ease-out; }
.home .pet-care { position: absolute; z-index: 4; right: 30px; bottom: 246px; font-size: 38px; background: #ffe1ec; }
.home .study-go { position: absolute; z-index: 4; right: 30px; bottom: 362px; font-size: 38px; background: #d9f0ff; }
.room-view .actor.resting .pet .label { bottom: -40px; font-size: 26px; }
.room-view .actor.resting.idle .body { animation: breathe 3.6s ease-in-out infinite; }
.sheet.petcare { width: 1460px; max-width: none; height: 860px; box-sizing: border-box; padding: 22px 30px; display: flex; flex-direction: column; gap: 12px; }
.pc-head { display: flex; align-items: center; gap: 14px; }
.pc-head h2 { margin: 0; } .pc-head .btn { font-size: 34px; padding: 6px 24px; } .pc-head .btn.on { background: #ffd36b; }
.pc-head .love { margin-left: auto; font-size: 40px; letter-spacing: 2px; background: #fff; border: 4px solid var(--ink); border-radius: 30px; padding: 2px 18px; }
.pc-head .love i { font-style: normal; color: #e8dce8; } .pc-head .love i.on { color: #ff5c8a; }
.pc-body { flex: 1; display: flex; gap: 20px; min-height: 0; }
.pc-stage { position: relative; flex: 1; border: 5px solid var(--ink); border-radius: 30px; overflow: hidden; background: linear-gradient(#fff4fb 0 62%, #f6dcc0 62%); touch-action: none; user-select: none; transition: background .6s; }
.pc-stage.night { background: linear-gradient(#3b3666 0 62%, #5a4a6a 62%); }
.pc-stage .pet-wrap { position: absolute; left: 50%; bottom: 6%; width: 470px; height: 470px; transform: translateX(-50%); transition: left .45s ease-in-out; }
.pc-stage .pet-wrap.flip .pet-img { transform: scaleX(-1); }
.pc-stage .pet-img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.pc-stage.in-bath .pet-wrap::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -4%; height: 34%; background: linear-gradient(rgba(191,232,255,.92), rgba(140,207,255,.95)); border-radius: 0 0 50% 50% / 0 0 40% 40%; border: 6px solid #fff; box-shadow: 0 0 0 4px var(--ink); }
.pc-stage .wish { position: absolute; left: 62%; top: 6%; background: #fff; border: 5px solid var(--ink); border-radius: 40px; padding: 10px 22px; display: flex; align-items: center; gap: 10px; font-size: 34px; animation: hop 1.6s ease-in-out infinite; }
.pc-stage .wish::after { content: ""; position: absolute; left: 30px; bottom: -34px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
.pc-stage .wish .ic { width: 1.6em; height: 1.6em; }
.pc-stage .tools { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: center; gap: 16px; }
.pc-stage .tool { width: 160px; height: 170px; border: 5px solid var(--ink); border-radius: 26px; background: #fff; font: inherit; font-size: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; box-shadow: var(--shadow); position: relative; }
.pc-stage .tool .ic, .pc-stage .tool .ic-emoji { width: 96px; height: 96px; font-size: 76px; line-height: 96px; }
.pc-stage .tool:not(:has(.ic)):not(:has(.ic-emoji)) { font-size: 60px; } .pc-stage .tool span { font-size: 26px; } .pc-stage .tool small { font-size: 20px; color: #a07850; }
.pc-stage .tool.locked { opacity: .55; } .pc-stage .tool.cmd { width: 300px; font-size: 70px; animation: vet-glow-btn 1s ease-in-out infinite; } .pc-stage .tool.cmd span { font-size: 40px; }
.pc-stage .fx { position: absolute; inset: 0; pointer-events: none; }
.pc-stage .float { position: absolute; width: 80px; height: 80px; margin: -40px 0 0 -40px; animation: float-up 1.2s ease-out forwards; }
.pc-stage .float .ic, .pc-stage .float .ic-emoji { width: 100%; height: 100%; font-size: 64px; }
.pc-stage .float.small { width: 54px; height: 54px; margin: -27px 0 0 -27px; } .pc-stage .float.small .ic-emoji { font-size: 44px; }
.pc-stage .float.tool-trail { width: 110px; height: 110px; margin: -55px 0 0 -55px; animation: fadeout .5s ease-out forwards; }
.pc-stage .float.feed { width: 130px; height: 130px; animation: feed .6s ease-in forwards; }
.pc-stage .float.slow { animation-duration: 2s; }
@keyframes float-up { to { transform: translateY(-120px) scale(1.3); opacity: 0; } }
@keyframes fadeout { to { opacity: 0; transform: scale(.8); } }
@keyframes feed { from { transform: translateY(-260px); } to { transform: translateY(0) scale(.5); opacity: 0; } }
.pc-stage .bubble-pop { position: absolute; width: 110px; height: 110px; margin: -55px 0 0 -55px; border: 0; background: none; padding: 0; cursor: pointer; animation: item-pop .3s ease-out; z-index: 2; }
.pc-stage .bubble-pop .ic, .pc-stage .bubble-pop .ic-emoji { width: 100%; height: 100%; font-size: 90px; }
.pc-stage .bubble-pop.popped { transform: scale(1.4); opacity: 0; transition: all .25s; }
.pc-stage .thrown { position: absolute; bottom: 12%; width: 110px; height: 110px; margin-left: -55px; transition: left .45s ease-out; z-index: 2; }
.pc-stage .thrown.fly { animation: toss .45s ease-out; } .pc-stage .thrown .ic, .pc-stage .thrown .ic-emoji { width: 100%; height: 100%; font-size: 90px; }
@keyframes toss { 50% { transform: translateY(-200px) rotate(200deg); } }
.pet-wrap.hop { animation: pet-hop .45s ease-out 2; } @keyframes pet-hop { 50% { transform: translateX(-50%) translateY(-60px); } }
.pet-wrap.munch { animation: munch .3s ease-in-out 3; } @keyframes munch { 50% { transform: translateX(-50%) scaleY(.94) scaleX(1.04); } }
.pet-wrap.shake { animation: shake .14s linear 5; } @keyframes shake { 25% { transform: translateX(calc(-50% - 16px)) rotate(-4deg); } 75% { transform: translateX(calc(-50% + 16px)) rotate(4deg); } }
.pet-wrap.tilt { animation: tilt .8s ease-in-out; } @keyframes tilt { 40%, 70% { transform: translateX(-50%) rotate(-14deg); } }
.pet-wrap.wiggle { animation: shake .2s linear 4; }
.pet-wrap.spin { animation: spin 1s ease-in-out; } @keyframes spin { to { transform: translateX(-50%) rotateY(720deg); } }
.pet-wrap.jump { animation: jump .9s ease-out; } @keyframes jump { 40% { transform: translateX(-50%) translateY(-200px) rotate(-8deg); } 80% { transform: translateX(-50%); } }
.pet-wrap.paw { animation: tilt .9s ease-in-out; } .pet-wrap.five { animation: pet-hop .45s ease-out 2; }
.pc-acts { width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.pc-acts .act { height: 124px; border: 5px solid var(--ink); border-radius: 26px; background: #fff; font: inherit; font-size: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; box-shadow: var(--shadow); }
.pc-acts .act .ic, .pc-acts .act .ic-emoji { width: 76px; height: 76px; font-size: 58px; line-height: 76px; }
.pc-acts .act.did { background: #f3fff2; } .pc-acts .act.wish-act { background: #fff3c4; animation: vet-glow-btn 1.2s ease-in-out infinite; }
.pc-acts .act:disabled { opacity: .5; }
.pc-msg { margin: 0; font-size: 32px; min-height: 44px; } .pc-msg .up { color: #ff4f86; }
.sheet.petcare .bar { margin: 0; }

/* 멍냥병원 털 손질(scenes/vet.js groom) */
.vet-layer .dirt { width: 90px; height: 70px; border-radius: 50%; background: radial-gradient(rgba(130,90,50,.75), rgba(130,90,50,.35) 60%, transparent 72%); }
.vet-layer .trail { width: 110px; height: 110px; animation: fadeout .55s ease-out forwards; }
.vet-layer .trail .ic, .vet-layer .trail .ic-emoji, .vet-layer .bubble .ic, .vet-layer .bubble .ic-emoji { width: 100%; height: 100%; font-size: 90px; }
.vet-layer .bubble { width: 110px; height: 110px; cursor: pointer; animation: item-pop .3s ease-out; }
.vet-layer .bubble.gone { transform: translate(-50%, -50%) scale(1.5); opacity: 0; transition: all .3s; pointer-events: none; }
.vet-layer .stuck .ic { width: 130px; height: 130px; }
.vet-game .patient.shake { animation: vet-shake .14s linear 5; }
@keyframes vet-shake { 25% { transform: translateX(-16px) rotate(-3deg); } 75% { transform: translateX(16px) rotate(3deg); } }

/* 반려동물 브이로그(scenes/studio.js) */
.studio-game .set-pet { position: absolute; left: 70px; bottom: 10px; width: 280px; height: 280px; object-fit: contain; pointer-events: none; }
.studio-game .set-pet.hidden { display: none; }
.studio-game .set-pet.jump { animation: jump-s .9s ease-out; }
@keyframes jump-s { 40% { transform: translateY(-120px) rotate(-6deg); } }
.studio-game .card .card-pet { position: absolute; left: 8px; bottom: 4px; width: 100px; height: 100px; object-fit: contain; }
.video-pic .vp-pet { position: absolute; right: 4%; bottom: 2%; width: 34%; z-index: 1; }

/* 반려동물 집(scenes/build.js) */
.build-game.pet-house .house { top: 400px; }
.build-game.pet-house .walls .cell:nth-child(-n+3) { display: none; }
.build-game .pet-guest { position: absolute; left: 1080px; top: 520px; width: 260px; height: 260px; object-fit: contain; pointer-events: none; transform: scaleX(-1); z-index: 2; }
.build-game .pet-guest.hidden { display: none; }
.build-game .pet-guest.go-in { animation: pet-go-in 1.2s ease-in forwards; }
@keyframes pet-go-in { 60% { left: calc(var(--to-x) - 130px); top: 520px; transform: scaleX(-1) scale(.8); opacity: 1; } 100% { left: calc(var(--to-x) - 130px); top: 560px; transform: scaleX(-1) scale(.4); opacity: 0; } }
.house-pic { position: relative; }
.house-pic .hp-pet { position: absolute; right: -6%; bottom: -4%; width: 42%; }

/* 네 컷 만화(scenes/book.js · ui/works.js bookPage) */
.comic-page { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; padding: 1.6cqw; background: #fff; border-radius: 12px; aspect-ratio: 4 / 3; container-type: inline-size; box-sizing: border-box; }
.comic-page .panel { position: relative; background-size: cover; background-position: center; border: .6cqw solid var(--ink); border-radius: 1.4cqw; overflow: hidden; }
.comic-page .panel.empty { background: #f4eefa !important; }
.comic-page .panel.on { box-shadow: 0 0 0 1cqw #ffd36b; }
.comic-page .panel .no { position: absolute; left: 1.2cqw; top: .8cqw; font-size: 3cqw; background: #fff; border-radius: 50%; width: 4.4cqw; height: 4.4cqw; display: grid; place-items: center; border: .4cqw solid var(--ink); z-index: 1; }
.comic-page .st { position: absolute; height: auto; aspect-ratio: 1; }
.comic-page .bubble { position: absolute; left: 8%; right: 8%; top: 6%; margin: 0; background: #fff; border: .4cqw solid var(--ink); border-radius: 3cqw; padding: .6cqw 1.4cqw; font-size: 2.6cqw; text-align: center; color: var(--ink); line-height: 1.25; }
.comic-page .bubble::after { content: ""; position: absolute; left: 30%; bottom: -1.6cqw; border: .9cqw solid transparent; border-top-color: var(--ink); }
.book-game .desk .comic-page { border: 10px solid #fff; box-shadow: 0 0 0 5px var(--ink), var(--shadow); }
.reward .book-result .comic-page { width: 520px; }

/* 놀이 고르기 창·지도·도장 수첩(결정 43) */
.sheet.play-menu { width: 1240px; max-width: none; text-align: center; padding: 26px 36px; }
.sheet.play-menu h2 { margin-bottom: 4px; }
.sheet.play-menu .left { font-size: 34px; margin: 0 0 16px; }
.play-menu .acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.play-menu .act { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; text-align: left; align-items: center; background: #fff; border: 5px solid var(--ink); border-radius: 26px; padding: 12px 18px; font: inherit; color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 var(--ink); }
.play-menu .act:hover { background: #fff6d6; }
.play-menu .act .i { grid-row: 1 / 4; font-size: 72px; text-align: center; }
.play-menu .act b { font-size: 40px; } .play-menu .act small { font-size: 34px; color: #7a6a80; }
.play-menu .act em { font-style: normal; font-size: 34px; color: #d89a1b; }
.play-menu .bar { justify-content: center; }
.sheet.map-sheet { width: 1520px; max-width: none; padding: 20px 30px; }
.sheet.map-sheet h2 { margin-bottom: 8px; font-size: 44px; }
.map-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 12px; }
.map-list section { display: flex; flex-direction: column; gap: 6px; }
.map-list h3 { margin: 0; font-size: 34px; text-align: center; background: #ffe6a8; border-radius: 16px; padding: 2px 6px; white-space: nowrap; overflow: hidden; }
.map-list .btn { font-size: 34px; line-height: 1.05; padding: 4px 8px; min-height: 92px; }
.sheet.stamp-sheet { width: 1520px; max-width: none; padding: 20px 30px; }
.sheet.stamp-sheet h2 { margin-bottom: 8px; } .sheet.stamp-sheet h2 small { font-size: 36px; color: #a07850; }
.stamp-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; max-height: 660px; overflow-y: auto; }
.stamp-list h3 { margin: 0 0 2px; font-size: 34px; }
.stamp-list section > div { display: flex; flex-wrap: wrap; gap: 6px; }
.stamp { width: 150px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stamp i { font-style: normal; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; background: #eee6f2; border: 4px dashed #c9b8d6; color: #b7a7c4; }
.stamp.on i { background: #ffe9b8; border: 4px solid var(--ink); color: inherit; }
.stamp small { font-size: 30px; line-height: 1.1; } .stamp em { font-style: normal; font-size: 30px; color: #d89a1b; height: 34px; }

/* 놀이 공통 판(scenes/play.js, games/) */
.play-game { position: absolute; inset: 0; overflow: hidden; }
.play-game .place-title { z-index: 3; }
.play-game .game-dim { background: rgba(255, 255, 255, .4); }
.play-area { position: absolute; inset: 0; touch-action: none; }
.play-area > * { position: absolute; }
.play-count { position: absolute; z-index: 3; right: 30px; top: 118px; font-size: 40px; font-weight: 700; padding: 6px 26px; border-radius: 30px; background: #fff; border: 5px solid var(--ink); }
.play-count.hidden { display: none; }
.play-game .game-hint { max-width: 1500px; white-space: normal; text-align: center; }
.play-game .ic, .play-game .ic-emoji { pointer-events: none; }
.g-pop { transform: translate(-50%, -50%); font-size: 44px; font-weight: 700; color: #d2526a; -webkit-text-stroke: 1px #fff; pointer-events: none; animation: g-rise .8s ease-out forwards; z-index: 9; white-space: nowrap; }
.g-pop.ok { color: #2f9e62; }
@keyframes g-rise { from { opacity: 1; margin-top: 10px; } to { opacity: 0; margin-top: -50px; } }
.play-area .ic, .play-area .ic-emoji { display: block; width: 100%; height: 100%; object-fit: contain; font-size: 1em; line-height: 1; text-align: center; }

/* tap */
.g-hole { width: 240px; height: 200px; transform: translate(-50%, -50%); font-size: 120px; display: grid; place-items: end center; }
.g-hole > .ic, .g-hole > .ic-emoji { position: absolute; left: 0; bottom: 0; width: 240px; height: 110px; opacity: .85; }
.g-up { position: absolute; left: 30px; top: 0; width: 180px; height: 180px; font-size: 140px; cursor: pointer; animation: g-pop-up .18s ease-out; z-index: 2; }
@keyframes g-pop-up { from { transform: translateY(70px) scale(.7); } to { transform: none; } }
/* catch */
.g-basket { width: 220px; height: 170px; transform: translate(-50%, -50%); font-size: 150px; z-index: 3; }
.g-fall { width: 100px; height: 100px; transform: translate(-50%, -50%); font-size: 84px; pointer-events: none; }
.g-float { width: 130px; height: 170px; transform: translate(-50%, -50%); font-size: 130px; cursor: pointer; }
/* run */
.g-ground { left: 0; right: 0; top: 760px; bottom: 0; background: #d9b98c; border-top: 8px solid #a98660; }
.g-ground.grass { background: #a8dc8a; border-color: #6fb35a; } .g-ground.sea { background: #6cc9ff; border-color: #fff; } .g-ground.track { background: #e88a6a; border-color: #fff; }
.g-runner { transform: translate(-50%, -100%); width: 260px; height: 250px; font-size: 200px; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; z-index: 3; }
.g-runner canvas { flex: none; } .g-runner.oops { opacity: .55; }
.g-runner .board { position: absolute; left: 10px; right: 10px; bottom: -36px; height: 70px; }
.g-ob { transform: translate(-50%, -100%); width: 120px; height: 120px; font-size: 100px; pointer-events: none; } .g-ob.coin { width: 84px; height: 84px; font-size: 70px; }
/* dive */
.g-sea { left: 0; right: 0; top: 200px; bottom: 0; background: linear-gradient(#8fdcff, #2b7fc2); border-radius: 30px 30px 0 0; opacity: .94; }
.g-sea.clear { background: none; opacity: 1; }
.g-diver { width: 180px; height: 180px; transform: translate(-50%, -50%); font-size: 140px; pointer-events: none; z-index: 3; }
.g-sea-item { position: absolute; width: 110px; height: 110px; margin-top: -200px; transform: translate(-50%, -50%); font-size: 90px; }
/* claw */
.g-prize { width: 150px; height: 150px; transform: translate(-50%, -50%); font-size: 120px; }
.g-rope { width: 8px; height: 130px; background: #7a6a80; margin-left: -4px; transition: height .6s ease-in-out; z-index: 3; }
.g-claw { position: absolute; left: 50%; bottom: -60px; width: 140px; height: 120px; margin-left: -70px; font-size: 100px; }
.g-go { left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 40px; z-index: 5; }
.g-chute { left: 110px; top: 640px; width: 180px; height: 200px; background: rgba(0, 0, 0, .1); border-radius: 20px; }
/* breakout */
.g-paddle { width: 230px; height: 34px; transform: translate(-50%, -50%); background: var(--ink); border-radius: 20px; }
.g-ball { width: 60px; height: 60px; transform: translate(-50%, -50%); font-size: 50px; pointer-events: none; }
.g-brick { width: 148px; height: 56px; transform: translate(-50%, -50%); border: 4px solid var(--ink); border-radius: 14px; }
/* stack */
.g-tower { inset: 0; transition: transform .4s; pointer-events: none; }
.g-tower > * { position: absolute; }
.g-stack-base { transform: translate(-50%, -50%); width: 240px; height: 120px; font-size: 100px; }
.g-stacked, .g-swing { transform: translate(-50%, -50%); width: 200px; height: 130px; font-size: 100px; pointer-events: none; }
/* jumprope */
.g-jumprope { left: 800px; top: 610px; width: 620px; height: 400px; border: 10px solid #d2526a; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.g-beat { left: 760px; top: 830px; width: 80px; height: 40px; border-radius: 50%; background: #ffe08a; } .g-beat.on { background: #7be08d; }
/* pour */
.g-glass { width: 260px; height: 400px; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .85); border: 8px solid var(--ink); border-top: 0; border-radius: 0 0 40px 40px; overflow: hidden; }
.g-glass .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.g-glass .line { position: absolute; left: 0; right: 0; height: 8px; margin-bottom: -4px; background: repeating-linear-gradient(90deg, #d2526a 0 20px, transparent 20px 34px); }
.g-tool { width: 200px; height: 200px; transform: translate(-50%, -50%); font-size: 170px; pointer-events: none; transition: transform .15s; }
.g-tool.tilt { transform: translate(-50%, -50%) rotate(40deg); } .g-tool.big { width: 280px; height: 280px; font-size: 230px; }
.g-tool.hit { animation: hop .4s; }
/* scrub */
.g-scrub { width: 640px; height: 560px; transform: translate(-50%, -50%); font-size: 420px; }
.g-scrub canvas.dirt { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.g-cursor { width: 130px; height: 130px; transform: translate(-50%, -50%); font-size: 110px; pointer-events: none; z-index: 5; }
/* spin */
.g-stick { width: 60px; height: 440px; transform: translate(-50%, -50%); font-size: 120px; pointer-events: none; }
.g-stick > .ic, .g-stick > .ic-emoji { position: absolute; left: 0; top: 150px; width: 60px; height: 300px; }
.g-stick .candy { position: absolute; left: 30px; top: 90px; }
.g-stick .candy i { position: absolute; width: 90px; height: 90px; margin: -45px; border-radius: 50%; opacity: .75; }
.g-colors { left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 14px; z-index: 5; }
.g-swatch { width: 100px; height: 100px; border-radius: 50%; border: 6px solid var(--ink); cursor: pointer; font-size: 40px; background: #fff; }
.g-swatch.on { outline: 6px solid #ffd36b; }
/* timing */
.g-bar { width: 1000px; height: 70px; transform: translate(-50%, -50%); background: #fff; border: 6px solid var(--ink); border-radius: 36px; overflow: hidden; }
.g-bar .zone { position: absolute; top: 0; bottom: 0; background: #7be08d; }
.g-bar .needle { position: absolute; top: 0; bottom: 0; width: 12px; margin-left: -6px; background: #d2526a; }
.g-tray { left: 200px; right: 200px; bottom: 30px; display: flex; justify-content: center; gap: 8px; font-size: 80px; }
.g-tray span { width: 100px; height: 100px; }
/* traffic */
.g-runway { width: 330px; height: 200px; transform: translate(-50%, -50%); border: 6px solid var(--ink); border-radius: 26px; display: grid; place-items: center; font-size: 42px; cursor: pointer; }
.g-runway.busy { filter: grayscale(.7); }
.g-plane { width: 220px; height: 220px; transform: translate(-50%, -50%); font-size: 180px; transition: left .7s, top .7s, transform .7s; pointer-events: none; filter: drop-shadow(0 0 0 var(--tail)) drop-shadow(0 6px 10px var(--tail)); }
.g-plane.land { transform: translate(-50%, -50%) scale(.6); }
/* rhythm */
.g-lane { width: 220px; height: 640px; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .55); border-radius: 30px; }
.g-pad { width: 220px; height: 110px; transform: translate(-50%, -50%); border: 6px solid var(--ink); border-radius: 26px; display: grid; place-items: center; font-size: 46px; cursor: pointer; z-index: 2; }
.g-pad.down { animation: g-press .15s; } @keyframes g-press { from { transform: translate(-50%, -50%) scale(.9); } }
.g-note { width: 100px; height: 100px; transform: translate(-50%, -50%); font-size: 80px; pointer-events: none; z-index: 3; }
.g-dancer { transform: translate(-50%, -100%); pointer-events: none; } .g-dancer.flip { transform: translate(-50%, -100%) scaleX(-1); } .g-dancer canvas { display: block; }

/* pairs */
.g-card { transform: translate(-50%, -50%); perspective: 800px; cursor: pointer; font-size: 100px; }
.g-card span { position: absolute; inset: 0; display: grid; place-items: center; border: 6px solid var(--ink); border-radius: 22px; backface-visibility: hidden; transition: transform .25s; padding: 10px; box-sizing: border-box; }
.g-card .back { background: #ffd9a8; font-weight: 700; } .g-card .front { background: #fff; transform: rotateY(180deg); }
.g-card .front .ic { position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.g-card.on .back { transform: rotateY(180deg); } .g-card.on .front { transform: none; } .g-card.got { opacity: .6; }
/* simon */
.g-simon { height: 300px; transform: translate(-50%, -50%); border: 7px solid var(--ink); border-radius: 36px; display: grid; place-items: center; font-size: 56px; cursor: pointer; opacity: .75; }
.g-simon.lit { opacity: 1; box-shadow: 0 0 60px 20px #fff8c0; transform: translate(-50%, -50%) scale(1.05); }
/* order */
.g-bubble { transform: translate(-50%, -50%); background: #fff; border: 6px solid var(--ink); border-radius: 40px; padding: 20px 40px; text-align: center; font-size: 110px; }
.g-bubble small { display: block; font-size: 40px; } .g-bubble div { display: flex; gap: 14px; justify-content: center; } .g-bubble .ic, .g-bubble .ic-emoji { width: 130px; height: 130px; }
.g-order-tray { left: 300px; right: 300px; top: 270px; height: 170px; background: #f4e3c8; border: 6px solid var(--ink); border-radius: 90px; display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 110px; }
.g-order-tray .ic, .g-order-tray .ic-emoji { width: 130px; height: 130px; }
.g-menu { left: 160px; right: 160px; top: 480px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.g-pick { width: 150px; height: 150px; font-size: 110px; background: #fff; border: 6px solid var(--ink); border-radius: 26px; padding: 12px; box-sizing: border-box; cursor: pointer; }
.g-pick.off { opacity: .3; } .g-pick.no { background: #ffd9d9; }
/* witness */
.g-photo { transform: translate(-50%, -50%); background: #fff; border: 6px solid var(--ink); border-radius: 26px; padding: 12px; text-align: center; font-size: 34px; }
.g-photo canvas { display: block; } .g-photo.wide { padding: 8px; } .g-photo.wide canvas { height: 520px; width: auto; }
.g-faces { left: 80px; right: 80px; top: 320px; display: flex; gap: 20px; justify-content: center; } .g-faces.keep { left: 500px; right: 30px; flex-wrap: wrap; } .g-faces.low { top: 600px; }
.g-face { position: relative; width: 250px; height: 260px; font-size: 180px; background: #fff; border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; cursor: pointer; }
.g-faces.keep .g-face { width: 230px; height: 240px; } .g-faces.low .g-face { width: 190px; height: 190px; font-size: 150px; padding: 8px; box-sizing: border-box; }
.g-face.yes { background: #c9f4d3; } .g-face.no { opacity: .35; }
/* cup */
.g-cup { width: 240px; height: 240px; transform: translate(-50%, -50%); font-size: 200px; transition: left .4s, top .4s, margin .25s; cursor: pointer; z-index: 2; }
.g-cup.up { margin-top: -130px; }
.g-hidden-ball { width: 110px; height: 110px; transform: translate(-50%, -50%); font-size: 90px; }
/* hidden */
.g-list { left: 50%; top: 260px; transform: translateX(-50%); display: none; }
.play-game .g-list { display: flex; position: absolute; top: auto; bottom: 14px; gap: 10px; background: #fff; border: 5px solid var(--ink); border-radius: 26px; padding: 6px 16px; font-size: 64px; z-index: 5; }
.g-list span { width: 84px; height: 84px; } .g-list span.off { opacity: .22; }
.g-thing { width: 124px; height: 124px; font-size: 100px; margin: 0; transform: translate(-50%, -50%); cursor: pointer; } .g-thing.small { width: 96px; height: 96px; font-size: 76px; pointer-events: none; }
.g-thing.got { opacity: .25; pointer-events: none; } .g-thing.wiggle { animation: wiggle .3s; }
/* diff */
.g-panel { width: 680px; height: 520px; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; background: #fff; border: 7px solid var(--ink); border-radius: 26px; padding: 10px; box-sizing: border-box; }
.g-diffcell { font-size: 100px; padding: 10px; border-radius: 18px; cursor: pointer; min-height: 0; min-width: 0; } .g-diffcell.got { background: #c9f4d3; outline: 5px solid #2f9e62; } .g-diffcell.no { background: #ffe0e0; }
/* shadow */
.g-shadow { width: 300px; height: 300px; transform: translate(-50%, -50%); font-size: 260px; padding: 16px; background: #fff8; border-radius: 30px; }
.g-shadow .ic, .g-shadow .ic-emoji { filter: brightness(0) opacity(.85); transition: filter .3s; } .g-shadow.xray { background: #1d3557; } .g-shadow.xray .ic, .g-shadow.xray .ic-emoji { filter: brightness(0) invert(1) opacity(.82); }
.g-shadow.show .ic, .g-shadow.show .ic-emoji { filter: none; }

/* sort */
.g-bin { width: 300px; height: 230px; transform: translate(-50%, -50%); background: #fff; border: 7px solid var(--ink); border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; cursor: pointer; text-align: center; }
.g-bin .ic, .g-bin .ic-emoji { width: 120px; height: 120px; font-size: 96px; } .g-bin.no { animation: wiggle .3s; }
.g-belt { left: 0; right: 0; top: 330px; height: 110px; background: repeating-linear-gradient(90deg, #8d8a92 0 40px, #a5a2ab 40px 80px); border-block: 8px solid #5e5a64; }
.g-sort-item { width: 190px; height: 190px; transform: translate(-50%, -50%); font-size: 150px; cursor: grab; transition: left .45s ease-out, top .3s; z-index: 4; touch-action: none; }
.g-sort-item.held { transition: none; z-index: 6; cursor: grabbing; } .g-sort-item.in { transform: translate(-50%, -50%) scale(.3); opacity: 0; transition: all .28s; }
.g-sort-item i { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 26px; border: 4px solid var(--ink); border-radius: 12px; }
/* maze */
canvas.g-maze { border-radius: 16px; border: 6px solid var(--ink); box-sizing: content-box; }
.g-token { width: 88px; height: 88px; transform: translate(-50%, -50%); font-size: 72px; transition: left .09s linear, top .09s linear; pointer-events: none; z-index: 3; } .g-token.flip { transform: translate(-50%, -50%) scaleX(-1); }
.g-token.goal, .g-token.stop { z-index: 2; } .g-token.stop.got { opacity: .3; }
.g-token.start { pointer-events: auto; width: 110px; height: 110px; cursor: pointer; font-size: 90px; transition: left .11s linear, top .11s linear; }
.g-arrows { right: 34px; top: 390px; width: 312px; display: grid; grid-template-columns: repeat(3, 100px); grid-template-areas: ". u ." "l . r" ". d ."; gap: 6px; z-index: 5; }
.g-arrows button { width: 100px; height: 100px; font-size: 44px; border: 6px solid var(--ink); border-radius: 22px; background: #fff; cursor: pointer; color: var(--ink); }
.g-arrows [data-d=u] { grid-area: u; } .g-arrows [data-d=d] { grid-area: d; } .g-arrows [data-d=l] { grid-area: l; } .g-arrows [data-d=r] { grid-area: r; }
/* dots */
canvas.g-lines { left: 0; top: 0; width: 1600px; height: 900px; pointer-events: none; }
.play-game .game-dim:has(+ .play-area .g-dot) { background: rgba(20, 24, 60, .72); }
.g-dot { width: 96px; height: 96px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 5px solid var(--ink); display: grid; place-items: center; font-size: 42px; cursor: pointer; z-index: 3; }
.g-dot > .ic, .g-dot > .ic-emoji { position: absolute; inset: 0; opacity: .5; } .g-dot.on { background: #ffe08a; } .g-dot.start { width: 48px; height: 48px; background: #ff7fa8; pointer-events: none; }
/* pipes */
.g-pipe { width: 126px; height: 126px; background: #fff; border: 4px solid #c7b6d6; border-radius: 14px; cursor: pointer; transition: transform .14s; }
.g-pipe i { position: absolute; background: #b9b2c2; }
.g-pipe.i i:first-child { left: 45px; width: 36px; top: 0; bottom: 0; } .g-pipe.i i:last-child { display: none; }
.g-pipe.l i:first-child { left: 45px; width: 36px; top: 0; height: 81px; } .g-pipe.l i:last-child { left: 45px; right: 0; top: 45px; height: 36px; }
.g-pipe.wet i { background: var(--flow); }
.g-end { width: 110px; height: 110px; transform: translate(-50%, -50%); font-size: 90px; }
/* program */
.g-tile { width: 112px; height: 112px; transform: translate(-50%, -50%); background: #fff; border: 4px solid #c7b6d6; border-radius: 16px; font-size: 76px; padding: 8px; box-sizing: border-box; } .g-tile.wall { background: #d8cfe2; }
.g-token.bot { transition: left .3s, top .3s; z-index: 4; }
.g-queue { left: 200px; right: 400px; bottom: 26px; min-height: 80px; display: flex; gap: 6px; background: #fff; border: 5px solid var(--ink); border-radius: 20px; padding: 6px 10px; }
.g-queue span { width: 62px; height: 62px; display: grid; place-items: center; background: #ffe08a; border-radius: 12px; font-size: 34px; } .g-queue span.on { background: #7be08d; }
.g-arrows.prog { top: 280px; }
.g-run { right: 40px; bottom: 26px; font-size: 40px; z-index: 5; } .g-undo { right: 40px; bottom: 120px; font-size: 34px; z-index: 5; }
/* balance */
.g-scale { width: 900px; height: 400px; transform: translate(-50%, -50%); }
.g-scale .post { position: absolute; left: 430px; top: 100px; width: 40px; height: 300px; background: #8a6a58; border-radius: 16px; }
.g-scale .beam { position: absolute; left: 0; right: 0; top: 90px; height: 24px; background: var(--ink); border-radius: 12px; transition: transform .25s; }
.g-scale .pan { position: absolute; top: 24px; width: 280px; min-height: 130px; background: #ffe9b8; border: 6px solid var(--ink); border-radius: 0 0 90px 90px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 60px; padding: 8px; box-sizing: border-box; } .g-scale .l { left: 0; } .g-scale .r { right: 0; }
.g-scale .pan i { font-style: normal; width: 66px; height: 66px; border-radius: 50%; background: #7a6a80; color: #fff; display: grid; place-items: center; font-size: 36px; } .g-scale .pan em { font-style: normal; font-size: 46px; } .g-scale .pan span { width: 80px; height: 80px; }
.g-weights { left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 16px; z-index: 5; }
.g-weights button { min-width: 110px; height: 100px; border: 6px solid var(--ink); border-radius: 50px; background: #fff; font: inherit; font-size: 44px; color: var(--ink); cursor: pointer; } .g-weights .undo { font-size: 34px; padding: 0 16px; }
/* count & choices */
.g-nums { left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 20px; z-index: 5; } .g-num { min-width: 150px; font-size: 56px; }
.g-num.yes { background: #c9f4d3; } .g-num.no { opacity: .4; }
.g-choices { left: 120px; right: 120px; bottom: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.g-choice { font-size: 38px; min-height: 100px; } .g-choice.yes { background: #c9f4d3; } .g-choice.no { opacity: .4; }
.g-question { width: 1200px; transform: translate(-50%, -50%); background: #fffbe6; border: 6px solid var(--ink); border-radius: 34px; padding: 22px 34px; text-align: center; font-size: 46px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.g-question p { margin: 0; } .g-question .why { font-size: 38px; color: #2f7d58; } .g-question .ic, .g-question .ic-emoji { width: 150px; height: 150px; font-size: 120px; } .g-question.high { width: 520px; } .g-question.high .ic, .g-question.high .ic-emoji { width: 320px; height: 320px; font-size: 260px; }
.g-question u { text-decoration: underline; text-underline-offset: 8px; }
/* sequence */
.g-story { width: 320px; height: 400px; transform: translate(-50%, -50%); background: #fff; border: 6px solid var(--ink); border-radius: 26px; padding: 14px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; font-size: 34px; }
.g-story span { width: 180px; height: 180px; font-size: 150px; } .g-story p { margin: 10px 0 0; line-height: 1.25; } .g-story b { position: absolute; right: 10px; top: 6px; width: 62px; height: 62px; display: grid; place-items: center; font-size: 38px; border-radius: 50%; } .g-story.on { background: #e5f9ea; } .g-story.on b { background: #7be08d; } .g-story.no { animation: wiggle .3s; }
/* trace */
canvas.g-trace { width: 1000px; height: 620px; background: #fff; border: 6px solid var(--ink); border-radius: 26px; box-sizing: border-box; touch-action: none; }
/* pixel */
.g-pixel { transform: translate(-50%, -50%); display: grid; background: #e9e3ee; gap: 3px; padding: 3px; border: 5px solid var(--ink); border-radius: 12px; touch-action: none; }
.g-pixel i { display: block; background: #fff; }
/* mix */
.g-swatch-big { width: 330px; height: 330px; transform: translate(-50%, -50%); border-radius: 50%; border: 8px solid var(--ink); background: #fff; display: grid; place-items: end center; font-size: 36px; padding-bottom: 20px; box-sizing: border-box; text-shadow: 0 0 6px #fff, 0 0 6px #fff; }
.g-tube { min-width: 130px; height: 100px; border: 6px solid var(--ink); border-radius: 26px; font: inherit; font-size: 34px; cursor: pointer; color: var(--ink); background: #fff; } .g-tube.ok { background: #ffd36b; }
.g-colors.tubes { bottom: 26px; }
/* cash */
.g-money { left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 14px; z-index: 5; }
.g-cash { width: 190px; height: 110px; border: 6px solid var(--ink); border-radius: 18px; font: inherit; font-size: 38px; color: var(--ink); cursor: pointer; background: #fff; }
.g-cash.n5000, .g-till i.n5000 { background: #ffd9a8; } .g-cash.n1000, .g-till i.n1000 { background: #c6e6ff; } .g-cash.c { width: 110px; border-radius: 50%; background: #e7e0c8; font-size: 34px; } .g-cash.undo { width: 110px; font-size: 34px; }
.g-receipt, .g-till { width: 560px; min-height: 340px; transform: translate(-50%, -50%); background: #fff; border: 6px solid var(--ink); border-radius: 26px; padding: 14px 26px; box-sizing: border-box; font-size: 38px; }
.g-receipt p, .g-till p { margin: 6px 0; display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; } .g-receipt .ic, .g-receipt .ic-emoji { width: 100px; height: 100px; font-size: 80px; display: inline-block; } .g-receipt .sum { font-size: 34px; }
.g-till div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .g-till i { font-style: normal; padding: 6px 12px; border: 4px solid var(--ink); border-radius: 12px; font-size: 34px; background: #e7e0c8; }
/* fit */
.g-row { left: 600px; right: 60px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; } .g-row.a { top: 340px; } .g-row.a .btn { font-size: 34px; } .g-row.c { top: 560px; }
/* arrange */
.g-board { width: 760px; height: 600px; transform: translate(-50%, -50%); border: 7px solid var(--ink); border-radius: 26px; font-size: 360px; overflow: hidden; touch-action: none; }
.g-board > .ic, .g-board > .ic-emoji { position: absolute; inset: 30px; width: auto; height: auto; pointer-events: none; }
.g-sticker { position: absolute; width: 130px; height: 130px; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); font-size: 110px; cursor: grab; touch-action: none; }
.g-sticker.held { cursor: grabbing; filter: drop-shadow(0 10px 8px rgba(0,0,0,.3)); }
.g-tray-side { left: 1030px; top: 250px; width: 530px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g-tray-side button { height: 120px; background: #fff; border: 5px solid var(--ink); border-radius: 20px; padding: 8px; font-size: 76px; cursor: pointer; }
.g-run.hidden { display: none; }
@keyframes wiggle { 25% { translate: -8px 0; } 75% { translate: 8px 0; } }

/* 공부(결정 45): 그림을 보고 듣는 화면 */
.play-game.study-game .game-dim { background: none; }
.study-game .place-title { display: none; }
.st-host { left: 220px; top: 14px; width: 1090px; height: 160px; display: flex; align-items: center; gap: 14px; }
.st-host .face { flex: none; width: 150px; height: 150px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 5px var(--ink); background: #ffe1ec; overflow: hidden; }
.st-host .face canvas { width: 100%; height: 100%; display: block; }
.st-host .bubble { flex: 1; margin: 0; background: #fff; border: 5px solid var(--ink); border-radius: 34px; padding: 12px 26px; font-size: 42px; line-height: 1.2; max-height: 140px; overflow: hidden; }
.st-again { flex: none; width: 104px; height: 104px; border-radius: 50%; border: 6px solid var(--ink); background: #ffe680; font-size: 50px; cursor: pointer; }
.st-stars { right: 16px; top: 180px; width: 74px; display: flex; flex-direction: column; gap: 4px; }
.st-stars i { font-style: normal; font-size: 62px; line-height: 1; color: rgba(255,255,255,.7); -webkit-text-stroke: 3px var(--ink); text-align: center; transition: transform .3s; } .st-stars i.on { color: #ffd23f; transform: scale(1.15); }
.st-round { position: absolute; inset: 180px 100px 0 40px; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 10px; }
.st-top { position: static !important; display: flex; align-items: center; justify-content: center; gap: 30px; max-height: 360px; }
.st-big { display: block; width: 300px; height: 300px; background: rgba(255,255,255,.88); border: 6px solid var(--ink); border-radius: 40px; padding: 12px; box-sizing: border-box; font-size: 220px; }
.st-big .st-flag { width: 100%; height: 100%; object-fit: contain; }
.st-word { font-size: 100px; color: #ff6f91; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; background: rgba(255,255,255,.88); border: 6px solid var(--ink); border-radius: 40px; padding: 6px 44px; }
.st-sum { display: flex; align-items: center; gap: 26px; background: rgba(255,255,255,.88); border: 6px solid var(--ink); border-radius: 40px; padding: 14px 26px; max-width: 1300px; }
.st-many { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 620px; }
.st-one { display: block; width: 92px; height: 92px; font-size: 76px; } .st-one.gone { opacity: .3; filter: grayscale(1); }
.st-plus { font-size: 90px; color: #ff6f91; }
.st-row { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.88); border: 6px solid var(--ink); border-radius: 40px; padding: 20px 30px; } .st-row .st-one { width: 130px; height: 130px; font-size: 110px; }
.st-q { width: 130px; height: 130px; display: grid; place-items: center; font-size: 100px; background: #ffe680; border-radius: 24px; }
.st-opts { position: static !important; display: flex; justify-content: center; gap: 22px; width: 100%; }
.st-opt { position: relative; width: 300px; height: 250px; background: #fff; border: 7px solid var(--ink); border-radius: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; cursor: pointer; font-size: 150px; box-shadow: 0 10px 0 rgba(0,0,0,.18); transition: transform .12s; }
.st-opts.roomy .st-opt { height: 400px; }
.st-opts.n2 .st-opt { width: 480px; height: 400px; }
.st-opt .pic { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.st-opt .pic .ic, .st-opt .pic .ic-emoji, .st-opt .st-flag { width: 100%; height: 100%; object-fit: contain; max-height: 100%; }
.st-opt .label { font-size: 42px; line-height: 1.1; } .st-opt .num { font-size: 120px; color: #5b8def; }
.st-opt.is-word .label { font-size: 66px; }
.st-opt.is-num { width: 240px; height: 200px; }
.st-opt.yes { background: #c9f4d3; transform: scale(1.08) rotate(-2deg); animation: wiggle .5s; } .st-opt.no { opacity: .35; animation: shake .35s; } .st-opt.fade, .st-dial.fade { opacity: .25; }
.st-opt .st-many { max-width: 100%; } .st-opt .st-one { width: 70px; height: 70px; font-size: 58px; }
.st-clock { width: 100%; height: 100%; }
.st-next { position: absolute !important; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 48px; min-width: 320px; min-height: 104px; z-index: 6; }
.st-confetti { width: 22px; height: 22px; border-radius: 6px; z-index: 9; pointer-events: none; animation: confetti .9s ease-out forwards; }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(420deg); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.st-match { position: relative !important; width: 1100px; height: 520px; } .st-match canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.st-card { position: absolute !important; width: 170px; height: 160px; background: #fff; border: 7px solid var(--ink); border-radius: 30px; padding: 8px; box-sizing: border-box; font-size: 120px; cursor: pointer; } .st-card.l { left: 0; } .st-card.r { right: 0; }
.st-card.sel { background: #ffe680; transform: scale(1.06); } .st-card.got { background: #c9f4d3; } .st-card.shake { animation: shake .35s; }
.st-dial { position: static !important; display: flex; align-items: center; gap: 30px; }
.st-dial .screen { margin: 0; width: 260px; height: 120px; display: grid; place-items: center; background: #fff; border: 6px solid var(--ink); border-radius: 26px; font-size: 76px; letter-spacing: 8px; }
.st-dial .keys { display: grid; grid-template-columns: repeat(3, 110px); gap: 8px; } .st-dial .keys i { display: block; }
.st-key { height: 100px; border: 6px solid var(--ink); border-radius: 26px; background: #d9f0ff; font: inherit; font-size: 56px; color: var(--ink); cursor: pointer; } .st-key.shake { animation: shake .35s; }
.st-round:has(.st-dial) { flex-direction: row; justify-content: center; gap: 60px; }

/* ── 이벤트(결정 49) ── */
.event-scene { position: absolute; inset: 0; overflow: hidden; background: #ffe9c9; }
.event-scene .room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-title { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); white-space: nowrap; font-size: 46px; font-weight: 800; background: #fff8e8; border: 5px solid var(--ink); border-radius: 40px; padding: 8px 44px; box-shadow: 0 6px 0 rgba(0,0,0,.18); z-index: 3; animation: ev-drop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes ev-drop { from { transform: translate(-50%, -160px); } }
.ev-cast { position: absolute; inset: 0; }
.ev-who { position: absolute; bottom: 280px; display: flex; align-items: flex-end; justify-content: center; animation: ev-in .5s ease-out backwards; }
.ev-who canvas, .ev-who img { height: 100%; width: auto; max-width: none; }
@keyframes ev-in { from { opacity: 0; transform: translateY(40px); } }
.ev-pet { position: absolute !important; left: 90px; bottom: 280px; width: 190px; height: 190px; }
.ev-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ev-layer.on { pointer-events: auto; }
.ev-hint { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 5; white-space: nowrap; font-size: 38px; font-weight: 800; background: #fff; border: 4px solid var(--ink); border-radius: 30px; padding: 8px 36px; pointer-events: none; }
.ev-bit { position: absolute; font-size: 54px; pointer-events: none; animation: ev-bit 1.05s ease-out forwards; }
@keyframes ev-bit { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
.ev-spark { position: absolute; width: 14px; height: 14px; border-radius: 50%; pointer-events: none; animation: ev-bit 1.05s ease-out forwards; box-shadow: 0 0 12px currentColor; }
.ev-clap { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); font-size: 52px; padding: 18px 64px; }
.ev-meter { position: absolute; left: 50%; bottom: 240px; transform: translateX(-50%); width: 620px; height: 36px; background: #fff; border: 4px solid var(--ink); border-radius: 20px; overflow: hidden; }
.ev-meter i { display: block; height: 100%; width: 0; background: #ff8fa3; transition: width .15s; }
.ev-balloon { position: absolute; bottom: -220px; width: 130px; height: 164px; border: 4px solid var(--ink); border-radius: 50% 50% 48% 48%; cursor: pointer; animation: ev-rise linear forwards; }
.ev-balloon::after { content: ""; position: absolute; left: 50%; bottom: -46px; width: 3px; height: 44px; background: var(--ink); }
@keyframes ev-rise { to { transform: translateY(-1200px); } }
.ev-cake { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); width: 560px; }
.ev-cake .candles { display: flex; justify-content: center; gap: 26px; }
.ev-cake .c { position: relative; width: 74px; height: 140px; background: none; border: 0; cursor: pointer; padding: 0; }
.ev-cake .c::after { content: ""; position: absolute; left: 26px; bottom: 0; width: 22px; height: 80px; border: 3px solid var(--ink); border-radius: 6px; background: repeating-linear-gradient(45deg, #ff8fa3 0 10px, #fff 10px 20px); }
.ev-cake .c b { position: absolute; left: 20px; top: 0; width: 34px; height: 52px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #fff3a0, #ff9d3c); animation: ev-flame .4s ease-in-out infinite alternate; }
.ev-cake .c.off b { display: none; }
@keyframes ev-flame { to { transform: scale(.88, 1.08); } }
.ev-cake .tier { border: 4px solid var(--ink); border-radius: 22px; }
.ev-cake .tier.a { width: 440px; height: 90px; margin: 0 auto; background: #ffd9e4; }
.ev-cake .tier.b { width: 560px; height: 110px; margin-top: -4px; background: #fff3d6; }
.ev-frame { position: absolute; inset: 110px 150px 110px; border: 10px dashed rgba(255,255,255,.95); border-radius: 30px; pointer-events: none; }
.ev-flash { position: absolute; inset: 0; background: #fff; animation: ev-flash .7s ease-out forwards; }
@keyframes ev-flash { to { opacity: 0; } }
.sheet.event-card { text-align: center; width: 720px; }
.event-card .env { font-size: 120px; line-height: 1.1; animation: ev-drop2 .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes ev-drop2 { from { transform: scale(.3) rotate(-20deg); } }
.event-card .ev-name { font-size: 44px; font-weight: 800; margin: 12px 0 22px; }
.ev-photo { display: block; width: 520px; max-width: 100%; margin: 8px auto 14px; border: 10px solid #fff; border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,.25); transform: rotate(-2deg); }
.sheet.album-sheet { width: 1440px; max-width: none; padding: 24px 32px; }
.album-sheet h2 small { font-size: 34px; color: #a07850; }
.album-list { max-height: 600px; overflow-y: auto; }
.album-list h3 { font-size: 36px; margin: 14px 0 10px; }
.album-list section > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ev-card { font: inherit; color: var(--ink); background: #fffaf0; border: 4px solid var(--ink); border-radius: 20px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 196px; }
.ev-card .pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 104px; border-radius: 12px; background-size: cover; background-position: center; font-size: 50px; }
.ev-card .pic.lock { background: #eee2d4; }
.ev-card .pic i { font-style: normal; background: rgba(255,255,255,.85); border-radius: 50%; padding: 2px 10px; }
.ev-card b { font-size: 26px; line-height: 1.2; }
.ev-card small { font-size: 24px; color: #a07850; }
.ev-card .bar { display: block; width: 100%; height: 14px; margin-top: auto; background: #eee2d4; border-radius: 8px; overflow: hidden; }
.ev-card .bar i { display: block; height: 100%; background: #ffb84d; }
.ev-card.on { cursor: pointer; }

/* ── 끌어서 놓는 소품(결정 50) ── */
.free-item { position: absolute; width: 128px; height: 128px; margin: -128px 0 0 -64px; object-fit: contain; touch-action: none; cursor: grab; filter: drop-shadow(0 4px 3px rgba(0,0,0,.22)); }
.free-item.held { cursor: grabbing; transform: scale(1.14); filter: drop-shadow(0 10px 8px rgba(0,0,0,.3)); z-index: 300 !important; }
.sheet.shop .goods { max-height: 480px; overflow-y: auto; }
/* 공부 직접 그림(결정 51) */
.st-draw { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; max-width: 1340px; max-height: 350px; background: rgba(255,255,255,.92); border: 6px solid var(--ink); border-radius: 40px; padding: 14px 26px; box-sizing: border-box; }
.st-draw svg { display: block; flex: none; }
.st-clock-box { display: block; width: 310px; height: 310px; }
.st-bags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1200px; }
.st-bag { display: grid; grid-template-columns: repeat(var(--n), 62px); gap: 2px; padding: 8px; background: #fff3c4; border: 4px dashed var(--ink); border-radius: 22px; }
.st-bag .ic, .st-bag .ic-emoji { width: 62px; height: 62px; font-size: 50px; line-height: 62px; object-fit: contain; }
.st-one.mini { width: 62px; height: 62px; font-size: 50px; }
.st-many:has(.mini) { max-width: 720px; }
.st-opt.is-word .label { padding: 0 10px; text-align: center; word-break: keep-all; }
.st-opts:has(.is-word) .st-opt.is-word .label { font-size: 50px; }
.st-order { position: absolute !important; left: 10px; top: 10px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #ff8fa3; border: 4px solid var(--ink); color: #fff; font-size: 38px; font-weight: 800; }
.st-opt.shake { animation: shake .35s; }

/* 무대 그림과 효과(결정 53) */
.play-game.stage-game .game-dim { background: none; }
.g-strip { left: 0; right: 0; background-repeat: repeat-x; pointer-events: none; }
.g-fx { transform: translate(-50%, -50%); pointer-events: none; z-index: 8; animation: g-fx .7s ease-out forwards; }
.g-fx img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes g-fx { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.45); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); } }
.play-area.g-shake { animation: g-shake .32s; }
@keyframes g-shake { 20% { transform: translateX(-14px); } 45% { transform: translateX(11px); } 70% { transform: translateX(-6px); } }
.g-shadow-spot { width: 210px; height: 34px; border-radius: 50%; background: rgba(40, 30, 50, .28); pointer-events: none; z-index: 2; }
.g-shadow-spot.wide { width: 300px; height: 42px; }
.g-runner.land { animation: g-land .22s ease-out; transform-origin: 50% 100%; }
@keyframes g-land { 40% { transform: translate(-50%, -100%) scale(1.14, .84); } }
.g-runner.in-air { transform: translate(-50%, -100%) rotate(-5deg); }
.g-runner.rope { width: 260px; height: 300px; }
.g-ob.fly { width: 130px; height: 130px; animation: g-flap .36s ease-in-out infinite alternate; }
@keyframes g-flap { to { margin-top: -26px; } }
.g-rope-cv { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; pointer-events: none; }
.g-handle { width: 90px; height: 90px; transform: translate(-50%, -50%); pointer-events: none; z-index: 6; }
.g-cheer { transform: translate(-50%, -100%); pointer-events: none; z-index: 2; }
.g-cheer canvas { display: block; }
.g-cheer.hop { animation: g-cheer .5s ease-out 2; }
@keyframes g-cheer { 50% { margin-top: -46px; } }
.g-combo { left: 800px; top: 270px; transform: translate(-50%, -50%); font-size: 64px; font-weight: 800; color: #ff5f8f; -webkit-text-stroke: 2px #fff; pointer-events: none; z-index: 9; white-space: nowrap; }
.g-combo.bump { animation: g-bump .25s ease-out; }
@keyframes g-bump { 0% { transform: translate(-50%, -50%) scale(1.35); } }
.g-air { left: 500px; top: 214px; width: 600px; height: 44px; background: #fff; border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; z-index: 6; pointer-events: none; }
.g-air i { position: absolute; left: 0; top: 0; bottom: 0; background: #6cc9ff; }
.g-air.low i { background: #ff7f8f; }
.g-brick.tough { filter: saturate(1.7) brightness(.8); border-width: 7px; }
.g-spin-ring { width: 680px; height: 680px; margin: -340px; border: 8px dashed rgba(255, 255, 255, .85); border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 200px rgba(255, 255, 255, .14); }
.g-recipe { left: 1260px; top: 300px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 34px; pointer-events: none; }
.g-recipe i { width: 84px; height: 84px; border-radius: 50%; border: 6px solid var(--ink); }
.g-recipe i.on { outline: 8px solid #ffd36b; }
.g-recipe b { transform: rotate(90deg); }
.g-plane::after { content: ""; position: absolute; right: 8px; top: 8px; width: 74px; height: 74px; border-radius: 50%; background: var(--tail); border: 6px solid var(--ink); }
.g-faces.six { left: 370px; right: 370px; top: 266px; flex-wrap: wrap; gap: 18px; }
.g-faces.six.keep { left: 480px; right: 20px; }
.g-faces.six .g-face { width: 250px; height: 270px; }
.g-faces.low .g-face { width: 170px; height: 170px; font-size: 130px; }
.g-list.sil span .ic, .g-list.sil span .ic-emoji { filter: brightness(0) opacity(.8); transition: filter .3s; }
.g-list.sil span.seen .ic, .g-list.sil span.seen .ic-emoji { filter: none; }
.g-thing.dense { width: 104px; height: 104px; font-size: 84px; }
.g-panel.fine { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 3px; }
.g-panel.fine .g-diffcell { padding: 5px; font-size: 80px; }
.g-sort-item { transition: top .3s; }
.g-bin { transition: left .45s ease-in-out; }
.g-story.wide { width: 470px; height: 260px; flex-direction: row; align-items: center; gap: 10px; text-align: left; }
.g-story.wide span { flex: none; width: 130px; height: 130px; font-size: 104px; }
.g-story.wide p { margin: 0; }
.g-money .g-cash { flex: none; } .g-money .g-cash.c { width: 104px; } .g-money { gap: 10px; }
.vet-spot.dim { opacity: .35; animation: none; }
.cook-time { position: absolute; left: 50%; top: -40px; width: 560px; height: 58px; transform: translateX(-50%); background: #fff; border: 6px solid var(--ink); border-radius: 30px; overflow: hidden; z-index: 6; }
.cook-time .zone { position: absolute; top: 0; bottom: 0; background: #7be08d; }
.cook-time .needle { position: absolute; top: 0; bottom: 0; width: 10px; margin-left: -5px; background: #d2526a; }
.beach-game.g-shake { animation: g-shake .32s; }
.vet-tool.nope { opacity: .4; animation: none; }
#boot { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vmin; background: #8fc8ef; color: #3a2e3f; font-size: 4vmin; }
#boot img { width: min(56vw, 70vmin); height: auto; }
#boot .bar { width: min(50vw, 60vmin); height: 3.4vmin; background: #fff; border: .6vmin solid #3a2e3f; border-radius: 3vmin; overflow: hidden; }
#boot .bar i { display: block; width: 4%; height: 100%; background: #ff8fb1; transition: width .2s; }
#boot p { margin: 0; }
#boot small { max-width: 90vw; font-size: 2vmin; line-height: 1.4; text-align: center; word-break: break-all; opacity: .75; }
#boot button { padding: 1.5vmin 4vmin; font: inherit; color: inherit; background: #fff; border: .6vmin solid #3a2e3f; border-radius: 3vmin; }
