/* 뽀드득: 화면은 눈밭이 전부이고, 글과 버튼은 가장자리에 작게 얹는다.
   생김새: 납작한 종이. 크림색 쪽지에 진한 갈색 글씨, 색종이를 동그랗게 오린 단추에 갈색 그림.
   - 어느 단추도 혼자 튀지 않는다: 단추의 색종이는 밝기와 진하기가 모두 같고 색의 종류만 다르다. 무엇인지는 색이 아니라 그림으로 안다
   - 꾸밈은 한 겹만: 쪽지에는 옅은 그늘 하나뿐, 테두리나 무늬는 두지 않는다
   - 걷는 동안에는 위쪽 글이 물러나고, 멈춰 서면 다시 나온다
   - 누르면 작게 움츠렸다가 통 하고 돌아온다 */
:root {
  --cream: #fffaf0;                                /* 쪽지 바탕 (해 질 녘과 밤에는 아래에서 살짝 옮긴다) */
  --cream-line: #e6dac3;                           /* 쪽지 위의 점선 */
  --brown: #5b4737; --brown-soft: #766250;         /* 글자와 그림. 작은 글자도 또렷하게 읽히는 진하기 (크림색 위에서 8.4:1, 5.6:1) */
  /* 단추의 색종이: 모두 같은 밝기와 진하기 (OKLCH L 0.80, C 0.085 안팎) */
  --mint: #7dd0c0; --coral: #f5a797; --sky: #92c3f2; --aqua: #78cddc; --sun: #deb866; --gray: #c7bcaf;
  --dusk: #efae7c; --night: #b2b8f4; --plum: #cfafe7; --slate: #b0bedc;
  --glyph: var(--brown);                           /* 단추 위의 그림 */
  --float: 0 3px 10px rgba(80, 58, 36, 0.13);      /* 눈밭 위에 살짝 떠 보일 만큼만 */
  --squish: cubic-bezier(.34, 1.56, .64, 1);       /* 눌렀다 떼면 통 하고 돌아온다 */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --btn: 54px; --gap: 13px; --col-r: calc(19px + var(--safe-r)); --col-b: calc(26px + var(--safe-b)); --zoom-h: 0px;
}
/* 하늘에 따라 쪽지의 색조만 살짝 옮긴다 (모양은 그대로): 해 질 녘에는 조금 따뜻하게, 밤에는 눈부시지 않게 조금 가라앉힌다 */
body[data-sky="dusk"] { --cream: #fff4e6; }
body[data-sky="night"] { --cream: #f3eee6; --cream-line: #ddd2bf; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #dfe6f5; color: var(--brown); overscroll-behavior: none; }
/* 글꼴은 나눔스퀘어라운드 (css/fonts.css). 아직 도착하지 않았으면 기기의 글꼴로 */
body { font-family: 'NanumSquareRound', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }

/* 그림: 채운 모양(.f)과 굵고 둥근 선(.s) */
.g { display: block; width: 24px; height: 24px; }
.g .f { fill: currentColor; }
.g .s { fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }

#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
/* 누르는 곳: 화면 전체. 끌어도 페이지가 움직이거나 확대되지 않게 한다 */
#touch { position: fixed; inset: 0; touch-action: none; }

/* 조이스틱: 누른 자리에 나타난다 */
#stick {
  position: fixed; left: 0; top: 0; width: 112px; height: 112px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: rgba(255, 250, 240, 0.34); border: 3px dotted rgba(255, 250, 240, 0.95);
}
#knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--cream); box-shadow: var(--float); }

/* 위쪽 왼쪽: 시각, 눈 소식, 들리는 캐롤 — 크림색 쪽지 한 장에, 줄마다 작은 색 동그라미 그림 */
#hud {
  position: fixed; left: calc(12px + var(--safe-l)); top: calc(10px + var(--safe-t)); padding: 9px 16px 9px 10px; border-radius: 22px; background: var(--cream);
  box-shadow: var(--float); pointer-events: none; opacity: 0; transition: opacity .7s, background-color 1.2s; display: flex; flex-direction: column; gap: 5px; max-width: calc(100vw - 86px - var(--safe-l) - var(--safe-r));
}
#hud .row { display: flex; align-items: center; gap: 7px; min-height: 22px; }
#hud .row[hidden] { display: none; }
.badge { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--glyph); background: var(--sun); }
.badge .g { width: 15px; height: 15px; grid-area: 1 / 1; }
.badge .g .s { stroke-width: 3; }
/* 시각의 그림: 낮에는 해, 해 뜰 녘·해 질 녘에는 지평선의 해, 밤에는 달 */
.badge.time .dusk, .badge.time .night { display: none; }
body[data-sky="dusk"] .badge.time { background: var(--dusk); }
body[data-sky="dusk"] .badge.time .day, body[data-sky="night"] .badge.time .day { display: none; }
body[data-sky="dusk"] .badge.time .dusk { display: block; }
body[data-sky="night"] .badge.time { background: var(--night); }
body[data-sky="night"] .badge.time .night { display: block; }
/* 눈 소식의 그림: 평소에는 눈송이, 큰 눈이 오는 동안에는 눈구름 */
.badge.snow { background: var(--sky); }
.badge.snow .wild { display: none; }
body:not([data-storm="calm"])[data-storm] .badge.snow { background: var(--slate); }
body:not([data-storm="calm"])[data-storm] .badge.snow .calm { display: none; }
body:not([data-storm="calm"])[data-storm] .badge.snow .wild { display: block; }
.badge.music { background: var(--plum); }
#clock { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
#storm { font-size: 12.5px; font-weight: 700; color: var(--brown-soft); word-break: keep-all; }
#carol { font-size: 12.5px; font-weight: 700; color: #7d55a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }       /* 트리 가까이에서 들리는 캐롤의 제목 */

