:root {
  --bg: #f1eee8;
  --card: #ffffff;
  --ink: #1a1a1f;
  --soft: rgba(26, 26, 31, 0.56);
  --line: rgba(26, 26, 31, 0.08);
  --accent: #ff6a3d;
  --accent2: #ffb04a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 0%, var(--bg) 70%);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 10px;
}

.lv { position: relative; width: min(316px, 100%); padding: 16px 16px 14px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(26, 26, 31, 0.05), 0 30px 50px -32px rgba(120, 60, 20, 0.45); }

.lv__head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.lv__badge { position: relative; width: 64px; height: 64px; }
.lv__ring { position: absolute; left: 0; top: 0; width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.lv__ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lv__ring .lv__track { stroke: rgba(26, 26, 31, 0.07); stroke-dasharray: none; }
.lv__core { position: absolute; left: 7px; top: 7px; width: 50px; height: 50px; border-radius: 17px; background: radial-gradient(90% 90% at 28% 18%, rgba(255, 255, 255, 0.55), transparent 58%), linear-gradient(150deg, var(--accent2), var(--accent)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 8px 14px -8px color-mix(in srgb, var(--accent) 80%, transparent); overflow: hidden; }
.lv__shine { position: absolute; left: 0; top: 0; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent); opacity: 0; }
.lv__num { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: grid; place-items: center; color: #2a1206; font-size: 24px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; }
.lv__num b { display: block; font-weight: inherit; }
.lv__who { min-width: 0; }
.lv__kicker { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--soft); }
.lv__rank { height: 24px; overflow: hidden; font-size: 19px; line-height: 24px; font-weight: 740; font-stretch: 104%; letter-spacing: -0.015em; white-space: nowrap; }
.lv__rank span { display: block; }
.lv__xp { align-self: end; padding-bottom: 3px; font-size: 12px; line-height: 16px; font-weight: 560; color: var(--soft); white-space: nowrap; text-align: right; }
.lv__xp { overflow: hidden; }
.lv__xp b { display: block; font-size: 15px; line-height: 19px; font-weight: 740; color: var(--ink); }
.lv__xp span { display: block; }
.lv__xp.is-hint b { color: color-mix(in srgb, var(--accent) 82%, #1a1a1f); }

.lv__bar { position: relative; height: 10px; margin-top: 16px; border-radius: 5px; background: rgba(26, 26, 31, 0.07); outline: none; cursor: default; }
.lv__bar::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
.lv__bar:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.lv__fill { position: absolute; left: 0; top: 0; width: 0%; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.lv__flash { position: absolute; left: -3px; right: -3px; top: -3px; bottom: -3px; border-radius: 8px; background: #ffffff; box-shadow: 0 0 18px 4px color-mix(in srgb, var(--accent) 70%, transparent); opacity: 0; pointer-events: none; }

.lv__perk { height: 0; overflow: hidden; }
.lv__perkin { display: flex; align-items: center; gap: 9px; height: 40px; margin-top: 12px; padding: 0 12px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 9%, #ffffff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); font-size: 13px; font-weight: 560; color: var(--ink); white-space: nowrap; }
.lv__perkin svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.lv__perkin b { margin-right: 4px; font-weight: 740; color: color-mix(in srgb, var(--accent) 80%, #1a1a1f); }

.lv__btn { position: relative; display: block; width: 100%; height: 46px; margin-top: 14px; border: 0; border-radius: 15px; background: var(--ink); color: #ffffff; font: inherit; font-size: 14.500px; font-weight: 700; cursor: pointer; outline: none; overflow: hidden; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 18px -12px rgba(26, 26, 31, 0.7); }
.lv__btn:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.lv__btn span { display: inline-block; }
.lv__btn.is-quiet { background: rgba(26, 26, 31, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.lv__chip { position: absolute; left: 0; top: 0; height: 26px; padding: 0 10px; border-radius: 13px; background: linear-gradient(150deg, var(--accent2), var(--accent)); color: #2a1206; font-size: 12px; line-height: 26px; font-weight: 780; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 8px 14px -8px color-mix(in srgb, var(--accent) 90%, transparent); z-index: 3; }
.lv__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #1a1a1f; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(26, 26, 31, 0.3)); z-index: 5; }
