@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #35242c;
  --muted: #8b727d;
  --pink: #ff5f9d;
  --pink-2: #ff8fba;
  --blush: #ffd5e5;
  --cream: #fff9fb;
  --white: rgba(255, 255, 255, 0.88);
  --line: rgba(99, 46, 67, 0.13);
  --flash-strength: .7;
  --plum-950: #21151b;
  --plum-900: #2c1b23;
  --plum-800: #402630;
  --ui-pink: #ff5f9d;
  --ui-pink-soft: #ffb5d0;
  --ui-light: #fff8fb;
  --ui-line-light: rgba(255, 255, 255, .14);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #160d13;
  color: var(--ink);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 42%, rgba(98, 48, 70, .42), transparent 36%),
    linear-gradient(145deg, #2d1b24, #160d13 66%);
}

#scene, #scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#scene canvas { cursor: crosshair; }

.wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 9, 14, .48), rgba(46, 24, 34, .06) 48%, rgba(18, 9, 14, .34)),
    radial-gradient(circle at 50% 54%, transparent 28%, rgba(11, 5, 9, .24) 100%),
    radial-gradient(circle at 50% 90%, rgba(255, 95, 157, .09), transparent 42%);
  transition: opacity .35s ease;
}

body.game-active .wash { opacity: .42; }

#hit-flash {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.82) 0 3%, rgba(255,93,155,.24) 18%, transparent 55%);
}

#hit-flash.pop { animation: flash-pop .24s ease-out; }

@keyframes flash-pop {
  0% { opacity: calc(.92 * var(--flash-strength)); transform: scale(.92); }
  100% { opacity: 0; transform: scale(1.08); }
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(91, 45, 62, .1);
  pointer-events: none;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font: 800 14px/1 "Manrope", sans-serif;
  letter-spacing: .17em;
  pointer-events: auto;
}

.brand small {
  margin-left: 2px;
  color: #b394a1;
  font: 700 8px/1 "Manrope", sans-serif;
  letter-spacing: .08em;
}

.brand-mark {
  position: relative;
  width: 27px;
  height: 27px;
  transform: rotate(45deg);
}

.brand-mark i {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 9px 9px 2px 9px;
  background: var(--pink);
}

.brand-mark i:nth-child(1) { top: 0; left: 0; }
.brand-mark i:nth-child(2) { top: 0; right: 0; transform: rotate(90deg); opacity: .8; }
.brand-mark i:nth-child(3) { right: 0; bottom: 0; transform: rotate(180deg); opacity: .58; }
.brand-mark i:nth-child(4) { left: 0; bottom: 0; transform: rotate(270deg); opacity: .72; }

.mode-chip, .utility-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(12px);
  color: #7a626c;
  font: 600 10px/1 "Manrope", sans-serif;
  letter-spacing: .12em;
  padding: 10px 15px;
}

.mode-chip {
  width: max-content;
  margin: 0 auto 14px;
  padding: 8px 13px;
  border-color: rgba(255,95,157,.16);
  background: rgba(255,255,255,.48);
  color: #916f7d;
}

.mode-chip span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255,95,157,.12);
}

.utility-btn { justify-self: end; pointer-events: auto; cursor: pointer; }
.utility-btn b { color: var(--pink); margin-left: 5px; }
.utility-btn:hover { background: rgba(255,255,255,.78); }

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  transition: opacity .28s ease, visibility .28s ease;
}

.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.menu-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 104px 34px 24px;
  overflow: hidden;
}

.menu-watermark {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.48);
  font: 800 clamp(150px, 24vw, 370px)/.8 "Manrope", sans-serif;
  letter-spacing: -.1em;
  text-shadow: 0 18px 80px rgba(222,91,142,.08);
  user-select: none;
}

.menu-grid {
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 0;
  width: 110vw;
  height: 62vh;
  transform: translateX(-50%) perspective(520px) rotateX(62deg);
  transform-origin: bottom;
  opacity: .33;
  background-image:
    linear-gradient(rgba(203,109,145,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203,109,145,.13) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to top, black, transparent 88%);
}

.menu-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: #8a6676;
  font: 700 10px/1 "Manrope", sans-serif;
  letter-spacing: .18em;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--pink);
}

h1 {
  margin: 0;
  color: #33222a;
  font: 700 clamp(42px, 5.1vw, 72px)/.95 "Manrope", "PingFang SC", sans-serif;
  letter-spacing: -.07em;
}

.mode-tagline {
  margin: 13px 0 4px;
  color: #846773;
  font-size: 13px;
  letter-spacing: .18em;
}

.primary-btn {
  min-width: 244px;
  height: 58px;
  padding: 0 9px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 36px rgba(73, 38, 52, .16);
  cursor: pointer;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #24181e;
  box-shadow: 0 18px 40px rgba(73, 38, 52, .24);
}

.primary-btn:active { transform: translateY(0) scale(.98); }
.primary-btn:disabled { cursor: wait; opacity: .58; transform: none; box-shadow: none; }

.primary-btn b {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--pink);
  font-size: 19px;
}

kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.62); font: inherit; color: #6d5761; }

.glass {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255, 251, 253, .58);
  box-shadow: 0 28px 80px rgba(120, 58, 84, .13), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(22px) saturate(1.15);
}

.launch-dock {
  position: relative;
  z-index: 3;
  width: min(1120px, 100%);
  padding: 16px;
  border-radius: 28px;
  overflow: hidden;
}

.launch-dock::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 180px;
  right: -100px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(255, 127, 177, .15);
  filter: blur(18px);
}