/* 버튼: 글자 없이 그림만. 오른쪽 위에 소리, 오른쪽 아래에 한 줄로 위에서부터 캡쳐 → 눈 천사 → 확대·축소 (모두 같은 너비).
   가장 자주 쓰는 확대·축소가 엄지에 가장 가까운 맨 아래에 온다 */
.ui { position: fixed; opacity: 0; transition: opacity .6s, transform .28s var(--squish), background-color .2s; touch-action: manipulation; }
.ui, .ui button { -webkit-touch-callout: none; }
/* 동그란 색종이 단추: 납작한 한 가지 색에 갈색 그림, 크림색 테두리 한 줄 */
.round {
  --c: var(--sky);
  display: flex; align-items: center; justify-content: center; padding: 0; color: var(--glyph); background: var(--c);
  border-radius: 50%; box-shadow: 0 0 0 3px var(--cream), 0 5px 12px rgba(80, 58, 36, 0.16);
}
.round:active { transform: scale(0.92); transition-duration: .6s, .08s, .2s; }
#shot, #slide, #angel, #flap { right: var(--col-r); width: var(--btn); }

#mute { --c: var(--mint); right: calc(14px + var(--safe-r)); top: calc(12px + var(--safe-t)); width: 40px; height: 40px; }
#mute .g { width: 22px; height: 22px; }
#mute .off, #mute[aria-pressed="true"] .on { display: none; }
#mute[aria-pressed="true"] .off { display: block; }
#mute[aria-pressed="true"] { --c: var(--gray); }

#shot { --c: var(--coral); bottom: calc(var(--col-b) + 3 * var(--btn) + 3 * var(--gap)); height: var(--btn); }
/* 배 썰매: 사진과 눈 천사 사이 */
#slide { --c: var(--sky); bottom: calc(var(--col-b) + 2 * var(--btn) + 2 * var(--gap)); height: var(--btn); }
#slide .slide-icon { width: 34px; height: 26px; }
#slide .slide-icon .s { stroke-width: 2.4; }
#slide.busy, #slide.off { opacity: 0.5 !important; pointer-events: none; }
#shot .g { width: 28px; height: 28px; }
#shot.busy { pointer-events: none; }

#angel { bottom: calc(var(--col-b) + var(--btn) + var(--gap)); height: var(--btn); }
/* 파닥파닥: 맨 아래, 엄지에 가장 가까이 */
#flap { --c: var(--mint); bottom: var(--col-b); height: var(--btn); }
#flap .flap-icon { width: 34px; height: 30px; }
#flap .flap-icon .s { stroke-width: 2.2; }
#flap.busy, #flap.off { opacity: 0.5 !important; pointer-events: none; }
#angel .angel-icon { width: 33px; height: 29px; fill: #fff; }      /* 눈 위에 남는 자국과 같은 모양. 눈 자국이므로 이 그림만 흰색이다 */
#angel.busy { opacity: 0.5 !important; pointer-events: none; }
/* 낚시 구멍 곁에서는 물고기 그림(낚시하기), 낚시하는 동안에는 ✕(그만두기). 입질이 오면 다시 물고기 그림이 되어 노랗게 통통 뛴다 */
#angel .fish-icon, #angel .quit-icon { display: none; width: 30px; height: 30px; }
#angel .quit-icon { width: 26px; height: 26px; }
#angel .quit-icon .s { stroke-width: 3.2; }
#angel.fish .angel-icon, #angel.quit .angel-icon { display: none; }
#angel.fish { --c: var(--aqua); }
#angel.fish .fish-icon { display: block; }
#angel.quit { --c: var(--gray); }
#angel.quit .quit-icon { display: block; }
#angel.hold { opacity: 0.5 !important; pointer-events: none; }
#angel.rest { opacity: 0.5 !important; }       /* 가짜 입질이 지나가는 잠깐: 흐려져 쉰다. 눌리기는 하지만 그만두지는 않는다 */
#angel.fish, #angel.quit { transition-duration: .16s, .28s, .2s; }      /* 낚시하는 동안의 단추는 모습이 바로바로 바뀐다 (찌의 움직임과 어긋나지 않게) */
#angel.bite { --c: var(--sun); animation: bite .46s ease-in-out infinite; }
@keyframes bite { 0%, 100% { transform: scale(1) rotate(-5deg); } 50% { transform: scale(1.16) rotate(5deg); } }

/* 확대·축소: 크림색 알약 쪽지 하나에 더하기와 빼기, 사이에 점선 */
#zoom { bottom: var(--col-b); height: var(--zoom-h); border-radius: calc(var(--btn) / 2); display: flex; flex-direction: column; overflow: hidden; background: var(--cream); box-shadow: var(--float); color: var(--brown); }
#zoom button { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0; background: none; transition: transform .25s var(--squish); }
#zoom button + button { border-top: 2.5px dotted var(--cream-line); }
#zoom .g .s { stroke-width: 3.2; }
#zoom button:disabled { color: #cfc1a8; }
#zoom button:active:not(:disabled) { transform: scale(0.86); }

/* 누른 단추: 0.2초쯤, 살짝 커졌다가 제자리로 (js 가 누를 때마다 .pop 을 붙였다 뗀다) */
.pop, #zoom button.pop { animation: pop .22s ease-out; }
@keyframes pop { 0% { transform: scale(0.92); } 45% { transform: scale(1.13); } 100% { transform: scale(1); } }

body.in #hud, body.in .ui { opacity: 1; }
body:not(.in) .ui { pointer-events: none; }
/* 걷는 동안에는 위쪽 글이 물러나 눈밭만 남는다. 멈춰 서서 한숨 돌리면 다시 나온다 */

/* 사진을 찍는 순간: 화면이 아주 살짝 밝아졌다 돌아온다 */
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#flash.go { animation: flash .32s ease-out; }
@keyframes flash { 0% { opacity: 0; } 18% { opacity: 0.3; } 100% { opacity: 0; } }

