:root{font-family:"Avenir Next","Apple SD Gothic Neo","Malgun Gothic","Segoe UI",sans-serif;color:#233c34;background:#dcd6c9;font-synthesis:none;--green:#294d41;--cream:#f7f3e9;--line:#cdcbbd}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,select{font:inherit;border:1px solid #aeb9aa;background:var(--cream);color:#294336;border-radius:9px;min-height:44px;padding:10px 14px}button,summary,select{cursor:pointer}button:hover{background:#e7e6d8}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b57934;outline-offset:3px}button:disabled{cursor:default;opacity:.5}button[aria-pressed=true]{background:#ead2a2;border-color:#a67d3d;color:#493510;box-shadow:inset 0 0 0 1px #bd955b}button.primary{background:var(--green);color:#fff9e8;border-color:var(--green)}button.primary:hover{background:#1e3e33}[hidden]{display:none!important}#world{display:block;width:100vw;height:100dvh;touch-action:none;outline:none}#reticle{display:none}.topbar{position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:22px 28px;pointer-events:none;gap:16px}.topbar>*{pointer-events:auto}.in-world .topbar{justify-content:flex-end}#menu-button{display:flex;align-items:center;justify-content:center;gap:9px;background:#f7f3e9f2;font-size:13px;box-shadow:0 2px 12px #203b3310}#menu-button>span:first-child{font-size:17px}.eyebrow{font-size:10px;letter-spacing:1.3px;font-weight:650;color:#5c705b}.welcome{position:fixed;left:7%;top:50%;transform:translateY(-50%);width:350px;max-height:calc(100dvh - 120px);overflow:auto;padding:30px;background:#f7f3e9f5;border:1px solid #c8ccba;border-radius:12px;box-shadow:0 12px 70px #3c37251a}.welcome h1{font-family:Georgia,"Apple SD Gothic Neo",serif;font-size:56px;line-height:1.2;letter-spacing:-1.5px;font-weight:400;margin:22px 0 16px}.welcome p{font-size:14px;line-height:1.85;color:#52664f;margin-bottom:25px;word-break:keep-all;overflow-wrap:anywhere}.welcome .primary{width:100%;display:flex;align-items:center;justify-content:space-between}.welcome-note{display:block;text-align:center;margin-top:15px;font-size:11px;color:#5d7059}.language-row{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px}.language-row select{min-width:132px}.welcome-language{padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}.controls,.menu{position:fixed;right:24px;top:84px;bottom:24px;width:366px;overflow:auto;background:#f8f4eafa;border:1px solid #b8c0ad;border-radius:12px;padding:22px;box-shadow:0 16px 60px #1e302326;scrollbar-gutter:stable;overscroll-behavior:contain}.menu{width:390px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.panel-heading h2{margin:4px 0 0;font-size:24px;line-height:1.3;letter-spacing:-.5px;font-weight:600;word-break:keep-all}.icon-button{flex:none;min-width:44px;padding:2px 10px;font-size:25px;line-height:1}.menu p{font-size:13px;line-height:1.85;color:#52634f;word-break:keep-all;overflow-wrap:anywhere}.menu .language-row{margin-bottom:18px}.location-card{padding:14px 16px;border:1px solid #c9cfbd;border-radius:8px;background:#eef0e5}.location-card>div{display:flex;align-items:center;gap:14px;margin-top:7px}.location-card strong{font-family:Georgia,serif;font-size:35px;line-height:1.15;font-weight:400}.location-card #place-label{font-size:12px;line-height:1.6}.location-card small{font-size:11px;color:#5e715a}.connection{display:flex;align-items:center;gap:7px;font-size:11px;margin-top:11px;color:#52664f}.connection:before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:#a87430}.connection.live:before{background:#458567}.menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.menu-actions button{font-size:12px;padding:10px;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}.menu .volume{font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:20px 0}.volume input{min-width:0;width:150px;accent-color:#3f7053}.menu details{font-size:12px;border-top:1px solid var(--line);padding:15px 0;line-height:1.8}.menu summary{min-height:24px;display:list-item;list-style-position:inside}.menu a{color:#315b48}.menu pre{font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}.menu .leave{width:100%;margin-top:12px}.car-status{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:6px;background:#203b33;color:#eec58b;margin-bottom:10px;gap:12px}.car-status strong{font-family:monospace;font-size:27px;font-weight:400;white-space:nowrap}.car-status small{font-size:11px;color:#d9e3ca;line-height:1.65;display:block;max-width:158px;text-align:right;word-break:keep-all}.car-status.warning{background:#682e26;color:#ffdfb0}.stops{font-size:12px;line-height:1.6;color:#52654f;min-height:24px;margin:6px 0 12px}.controls{display:flex;flex-direction:column;overflow:hidden}.controls .panel-heading{flex:none}.controls #panel-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}.floor-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:44px;flex:1;min-height:0;overflow:auto;gap:6px;padding:2px}.floor-grid button{font-family:monospace;font-size:15px;min-height:42px;padding:6px}.floor-grid button.current{border-bottom:3px solid #638369}.door-actions,.hall-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px;flex:none}.door-actions{padding-top:12px;border-top:1px solid var(--line)}.door-actions button{font-size:14px;min-height:52px}.door-actions small{display:block;font-size:11px;margin-top:4px}.hall-actions button{font-size:24px}.hall-actions small{display:block;font-size:12px;margin-top:4px}.panel-note{font-size:11px;line-height:1.7;color:#5d7057;margin:13px 0 0;flex:none;word-break:keep-all}.call-state{font-size:13px;line-height:1.8;color:#52664f;margin-top:15px}.controls:has(.hall-actions){bottom:auto;max-height:calc(100dvh - 108px)}.walkbar{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom))}.walkbar .primary{display:flex;align-items:center;justify-content:center;gap:15px;min-height:48px;font-size:13px;padding:12px 16px;box-shadow:0 2px 15px #203b3318}kbd{font:inherit;font-size:11px;border:1px solid #738d71;border-radius:4px;padding:2px 5px;color:#f4f7e9}.announcement{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#243e34f5;color:#fff8e5;border-radius:8px;padding:12px 18px;font-size:13px;width:max-content;max-width:min(500px,calc(100vw - 36px));text-align:center;line-height:1.7;word-break:keep-all;pointer-events:none;opacity:0;transition:opacity .2s}.announcement.show{opacity:1}.touch-walk{display:none;position:fixed;left:max(20px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom))}.virtual-stick{width:116px;height:116px;position:relative;border:2px solid #4c6c52;background:#f2f0e3d9;box-shadow:0 2px 15px #203b3312}.stick-thumb{width:44px;height:44px;background:#45694d;border:2px solid #e5ecd7;box-shadow:0 2px 5px #203b3330}.stick-axis:before,.stick-axis:after{content:"";position:absolute;left:50%;top:50%;background:#6c836b5c;transform:translate(-50%,-50%);pointer-events:none}.stick-axis:before{height:1px;width:78px}.stick-axis:after{width:1px;height:78px}.virtual-stick.is-active{background:#f7f3e9ed;border-color:#264e35}.virtual-stick.is-active .stick-thumb{background:#284e36}body:has(#menu:not([hidden])) .touch-walk,body:has(#controls:not([hidden])) .touch-walk{visibility:hidden;pointer-events:none}body:has(#menu:not([hidden])) .walkbar,body:has(#controls:not([hidden])) .walkbar{display:none}
@media(pointer:coarse){.touch-walk{display:block}.walkbar kbd{display:none}}
@media(min-height:820px) and (min-width:701px){.floor-grid{grid-auto-rows:auto;grid-template-rows:repeat(9,minmax(34px,1fr));overflow:visible}.floor-grid button{min-height:34px}}
@media(max-width:700px){.topbar{padding:16px;gap:10px}#menu-button{font-size:12px;padding:10px 13px}.welcome{left:16px;right:16px;top:auto;bottom:max(24px,env(safe-area-inset-bottom));transform:none;width:auto;max-width:360px;max-height:calc(100dvh - 104px);padding:25px}.welcome h1{font-size:45px;margin-top:18px}.welcome p{font-size:14px}.controls,.menu{right:12px;top:76px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px);padding:19px}.panel-heading{margin-bottom:16px}.panel-heading h2{font-size:23px}.car-status{padding:10px 12px}.car-status small{max-width:150px}.walkbar{right:max(16px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom))}.walkbar .primary{font-size:12px;max-width:calc(100vw - 166px);white-space:normal}.announcement{bottom:155px;font-size:12px}.controls:has(.hall-actions){max-height:calc(100dvh - 90px)}}
@media(max-height:500px){.topbar{padding:12px 16px}.welcome{top:76px;bottom:16px;transform:none;max-height:none;width:360px;padding:20px}.welcome h1{font-size:34px;margin:10px 0}.welcome p{margin:10px 0 16px}.controls,.menu{top:12px;bottom:12px;width:min(390px,calc(100vw - 96px));padding:17px}.controls:has(.hall-actions){max-height:calc(100dvh - 24px)}.floor-grid{grid-auto-rows:44px}.panel-note{display:none}.touch-walk{left:18px;bottom:18px}.virtual-stick{width:96px;height:96px}.stick-thumb{width:38px;height:38px}.walkbar{bottom:18px;right:18px}.announcement{bottom:94px}.panel-heading{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){button,.announcement{transition:none}}
body:has(#menu:not([hidden])) #menu-button{visibility:hidden}
@media(max-width:700px){.menu{top:12px}}
.menu>.panel-heading{position:sticky;top:0;z-index:2;background:#f8f4ea;padding-bottom:12px;margin-bottom:16px}
@media(max-height:500px) and (min-width:650px){
  .controls:has(.floor-grid){width:min(760px,calc(100vw - 32px));right:16px;top:12px;bottom:12px}
  .controls:has(.floor-grid) .panel-heading{min-height:44px;margin-bottom:10px}
  .controls:has(.floor-grid) .panel-heading .eyebrow{display:none}
  .controls:has(.floor-grid) .panel-heading h2{font-size:21px}
  .controls:has(.floor-grid) #car-display{position:absolute;top:17px;left:132px;right:86px}
  .controls:has(.floor-grid) .car-status{height:44px;padding:5px 12px;margin:0}
  .controls:has(.floor-grid) .car-status small{font-size:10px;line-height:1.4;max-width:240px}
  .controls:has(.floor-grid) .stops{margin:3px 0 6px;min-height:20px}
  .controls:has(.floor-grid) .floor-grid{grid-template-columns:repeat(9,minmax(44px,1fr));grid-template-rows:repeat(3,minmax(44px,1fr));grid-auto-rows:44px;gap:5px;overflow:auto}
  .controls:has(.floor-grid) .floor-grid button{min-height:44px}
  .controls:has(.floor-grid) .door-actions{margin-top:8px;padding-top:8px}
  .controls:has(.floor-grid) .door-actions button{min-height:48px;padding:5px 12px}
}
.menu>.panel-heading::before{content:"";position:absolute;inset:-24px -24px 0;background:#f8f4ea;z-index:-1;pointer-events:none}
.room-access{padding:14px 0;border-top:1px solid var(--line)}
.room-access strong{display:block;color:var(--green);font-size:14px}
.welcome .room-access p{margin:4px 0 0;font-size:13px;line-height:1.6}
.welcome .room-access .room-error{margin-top:8px;color:#813e34}
.country-option{display:flex;align-items:flex-start;gap:8px;color:#344b42;font-size:13px;line-height:1.5}
.country-option input{flex:none;margin:3px 0 0;accent-color:var(--green)}
.menu .country-option{margin:0 0 10px}
.menu:has(.country-option:not([hidden])) .language-row{margin-bottom:10px}
@media(min-width:701px) and (min-height:501px){
  .menu:has(.country-option:not([hidden])){top:64px}
  .menu:has(.country-option:not([hidden])) .volume{margin:16px 0}
}
.room-actions{display:grid;gap:8px}
.room-actions a{align-self:center;padding:6px 4px;text-align:center;color:var(--green);font-size:13px}
.lobby-queue{grid-area:actions;padding:12px 14px;border:1px solid #c9cfbd;border-radius:8px;background:#eef0e5}
.lobby-queue h2{margin:0 0 4px;font-size:17px;line-height:1.4;word-break:keep-all}
.welcome .lobby-queue p{margin:0;font-size:13px;line-height:1.55}
.lobby-queue button{margin-top:10px}
.welcome.is-queued .welcome-intro,.welcome.is-queued .room-access{display:none}
@media(max-height:500px){.welcome{width:min(360px,calc(100vw - 32px))}}
@media(max-height:500px) and (min-width:650px){
  .welcome{left:16px;width:min(620px,calc(100vw - 32px));max-width:none;max-height:none;padding:16px 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"eyebrow eyebrow" "title access" "body access" "actions language";gap:8px 24px;align-content:start}
  .welcome>.eyebrow{grid-area:eyebrow}.welcome h1{grid-area:title;margin:0}.welcome .welcome-intro{grid-area:body;margin:0;font-size:13px;line-height:1.7}.welcome .room-access{grid-area:access;align-self:start;padding:10px 0 0}.welcome .room-actions{grid-area:actions}.welcome-language{grid-area:language;align-self:end;margin:0;padding-top:8px}
  .welcome.is-queued{bottom:auto;grid-template-areas:"eyebrow actions" "title actions" "language actions"}
}
@media(max-width:700px) and (min-height:700px){
  .controls:has(.floor-grid) .panel-heading .eyebrow{display:none}
  .controls:has(.floor-grid) .panel-heading{min-height:44px;margin-bottom:12px}
  .controls:has(.floor-grid) .car-status{padding:8px 12px;margin-bottom:8px}
  .controls:has(.floor-grid) .car-status small{line-height:1.5}
  .controls:has(.floor-grid) .car-status.warning small{max-width:190px}
  .controls:has(.floor-grid) .stops{min-height:20px;margin:4px 0 6px}
  .controls:has(.floor-grid) .floor-grid{gap:5px}
  .controls:has(.floor-grid) .door-actions{margin-top:10px;padding-top:8px}
  .controls:has(.floor-grid) .door-actions button{min-height:48px;padding:6px 10px}
}
.announcement{z-index:20}
.controls .announcement,.menu .announcement{position:static;transform:none;width:auto;max-width:none;margin:0 0 10px;flex:none}
.menu .announcement{margin:10px 0 0}
.controls .announcement:not(.show),.menu .announcement:not(.show){display:none}
.language-row select{appearance:none;-webkit-appearance:none;height:44px;min-height:44px;line-height:22px;padding:10px 36px 10px 14px;background-image:linear-gradient(45deg,transparent 50%,#45694d 50%),linear-gradient(135deg,#45694d 50%,transparent 50%);background-position:calc(100% - 19px) 19px,calc(100% - 14px) 19px;background-size:5px 5px;background-repeat:no-repeat}
html[lang=ko] .welcome h1{font-size:clamp(30px,10vw,42px);letter-spacing:-1px;word-break:keep-all}
@media(max-height:500px){html[lang=ko] .welcome h1{font-size:34px}}

/* Prevent iOS selection/callouts on game controls while retaining native fields. */
:where(#world,.topbar,.topbar *,.welcome,.welcome *,.controls,.controls *,.menu,.menu *,.walkbar,.walkbar *,.touch-walk,.touch-walk *){user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
button,button *,summary,summary *{touch-action:manipulation}
input,textarea,select,option,[contenteditable=true],.menu pre{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}
a,a *{user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}
/* First-person controls leave sound as the final, full-width menu action. */
.menu-actions #sound{grid-column:1/-1}
.hud-actions{display:flex;align-items:center;gap:8px}
.sound-shortcut{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:10px;background:#f7f3e9f2;box-shadow:0 2px 12px #203b3310}
.sound-shortcut svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sound-shortcut[aria-pressed=false] .sound-waves,.sound-shortcut[aria-pressed=true] .sound-slash{display:none}
body:has(#menu:not([hidden])) #sound-shortcut{visibility:hidden}

.local-weather{display:grid;gap:3px;padding-top:8px;margin-top:9px;border-top:1px solid #c9cfbd;font-size:13px;line-height:1.4}
.local-weather>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px}
.local-weather small{font-size:11px;color:#52634f}

/* The entrance masthead follows the Aquarium's stacked world mark. */
body:not(.in-world) .topbar { isolation: isolate; }
body:not(.in-world) .topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 340px);
  height: 132px;
  z-index: -1;
  background: radial-gradient(ellipse 340px 132px at top left, #19261e 8%, #19261ed9 46%, transparent 100%);
  pointer-events: none;
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f5e7;
  text-decoration: none;
  text-shadow: 0 1px 5px #101912;
}
.brand-icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 1px solid #71876a;
  border-radius: 50%;
  background: #15271de8;
  color: #dce5a1;
}
.brand-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-platform, .brand-world { display: block; }
.brand-platform {
  color: #e4eccf;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1.2;
}
.brand-world {
  margin-top: 1px;
  font-size: 16px;
  font-weight: 580;
  line-height: 1.15;
}
@media (max-width: 480px) {
  .brand { gap: 7px; }
  .brand-icon { width: 34px; height: 34px; padding: 5px; }
}
.in-world .brand { display: none; }

@media (pointer: coarse) {
  body {
    --stick-size: clamp(122px, 33vw, 144px);
    --touch-left: max(20px, calc(env(safe-area-inset-left) + 10px));
    --touch-right: max(24px, calc(env(safe-area-inset-right) + 12px));
    --touch-bottom: max(24px, calc(env(safe-area-inset-bottom) + 10px));
  }
  .touch-walk { left: auto; right: var(--touch-right); bottom: var(--touch-bottom); }
  .virtual-stick { width: var(--stick-size); height: var(--stick-size); }
  .stick-thumb { width: 48px; height: 48px; }
  .walkbar { left: var(--touch-left); right: auto; bottom: var(--touch-bottom); }
  .walkbar .primary {
    max-width: calc(100vw - var(--touch-left) - var(--touch-right) - var(--stick-size) - 16px);
  }
  .announcement { bottom: calc(var(--touch-bottom) + var(--stick-size) + 12px); }
}
@media (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  body { --stick-size: 110px; }
  .stick-thumb { width: 44px; height: 44px; }
}

.season-status {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  max-width: calc(100vw - 164px);
  padding: 8px 12px;
  border: 1px solid #a99666;
  border-radius: 8px;
  background: #253d34f2;
  color: #fff2d5;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.welcome {
  border-color: #b09463;
  background: linear-gradient(125deg, #fff4ddfa, #f9f2e5fa 66%, #ffebd9fa);
}
.welcome::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: repeating-linear-gradient(125deg, #992d43 0 11px, #f9e7bc 11px 19px, #32664c 19px 30px, #f9e7bc 30px 38px);
  pointer-events: none;
}
.welcome > .eyebrow { color: #754432; }
.welcome h1 { color: #84283b; font-size: clamp(38px, 4vw, 51px); }
.welcome .primary { background: #90334a; border-color: #90334a; }
.welcome .primary:hover { background: #762438; border-color: #762438; }
@media (max-height: 500px) {
  .welcome h1 { font-size: 34px; }
}