.mode-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; }
.mode-tab { position: relative; min-height: 70px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 1fr; column-gap: 13px; padding: 12px 16px; text-align: left; border: 1px solid transparent; border-radius: 16px; background: rgba(255,255,255,.3); cursor: pointer; transition: .18s ease; }
.mode-tab small { grid-row: 1 / 3; align-self: center; min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.5); color: #b796a4; font: 700 9px/1 "Manrope", sans-serif; transition: .18s ease; }
.mode-tab b { align-self: end; font: 750 14px/1.2 "Manrope", sans-serif; letter-spacing: -.02em; }
.mode-tab span { align-self: start; margin-top: 3px; color: #987d89; font-size: 10px; }
.mode-tab:hover { transform: translateY(-1px); border-color: rgba(255,95,157,.24); background: rgba(255,255,255,.58); }
.mode-tab.is-active { color: #d73876; border-color: rgba(255,95,157,.42); background: linear-gradient(120deg, rgba(255,217,232,.82), rgba(255,244,248,.72)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.58), 0 8px 24px rgba(199,72,121,.08); }
.mode-tab.is-active small { background: var(--pink); color: white; box-shadow: 0 5px 13px rgba(255,95,157,.24); }
.mode-tab.is-active span { color: #a6637d; }

.launch-row { display: grid; grid-template-columns: 1.6fr .78fr .9fr 1.22fr; align-items: stretch; gap: 10px; }

.daily-card { min-width: 0; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(255,95,157,.2); border-radius: 15px; background: rgba(255,245,249,.62); cursor: pointer; text-align: left; transition: .18s ease; }
.daily-card:hover { transform: translateY(-1px); border-color: rgba(255,95,157,.44); background: rgba(255,238,245,.86); }
.daily-card span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.daily-card small { color: #a27e8d; font-size: 9px; letter-spacing: .08em; }
.daily-card b { white-space: nowrap; font-size: 12px; }
.daily-card em { white-space: nowrap; color: var(--pink); font: normal 700 9px/1 "Manrope", sans-serif; }
.daily-card.is-complete { border-color: rgba(255,95,157,.4); background: rgba(255,224,236,.76); }

.target-preview {
  position: relative;
  width: clamp(250px, 29vh, 330px);
  height: clamp(210px, 27vh, 290px);
  flex: 0 1 auto;
  margin: 3px 0 2px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: crosshair;
  outline: none;
}

.target-preview::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,216,232,.26) 48%, transparent 72%);
  filter: blur(4px);
  transition: transform .2s ease;
}

.target-preview:hover::before { transform: scale(1.08); }
.target-preview:focus-visible { box-shadow: 0 0 0 3px rgba(255,95,157,.22); }

.preview-target-wrap {
  --preview-x: 0px;
  --preview-y: 0px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  transform: translate(var(--preview-x), var(--preview-y));
  transition: transform .2s cubic-bezier(.2, .82, .3, 1);
}

.preview-target {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff7daf;
  border: 9px solid white;
  box-shadow: 0 0 0 3px #ff7daf, 0 16px 28px rgba(218,79,133,.26), 0 0 42px rgba(255,95,157,.14);
  transition: transform .16s ease, box-shadow .16s ease;
}

.preview-target i { width: 28px; height: 28px; border-radius: 50%; background: white; box-shadow: inset 0 0 0 8px #ff5f9d; }
.preview-target b { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: white; }

.target-preview:hover .preview-target { transform: scale(1.05); box-shadow: 0 0 0 3px #ff7daf, 0 18px 32px rgba(218,79,133,.3), 0 0 56px rgba(255,95,157,.2); }

.orbit { position: absolute; border: 1px solid rgba(255,97,157,.18); border-radius: 50%; animation: spin 9s linear infinite; }
.orbit-one { width: 142px; height: 142px; border-style: solid; }
.orbit-two { width: 198px; height: 198px; border-color: rgba(255,97,157,.1); animation-direction: reverse; animation-duration: 13s; }

.preview-ghost { position: absolute; width: 16px; height: 16px; border: 4px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(255,119,171,.4); box-shadow: 0 0 0 1px rgba(255,95,157,.22); opacity: .62; }
.ghost-one { left: 19%; top: 34%; }
.ghost-two { right: 18%; bottom: 31%; transform: scale(.72); }

.preview-wave { position: absolute; z-index: 1; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border: 2px solid rgba(255,95,157,.42); border-radius: 50%; opacity: 0; pointer-events: none; }
.preview-petals { position: absolute; z-index: 4; left: 50%; top: 50%; pointer-events: none; }
.preview-petals i { --angle: 0deg; position: absolute; width: 9px; height: 14px; margin: -7px -4px; border-radius: 9px 9px 2px 9px; background: var(--pink); opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.5); }
.preview-petals i:nth-child(2) { --angle: 45deg; background: #ff8fba; }
.preview-petals i:nth-child(3) { --angle: 90deg; }
.preview-petals i:nth-child(4) { --angle: 135deg; background: #ffc0d7; }
.preview-petals i:nth-child(5) { --angle: 180deg; }
.preview-petals i:nth-child(6) { --angle: 225deg; background: #ff8fba; }
.preview-petals i:nth-child(7) { --angle: 270deg; }
.preview-petals i:nth-child(8) { --angle: 315deg; background: #ffc0d7; }

.target-preview em { position: absolute; left: 50%; bottom: 0; z-index: 5; transform: translateX(-50%); width: max-content; padding: 7px 12px; border: 1px solid rgba(112,70,87,.1); border-radius: 999px; background: rgba(255,255,255,.5); color: #9a7b88; font: normal 600 9px/1 "Manrope", sans-serif; letter-spacing: .08em; backdrop-filter: blur(8px); transition: color .18s ease, background .18s ease; }
.target-preview:hover em { color: #d84982; background: rgba(255,255,255,.78); }

.target-preview.is-hit .preview-target { animation: preview-hit-core .42s cubic-bezier(.2,.8,.3,1); }
.target-preview.is-hit .wave-one { animation: preview-wave .58s ease-out; }
.target-preview.is-hit .wave-two { animation: preview-wave .72s .08s ease-out; }
.target-preview.is-hit .preview-petals i { animation: preview-petal .62s ease-out both; }
.target-preview.is-hit .preview-petals i:nth-child(even) { animation-delay: .035s; }
.target-preview.is-hit em { animation: preview-word .48s ease-out; color: var(--pink); }

body[data-mode="track"] .preview-target-wrap { animation: preview-track 4.8s ease-in-out infinite; }
body[data-mode="track"] .preview-ghost { opacity: .18; }
body[data-mode="zen"] .orbit { animation-duration: 18s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preview-track { 0%, 100% { transform: translate(-42px, 13px); } 25% { transform: translate(0, -22px); } 50% { transform: translate(42px, 8px); } 75% { transform: translate(0, 22px); } }
@keyframes preview-hit-core { 0% { transform: scale(1); } 22% { transform: scale(.72); } 58% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes preview-wave { 0% { opacity: .68; transform: scale(.72); } 100% { opacity: 0; transform: scale(2.15); } }
@keyframes preview-petal { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.4); } 18% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(-78px) rotate(80deg) scale(1); } }
@keyframes preview-word { 0% { opacity: .1; transform: translate(-50%, 7px) scale(.88); } 42% { opacity: 1; transform: translate(-50%, -3px) scale(1.06); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.session-meta { display: grid; grid-template-columns: 1.35fr .75fr 1fr; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid rgba(99,46,67,.08); border-radius: 15px; background: rgba(255,255,255,.32); }
.session-meta div { display: flex; flex-direction: column; gap: 6px; }
.session-meta span, .best-row span { color: #a18893; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.session-meta b { color: #59424c; font: 700 13px/1.2 "Manrope", sans-serif; }

.best-row { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; padding: 12px 16px; border-radius: 15px; background: rgba(255, 222, 234, .48); }
.best-row strong { color: #e74f8a; font: 750 17px/1 "Manrope", sans-serif; }

.launch-row > .primary-btn { min-width: 0; width: 100%; height: 68px; padding-left: 20px; font-size: 14px; border-radius: 15px; }
.launch-row > .primary-btn b { width: 47px; height: 47px; border-radius: 11px; }

.hud {
  position: absolute;
  z-index: 15;
  top: 108px;
  left: 50%;
  width: min(720px, calc(100% - 80px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  pointer-events: none;
}

.hud-block { display: flex; flex-direction: column; gap: 2px; }
.hud-block span, .hud-timer span { color: rgba(75, 49, 60, .58); font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .14em; }
.hud-block strong { font: 700 26px/1 "Manrope", sans-serif; letter-spacing: -.03em; }
.hud-right { align-items: flex-end; }
.hud-timer { min-width: 190px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hud-timer strong { font: 600 34px/.9 "Manrope", sans-serif; }
.hud-timer i { width: 176px; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: rgba(104,65,80,.12); }
.hud-timer i b { display: block; width: 100%; height: 100%; transform-origin: left; border-radius: inherit; background: var(--pink); }

.combo {
  position: absolute;
  z-index: 15;
  right: 42px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateY(-50%);
  pointer-events: none;
}
.combo span { color: #9b818c; font-size: 10px; letter-spacing: .15em; }
.combo b { color: var(--pink); font: 600 21px/1 "Manrope", sans-serif; }
.combo em { font-style: normal; font-size: 46px; }
.combo.bump { animation: combo-bump .25s ease; }
@keyframes combo-bump { 35% { transform: translateY(-50%) scale(1.2) rotate(-2deg); } }

.crosshair {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform .08s ease;
}
.crosshair i { position: absolute; background: white; border-radius: 3px; box-shadow: 0 0 0 1px rgba(126,44,76,.32), 0 1px 5px rgba(71,29,45,.25); }
.crosshair i:nth-child(1), .crosshair i:nth-child(2) { width: 8px; height: 2px; top: 17px; }
.crosshair i:nth-child(1) { left: 2px; }
.crosshair i:nth-child(2) { right: 2px; }
.crosshair i:nth-child(3), .crosshair i:nth-child(4) { width: 2px; height: 8px; left: 17px; }
.crosshair i:nth-child(3) { top: 2px; }
.crosshair i:nth-child(4) { bottom: 2px; }
.crosshair b { position: absolute; left: 16px; top: 16px; width: 4px; height: 4px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px rgba(255,81,149,.6); }
.crosshair.shot { transform: translate(-50%, -50%) scale(.72); }
.crosshair.hit b { animation: cross-hit .25s ease; }
body[data-mode="track"] .crosshair b { width: 7px; height: 7px; left: 14.5px; top: 14.5px; background: white; box-shadow: 0 0 0 3px rgba(255,95,157,.5), 0 0 15px rgba(255,95,157,.85); }
body[data-mode="track"] .crosshair i { opacity: .72; }
#track-energy { --track-energy-angle: 0deg; position: absolute; inset: -10px; opacity: 0; border-radius: 50%; background: conic-gradient(var(--pink) 0 var(--track-energy-angle), rgba(255,255,255,.22) var(--track-energy-angle) 360deg); filter: drop-shadow(0 0 5px rgba(255,95,157,.34)); -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 60% 70%, transparent 72%); mask: radial-gradient(circle, transparent 0 58%, #000 60% 70%, transparent 72%); transition: opacity .2s ease; }
body[data-mode="track"] #track-energy { opacity: .46; }
body.tracking-locked .crosshair b { background: var(--pink); box-shadow: 0 0 0 5px rgba(255,255,255,.72), 0 0 18px rgba(255,95,157,.9); animation: tracking-lock-pulse .62s ease-in-out infinite alternate; }
body.tracking-locked .crosshair i { background: #ffb3cf; box-shadow: 0 0 8px rgba(255,95,157,.55); }
body.tracking-locked #track-energy { opacity: 1; }
body[data-mode="track"].tracking-full #track-energy { inset: -13px; opacity: .24; background: conic-gradient(rgba(255,95,157,.58) 0 360deg); filter: drop-shadow(0 0 4px rgba(255,95,157,.22)); -webkit-mask: radial-gradient(circle, transparent 0 67%, #000 68% 72%, transparent 73%); mask: radial-gradient(circle, transparent 0 67%, #000 68% 72%, transparent 73%); animation: tracking-full-breathe 1.8s ease-in-out infinite alternate; }
body.tracking-locked #flow-aura { opacity: max(.18, calc(var(--flash-strength) * .24)); }
@keyframes tracking-full-breathe { to { opacity: .38; transform: scale(1.025); } }
@keyframes tracking-lock-pulse { to { transform: scale(1.32); box-shadow: 0 0 0 7px rgba(255,255,255,.38), 0 0 24px rgba(255,95,157,.72); } }
@keyframes cross-hit { 45% { transform: scale(3.3); background: white; box-shadow: 0 0 0 7px rgba(255,81,149,.32); } }

#feedback {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: calc(50% + 50px);
  opacity: 0;
  color: white;
  text-shadow: 0 2px 12px rgba(203,50,110,.48);
  font: 800 14px/1 "Manrope", sans-serif;
  letter-spacing: .15em;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(.85);
}
#feedback.show { animation: feedback-up .48s cubic-bezier(.2,.85,.2,1); }
@keyframes feedback-up { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 28% { opacity: 1; transform: translate(-50%, 0) scale(1.18); } 100% { opacity: 0; transform: translate(-50%, -24px) scale(1); } }

.centered { display: grid; place-items: center; background: rgba(255, 239, 246, .28); backdrop-filter: blur(9px); }
.modal, .result-card, .daily-modal { border-radius: 28px; text-align: center; }
.modal { width: min(440px, calc(100% - 40px)); padding: 44px; }
.modal .eyebrow, .result-card .eyebrow { justify-content: center; }
.modal h2, .result-card h2 { margin: 0; font: 700 39px/1.1 "Manrope", sans-serif; letter-spacing: -.05em; }
.modal p:not(.eyebrow), .result-card > p:not(.eyebrow) { color: #826b75; font-size: 13px; line-height: 1.7; }
.modal .primary-btn { margin: 27px auto 5px; }
.text-btn { border: 0; padding: 12px 18px; color: #907681; background: transparent; cursor: pointer; font-size: 12px; }
.text-btn:hover { color: var(--pink); }

.result-card { position: relative; width: min(560px, calc(100% - 40px)); padding: 42px 52px 34px; overflow: hidden; }
.result-grade { position: absolute; top: -22px; right: 8px; color: rgba(255,100,158,.1); font: 800 172px/1 "Manrope", sans-serif; }
.result-score { position: relative; margin: 27px 0 21px; padding: 20px; border-radius: 18px; background: rgba(255,218,233,.38); }
.result-score span { display: block; color: #997e89; font-size: 9px; letter-spacing: .13em; }
.result-score strong { display: block; color: #e94e8a; font: 800 45px/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.result-score i { display: none; position: absolute; right: 14px; top: 14px; padding: 5px 8px; border-radius: 999px; background: var(--pink); color: white; font: normal 700 8px/1 "Manrope", sans-serif; letter-spacing: .08em; }
.result-score i.show { display: block; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.result-grid div { padding: 15px 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.4); }
.result-grid span { display: block; margin-bottom: 5px; color: #a68c97; font-size: 9px; }
.result-grid b { font: 700 18px/1 "Manrope", sans-serif; }
.result-actions { display: flex; flex-direction: column; align-items: center; margin-top: 24px; }

.daily-modal { width: min(460px, calc(100% - 40px)); padding: 42px 46px 34px; }
.daily-modal .eyebrow { justify-content: center; }
.daily-modal h2 { margin: 0; font: 700 38px/1.1 "Manrope", sans-serif; letter-spacing: -.05em; }
.daily-modal > p:not(.eyebrow) { color: #826b75; font-size: 12px; }
.daily-progress { display: flex; justify-content: center; gap: 7px; margin: 0 0 25px; }
.daily-progress i { width: 58px; height: 4px; border-radius: 999px; background: #ead7df; transition: .25s ease; }
.daily-progress i.done { background: var(--pink); box-shadow: 0 0 10px rgba(255,95,157,.25); }
.daily-stage-score { margin: 25px 0 20px; padding: 16px; border-radius: 16px; background: rgba(255,218,233,.42); }
.daily-stage-score span { display: block; color: #9b7c89; font-size: 8px; letter-spacing: .11em; }
.daily-stage-score b { display: block; margin-top: 4px; color: var(--pink); font: 800 32px/1 "Manrope", sans-serif; }
.daily-modal .primary-btn { margin: 0 auto; }

#flow-aura {
  position: absolute;
  inset: -8%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, transparent 25%, rgba(255,92,154,.17) 72%, rgba(255,255,255,.38));
  transition: opacity .45s ease;
}
body[data-flow="1"] #flow-aura { opacity: .2; }
body[data-flow="2"] #flow-aura { opacity: .38; animation: aura-breathe 1.8s ease-in-out infinite; }
body[data-flow="3"] #flow-aura { opacity: .58; animation: aura-breathe 1.1s ease-in-out infinite; }
@keyframes aura-breathe { 50% { opacity: .18; transform: scale(.985); } }

.end-session {
  position: absolute;
  z-index: 18;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  background: rgba(55,35,44,.62);
  color: white;
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
}
.end-session:hover { background: var(--pink); }
.end-session kbd { margin-right: 5px; padding: 2px 5px; color: inherit; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); }

.tutorial-card, .settings-card { border-radius: 28px; }
.tutorial-card { width: min(620px, calc(100% - 40px)); padding: 44px 48px 34px; text-align: center; }
.tutorial-card .eyebrow { justify-content: center; }
.tutorial-card h2, .settings-card h2 { margin: 0; font: 700 39px/1.1 "Manrope", sans-serif; letter-spacing: -.05em; }
.tutorial-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0 26px; }
.tutorial-steps div { min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.38); }
.tutorial-steps b { color: #f6b2cc; font: 800 25px/1 "Manrope", sans-serif; }
.tutorial-steps span { margin: 12px 0 5px; font-weight: 700; font-size: 13px; }
.tutorial-steps small { color: #947985; font-size: 9px; line-height: 1.5; }
.tutorial-card .primary-btn { margin: 0 auto; }

.settings-card { width: min(680px, calc(100% - 40px)); padding: 34px 40px 28px; }
.settings-head { display: flex; justify-content: space-between; align-items: flex-start; }
.settings-head .eyebrow { margin-bottom: 12px; }
.close-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; font-size: 22px; }
.close-btn:hover { color: var(--pink); background: white; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 22px; margin: 30px 0 26px; }
.settings-grid label { position: relative; color: #725965; font-size: 11px; }
.settings-grid output { float: right; color: var(--pink); font-weight: 700; }
.settings-grid input[type="range"] { width: 100%; height: 4px; margin-top: 13px; appearance: none; border-radius: 999px; background: #f0d6e1; accent-color: var(--pink); }
.settings-grid input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; appearance: none; border: 4px solid white; border-radius: 50%; background: var(--pink); box-shadow: 0 1px 7px rgba(118,49,77,.25); }
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle-grid > label { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.34); cursor: pointer; }
.toggle-grid span { display: flex; flex-direction: column; gap: 4px; }
.toggle-grid b { font-size: 11px; }
.toggle-grid small { color: #a28792; font-size: 8px; }
.toggle-grid input { position: absolute; opacity: 0; }
.toggle-grid i { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #dfcbd3; transition: .2s ease; }
.toggle-grid i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; transition: .2s ease; }
.toggle-grid input:checked + i { background: var(--pink); }
.toggle-grid input:checked + i::after { transform: translateX(15px); }
.settings-card > .text-btn { display: block; margin: 17px auto 0; }

.result-card { width: min(600px, calc(100% - 40px)); max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: none; }
.result-card::-webkit-scrollbar { display: none; }
.ability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ability-grid div { position: relative; padding: 13px 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.42); }
.ability-grid span { display: block; color: #a68c97; font-size: 9px; }
.ability-grid b { display: block; margin: 3px 0; color: var(--pink); font: 800 25px/1 "Manrope", sans-serif; }
.ability-grid small { color: #6f5661; font-size: 9px; }
.performance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.performance-grid div { padding: 10px 7px; border-radius: 11px; background: rgba(255,255,255,.34); border: 1px solid rgba(99,46,67,.09); }
.performance-grid span { display: block; color: #a68c97; font-size: 8px; }
.performance-grid b { display: block; margin-top: 4px; color: #67515b; font: 700 11px/1 "Manrope", sans-serif; }
.result-insight { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.42); color: #795f6a; font-size: 10px; }
.history-wrap { padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 13px; }
.history-head { display: flex; justify-content: space-between; color: #a18490; font-size: 8px; letter-spacing: .1em; }
.history-head b { color: var(--pink); }
.history-bars { height: 64px; display: flex; align-items: flex-end; justify-content: center; gap: 9px; padding-top: 10px; }
.history-bars i { position: relative; width: 38px; height: var(--bar); max-height: 50px; min-height: 10px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#ff6aa3, #ffc1d8); transform-origin: bottom; animation: bar-rise .45s ease both; }
.history-bars i b { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); color: #9d7485; font: 600 7px/1 "Manrope", sans-serif; }
.history-empty { align-self: center; color: #ad929d; font-size: 9px; }
@keyframes bar-rise { from { transform: scaleY(0); } }

/* Bloomshot game UI language */
body[data-screen="tutorial"] .topbar,
body[data-screen="pause"] .topbar,
body[data-screen="results"] .topbar,
body[data-screen="settings"] .topbar { opacity: 0; visibility: hidden; }

.ui-cut-panel {
  position: relative;
  overflow: hidden;
  color: var(--ui-light);
  border: 1px solid var(--ui-line-light);
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), transparent 34%),
    linear-gradient(145deg, rgba(45,27,35,.98), rgba(29,18,24,.985));
  box-shadow: 0 34px 90px rgba(39, 18, 28, .3), inset 0 1px 0 rgba(255,255,255,.08);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}

.ui-cut-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ui-pink) 0 46px, transparent 46px) top left / 92px 2px no-repeat,
    linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.12) 46px) top left / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(255,95,157,.06));
}

.ui-kicker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.58);
  font: 700 9px/1 "Manrope", sans-serif;
  letter-spacing: .16em;
}

.ui-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-pink); box-shadow: 0 0 0 5px rgba(255,95,157,.12), 0 0 16px rgba(255,95,157,.42); }
.ui-kicker b { margin-left: auto; color: var(--ui-pink-soft); font-size: 8px; letter-spacing: .1em; }

.command-btn {
  position: relative;
  min-height: 52px;
  padding: 0 13px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  font: 700 12px/1 "Manrope", "PingFang SC", sans-serif;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.command-btn::before { content: ""; position: absolute; left: -1px; top: 13px; bottom: 13px; width: 2px; background: rgba(255,255,255,.18); transition: .16s ease; }
.command-btn b, .command-btn kbd { min-width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; background: rgba(255,255,255,.07); color: inherit; font: 700 10px/1 "Manrope", sans-serif; }
.command-btn:hover { transform: translateX(3px); border-color: rgba(255,181,208,.32); background: rgba(255,255,255,.09); color: white; }
.command-btn:hover::before { background: var(--ui-pink); box-shadow: 0 0 12px rgba(255,95,157,.6); }
.command-btn:active { transform: translateX(3px) scale(.985); }
.command-btn-primary { border-color: rgba(255,95,157,.45); background: linear-gradient(100deg, #f04e90, #ff6aa7); color: white; box-shadow: 0 12px 28px rgba(240,78,144,.2); }
.command-btn-primary::before { background: white; }
.command-btn-primary b, .command-btn-primary kbd { border-color: rgba(255,255,255,.24); background: rgba(63,21,39,.16); color: white; }
.command-btn-primary:hover { background: linear-gradient(100deg, #ff5f9d, #ff78af); border-color: rgba(255,255,255,.36); }
.command-btn-danger { color: #e9b7c9; }
.command-btn-danger:hover { border-color: rgba(255,95,125,.34); background: rgba(255,64,113,.08); color: #ffc8d7; }
.command-link { padding: 10px 4px; border: 0; background: transparent; color: rgba(255,255,255,.43); cursor: pointer; font-size: 10px; }
.command-link:hover { color: var(--ui-pink-soft); }

/* Training hall */
body[data-screen="menu"] .menu-screen {
  padding: 82px clamp(22px, 3vw, 46px) 44px;
  display: grid;
  place-items: center;
}

.hall-status {
  position: absolute;
  z-index: 2;
  top: 82px;
  left: 50%;
  width: min(1180px, calc(100% - 60px));
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(83,55,67,.58);
  font: 700 8px/1 "Manrope", sans-serif;
  letter-spacing: .13em;
  pointer-events: none;
}
.hall-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,95,157,.1); }
.hall-status b { margin-left: auto; color: rgba(83,55,67,.32); font-size: 7px; }

.training-hall {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  min-height: min(540px, calc(100vh - 144px));
  display: grid;
  grid-template-columns: 214px minmax(390px, 1fr) 340px;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.mode-rail {
  min-height: 470px;
  padding: 24px 17px 18px;
  align-self: center;
}
.mode-rail .mode-tabs { position: relative; z-index: 2; margin: 32px 0 22px; display: grid; grid-template-columns: 1fr; gap: 7px; }
.mode-rail .mode-tab {
  min-height: 72px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 29px 1fr 7px;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.72);
  text-align: left;
}
.mode-rail .mode-tab small { grid-row: 1 / 3; min-width: 27px; height: 27px; border-radius: 5px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.3); }
.mode-rail .mode-tab b { align-self: end; color: inherit; font-size: 13px; }
.mode-rail .mode-tab span { align-self: start; margin-top: 4px; color: rgba(255,255,255,.32); font-size: 9px; }
.mode-rail .mode-tab > i { grid-column: 3; grid-row: 1 / 3; align-self: center; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.13); }
.mode-rail .mode-tab:hover { transform: translateX(3px); border-color: rgba(255,181,208,.25); background: rgba(255,255,255,.06); }
.mode-rail .mode-tab.is-active { border-color: rgba(255,95,157,.4); background: linear-gradient(90deg, rgba(255,95,157,.18), rgba(255,95,157,.035)); color: white; box-shadow: inset 2px 0 var(--pink), 0 10px 22px rgba(15,7,11,.14); }
.mode-rail .mode-tab.is-active small { background: var(--pink); color: white; box-shadow: 0 0 16px rgba(255,95,157,.28); }
.mode-rail .mode-tab.is-active span { color: rgba(255,193,216,.65); }
.mode-rail .mode-tab.is-active > i { background: var(--pink); box-shadow: 0 0 9px rgba(255,95,157,.7); }
.mode-rail-hint { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.26); font-size: 8px; }
.mode-rail-hint kbd { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(255,255,255,.45); }

.training-hall .menu-hero { min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.training-hall .mode-chip { margin: 0 0 13px; padding: 7px 11px; border-radius: 4px; background: rgba(255,255,255,.42); color: #856675; font-size: 8px; }
.hall-title-line { width: min(370px, 88%); display: flex; align-items: center; gap: 10px; color: #d04d81; font: 800 8px/1 "Manrope", sans-serif; letter-spacing: .14em; }
.hall-title-line i { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,95,157,.45), transparent); }
.training-hall .menu-hero h1 { margin-top: 9px; font-size: clamp(44px, 5.1vw, 70px); }
.training-hall .mode-tagline { margin: 10px 0 0; font-size: 11px; }
.training-hall .target-preview { width: clamp(260px, 29vw, 380px); height: clamp(245px, 38vh, 350px); margin: 4px 0 0; }
.training-hall .target-preview em { bottom: 8px; border-radius: 5px; background: rgba(255,255,255,.54); }

.training-hall .launch-dock {
  width: 100%;
  min-height: 500px;
  padding: 25px 24px 22px;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}
.training-hall .launch-dock::after { display: none; }
.mission-head { position: relative; z-index: 2; margin: 42px 0 22px; }
.mission-head span { color: var(--ui-pink-soft); font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .12em; }
.mission-head h2 { max-width: 250px; margin: 9px 0 0; color: white; font: 750 25px/1.17 "Manrope", "PingFang SC", sans-serif; letter-spacing: -.04em; }
.training-hall .session-meta { position: relative; z-index: 2; padding: 12px 0; display: grid; grid-template-columns: 1.22fr .7fr 1fr; gap: 0; border: solid rgba(255,255,255,.09); border-width: 1px 0; border-radius: 0; background: transparent; }
.training-hall .session-meta div { padding: 0 11px; gap: 7px; border-right: 1px solid rgba(255,255,255,.08); }
.training-hall .session-meta div:first-child { padding-left: 0; }
.training-hall .session-meta div:last-child { padding-right: 0; border-right: 0; }
.training-hall .session-meta span { color: rgba(255,255,255,.3); font-size: 8px; }
.training-hall .session-meta b { color: rgba(255,255,255,.78); font-size: 10px; overflow-wrap: anywhere; }
.training-hall .best-row { position: relative; z-index: 2; min-height: 58px; margin: 10px 0; padding: 10px 13px; flex-direction: row; align-items: center; justify-content: space-between; border: 1px solid rgba(255,95,157,.14); border-radius: 7px; background: rgba(255,95,157,.065); }
.training-hall .best-row span { color: rgba(255,255,255,.38); font-size: 8px; }
.training-hall .best-row strong { color: var(--ui-pink-soft); font-size: 22px; }
.training-hall .daily-card { position: relative; z-index: 2; min-height: 57px; padding: 10px 11px; display: grid; grid-template-columns: 8px 1fr auto 22px; gap: 9px; border-color: rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.72); }
.training-hall .daily-card > i { width: 5px; height: 5px; align-self: center; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px rgba(255,95,157,.7); }
.training-hall .daily-card span { gap: 3px; }
.training-hall .daily-card small { color: rgba(255,255,255,.28); font-size: 7px; }
.training-hall .daily-card b { color: rgba(255,255,255,.78); font-size: 9px; }
.training-hall .daily-card em { color: var(--ui-pink-soft); font-size: 7px; }
.training-hall .daily-card strong { color: rgba(255,255,255,.4); font-size: 12px; }
.training-hall .daily-card:hover { transform: translateX(3px); border-color: rgba(255,95,157,.3); background: rgba(255,95,157,.08); }
.training-hall .hall-start { position: relative; z-index: 2; width: 100%; margin-top: auto; min-height: 60px; font-size: 13px; }
.launch-hint { position: relative; z-index: 2; margin-top: 11px; color: rgba(255,255,255,.25); font-size: 7px; text-align: center; letter-spacing: .04em; }
.hall-footer { position: absolute; z-index: 2; left: 50%; bottom: 20px; width: min(1180px, calc(100% - 60px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: rgba(75,49,60,.28); font: 700 7px/1 "Manrope", sans-serif; letter-spacing: .12em; }
.hall-footer i { height: 1px; flex: 1; background: rgba(98,57,74,.11); }
.hall-footer b { color: rgba(75,49,60,.4); font-size: 7px; }

/* Training hall layout v2: one stage, one console */
body[data-screen="menu"] .menu-screen { display: block; padding: 72px clamp(24px, 3vw, 52px) 42px; }
.hall-status { top: 76px; width: min(1420px, calc(100% - 80px)); }
.training-hall {
  width: min(1420px, 100%);
  margin: 0 auto;
  height: min(920px, calc(100vh - 114px));
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(290px, 1fr) 245px;
  align-items: stretch;
  gap: 16px;
}

.training-hall > .menu-hero {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.training-hall > .menu-hero .mode-chip { grid-column: auto; grid-row: auto; justify-self: auto; margin: 0 0 9px; }
.training-hall > .menu-hero .hall-title-line { width: min(420px, 74%); }
.training-hall > .menu-hero h1 { grid-column: auto; grid-row: auto; margin-top: 7px; font-size: clamp(46px, 5.2vw, 78px); }
.training-hall > .menu-hero .mode-tagline { grid-column: auto; grid-row: auto; margin: 8px 0 0; font-size: 11px; }
.training-hall > .menu-hero .target-preview {
  grid-column: auto;
  grid-row: auto;
  width: clamp(260px, 27vw, 380px);
  height: clamp(210px, 30vh, 320px);
  min-height: 0;
  justify-self: auto;
  margin: 0;
}
.training-hall > .menu-hero .target-preview em { bottom: 3px; }

.hall-console {
  width: 100%;
  min-height: 245px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  color: white;
}
.hall-console .mode-rail {
  min-width: 0;
  min-height: 0;
  padding: 21px 24px 17px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid rgba(255,255,255,.09);
}
.hall-console .mode-rail .mode-tabs {
  margin: 17px 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hall-console .mode-rail .mode-tab {
  min-width: 0;
  min-height: 82px;
  padding: 12px 11px;
  grid-template-columns: 28px minmax(0,1fr) 5px;
}
.hall-console .mode-rail .mode-tab:hover { transform: translateY(-2px); }
.hall-console .mode-rail-hint { justify-self: end; }

.hall-console .launch-dock {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 20px 22px 18px;
  display: grid;
  grid-template-columns: minmax(235px, 1.15fr) minmax(178px, .85fr);
  grid-template-rows: 36px 72px 54px;
  gap: 8px 18px;
  border-radius: 0;
  overflow: visible;
}
.hall-console .launch-dock::after { display: none; }
.hall-console .launch-dock > .ui-kicker { grid-column: 1; grid-row: 1; align-self: start; }
.hall-console .mission-head { grid-column: 1; grid-row: 2; margin: 0; align-self: center; }
.hall-console .mission-head span { font-size: 8px; }
.hall-console .mission-head h2 { max-width: none; margin-top: 6px; font-size: clamp(18px, 1.45vw, 23px); white-space: normal; }
.hall-console .session-meta {
  grid-column: 1;
  grid-row: 3;
  align-self: stretch;
  padding: 9px 0 0;
  border-width: 1px 0 0;
}
.hall-console .best-row {
  grid-column: 2;
  grid-row: 1;
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
}
.hall-console .best-row strong { font-size: 17px; }
.hall-console .daily-card {
  grid-column: 2;
  grid-row: 2;
  min-height: 58px;
  align-self: center;
}
.hall-console .daily-card:hover { transform: translateY(-2px); }
.hall-console .hall-start {
  grid-column: 2;
  grid-row: 3;
  min-height: 54px;
  margin: 0;
  align-self: stretch;
}
.hall-console .launch-hint { display: none; }
.hall-footer { width: min(1420px, calc(100% - 80px)); bottom: 17px; }

/* Simple lobby v3 */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.top-action { min-height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(93,49,67,.1); border-radius: 8px; background: rgba(255,255,255,.42); color: #765c67; backdrop-filter: blur(12px); cursor: pointer; font-size: 12px; font-weight: 700; }
.top-action b { padding-left: 10px; border-left: 1px solid rgba(93,49,67,.1); color: var(--pink); font: 700 10px/1 "Manrope", sans-serif; }
.top-action:hover { border-color: rgba(255,95,157,.25); background: rgba(255,255,255,.72); color: var(--ink); }
.top-daily.is-complete { border-color: rgba(255,95,157,.28); background: rgba(255,232,241,.72); }

body[data-screen="menu"] .menu-screen { display: block; padding: 70px clamp(24px, 3vw, 48px) 24px; }
.simple-lobby {
  width: min(1320px, 100%);
  height: min(930px, calc(100vh - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-rows: minmax(340px, 1fr) 150px;
  gap: 14px;
}
.simple-lobby > .menu-hero {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.simple-lobby > .menu-hero .mode-chip { grid-column: auto; grid-row: auto; justify-self: auto; margin: 0 0 11px; padding: 8px 13px; border-radius: 5px; font-size: 11px; letter-spacing: .08em; }
.simple-lobby > .menu-hero h1 { grid-column: auto; grid-row: auto; margin: 0; font-size: clamp(58px, 6vw, 88px); line-height: .94; }
.simple-lobby > .menu-hero .mode-tagline { grid-column: auto; grid-row: auto; margin: 13px 0 0; color: #765965; font-size: 16px; letter-spacing: .14em; }
.simple-lobby > .menu-hero .target-preview {
  grid-column: auto;
  grid-row: auto;
  width: clamp(270px, 30vw, 420px);
  height: clamp(205px, 28vh, 315px);
  min-height: 0;
  justify-self: auto;
  margin: 0;
}
.simple-lobby > .menu-hero .target-preview em { bottom: 4px; padding: 8px 13px; border-radius: 5px; font-size: 11px; letter-spacing: .04em; }
.hero-record { min-width: 310px; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 4px 13px; color: #725762; }
.hero-record > span { font-size: 13px; font-weight: 700; }
.hero-record > strong { color: #df477f; font: 800 27px/1 "Manrope", sans-serif; }
.hero-record > p { grid-column: 1 / 3; margin: 4px 0 0; display: flex; align-items: center; justify-content: center; gap: 11px; color: #8c707b; font-size: 12px; }
.hero-record > p b { font-weight: 700; }
.hero-record > p i { width: 4px; height: 4px; border-radius: 50%; background: var(--pink); }

.simple-mode-dock {
  width: 100%;
  min-height: 166px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 286px;
  gap: 12px;
}
.simple-mode-dock .mode-tabs { position: relative; z-index: 2; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.simple-mode-dock .mode-tab {
  min-width: 0;
  min-height: 134px;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 8px;
  grid-template-rows: 1fr;
  align-items: center;
  column-gap: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.72);
  text-align: left;
}
@media (min-width: 881px) {
  .simple-mode-dock #mode-flick {
    border-radius: 8px 8px 8px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  }
}
.simple-mode-dock .mode-tab small { grid-row: auto; min-width: 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.38); font-size: 13px; }
.simple-mode-dock .mode-tab > span { min-width: 0; margin: 0; display: flex; flex-direction: column; align-self: center; align-items: flex-start; gap: 10px; color: inherit; }
.simple-mode-dock .mode-tab b { align-self: flex-start; color: inherit; font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.simple-mode-dock .mode-tab em { overflow: hidden; max-width: 100%; color: rgba(255,255,255,.42); font: normal 550 13px/1.15 "Manrope", "PingFang SC", sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.simple-mode-dock .mode-tab > i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); }
.simple-mode-dock .mode-tab:hover { transform: translateY(-2px); border-color: rgba(255,181,208,.3); background: rgba(255,255,255,.07); }
.simple-mode-dock .mode-tab.is-active { border-color: rgba(255,95,157,.48); background: linear-gradient(105deg, rgba(255,95,157,.2), rgba(255,95,157,.05)); color: white; box-shadow: inset 0 -3px var(--pink), 0 10px 24px rgba(10,4,7,.13); }
.simple-mode-dock .mode-tab.is-active small { background: var(--pink); color: white; box-shadow: 0 0 18px rgba(255,95,157,.3); }
.simple-mode-dock .mode-tab.is-active em { color: rgba(255,207,224,.72); }
.simple-mode-dock .mode-tab.is-active > i { background: var(--pink); box-shadow: 0 0 10px rgba(255,95,157,.8); }
.simple-start {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 134px;
  padding: 0 19px 0 27px;
  border-radius: 8px 0 8px 8px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  font-size: 21px;
  letter-spacing: -.025em;
}
.simple-start b { min-width: 52px; height: 52px; font-size: 22px; }

/* Dark training-room skin */
body[data-screen="menu"] .topbar {
  border-bottom-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(20,11,16,.34), transparent);
}
body[data-screen="menu"] .brand { color: rgba(255,248,251,.94); }
body[data-screen="menu"] .brand small { color: rgba(255,181,208,.58); }
body[data-screen="menu"] .top-action {
  border-color: rgba(255,255,255,.11);
  background: rgba(32,18,25,.58);
  color: rgba(255,248,251,.76);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
body[data-screen="menu"] .top-action b { border-left-color: rgba(255,255,255,.1); color: var(--ui-pink-soft); }
body[data-screen="menu"] .top-action:hover { border-color: rgba(255,95,157,.38); background: rgba(66,34,47,.78); color: white; }
body[data-screen="menu"] .menu-watermark { color: rgba(255,181,208,.075); text-shadow: 0 0 90px rgba(255,95,157,.08); }
body[data-screen="menu"] .menu-grid {
  opacity: .42;
  background-image:
    linear-gradient(rgba(255,95,157,.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,95,157,.17) 1px, transparent 1px);
}
body[data-screen="menu"] .simple-lobby > .menu-hero {
  background: radial-gradient(circle at 50% 56%, rgba(255,95,157,.07), transparent 44%);
}
body[data-screen="menu"] .simple-lobby > .menu-hero h1 { color: #fff8fb; text-shadow: 0 12px 42px rgba(5,2,4,.28); }
body[data-screen="menu"] .simple-lobby > .menu-hero .mode-tagline { color: rgba(255,232,241,.62); }
body[data-screen="menu"] .simple-lobby > .menu-hero .mode-chip {
  border-color: rgba(255,95,157,.22);
  background: rgba(35,19,27,.62);
  color: rgba(255,213,229,.72);
}
body[data-screen="menu"] .simple-lobby > .menu-hero .target-preview em {
  border-color: rgba(255,255,255,.1);
  background: rgba(32,18,25,.7);
  color: rgba(255,231,240,.68);
}
body[data-screen="menu"] .hero-record { color: rgba(255,232,241,.66); }
body[data-screen="menu"] .hero-record > strong { color: var(--ui-pink-soft); }
body[data-screen="menu"] .hero-record > p { color: rgba(255,232,241,.52); }

body.game-active .hud-block span,
body.game-active .hud-timer span { color: rgba(255,232,241,.58); text-shadow: 0 2px 12px rgba(0,0,0,.34); }
body.game-active .hud-block strong,
body.game-active .hud-timer strong { color: #fff8fb; text-shadow: 0 3px 20px rgba(0,0,0,.34); }
body.game-active .hud-right strong { color: var(--ui-pink-soft); }
body.game-active .hud-timer i { background: rgba(255,255,255,.13); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
body.game-active .combo span { color: rgba(255,232,241,.58); }
body.game-active .combo b { color: var(--ui-pink-soft); text-shadow: 0 0 18px rgba(255,95,157,.2); }
body.game-active .end-session { border-color: rgba(255,255,255,.16); background: rgba(25,13,19,.72); color: rgba(255,248,251,.78); }

/* Training configuration bay */
.settings-screen { z-index: 24; display: grid; place-items: center; padding: clamp(18px, 4vw, 52px); background: radial-gradient(circle at 22% 50%, rgba(255,95,157,.12), transparent 34%), rgba(31,18,25,.46); backdrop-filter: blur(9px) saturate(.7); }
.settings-shell { width: min(1110px, 100%); max-height: calc(100vh - 36px); padding: 30px 34px 20px; display: flex; flex-direction: column; }
.settings-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.settings-head h2 { margin: 20px 0 4px; color: white; font: 800 clamp(31px, 4vw, 46px)/1 "Manrope", "PingFang SC", sans-serif; letter-spacing: -.055em; }
.settings-head > div > p { margin: 0; color: rgba(255,255,255,.38); font-size: 9px; }
.settings-close { min-width: 92px; height: 39px; padding: 0 6px 0 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.56); cursor: pointer; font-size: 9px; }
.settings-close b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 4px; background: rgba(255,255,255,.07); color: white; font-size: 16px; font-weight: 400; }
.settings-close:hover { border-color: rgba(255,95,157,.35); color: white; }
.settings-layout { position: relative; z-index: 2; min-height: 0; display: grid; grid-template-columns: .78fr 1.22fr; flex: 1; }

.settings-preview { --preview-scale: 1; --preview-glow: .7; --preview-blur: 36px; position: relative; min-height: 480px; overflow: hidden; display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.09); }
.settings-preview::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,95,157,.13), rgba(255,95,157,.025) 45%, transparent 68%); }
.settings-preview-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle, black, transparent 74%); }
.settings-preview-orbit { position: absolute; border: 1px solid rgba(255,95,157,.2); border-radius: 50%; animation: calibration-spin 14s linear infinite; transform: scale(var(--preview-scale)); }
.settings-preview-orbit::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px rgba(255,95,157,.7); }
.settings-preview-orbit.orbit-a { width: 214px; height: 214px; }
.settings-preview-orbit.orbit-b { width: 310px; height: 310px; border-style: dashed; animation-direction: reverse; animation-duration: 21s; }
.settings-preview-target { position: relative; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; border: 8px solid white; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--pink), 0 0 var(--preview-blur) rgba(255,95,157,.7); transform: scale(var(--preview-scale)); transition: .2s ease; }
.settings-preview-target i { width: 27px; height: 27px; border: 7px solid white; border-radius: 50%; }
.settings-preview-target b { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: white; }
.settings-preview-crosshair { position: absolute; z-index: 3; width: 38px; height: 38px; }
.settings-preview-crosshair i { position: absolute; background: white; box-shadow: 0 0 5px rgba(255,95,157,.5); }
.settings-preview-crosshair i:nth-child(1), .settings-preview-crosshair i:nth-child(2) { top: 18px; width: 9px; height: 2px; }
.settings-preview-crosshair i:nth-child(1) { left: 0; }
.settings-preview-crosshair i:nth-child(2) { right: 0; }
.settings-preview-crosshair i:nth-child(3), .settings-preview-crosshair i:nth-child(4) { left: 18px; width: 2px; height: 9px; }
.settings-preview-crosshair i:nth-child(3) { top: 0; }
.settings-preview-crosshair i:nth-child(4) { bottom: 0; }
.settings-preview-crosshair b { position: absolute; left: 16px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px rgba(255,95,157,.8); }
.settings-preview-flash { position: absolute; z-index: 1; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.23), rgba(255,95,157,.05) 45%, transparent 70%); opacity: var(--preview-glow); transition: opacity .2s ease; }
.settings-preview-readout { position: absolute; left: 25px; right: 25px; bottom: 23px; display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.3); font-size: 8px; }
.settings-preview-readout b { color: var(--ui-pink-soft); font-size: 8px; }

.settings-controls { min-width: 0; padding: 22px 0 0 30px; overflow-y: auto; scrollbar-width: none; }
.settings-controls::-webkit-scrollbar { display: none; }
.settings-section { margin-bottom: 18px; }
.settings-section-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: rgba(255,255,255,.7); font-size: 10px; }
.settings-section-head b { color: rgba(255,255,255,.25); font: 700 8px/1 "Manrope", sans-serif; letter-spacing: .13em; }
.settings-controls .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.settings-controls .feedback-settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-controls .settings-grid label { min-width: 0; min-height: 76px; padding: 12px 13px 10px; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 9px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.03); color: rgba(255,255,255,.72); font-size: 9px; }
.settings-controls .settings-grid label > span { display: flex; flex-direction: column; gap: 3px; }
.settings-controls .settings-grid label small { color: rgba(255,255,255,.27); font-size: 7px; }
.settings-controls .settings-grid output { color: var(--ui-pink-soft); font: 750 11px/1 "Manrope", sans-serif; }
.settings-controls .settings-grid input[type="range"] { grid-column: 1 / 3; width: 100%; height: 3px; margin: 2px 0 0; appearance: none; border-radius: 0; background: linear-gradient(90deg, var(--pink), rgba(255,255,255,.13)); accent-color: var(--pink); cursor: pointer; }
.settings-controls .settings-grid input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px rgba(255,95,157,.38); }
.settings-controls .toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.settings-controls .toggle-grid > label { min-height: 66px; padding: 11px 12px; border-color: rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.03); color: rgba(255,255,255,.72); }
.settings-controls .toggle-grid b { color: rgba(255,255,255,.74); font-size: 9px; }
.settings-controls .toggle-grid small { color: rgba(255,255,255,.27); font-size: 7px; }
.settings-controls .toggle-grid i { flex: 0 0 auto; width: 31px; height: 17px; background: rgba(255,255,255,.13); }
.settings-controls .toggle-grid i::after { width: 11px; height: 11px; background: rgba(255,255,255,.78); }
.settings-controls .toggle-grid input:checked + i { background: var(--pink); box-shadow: 0 0 12px rgba(255,95,157,.2); }
.settings-controls .toggle-grid input:checked + i::after { transform: translateX(14px); background: white; }
.settings-footer { position: relative; z-index: 2; min-height: 42px; padding-top: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,.09); }
.settings-footer .command-link { margin-right: auto; }
.settings-footer span { color: rgba(255,255,255,.25); font-size: 7px; }

.sensitivity-calibration-entry { min-height: 86px; padding: 13px 14px; display: grid; grid-template-columns: minmax(0,1fr) 118px 154px; align-items: center; gap: 14px; border: 1px solid rgba(255,95,157,.22); border-radius: 7px; background: linear-gradient(100deg, rgba(255,95,157,.12), rgba(255,255,255,.035)); }
.sensitivity-calibration-entry > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sensitivity-calibration-entry > div > span { color: white; font-size: 15px; font-weight: 750; }
.sensitivity-calibration-entry > div > small { color: rgba(255,255,255,.4); font-size: 12px; line-height: 1.35; }
.sensitivity-calibration-entry .dpi-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: rgba(255,255,255,.43); font-size: 11px; }
.sensitivity-calibration-entry input,
.calibration-setup input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; outline: none; background: rgba(15,7,12,.38); color: white; font: 750 15px/1 "Manrope", sans-serif; }
.sensitivity-calibration-entry input:focus,
.calibration-setup input:focus { border-color: rgba(255,95,157,.7); box-shadow: 0 0 0 3px rgba(255,95,157,.1); }
.sensitivity-calibration-entry > button { height: 54px; padding: 0 10px 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%); background: var(--ui-pink); color: white; cursor: pointer; font-size: 14px; font-weight: 750; }
.sensitivity-calibration-entry > button b { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(80,17,43,.18); font-size: 18px; }
.sensitivity-calibration-entry > button:hover { background: #ff72aa; }

/* AI training coach */
.ai-coach-screen {
  z-index: 28;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.4vh, 28px);
  background:
    radial-gradient(circle at 20% 35%, rgba(255,95,157,.15), transparent 34%),
    radial-gradient(circle at 82% 68%, rgba(255,181,208,.08), transparent 31%),
    rgba(16,8,13,.86);
  backdrop-filter: blur(13px) saturate(.72);
}

.ai-coach-shell {
  width: min(1240px, 100%);
  height: min(790px, calc(100dvh - 36px));
  min-height: 0;
  padding: 28px 32px 30px;
  display: flex;
  flex-direction: column;
  color: white;
}

.ai-coach-head {
  position: relative;
  z-index: 2;
  min-height: 116px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.ai-coach-head h2 {
  margin: 19px 0 5px;
  color: white;
  font: 800 clamp(34px, 4.2vw, 54px)/.96 "Manrope", "PingFang SC", sans-serif;
  letter-spacing: -.06em;
}

.ai-coach-head > div > p { margin: 0; color: rgba(255,255,255,.4); font-size: 13px; }
.ai-coach-layout { position: relative; z-index: 2; min-height: 0; flex: 1; display: grid; grid-template-columns: 1.06fr .94fr; }
.coach-chat { min-width: 0; min-height: 0; padding: 24px 28px 0 2px; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.09); }
.coach-messages { min-height: 0; flex: 1; overflow-y: auto; padding: 1px 10px 14px 0; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,95,157,.36) transparent; }
.coach-message { max-width: 86%; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: start; }
.coach-message > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,95,157,.3); border-radius: 7px; background: rgba(255,95,157,.1); color: var(--ui-pink-soft); font: 800 10px/1 "Manrope", sans-serif; }
.coach-message > span img { width: 100%; height: 100%; display: block; border-radius: 6px; object-fit: cover; object-position: 50% 38%; filter: saturate(.82) contrast(1.04); }
.coach-message p { margin: 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 3px 9px 9px 9px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.77); font-size: 15px; line-height: 1.58; }
.coach-message.is-user { align-self: flex-end; grid-template-columns: minmax(0,1fr) 34px; }
.coach-message.is-user > span { grid-column: 2; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.11); color: rgba(255,255,255,.62); }
.coach-message.is-user p { grid-column: 1; grid-row: 1; border-radius: 9px 3px 9px 9px; border-color: rgba(255,95,157,.25); background: rgba(255,95,157,.1); color: white; }
.coach-message.is-loading p::after { content: ""; display: inline-block; width: 18px; height: 5px; margin-left: 8px; background: radial-gradient(circle, var(--ui-pink-soft) 2px, transparent 3px) 0 0 / 6px 5px; animation: coach-thinking .8s steps(3) infinite; }
@keyframes coach-thinking { to { background-position: 6px 0; } }

.coach-prompts { padding: 12px 0 10px; display: flex; flex-wrap: wrap; gap: 7px; border-top: 1px solid rgba(255,255,255,.07); }
.coach-prompts button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.56); cursor: pointer; font-size: 12px; }
.coach-prompts button:hover { border-color: rgba(255,95,157,.38); background: rgba(255,95,157,.08); color: white; }
.coach-composer { border: 1px solid rgba(255,95,157,.25); border-radius: 8px; background: linear-gradient(120deg, rgba(255,95,157,.09), rgba(255,255,255,.035)); overflow: hidden; }
.coach-composer textarea { width: 100%; min-height: 82px; max-height: 138px; padding: 15px 16px 8px; resize: vertical; border: 0; outline: 0; background: transparent; color: white; font-size: 15px; line-height: 1.48; }
.coach-composer textarea::placeholder { color: rgba(255,255,255,.25); }
.coach-composer:focus-within { border-color: rgba(255,95,157,.6); box-shadow: 0 0 0 3px rgba(255,95,157,.08); }
.coach-composer > div { min-height: 54px; padding: 0 8px 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.coach-composer > div > span { color: rgba(255,255,255,.26); font-size: 10px; }
.coach-composer .command-btn { min-width: 150px; min-height: 46px; }

.coach-plan { min-width: 0; min-height: 0; padding: 24px 2px 0 30px; display: flex; flex-direction: column; }
.coach-plan > header { min-height: 34px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.45); font-size: 12px; }
.coach-plan > header > div { display: flex; align-items: center; gap: 9px; }
.coach-plan > header i { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-pink); box-shadow: 0 0 0 5px rgba(255,95,157,.1), 0 0 14px rgba(255,95,157,.5); }
.coach-plan > header b { color: var(--ui-pink-soft); font: 800 14px/1 "Manrope", sans-serif; letter-spacing: .06em; }
.coach-plan-copy { padding: 20px 0 16px; }
.coach-plan-copy > span { color: rgba(255,255,255,.25); font: 750 10px/1 "Manrope", sans-serif; letter-spacing: .16em; }
.coach-plan-copy h3 { margin: 10px 0 8px; color: white; font: 800 clamp(26px, 3vw, 38px)/1.02 "Manrope", "PingFang SC", sans-serif; letter-spacing: -.055em; }
.coach-plan-copy p { margin: 0; color: rgba(255,255,255,.42); font-size: 13px; line-height: 1.55; }
.coach-plan-phases { min-height: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,95,157,.36) transparent; }
.coach-plan-empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 13px; border: 1px dashed rgba(255,255,255,.12); border-radius: 7px; color: rgba(255,255,255,.27); font-size: 13px; }
.coach-plan-empty i { width: 46px; height: 46px; border: 1px solid rgba(255,95,157,.25); border-radius: 50%; box-shadow: inset 0 0 0 12px rgba(255,95,157,.05), 0 0 24px rgba(255,95,157,.08); }
.coach-phase { min-height: 76px; padding: 12px 13px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.035); }
.coach-phase > b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,95,157,.12); color: var(--ui-pink-soft); font: 800 12px/1 "Manrope", sans-serif; }
.coach-phase > span { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: white; font-size: 15px; font-weight: 750; }
.coach-phase > span small { overflow: hidden; color: rgba(255,255,255,.34); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.coach-phase > em { color: rgba(255,255,255,.5); font: normal 750 12px/1 "Manrope", sans-serif; }
.coach-plan-boundary { min-height: 36px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.27); font-size: 10px; }
.coach-plan-boundary i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,95,157,.65); }
.coach-start { width: 100%; min-height: 64px; flex: 0 0 auto; font-size: 17px; }
.coach-start:disabled, .coach-composer .command-btn:disabled { cursor: not-allowed; filter: saturate(.35); opacity: .45; transform: none; }
.coach-plan.is-ready > header i { animation: coach-ready-pulse 1.7s ease-in-out infinite; }
@keyframes coach-ready-pulse { 50% { box-shadow: 0 0 0 8px rgba(255,95,157,.04), 0 0 22px rgba(255,95,157,.7); } }