/* 안내 글: 위쪽 가운데의 크림색 쪽지 (아래쪽은 버튼과 조이스틱의 자리). 통 하고 나타난다 */
#toast {
  position: fixed; left: 50%; top: calc(106px + var(--safe-t)); transform: translate(-50%, -6px) scale(0.9); max-width: min(86vw, 420px); padding: 10px 18px; border-radius: 20px;
  background: var(--cream); color: var(--brown); box-shadow: var(--float); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; word-break: keep-all; opacity: 0; transition: opacity .25s, transform .35s var(--squish); pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 처음 왔을 때의 길잡이: 왼쪽 아래에 "밀어서 걷기", 오른쪽에 "끌어서 둘러보기". 해 보면 사라지고, 한 번 해 본 기기에서는 다시 나오지 않는다 */
#coach { position: fixed; inset: 0; pointer-events: none; }
#coach .tip { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; color: var(--brown-soft); }
#coach .tip b { font-size: 13.5px; font-weight: 800; color: var(--brown); background: var(--cream); padding: 6px 13px; border-radius: 15px; box-shadow: var(--float); white-space: nowrap; }
#coach .walk { left: calc(12% + var(--safe-l)); bottom: calc(15% + var(--safe-b)); }
#coach .look { right: var(--col-r); bottom: calc(56% + var(--safe-b)); }
#coach .pad { width: 84px; height: 84px; border-radius: 50%; border: 3px dotted rgba(91, 71, 55, 0.6); background: rgba(255, 250, 240, 0.5); display: grid; place-items: center; }
#coach .pad i { width: 32px; height: 32px; border-radius: 50%; background: var(--cream); box-shadow: var(--float); animation: nudge 1.5s ease-in-out infinite; }
#coach .look .g { width: 76px; height: 38px; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff); animation: sway 1.7s ease-in-out infinite; }
#coach .look .g .s { stroke-width: 3.4; }
@keyframes nudge { 0%, 100% { transform: translateY(8px); } 50% { transform: translateY(-14px); } }
@keyframes sway { 0%, 100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
body.coach-walk #coach .walk, body.coach-look #coach .look { opacity: 1; transform: none; }

/* 처음 화면: 눈밭 위에 얹힌 크림색 쪽지 한 장. 맨 위에 손으로 그린 제목 */
#start { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(255, 250, 240, 0.18); transition: opacity .7s; }
body.in #start { opacity: 0; pointer-events: none; }
.start-card { position: relative; width: min(100%, 328px); padding: 22px 26px 22px; border-radius: 34px; background: var(--cream); text-align: center; box-shadow: 0 8px 26px rgba(80, 58, 36, 0.16); }
.start-card h1 { margin: 0 0 12px; font-size: 38px; font-weight: 900; letter-spacing: 0.06em; }
/* 제목은 손으로 그린 그림(svg)이다 */
.start-card h1.logo svg { display: block; width: 244px; max-width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.start-card .say { margin: 0 0 18px; min-height: 3.3em; font-size: 15.5px; font-weight: 700; line-height: 1.65; word-break: keep-all; }      /* 제목 아래의 한마디: 올 때마다 넷 가운데 하나 (index.html) */
/* 들어가기 단추: 납작한 민트색 알약에 갈색 글씨 */
#enter { position: relative; width: 100%; height: 56px; border-radius: 28px; background: var(--mint); color: var(--brown); font-size: 18px; font-weight: 800; letter-spacing: 0.03em; transition: transform .28s var(--squish); }
#enter:active { transform: scale(0.95); transition-duration: .08s; }
.start-card .hint { margin: 14px 0 0; font-size: 12.5px; font-weight: 700; color: var(--brown-soft); display: flex; align-items: center; justify-content: center; gap: 5px; }
.start-card .hint .g { width: 17px; height: 17px; color: var(--brown-soft); }

/* 찍은 사진을 보여 주는 자리: 어둑한 바탕 위에 사진 한 장과 안내 한 줄, 닫기 */
#photo { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: rgba(28, 34, 66, 0.72); }
#photo[hidden] { display: none; }
#photo figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; }
#photo img { display: block; max-width: 100%; max-height: 68vh; border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
#photo figcaption { color: #fffaf0; font-size: 14px; font-weight: 700; }
#photo button { height: 44px; padding: 0 26px; border-radius: 22px; background: var(--cream); color: var(--brown); font-size: 15px; font-weight: 800; }

/* 낮은 화면(휴대폰 가로): 버튼을 조금 작게 */
@media (max-height: 430px) {
  :root { --btn: 46px; --gap: 9px; --col-b: calc(12px + var(--safe-b)); }
  #angel .angel-icon { width: 28px; height: 25px; }
  #shot .g { width: 24px; height: 24px; }
  #slide .slide-icon { width: 30px; height: 23px; }
  #flap .flap-icon { width: 30px; height: 26px; }
  #angel .fish-icon { width: 26px; height: 26px; }
  #toast { top: calc(12px + var(--safe-t)); left: calc(50% + 80px); max-width: min(46vw, 400px); }      /* 왼쪽 위의 시각 표시와 오른쪽 위의 소리 버튼 사이에 */
  #coach .walk { bottom: calc(10% + var(--safe-b)); }
  #coach .pad { width: 70px; height: 70px; }
  .start-card { padding: 16px 24px 14px; width: min(100%, 360px); }
  .start-card h1 { font-size: 28px; margin-bottom: 6px; }
  .start-card h1.logo svg { width: 170px; }
  .start-card .say { margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
  #enter { height: 44px; font-size: 16px; }
  .start-card .hint { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------- 얼음 유리(리퀴드) 모습: 위의 색종이 모양 위에 덧씌운다 ---------- */
:root { --brown: #27405f; --brown-soft: #4a6382; }
/* 시안: 얼음 같은 리퀴드 글래스. 뒤가 비쳐 보이는 유리, 위쪽에 맺힌 빛, 아래쪽의 푸른 굴절 */
:root { --ink: #27405f; --ink-soft: #4a6382; --glass-edge: rgba(255, 255, 255, 0.9); }
html, body { color: var(--ink); }
#hud, #toast, .start-card, #zoom, #coach .tip b {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.74), rgba(228, 241, 255, 0.5) 52%, rgba(204, 228, 250, 0.6));
  -webkit-backdrop-filter: blur(14px) saturate(1.7); backdrop-filter: blur(14px) saturate(1.7);
  border: 1.5px solid var(--glass-edge);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.98), inset 0 -9px 14px rgba(150, 196, 240, 0.24), 0 8px 22px rgba(36, 64, 110, 0.16);
  color: var(--ink);
}
#hud { border-radius: 22px; padding: 8px 15px 8px 9px; }
#toast { border-radius: 20px; }
#storm { color: var(--ink-soft); }
#carol { color: #6a61b8; }
#coach .tip { color: var(--ink-soft); }
#coach .pad { border-color: rgba(39, 64, 95, 0.4); background: rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#coach .pad i, #knob { background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(210, 232, 252, 0.8)); box-shadow: inset 0 1.5px 0 #fff, 0 4px 10px rgba(36, 64, 110, 0.2); border: 1.5px solid var(--glass-edge); }
#stick { background: rgba(255, 255, 255, 0.24); border: 2px solid rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.8), 0 6px 16px rgba(36, 64, 110, 0.14); }
.start-card { border-radius: 34px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.98), inset 0 -14px 24px rgba(150, 196, 240, 0.22), 0 18px 44px rgba(36, 64, 110, 0.2); }
.start-card .sub, .start-card .hint { color: var(--ink-soft); }
.start-card .hint .g { color: #4f86c4; }
#start { background: rgba(232, 242, 255, 0.16); }
/* 동그란 유리 단추 */
.round {
  position: fixed; overflow: hidden; border: 1.5px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(11px) saturate(1.7); backdrop-filter: blur(11px) saturate(1.7);
}
.round::before { content: ''; position: absolute; left: 14%; right: 14%; top: 5%; height: 42%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); pointer-events: none; }
.round:active { transform: scale(0.93); }
.round > * { position: relative; }
#zoom { background: linear-gradient(150deg, rgba(255, 255, 255, 0.6), rgba(228, 241, 255, 0.32) 52%, rgba(204, 228, 250, 0.42)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.98), inset 0 -9px 14px rgba(150, 196, 240, 0.24), 0 8px 20px rgba(36, 64, 110, 0.18); color: var(--ink); }
#zoom button + button { border-top: 1.5px solid rgba(255, 255, 255, 0.8); box-shadow: 0 -1px 0 rgba(120, 165, 210, 0.25); }
#zoom button:disabled { color: rgba(39, 64, 95, 0.3); }
#zoom button:active:not(:disabled) { background: rgba(255, 255, 255, 0.4); }
#enter { border: 1.5px solid var(--glass-edge); text-shadow: 0 1px 2px rgba(30, 70, 120, 0.4); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(150, 205, 250, 0.95), rgba(88, 160, 232, 0.95));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -10px 16px rgba(40, 110, 200, 0.35), 0 10px 22px rgba(36, 84, 150, 0.28); }
#enter::before { content: ''; position: absolute; left: 6%; right: 6%; top: 6%; height: 44%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); }
#enter:active { transform: scale(0.97); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -10px 16px rgba(40, 110, 200, 0.35), 0 4px 10px rgba(36, 84, 150, 0.25); }
.badge { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(36, 64, 110, 0.2); }

/* B안 "서리 낀 얼음": 모든 단추가 같은 얼음 유리, 그림은 짙은 얼음빛 */
.round {
  color: #2f5f96;
  background: radial-gradient(130% 130% at 28% 16%, rgba(255, 255, 255, 0.72), rgba(226, 241, 255, 0.38) 48%, rgba(190, 220, 248, 0.5));      /* 뒤의 눈밭이 더 비쳐 보이게 조금 더 투명하게 */
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.98), inset 0 -8px 12px rgba(140, 190, 238, 0.4), 0 7px 18px rgba(36, 64, 110, 0.2);
}
.round:active { box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.98), inset 0 -8px 12px rgba(140, 190, 238, 0.4), 0 3px 8px rgba(36, 64, 110, 0.18); }
.round .angel-icon { fill: #2f5f96 !important; }
#mute[aria-pressed="true"] { color: rgba(47, 95, 150, 0.45); }
#angel.quit { color: #5c7693; }
#angel.bite { color: #9a6400; animation: biteFrost .42s ease-in-out infinite; }
@keyframes biteFrost { 0%, 100% { transform: scale(1); box-shadow: inset 0 2px 1px rgba(255,255,255,.98), inset 0 -8px 12px rgba(247,201,92,.55), 0 7px 18px rgba(36,64,110,.2), 0 0 0 0 rgba(247,201,92,.6); } 50% { transform: scale(1.13); box-shadow: inset 0 2px 1px rgba(255,255,255,.98), inset 0 -8px 12px rgba(247,201,92,.55), 0 7px 18px rgba(36,64,110,.2), 0 0 0 11px rgba(247,201,92,0); } }
.badge { background: linear-gradient(150deg, #fff, #d9ebfb) !important; color: #2f5f96; }
body[data-sky="night"] .badge.time { color: #5a63c4; }
.badge.music { color: #7a5fc0; }
#enter { background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(206, 230, 252, 0.9)); color: #2f5f96; text-shadow: none; box-shadow: inset 0 2px 0 #fff, inset 0 -10px 16px rgba(140, 190, 238, 0.4), 0 10px 22px rgba(36, 84, 150, 0.2); }

.start-card h1 { color: #27405f; }
#photo button { background: rgba(255, 255, 255, 0.92); color: #27405f; }
/* 단추의 테두리: 얇고 옅게 (유리의 가장자리만 살짝 보이게) */
.round, #zoom { border: 0; }
.round { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 12px rgba(140, 190, 238, 0.3), 0 6px 16px rgba(36, 64, 110, 0.16); }
.round:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 12px rgba(140, 190, 238, 0.3), 0 3px 8px rgba(36, 64, 110, 0.14); }
#zoom { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 12px rgba(150, 196, 240, 0.22), 0 6px 16px rgba(36, 64, 110, 0.16); }
/* 왼쪽 위 정보 상자도 흰 테두리 없이 */
#hud { border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 12px rgba(150, 196, 240, 0.2), 0 6px 18px rgba(36, 64, 110, 0.14); }
#coach .tip b { text-align: center; line-height: 1.35; }
#coach .tip b small { font-size: 11.5px; font-weight: 700; opacity: 0.85; }

/* ---------- 크리스마스 선물 ---------- */
#gift { position: fixed; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(36, 52, 92, 0.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#gift[hidden] { display: none; }
.gift-card { position: relative; width: min(100%, 320px); padding: 22px 22px 18px; border-radius: 30px; text-align: center; color: #27405f;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(228, 241, 255, 0.7) 52%, rgba(204, 228, 250, 0.78));
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 44px rgba(36, 64, 110, 0.25); }
.gift-say { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.gift-box { --paper: #e8503f; --ribbon: #fff3c4; display: block; width: 168px; height: 168px; margin: 0 auto; padding: 0; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.gift-box svg { width: 100%; height: 100%; overflow: visible; }
.gift-box .paper { fill: var(--paper); } .gift-box .ribbon { fill: var(--ribbon); } .gift-box .knot { fill: var(--ribbon); stroke: rgba(0,0,0,.08); }
.gift-box .half, .gift-box .lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3, 1.6, .6, 1), opacity .5s; }
#gift.tap1 .gift-box { animation: giftShake .35s ease-in-out; } #gift.tap1 .lid { transform: translateY(-4px) rotate(-3deg); }
#gift.tap2 .gift-box { animation: giftShake2 .35s ease-in-out; } #gift.tap2 .lid { transform: translateY(-9px) rotate(4deg); }
#gift.opened .lid { transform: translate(14px, -90px) rotate(38deg); opacity: 0; transition-duration: .7s; }
#gift.opened .half.left { transform: translate(-70px, 30px) rotate(-40deg); opacity: 0; transition-duration: .7s; }
#gift.opened .half.right { transform: translate(70px, 30px) rotate(40deg); opacity: 0; transition-duration: .7s; }
@keyframes giftShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.04); } 75% { transform: rotate(7deg) scale(1.04); } }
@keyframes giftShake2 { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(9deg) scale(1.08); } 60% { transform: rotate(-9deg) scale(1.08); } }
.gift-item { position: absolute; left: 0; right: 0; top: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transform: scale(0.3); pointer-events: none; transition: opacity .35s .18s, transform .55s .18s cubic-bezier(.3, 1.7, .6, 1); }
#gift.opened .gift-item { opacity: 1; transform: none; }
.gift-item .emoji { font-size: 84px; line-height: 1.05; filter: drop-shadow(0 6px 10px rgba(36, 64, 110, 0.25)); }
.gift-item .name { font-size: 21px; font-weight: 900; }
.gift-item .from { font-size: 13px; font-weight: 700; color: #4a6382; }
.confetti { position: absolute; left: 50%; top: 120px; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 3px; opacity: 0; }
.confetti i:nth-child(3n) { background: #e8503f; } .confetti i:nth-child(3n+1) { background: #e7b23c; } .confetti i:nth-child(3n+2) { background: #4f9fd8; }
#gift.opened .confetti i { animation: confetti 1.1s ease-out forwards; }
#gift.opened .confetti i:nth-child(1) { --dx: -110px; --dy: -80px; --r: 200deg; animation-delay: 0s; }
#gift.opened .confetti i:nth-child(2) { --dx: 100px; --dy: -95px; --r: -160deg; animation-delay: 0.03s; }
#gift.opened .confetti i:nth-child(3) { --dx: -70px; --dy: -130px; --r: 300deg; animation-delay: 0.06s; }
#gift.opened .confetti i:nth-child(4) { --dx: 60px; --dy: -140px; --r: -260deg; animation-delay: 0.02s; }
#gift.opened .confetti i:nth-child(5) { --dx: -130px; --dy: -20px; --r: 180deg; animation-delay: 0.05s; }
#gift.opened .confetti i:nth-child(6) { --dx: 125px; --dy: -30px; --r: -200deg; animation-delay: 0.01s; }
#gift.opened .confetti i:nth-child(7) { --dx: -30px; --dy: -150px; --r: 220deg; animation-delay: 0.04s; }
#gift.opened .confetti i:nth-child(8) { --dx: 20px; --dy: -120px; --r: -300deg; animation-delay: 0.07s; }
#gift.opened .confetti i:nth-child(9) { --dx: -90px; --dy: -110px; --r: 160deg; animation-delay: 0.02s; }
#gift.opened .confetti i:nth-child(10) { --dx: 90px; --dy: -60px; --r: -180deg; animation-delay: 0.05s; }
#gift.opened .confetti i:nth-child(11) { --dx: -50px; --dy: -60px; --r: 260deg; animation-delay: 0.08s; }
#gift.opened .confetti i:nth-child(12) { --dx: 40px; --dy: -75px; --r: -220deg; animation-delay: 0.03s; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 120px)) rotate(var(--r)); } }
.gift-hint { margin: 6px 0 12px; font-size: 14px; font-weight: 700; color: #4a6382; min-height: 1.4em; }
#gift.opened .gift-hint { visibility: hidden; }
.gift-close { height: 48px; padding: 0 34px; border-radius: 24px; color: #2f5f96; font-size: 16px; font-weight: 800; visibility: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(206, 230, 252, 0.9)); box-shadow: inset 0 2px 0 #fff, inset 0 -10px 16px rgba(140, 190, 238, 0.4), 0 8px 18px rgba(36, 84, 150, 0.2); }
#gift.opened .gift-close { visibility: visible; }
/* 트리 옆 산타의 말풍선 (자리는 js 가 산타 머리 위에 맞춘다) */
#santa-say { position: fixed; left: 0; top: 0; z-index: 2; padding: 8px 14px; border-radius: 18px; font-size: 15px; font-weight: 800; color: #b42e28; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 16px rgba(36, 64, 110, 0.2); transform: translate(-50%, -100%); }
#santa-say::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: inherit; transform: rotate(45deg); border-radius: 0 0 4px 0; }
#santa-say.show { opacity: 1; }

/* 내 이름: 처음 화면과 위쪽 정보 상자에 */
.start-card .me-name { margin: -8px 0 14px; font-size: 14px; font-weight: 700; color: var(--brown-soft); display: flex; align-items: center; justify-content: center; gap: 4px; }
.start-card .me-name b { color: var(--brown); font-weight: 900; }
#rename { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: rgba(255, 255, 255, 0.55); color: #2f5f96; }
#rename .g { width: 17px; height: 17px; } #rename .g .s { stroke-width: 2.4; }
#hud-name { font-size: 13.5px; font-weight: 800; }
.badge.me { background: linear-gradient(150deg, #fff, #d9ebfb) !important; color: #2f5f96; }
@media (max-height: 430px) { .start-card .me-name { margin: -4px 0 8px; font-size: 13px; } }

/* ---------- 이글루 안 ---------- */
#angel .enter-icon, #angel .exit-icon, #angel .sit-icon, #angel .stand-icon { display: none; width: 28px; height: 28px; }
#angel.enter .angel-icon, #angel.exit .angel-icon, #angel.sitdown .angel-icon, #angel.standup .angel-icon, #angel.none .angel-icon { display: none; }
#angel.enter .enter-icon, #angel.exit .exit-icon, #angel.sitdown .sit-icon, #angel.standup .stand-icon { display: block; }
#angel.none { opacity: 0.35 !important; pointer-events: none; }
#angel .exit-icon .s, #angel .stand-icon .s { stroke-width: 3; }
#fade { position: fixed; inset: 0; z-index: 3; background: #0d1226; opacity: 0; pointer-events: none; transition: opacity .32s; }
#fade.on { opacity: 1; }
#status { position: fixed; left: 50%; bottom: calc(18px + var(--safe-b)); z-index: 3; width: min(92vw, 380px); transform: translateX(-50%); padding: 14px 14px 12px; border-radius: 24px; text-align: center; color: #27405f;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(228, 241, 255, 0.66) 52%, rgba(204, 228, 250, 0.74)); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: 0 12px 32px rgba(36, 64, 110, 0.22); }
#status[hidden] { display: none; }
.status-say { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.status-list { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; max-height: 38vh; overflow-y: auto; }
.status-list button { height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13.5px; font-weight: 700; color: #27405f; background: rgba(255, 255, 255, 0.72); box-shadow: 0 2px 6px rgba(36, 64, 110, 0.12); }
.status-list button[aria-pressed="true"] { background: #2f5f96; color: #fff; }
.status-close { margin-top: 10px; height: 36px; padding: 0 18px; border-radius: 18px; font-size: 13px; font-weight: 700; color: #4a6382; background: none; }
#me-say { position: fixed; left: 0; top: 0; z-index: 2; padding: 7px 13px; border-radius: 18px; font-size: 14px; font-weight: 800; color: #27405f; white-space: nowrap; background: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 16px rgba(36, 64, 110, 0.2); transform: translate(-50%, -100%); }
#me-say[hidden] { display: none; }
#me-say::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; }
#me-say small { display: block; font-size: 11px; font-weight: 700; color: #4a6382; }

/* 오른쪽 아래 단추들도 오른쪽 위 소리 단추와 같은 크기로 (40px) */
:root { --btn: 40px; --gap: 12px; }
#shot .g { width: 21px; height: 21px; }
#slide .slide-icon { width: 26px; height: 20px; }
#angel .angel-icon { width: 25px; height: 22px; }
#flap .flap-icon { width: 26px; height: 23px; }
#angel .fish-icon { width: 23px; height: 23px; }
#angel .quit-icon { width: 20px; height: 20px; }
#angel .enter-icon, #angel .exit-icon, #angel .sit-icon, #angel .stand-icon { width: 22px; height: 22px; }
@media (max-height: 430px) { :root { --btn: 40px; --gap: 9px; } }

/* 함께 걷는 펭귄 수, 다른 펭귄의 말풍선 */
#peers { font-size: 12.5px; font-weight: 700; color: var(--brown-soft); }
.peer-say { position: fixed; left: 0; top: 0; z-index: 1; padding: 6px 12px; border-radius: 16px; font-size: 13px; font-weight: 800; color: #27405f; white-space: nowrap; pointer-events: none; background: rgba(255, 255, 255, 0.85); box-shadow: 0 4px 12px rgba(36, 64, 110, 0.16); transform: translate(-50%, -100%); }
.peer-say[hidden] { display: none; }
.peer-say small { display: block; font-size: 10.5px; font-weight: 700; color: #4a6382; }
/* 흰 테두리 없애기 (단추와 정보창에 이어 나머지 모두): 유리판·조이스틱·들어가기 단추·선물 창의 흰 테두리와 위쪽의 하얀 테두리선을 걷어 낸다.
   유리 느낌은 안쪽 아래의 푸른 굴절과 그림자로만 낸다 */
#toast, .start-card, #coach .tip b, #coach .pad i, #knob, #enter, #stick, .gift-card, .gift-close, #status { border: 0; }      /* (손가락 자리를 알려 주는 점선 고리는 흰색이 아니라 그대로 둔다) */
#toast, #coach .tip b { box-shadow: inset 0 -9px 14px rgba(150, 196, 240, 0.24), 0 8px 22px rgba(36, 64, 110, 0.16); }
.start-card { box-shadow: inset 0 -14px 24px rgba(150, 196, 240, 0.22), 0 18px 44px rgba(36, 64, 110, 0.2); }
#coach .pad i, #knob { box-shadow: 0 4px 10px rgba(36, 64, 110, 0.2); }
#stick { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 -8px 14px rgba(140, 190, 238, 0.22), 0 6px 16px rgba(36, 64, 110, 0.14); }
#enter { box-shadow: inset 0 -10px 16px rgba(40, 110, 200, 0.35), 0 10px 22px rgba(36, 84, 150, 0.28); }
.gift-card { box-shadow: 0 18px 44px rgba(36, 64, 110, 0.25); }
.gift-close { box-shadow: inset 0 -10px 16px rgba(140, 190, 238, 0.4), 0 8px 18px rgba(36, 84, 150, 0.2); }
/* 처음 화면: 이 눈밭에서 할 수 있는 일 */
/* 낚아 올린 것을 보여 주는 카드 (화면 위쪽 가운데, 낚시하는 펭귄을 가리지 않게) */
#catch { position: fixed; left: 50%; top: max(calc(214px + var(--safe-t)), 24%); z-index: 3; width: 210px; padding: 6px 14px 14px; border-radius: 26px; text-align: center; color: var(--ink); cursor: pointer;
  transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(228, 241, 255, 0.72) 52%, rgba(204, 228, 250, 0.8)); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 -9px 14px rgba(150, 196, 240, 0.24), 0 14px 32px rgba(36, 64, 110, 0.22); }
#catch[hidden] { display: none; }
#catch.pop { animation: catch-pop .55s cubic-bezier(.3, 1.7, .6, 1); }
@keyframes catch-pop { 0% { transform: translateX(-50%) scale(0.3); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
#catch .view { width: 124px; height: 124px; }
#catch.flat .view { display: none; }
#catch .name { font-size: 17px; font-weight: 900; }
#catch .say { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.showcase-canvas { display: block; }
/* 선물에서 나온 패션 아이템: 3D 로 빙글 돈다 (WebGL 을 못 쓰면 그림 글자로) */
.gift-item { top: 34px; }
.gift-item .view { display: block; width: 150px; height: 150px; }
.gift-item .emoji { display: none; }
.gift-item.flat .view { display: none; }
.gift-item.flat .emoji { display: block; }
/* 우체통 곁: 엽서 단추 */
#angel .mail-icon { display: none; width: 22px; height: 22px; }
#angel.mail .angel-icon { display: none; }
#angel.mail .mail-icon { display: block; }
/* 친구에게 보내는 엽서 */
#postcard { position: fixed; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(36, 52, 92, 0.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#postcard[hidden] { display: none; }
#postcard .card { position: relative; width: min(100%, 330px); padding: 16px 20px 14px; border-radius: 22px; text-align: center; color: #3b2f2a;
  background: #fffaf0; box-shadow: 0 18px 44px rgba(36, 64, 110, 0.28); transform: rotate(-1.2deg); }
#postcard .art { position: relative; height: 92px; margin: 0 -6px 10px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(#bfe0fb, #e9f4ff 62%, #ffffff 62%); display: flex; align-items: flex-end; justify-content: center; }
#postcard .scene { font-size: 34px; letter-spacing: 6px; padding-bottom: 6px; }
#postcard .stamp { position: absolute; right: 8px; top: 8px; width: 40px; height: 46px; display: grid; place-items: center; font-size: 24px; background: #fff; border-radius: 4px;
  outline: 2px dashed #e8a0a0; outline-offset: -5px; transform: rotate(6deg); }
#postcard .to { margin: 0; text-align: left; font-size: 13px; font-weight: 800; color: #9a7b62; }
#postcard .msg { margin: 6px 0 8px; font-size: 17px; line-height: 1.55; font-weight: 900; color: #27405f; word-break: keep-all; }
#postcard .from { margin: 0 0 12px; text-align: right; font-size: 13px; font-weight: 700; color: #9a7b62; }
#postcard .from b { color: #27405f; }
#postcard .btns { display: flex; gap: 8px; }
#postcard .btns button { flex: 1; height: 44px; border-radius: 22px; font-size: 14.5px; font-weight: 800; }
#postcard .send { color: #fff; background: linear-gradient(160deg, #f37b6b, #e0503f); box-shadow: inset 0 -8px 12px rgba(150, 30, 20, 0.22), 0 6px 14px rgba(200, 70, 50, 0.3); }
#postcard .copy { color: #2f5f96; background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(206, 230, 252, 0.9)); box-shadow: inset 0 -8px 12px rgba(140, 190, 238, 0.35), 0 6px 14px rgba(36, 84, 150, 0.16); }
#postcard .done { min-height: 1.3em; margin: 10px 0 0; font-size: 13px; font-weight: 800; color: #3f8f6a; }
#postcard .link { margin: 2px 0 0; font-size: 11.5px; color: #9a7b62; word-break: break-all; -webkit-user-select: all; user-select: all; }
#postcard .close { margin-top: 6px; height: 34px; padding: 0 18px; border-radius: 17px; font-size: 13px; font-weight: 700; color: #7a6a5c; background: none; }
/* 주사위 놀이: 초대 단추(상태 고르는 창 위), 묻는 쪽지, 놀이 판 */
#status .dice-invite { display: block; width: 100%; height: 40px; margin: 0 0 10px; border-radius: 20px; font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, #8fa9ff, #6f86f0); box-shadow: inset 0 -8px 12px rgba(40, 60, 170, 0.22), 0 6px 14px rgba(60, 80, 180, 0.25); }
#status .dice-invite[hidden] { display: none; }
#dice-ask, #dice { position: fixed; left: calc(12px + var(--safe-l)); right: calc(70px + var(--safe-r)); bottom: calc(18px + var(--safe-b)); z-index: 3; max-width: 360px; margin: 0 auto; padding: 14px; border-radius: 22px; text-align: center; color: var(--ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(228, 241, 255, 0.78) 52%, rgba(204, 228, 250, 0.84)); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 -9px 14px rgba(150, 196, 240, 0.24), 0 12px 30px rgba(36, 64, 110, 0.22); }
#dice-ask[hidden], #dice[hidden] { display: none; }
#dice-ask { animation: catch-pop-in .45s cubic-bezier(.3, 1.6, .6, 1); }
@keyframes catch-pop-in { 0% { transform: translateY(16px) scale(0.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
#dice-ask p { margin: 0 0 10px; font-size: 15px; font-weight: 800; line-height: 1.5; }
#dice-ask .die-mini { margin-right: 4px; }
#dice-ask .btns, #dice .btns { display: flex; gap: 8px; justify-content: center; }
#dice-ask button, #dice .btns button { flex: 1; max-width: 150px; height: 40px; border-radius: 20px; font-size: 14px; font-weight: 800; color: #2f5f96;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(206, 230, 252, 0.9)); box-shadow: inset 0 -8px 12px rgba(140, 190, 238, 0.35), 0 4px 10px rgba(36, 84, 150, 0.14); }
#dice-ask .yes, #dice .roll, #dice .again { color: #fff; background: linear-gradient(160deg, #8fa9ff, #6f86f0); box-shadow: inset 0 -8px 12px rgba(40, 60, 170, 0.22), 0 4px 10px rgba(60, 80, 180, 0.22); }
#dice .btns button[hidden] { display: none; }
#dice .btns button:disabled { opacity: 0.45; }
#dice .title { margin: 0; font-size: 16px; font-weight: 900; }
#dice .note { margin: 4px 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); min-height: 1.4em; }
#dice .players { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#dice .players li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; font-size: 11.5px; font-weight: 800; line-height: 1.25; word-break: keep-all; }
#dice .players li.win { color: #d0533f; }
#dice .players li.win::before { content: '👑'; font-size: 16px; margin-bottom: -4px; }
.die { width: 42px; height: 42px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 -4px 6px rgba(150, 176, 210, 0.35), 0 3px 8px rgba(36, 64, 110, 0.18);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.die i { width: 7px; height: 7px; margin: auto; border-radius: 50%; background: transparent; }
.die i.on { background: #27405f; }
.die.one i.on { background: #e0503f; width: 9px; height: 9px; }
.die.wait { opacity: 0.4; }
.die.spin { animation: die-spin .16s linear infinite; }
@keyframes die-spin { 0% { transform: rotate(-12deg); } 50% { transform: rotate(12deg) translateY(-3px); } 100% { transform: rotate(-12deg); } }
/* ---------- 처음 화면: 친구에게 보내는 엽서와 같은 크림색 엽서 ---------- */
.start-card { background: #fffaf0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 20px 46px rgba(36, 64, 110, 0.28); color: #3b2f2a; border-radius: 26px; padding-top: 16px; }
.start-card h1 { margin: 0 0 8px; color: #27405f; }
.start-card .say { margin-bottom: 12px; min-height: 0; color: #4a3d35; }
.start-card .me-name, .start-card .hint, .start-card .hint .g { color: #7d6450; }
.start-card .me-name { margin: 0 0 14px; }
.start-card .me-name b { color: #27405f; }
.postcard-art { position: relative; height: 120px; margin: 0 -10px 14px; border-radius: 18px; overflow: hidden; background: linear-gradient(#a9d4fb, #dceeff 70%); }
.postcard-art .sun { position: absolute; left: 22px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 22px 8px rgba(255, 243, 196, 0.7); }
.postcard-art .hill { position: absolute; border-radius: 50%; background: #fff; }
.postcard-art .hill.a { left: -30px; bottom: -40px; width: 230px; height: 90px; }
.postcard-art .hill.b { right: -40px; bottom: -50px; width: 260px; height: 100px; background: #f2f7fd; }
.postcard-art .scene { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; align-items: flex-end; gap: 18px; font-size: 40px; line-height: 1; }
.postcard-art .scene i { font-style: normal; filter: drop-shadow(0 4px 4px rgba(60, 90, 140, 0.18)); }
.postcard-art .scene i.p { font-size: 34px; }
.postcard-art .stamp { position: absolute; right: 10px; top: 10px; width: 44px; height: 52px; display: grid; place-items: center; font-size: 26px; background: #fff; border-radius: 4px;
  outline: 2px dashed #e8a0a0; outline-offset: -5px; transform: rotate(6deg); box-shadow: 0 3px 6px rgba(60, 90, 140, 0.16); }
.postcard-art .mark { position: absolute; right: 52px; top: 16px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(80, 110, 160, 0.35); color: rgba(60, 90, 140, 0.55);
  font-size: 9.5px; font-weight: 800; line-height: 1.35; white-space: nowrap; display: grid; place-items: center; align-content: center; text-align: center; transform: rotate(-14deg); }
.start-card .what .tiles { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.start-card .what li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(120, 90, 60, 0.12);
  font-size: 12.5px; font-weight: 800; color: #4a3d35; word-break: keep-all; }
.start-card .what li b { font-size: 24px; line-height: 1.1; }
#enter { color: #fff; text-shadow: none; background-color: #2f6fc4; background-image: linear-gradient(160deg, #5a9be6, #2f6fc4); box-shadow: inset 0 -10px 16px rgba(20, 60, 150, 0.25), 0 10px 22px rgba(47, 111, 196, 0.32); }      /* 파란 단추 (흰 글자가 또렷하게) */
#enter::before { opacity: 0.5; }
#start { background: rgba(232, 242, 255, 0.16); }
/* 낮은 화면(가로로 눕힌 휴대폰 등): 그림은 접고 타일만 */
@media (max-height: 640px) { .postcard-art { height: 76px; margin-bottom: 8px; } .postcard-art .scene { font-size: 28px; } .postcard-art .scene i.p { font-size: 24px; } .postcard-art .mark { display: none; } }
@media (max-height: 430px) { .postcard-art { display: none; } .start-card .what li { flex-direction: row; justify-content: center; gap: 4px; padding: 6px 2px; } .start-card .what li b { font-size: 16px; } .start-card .me-name { margin-bottom: 8px; } }
