:root {
  --bg: #f6f3ee;
  --card: #fffdf9;
  --ink: #1b1a18;
  --soft: rgba(27, 26, 24, 0.56);
  --line: rgba(27, 26, 24, 0.1);
  --accent: #0b7f86;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  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 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(348px, 100%); padding: 18px 16px 14px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1.500px var(--line), 0 30px 44px -30px rgba(60, 40, 20, 0.45); }
.lr__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.lr__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; }
.lr__fare { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 680; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lr__fare span { display: block; }

.lr__seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 38px; padding: 3px; border-radius: 13px; background: rgba(27, 26, 24, 0.06); }
.lr__pick { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 10px; background: #ffffff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 8px -4px rgba(27, 26, 24, 0.35), 0 0 0 1px rgba(27, 26, 24, 0.05); }
.lr__opt { position: relative; display: grid; place-items: center; height: 32px; border-radius: 10px; font-size: 12.500px; font-weight: 680; color: var(--soft); white-space: nowrap; transition: color 0.25s; }
.lr__opt[aria-pressed="true"] { color: var(--ink); }
.lr__opt:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }

.lr__draw { display: block; width: 100%; height: auto; overflow: visible; }
.lr__draw .floor { stroke: rgba(27, 26, 24, 0.16); stroke-width: 1.500; stroke-linecap: round; }
.lr__draw .leg { stroke: rgba(27, 26, 24, 0.3); stroke-width: 3; stroke-linecap: round; }
.lr__draw .pad { fill: var(--ink); }
.lr__draw .head { fill: var(--ink); }
.lr__draw .seat[data-seat="0"] .pad, .lr__draw .seat[data-seat="0"] .head { fill: rgba(27, 26, 24, 0.3); }
.lr__draw .ref { stroke: var(--accent); stroke-width: 1.500; stroke-dasharray: 2 4; stroke-linecap: round; opacity: 0; }
.lr__draw .arc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lr__draw .dim line { stroke: var(--ink); stroke-width: 1.500; stroke-linecap: round; transition: stroke 0.25s; }
.lr__draw .dim text { font-size: 12px; font-weight: 720; fill: var(--ink); font-variant-numeric: tabular-nums; transition: fill 0.25s; }
.lr[data-on="pitch"] .dim line { stroke: var(--accent); }
.lr[data-on="pitch"] .dim text { fill: var(--accent); }

.lr__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lr__stat { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: rgba(27, 26, 24, 0.045); text-align: left; transition: background-color 0.25s, box-shadow 0.25s; }
.lr__stat i { font-style: normal; font-size: 10.500px; line-height: 13px; font-weight: 660; color: var(--soft); white-space: nowrap; }
.lr__stat b { font-size: 15px; line-height: 19px; font-weight: 740; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.25s; }
.lr__stat.is-on { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1.500px var(--accent); }
.lr__stat.is-on b { color: var(--accent); }
.lr__stat--plain { cursor: default; }
.lr__stat:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }

.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: #1b1a18; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }

@media (hover: hover) { .lr__opt:hover { color: var(--ink); } }
@media (max-width: 350px) { .lr { padding: 16px 13px 12px; } .lr__opt { font-size: 12px; } .lr__stat { padding: 8px; } .lr__stat b { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .lr__opt, .lr__stat, .lr__stat b, .lr__draw .dim line, .lr__draw .dim text { transition: none; } }
