@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/vendor/fonts/instrument-serif-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url(/vendor/fonts/instrument-serif-latin-400-italic.woff2) format("woff2")}
:root{
  --bg:#efeae2;
  --ink:#1f2b23;
  --btn:rgba(31,43,35,.07);
  --btn-hover:rgba(31,43,35,.13);
}
:root[data-mode="night"]{
  --ink:#f3ead8;
  --btn:rgba(243,234,216,.09);
  --btn-hover:rgba(243,234,216,.17);
}
html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);transition:background-color .9s ease}
body{color:var(--ink);-webkit-font-smoothing:antialiased;font-family:"Segoe UI Variable","Noto Sans KR",system-ui,sans-serif;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#scene{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;display:block;touch-action:none;opacity:0;transition:opacity 1.4s ease}
/* a 3D world (backdrop.js sets data-world): houses and lit windows sit where the text is, so a soft veil of the page
   colour lies over the world behind the title and buttons (top left), the prop column (left) and the labels (right) */
body::before{content:"";position:fixed;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity .9s ease;
  --veil:color-mix(in srgb,var(--bg) 80%,transparent);
  background:radial-gradient(ellipse 330px 170px at 0 0,var(--veil) 55%,transparent),
    linear-gradient(to right,var(--veil) 165px,transparent 270px),
    linear-gradient(to left,var(--veil) 56px,transparent 150px)}
:root[data-world] body::before{opacity:1}
@media (max-width:899px){body::before{background:radial-gradient(ellipse 300px 150px at 0 0,var(--veil) 55%,transparent)}}
#scene.ready{opacity:1}
.title{
  position:fixed;z-index:2;margin:0;pointer-events:none;
  top:max(22px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));
  font-family:"Instrument Serif",Georgia,serif;font-weight:400;
  font-size:clamp(30px,5vw,46px);line-height:1;letter-spacing:-.01em;
  color:var(--ink);transition:color .9s ease;
}
.title i{font-style:italic}

/* right-hand column of round buttons */
#top-actions{
  position:fixed;z-index:3;
  top:max(18px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));
  display:flex;flex-direction:column;align-items:flex-end;gap:10px;
}
/* full-window layer for floating feature UI; children opt in to clicks */
#overlay{position:fixed;inset:0;pointer-events:none;z-index:4}

.round{
  position:relative;flex:0 0 auto;
  width:44px;height:44px;border:0;border-radius:50%;padding:0;cursor:pointer;
  display:grid;place-items:center;color:var(--ink);background:var(--btn);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background-color .25s ease,transform .25s cubic-bezier(.2,.8,.2,1),color .9s ease;
}
.round[hidden]{display:none}
.round:hover{background:var(--btn-hover)}
.round:active{transform:scale(.9)}
.round:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.round svg{width:20px;height:20px;transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .3s}
.mode .sun{position:absolute;opacity:0;transform:rotate(-90deg) scale(.6)}
:root[data-mode="night"] .mode .sun{opacity:1;transform:none}
:root[data-mode="night"] .mode .moon{opacity:0;transform:rotate(90deg) scale(.6)}
.tune[aria-expanded="true"] svg{transform:rotate(60deg)}