@media (max-width: 880px) {
  .ai-coach-screen { padding: 10px; }
  .ai-coach-shell { height: calc(100dvh - 20px); padding: 22px 22px 24px; overflow-y: auto; scrollbar-width: none; }
  .ai-coach-shell::-webkit-scrollbar { display: none; }
  .ai-coach-layout { grid-template-columns: 1fr; }
  .coach-chat { min-height: 520px; padding: 22px 0 24px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .coach-plan { min-height: 540px; padding: 24px 0 0; }
}

@media (max-width: 560px) {
  .top-ai b { display: none; }
  .ai-coach-shell { padding: 18px 16px 20px; }
  .ai-coach-head { min-height: 102px; }
  .ai-coach-head h2 { font-size: 34px; }
  .ai-coach-head > div > p { display: none; }
  .coach-message { max-width: 94%; }
  .coach-message p { font-size: 14px; }
  .coach-composer > div > span { display: none; }
  .coach-composer > div { justify-content: flex-end; }
  .coach-composer .command-btn { min-width: 138px; }
}

/* Quick sensitivity calibration */
.sensitivity-calibration-screen { z-index: 30; display: grid; place-items: center; padding: clamp(14px, 2vh, 24px); background: radial-gradient(circle at 72% 42%, rgba(255,95,157,.12), transparent 32%), rgba(17,8,13,.82); backdrop-filter: blur(12px) saturate(.68); }
.sensitivity-calibration-shell { width: min(1180px, 100%); height: min(760px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); min-height: 0; padding: 25px 30px 28px; display: flex; flex-direction: column; color: white; }
.calibration-head { position: relative; z-index: 5; min-height: 50px; padding-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.09); }
.calibration-step-label { width: max-content; padding: 7px 10px; border: 1px solid rgba(255,95,157,.27); border-radius: 4px; background: rgba(255,95,157,.08); color: var(--ui-pink-soft); font: 750 11px/1 "Manrope", sans-serif; letter-spacing: .08em; }

