/* C2: one calm surface for friends, tools and navigation. */
:root{--c2-surface:#fff;--c2-soft:#f3f5ef;--c2-text:#2f4037;--c2-muted:#68746b;--c2-primary:#304f3b;--c2-selected:#eef4d5;--c2-border:#e5e9e0;--c2-focus:#67823a;--c2-top:20px;--c2-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
body{color:var(--c2-text);font-family:Pretendard,'Noto Sans KR','Malgun Gothic',sans-serif;letter-spacing:-.25px}
button,input,select{font-family:inherit}button{transition:background .14s,color .14s,transform .14s}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--c2-focus);outline-offset:3px}button:disabled{opacity:.35}
.glass{background:#fffffff5;border:1px solid var(--c2-border);box-shadow:0 8px 32px #23392b12;backdrop-filter:blur(14px)}
.primary{background:var(--c2-primary);border:1px solid var(--c2-primary);box-shadow:none;border-radius:16px;color:#fff;font-size:13px;min-height:44px;padding:12px 20px;font-weight:600}.primary:hover{background:#233e2d}
.secondary{background:var(--c2-soft);color:var(--c2-text);border:1px solid var(--c2-border);box-shadow:none;border-radius:16px;min-height:44px}.secondary:hover{background:#e9efdb}.eyebrow{color:var(--c2-muted);letter-spacing:1.5px}
body>.brand,body>.top-tools,#mini-map,#player-chip,.keyboard,#animal-card,#inventory,#observe,#balloon-action{display:none!important}
#c2-shell{position:fixed;top:var(--c2-top);left:50%;transform:translateX(-50%);width:min(960px,calc(100% - 48px));z-index:8}
.c2-dock{background:var(--c2-surface);border:1px solid #ffffffb3;border-radius:22px;padding:4px 12px 8px;box-shadow:0 8px 36px #263f2912}
.c2-dock-head{height:44px;display:flex;align-items:center;gap:8px}
.c2-desktop-identity{flex:1;min-width:0}.c2-identity{display:flex;align-items:center;gap:14px;min-width:0}
.c2-brand{display:flex;gap:7px;align-items:center;white-space:nowrap;text-decoration:none;color:var(--c2-text);font-size:14px;letter-spacing:-.4px}.c2-brand>svg{width:22px;height:22px;color:#859751}.c2-brand strong{font-weight:750}
.c2-nickname{font-size:11px;color:var(--c2-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:165px}
.c2-tools{display:flex;align-items:center;margin-left:auto;gap:2px}
.c2-icon,.c2-card-action,.c2-arrow{display:grid;place-items:center;background:transparent;color:#65765d;border:0;flex-shrink:0;border-radius:14px;width:44px;height:44px;padding:0;position:relative}
.c2-icon svg,.c2-card-action svg,.c2-arrow svg{width:18px;height:18px;stroke-width:1.6}.c2-icon:hover,.c2-card-action:hover,.c2-arrow:hover{background:var(--c2-soft)}
.c2-icon.is-owned:after{content:'';position:absolute;right:8px;top:7px;width:5px;height:5px;background:#8b9f58;border-radius:50%}
.c2-icon .c2-model{width:36px;height:36px}
#friends-toggle{display:flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;height:40px;width:132px;border-radius:14px;background:var(--c2-selected);font-size:12px;color:#455b3d;touch-action:none}
#friends-toggle svg{width:14px;height:14px;transition:transform .24s}
#friends-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.c2-navigation{display:flex;gap:2px;align-items:center}.c2-navigation .c2-icon{color:#3b4c41}
.c2-navigation .c2-icon[aria-expanded=true]{background:var(--c2-selected)}
.c2-card-row{display:flex;align-items:center;gap:6px;height:60px}
.c2-track{display:flex;align-items:center;gap:8px;flex:1;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x;min-width:0}
.c2-track::-webkit-scrollbar{display:none}
.c2-arrow{width:22px;color:#83917e}.c2-arrow svg{width:16px;height:16px}
.c2-friend{display:flex;align-items:center;gap:0;min-width:0;flex:0 0 calc((100% - 16px)/3);height:56px;padding:4px 7px;border-radius:16px;background:#f6f7f2;scroll-snap-align:start}
.c2-friend.is-selected{background:var(--c2-selected)}
.c2-friend-select{display:flex;align-items:center;gap:7px;flex:1;min-width:0;height:48px;background:transparent;text-align:left;padding:0;color:#293d31;font-size:12px;font-weight:650;white-space:nowrap}
.c2-friend-select span{overflow:hidden;text-overflow:ellipsis}.c2-model{object-fit:contain;width:44px;height:44px;flex-shrink:0}
.c2-card-action svg{width:17px;height:17px}
.c2-friend.is-selected .c2-observe,.c2-observe.is-observing{background:var(--c2-primary);color:#fff}
.c2-observe.is-observing:after{content:'';position:absolute;top:5px;right:5px;width:4px;height:4px;background:#d6eda3;border-radius:50%}
.c2-dock[data-expanded=false]{padding-bottom:4px}
#c2-shell:not(.is-walking) .c2-card-row{display:none}
#c2-shell.is-preview .c2-card-row{display:none}
#c2-shell:not(.is-walking) #friends-toggle{visibility:hidden}
#c2-shell.is-preview #friends-toggle{visibility:hidden}
#c2-scrim{position:fixed;inset:0;z-index:6;background:#24382b12;cursor:default}
.c2-dialog{position:fixed;inset:auto;top:calc(var(--c2-top) + 64px);left:50%;transform:translateX(-50%);margin:0;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 112px);overflow:auto;z-index:9;background:#fff;border:1px solid var(--c2-border);border-radius:22px;box-shadow:0 18px 64px #21362826;padding:24px;color:var(--c2-text);animation:c2-panel-in .22s ease}
.c2-dialog header{position:relative;min-height:44px;display:flex;align-items:center;margin:0 0 16px;padding:0 42px 16px 0;border-bottom:1px solid var(--c2-border)}
.c2-dialog h2{font-size:22px;line-height:1.3;letter-spacing:-.8px;margin:0 0 16px;font-weight:700}
.c2-dialog header h2{margin:0}.c2-dialog .close{top:12px;right:12px;color:var(--c2-muted);width:44px;height:44px;background:var(--c2-soft);font-size:24px}.c2-dialog header .close{top:-6px;right:-8px}
.c2-dialog p{color:var(--c2-muted);font-size:13px;line-height:1.8}.c2-dialog .eyebrow{display:none}.c2-dialog>h2{padding-right:32px}.c2-dialog .wide{margin-top:12px}
.c2-panel-note{text-align:center;margin:24px 0}.c2-more-items{display:grid;gap:8px}
.c2-menu-item{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:14px;background:var(--c2-soft);border-radius:16px;color:var(--c2-text);font-size:14px}
.c2-menu-item>svg{width:20px;height:20px;flex-shrink:0;color:#687b5d}.c2-menu-item svg:last-child{margin-left:auto;width:16px}
#map-dialog{width:min(540px,calc(100vw - 32px));padding:20px;max-height:calc(100dvh - 106px)}
#map-dialog header{margin-bottom:12px;padding-bottom:12px}
#map-dialog header p{font-size:12px;margin:8px 0 0}
.c2-map{padding:8px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;background:#edf1dc;border-radius:18px}
.c2-map section{display:flex;flex-direction:column;gap:6px;min-width:0;padding:6px;border-radius:16px}
.c2-map-sea{background:#d9e7df}.c2-map-middle{background:#f8f4e3}.c2-map-land{background:#e8efd9}
.c2-map h3{font-size:12px;color:#63755b;font-weight:600;text-align:center;margin:1px 0 6px}
.c2-map button{border:1px solid #dce3d6;background:#fff;border-radius:13px;min-height:40px;padding:7px 4px;font-size:11px;line-height:1.3;color:#46564b}
.c2-map button:hover{background:#f5f8eb}.c2-map button[aria-pressed=true]{background:var(--c2-primary);color:#fff;border-color:var(--c2-primary)}
.c2-map .c2-map-south{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;padding:0;gap:7px}
.c2-map .c2-map-service{display:flex;align-items:center;justify-content:center;gap:6px;background:transparent;font-size:10px}
.c2-map-service svg{width:15px;height:15px}.c2-map-plaza{text-align:center;font-size:11px!important;margin:9px 0}
.c2-map-entry{grid-column:1/-1;text-align:center;font-size:10px;color:#68785f;padding:3px}
.c2-map-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px}
.c2-map-selection b{font-size:14px}.c2-map-selection small{display:block;font-size:11px;margin-top:5px;color:var(--c2-muted)}
.c2-map-selection .primary{font-size:12px}
#held-content .c2-item-model{display:block;margin:12px auto;width:128px;height:128px}
#food-menu{grid-template-columns:1fr 1fr;gap:8px}
.food-option{display:flex;gap:9px;align-items:center;justify-content:center;background:var(--c2-soft);border-color:var(--c2-border);min-height:72px;font-size:12px}.food-option img{width:48px;height:48px}
.audio-channel{border-color:var(--c2-border)}.audio-toggle input,.audio-volume input{accent-color:var(--c2-primary)}
.help-dialog ul{color:var(--c2-muted);font-size:13px}.help-dialog li{margin-bottom:12px}
.intro{z-index:4;background:linear-gradient(90deg,#213e2921,transparent 70%)}
.intro-card{border-radius:24px;background:#fffffff5;box-shadow:0 16px 50px #24382b1c;padding:30px;top:50%;transform:translateY(-40%)}
.intro h2{color:#2f4939;letter-spacing:-2px;font-weight:750;font-size:40px;margin:18px 0}
.intro-copy,.intro-foot,.name-card small{color:var(--c2-muted)}.name-card{border-color:var(--c2-border)}.name-card strong{font-size:15px}.choice{border-color:var(--c2-border);color:var(--c2-muted)}.choice.active{background:var(--c2-selected);border-color:#d6e3b1;color:var(--c2-primary)}.text-button{color:#627b52}.intro-note{display:none}
.destination{z-index:5;top:150px;bottom:auto;border-radius:24px;max-width:calc(100vw - 32px);min-height:44px;font-size:12px;padding:5px 6px 5px 17px;color:#36543e;display:flex;align-items:center;white-space:nowrap;box-shadow:0 5px 25px #23472912}
.destination>span{overflow:hidden;text-overflow:ellipsis}.destination button{width:34px;height:34px;flex-shrink:0;padding:0;font-size:20px;border-radius:50%;background:var(--c2-soft)}
.c2-collapsed .destination{top:88px}
.c2-run{display:none;position:fixed;bottom:24px;right:28px;z-index:5;border:1px solid #dbe5d5;background:#f8fbef;width:44px;height:44px;border-radius:50%;padding:10px;color:#36493c;box-shadow:0 3px 12px #263c231c}
.walking .c2-run{display:block}.c2-run svg{width:24px;height:24px;stroke-width:1.8}.c2-run[aria-pressed=true]{background:var(--c2-primary);color:#fff}
.sit-action{bottom:26px;font-size:12px;min-width:100px}.consume-action{bottom:28px;left:auto;right:88px;transform:none;font-size:12px;padding:11px 16px}
#toast{background:#304f3bf0;border:0;color:#fff;bottom:80px;z-index:11;font-size:12px;box-shadow:0 4px 18px #24362615}
#world-hotspots{z-index:5}.world-hotspot{display:grid;place-items:center;width:44px;height:44px;padding:7px;border-radius:50%;border:0;background:#fffffff5;box-shadow:0 4px 16px #2e4a2926;color:#4e6549}.world-hotspot svg{width:19px;height:19px;stroke-width:1.7}.world-hotspot::after{display:none}
.habitat-browser{background:#fffffff5;border:1px solid var(--c2-border);box-shadow:0 8px 24px #28372916}.habitat-switch select{background:var(--c2-soft);border-color:var(--c2-border);color:var(--c2-text)}.habitat-browser small,.habitat-browser p{color:var(--c2-muted)}
#joystick{background:#f3f7e9ec;border:1px solid #dce5d4;width:64px;height:64px;left:18px;bottom:180px;box-shadow:0 3px 12px #263c231c}
#joystick span{width:30px;height:30px;left:16px;top:16px;background:#a7b69b;box-shadow:none}
.c2-panel-open .c2-run,.c2-panel-open #joystick,.c2-panel-open #consume-action,.c2-panel-open #sit-action{visibility:hidden}
@keyframes c2-panel-in{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}
@media(min-width:768px) and (max-width:950px){.c2-nickname{max-width:100px;font-size:10px}.c2-identity{gap:8px}.c2-friend-select{gap:3px;font-size:11px}.c2-friend .c2-model{width:36px}.c2-card-action{width:38px}#friends-toggle{width:100px}}
@media(max-width:767px){
 :root{--c2-top:calc(12px + env(safe-area-inset-top,0px))}
 #c2-shell{inset:0;transform:none;width:auto;pointer-events:none}
 #c2-shell>*{pointer-events:auto}
 .c2-identity{position:absolute;top:var(--c2-top);left:12px;right:12px;height:60px;border-radius:20px;background:#fffffff5;box-shadow:0 8px 30px #263f2910;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:24px 16px;gap:0 6px;padding:10px 12px}
 .c2-brand{grid-row:1;grid-column:1;font-size:13px;gap:5px}.c2-brand>svg{width:20px;height:20px}
 .c2-nickname{grid-row:2;grid-column:1;margin-left:25px;font-size:10px;max-width:100%}
 .c2-tools{grid-column:2;grid-row:1/3;gap:0}.c2-tools .c2-icon{width:44px;height:44px}.c2-icon svg{width:17px;height:17px}
 .c2-desktop-identity{display:none}
 .c2-dock{position:absolute;left:12px;right:12px;bottom:calc(var(--c2-bottom) + 49px);border-radius:22px 22px 0 0;padding:0 10px 4px;box-shadow:none}
 .c2-dock-head{height:44px;justify-content:center}
 #friends-toggle{height:44px;width:132px;background:transparent;color:var(--c2-muted);font-size:11px;gap:9px}
 #friends-toggle:before{content:'';width:26px;height:3px;background:#cbd3c4;border-radius:3px}
 #friends-toggle svg{width:13px;height:13px}
 .c2-card-row{height:56px;gap:6px}.c2-friend{flex-basis:100%;height:52px;padding:4px 6px}
 .c2-friend-select{font-size:12px;gap:6px;height:44px}.c2-friend .c2-model{width:36px;height:36px}
 .c2-track{gap:8px}.c2-card-action{width:44px;height:44px}.c2-card-action svg{width:16px;height:16px}
 .c2-arrow{width:22px;height:44px}.c2-arrow svg{width:14px}
 .c2-navigation{position:absolute;bottom:var(--c2-bottom);left:12px;right:12px;height:49px;border-radius:0 0 22px 22px;border-top:1px solid var(--c2-border);background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:2px 10px}
 .c2-navigation .c2-icon{width:100%;height:44px;border-radius:12px}
 .c2-navigation .c2-icon+ .c2-icon{border-left:1px solid var(--c2-border);border-top-left-radius:0;border-bottom-left-radius:0}
 .c2-dock[data-expanded=false]{padding-bottom:4px}
 #c2-shell:not(.is-walking) .c2-dock,#c2-shell.is-preview .c2-dock{display:none}
 #c2-shell:not(.is-walking) .c2-navigation,#c2-shell.is-preview .c2-navigation{border-radius:18px}
 .c2-dialog,#map-dialog{top:auto;left:12px;right:12px;bottom:calc(var(--c2-bottom) + 49px + 12px);width:auto;transform:none;max-height:calc(100dvh - var(--c2-top) - var(--c2-bottom) - 132px);padding:18px;border-radius:22px;animation-name:c2-sheet-in}
 .c2-panel-open .c2-dock{visibility:hidden}
 .c2-dialog header{padding-bottom:12px;margin-bottom:12px}.c2-dialog h2{font-size:20px}
 #map-dialog header h2{font-size:20px}#map-dialog header p{font-size:11px}
 .c2-map{gap:5px;padding:6px}.c2-map section{gap:5px;padding:4px}.c2-map h3{font-size:11px;margin:2px 0 6px}.c2-map button{min-height:44px;font-size:10px}
 .c2-map .c2-map-service{font-size:9px;gap:3px}.c2-map-service svg{width:13px;height:13px}.c2-map-plaza{font-size:10px!important;margin:8px 0}.c2-map .c2-map-south{gap:5px}
 .c2-map-selection{padding-top:12px}.c2-map-selection b{font-size:13px}.c2-map-selection .primary{padding:10px 15px}
 .intro-card{top:auto;bottom:82px;left:16px;width:min(365px,calc(100% - 32px));transform:none;padding:26px}.intro h2{font-size:35px;margin:12px 0}.intro-copy{font-size:12px;margin-bottom:18px}
 .intro-foot{margin:13px 0 0;font-size:10px}.name-card{margin:14px 0 18px;padding-top:12px}
 .walking #joystick{display:block;bottom:calc(var(--c2-bottom) + 169px)}
 .c2-run{bottom:calc(var(--c2-bottom) + 179px);right:18px}
 .c2-collapsed #joystick{bottom:calc(var(--c2-bottom) + 113px)}.c2-collapsed .c2-run{bottom:calc(var(--c2-bottom) + 123px)}
 .destination,.c2-collapsed .destination{top:calc(var(--c2-top) + 72px);bottom:auto;font-size:11px;min-height:40px}
 #toast{bottom:calc(var(--c2-bottom) + 235px);min-width:0;width:max-content;max-width:calc(100% - 32px);padding:11px 16px;font-size:11px}
 .sit-action{bottom:calc(var(--c2-bottom) + 164px);font-size:10px;min-height:44px}
 .consume-action{bottom:calc(var(--c2-bottom) + 232px);right:18px;left:auto;font-size:10px;min-height:44px;min-width:0;max-width:210px}
 .world-hotspot{width:44px;height:44px;padding:8px}
 #food-menu{grid-template-columns:1fr}.food-option:last-child{grid-column:auto}.food-option{min-height:56px;justify-content:flex-start;padding:6px 18px}.food-option img{width:40px;height:40px}
 .visitor-dialog p,.visitor-dialog small{text-align:center}
 .habitat-browser{bottom:calc(var(--c2-bottom) + 61px);padding:14px}.habitat-heading{margin-bottom:8px}.habitat-heading .eyebrow{font-size:8px}.habitat-switch select{font-size:13px}.habitat-switch .secondary{padding:8px}.habitat-switch .primary{font-size:10px;padding:8px}.habitat-browser p{font-size:10px}.habitat-browser>small{font-size:9px}
}
@keyframes c2-sheet-in{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@media(max-width:360px){.c2-identity{padding:10px}.c2-brand{font-size:12px}.c2-tools .c2-icon{width:40px}.c2-nickname{font-size:9px}.c2-friend-select{font-size:11px;gap:2px}.c2-dialog,#map-dialog{padding:14px}.c2-map section{padding:2px}.c2-map button{font-size:9px}.intro-card{padding:22px}.intro h2{font-size:30px}}
@media(max-height:600px){.intro-card{top:88px;bottom:74px;max-height:calc(100dvh - 162px);overflow:auto;transform:none}.intro h2{font-size:26px;margin:10px 0}.intro-copy{display:none}.c2-dialog,#map-dialog{overflow:auto}.c2-panel-note{margin:14px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:767px){.c2-panel-open .c2-navigation{border-radius:18px;border-top:0}}

/* Context actions live in the scene or the header inventory. */
#consume-action,#sit-action{display:none!important}.c2-icon.is-consuming{background:var(--c2-selected)}

/* Desktop speed control travels with the header; touch keeps its thumb control. */
@media(min-width:768px){.c2-tools .c2-run{position:static;inset:auto;margin:0;flex-shrink:0;width:44px;height:44px;padding:12px;border:0;border-radius:14px;background:transparent;box-shadow:none;color:#65765d;z-index:auto}.c2-tools .c2-run svg{width:20px;height:20px;stroke-width:1.7}.c2-tools .c2-run:hover{background:var(--c2-soft)}.c2-tools .c2-run[aria-pressed=true]{background:var(--c2-primary);color:#fff}}
@media(min-width:768px) and (max-width:850px){.c2-nickname{max-width:76px}#friends-toggle{width:92px}}
