:root {
  --pink: #ff5fb8; --hot: #ff2f92; --lilac: #c9a7ff; --ink: #2a1630; --glass: rgba(255, 240, 248, 0.78);
  --glass2: rgba(40, 14, 44, 0.62); --cyan: #7af7ff;
  --r: 18px; --shadow: 0 10px 30px rgba(120, 0, 70, 0.25);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f3c6dc; color: var(--ink); overscroll-behavior: none; }
#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
a { color: var(--hot); }

/* labels */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; text-align: center; font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.5); color: #fff; will-change: transform; }
.tag .cb { font-weight: 600; opacity: .8; margin-left: 4px; font-size: 10px; color: #ffe; }
.mtag .nm { color: #ffe14d; }
.hpbar { width: 46px; height: 5px; margin: 2px auto 0; background: #6a0d2a; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #7dff9a, #3ddc84); }
.badge { color: #ffd76a; margin-right: 3px; text-shadow: 0 0 6px #ff5fb8; }
.nc-pink { color: #ff6fc4 !important; text-shadow: 0 0 8px #ff2f92, 0 1px 2px #000; }
.nc-holo { background: linear-gradient(90deg, #7af7ff, #ff9bf2, #fff38a, #7af7ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: holo 3s linear infinite; text-shadow: none; filter: drop-shadow(0 1px 1px #000); }
@keyframes holo { to { background-position: 200% 0; } }
.bubble { background: #fff; color: var(--ink); text-shadow: none; font-weight: 700; padding: 5px 10px; border-radius: 14px; max-width: 220px; white-space: normal; box-shadow: var(--shadow); font-size: 13px; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; transform: translateX(-50%); }
.splat { font-weight: 900; font-size: 15px; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; color: #fff; text-shadow: 0 1px 1px #000; }
.splat.dmg { background: radial-gradient(circle at 35% 35%, #ff7fb8, #d6005c); box-shadow: 0 0 10px #ff2f92; }
.splat.miss { background: radial-gradient(circle at 35% 35%, #9fd8ff, #2a7bd6); }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
#hover { position: fixed; left: 10px; top: calc(8px + env(safe-area-inset-top)); color: #fff; font-weight: 800; text-shadow: 0 1px 2px #000; pointer-events: none !important; font-size: 14px; }
#hover .red { color: #ffe14d; } #hover em { color: #ffb3b3; font-style: normal; font-size: 12px; }
#topright { position: fixed; right: 10px; top: calc(10px + env(safe-area-inset-top)); width: 150px; height: 150px; }
#minimap { width: 150px; height: 150px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--pink), var(--shadow); background: #3d6e3a; cursor: crosshair; }
.orb { position: absolute; left: -16px; bottom: -6px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #3a0f22; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--pink); }
.orb i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ff7fb0, #e0005e); transition: height .3s; }
.orb span { position: relative; display: block; text-align: center; line-height: 40px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
#xpdrops { position: fixed; right: 170px; top: calc(20px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: flex-end; pointer-events: none !important; }
.drop { color: #fff; font-weight: 900; text-shadow: 0 1px 2px #000; animation: rise 1.8s ease-out forwards; display: flex; align-items: center; gap: 4px; }
.drop .ico { width: 22px; height: 22px; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } 15% { opacity: 1; transform: none; } to { transform: translateY(-40px); opacity: 0; } }

#chat { position: fixed; left: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 16px)); }
#chatlog { max-height: 140px; overflow-y: auto; font-size: 13px; padding: 6px 8px; border-radius: 14px 14px 0 0; background: var(--glass2); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); scrollbar-width: thin; }
#chatlog .line { margin: 2px 0; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
#chatlog .sys { color: #ffd1ec; font-style: italic; }
#chatlog b { color: var(--cyan); }
#chatin { width: 100%; border: 0; padding: 9px 12px; border-radius: 0 0 14px 14px; background: rgba(255,255,255,.9); font: inherit; font-size: 16px; outline: none; }
#dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 4px; background: linear-gradient(transparent, rgba(60,10,50,.35)); }
#dock button { width: 46px; height: 46px; border-radius: 14px; border: 2px solid #fff; background: var(--glass); font-size: 21px; box-shadow: var(--shadow); transition: transform .12s; }
#dock button svg { width: 26px; height: 26px; display: block; margin: auto; }
#dock button.on { background: linear-gradient(135deg, #ff9ad5, #c9a7ff); transform: translateY(-4px); }
#panel { position: fixed; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 20px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 2px solid #fff; border-radius: var(--r); box-shadow: var(--shadow); }
#panel header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; }
#panel h3 { margin: 0; font-size: 18px; background: linear-gradient(90deg, var(--hot), #8a4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#pclose, .x { border: 0; background: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--hot); }
#pbody { overflow-y: auto; padding: 4px 14px 14px; }
#pbody h4 { margin: 12px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #8a3b6c; }
.hint, .legal, .fine { font-size: 12px; color: #6d4a63; }
.ico { width: 34px; height: 34px; }
.inv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 12px; border: 2px solid #ffd1ec; background: rgba(255,255,255,.6); display: grid; place-items: center; padding: 2px; }
.slot:disabled { opacity: .5; cursor: default; }
.slot em { position: absolute; left: 4px; top: 2px; font-style: normal; font-weight: 900; font-size: 11px; color: #c2187a; }
.bank { margin-top: 8px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skill { display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,.6); border-radius: 12px; padding: 6px; }
.skill > div { flex: 1; } .skill b { font-size: 12px; display: block; } .skill span { font-weight: 900; font-size: 18px; color: var(--hot); }
.bar { height: 5px; border-radius: 3px; background: #f3d3e4; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--lilac)); }
.total { text-align: center; }
.seg { display: flex; gap: 6px; } .seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1; border: 2px solid #ffd1ec; background: rgba(255,255,255,.7); border-radius: 12px; padding: 7px 8px; font-weight: 700; color: var(--ink); }
.seg button.on { background: linear-gradient(135deg, #ff9ad5, #c9a7ff); border-color: #fff; color: #fff; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #e9b6d3; }
.sw.on { box-shadow: 0 0 0 3px var(--hot); }
.wr { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.wi { flex: 0 0 82px; border: 2px solid #ffd1ec; background: rgba(255,255,255,.7); border-radius: 12px; padding: 4px; font-size: 11px; font-weight: 700; min-height: 48px; }
.wi.on { border-color: var(--hot); box-shadow: 0 0 0 2px #ffd1ec; }
.wi .art { width: 52px; height: 52px; display: block; margin: 0 auto; }
.wi.ghost { color: var(--hot); }
.emotes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emotes button { border: 2px solid #ffd1ec; background: #fff; border-radius: 12px; padding: 10px; font-weight: 800; }
.emotes .locked { opacity: .65; }
.shopgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card { background: rgba(255,255,255,.75); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; border: 2px solid #fff; }
.card .art { width: 72px; height: 72px; filter: drop-shadow(0 4px 6px rgba(200,0,100,.25)); }
.card b { font-size: 13px; } .card small { font-size: 11px; color: #6d4a63; min-height: 28px; }
.card button { width: 100%; border: 0; border-radius: 10px; padding: 7px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--hot), #8a4dff); }
.card button:disabled { background: #b7e8c8; color: #1d6b3a; }
.card.owned { border-color: #b7e8c8; }
.tipamt { width: 100%; border: 2px solid #ffd1ec; border-radius: 8px; padding: 4px; font: inherit; text-align: center; }
.hs { padding-left: 22px; } .hs li { margin: 4px 0; } .hs li span { float: right; font-size: 12px; color: #6d4a63; }
.btn { display: inline-block; border: 0; border-radius: 14px; padding: 11px 16px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--hot), #8a4dff); text-decoration: none; text-align: center; box-shadow: 0 6px 16px rgba(255, 47, 146, .35); }
.btn.alt { background: linear-gradient(135deg, #7a5cff, #33c6ff); }
.btn.ghost { background: #fff; color: var(--hot); box-shadow: none; border: 2px solid #ffd1ec; }
.btn:disabled { opacity: .6; }
#ctx { position: fixed; z-index: 20; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
#ctx b { font-size: 13px; padding: 2px 6px; color: var(--hot); }
#ctx button { border: 0; background: #fff0f8; border-radius: 10px; padding: 8px; text-align: left; font-weight: 700; }

/* auth: girly punk x soft angel welcome */
@font-face { font-family: "Chewy"; src: url("fonts/chewy.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("fonts/great-vibes.woff2") format("woff2"); font-display: swap; }
#auth { position: fixed; inset: 0; z-index: 10; display: grid; place-items: safe center; padding: 52px 16px 30px; overflow-x: hidden; overflow-y: auto;
  background:
    radial-gradient(ellipse 65% 45% at 15% 0%, rgba(201,167,255,.40), transparent 70%),
    radial-gradient(ellipse 65% 45% at 85% 5%, rgba(255,143,200,.42), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 105%, rgba(255,179,220,.30), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M16 22c-4-3-6-5-5-8 1-2 4-2 5 0 1-2 4-2 5 0 1 3-1 5-5 8z' fill='%23ff8fc8' fill-opacity='.2'/%3E%3Cpath d='M48 44l1.6 3.4 3.4 1.6-3.4 1.6L48 54l-1.6-3.4L43 49l3.4-1.6z' fill='%23e3d0ff' fill-opacity='.28'/%3E%3C/svg%3E"),
    linear-gradient(#120818, #0b0510 55%, #170a1c); }
#auth::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20px; pointer-events: none;
  background: repeating-conic-gradient(#ffb3dc 0 25%, #0d0610 0 50%) 0 0 / 20px 20px; opacity: .45; }
.y2khud { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; pointer-events: none;
  font: 800 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 1.5px; }
.y2khud span { padding: 6px 12px; border-radius: 999px; border: 2px solid #fff; color: #7a2a8f; background: linear-gradient(180deg, #ffe3f3, #e6d3ff); box-shadow: 0 0 0 2px #ff8fc8, 0 0 14px rgba(255,143,200,.6); }
.y2khud .lives { color: #ff2f92; letter-spacing: 3px; }
.stickers { position: absolute; inset: 0; pointer-events: none; }
.stk { position: absolute; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); animation: bob 5s ease-in-out infinite; }
.s1  { width: 190px; left: 3%;  top: 9%;  --r: -8deg; }
.s2  { width: 150px; right: 4%; top: 9%;  --r: 9deg;  animation-delay: -1s; }
.s3  { width: 100px; left: 11%; top: 38%; --r: 6deg;  animation-delay: -2s; }
.s4  { width: 96px;  right: 12%; top: 37%; --r: -8deg; animation-delay: -3s; }
.s5  { width: 124px; left: 4%;  bottom: 8%; --r: -6deg; animation-delay: -1.5s; }
.s6  { width: 160px; right: 4%; bottom: 10%; --r: 7deg; animation-delay: -2.5s; }
.s7  { width: 96px;  left: 25%; top: 6%;  --r: 12deg; animation-delay: -.5s; }
.s8  { width: 150px; right: 22%; top: 7%;  --r: -6deg; animation-delay: -3.5s; }
.s9  { width: 100px; left: 22%; bottom: 6%; --r: 10deg; animation-delay: -4s; }
.s10 { width: 104px; right: 21%; bottom: 5%; --r: -12deg; animation-delay: -.8s; }
.s11 { width: 86px;  left: 3%;  top: 56%; --r: 14deg; animation-delay: -2.2s; }
@keyframes bob { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) * -0.4)) translateY(-8px); } }
.emo { position: absolute; font-size: 26px; opacity: .9; animation: twinkle 3s ease-in-out infinite; text-shadow: 0 0 12px rgba(255,143,200,.8); }
.e1 { left: 18%; top: 30%; } .e2 { right: 20%; top: 28%; animation-delay: -1s; } .e3 { left: 33%; bottom: 20%; animation-delay: -2s; }
.e4 { right: 33%; bottom: 22%; animation-delay: -.6s; } .e5 { left: 17%; bottom: 33%; animation-delay: -1.6s; } .e6 { right: 15%; bottom: 30%; animation-delay: -2.4s; }
.e7 { right: 3%; top: 55%; animation-delay: -.3s; } .e8 { left: 37%; top: 16%; animation-delay: -1.3s; }
@keyframes twinkle { 50% { transform: scale(1.25) rotate(8deg); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .stk, .emo { animation: none; transform: rotate(var(--r, 0deg)); } }
.authcard { position: relative; z-index: 2; width: min(390px, 100%); color: #ffe6f3;
  background: linear-gradient(180deg, rgba(42, 16, 52, .9), rgba(16, 6, 20, .92) 45%, rgba(30, 10, 36, .92)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 3px solid #ff5fb8; border-radius: 28px; padding: 18px 20px 16px; text-align: center;
  box-shadow: 0 0 0 6px #0d0610, 0 0 0 8px #d9c2ff, 0 0 40px rgba(255,95,184,.5), 0 0 80px rgba(201,167,255,.25), 0 18px 40px rgba(0,0,0,.6); }
.authcard::before { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(255,179,220,.45); border-radius: 21px; pointer-events: none; }
.authcard::after { content: ""; position: absolute; top: -24px; left: 50%; width: 84px; height: 46px; transform: translateX(-50%) rotate(-4deg); background: url("img/st-spike-bow.webp") center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.brandlogo { margin: 4px auto 0; line-height: 0; font-size: 0; }
.brandlogo img { width: 100%; max-width: 330px; height: auto; filter: drop-shadow(0 0 10px rgba(201,120,255,.55)) drop-shadow(0 2px 0 #000); }
.script { margin: 2px 0 0; font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive; font-size: 27px; line-height: 1.1; color: #fff; text-shadow: 0 0 8px rgba(255,143,200,.95), 0 0 18px rgba(201,167,255,.7); }
.lace { height: 12px; margin: 12px -6px 2px; background: radial-gradient(circle at 7px 3px, #1a0a20 0 1.6px, transparent 2px) 0 0 / 14px 12px repeat-x, radial-gradient(circle at 7px 0, #f5e6ff 0 5.5px, transparent 6px) 0 0 / 14px 12px repeat-x; opacity: .85;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.authtag { margin: 4px 0 12px; font-family: "Chewy", ui-rounded, system-ui, sans-serif; font-size: 21px; line-height: 1.15; color: #ff8fc8; text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255,47,146,.6); letter-spacing: .5px; }
.authtag span { display: block; margin-top: 4px; font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; font-size: 12.5px; font-weight: 800; color: #e3d0ff; text-shadow: none; letter-spacing: .3px; }
#authtabs button { font-family: "Chewy", ui-rounded, system-ui, sans-serif; font-weight: 400; font-size: 17px; letter-spacing: .4px; background: #1d0a20; border-color: #5a2350; color: #ffb3dc; }
#authtabs button.on { background: linear-gradient(135deg, #ff6fc4, #d9b8ff); border-color: #ffd1ec; color: #1a0618; }
#authform { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
#authform input { border: 2px solid #5a2350; border-radius: 14px; padding: 12px; font: inherit; font-size: 16px; background: #fff3f9; color: #2a1630; outline: none; }
#authform input:focus { border-color: #ff5fb8; box-shadow: 0 0 0 3px rgba(255,95,184,.35); }
#authgo { font-family: "Chewy", ui-rounded, system-ui, sans-serif; font-weight: 400; font-size: 21px; letter-spacing: .6px; padding: 10px 16px; color: #fff; background: linear-gradient(135deg, #ff2f92, #ff7fca 55%, #c9a7ff); text-shadow: 1px 1px 0 #8a0045; border: 2px solid #ffd1ec; box-shadow: 0 0 18px rgba(255,47,146,.55), 0 4px 0 #8a0045; }
#authgo:active { transform: translateY(2px); box-shadow: 0 0 18px rgba(255,47,146,.55), 0 2px 0 #8a0045; }
#autherr { color: #ff8fa8; font-weight: 800; min-height: 1em; margin: 0; font-size: 13px; }
.authcard .fine { color: #d9a9c6; margin: 6px 0 0; }
.authcard .fine a { color: #ff8fc8; }
@media (max-width: 640px) {
  #auth { padding: 46px 12px 26px; }
  .s3, .s4, .s7, .s8, .s9, .s11, .e1, .e2, .e3, .e4, .e5, .e6 { display: none; }
  .s1 { width: 116px; left: -10px; top: 7%; } .s2 { width: 96px; right: -6px; top: 7.5%; }
  .s5 { width: 84px; left: -4px; bottom: 3%; } .s6 { width: 112px; right: -8px; bottom: 3.5%; }
  .s10 { width: 66px; right: auto; left: 42%; bottom: 1.5%; }
  .e7, .e8 { display: none; }
  .y2khud { font-size: 11px; } .y2khud span { padding: 5px 9px; }
  .authcard { padding: 14px 16px 12px; }
  .brandlogo img { max-width: 260px; }
  .script { font-size: 24px; }
  .authtag { font-size: 19px; margin-bottom: 10px; }
}
@media (max-height: 700px) and (max-width: 640px) { .s1, .s2, .s5, .s6, .s10 { opacity: .45; } .script { display: none; } }
/* in-game menu header + loading */
.plogo { height: 30px; width: auto; margin-right: 10px; padding: 3px 9px; border-radius: 12px; background: linear-gradient(135deg, #1a0a20, #2e1236); box-shadow: 0 0 0 2px #ffb3dc, 0 2px 8px rgba(120,0,70,.3); }
#panel header { justify-content: flex-start; }
#panel header #pclose { margin-left: auto; }
.loadlogo { width: 200px; height: auto; margin: 0 auto; filter: drop-shadow(0 0 10px rgba(255,95,184,.7)) drop-shadow(0 2px 0 #000); }
#loading { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
.heartbeat { font-size: 42px; animation: beat 1s infinite; } @keyframes beat { 50% { transform: scale(1.2); } }
#toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -80px); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); transition: transform .3s; z-index: 50; max-width: 90vw; text-align: center; }
#toast.on { transform: translate(-50%, 0); }

/* pay modal */
#modal { position: fixed; inset: 0; z-index: 40; background: rgba(40, 10, 40, .45); display: grid; place-items: center; padding: 12px; }
.sheet { position: relative; width: min(400px, 100%); max-height: 94vh; overflow-y: auto; background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); text-align: center; }
.sheet .x { position: absolute; right: 10px; top: 10px; background: #fff0f8; }
.payhead { display: flex; gap: 10px; align-items: center; justify-content: center; } .payhead .art { width: 64px; height: 64px; }
.payhead h3 { margin: 0; } .amt { font-size: 22px; font-weight: 1000; color: var(--hot); }
.qr { width: 220px; height: 220px; margin: 10px auto; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 3px #ffd1ec; }
.qr svg { width: 100%; height: 100%; }
.paybtns { display: flex; flex-direction: column; gap: 8px; }
.status { margin-top: 10px; font-weight: 800; }
.spin { display: inline-block; width: 12px; height: 12px; border: 3px solid #ffd1ec; border-top-color: var(--hot); border-radius: 50%; animation: sp 1s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  #topright, #minimap { width: 112px; height: 112px; }
  #xpdrops { right: 130px; }
  #chat { bottom: calc(62px + env(safe-area-inset-bottom)); width: calc(100vw - 16px); }
  #chatlog { max-height: 88px; font-size: 12px; }
  #panel { left: 8px; right: 8px; width: auto; bottom: calc(62px + env(safe-area-inset-bottom)); max-height: 62vh; z-index: 5; }
  #dock button { width: 40px; height: 42px; font-size: 19px; }
  .orb { width: 40px; height: 40px; } .orb span { line-height: 34px; }
}