.calibration-intro { position: relative; z-index: 2; min-height: 0; flex: 1; display: grid; grid-template-columns: 1.18fr .82fr; align-items: stretch; }
.calibration-intro.is-hidden,
.calibration-test-stage.is-hidden,
.calibration-results.is-hidden { display: none !important; }
.calibration-copy { padding: clamp(42px, 6vw, 76px) clamp(34px, 6vw, 84px) 36px 14px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.09); }
.calibration-copy h2 { max-width: 640px; margin: 22px 0 15px; color: white; font: 800 clamp(42px, 5.3vw, 72px)/.96 "Manrope", "PingFang SC", sans-serif; letter-spacing: -.065em; }
.calibration-copy > p { max-width: 600px; margin: 0; color: rgba(255,255,255,.5); font-size: 16px; line-height: 1.7; }
.calibration-rules { margin-top: auto; padding-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.calibration-rules > div { min-height: 86px; padding: 15px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(255,255,255,.025); }
.calibration-rules b { color: var(--ui-pink); font: 800 22px/1 "Manrope", sans-serif; }
.calibration-rules span { display: flex; flex-direction: column; gap: 5px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; }
.calibration-rules small { color: rgba(255,255,255,.3); font-size: 11px; font-weight: 500; }
.calibration-setup { margin: clamp(36px, 5vw, 66px) 10px clamp(26px, 4vw, 54px) clamp(28px, 4vw, 52px); padding: 24px; align-self: center; display: grid; gap: 11px; border: 1px solid rgba(255,95,157,.2); border-radius: 8px; background: linear-gradient(145deg, rgba(255,95,157,.09), rgba(255,255,255,.025)); }
.calibration-setup > span { margin-bottom: 5px; color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: .1em; }
.calibration-setup > label { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 18px; color: rgba(255,255,255,.75); font-size: 14px; }
.calibration-setup > div { min-height: 48px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.42); font-size: 13px; }
.calibration-setup > div b { color: white; font: 750 17px/1 "Manrope", sans-serif; }
.calibration-setup > p { max-width: 300px; margin: 3px 0 8px; color: rgba(255,255,255,.32); font-size: 11px; line-height: 1.55; }

