:root {
  --bone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 32'%3E%3Ccircle cx='9' cy='9' r='8'/%3E%3Ccircle cx='9' cy='23' r='8'/%3E%3Ccircle cx='43' cy='9' r='8'/%3E%3Ccircle cx='43' cy='23' r='8'/%3E%3Crect x='8' y='9' width='36' height='14' rx='6'/%3E%3C/svg%3E");
  --ink: #07131d;
  --cream: #f7e6c2;
  --cyan: #2fd6ee;
  --gold: #ffc62e;
  --pink: #ff5c7a;
  --panel: rgba(255, 255, 255, 0.94);
  --shadow: 0 10px 30px rgba(7, 19, 29, 0.25);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #6cc6ff; color: var(--ink); font-family: 'Fredoka', 'Jua', system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
html:lang(ko) body, html:lang(ja) body { font-family: 'Fredoka', 'Jua', system-ui, sans-serif; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* 아이콘 */
i { display: inline-block; flex: none; }
.coin-ic { width: 26px; height: 16px; background: linear-gradient(180deg, #fff1b0, #ffc62e 55%, #d98b00); -webkit-mask: var(--bone) center/contain no-repeat; mask: var(--bone) center/contain no-repeat; }
.card-ic { width: 18px; height: 23px; border-radius: 5px; background: linear-gradient(135deg, #ffe58a, #ffb800); box-shadow: inset 0 0 0 3px #fff7d6, 0 2px 0 rgba(0,0,0,.15); }
.i-play { width: 0; height: 0; border-left: 22px solid currentColor; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 4px; }
.i-pause { width: 16px; height: 18px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.i-sound { width: 24px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-sound.off .i-sound { opacity: .35; }
.i-out { width: 12px; height: 12px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(0deg); margin-left: 4px; }
.i-again { width: 22px; height: 22px; border: 4px solid currentColor; border-top-color: transparent; border-radius: 50%; }
.i-share { width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7l-6.7 3.4a3 3 0 1 0 0 3.2L15 17a3 3 0 1 0 3-1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7l-6.7 3.4a3 3 0 1 0 0 3.2L15 17a3 3 0 1 0 3-1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.i-home { width: 22px; height: 20px; background: currentColor; clip-path: polygon(50% 0, 100% 45%, 86% 45%, 86% 100%, 14% 100%, 14% 45%, 0 45%); }
.i-x { width: 18px; height: 18px; background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%); }
.i-crown { width: 20px; height: 16px; background: var(--gold); clip-path: polygon(0 100%, 0 20%, 25% 55%, 50% 0, 75% 55%, 100% 20%, 100% 100%); }

/* 버튼 */
.big-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 220px; height: 70px; padding: 0 34px; border-radius: 999px; font-size: 30px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #ffb13b, #ff7a1a); box-shadow: 0 7px 0 #c4520a, 0 14px 28px rgba(196, 82, 10, .35); text-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .08s; animation: pulse 1.6s ease-in-out infinite; }
.big-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 #c4520a; }
.mid-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 18px; border-radius: 18px; font-size: 19px; font-weight: 700; background: #fff; box-shadow: 0 5px 0 rgba(7,19,29,.18), 0 8px 18px rgba(7,19,29,.12); }
.mid-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(7,19,29,.18); }
.ic-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 4px 0 rgba(7,19,29,.15); }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* 화면 */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; z-index: 10; }
.screen.dim { background: rgba(7, 19, 29, .45); justify-content: center; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.row.col { flex-direction: column; gap: 18px; }

#menu { justify-content: space-between; padding: calc(28px + var(--safe-t)) 16px calc(26px + var(--safe-b)); pointer-events: none; }
#menu > * { pointer-events: auto; }
.logo-wrap { display: flex; flex-direction: column; align-items: center; animation: drop .7s cubic-bezier(.2,1.6,.4,1) both; }
.logo-img { width: min(78vw, 460px); height: auto; filter: drop-shadow(0 10px 20px rgba(7,19,29,.3)); }
.logo-img + .logo { display: none; }
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .82; font-weight: 700; font-style: italic; letter-spacing: -1px; }
.logo span { font-size: clamp(64px, 18vw, 120px); color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 6px 0 var(--cyan), 7px 9px 0 var(--ink); transform: skew(-8deg); }
.logo span + span { color: #fff; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.big-num { display: flex; align-items: baseline; gap: 4px; font-size: 64px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 28px; opacity: .6; }
.badge { padding: 4px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff5c7a, #ffb13b); color: #fff; font-weight: 700; letter-spacing: 2px; animation: pulse 1s infinite; }
.stats { display: flex; gap: 20px; font-size: 20px; flex-wrap: wrap; justify-content: center; }
.stats span { display: flex; align-items: center; gap: 6px; }
.stats small { font-size: 14px; opacity: .6; }
.rank { padding: 6px 18px; border-radius: 999px; color: #fff; font-family: 'Jua', 'Fredoka', sans-serif; font-size: 20px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.chal-m { margin-top: 8px; display: flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 18px; box-shadow: 0 4px 0 rgba(7,19,29,.15); animation: pulse 1.4s infinite; }
.chal-o { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.chal-o em { font-style: normal; font-weight: 700; padding: 2px 10px; border-radius: 8px; color: #fff; }
.chal-o em.win { background: #2bc46a; } .chal-o em.lose { background: #8d99a6; }
.over-card { width: 100%; max-width: 230px; border-radius: 16px; box-shadow: 0 6px 18px rgba(7,19,29,.25); cursor: pointer; }
.share-big { background: linear-gradient(180deg, #4fd2ff, #1f8cf0); box-shadow: 0 7px 0 #135ea8, 0 14px 28px rgba(19,94,168,.35); }
.share-big:active { box-shadow: 0 2px 0 #135ea8; }
#toast { position: fixed; left: 50%; bottom: calc(30px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 16px; background: #fff; font-weight: 700; z-index: 40; pointer-events: none; transition: .3s; box-shadow: 0 6px 20px rgba(7,19,29,.25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#nogl { display: none; }
body.nogl #nogl { display: grid; position: fixed; inset: 0; place-items: center; font-size: 24px; }
body.loading #btnPlay { opacity: .6; animation: none; }
.best-m small { font-size: 13px; opacity: .7; margin-left: -4px; }
.best-m .sep { width: 1px; height: 16px; background: rgba(255,255,255,.4); }
.hub-link { position: absolute; left: calc(14px + env(safe-area-inset-left, 0px)); top: calc(16px + var(--safe-t)); width: 54px; height: 54px; border-radius: 16px; }
.i-grid { width: 20px; height: 20px; background: radial-gradient(circle, currentColor 0 3.5px, transparent 4px) 0 0 / 10px 10px; }
.i-flag { width: 18px; height: 20px; background: linear-gradient(90deg, #07131d 0 3px, transparent 3px), conic-gradient(from 90deg at 50% 50%, #fff 0 25%, #07131d 0 50%, #fff 0 75%, #07131d 0) 3px 0 / 8px 8px no-repeat; background-size: auto, 15px 12px; }
.i-alt { width: 16px; height: 20px; background: #1fa8f0; clip-path: polygon(50% 0, 100% 45%, 66% 45%, 66% 100%, 34% 100%, 34% 45%, 0 45%); }
.i-star { width: 22px; height: 22px; background: linear-gradient(180deg, #fff1b0, #ffc62e); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.i-plane { width: 26px; height: 22px; background: linear-gradient(160deg, #fff 0 52%, #2fd6ee 52%); clip-path: polygon(0 45%, 100% 0, 62% 100%, 48% 62%); filter: drop-shadow(0 0 0 #07131d); }
.mid-btn .i-plane { background: linear-gradient(160deg, #1f8cf0 0 52%, #2fd6ee 52%); }
.i-paper { width: 18px; height: 22px; border-radius: 3px; background: repeating-linear-gradient(180deg, #fff 0 4px, #9fd3ff 4px 5px); box-shadow: inset 3px 0 0 #ff8fb1, 0 0 0 2px #07131d33; }
.i-arm { width: 22px; height: 22px; background: currentColor; clip-path: polygon(0 60%, 55% 60%, 55% 85%, 100% 45%, 55% 5%, 55% 30%, 0 30%); }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud > * { position: absolute; }
#touchzone { inset: 0; pointer-events: auto; z-index: 1; touch-action: none; }
#hud .tl { left: calc(14px + env(safe-area-inset-left, 0px)); top: calc(16px + var(--safe-t)); display: flex; gap: 10px; z-index: 20; }
#hud .tl .ic-btn { position: relative; width: 50px; height: 50px; border-radius: 16px; pointer-events: auto; touch-action: manipulation; }
#hud .tl .ic-btn::before { content: ''; position: absolute; inset: -6px; }
#dist { left: 50%; top: calc(10px + var(--safe-t)); transform: translateX(-50%); display: flex; align-items: baseline; gap: 2px; color: #fff; font-weight: 700; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 rgba(7,19,29,.3); font-variant-numeric: tabular-nums; }
#dist b { font-size: 50px; }
#dist small { font-size: 24px; }
.pill { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(7,19,29,.55); color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
#bonesH { right: calc(14px + env(safe-area-inset-right, 0px)); top: calc(22px + var(--safe-t)); }
#bonesH.bump { animation: bump .25s ease-out; }
@keyframes bump { 40% { transform: scale(1.2); } }
#route { left: 50%; top: calc(76px + var(--safe-t)); transform: translateX(-50%); width: min(64vw, 340px); height: 10px; }
#route .track { position: absolute; inset: 0; display: flex; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 2px 6px rgba(7,19,29,.25); }
#route .z { height: 100%; }
#route .z0 { flex: 500; background: #ffb46b; } #route .z1 { flex: 900; background: #9be15d; } #route .z2 { flex: 1600; background: #2fb8f0; } #route .z3 { flex: 1500; background: #f3e8ff; }
#route .mk { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); transform: translate(-50%, -50%); }
#route .mk.me { width: 22px; height: 18px; background: linear-gradient(160deg, #fff 0 52%, #2fd6ee 52%); clip-path: polygon(0 45%, 100% 0, 62% 100%, 48% 62%); filter: drop-shadow(0 1px 1px #000); }
#route .mk.best { width: 16px; height: 13px; margin-top: -14px; background: var(--gold); clip-path: polygon(0 100%, 0 20%, 25% 55%, 50% 0, 75% 55%, 100% 20%, 100% 100%); }
#route .mk.chal { width: 4px; height: 20px; background: #ff3b6b; border-radius: 2px; }
#route .mk[hidden] { display: none; }
#aimHint { left: 38%; top: 52%; width: 0; height: 0; z-index: 2; }
#aimHint i { position: absolute; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 4px 14px rgba(7,19,29,.3); animation: drag 1.8s ease-in-out infinite; }
@keyframes drag { 0%, 10% { transform: translate(0, 0) scale(1); opacity: 0; } 20% { opacity: 1; transform: translate(0, 0) scale(.85); } 70% { transform: translate(-70px, 80px) scale(.85); opacity: 1; } 85%, 100% { transform: translate(-70px, 80px) scale(1.2); opacity: 0; } }
#holdHint { left: 50%; bottom: calc(15% + var(--safe-b)); width: 84px; height: 84px; margin-left: -42px; border-radius: 50%; border: 5px solid #fff; animation: hold 1.2s ease-in-out infinite; z-index: 2; }
#holdHint i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border: 14px solid transparent; border-bottom: 20px solid #fff; transform: translate(-50%, -75%); }
@keyframes hold { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: 1; background: rgba(255,255,255,.3); } }
#power { left: 0; top: 0; width: 72px; height: 72px; margin: -36px; border-radius: 50%; z-index: 2; background: conic-gradient(var(--c, #2bc46a) calc(var(--p, 0) * 1turn), rgba(255,255,255,.25) 0); -webkit-mask: radial-gradient(circle, transparent 26px, #000 27px); mask: radial-gradient(circle, transparent 26px, #000 27px); }
#flash { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 30%, rgba(160,240,255,.85) 100%); }
#flash.go { animation: flash .45s ease-out; }
#flash.hit { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 35%, rgba(255,120,90,.6) 100%); }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
#pops { position: fixed; left: 50%; top: 38%; width: 0; height: 0; z-index: 6; pointer-events: none; }
.pop { position: absolute; left: 0; top: 0; transform: translate(-50%, 0); display: flex; align-items: center; gap: 6px; font-size: 30px; font-weight: 700; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; white-space: nowrap; animation: popUp .9s ease-out forwards; }
.pop.boost { color: #8ff3ff; font-size: 36px; }
.pop.zone { font-family: 'Jua', 'Fredoka', sans-serif; font-size: 52px; animation-duration: 1.8s; }
.pop .coin-ic { width: 30px; height: 18px; }
@keyframes popUp { 0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -10px) scale(1.15); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }
#bigDist { position: fixed; left: 50%; top: 34%; z-index: 7; pointer-events: none; transform: translate(-50%, -50%) scale(0); display: flex; align-items: baseline; gap: 4px; color: #fff; font-weight: 700; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 rgba(7,19,29,.35); font-variant-numeric: tabular-nums; white-space: nowrap; }
#bigDist b { font-size: clamp(80px, 24vw, 150px); line-height: 1; }
#bigDist small { font-size: 50px; }
#bigDist.show { animation: big .5s cubic-bezier(.2,1.6,.4,1) forwards; }
#bigDist.rec b { color: var(--gold); }
@keyframes big { to { transform: translate(-50%, -50%) scale(1); } }

/* 결과 */
#over { justify-content: flex-end; padding: calc(12px + var(--safe-t)) 16px calc(12px + var(--safe-b)); overflow-y: auto; }
.panel { width: min(100%, 400px); background: var(--panel); border-radius: 28px; padding: 20px 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 11px; box-shadow: var(--shadow); animation: pop .45s cubic-bezier(.2,1.5,.4,1) both; }
#over .row { gap: 8px; flex-wrap: nowrap; }
#over .row .mid-btn { height: 48px; min-width: 48px; padding: 0 13px; font-size: 17px; white-space: nowrap; }
@media (max-height: 760px) { #over .panel { gap: 8px; padding: 16px 16px 14px; } #over .big-num { font-size: 50px; } #over .over-card { max-width: 170px; } }
@media (max-height: 640px) { #over .over-card { max-width: 120px; } .logo span { font-size: 60px; } .big-btn { height: 60px; font-size: 26px; } .menu-bottom { gap: 12px; } }
@media (max-width: 400px) { #over .row { gap: 6px; } #over .row .mid-btn { padding: 0 10px; font-size: 16px; } }
/* 가로 화면: 결과 패널을 오른쪽으로 */
@media (orientation: landscape) and (max-height: 600px) {
  #over { justify-content: flex-start; align-items: flex-end; }
  #over .panel { width: min(46vw, 400px); }
  #over .over-card { display: none; }
  .logo-img { width: min(40vw, 300px); }
  #menu { padding-top: calc(10px + var(--safe-t)); padding-bottom: calc(10px + var(--safe-b)); }
  .menu-bottom { gap: 10px; }
  #dist b { font-size: 40px; }
  #route { top: calc(62px + var(--safe-t)); }
}

/* 상점 */
.mid-btn { position: relative; }
.mid-btn .dot { position: absolute; right: -3px; top: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px #fff; }
#shop { justify-content: flex-end; padding: 0 0 var(--safe-b); pointer-events: none; }
.shop-panel { pointer-events: auto; width: 100%; max-width: 560px; height: min(56vh, 470px); background: var(--panel); border-radius: 28px 28px 0 0; padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); animation: up .35s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes up { from { transform: translateY(60%); opacity: 0; } }
@media (orientation: landscape) { #shop { justify-content: center; align-items: flex-end; padding: 10px calc(10px + env(safe-area-inset-right, 0px)) 10px 0; } .shop-panel { width: min(54vw, 520px); height: 100%; border-radius: 26px; } }
.shop-h { display: flex; justify-content: space-between; align-items: center; }
.wallet { font-size: 22px; background: var(--ink); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; background: #eef1f6; font-size: 13px; font-weight: 700; }
.tab.on { background: var(--ink); color: #fff; }
.tab.on .i-arm { color: #fff; }
#shopList { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; align-content: start; padding: 2px 2px 6px; touch-action: pan-y; overscroll-behavior: contain; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 8px 9px; border-radius: 18px; background: #f2f4f8; font-weight: 700; text-align: center; }
.card.eq { background: linear-gradient(180deg, #e8fbff, #c6f1ff); box-shadow: 0 0 0 3px var(--cyan); }
.card img { width: 72px; height: 54px; object-fit: contain; }
.card .nm { font-size: 15px; line-height: 1.15; }
.card .st { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.card .st div { display: flex; align-items: center; gap: 5px; }
.card .pips { flex: 1; display: flex; gap: 3px; }
.card .pips b { flex: 1; height: 7px; border-radius: 4px; background: #d6dbe6; }
.card .pips b.on { background: linear-gradient(90deg, #2bc46a, #9be15d); }
.s-spd, .s-gld, .s-stb { width: 14px; height: 14px; flex: none; }
.s-spd { background: #ff7a1a; clip-path: polygon(0 35%, 60% 35%, 60% 10%, 100% 50%, 60% 90%, 60% 65%, 0 65%); }
.s-gld { background: #1fa8f0; border-radius: 50% 50% 4px 4px; }
.s-stb { background: #7a5cff; clip-path: polygon(50% 0, 100% 18%, 92% 60%, 50% 100%, 8% 60%, 0 18%); }
.buy { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 38px; border-radius: 12px; background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 3px 0 #c4520a; }
.buy.no { filter: grayscale(1); opacity: .5; }
.buy.use { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(7,19,29,.18); }
.buy.on { background: var(--cyan); color: var(--ink); box-shadow: none; }
.buy .coin-ic { width: 22px; height: 14px; background: linear-gradient(180deg, #fff, #ffe9a8); }
.card.pw { grid-column: 1 / -1; flex-direction: row; gap: 12px; padding: 14px; }
.card.pw .lv { font-size: 30px; min-width: 70px; }
.card.pw .lv small { display: block; font-size: 13px; opacity: .55; }
.card.pw .bar { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card.pw .pips b { height: 12px; }
.card.pw .spd { display: flex; align-items: baseline; gap: 4px; font-size: 22px; }
.card.pw .spd small { font-size: 13px; opacity: .6; }
.card.pw .buy { width: 110px; height: 48px; }
@keyframes drop { from { transform: translateY(-60px) scale(.8); opacity: 0; } }
.best-m { margin-top: 0; padding: 6px 16px; border-radius: 999px; background: rgba(7,19,29,.55); color: #fff; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.best-m b { color: var(--gold); font-size: 20px; }
.menu-bottom { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.studio { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 14px; letter-spacing: 1px; box-shadow: 0 4px 12px rgba(7,19,29,.3); }

/* 가로 화면 메뉴: 왼쪽에 버튼, 오른쪽에 케케 */
@media (orientation: landscape) and (max-height: 600px) {
  #menu { align-items: flex-start; justify-content: center; gap: 6px; padding: calc(8px + var(--safe-t)) 16px calc(8px + var(--safe-b)) calc(20px + env(safe-area-inset-left, 0px)); }
  #menu .logo-wrap { width: min(40vw, 330px); }
  #menu .logo-img { width: min(26vw, 230px); }
  #menu .menu-bottom { width: min(40vw, 330px); gap: 8px; }
  #menu .big-btn { height: 56px; font-size: 24px; min-width: 190px; }
  #menu .mid-btn { height: 46px; min-width: 46px; }
  #menu .studio { padding: 6px 14px; font-size: 13px; }
  #menu #moreMenu { display: none; }
  #menu #hofMenu { position: absolute; right: calc(14px + env(safe-area-inset-right, 0px)); top: calc(12px + var(--safe-t)); width: min(30vw, 260px); margin: 0; }
  #menu .hub-link { width: 46px; height: 46px; top: calc(10px + var(--safe-t)); }
}
