:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f5f5f2;
  background: #090a0b;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #ceee91;
  outline-offset: 5px;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.4;
}
.shell {
  max-width: 1220px;
  margin: auto;
  padding: 32px 48px 22px;
  min-height: 100svh;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #303133;
  padding-bottom: 23px;
}
.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
}
.brand:before {
  content: "◧";
  margin-right: 12px;
  font-size: 21px;
}
.eyebrow,
.micro,
.tag {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1.8px;
}
.muted {
  color: #909398;
}
.status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 5px;
  height: 5px;
  background: #c7e89a;
  border-radius: 50%;
}
.hero {
  position: relative;
  padding: 65px 0 52px;
  overflow: hidden;
}
.eyebrow {
  color: #a6a9a9;
  margin: 0 0 21px;
}
.hero h1 {
  font-size: clamp(65px, 9.6vw, 126px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  margin: 0;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.hero h1 span {
  display: block;
  color: #9a9d9e;
}
.slogan {
  font-size: 13px;
  letter-spacing: 4px;
  margin: 29px 0 0;
}
.orb {
  position: absolute;
  right: 5%;
  top: 26px;
  width: 290px;
  height: 290px;
  border: 1px solid #282c2d;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orb:before,
.orb:after {
  content: "";
  position: absolute;
  inset: 20px 85px;
  border: 1px solid #424746;
  border-radius: 50%;
}
.orb:after {
  inset: 85px 20px;
}
.orb .cross {
  position: absolute;
  inset: 50% -35px auto;
  height: 1px;
  background: #303536;
}
.orb .cross:after {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  height: 360px;
  width: 1px;
  background: #303536;
}
.orb small {
  position: absolute;
  bottom: 20px;
  right: -25px;
  color: #717875;
  font: 10px monospace;
  letter-spacing: 2px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  text-align: left;
  border: 1px solid #363839;
  background: #121415;
  padding: 24px;
  min-height: 203px;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.card:hover {
  background: #1c1f1f;
  border-color: #8c9489;
}
.card .index {
  color: #7a7f80;
  font: 10px monospace;
  letter-spacing: 2px;
}
.card h2 {
  font-size: 44px;
  letter-spacing: -3px;
  margin: 24px 0 5px;
}
.card .type {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}
.card .desc {
  font: 10px monospace;
  color: #9a9fa0;
  letter-spacing: 1px;
  margin-top: 17px;
}
.card .arrow {
  position: absolute;
  right: 23px;
  top: 24px;
  color: #cce6a9;
  font-size: 23px;
}
.custom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: transparent;
  border: 1px solid #363839;
  margin-top: 12px;
}
.custom strong {
  font-size: 12px;
  letter-spacing: 2px;
}
.custom span {
  font: 10px monospace;
  color: #999;
  letter-spacing: 1px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid #303133;
  margin-top: 30px;
  padding-top: 18px;
}
.disclaimer {
  max-width: 640px;
  font-size: 10px;
  line-height: 1.8;
  color: #8d9394;
  margin: 0;
}
.footer .micro {
  white-space: nowrap;
  font-size: 9px;
}
.panel {
  max-width: 640px;
  margin: 65px auto;
}
.panel h1 {
  font-size: clamp(48px, 10vw, 76px);
  letter-spacing: -4px;
  line-height: 1;
  margin: 20px 0 25px;
}
.back,
.text-btn {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #aaa;
}
.lead {
  color: #a1a6a7;
  font-size: 13px;
  line-height: 1.9;
}
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.rule {
  border: 1px solid #414444;
  padding: 22px;
  font-size: 12px;
  line-height: 1.8;
}
.rule b {
  display: block;
  font-size: 23px;
  letter-spacing: -0.5px;
}
.green {
  color: #9be3ae;
}
.red {
  color: #ff9696;
}
.specs {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  margin: 28px 0;
  padding: 20px 0;
  gap: 12px;
}
.specs span {
  display: block;
  font: 10px monospace;
  color: #93999b;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.specs b {
  font-size: 18px;
}
.primary,
.secondary {
  border: 1px solid #dce8ce;
  background: #dce8ce;
  color: #111;
  padding: 20px 26px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: bold;
  min-height: 55px;
}
.primary {
  width: 100%;
}
.secondary {
  background: transparent;
  color: #eee;
  border-color: #414444;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.actions > * {
  flex: 1;
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 32px 0;
}
.settings label {
  font: 11px monospace;
  letter-spacing: 1px;
}
.settings select {
  display: block;
  margin-top: 10px;
  width: 100%;
  background: #191c1d;
  border: 1px solid #424747;
  color: #fff;
  border-radius: 0;
  padding: 15px;
  font-size: 15px;
}
.settings label:last-child {
  grid-column: 1/-1;
}
.options {
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: #b3b7b7;
  margin: 23px 0;
}
.options input {
  accent-color: #dce8ce;
}
.stage {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: #000;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body.training {
  overflow: hidden;
  overscroll-behavior: none;
}
.stage.follow {
  background: #064b29;
}
.stage.opposite {
  background: #700d17;
}
.signal {
  width: min(78vw, 76dvh);
  height: min(78vw, 76dvh);
  color: #fff;
}
.signal svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.cue {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  font-size: clamp(19px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: 5px;
}
.stage-foot {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 12px monospace;
  color: #fff;
}
.stop {
  background: transparent;
  border: 1px solid #777;
  color: white;
  padding: 13px 18px;
  font: 11px monospace;
  letter-spacing: 2px;
}
.count {
  font-size: clamp(100px, 35vmin, 280px);
  font-weight: 800;
  letter-spacing: -0.08em;
}
.pause-screen {
  position: absolute;
  inset: 0;
  background: #090a0bf5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  z-index: 5;
}
.dialog {
  width: 100%;
  max-width: 440px;
}
.dialog h2 {
  font-size: 40px;
  letter-spacing: -2px;
}
.complete-mark {
  font-size: 12px;
  color: #c7e89a;
  letter-spacing: 3px;
}
.hint {
  font-size: 11px;
  line-height: 1.8;
  color: #8d9696;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 35px 0;
}
.summary > div {
  padding: 22px 0;
  border-top: 1px solid #363a3a;
}
.summary > div:first-child {
  grid-column: 1/-1;
}
.summary dt {
  font: 10px monospace;
  color: #959d9d;
  letter-spacing: 2px;
}
.summary dd {
  margin: 9px 0 0;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: -1px;
}
@media (max-width: 650px) {
  .shell {
    padding: 24px 22px;
  }
  .top {
    padding-bottom: 18px;
  }
  .brand {
    font-size: 12px;
  }
  .top .micro {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .hero {
    padding: 46px 0 37px;
  }
  .hero h1 {
    font-size: clamp(54px, 15vw, 98px);
  }
  .orb {
    right: -85px;
    top: 39px;
    width: 210px;
    height: 210px;
    opacity: 0.55;
  }
  .orb small {
    display: none;
  }
  .slogan {
    font-size: 10px;
    letter-spacing: 3px;
  }
  .cards {
    gap: 7px;
  }
  .card {
    padding: 16px 12px;
    min-height: 177px;
  }
  .card h2 {
    font-size: 35px;
    margin-top: 28px;
  }
  .card .type {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .card .desc {
    font-size: 8px;
    line-height: 1.7;
    letter-spacing: 0.4px;
  }
  .card .arrow {
    right: 11px;
    top: 12px;
    font-size: 19px;
  }
  .card .index {
    font-size: 8px;
  }
  .custom {
    padding: 20px 15px;
  }
  .custom span {
    font-size: 8px;
  }
  .footer {
    display: block;
    margin-top: 25px;
  }
  .footer .micro {
    margin-top: 17px;
  }
  .panel {
    margin: 35px auto;
  }
  .rules {
    gap: 8px;
  }
  .rule {
    padding: 17px;
  }
  .rule b {
    font-size: 20px;
  }
  .settings {
    gap: 18px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.japanese-type {
  display: block;
  margin-top: 8px;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #a3a8a8;
}
@media (max-width: 650px) {
  .japanese-type {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
}

/* v2 training systems retain the monochrome visual language. */
[hidden] {
  display: none !important;
}
.system-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 23px;
}
.card .desc {
  min-height: 48px;
  line-height: 1.6;
}
.card {
  min-height: 295px;
}
.system-title {
  display: block;
  color: #989d9d;
  font-size: 0.65em;
  letter-spacing: -2px;
  margin-top: 15px;
}
.level-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}
.level-card {
  display: block;
  text-align: left;
  border: 1px solid #363839;
  background: #121415;
  padding: 23px;
  width: 100%;
}
.level-card:hover {
  background: #1c1f1f;
  border-color: #8c9489;
}
.level-card .micro {
  display: flex;
  justify-content: space-between;
}
.level-card strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 15px 0 9px;
}
.level-description {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: #a1a6a7;
}
.intro-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 25px;
  border: 1px solid #383c3c;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}
.intro-flow i {
  font-weight: normal;
  color: #888;
  font-style: normal;
}
.intro-flow b {
  font-size: 12px;
  letter-spacing: 3px;
}
.intro-symbol {
  display: block;
  font-size: 38px;
  line-height: 1.3;
}
.switch-intro {
  margin-top: 14px;
}
.switch-intro > span {
  font: 10px monospace;
  color: #999;
}
.switch-intro > div {
  margin-top: 14px;
  line-height: 1.8;
  font-size: 13px;
}
.phase-intro {
  display: grid;
  gap: 0;
  border: 1px solid #383c3c;
}
.phase-intro > div {
  padding: 18px 20px;
  border-bottom: 1px solid #383c3c;
}
.phase-intro > div:last-child {
  border-bottom: 0;
}
.phase-intro span {
  display: block;
  font: 10px monospace;
  color: #a4aaaa;
  letter-spacing: 1px;
}
.phase-intro b {
  display: block;
  margin-top: 9px;
  font-size: 17px;
}
.summary .wide {
  grid-column: 1/-1;
}
.summary dd {
  overflow-wrap: anywhere;
}
.stage.waiting .cue {
  color: #747777;
  font: 14px monospace;
  letter-spacing: 4px;
}
.stage.switching {
  background: #eeefeb;
  color: #090a0b;
}
.stage.switching .stage-foot,
.stage.switching .stop {
  color: #111;
}
.transition {
  position: absolute;
  inset: 15% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}
.transition strong {
  font-size: clamp(38px, 11vmin, 100px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.transition span {
  max-width: 650px;
  font-size: clamp(14px, 3vmin, 22px);
  font-weight: bold;
  line-height: 1.7;
}
.stage-foot {
  gap: 16px;
}
#phase-label {
  font-size: 10px;
  margin-right: auto;
  letter-spacing: 1px;
}
.cue-symbol {
  position: absolute;
  bottom: 13%;
  font-size: clamp(65px, 17vmin, 140px);
  line-height: 1;
  font-weight: 800;
}
.stage.multi .signal {
  width: min(65vw, 54dvh);
  height: min(65vw, 54dvh);
  transform: translateY(-4dvh);
}
@media (orientation: landscape) {
  .stage.multi .signal {
    transform: translateX(-10vw);
    width: 65dvh;
    height: 65dvh;
  }
  .cue-symbol {
    right: 12%;
    bottom: 34%;
    font-size: 25vmin;
  }
  .transition {
    inset: 12% 8%;
    gap: 12px;
  }
}
@media (max-width: 650px) {
  .card {
    min-height: 270px;
  }
  .card .desc {
    font-size: 8px;
  }
  .system-name {
    font-size: 20px;
    letter-spacing: -0.6px;
  }
  .level-card {
    padding: 20px;
  }
  .level-card strong {
    font-size: 22px;
  }
  .intro-panel .eyebrow {
    line-height: 1.8;
  }
  .intro-panel .rule {
    padding: 14px 12px;
    font-size: 11px;
  }
  .intro-panel .rule b {
    font-size: 17px;
  }
  .options {
    gap: 14px;
    flex-wrap: wrap;
  }
  .specs b {
    font-size: 15px;
  }
  .specs span {
    font-size: 9px;
  }
  .summary dd {
    font-size: 23px;
  }
  .stage-foot {
    left: 18px;
    right: 18px;
    gap: 10px;
  }
}

.cue-symbol svg {
  display: block;
  width: clamp(70px, 22vmin, 150px);
  height: clamp(70px, 22vmin, 150px);
}