.calibration-test-stage { position: relative; z-index: 2; min-height: 0; flex: 1; overflow: hidden; cursor: none; background: radial-gradient(circle at center, rgba(255,95,157,.07), transparent 30%); }
.calibration-stage-hud { position: absolute; z-index: 5; inset: 24px 0 auto; display: grid; place-items: center; pointer-events: none; }
.calibration-stage-hud > div { display: flex; align-items: center; gap: 12px; color: var(--ui-pink-soft); font: 750 12px/1 "Manrope", sans-serif; letter-spacing: .08em; }
.calibration-stage-hud > div b { color: rgba(255,255,255,.45); }
.calibration-stage-hud p { margin: 13px 0 5px; color: white; font-size: 21px; font-weight: 750; }
.calibration-stage-hud small { color: rgba(255,255,255,.32); font-size: 12px; }
.calibration-live-target { position: absolute; z-index: 4; left: 50%; top: 54%; width: 88px; height: 88px; display: grid; place-items: center; border: 8px solid white; border-radius: 50%; background: var(--ui-pink); box-shadow: 0 0 0 3px var(--ui-pink), 0 0 44px rgba(255,95,157,.32); transform: translate(-50%,-50%) scale(0); opacity: 0; will-change: left, transform; }
.calibration-live-target.is-live { opacity: 1; transform: translate(-50%,-50%) scale(1); transition: transform .18s cubic-bezier(.2,.9,.2,1), opacity .12s ease; }
.calibration-live-target.is-recorded { animation: calibration-recorded .23s ease-out; }
.calibration-live-target i { width: 27px; height: 27px; border: 7px solid white; border-radius: 50%; }
.calibration-live-target b { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: white; }
.calibration-live-crosshair { position: absolute; z-index: 6; left: 50%; top: 54%; width: 42px; height: 42px; transform: translate(-50%,-50%); pointer-events: none; }
.calibration-live-crosshair i { position: absolute; background: white; box-shadow: 0 0 7px rgba(255,95,157,.8); }
.calibration-live-crosshair i:nth-child(1), .calibration-live-crosshair i:nth-child(2) { top: 20px; width: 10px; height: 2px; }
.calibration-live-crosshair i:nth-child(1) { left: 0; }
.calibration-live-crosshair i:nth-child(2) { right: 0; }
.calibration-live-crosshair i:nth-child(3), .calibration-live-crosshair i:nth-child(4) { left: 20px; width: 2px; height: 10px; }
.calibration-live-crosshair i:nth-child(3) { top: 0; }
.calibration-live-crosshair i:nth-child(4) { bottom: 0; }
.calibration-live-crosshair b { position: absolute; left: 18px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-pink); box-shadow: 0 0 14px var(--ui-pink); }
.calibration-axis-line { position: absolute; left: 7%; right: 7%; top: 54%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07) 18%, rgba(255,95,157,.15) 50%, rgba(255,255,255,.07) 82%, transparent); }
@keyframes calibration-recorded { 45% { filter: brightness(1.7); box-shadow: 0 0 0 8px rgba(255,95,157,.13), 0 0 68px rgba(255,95,157,.5); } }

