:root {
  color-scheme: light;
  background: white;
  color: #282520;
  font-family: "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  --edge: clamp(18px, 2.65vw, 46px);
}
*,*::before,*::after {box-sizing:border-box;}
html,body,main {height:100%;width:100%;margin:0;}
body {overflow:hidden;}
button,a {font:inherit;color:inherit;-webkit-tap-highlight-color:transparent;}
button {cursor:pointer;background:none;border:0;padding:0;}
button:focus-visible,a:focus-visible {outline:2px solid #cb835b;outline-offset:4px;}
svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.defs {position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;}
.sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(100%);white-space:nowrap;}
[hidden] {display:none!important;}
.hero {
  position:relative;display:grid;place-items:center;
  height:100vh;height:100dvh;overflow:hidden;background:#fff;
}
.building {
  display:block;position:relative;isolation:isolate;
  width:min(64dvh,58vw,720px);aspect-ratio:1;
  touch-action:none;user-select:none;cursor:grab;transform-origin:36% 65%;
  transition:transform .55s cubic-bezier(.2,.7,.3,1);
}
.layer {display:block;user-select:none;pointer-events:none;width:100%;height:100%;object-fit:contain;}
.tone {position:absolute;inset:0;opacity:0;transition:opacity 1.25s ease-in-out;}
.hero.initial .tone {transition:none;}
@media(hover:hover) {.hero:not(.approach) .building:hover {transform:scale(1.014);}}
.hero.approach .building {transform:translate(var(--door-x),var(--door-y)) scale(7);transition:transform 1.2s cubic-bezier(.53,.08,.66,.59);}
dialog {position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;border:0;padding:0;margin:0;overflow:hidden;color:#fff;background:#24201c;}
dialog::backdrop {background:transparent;}
#inside {opacity:0;transition:opacity .52s ease;}
#inside.visible {opacity:1;}
#panorama {position:absolute;inset:0;isolation:isolate;overflow:hidden;touch-action:none;outline:0;background:#302c27;transition:opacity .17s;}
#inside.switching #panorama {opacity:.32;}
.scene-shade {position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(14,11,9,.28),transparent 16%,transparent 90%,rgba(14,11,9,.13));}
.points {position:absolute;inset:0;overflow:hidden;pointer-events:none;}
.point {
  position:absolute;left:0;top:0;display:inline-flex;align-items:center;gap:7px;pointer-events:auto;
  color:#fff;white-space:nowrap;will-change:transform;text-shadow:0 1px 4px #000a;
}
.point b {width:38px;height:38px;display:grid;place-items:center;background:#231e19aa;border:1px solid #ffffffbd;border-radius:50%;box-shadow:0 2px 12px #0004;backdrop-filter:blur(8px);transition:background .16s;}
.point b svg {width:18px;height:18px;}
.point span {background:rgba(29,25,21,.83);padding:6px 10px;border-radius:20px;font-size:13px;font-weight:600;letter-spacing:-.02em;}
.point.detail span {opacity:0;transition:opacity .18s;}
.point:is(:hover,:focus-visible) span {opacity:1;}
.point:is(:hover,:focus-visible) b {background:#2b241df2;}
.tour-head {position:absolute;top:max(20px,env(safe-area-inset-top));right:var(--edge);}
.tour-bottom {position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;}
.glass {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ffffff67;
  background:rgba(25,22,18,.72);border-radius:26px;color:white;backdrop-filter:blur(12px);
  min-height:44px;text-decoration:none;font-size:14px;line-height:1.15;font-weight:550;white-space:nowrap;
}
button.glass:hover,a.glass:hover {background:#352f29eb;}
.round {width:44px;height:44px;padding:0;}
.album {padding:0 16px;}
.album svg {width:17px;height:17px;}
.floor-dock {padding:3px;gap:2px;}
.floor-dock button {border-radius:23px;min-width:45px;padding:0 11px;min-height:36px;font-weight:600;}
.floor-dock button[aria-pressed=true] {color:#28241f;background:#fff;}
#load-error {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#16120eda;padding:18px;border-radius:12px;font-size:15px;}
#load-error button {color:white;text-decoration:underline;padding:4px;}
#gallery {
  inset:0;margin:auto;width:min(1080px,calc(100% - 40px));height:min(830px,calc(100dvh - 52px));
  color:#242424;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.85);
  border-radius:22px;box-shadow:0 20px 84px rgba(26,24,21,.15);
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
}
#gallery::backdrop {background:rgba(24,23,21,.17);}
#gallery[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:13px;padding:18px;}
.album-head {display:flex;align-items:center;justify-content:space-between;gap:15px;}
.album-head span {font-size:12px;color:#626262;line-height:1.4;}
.album-head h2 {margin:2px 0 0;font-size:clamp(17px,2vw,23px);line-height:1.3;letter-spacing:-.035em;font-weight:600;}
.album-actions {display:flex;gap:6px;}
.album-actions .glass,.lightbox>.glass {color:#242424;background:rgba(255,255,255,.9);border-color:#19191916;box-shadow:0 1px 4px #0000000d;}
.album-actions .glass:hover,.lightbox>.glass:hover {background:#fff;}
#gallery .lightbox {border-radius:12px;overflow:hidden;background:#f6f5f3;}
.lightbox {min-height:0;display:flex;align-items:center;justify-content:center;position:relative;}
.lightbox figure {touch-action:none;margin:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;}
#real-photo {height:100%;width:100%;object-fit:contain;user-select:none;pointer-events:none;transform-origin:center;}
.lightbox .previous,.lightbox .next {position:absolute;z-index:1;}
.lightbox .previous {left:4px;}
.lightbox .next {right:4px;}
.thumb-bar {justify-self:center;display:flex;align-items:center;gap:7px;max-width:100%;overflow-x:auto;padding:3px;scrollbar-width:thin;scrollbar-color:#59544d transparent;}
.thumb-bar button {flex:none;width:59px;height:40px;border-radius:4px;position:relative;isolation:isolate;}
.thumb-bar img {width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit;opacity:.57;transition:opacity .18s;}
.thumb-bar button[aria-current=true]::after {content:"";position:absolute;inset:-3px;border:1.5px solid #222;border-radius:6px;}
.thumb-bar button[aria-current=true] img,.thumb-bar button:hover img {opacity:1;}
@media(max-width:700px) {.building{width:min(84vw,65dvh);}.tour-bottom{bottom:max(17px,env(safe-area-inset-bottom));}.tour-head{top:max(16px,env(safe-area-inset-top));}.point b{width:35px;height:35px;}.point span{font-size:12px;}.thumb-bar button{width:49px;height:35px;}.lightbox .previous,.lightbox .next{bottom:6px;}.lightbox .previous{left:calc(50% - 50px);}.lightbox .next{right:calc(50% - 50px);}}
@media(max-height:530px) and (orientation:landscape) {.building{width:min(75dvh,55vw);}.tour-bottom{bottom:10px;}.tour-head{top:10px;}#gallery[open]{gap:6px;padding-block:6px;}.thumb-bar button{height:26px;width:40px;}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;}.hero.approach .building{transform:none;}}
.point.left-label{flex-direction:row-reverse;}
.point.left-label span{position:absolute;right:calc(100% + 7px);}

@media (any-pointer:fine) {
  :root {--penguin-cursor:url("assets/penguin-cursor.png") 2 10;}
  @supports (cursor:image-set(url("assets/penguin-cursor.png") 1x) 2 10,auto) {
    :root {--penguin-cursor:image-set(url("assets/penguin-cursor.png") 1x,url("assets/penguin-cursor@2x.png") 2x) 2 10;}
  }
  html,body,button,a,dialog,.building,#panorama {cursor:var(--penguin-cursor),auto !important;}
}

@media(max-width:430px){
  #gallery {width:calc(100% - 16px);height:min(760px,calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom))));border-radius:18px;}
  #gallery[open]{padding:12px;gap:10px;}
  .tour-bottom{gap:5px;}
  .tour-bottom .album{padding:0 11px;}
  .floor-dock button{min-width:37px;padding:0 8px;}
}
@media(max-width:340px){
  .tour-bottom{gap:4px;}
  .tour-bottom .album{padding:0 8px;}
  .tour-bottom .album svg{display:none;}
}

.penguin-pointer:popover-open {
  position:fixed;inset:0 auto auto 0;margin:0;padding:0;border:0;
  width:34px;height:44px;pointer-events:none;user-select:none;overflow:visible;
  background:transparent url("assets/penguin-cursor@2x.png") center/contain no-repeat;
  will-change:transform;
}
.penguin-pointer::backdrop {pointer-events:none;background:none;}
@media(any-pointer:fine) {
  html.penguin-active,html.penguin-active *,html.penguin-active #panorama {cursor:none!important;}
}

#photo-stage {position:relative;}
.image-picker {position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;}
.image-picker svg {display:block;width:100%;height:100%;overflow:hidden;pointer-events:none;}
.image-picker path {fill:rgba(255,239,199,.16);stroke:rgba(255,255,255,.96);stroke-width:1.7;stroke-linejoin:round;paint-order:stroke;filter:drop-shadow(0 1px 3px rgba(51,34,17,.8));}
.food-tip {position:absolute;display:block;transform:translate(-50%,-100%);white-space:nowrap;max-width:calc(100% - 18px);overflow:hidden;text-overflow:ellipsis;padding:7px 11px;border-radius:6px;background:rgba(31,27,23,.94);box-shadow:0 2px 10px #0003;color:#fff;font-size:13px;font-weight:550;line-height:1.3;}
.food-key {position:absolute;left:0;top:0;width:24px;height:24px;opacity:0;pointer-events:none;}