/* colour rows: no box, just dots */
.panel{
  position:fixed;z-index:3;right:max(16px,env(safe-area-inset-right));
  top:calc(max(18px,env(safe-area-inset-top)) + 112px);
  display:grid;gap:16px;justify-items:end;pointer-events:none;
}
.row{display:flex;align-items:center;gap:14px;opacity:0;transform:translateX(14px);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
.panel.open{pointer-events:auto}
.panel.open .row{opacity:1;transform:none}
.panel.open .row:nth-child(2){transition-delay:.05s}
.panel.open .row:nth-child(3){transition-delay:.1s}
.panel.open .row:nth-child(4){transition-delay:.15s}
.panel.open .row:nth-child(5){transition-delay:.2s}
.panel.open .row:nth-child(6){transition-delay:.25s}
.row[hidden]{display:none}
.row span{font-size:11px;letter-spacing:.04em;opacity:.75;margin-right:2px;color:var(--ink);transition:color .9s ease;
  text-shadow:0 0 2px var(--bg),0 0 7px var(--bg),0 0 16px var(--bg),0 0 2px var(--bg),0 0 4px var(--bg),0 0 7px var(--bg),0 0 10px var(--bg)}
/* over the dense leaves on a phone the labels need their full ink */
@media (max-width:599px){.row span{opacity:1}}
/* a 26px dot inside a 44px hit box (padding + negative margin keep the look and the spacing) */
.dot{
  box-sizing:border-box;width:44px;height:44px;margin:-9px;padding:9px;border-radius:50%;border:0;cursor:pointer;
  background:radial-gradient(closest-side,transparent calc(100% - 1px),rgba(127,127,127,.28) calc(100% - 1px)) content-box,var(--c) content-box;
  position:relative;
  transition:transform .25s cubic-bezier(.2,.8,.2,1);
}
.dot:hover{transform:scale(1.12)}
.dot[aria-pressed="true"]::after{content:"";position:absolute;inset:5px;border-radius:50%;border:1.5px solid var(--ink);opacity:.8}
.dot.none{background:radial-gradient(closest-side,transparent calc(100% - 1.5px),var(--ink) calc(100% - 1.5px)) content-box;opacity:.6}
.dot.none::before{content:"";position:absolute;left:50%;top:12px;bottom:12px;width:1.5px;background:var(--ink);transform:rotate(45deg)}
.dot:focus-visible{outline:2px solid var(--ink);outline-offset:-3px}
/* the bulbs' always-twinkle switch (item 3): a small sparkle and two words in a 44px-high hit box, full ink when on,
   faint when off; its own line at the end of the lights row (.pat-brk) */
.pat{box-sizing:border-box;display:inline-flex;align-items:center;gap:7px;height:44px;margin:-9px;padding:0 9px;border:0;border-radius:22px;background:none;cursor:pointer;
  font:inherit;font-size:12px;letter-spacing:.02em;color:var(--ink);opacity:.45;transition:opacity .25s ease,color .9s ease}
.pat svg{flex:0 0 auto;display:block;width:20px;height:20px;pointer-events:none;filter:drop-shadow(0 0 3px var(--bg));transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.pat b{font-weight:400;white-space:nowrap;pointer-events:none;text-shadow:0 0 2px var(--bg),0 0 7px var(--bg),0 0 16px var(--bg)}
.pat[aria-pressed="true"]{opacity:.95}
.pat[aria-pressed="true"] svg{transform:rotate(45deg) scale(1.1)}
.pat:hover{opacity:.8}
.pat[aria-pressed="true"]:hover{opacity:1}
.pat:focus-visible{outline:2px solid var(--ink);outline-offset:-3px}
.pat-brk{flex:0 0 100%;height:0}

/* background row: flat colours, a hairline, then the scenes. The strip scrolls sideways inside its own row
   when the window is narrow; the page itself never scrolls. */
.bg-strip{
  display:flex;align-items:center;gap:14px;box-sizing:border-box;
  max-width:calc(100vw - max(16px,env(safe-area-inset-right)) - max(16px,env(safe-area-inset-left)) - 40px);
  margin:-9px;padding:9px 11px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain;
  -webkit-mask-image:var(--strip-fade,none);
          mask-image:var(--strip-fade,none);
}
.bg-strip::-webkit-scrollbar{display:none}
/* narrow: two short lines (the flat colours, then the scenes) so every choice is on screen without a swipe */
@media (max-width:899px){
  .bg-strip{flex-wrap:wrap;justify-content:flex-end;row-gap:9px;width:calc(4 * 26px + 3 * 14px + 22px);max-width:none;
    overflow:visible;touch-action:manipulation;-webkit-mask-image:none;mask-image:none}
  .bg-strip .bg-sep{flex:0 0 100%;height:0;opacity:0}
  /* the label sits with the first line (the flat colours), not between the two lines */
  .row[data-group="bg"]{align-items:flex-start}
  .row[data-group="bg"] > span{line-height:15px;padding-top:5px}
}
.bg-strip .dot{flex:0 0 auto}
.bg-sep{flex:0 0 1px;align-self:center;height:20px;background:var(--ink);opacity:.22;transition:background-color .9s ease}
/* a scene is a tiny drawing of itself inside the same round dot */
.dot.scene{background-origin:content-box;background-repeat:no-repeat;--ring:radial-gradient(closest-side,transparent calc(100% - 1px),rgba(127,127,127,.32) calc(100% - 1px))}
.dot.scene[data-scene="snow"]{background:var(--ring) content-box,
  radial-gradient(120% 62% at 22% 104%,#fbfbfc 60%,transparent 61%) content-box,
  radial-gradient(110% 56% at 88% 104%,#e8edf3 60%,transparent 61%) content-box,
  linear-gradient(#b7cbe0,#e9eef3) content-box}
.dot.scene[data-scene="sky"]{background:var(--ring) content-box,linear-gradient(#78a3d6,#dce8f4) content-box}
.dot.scene[data-scene="room"]{background:var(--ring) content-box,
  linear-gradient(transparent 68%,#a8846a 68%) content-box,
  linear-gradient(#fbf7ec,#fbf7ec) 30% 26%/34% 36% no-repeat content-box,
  linear-gradient(#e8ddcc,#e2d5c2) content-box}
.dot.scene[data-scene="stage"]{background:var(--ring) content-box,
  radial-gradient(42% 22% at 50% 80%,#c4b6a2,transparent 72%) content-box,
  radial-gradient(26% 90% at 50% 0%,rgba(255,240,215,.38),transparent 72%) content-box,
  linear-gradient(#2c0d12,#120709) content-box}
:root[data-mode="night"] .dot.scene[data-scene="snow"]{background:var(--ring) content-box,
  radial-gradient(120% 62% at 22% 104%,#56617c 60%,transparent 61%) content-box,
  radial-gradient(110% 56% at 88% 104%,#3c4762 60%,transparent 61%) content-box,
  linear-gradient(#0b1328,#24304d) content-box}
:root[data-mode="night"] .dot.scene[data-scene="sky"]{background:var(--ring) content-box,
  radial-gradient(1.2px 1.2px at 28% 24%,#fff 99%,transparent) content-box,
  radial-gradient(1px 1px at 66% 16%,#fff 99%,transparent) content-box,
  radial-gradient(1px 1px at 78% 40%,#dfe6ff 99%,transparent) content-box,
  linear-gradient(162deg,transparent 42%,rgba(50,215,140,.62) 55%,rgba(110,80,200,.25) 64%,transparent 74%) content-box,
  linear-gradient(#040817,#14203e) content-box}
:root[data-mode="night"] .dot.scene[data-scene="room"]{background:var(--ring) content-box,
  linear-gradient(transparent 68%,#2c1c13 68%) content-box,
  linear-gradient(#2a3d66,#1b2a4c) 30% 26%/34% 36% no-repeat content-box,
  linear-gradient(#3e2c1f,#2b1e15) content-box}
.dot[data-locked]{opacity:.5;cursor:default}
.dot[data-locked]:hover{transform:none}
/* a background being rebuilt in 3D (catalog soon): faded, grey, a small cube in the middle; a tap says why */
.dot[data-soon]{opacity:.4;filter:grayscale(1);cursor:default}
.dot[data-soon]:hover{transform:none}
.dot .soon{position:absolute;left:50%;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;color:var(--ink);pointer-events:none;
  filter:drop-shadow(0 0 2px var(--bg))}
/* leaf row: the leaf's own small shape inside the same round dot */
.dot.leaf{background:radial-gradient(closest-side,transparent calc(100% - 1px),rgba(127,127,127,.32) calc(100% - 1px)) content-box,var(--bg) content-box;color:var(--ink);transition:transform .25s cubic-bezier(.2,.8,.2,1),color .9s ease}
.dot.leaf .shape{display:block;width:100%;height:100%;pointer-events:none}
.dot .lock{position:absolute;right:7px;top:7px;width:11px;height:11px;color:var(--ink);pointer-events:none;
  filter:drop-shadow(0 0 2px var(--bg))}

/* a picture background: the picture itself inside the round dot */
.dot.scene.photo{background:var(--ring) content-box,var(--img) center/cover no-repeat content-box,#888 content-box}
/* tree shapes and ground props: the small picture alone (no circle, no box); the pressed one gets a small dot under it */
.dot.pic{width:44px;height:50px;margin:-9px -9px;padding:4px 5px 9px;border-radius:12px;background:none;color:var(--ink);transition:transform .25s cubic-bezier(.2,.8,.2,1),opacity .3s ease,color .9s ease}
.dot.pic img,.dot.pic .shape{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 3px var(--bg))}
.dot.pic[aria-pressed="true"]::after{inset:auto;left:50%;bottom:1px;width:4px;height:4px;margin-left:-2px;border:0;background:var(--ink);opacity:.85}
.dot.pic.wait{animation:pic-wait 1.1s ease-in-out infinite}
@keyframes pic-wait{50%{opacity:.45}}
.dot.pic .lock{right:2px;top:3px}
.row[data-group="shape"] .bg-strip{gap:12px}
/* narrow: the shapes stay ONE line that swipes sideways (any number of shapes from the catalog), so the palette
   never grows taller than the tree's top half */
@media (max-width:899px){.row[data-group="shape"] .bg-strip{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;
  -webkit-mask-image:var(--strip-fade,none);
          mask-image:var(--strip-fade,none)}}
@media (prefers-reduced-motion:reduce){.dot.pic.wait{animation:none;opacity:.6}}
/* wide: the ornaments are the left column and the design rows the right one (css/design.css): neither steps aside for the other */

/* ornament tray: items float, no box */
.tray{
  position:fixed;z-index:2;left:0;right:0;bottom:max(12px,env(safe-area-inset-bottom));
  display:flex;gap:4px;overflow-x:auto;padding:8px 22px 6px;scrollbar-width:none;touch-action:pan-x;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 26px,#000 calc(100% - 26px),transparent);
          mask-image:linear-gradient(90deg,transparent,#000 26px,#000 calc(100% - 26px),transparent);
  opacity:0;transform:translateY(16px);transition:opacity .8s ease .4s,transform .8s cubic-bezier(.2,.8,.2,1) .4s;
}
.tray.ready{opacity:1;transform:none}
.tray::-webkit-scrollbar{display:none}
.tray::before,.tray::after{content:"";margin:auto}
.tray button{flex:0 0 auto;width:60px;height:64px;border:0;background:none;padding:0;cursor:grab;touch-action:pan-x;border-radius:14px}
.tray button:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.tray img{width:100%;height:100%;display:block;pointer-events:none;-webkit-user-drag:none;
  filter:drop-shadow(0 7px 8px rgba(0,0,0,.2));transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s}
.tray button:hover img{transform:translateY(-5px) scale(1.1)}
.tray button.lifted img{opacity:.25;transform:scale(.8)}
.hint{
  position:fixed;z-index:2;left:0;right:0;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 82px);
  margin:0;text-align:center;font-size:13px;letter-spacing:.01em;color:var(--ink);opacity:0;pointer-events:none;
  transition:opacity .8s ease,color .9s ease;
}
.hint.show{opacity:.6}
/* wide screens: the prop box went to the right, so the hint sits at the bottom left, one line above the legal links and
   clear of the tree; a left sheet (the story, a letter) that reaches down to it wins and the hint waits (chrome.js: .wait) */
@media (min-width:900px){
  .hint{left:max(22px,env(safe-area-inset-left));right:auto;max-width:calc(50vw - 200px);text-align:left;
    bottom:calc(max(6px,env(safe-area-inset-bottom)) + 26px);text-shadow:0 0 2px var(--bg),0 0 7px var(--bg),0 0 16px var(--bg)}
  .hint.show.wait{opacity:0}
}
/* the legal line: plain small links at the very bottom, signed in or not (no box) */
.legal{
  position:fixed;z-index:2;left:max(22px,env(safe-area-inset-left));bottom:max(6px,env(safe-area-inset-bottom));
  display:flex;flex-wrap:nowrap;gap:12px;margin:0;font-size:11px;line-height:14px;white-space:nowrap;
}
.legal a{color:var(--ink);opacity:.5;text-decoration:none;transition:opacity .2s ease,color .9s ease}
.legal a:hover,.legal a:focus-visible{opacity:.9;text-decoration:underline}
.legal a:focus-visible{outline:1px solid var(--ink);outline-offset:2px}
@media (max-width:899px){
  /* phone: the line takes the very bottom (sideways swipe when it is too wide); the tray and the hint step up */
  .legal{left:0;right:0;justify-content:safe center;gap:10px;font-size:10px;padding:0 16px;overflow-x:auto;scrollbar-width:none;bottom:max(4px,env(safe-area-inset-bottom))}
  .legal::-webkit-scrollbar{display:none}
  .tray{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 12px)}
  .hint{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 94px)}
  /* the palette lies over the hint line on a phone: the hint waits */
  .panel.open ~ .hint.show{opacity:0}
  /* a hint said from inside the palette (chrome.js showHint lift) shows above it, under the buttons at the top */
  .panel.open ~ .hint.show.lift{opacity:.6;bottom:auto;top:calc(max(16px,env(safe-area-inset-top)) + 124px);text-shadow:0 0 2px var(--bg),0 0 7px var(--bg),0 0 16px var(--bg)}
  /* a sheet rises from the bottom on a phone: the legal line waits under it instead of showing at its edge */
  :root:has(.dt-sheet:not([hidden])) .legal,:root:has(.sheet:not([hidden])) .legal{visibility:hidden}
}
/* the service could not be reached on the real address: one line and a button, no box */
.offline{position:fixed;z-index:20;left:0;right:0;top:42%;margin:0;padding:0 24px;text-align:center;color:var(--ink,#2b2b2b)}
.offline p{margin:0 0 12px;font-size:15px;line-height:1.5}
.offline-retry{font:inherit;font-size:14px;color:inherit;background:none;border:0;padding:8px 14px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.offline-retry:disabled{opacity:.5;cursor:default}
.offline-retry:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.nogl{position:fixed;inset:auto 0 40% 0;text-align:center;font-size:15px;display:none}
@media (prefers-reduced-motion:reduce){.tray,.row,.round svg,.tray img,.bg-sep{transition:none}}

/* the real service: the account and sound buttons, one row at the top left of the right-hand column */
#account-actions{
  position:fixed;z-index:3;
  top:max(18px,env(safe-area-inset-top));right:calc(max(16px,env(safe-area-inset-right)) + 54px);
  display:flex;flex-direction:row-reverse;gap:10px;
}
/* the picker's one small entry to the shop: a quiet text button, no box */
.panel .row.more{gap:0}
.more-btn{
  border:0;background:none;padding:6px 2px;cursor:pointer;
  font:inherit;font-size:13px;letter-spacing:.01em;color:var(--ink);opacity:.78;
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;
  transition:opacity .2s ease,color .9s ease;
}
.more-btn:hover{opacity:1}
.more-btn:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}

/* a closed place (main.js showClosed): one calm screen; the account button and the legal links stay */
:root[data-place="closed"] #top-actions,
:root[data-place="closed"] #panel,
:root[data-place="closed"] #hint,
:root[data-place="closed"] #tray,
:root[data-place="closed"] #overlay{display:none}
:root[data-place="closed"] #account-actions{right:max(16px,env(safe-area-inset-right))}
:root[data-place="closed"] #scene.ready{opacity:.35}
.closed{
  position:fixed;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(420px,calc(100vw - 32px));text-align:center;color:var(--ink);transition:color .9s ease;
}
.closed h2{margin:0 0 10px;font-size:22px;font-weight:600;letter-spacing:-.01em}
.closed p{margin:0 0 18px;font-size:15px;line-height:1.55;opacity:.78}
.closed a{color:var(--ink);font-size:14px;text-underline-offset:3px}
.closed a:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