.calibration-results { position: relative; z-index: 2; min-height: 0; flex: 1; overflow: hidden; display: grid; grid-template-columns: .78fr 1.22fr; }
.calibration-result-main { padding: clamp(38px, 4vw, 54px); display: flex; flex-direction: column; justify-content: flex-start; border-right: 1px solid rgba(255,255,255,.09); background: radial-gradient(circle at 48% 47%, rgba(255,95,157,.14), transparent 44%); }
.calibration-result-main h2 { margin: 25px 0 2px; color: rgba(255,255,255,.62); font-size: 20px; }
.calibration-result-main > strong { color: white; font: 800 clamp(78px, 9vw, 122px)/.88 "Manrope", sans-serif; letter-spacing: -.075em; text-shadow: 0 0 42px rgba(255,95,157,.25); }
.calibration-shift { margin-top: 21px; display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.42); font-size: 13px; }
.calibration-shift i { width: 38px; height: 1px; background: rgba(255,255,255,.16); }
.calibration-shift b { color: var(--ui-pink-soft); }
.calibration-result-main > p { max-width: 390px; margin: 27px 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.55; }
.calibration-confidence { padding-top: 15px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.38); font-size: 12px; }
.calibration-confidence b { color: white; }
.calibration-conversions { min-width: 0; padding: clamp(38px, 4vw, 54px); display: flex; flex-direction: column; justify-content: flex-start; }
.calibration-conversions > header { padding-bottom: 17px; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); color: white; font-size: 16px; font-weight: 750; }
.calibration-conversions > header b { color: var(--ui-pink-soft); font-size: 13px; }
.conversion-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.conversion-grid article { min-height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.035); }
.conversion-grid article:first-child { border-color: rgba(255,95,157,.22); background: rgba(255,95,157,.08); }
.conversion-grid span { color: rgba(255,255,255,.45); font-size: 12px; }
.conversion-grid strong { margin: 13px 0 5px; color: white; font: 800 clamp(27px, 3vw, 38px)/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.conversion-grid article:first-child strong { color: var(--ui-pink-soft); }
.conversion-grid small { color: rgba(255,255,255,.28); font-size: 10px; }
.calibration-conversions > p { margin: 17px 0 22px; color: rgba(255,255,255,.34); font-size: 11px; line-height: 1.55; }
.calibration-result-actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 9px; }
.calibration-result-actions .command-link { grid-column: 1 / 3; justify-self: center; margin-top: 4px; }

/* First-run calibration */
.tutorial-screen {
  z-index: 24;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(28,17,23,.78), rgba(28,17,23,.18) 56%, transparent 78%),
    radial-gradient(circle at 72% 50%, rgba(255,95,157,.13), transparent 34%);
  backdrop-filter: blur(3px) saturate(.82);
}

.tutorial-shell { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(390px, 520px) 1fr; align-items: center; gap: clamp(36px, 8vw, 118px); }
.tutorial-command { padding: 30px 32px 28px; }
.tutorial-command h2 { position: relative; z-index: 2; margin: 26px 0 7px; color: white; font: 800 clamp(33px, 4vw, 48px)/1 "Manrope", "PingFang SC", sans-serif; letter-spacing: -.055em; }
.tutorial-command > p { position: relative; z-index: 2; margin: 0; color: rgba(255,255,255,.5); font-size: 11px; }
.tutorial-mode { position: relative; z-index: 2; width: max-content; margin-top: 35px; padding: 7px 10px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,95,157,.26); border-radius: 5px; background: rgba(255,95,157,.08); color: #ffc0d7; font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .1em; }
.tutorial-mode i { width: 12px; height: 2px; background: var(--ui-pink); }
.tutorial-command .tutorial-steps { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 0; margin: 28px 0 25px; }
.tutorial-command .tutorial-steps div { position: relative; min-height: 62px; padding: 11px 32px 11px 52px; display: grid; grid-template-columns: 1fr; align-content: center; align-items: start; border: 0; border-left: 1px solid rgba(255,255,255,.12); border-radius: 0; background: transparent; text-align: left; }
.tutorial-command .tutorial-steps div::before { content: ""; position: absolute; left: -4px; top: 27px; width: 7px; height: 7px; border-radius: 50%; background: #65505a; box-shadow: 0 0 0 4px var(--plum-900); }
.tutorial-command .tutorial-steps div.is-active::before { background: var(--ui-pink); box-shadow: 0 0 0 4px var(--plum-900), 0 0 14px rgba(255,95,157,.6); }
.tutorial-command .tutorial-steps b { position: absolute; left: 17px; top: 22px; color: rgba(255,255,255,.22); font: 800 10px/1 "Manrope", sans-serif; }
.tutorial-command .tutorial-steps span { margin: 0 0 4px; color: rgba(255,255,255,.9); font-size: 12px; }
.tutorial-command .tutorial-steps small { color: rgba(255,255,255,.4); font-size: 9px; line-height: 1.4; }
.tutorial-command .tutorial-steps i { position: absolute; right: 0; top: 50%; width: 22px; height: 1px; background: rgba(255,255,255,.08); }
.tutorial-actions { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 14px; }

.calibration-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.calibration-stage::before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.58), rgba(255,195,218,.12) 44%, transparent 70%); filter: blur(3px); }
.calibration-orbit { position: absolute; border: 1px solid rgba(255,95,157,.2); border-radius: 50%; animation: calibration-spin 12s linear infinite; }
.calibration-orbit::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ui-pink); box-shadow: 0 0 12px rgba(255,95,157,.7); }
.calibration-orbit.orbit-a { width: 270px; height: 270px; }
.calibration-orbit.orbit-b { width: 410px; height: 410px; border-style: dashed; opacity: .58; animation-direction: reverse; animation-duration: 20s; }
.calibration-target { position: relative; z-index: 2; width: 116px; height: 116px; display: grid; place-items: center; border: 10px solid rgba(255,255,255,.92); border-radius: 50%; background: var(--ui-pink); box-shadow: 0 0 0 3px var(--ui-pink), 0 22px 48px rgba(190,61,111,.25), 0 0 70px rgba(255,95,157,.22); animation: calibration-pulse 2.2s ease-in-out infinite; }
.calibration-target i { width: 35px; height: 35px; border: 9px solid white; border-radius: 50%; }
.calibration-target b { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: white; box-shadow: 0 0 12px white; }
.calibration-axis { position: absolute; background: linear-gradient(90deg, transparent, rgba(255,95,157,.22), transparent); }
.axis-x { width: 490px; height: 1px; }
.axis-y { width: 1px; height: 490px; background: linear-gradient(transparent, rgba(255,95,157,.22), transparent); }
.calibration-stage em { position: absolute; bottom: 26px; color: rgba(91,54,69,.48); font: normal 700 8px/1 "Manrope", sans-serif; letter-spacing: .22em; }
@keyframes calibration-spin { to { transform: rotate(360deg); } }
@keyframes calibration-pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 3px var(--ui-pink), 0 28px 56px rgba(190,61,111,.3), 0 0 90px rgba(255,95,157,.3); } }

/* Pause overlay */
.pause-screen { z-index: 24; display: flex; align-items: center; padding: clamp(28px, 6vw, 90px); background: linear-gradient(90deg, rgba(24,14,20,.965) 0, rgba(35,20,28,.91) 35%, rgba(31,18,25,.35) 68%, rgba(31,18,25,.12)); backdrop-filter: blur(3px) saturate(.58); }
.pause-screen::before { content: ""; position: absolute; left: clamp(28px, 6vw, 90px); top: 0; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(255,95,157,.42), transparent); }
.pause-panel { position: relative; z-index: 2; width: min(390px, 100%); padding-left: clamp(24px, 3vw, 44px); color: white; }
.pause-panel h2 { margin: 9px 0 4px; color: white; font: 800 clamp(52px, 7vw, 82px)/.9 "Manrope", "PingFang SC", sans-serif; letter-spacing: -.08em; }
.pause-mode-name { margin: 52px 0 0; color: var(--ui-pink-soft); font: 700 10px/1 "Manrope", sans-serif; letter-spacing: .16em; }
.pause-note { margin: 12px 0 25px; color: rgba(255,255,255,.42); font-size: 10px; }
.pause-actions { display: grid; gap: 8px; }
.pause-hint { display: block; margin-top: 16px; color: rgba(255,255,255,.28); font-size: 8px; letter-spacing: .08em; }
.pause-reticle { position: absolute; left: 72%; top: 50%; width: min(38vw, 460px); aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.08); border-radius: 50%; opacity: .52; }
.pause-reticle::before, .pause-reticle::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255,95,157,.18); transform: translate(-50%,-50%); }
.pause-reticle::before { width: 130%; height: 1px; }
.pause-reticle::after { width: 1px; height: 130%; }
.pause-reticle i { position: absolute; inset: 18%; border: 1px solid rgba(255,95,157,.2); border-radius: 50%; }
.pause-reticle i:nth-child(2) { inset: 39%; border-color: rgba(255,255,255,.18); }
.pause-reticle b { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--ui-pink); transform: translate(-50%,-50%); box-shadow: 0 0 24px rgba(255,95,157,.72); }

/* Results debrief */
.results-screen { z-index: 24; display: grid; place-items: center; padding: clamp(18px, 4vw, 52px); background: radial-gradient(circle at 20% 48%, rgba(255,95,157,.12), transparent 34%), rgba(35,21,28,.38); backdrop-filter: blur(9px) saturate(.7); }
.result-shell { width: min(1080px, 100%); min-height: min(690px, calc(100vh - 60px)); display: grid; grid-template-columns: .78fr 1.22fr; }
.result-hero { position: relative; z-index: 2; padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.09); background: radial-gradient(circle at 50% 42%, rgba(255,95,157,.13), transparent 42%); }
.grade-emblem { position: relative; width: 230px; height: 230px; margin: auto; display: grid; place-items: center; border: 1px solid rgba(255,95,157,.23); border-radius: 50%; }
.grade-emblem::before, .grade-emblem::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.grade-emblem::before { inset: 18px; }
.grade-emblem::after { inset: 48px; border-color: rgba(255,95,157,.38); box-shadow: 0 0 42px rgba(255,95,157,.13); }
.grade-emblem span { position: absolute; top: 55px; color: rgba(255,255,255,.34); font: 700 8px/1 "Manrope", sans-serif; letter-spacing: .2em; }
.grade-emblem strong { position: relative; z-index: 2; color: white; font: 800 112px/.8 "Manrope", sans-serif; letter-spacing: -.08em; text-shadow: 0 0 35px rgba(255,95,157,.3); }
.grade-emblem i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--ui-pink); box-shadow: 0 0 10px rgba(255,95,157,.8); }
.grade-emblem i:nth-of-type(1) { left: 18px; top: 50%; }
.grade-emblem i:nth-of-type(2) { right: 46px; top: 22px; }
.grade-emblem i:nth-of-type(3) { right: 24px; bottom: 48px; }
.grade-emblem i:nth-of-type(4) { left: 55px; bottom: 26px; }
.result-hero h2 { margin: 0; color: white; font: 800 clamp(32px, 4vw, 48px)/1 "Manrope", "PingFang SC", sans-serif; letter-spacing: -.06em; }
.result-hero > p { margin: 8px 0 0; color: rgba(255,255,255,.46); font-size: 10px; }
.result-shell .result-score { margin: 25px 0 0; padding: 14px 16px; border: 1px solid rgba(255,95,157,.17); border-radius: 7px; background: rgba(255,95,157,.08); }
.result-shell .result-score span { color: rgba(255,255,255,.42); }
.result-shell .result-score strong { color: var(--ui-pink-soft); font-size: 39px; }

.result-data { position: relative; z-index: 2; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; min-width: 0; }
.result-section-head { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.78); font-size: 12px; }
.result-section-head b { color: rgba(255,255,255,.3); font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .13em; }
.result-shell .ability-grid { margin-top: 16px; gap: 8px; }
.result-shell .ability-grid div { min-height: 108px; padding: 16px; border-color: rgba(255,255,255,.1); border-radius: 7px; background: rgba(255,255,255,.045); }
.result-shell .ability-grid span { color: rgba(255,255,255,.5); font-size: 10px; }
.result-shell .ability-grid b { margin: 12px 0 4px; color: var(--ui-pink); font-size: 33px; }
.result-shell .ability-grid small { color: rgba(255,255,255,.72); font-size: 10px; }
.result-shell .result-insight { margin: 9px 0; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; border: 1px solid rgba(255,95,157,.16); border-radius: 7px; background: linear-gradient(90deg, rgba(255,95,157,.1), rgba(255,255,255,.025)); }
.result-shell .result-insight span { color: var(--ui-pink-soft); font-size: 10px; }
.result-shell .result-insight b { color: rgba(255,255,255,.74); font-size: 11px; font-weight: 600; text-align: right; }
.result-shell .performance-grid { gap: 8px; margin: 0; }
.result-shell .performance-grid div { min-height: 60px; padding: 12px; border-color: rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.025); }
.result-shell .performance-grid span { color: rgba(255,255,255,.4); font-size: 9px; }
.result-shell .performance-grid b { color: rgba(255,255,255,.75); font-size: 12px; }
.result-shell .history-wrap { margin-top: 9px; padding: 12px 14px 9px; border-color: rgba(255,255,255,.08); border-radius: 7px; }
.result-shell .history-head { color: rgba(255,255,255,.35); }
.result-shell .history-head b { color: rgba(255,181,208,.64); }
.result-shell .history-bars { height: 56px; }
.result-shell .history-bars i { background: linear-gradient(#ff6aa3, #72364e); }
.result-shell .history-bars i b { color: rgba(255,255,255,.4); }
.result-shell .history-empty { color: rgba(255,255,255,.34); }
.result-shell .result-actions { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.result-bloom-lines { position: absolute; right: -90px; bottom: -110px; width: 330px; height: 330px; opacity: .16; pointer-events: none; }
.result-bloom-lines i { position: absolute; inset: 0; border: 1px solid var(--ui-pink); border-radius: 50%; }
.result-bloom-lines i:nth-child(2) { inset: 45px; border-style: dashed; }
.result-bloom-lines i:nth-child(3) { inset: 100px; border-color: white; }
body.new-best-result .grade-emblem { animation: grade-arrive .75s cubic-bezier(.2,.8,.2,1); }
body.new-best-result .grade-emblem::after { box-shadow: 0 0 62px rgba(255,95,157,.34); }
@keyframes grade-arrive { 0% { opacity: 0; transform: scale(.72) rotate(-8deg); } 65% { opacity: 1; transform: scale(1.06) rotate(1deg); } 100% { transform: scale(1); } }

/* Readable game type scale */
.brand { font-size: 16px; }
.brand small { font-size: 11px; }
.top-action { min-height: 42px; padding-inline: 15px; font-size: 13px; }
.top-action b { font-size: 11px; }

.ui-kicker { font-size: 11px; }
.ui-kicker b { font-size: 11px; }
.command-btn { min-height: 58px; padding-inline: 20px 14px; font-size: 15px; }
.command-btn b,
.command-btn kbd { min-width: 32px; height: 32px; font-size: 13px; }
.command-btn.simple-start {
  font-size: clamp(28px, 2vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}
.command-btn.simple-start b {
  min-width: 58px;
  height: 58px;
  font-size: 24px;
}
.command-link { font-size: 12px; }
.primary-btn { min-height: 62px; font-size: 15px; }
.text-btn { font-size: 13px; }
.eyebrow { font-size: 11px; }

/* In-session HUD stays readable without entering the aim area */
.hud-block span,
.hud-timer span { font-size: 12px; }
.hud-block strong { font-size: 28px; }
.hud-timer strong { font-size: 37px; }
.combo span { font-size: 13px; }
.combo b { font-size: 23px; }
.end-session { padding: 11px 17px; font-size: 12px; }
#feedback { font-size: 16px; }

/* Lobby secondary information */
.simple-lobby > .menu-hero .mode-chip,
.simple-lobby > .menu-hero .target-preview em { font-size: 12px; }
.simple-mode-dock .mode-tab > span { font-size: 13px; }
.hero-record > span { font-size: 14px; }
.hero-record > p { font-size: 13px; }

/* Calibration / tutorial */
.tutorial-command > p { font-size: 14px; line-height: 1.55; }
.tutorial-mode { padding: 8px 12px; font-size: 11px; }
.tutorial-command .tutorial-steps div { min-height: 72px; padding-block: 13px; }
.tutorial-command .tutorial-steps b { top: 25px; font-size: 13px; }
.tutorial-command .tutorial-steps span { font-size: 16px; }
.tutorial-command .tutorial-steps small { font-size: 13px; line-height: 1.45; }
.calibration-stage em { font-size: 11px; }

/* Training configuration */
.settings-head > div > p { font-size: 12px; }
.settings-close { min-width: 104px; height: 44px; padding-left: 15px; font-size: 12px; }
.settings-close b { width: 31px; height: 31px; font-size: 18px; }
.settings-preview-readout,
.settings-preview-readout b { font-size: 11px; }
.settings-section { margin-bottom: 20px; }
.settings-section-head { margin-bottom: 12px; font-size: 14px; }
.settings-section-head b { font-size: 11px; }
.settings-controls .settings-grid label { min-height: 92px; padding: 14px 15px 12px; gap: 11px 12px; font-size: 14px; }
.settings-controls .settings-grid label > span { gap: 5px; }
.settings-controls .settings-grid label small { font-size: 12px; line-height: 1.3; }
.settings-controls .settings-grid output { font-size: 15px; }
.settings-controls .toggle-grid > label { min-height: 84px; padding: 13px 14px; }
.settings-controls .toggle-grid span { gap: 6px; }
.settings-controls .toggle-grid b { font-size: 14px; }
.settings-controls .toggle-grid small { font-size: 12px; line-height: 1.3; }
.settings-footer { min-height: 48px; }
.settings-footer span { font-size: 11px; }

/* Pause overlay */
.pause-mode-name { font-size: 13px; }
.pause-note { font-size: 13px; }
.pause-hint { font-size: 11px; }

/* Daily flow */
.daily-modal > p:not(.eyebrow) { font-size: 14px; }
.daily-stage-score span { font-size: 11px; }

/* Results debrief */
.grade-emblem span { font-size: 11px; }
.result-hero > p { font-size: 13px; }
.result-shell .result-score span { font-size: 11px; }
.result-shell .result-score i { font-size: 11px; }
.result-section-head { font-size: 14px; }
.result-section-head b { font-size: 11px; }
.result-shell .ability-grid span { font-size: 12px; }
.result-shell .ability-grid small { font-size: 13px; }
.result-shell .result-insight { font-size: 13px; }
.result-shell .result-insight span { font-size: 12px; }
.result-shell .result-insight b { font-size: 13px; line-height: 1.35; }
.result-shell .performance-grid span { font-size: 11px; }
.result-shell .performance-grid b { font-size: 14px; }
.result-shell .history-head { font-size: 11px; }
.result-shell .history-bars i b { top: -15px; font-size: 11px; }
.result-shell .history-empty { font-size: 11px; }
.desktop-note { font-size: 11px; }

.desktop-note { display: none; position: absolute; z-index: 30; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 7px 11px; border-radius: 999px; background: rgba(56,37,45,.78); color: white; font-size: 11px; }

@media (max-width: 880px) {
  .menu-screen { padding: 92px 20px 18px; overflow-y: auto; }
  .menu-hero { flex: none; width: 100%; min-height: 330px; }
  .target-preview { width: 250px; height: 210px; }
  .launch-dock { width: min(620px, 100%); }
  .launch-row { grid-template-columns: 1fr 1fr; }
  .launch-row > .primary-btn { grid-column: 2; grid-row: 2; }
  .daily-card { grid-column: 1; grid-row: 2; }
  .session-meta { grid-column: 1; }
  .best-row { grid-column: 2; width: auto; min-height: 54px; }
  .topbar { padding: 0 22px; }
  .desktop-note { display: block; }
  .tutorial-steps { grid-template-columns: 1fr; }
  .tutorial-steps div { min-height: 84px; }
  .settings-grid, .toggle-grid { grid-template-columns: 1fr; }
  .settings-card { max-height: calc(100vh - 90px); overflow-y: auto; }
  .tutorial-screen { place-items: center start; }
  .tutorial-shell { grid-template-columns: minmax(0, 520px); }
  .calibration-stage { position: absolute; right: -150px; width: 480px; opacity: .28; }
  .pause-reticle { left: 78%; opacity: .28; }
  .result-shell { width: min(620px, 100%); min-height: 0; max-height: calc(100vh - 36px); grid-template-columns: 1fr; overflow-y: auto; scrollbar-width: none; }
  .result-shell::-webkit-scrollbar { display: none; }
  .result-hero { min-height: 410px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .grade-emblem { width: 190px; height: 190px; margin: 42px auto; }
  .grade-emblem strong { font-size: 90px; }
  body[data-screen="menu"] .menu-screen { display: block; padding: 86px 18px 48px; }
  .hall-status { top: 72px; width: calc(100% - 36px); }
  .training-hall { width: min(620px, 100%); margin: 0 auto; grid-template-columns: 1fr; gap: 16px; }
  .mode-rail { min-height: 0; padding: 20px 16px 15px; order: 2; }
  .mode-rail .mode-tabs { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 20px 0 12px; }
  .mode-rail .mode-tab { min-height: 64px; padding: 9px; grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; }
  .mode-rail .mode-tab small, .mode-rail .mode-tab > i { display: none; }
  .mode-rail .mode-tab b, .mode-rail .mode-tab span { align-self: center; }
  .mode-rail-hint { display: none; }
  .training-hall .menu-hero { order: 1; min-height: 420px; }
  .training-hall .launch-dock { order: 3; min-height: 440px; }
  .hall-footer { position: relative; left: auto; bottom: auto; width: min(620px, 100%); margin: 18px auto 0; transform: none; }
  body[data-screen="menu"] .menu-screen { display: block; padding: 80px 16px 42px; }
  .hall-status { top: 68px; width: calc(100% - 32px); }
  .training-hall { width: min(700px, 100%); height: auto; grid-template-rows: 380px auto; gap: 14px; }
  .training-hall > .menu-hero { order: initial; min-height: 380px; }
  .training-hall > .menu-hero .target-preview { width: 270px; height: 230px; }
  .hall-console { min-height: 0; grid-template-columns: 1fr; }
  .hall-console .mode-rail { order: initial; padding: 20px 18px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .hall-console .mode-rail .mode-tabs { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hall-console .mode-rail .mode-tab { min-height: 68px; padding: 10px 8px; grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; }
  .hall-console .mode-rail .mode-tab small,
  .hall-console .mode-rail .mode-tab > i { display: none; }
  .hall-console .launch-dock { order: initial; min-height: 0; padding: 20px 18px 19px; grid-template-columns: minmax(220px,1.2fr) minmax(170px,.8fr); }
  .hall-footer { position: relative; left: auto; bottom: auto; width: min(700px,100%); margin: 15px auto 0; transform: none; }
  .top-actions { gap: 6px; }
  .top-action { min-height: 38px; padding: 0 11px; font-size: 12px; }
  .simple-lobby { width: min(700px,100%); height: auto; grid-template-rows: 420px auto; gap: 12px; }
  .simple-lobby > .menu-hero { min-height: 420px; }
  .simple-lobby > .menu-hero h1 { font-size: 58px; }
  .simple-lobby > .menu-hero .target-preview { width: 270px; height: 220px; }
  .simple-mode-dock { min-height: 0; grid-template-columns: 1fr; padding: 14px; }
  .simple-mode-dock .mode-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .simple-mode-dock .mode-tab { min-height: 86px; }
  .simple-start { min-height: 72px; }
  .settings-screen { padding: 12px; }
  .settings-shell { max-height: calc(100vh - 24px); padding: 24px 24px 16px; overflow-y: auto; scrollbar-width: none; }
  .settings-shell::-webkit-scrollbar { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-preview { min-height: 300px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .settings-preview-orbit.orbit-b { width: 260px; height: 260px; }
  .settings-controls { padding: 22px 0 0; overflow: visible; }
}

@media (min-width: 1100px), (min-width: 881px) and (max-height: 650px) {
  .topbar {
    height: 68px;
    padding: 0 28px;
  }

  .menu-screen {
    padding: 68px 24px 10px;
  }

  .menu-hero {
    width: min(920px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(290px, .82fr) minmax(350px, 1.18fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: center;
    column-gap: clamp(36px, 7vw, 96px);
    text-align: left;
  }

  .menu-hero .mode-chip {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0 0 14px;
  }

  .menu-hero h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(43px, 5vw, 61px);
  }

  .menu-hero .mode-tagline {
    grid-column: 1;
    grid-row: 3;
    margin: 17px 0 0;
    font-size: 12px;
  }

  .menu-hero .target-preview {
    grid-column: 2;
    grid-row: 1 / 4;
    width: clamp(250px, 28vw, 360px);
    height: clamp(165px, 30vh, 280px);
    min-height: 165px;
    justify-self: center;
    margin: 0;
  }

  .target-preview em {
    bottom: -1px;
  }

  .launch-dock {
    flex: 0 0 auto;
    padding: 13px;
    border-radius: 24px;
  }

  .mode-tabs {
    margin-bottom: 10px;
  }

  .mode-tab {
    min-height: 64px;
    padding: 10px 14px;
  }

  .launch-row > .primary-btn {
    height: 64px;
  }

  .session-meta,
  .best-row,
  .daily-card {
    min-height: 64px;
  }

  .menu-watermark {
    top: 43%;
    font-size: clamp(130px, 20vw, 280px);
  }
}

@media (min-width: 881px) and (max-height: 500px) {
  .menu-hero {
    grid-template-columns: minmax(270px, .8fr) minmax(300px, 1.2fr);
    column-gap: 30px;
  }

  .menu-hero .target-preview {
    width: 250px;
    height: 165px;
    min-height: 150px;
  }

  .preview-target {
    width: 68px;
    height: 68px;
    border-width: 7px;
  }

  .preview-target i {
    width: 23px;
    height: 23px;
    box-shadow: inset 0 0 0 7px #ff5f9d;
  }

  .orbit-one { width: 112px; height: 112px; }
  .orbit-two { width: 152px; height: 152px; }
}

@media (max-width: 560px) {
  #app { min-height: 100%; }
  .topbar { height: 70px; }
  .utility-btn { padding: 9px 12px; }
  .menu-screen { justify-content: flex-start; padding: 80px 12px 14px; }
  .menu-hero { min-height: 300px; }
  .menu-hero .mode-chip { margin-bottom: 10px; }
  h1 { font-size: 42px; }
  .mode-tagline { margin-top: 9px; font-size: 11px; }
  .target-preview { width: 220px; height: 192px; }
  .preview-target { width: 72px; height: 72px; border-width: 8px; }
  .orbit-one { width: 124px; height: 124px; }
  .orbit-two { width: 170px; height: 170px; }
  .mode-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mode-tab { min-height: 62px; grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 10px 6px; text-align: center; }
  .mode-tab small { display: none; }
  .mode-tab span { display: none; }
  .mode-tab b { align-self: center; font-size: 12px; }
  .launch-row { grid-template-columns: 1fr; }
  .session-meta { grid-column: 1; grid-template-columns: 1.2fr .8fr 1fr; padding: 8px 10px; }
  .best-row { grid-column: 1; width: auto; min-height: 46px; flex-direction: row; align-items: center; justify-content: space-between; }
  .daily-card { grid-column: 1; grid-row: auto; min-height: 48px; }
  .launch-row > .primary-btn { grid-column: 1; grid-row: auto; }
  .hud { top: 92px; width: calc(100% - 34px); }
  .hud-timer { min-width: 120px; }
  .hud-timer i { width: 112px; }
  .hud-block strong { font-size: 23px; }
  .combo { right: 17px; }
  .tutorial-card { max-height: calc(100vh - 90px); overflow-y: auto; padding: 34px 24px 24px; }
  .result-card { padding: 34px 22px 25px; }
  .tutorial-screen { padding: 12px; }
  .tutorial-command { padding: 24px 22px 22px; }
  .tutorial-command h2 { font-size: 36px; }
  .tutorial-mode { margin-top: 25px; }
  .tutorial-command .tutorial-steps { margin: 20px 0; }
  .tutorial-command .tutorial-steps div { min-height: 56px; }
  .tutorial-actions { grid-template-columns: 1fr; }
  .command-link { justify-self: center; }
  .calibration-stage { display: none; }
  .pause-screen { padding: 20px; }
  .pause-screen::before { left: 20px; }
  .pause-panel { padding-left: 22px; }
  .pause-mode-name { margin-top: 40px; }
  .pause-reticle { display: none; }
  .result-shell { max-height: calc(100vh - 20px); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
  .result-hero, .result-data { padding: 24px 20px; }
  .result-hero { min-height: 370px; }
  .grade-emblem { margin: 30px auto; }
  .result-shell .ability-grid, .result-shell .performance-grid { gap: 5px; }
  .result-shell .ability-grid div { padding: 12px 9px; }
  .result-shell .result-insight { grid-template-columns: 1fr; gap: 5px; }
  .result-shell .result-insight b { text-align: left; }
  .result-shell .result-actions { grid-template-columns: 1fr; }
  body[data-screen="menu"] .menu-screen { padding: 78px 10px 34px; }
  .hall-status { top: 67px; width: calc(100% - 24px); }
  .training-hall .menu-hero { min-height: 350px; }
  .training-hall .menu-hero h1 { font-size: 41px; }
  .training-hall .target-preview { width: 230px; height: 215px; }
  .mode-rail .mode-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .training-hall .launch-dock { min-height: 430px; padding: 23px 20px 20px; }
  .mission-head { margin-top: 32px; }
  .hall-footer b { display: none; }
  body[data-screen="menu"] .menu-screen { padding: 72px 10px 34px; }
  .hall-status { top: 63px; width: calc(100% - 22px); }
  .training-hall { grid-template-rows: 330px auto; }
  .training-hall > .menu-hero { min-height: 330px; }
  .training-hall > .menu-hero h1 { font-size: 40px; }
  .training-hall > .menu-hero .target-preview { width: 220px; height: 190px; }
  .hall-console .mode-rail .mode-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hall-console .mode-rail .mode-tab { min-height: 58px; }
  .hall-console .launch-dock { padding: 20px 17px; display: grid; grid-template-columns: 1fr; grid-template-rows: auto; gap: 10px; }
  .hall-console .launch-dock > .ui-kicker,
  .hall-console .mission-head,
  .hall-console .session-meta,
  .hall-console .best-row,
  .hall-console .daily-card,
  .hall-console .hall-start { grid-column: 1; grid-row: auto; }
  .hall-console .mission-head { margin: 10px 0 4px; }
  .hall-console .best-row { min-height: 48px; }
  .hall-console .daily-card { min-height: 54px; }
  .top-daily b { display: none; }
  .top-action { padding: 0 9px; }
  .simple-lobby { grid-template-rows: 380px auto; }
  .simple-lobby > .menu-hero { min-height: 380px; }
  .simple-lobby > .menu-hero .mode-chip { font-size: 11px; }
  .simple-lobby > .menu-hero h1 { font-size: 48px; }
  .simple-lobby > .menu-hero .mode-tagline { font-size: 14px; }
  .simple-lobby > .menu-hero .target-preview { width: 230px; height: 190px; }
  .hero-record { min-width: 260px; }
  .hero-record > span { font-size: 13px; }
  .hero-record > strong { font-size: 24px; }
  .simple-mode-dock .mode-tab { min-height: 78px; padding: 10px; grid-template-columns: 30px minmax(0,1fr) 5px; gap: 8px; }
  .simple-mode-dock .mode-tab small { min-width: 30px; width: 30px; height: 30px; }
  .simple-mode-dock .mode-tab b { font-size: 18px; }
  .simple-mode-dock .mode-tab em { font-size: 12px; }
  .settings-shell { padding: 22px 18px 15px; }
  .settings-head h2 { font-size: 34px; }
  .settings-head > div > p, .settings-close span { display: none; }
  .settings-close { min-width: 39px; padding: 5px; }
  .settings-preview { min-height: 250px; }
  .settings-preview-orbit.orbit-a { width: 160px; height: 160px; }
  .settings-preview-orbit.orbit-b { width: 220px; height: 220px; }
  .settings-preview-target { width: 76px; height: 76px; border-width: 7px; }
  .settings-controls .settings-grid,
  .settings-controls .feedback-settings,
  .settings-controls .toggle-grid { grid-template-columns: 1fr; }
  .settings-footer { flex-wrap: wrap; }
}

@media (max-width: 880px) {
  .sensitivity-calibration-entry { grid-template-columns: minmax(0,1fr) 112px 150px; }
  .sensitivity-calibration-screen { padding: 10px; }
  .sensitivity-calibration-shell { height: calc(100vh - 20px); min-height: 0; padding: 20px; overflow-y: auto; scrollbar-width: none; }
  .sensitivity-calibration-shell::-webkit-scrollbar { display: none; }
  .calibration-intro,
  .calibration-results { grid-template-columns: 1fr; }
  .calibration-copy,
  .calibration-result-main { padding: 34px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .calibration-copy h2 { font-size: clamp(42px, 8vw, 64px); }
  .calibration-setup { width: min(460px,100%); margin: 30px auto; }
  .calibration-result-main { min-height: 430px; }
  .calibration-conversions { padding: 34px 16px; }
  .calibration-test-stage { min-height: 520px; }
}

@media (max-width: 560px) {
  .sensitivity-calibration-entry { grid-template-columns: minmax(0,1fr) 104px; gap: 11px; }
  .sensitivity-calibration-entry > div { grid-column: 1 / 3; }
  .sensitivity-calibration-entry > button { height: 50px; }
  .sensitivity-calibration-shell { padding: 16px; }
  .calibration-head { min-height: 46px; }
  .calibration-copy { padding-inline: 2px; }
  .calibration-copy h2 { font-size: 42px; }
  .calibration-copy > p { font-size: 14px; }
  .calibration-rules { grid-template-columns: 1fr; padding-top: 26px; }
  .calibration-rules > div { min-height: 68px; }
  .calibration-setup { padding: 18px; }
  .conversion-grid { grid-template-columns: 1fr; }
  .conversion-grid article { min-height: 112px; }
  .calibration-result-actions { grid-template-columns: 1fr; }
  .calibration-result-actions .command-link { grid-column: 1; }
  .calibration-test-stage { min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Keep the system pointer hidden during active training even when a browser
   refuses to reacquire Pointer Lock after pausing. */
body[data-screen="playing"],
body[data-screen="playing"] * {
  cursor: none !important;
}
