:root {
  color-scheme: dark;
  --bg: #070608;
  --panel: #171012;
  --panel-2: #211417;
  --text: #f4f1ef;
  --muted: #b9b1ad;
  --line: rgba(255, 255, 255, 0.16);
  --red: #a71924;
  --red-2: #e23a46;
  --red-deep: #54070d;
  --steel: #8f969b;
  --gold: #c8a55b;
  --shadow: rgba(0, 0, 0, 0.58);
  --glass: rgba(28, 18, 21, 0.9);
  --glass-2: rgba(38, 24, 28, 0.84);
  --red-glow: rgba(226, 58, 70, 0.34);
  --ink: #050506;
  --ink-2: #0b080a;
  --edge: rgba(255, 255, 255, 0.22);
  --edge-soft: rgba(255, 255, 255, 0.1);
  --edge-red: rgba(226, 58, 70, 0.48);
  --silver: #d7dde4;
  --silver-soft: rgba(215, 221, 228, 0.14);
  --silver-edge: rgba(215, 221, 228, 0.34);
  --blue-accent: #78b6d1;
  --blue-soft: rgba(120, 182, 209, 0.14);
  --blue-edge: rgba(120, 182, 209, 0.38);
  --gold-soft: rgba(200, 165, 91, 0.14);
  --gold-edge: rgba(200, 165, 91, 0.46);
}

@media (max-width: 560px) {
  #checker button,
  #checker .game-choice-card {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(93, 4, 12, 0.42) 0, rgba(9, 7, 8, 0.98) 300px, #050506 100%),
    linear-gradient(125deg, rgba(226, 58, 70, 0.13), transparent 22%, transparent 70%, rgba(200, 165, 91, 0.06)),
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 20px),
    var(--bg);
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background:
    linear-gradient(90deg, rgba(7, 6, 8, 0.9) 0 32%, transparent 56%, rgba(7, 6, 8, 0.92) 100%),
    url("./assets/tokyo-ghoul-cabinet.webp") no-repeat right 2vw top 74px / min(44vw, 520px) auto;
  filter: saturate(1.1) contrast(1.18);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(226, 58, 70, 0.2), transparent 34%, rgba(200, 165, 91, 0.1) 52%, transparent 74%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  opacity: 0.34;
  mask-image: linear-gradient(180deg, #000 0, transparent 58%);
}

::selection {
  background: rgba(226, 58, 70, 0.42);
  color: #fff;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(226, 58, 70, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(226, 58, 70, 0.26), rgba(7, 6, 8, 0.86)),
    #161012;
  color: #fff;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 12px 26px rgba(0, 0, 0, 0.36),
    0 0 24px rgba(226, 58, 70, 0.14);
}

.eyebrow,
.kicker {
  margin: 0;
  color: #d7b9ba;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 2px 0 0;
  font-size: clamp(1.12rem, 1.05rem + 0.4vw, 1.5rem);
  line-height: 1.25;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quick-nav a,
.primary-link,
.secondary-link,
.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  text-decoration: none;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
    linear-gradient(90deg, rgba(226, 58, 70, 0.1), transparent 72%),
    rgba(8, 7, 8, 0.86);
  color: #f1e8e4;
  font-size: 0.88rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 10px 22px rgba(0, 0, 0, 0.24);
}

.hero-band,
.tool-band,
.content-band,
.source-band {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px var(--shadow);
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  min-height: 520px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-color: rgba(226, 58, 70, 0.24);
  background:
    linear-gradient(105deg, rgba(103, 5, 13, 0.56), rgba(9, 7, 8, 0.96) 47%, rgba(3, 3, 4, 0.92)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 20px),
    #090708;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(226, 58, 70, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-band::before,
.hero-band::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-band::before {
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 44%, rgba(226, 58, 70, 0.34) 44% 44.7%, rgba(255, 255, 255, 0.08) 44.7% 45%, transparent 45% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 16%, rgba(0, 0, 0, 0.46) 100%);
}

.hero-band::after {
  inset: auto -14% -26% 16%;
  height: 170px;
  background: linear-gradient(90deg, transparent, rgba(226, 58, 70, 0.36), rgba(255, 255, 255, 0.08), rgba(200, 165, 91, 0.14), transparent);
  transform: rotate(-6deg);
}

.hero-copy,
.hero-cabinet {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(2rem, 6.8vw, 4.05rem);
  line-height: 1.05;
  white-space: nowrap;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.62),
    0 0 26px rgba(226, 58, 70, 0.2);
}

.lead {
  max-width: 640px;
  color: #ddd2cf;
  font-size: clamp(0.88rem, 0.84rem + 0.16vw, 0.98rem);
  line-height: 1.72;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-link,
.primary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #c92532, #78101a);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  box-shadow:
    0 12px 28px rgba(143, 21, 29, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.secondary-link,
.ghost-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(28, 18, 21, 0.82);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.detail-link {
  border-color: rgba(200, 165, 91, 0.38);
  color: #f7df9a;
  background: rgba(200, 165, 91, 0.08);
}

.hero-cabinet {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(90deg, rgba(226, 58, 70, 0.28), transparent 38%, rgba(255, 255, 255, 0.055)),
    #070608;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(226, 58, 70, 0.26),
    0 0 42px rgba(226, 58, 70, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-cabinet::before,
.hero-cabinet::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero-cabinet::before {
  background:
    linear-gradient(90deg, rgba(226, 58, 70, 0.18), transparent 38%, rgba(255, 255, 255, 0.07)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 13px);
}

.hero-cabinet::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -80px 110px rgba(0, 0, 0, 0.42);
}

.hero-cabinet img {
  position: relative;
  z-index: 1;
  width: min(94%, 380px);
  max-height: 520px;
  object-fit: contain;
  filter:
    saturate(1.08)
    contrast(1.08)
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.64))
    drop-shadow(0 0 34px rgba(226, 58, 70, 0.28));
}

.tool-band,
.content-band,
.source-band,
.setting-diff-band {
  --band-accent: rgba(215, 221, 228, 0.82);
  --band-trail: rgba(226, 58, 70, 0.3);
  --band-edge: rgba(215, 221, 228, 0.3);
  --band-wash: rgba(215, 221, 228, 0.07);
  --band-glow: rgba(215, 221, 228, 0.08);
  position: relative;
  margin-top: 22px;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  border-color: var(--band-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(145deg, var(--band-wash), rgba(10, 8, 9, 0.98) 42%, rgba(5, 5, 6, 0.98)),
    var(--ink-2);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.62),
    0 0 0 1px var(--band-glow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.setting-diff-band {
  --band-accent: rgba(215, 221, 228, 0.84);
  --band-trail: rgba(226, 58, 70, 0.3);
  --band-edge: rgba(215, 221, 228, 0.3);
  --band-wash: rgba(215, 221, 228, 0.07);
  --band-glow: rgba(215, 221, 228, 0.08);
  border: 1px solid var(--band-edge);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(145deg, rgba(215, 221, 228, 0.07), rgba(84, 7, 13, 0.12) 38%, rgba(7, 6, 8, 0.98)),
    var(--ink-2);
}

#checker.tool-band {
  --band-edge: rgba(215, 221, 228, 0.28);
  --band-wash: rgba(215, 221, 228, 0.07);
  --band-glow: rgba(226, 58, 70, 0.1);
}

#signals.content-band {
  --band-accent: rgba(215, 221, 228, 0.84);
  --band-trail: rgba(226, 58, 70, 0.28);
  --band-edge: rgba(215, 221, 228, 0.3);
  --band-wash: rgba(215, 221, 228, 0.07);
  --band-glow: rgba(215, 221, 228, 0.08);
}

#behavior.content-band {
  --band-accent: rgba(215, 221, 228, 0.84);
  --band-trail: rgba(226, 58, 70, 0.28);
  --band-edge: rgba(215, 221, 228, 0.3);
  --band-wash: rgba(215, 221, 228, 0.07);
  --band-glow: rgba(215, 221, 228, 0.08);
}

#setting-summary.content-band {
  --band-accent: rgba(226, 58, 70, 0.86);
  --band-trail: rgba(215, 221, 228, 0.46);
  --band-edge: rgba(226, 58, 70, 0.32);
  --band-wash: rgba(126, 10, 22, 0.12);
  --band-glow: rgba(226, 58, 70, 0.1);
}

#sources.source-band {
  --band-accent: rgba(215, 221, 228, 0.84);
  --band-trail: rgba(226, 58, 70, 0.28);
  --band-edge: rgba(215, 221, 228, 0.3);
  --band-wash: rgba(215, 221, 228, 0.07);
  --band-glow: rgba(215, 221, 228, 0.08);
}

.tool-band::before,
.content-band::before,
.source-band::before,
.setting-diff-band::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, var(--band-accent), rgba(255, 255, 255, 0.32), var(--band-trail), transparent);
  opacity: 1;
}

.dark-band {
  background:
    linear-gradient(145deg, rgba(95, 5, 12, 0.11), rgba(5, 5, 6, 0.98)),
    #070608;
}

.section-heading {
  --heading-left: var(--silver);
  --heading-edge: rgba(215, 221, 228, 0.34);
  --heading-wash: rgba(215, 221, 228, 0.1);
  --heading-glow: rgba(0, 0, 0, 0.24);
  position: relative;
  max-width: none;
  margin: -2px 0 22px;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--heading-edge);
  border-left: 4px solid var(--heading-left);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--heading-wash), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(5, 5, 6, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 28px var(--heading-glow);
}

#checker .section-heading {
  --heading-left: var(--silver);
  --heading-edge: rgba(215, 221, 228, 0.34);
  --heading-wash: rgba(215, 221, 228, 0.1);
  --heading-glow: rgba(0, 0, 0, 0.24);
}

#setting-diff .section-heading {
  --heading-left: var(--silver);
  --heading-edge: rgba(215, 221, 228, 0.34);
  --heading-wash: rgba(215, 221, 228, 0.1);
  --heading-glow: rgba(0, 0, 0, 0.24);
}

#signals .section-heading {
  --heading-left: var(--silver);
  --heading-edge: rgba(215, 221, 228, 0.34);
  --heading-wash: rgba(215, 221, 228, 0.1);
  --heading-glow: rgba(0, 0, 0, 0.24);
}

#behavior .section-heading {
  --heading-left: var(--silver);
  --heading-edge: var(--silver-edge);
  --heading-wash: rgba(215, 221, 228, 0.12);
  --heading-glow: rgba(215, 221, 228, 0.08);
}

.section-heading h2 {
  position: relative;
  margin: 8px 0;
  padding-left: 0;
  font-size: clamp(1.55rem, 1.22rem + 1.2vw, 2.6rem);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.55),
    0 0 18px rgba(226, 58, 70, 0.12);
}

.section-heading h2::before {
  display: none;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.checker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.counter-field {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    linear-gradient(145deg, rgba(226, 58, 70, 0.045), rgba(8, 7, 8, 0.96)),
    #0b090a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 0 0 1px rgba(0, 0, 0, 0.66),
    0 14px 26px rgba(0, 0, 0, 0.28);
}

.counter-field:focus-within {
  border-color: rgba(226, 58, 70, 0.68);
  box-shadow:
    0 0 0 3px rgba(226, 58, 70, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.counter-field.wide {
  grid-column: 1 / -1;
}

.game-count-field {
  align-items: stretch;
}

.game-mode-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  justify-items: start;
  margin: 0;
  padding: 0;
  border: 0;
}

.game-mode-head legend {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.game-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 10px;
}

.game-choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(8, 7, 8, 0.88);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
}

.game-choice-card:has(input:checked) {
  border-color: rgba(255, 83, 95, 0.78);
  background:
    linear-gradient(180deg, rgba(226, 58, 70, 0.34), rgba(143, 21, 29, 0.22)),
    #0b080a;
  box-shadow:
    0 0 0 2px rgba(226, 58, 70, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.game-input-area {
  display: grid;
  gap: 7px;
}

.game-input-area[hidden],
.game-mode-prompt[hidden] {
  display: none;
}

.game-input-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-input-panel {
  display: grid;
  gap: 6px;
}

.input-caption {
  color: rgba(244, 241, 239, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.input-note {
  margin: 2px 0 0;
  color: rgba(244, 241, 239, 0.68);
  font-size: 0.82rem;
  line-height: 1.65;
}

.net-medal-panel[hidden],
.net-medal-steps[hidden] {
  display: none;
}

.game-step-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.game-step-panels:has(.net-medal-steps:not([hidden])) {
  grid-template-columns: 1fr;
}

.game-step-panel {
  display: grid;
  gap: 7px;
}

.game-step-panel .step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.net-medal-steps .step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.number-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-bottom: 1px solid rgba(226, 58, 70, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055);
}

.number-line.compact {
  justify-content: center;
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    #0f0b0d;
  color: var(--text);
  padding: 0 12px;
}

.counter-field input {
  min-height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  outline: 0;
}

.game-choice-card input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(244, 241, 239, 0.5);
  accent-color: var(--red-2);
  background: transparent;
}

.field-group input:focus,
.field-group select:focus,
.quick-nav a:focus,
.primary-link:focus,
.secondary-link:focus,
.primary-button:focus,
.ghost-button:focus,
.small-reset:focus,
.step-grid button:focus,
.two-buttons button:focus {
  outline: 2px solid var(--red-2);
  outline-offset: 2px;
}

.small-reset {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(200, 165, 91, 0.34);
  border-radius: 6px;
  background: rgba(200, 165, 91, 0.08);
  color: #f7df9a;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.two-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 48px));
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.step-grid button,
.two-buttons button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018)),
    rgba(8, 7, 8, 0.92);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.two-buttons button:not(.minus),
.step-grid button[data-step-input*=":1"],
.step-grid button[data-step-input*=":10"],
.step-grid button[data-step-input*=":100"],
.step-grid button[data-step-input*=":1000"] {
  border-color: rgba(194, 43, 53, 0.34);
  background:
    linear-gradient(180deg, rgba(226, 58, 70, 0.34), rgba(143, 21, 29, 0.24)),
    #0b080a;
}

.two-buttons .minus,
.step-grid button[data-step-input*="-"] {
  border-color: rgba(143, 150, 155, 0.22);
  background:
    linear-gradient(180deg, rgba(143, 150, 155, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(24, 22, 24, 0.94);
  color: rgba(244, 241, 239, 0.82);
}

.step-grid button:active,
.two-buttons button:active,
.small-reset:active {
  transform: translateY(1px);
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.simple-tool-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.forecast-card,
.metric-card,
.behavior-card,
.pro-advice-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.016)),
    linear-gradient(145deg, rgba(226, 58, 70, 0.05), rgba(8, 7, 8, 0.96)),
    #0b090a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 0 0 1px rgba(0, 0, 0, 0.66),
    0 16px 32px rgba(0, 0, 0, 0.3);
}

.forecast-card {
  grid-column: 1 / -1;
  padding: 16px;
  border-color: rgba(215, 221, 228, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.014)),
    linear-gradient(145deg, rgba(226, 58, 70, 0.07), rgba(7, 6, 8, 0.98) 56%, rgba(215, 221, 228, 0.035)),
    #070607;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.72),
    0 20px 42px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(215, 221, 228, 0.06);
}

.metric-card,
.behavior-card,
.pro-advice-card {
  padding: 16px;
}

.output-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.output-heading h3,
.metric-card h3,
.behavior-card h3 {
  margin: 6px 0 0;
  font-size: 1.08rem;
}

.logic-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(200, 165, 91, 0.48);
  border-radius: 6px;
  color: #f7df9a;
  background: rgba(200, 165, 91, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
}

#logicBadge {
  display: none;
}

.tg-setting-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  min-height: 224px;
  padding: 18px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(215, 221, 228, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 22%),
    linear-gradient(180deg, rgba(226, 58, 70, 0.09), rgba(5, 5, 6, 0.9)),
    #050506;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -48px 72px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.72);
}

.tg-setting-chart::before {
  content: none;
}

.tg-setting-chart::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(226, 58, 70, 0.14), transparent 18%, transparent 82%, rgba(215, 221, 228, 0.05)),
    linear-gradient(180deg, transparent 58%, rgba(226, 58, 70, 0.06));
  pointer-events: none;
}

.tg-bar-item {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 10px 5px 0;
  border: 0;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 7px;
  background: transparent;
}

.tg-bar-percent {
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  color: rgba(244, 241, 239, 0.76);
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
}

.tg-bar-percent.is-top {
  border: 1px solid rgba(255, 93, 104, 0.44);
  color: #ff5d68;
  background: rgba(226, 58, 70, 0.13);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(226, 58, 70, 0.18);
}

.tg-bar-percent.is-setting-six-top {
  color: #fff;
  font-size: clamp(1.24rem, 1.05rem + 0.55vw, 1.44rem);
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(90deg, #ff334d, #ff9f1c, #fff344, #35d467, #29a7ff, #9b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: transparent;
  filter: none;
  text-shadow: none;
}

.tg-bar {
  width: min(68px, 76%);
  min-height: 26px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #ff6771, #bd1728 58%, #5d0710);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.36),
    0 0 18px rgba(226, 58, 70, 0.2);
}

.tg-bar-percent.is-top + .tg-bar {
  background: linear-gradient(180deg, #ff7580, #d71d31 58%, #760812);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 22px rgba(255, 61, 79, 0.32),
    0 12px 26px rgba(0, 0, 0, 0.4);
}

.tg-bar.is-pending {
  background: linear-gradient(180deg, rgba(143, 150, 155, 0.5), rgba(255, 255, 255, 0.08));
}

.tg-bar-label {
  color: rgba(244, 241, 239, 0.9);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.forecast-band-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.forecast-band-row div {
  padding: 10px;
  border: 1px solid rgba(215, 221, 228, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
    linear-gradient(90deg, rgba(226, 58, 70, 0.08), transparent),
    rgba(5, 5, 6, 0.88);
  text-align: center;
}

.forecast-band-row span,
.metric-card .eyebrow,
.mini-label {
  display: block;
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 800;
}

.forecast-band-row strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.15;
}

.forecast-band-row strong.is-top {
  color: #ff5d68;
  text-shadow: 0 0 16px rgba(226, 58, 70, 0.22);
}

.metric-card {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    #080708;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2.3rem);
  line-height: 1;
}

.metric-card strong.is-rainbow {
  display: inline-block;
  color: #fff;
  background: linear-gradient(90deg, #ff334d, #ff9f1c, #fff344, #35d467, #29a7ff, #9b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: transparent;
  filter: none;
  text-shadow: none;
}

.metric-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

#hourlyNote {
  color: var(--text);
}

.behavior-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #fff;
  line-height: 1.7;
}

.behavior-card li + li {
  margin-top: 6px;
}

.behavior-strong {
  border-color: rgba(215, 221, 228, 0.28);
  background:
    linear-gradient(90deg, rgba(226, 58, 70, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    #080708;
}

.behavior-strong h3 {
  color: #ff3d4f;
}

.behavior-weak {
  background:
    linear-gradient(90deg, rgba(215, 221, 228, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    #080708;
  border-color: rgba(215, 221, 228, 0.28);
}

.behavior-weak h3 {
  color: #4da3ff;
}

.pro-advice-card {
  grid-column: 1 / -1;
  border-color: rgba(215, 221, 228, 0.28);
  background:
    linear-gradient(90deg, rgba(215, 221, 228, 0.08), rgba(226, 58, 70, 0.08) 44%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    #080708;
}

.pro-advice-card .mini-label {
  color: #fff;
}

.pro-advice-card p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.75;
}

.result-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.result-column,
.signal-item,
.priority-list article,
.boundary-grid article {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.016)),
    linear-gradient(145deg, rgba(226, 58, 70, 0.055), rgba(7, 6, 8, 0.96)),
    #080708;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 0 0 1px rgba(0, 0, 0, 0.66),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

.result-column {
  padding: 16px;
}

.result-column h3,
.signal-item h3,
.priority-list h3,
.boundary-grid h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.result-column ul,
.boundary-grid ul,
.source-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.result-column li + li {
  margin-top: 6px;
}

.setting-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 83, 95, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 16%),
    linear-gradient(135deg, rgba(143, 21, 29, 0.34), rgba(43, 5, 10, 0.95) 48%, rgba(6, 3, 5, 0.98)),
    #100306;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.78),
    0 20px 42px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(226, 58, 70, 0.14);
}

.setting-diff-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--text);
}

.setting-diff-table th,
.setting-diff-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  text-align: center;
  vertical-align: middle;
}

.setting-diff-table th:last-child,
.setting-diff-table td:last-child {
  border-right: 0;
}

.setting-diff-table thead th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(143, 21, 29, 0.88), rgba(22, 4, 8, 0.98));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow:
    inset 0 -1px 0 rgba(255, 83, 95, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.setting-diff-table thead th:first-child {
  text-align: left;
}

.setting-diff-table tbody th {
  width: 38%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 44%),
    linear-gradient(90deg, rgba(126, 10, 22, 0.62), rgba(34, 5, 9, 0.94) 54%, rgba(4, 4, 5, 0.98));
  color: #f6f1ef;
  font-weight: 900;
  text-align: left;
  box-shadow: inset 3px 0 0 rgba(255, 83, 95, 0.38);
}

.setting-diff-table tbody td {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 54%),
    rgba(36, 4, 9, 0.74);
}

.setting-diff-table tbody tr:nth-child(even) td {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 54%),
    rgba(50, 6, 12, 0.78);
}

.setting-diff-table tbody tr:nth-child(even) th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 44%),
    linear-gradient(90deg, rgba(104, 8, 18, 0.64), rgba(29, 4, 8, 0.96) 54%, rgba(4, 4, 5, 0.98));
}

.setting-diff-table tbody tr:hover th,
.setting-diff-table tbody tr:hover td {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 50%),
    rgba(84, 10, 20, 0.78);
}

.rank-max {
  color: #ff6d73;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(226, 58, 70, 0.32);
}

.multi-value {
  display: block;
  line-height: 1.45;
}

.multi-value + .multi-value {
  margin-top: 4px;
}

.multi-value small {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.confirmation-block {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(215, 221, 228, 0.3);
}

.confirmation-panel {
  --panel-accent: rgba(215, 221, 228, 0.22);
  --panel-strong: rgba(215, 221, 228, 0.36);
  --panel-left: var(--silver);
  --panel-wash: rgba(215, 221, 228, 0.07);
  padding: 16px;
  border: 1px solid var(--panel-accent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
    linear-gradient(145deg, var(--panel-wash), rgba(143, 21, 29, 0.08) 34%, rgba(5, 5, 6, 0.94)),
    #070608;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(0, 0, 0, 0.7),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.confirmation-panel h3 {
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--panel-strong);
  border-left: 4px solid var(--panel-left);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--panel-wash), transparent 42%),
    rgba(5, 5, 6, 0.86);
  color: var(--text);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.35rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.invite-panel {
  --panel-accent: rgba(215, 221, 228, 0.28);
  --panel-strong: rgba(215, 221, 228, 0.38);
  --panel-left: var(--silver);
  --panel-wash: rgba(215, 221, 228, 0.08);
  display: flex;
  flex-direction: column;
}

.invite-panel .invite-gallery {
  order: 1;
  margin-top: 0;
  margin-bottom: 12px;
}

.invite-panel .confirmation-table-wrap {
  order: 2;
}

.medal-panel {
  --panel-accent: rgba(215, 221, 228, 0.28);
  --panel-strong: rgba(215, 221, 228, 0.38);
  --panel-left: var(--silver);
  --panel-wash: rgba(215, 221, 228, 0.08);
  display: flex;
  flex-direction: column;
}

.medal-panel .medal-gallery {
  order: 1;
  margin-top: 0;
  margin-bottom: 12px;
}

.medal-panel .confirmation-table-wrap {
  order: 2;
}

.confirmation-panel:has(.trophy-gallery) {
  --panel-accent: var(--silver-edge);
  --panel-strong: rgba(215, 221, 228, 0.44);
  --panel-left: var(--silver);
  --panel-wash: rgba(215, 221, 228, 0.1);
  display: flex;
  flex-direction: column;
}

.confirmation-panel:has(.trophy-gallery) .trophy-gallery {
  order: 1;
  margin-top: 0;
  margin-bottom: 12px;
}

.confirmation-panel:has(.trophy-gallery) .confirmation-table-wrap {
  order: 2;
}

.confirmation-panel:has(.trophy-gallery) .confirmation-table tbody th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.2), transparent 72%),
    linear-gradient(135deg, rgba(143, 21, 29, 0.36), rgba(19, 3, 6, 0.96)),
    #130306;
}

.confirmation-panel:has(.trophy-gallery) .confirmation-table thead tr {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(122, 17, 25, 0.18) 45%, rgba(8, 2, 4, 0.96)),
    linear-gradient(90deg, rgba(88, 10, 16, 0.78), rgba(18, 3, 6, 0.98) 64%, rgba(5, 2, 3, 0.98)),
    #100306;
}

.confirmation-panel:has(.trophy-gallery) .confirmation-table thead th {
  background: transparent;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(255, 72, 85, 0.18);
}

.confirmation-panel:has(.trophy-gallery) .confirmation-table tbody tr:nth-child(even) th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.24), transparent 72%),
    linear-gradient(135deg, rgba(128, 18, 26, 0.42), rgba(19, 3, 6, 0.96)),
    #170407;
}

.confirmation-panel:has(.trophy-gallery) .confirmation-table tbody tr:hover th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.3), transparent 74%),
    linear-gradient(135deg, rgba(158, 25, 34, 0.48), rgba(24, 3, 6, 0.96)),
    #1b0508;
}

.confirmation-panel:has(.trophy-gallery) .confirmation-table thead th {
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.74);
}

.invite-panel .confirmation-table thead th,
.medal-panel .confirmation-table thead th {
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.74);
}

.invite-panel .confirmation-table tbody tr:first-child th,
.invite-panel .confirmation-table tbody tr:first-child td,
.medal-panel .confirmation-table tbody tr:first-child th,
.medal-panel .confirmation-table tbody tr:first-child td {
  border-top: 0.8px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0.8px 0 rgba(255, 255, 255, 0.74);
}

.confirmation-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--panel-accent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--panel-wash), transparent 32%),
    #0b0b0d;
}

.confirmation-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.confirmation-table th,
.confirmation-table td {
  padding: 11px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  text-align: center;
  vertical-align: middle;
}

.confirmation-table thead th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 44%),
    linear-gradient(90deg, var(--panel-wash), rgba(255, 255, 255, 0.045));
  color: #fff;
  font-weight: 900;
}

.invite-panel .confirmation-table thead tr,
.medal-panel .confirmation-table thead tr {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(122, 17, 25, 0.18) 45%, rgba(8, 2, 4, 0.96)),
    linear-gradient(90deg, rgba(88, 10, 16, 0.78), rgba(18, 3, 6, 0.98) 64%, rgba(5, 2, 3, 0.98)),
    #100306;
}

.invite-panel .confirmation-table thead th,
.medal-panel .confirmation-table thead th {
  background: transparent;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(255, 72, 85, 0.18);
}

.confirmation-table tbody th {
  background:
    linear-gradient(90deg, var(--panel-wash), transparent 72%),
    rgba(143, 21, 29, 0.11);
  font-weight: 800;
}

.confirmation-table th:last-child,
.confirmation-table td:last-child {
  border-right: 0;
}

.confirmation-table tr:last-child th,
.confirmation-table tr:last-child td {
  border-bottom: 0;
}

.invite-panel .confirmation-table tbody th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.2), transparent 72%),
    linear-gradient(135deg, rgba(143, 21, 29, 0.36), rgba(19, 3, 6, 0.96)),
    #130306;
}

.invite-panel .confirmation-table tbody tr:nth-child(even) th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.24), transparent 72%),
    linear-gradient(135deg, rgba(128, 18, 26, 0.42), rgba(19, 3, 6, 0.96)),
    #170407;
}

.invite-panel .confirmation-table tbody tr:hover th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.3), transparent 74%),
    linear-gradient(135deg, rgba(158, 25, 34, 0.48), rgba(24, 3, 6, 0.96)),
    #1b0508;
}

.medal-panel .confirmation-table tbody th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.2), transparent 72%),
    linear-gradient(135deg, rgba(143, 21, 29, 0.36), rgba(19, 3, 6, 0.96)),
    #130306;
}

.medal-panel .confirmation-table tbody tr:nth-child(even) th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.24), transparent 72%),
    linear-gradient(135deg, rgba(128, 18, 26, 0.42), rgba(19, 3, 6, 0.96)),
    #170407;
}

.medal-panel .confirmation-table tbody tr:hover th {
  background:
    linear-gradient(90deg, rgba(255, 83, 95, 0.3), transparent 74%),
    linear-gradient(135deg, rgba(158, 25, 34, 0.48), rgba(24, 3, 6, 0.96)),
    #1b0508;
}

.compact-confirmation-table {
  min-width: 440px;
}

.signal-blue {
  color: #5fa8ff;
}

.signal-red {
  color: #ff5d68;
}

.signal-gold {
  color: #f4c75c;
  text-shadow: 0 0 12px rgba(244, 199, 92, 0.22);
}

.signal-rainbow {
  display: inline-block;
  color: #ff5d68;
  font-weight: 900;
  background: linear-gradient(90deg, #ff5d68, #ffd166, #49d17d, #5fa8ff, #c77dff, #ff5d68);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.signal-green {
  color: #49d17d;
}

.confirmation-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.confirmation-card-grid.wide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.confirmation-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 168px;
  gap: 9px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-accent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 24%),
    linear-gradient(145deg, var(--panel-wash), rgba(143, 21, 29, 0.09) 44%, rgba(7, 6, 8, 0.94) 58%),
    #080708;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 0 0 1px rgba(0, 0, 0, 0.66),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.confirmation-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, var(--panel-left), rgba(255, 255, 255, 0.22), rgba(200, 165, 91, 0.28), transparent 60%) top left / 100% 1px no-repeat,
    radial-gradient(circle at 15% 0, var(--panel-wash), transparent 34%);
}

.confirmation-card > * {
  position: relative;
  z-index: 1;
}

.card-image-slot {
  display: grid;
  min-height: 82px;
  place-items: end end;
  padding: 8px;
  border: 1px solid rgba(226, 58, 70, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(194, 43, 53, 0.25), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
    #0d0d10;
  color: rgba(244, 241, 239, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.image-gallery {
  margin-top: 12px;
  align-items: stretch;
}

.image-gallery .confirmation-card {
  min-height: 0;
  padding: 10px;
  border-color: var(--panel-accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 22%),
    linear-gradient(145deg, var(--panel-wash), rgba(143, 21, 29, 0.1) 42%, rgba(7, 6, 8, 0.96) 58%),
    #080708;
}

.confirmation-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  border: 1px solid rgba(215, 221, 228, 0.26);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 35%, rgba(226, 58, 70, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(194, 43, 53, 0.1), transparent 54%),
    #030304;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(0, 0, 0, 0.68);
}

.confirmation-image.trophy-image {
  object-fit: contain;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(194, 43, 53, 0.22), transparent 58%),
    #08080b;
}

.confirmation-image.ending-crop-image {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  padding: 0;
  background: #f3f1ee;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.confirmation-image.ending-source-row-image {
  height: auto;
  width: min(100%, 760px);
  justify-self: center;
  padding: 0;
  background: #f3f1ee;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.confirmation-image.ending-source-row-white-weak,
.confirmation-image.ending-source-row-white-strong,
.confirmation-image.ending-source-row-blue-weak,
.confirmation-image.ending-source-row-blue-strong,
.confirmation-image.ending-source-row-red-weak,
.confirmation-image.ending-source-row-red-strong {
  aspect-ratio: 568 / 181;
  object-fit: cover;
}

.confirmation-image.ending-source-row-white-weak,
.confirmation-image.ending-source-row-blue-weak,
.confirmation-image.ending-source-row-red-weak {
  object-position: top center;
}

.confirmation-image.ending-source-row-white-strong,
.confirmation-image.ending-source-row-blue-strong,
.confirmation-image.ending-source-row-red-strong {
  object-position: center 94%;
}

.image-gallery .confirmation-card strong {
  margin-top: 2px;
}

.confirmation-card strong {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
}

.confirmation-card p,
.confirmation-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.confirmation-note {
  margin-top: 12px;
}

.image-credit {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.image-credit a {
  color: var(--gold);
  text-decoration-color: rgba(200, 165, 91, 0.55);
}

.rare-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rare-card-list div {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(143, 21, 29, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.rare-card-list strong {
  color: #fff;
}

.rare-card-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rare-color {
  width: max-content;
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.rare-color.white {
  background: rgba(255, 255, 255, 0.82);
  color: #111114;
}

.rare-color.blue {
  border: 1px solid rgba(95, 168, 255, 0.32);
  background: rgba(66, 145, 255, 0.22);
  color: #7db9ff;
}

.rare-color.red {
  border: 1px solid rgba(255, 93, 104, 0.32);
  background: rgba(194, 43, 53, 0.22);
  color: #ff7580;
}

.rare-color.bronze {
  border: 1px solid rgba(190, 126, 80, 0.42);
  background:
    linear-gradient(135deg, rgba(205, 132, 82, 0.18), rgba(92, 52, 34, 0.2)),
    rgba(205, 132, 82, 0.08);
  color: #d49462;
}

.rare-color.metal {
  border: 1px solid rgba(200, 165, 91, 0.38);
  background: rgba(200, 165, 91, 0.14);
  color: var(--gold);
}

.rare-color.silver {
  border: 1px solid rgba(218, 225, 232, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(130, 140, 150, 0.14)),
    rgba(190, 198, 207, 0.1);
  color: #dce3ea;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.rare-color.rainbow {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(
      90deg,
      rgba(255, 93, 104, 0.28),
      rgba(255, 209, 102, 0.24),
      rgba(73, 209, 125, 0.24),
      rgba(95, 168, 255, 0.28),
      rgba(199, 125, 255, 0.24),
      rgba(255, 93, 104, 0.28)
    ),
    rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow:
    0 0 14px rgba(95, 168, 255, 0.16),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.ending-card-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(143, 21, 29, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.ending-card-overview strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.45;
}

.ending-card-overview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ending-card-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ending-signal-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(143, 21, 29, 0.16), transparent 54%),
    rgba(255, 255, 255, 0.04);
}

.ending-source-row-card {
  grid-column: 1 / -1;
}

.ending-signal-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  align-items: center;
}

.ending-signal-card strong {
  color: #fff;
  line-height: 1.4;
}

.ending-signal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.bronze-deny-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  background:
    linear-gradient(150deg, rgba(119, 64, 38, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.bronze-deny-image {
  aspect-ratio: auto;
  height: auto;
  width: 100%;
  max-width: 760px;
  justify-self: center;
  padding: 0;
  background: #f3f1ee;
  object-fit: contain;
  border-radius: 4px;
}

.upper-card-detail-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upper-card-only .upper-card-detail-list {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.upper-card-detail {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid rgba(215, 221, 228, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(150deg, rgba(215, 221, 228, 0.08), rgba(143, 21, 29, 0.08) 42%, transparent 58%),
    rgba(255, 255, 255, 0.052);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.upper-card-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 45%, rgba(215, 221, 228, 0.1), transparent 62%),
    #07070a;
}

.upper-card-detail strong {
  font-size: 0.9rem;
}

.upper-card-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.upper-card-copy > span:last-child {
  font-size: 0.86rem;
  font-weight: 900;
}

.rare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.strength-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.strength-chip.weak {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(244, 241, 239, 0.82);
}

.strength-chip.strong {
  border: 1px solid rgba(194, 43, 53, 0.45);
  background: rgba(194, 43, 53, 0.24);
  color: #ff7580;
}

.confirmation-memo ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.confirmation-memo li + li {
  margin-top: 6px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-item {
  padding: 14px;
  border-color: rgba(215, 221, 228, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.016)),
    linear-gradient(145deg, rgba(215, 221, 228, 0.08), rgba(7, 6, 8, 0.96)),
    #080708;
}

.signal-item h3 {
  color: #fff;
}

.signal-item p {
  min-height: 76px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.signal-item span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(200, 165, 91, 0.52);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.signal-image-frame {
  height: 160px;
  margin-bottom: 12px;
  border: 1px solid rgba(215, 221, 228, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(215, 221, 228, 0.1), transparent 60%),
    linear-gradient(150deg, rgba(226, 58, 70, 0.08), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    #030304;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.72),
    0 14px 28px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.signal-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  object-position: center;
}

.signal-image-frame .trophy-signal-image {
  object-fit: contain;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(194, 43, 53, 0.2), transparent 58%),
    #08080b;
}

.priority-list {
  display: grid;
  gap: 10px;
}

.priority-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-color: var(--silver-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.016)),
    linear-gradient(145deg, rgba(215, 221, 228, 0.08), rgba(7, 6, 8, 0.96)),
    #080708;
}

.priority-num {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #e03442, var(--red-deep));
  color: #fff;
  font-weight: 900;
  box-shadow:
    0 10px 22px rgba(143, 21, 29, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.priority-list p {
  grid-column: 2;
  margin: -6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compare-cell {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--silver-edge);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(143, 21, 29, 0.08), transparent 58%),
    rgba(5, 5, 6, 0.84);
  color: var(--muted);
  font-weight: 800;
}

.compare-cell.strong {
  border-color: rgba(226, 58, 70, 0.58);
  background:
    linear-gradient(145deg, rgba(226, 58, 70, 0.2), transparent 58%),
    rgba(8, 7, 8, 0.88);
  color: #fff;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.boundary-grid article {
  padding: 16px;
}

.setting-summary-band .section-heading {
  --heading-left: #e23a46;
  --heading-edge: rgba(226, 58, 70, 0.36);
  --heading-wash: rgba(126, 10, 22, 0.2);
}

.setting-summary-band .section-heading > p:last-child {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.setting-summary-lead,
.setting-summary-close {
  padding: 18px 20px;
  border: 1px solid rgba(226, 58, 70, 0.34);
  border-left: 4px solid #e23a46;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(126, 10, 22, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015)),
    #080708;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.3);
}

.setting-summary-lead h3,
.setting-summary-close h3,
.setting-summary-item h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.setting-summary-lead p,
.setting-summary-close p,
.setting-summary-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.setting-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid rgba(215, 221, 228, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(126, 10, 22, 0.12), transparent 48%),
    #070608;
}

.setting-summary-item {
  min-width: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(215, 221, 228, 0.2);
}

.setting-summary-item:nth-child(odd) {
  border-right: 1px solid rgba(215, 221, 228, 0.2);
}

.setting-summary-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.setting-summary-item h3 {
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(226, 58, 70, 0.34);
}

.setting-summary-close {
  border-color: rgba(215, 221, 228, 0.28);
  border-left-color: #d7dde4;
  background:
    linear-gradient(90deg, rgba(215, 221, 228, 0.1), rgba(126, 10, 22, 0.11) 52%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015)),
    #080708;
}

.source-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 560px) {
  .setting-summary-lead,
  .setting-summary-close {
    padding: 12px;
  }

  .setting-summary-grid {
    grid-template-columns: 1fr;
    margin: 10px 0;
  }

  .setting-summary-item {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(215, 221, 228, 0.2);
  }

  .setting-summary-item:nth-child(odd) {
    border-right: 0;
  }

  .setting-summary-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(215, 221, 228, 0.2);
  }

  .setting-summary-item:last-child {
    border-bottom: 0;
  }

  .setting-summary-lead h3,
  .setting-summary-close h3,
  .setting-summary-item h3 {
    font-size: 0.9rem;
  }

  .setting-summary-lead p,
  .setting-summary-close p,
  .setting-summary-item p {
    font-size: 0.82rem;
    line-height: 1.7;
  }
}

.source-band p {
  color: var(--muted);
  line-height: 1.75;
}

.source-band h2 {
  margin: 6px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--silver-edge);
  color: #f2f4f6;
}

.source-list {
  padding: 14px 14px 14px 1.9rem;
  border: 1px solid rgba(215, 221, 228, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(215, 221, 228, 0.07), rgba(5, 5, 6, 0.86)),
    #070608;
}

.source-list a {
  color: var(--text);
  text-decoration-color: rgba(215, 221, 228, 0.68);
}

.source-list a:hover {
  color: #fff;
}

.site-common-footer {
  width: min(1120px, calc(100% - 28px));
  margin: 28px auto 0;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid rgba(215, 221, 228, 0.18);
}

.site-common-footer p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-link-list a {
  color: var(--text);
  text-decoration-color: rgba(215, 221, 228, 0.56);
  text-underline-offset: 3px;
}

.footer-link-list a:hover {
  color: #fff;
}

.hold-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .top-bar,
  .source-band {
    display: grid;
  }

  .source-band {
    grid-template-columns: 1fr;
  }

  .quick-nav {
    justify-content: start;
  }

  .hero-band {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-cabinet {
    min-height: 420px;
  }

  .simple-tool-output {
    grid-template-columns: 1fr;
  }

  .forecast-card {
    grid-column: auto;
    grid-row: auto;
  }

  .checker-grid,
  .signal-grid,
  .confirmation-card-grid,
  .confirmation-card-grid.wide-grid,
  .ending-card-detail-grid,
  .upper-card-detail-list,
  .rare-card-list,
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-mode-head,
  .game-input-panels,
  .game-step-panels:has(.net-medal-steps:not([hidden])) {
    grid-template-columns: 1fr;
  }

  .result-layout,
  .boundary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 14px;
  }

  body {
    background:
      linear-gradient(180deg, rgba(118, 6, 16, 0.5) 0, rgba(9, 7, 8, 0.98) 260px, #050506 100%),
      linear-gradient(132deg, rgba(226, 58, 70, 0.14), transparent 42%, rgba(200, 165, 91, 0.06)),
      repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 18px),
      var(--bg);
  }

  body::before {
    opacity: 0.16;
    background:
      linear-gradient(180deg, rgba(7, 6, 8, 0.45), rgba(7, 6, 8, 0.9) 74%),
      url("./assets/tokyo-ghoul-cabinet.webp") no-repeat center 70px / min(82vw, 330px) auto;
  }

  body::after {
    opacity: 0.28;
    mask-image: linear-gradient(180deg, #000 0, transparent 48%);
  }

  .page-shell {
    width: min(100% - 8px, 1120px);
    padding-top: 4px;
  }

  .top-bar {
    gap: 6px;
    padding-bottom: 6px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 1.04rem;
  }

  .quick-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-inline: -2px;
    padding: 1px 1px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quick-nav::-webkit-scrollbar {
    display: none;
  }

  .quick-nav a {
    flex: 0 0 auto;
    width: auto;
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .hero-band,
  .tool-band,
  .content-band,
  .source-band,
  .setting-diff-band {
    margin-top: 12px;
    padding: 10px;
  }

  .hero-band {
    gap: 10px;
    border-color: rgba(226, 58, 70, 0.44);
    background:
      linear-gradient(180deg, rgba(116, 7, 16, 0.62), rgba(9, 7, 8, 0.96) 47%, rgba(4, 4, 5, 0.94)),
      repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 18px),
      #070608;
    box-shadow:
      0 22px 54px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .hero-band::after {
    inset: auto -24% -18% 8%;
    height: 96px;
  }

  .checker-grid,
  .signal-grid,
  .confirmation-card-grid,
  .confirmation-card-grid.wide-grid,
  .ending-card-detail-grid,
  .upper-card-detail-list,
  .rare-card-list,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .invite-panel .invite-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .invite-panel .invite-gallery .confirmation-card {
    gap: 5px;
    min-height: 0;
    padding: 7px 6px;
    text-align: center;
  }

  .invite-panel .invite-gallery .confirmation-card:nth-child(7) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 7px) / 2);
  }

  .invite-panel .invite-gallery .confirmation-image {
    aspect-ratio: 16 / 9;
    padding: 3px;
  }

  .invite-panel .invite-gallery .confirmation-card strong {
    font-size: 0.72rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .invite-panel .invite-gallery .confirmation-card p {
    font-size: 0.66rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .confirmation-panel:has(.trophy-gallery) .trophy-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .confirmation-panel:has(.trophy-gallery) .trophy-gallery .confirmation-card {
    gap: 5px;
    padding: 6px 5px;
    text-align: center;
  }

  .confirmation-panel:has(.trophy-gallery) .trophy-gallery .confirmation-image.trophy-image {
    aspect-ratio: 1 / 1.08;
    padding: 4px;
  }

  .confirmation-panel:has(.trophy-gallery) .trophy-gallery .confirmation-card strong {
    font-size: 0.72rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .confirmation-panel:has(.trophy-gallery) .trophy-gallery .confirmation-card p {
    font-size: 0.66rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .upper-card-only .upper-card-detail-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .upper-card-only .upper-card-detail {
    gap: 4px;
    padding: 5px 4px;
    text-align: center;
  }

  .upper-card-only .upper-card-detail img {
    aspect-ratio: 4 / 5;
    padding: 3px;
  }

  .upper-card-only .upper-card-detail strong {
    font-size: 0.68rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .upper-card-only .upper-card-copy {
    display: grid;
    justify-items: center;
    gap: 3px;
  }

  .upper-card-only .rare-color {
    min-width: 0;
    padding: 3px 5px;
    font-size: 0.56rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .upper-card-only .upper-card-copy > span:last-child {
    font-size: 0.6rem;
    line-height: 1.18;
  }

  .ending-card-overview,
  .ending-signal-card-wide {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 1.9rem;
    text-shadow:
      0 2px 0 rgba(0, 0, 0, 0.44),
      0 0 30px rgba(226, 58, 70, 0.34);
  }

  .lead {
    color: #e7dcda;
    font-size: 0.86rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-cabinet {
    order: -1;
    min-height: 230px;
    border-color: rgba(255, 255, 255, 0.3);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 24%),
      radial-gradient(circle at 50% 34%, rgba(226, 58, 70, 0.16), transparent 58%),
      linear-gradient(145deg, rgba(226, 58, 70, 0.16), rgba(7, 6, 8, 0.3) 42%, rgba(255, 255, 255, 0.055)),
      #050506;
  }

  .hero-cabinet img {
    width: min(72%, 220px);
    max-height: 225px;
  }

  .primary-link,
  .secondary-link,
  .primary-button,
  .ghost-button {
    width: 100%;
    min-height: 34px;
    font-size: 0.9rem;
  }

  .section-heading {
    margin: -2px 0 12px;
    padding: 8px 9px;
    border-left-width: 3px;
  }

  .section-heading h2 {
    margin: 5px 0;
    font-size: 1.42rem;
  }

  .section-heading p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .checker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
  }

  .field-group {
    gap: 5px;
  }

  .field-group label,
  .game-mode-head legend {
    font-size: 0.8rem;
  }

  .counter-field {
    padding: 7px;
  }

  .game-choice-list {
    gap: 6px;
  }

  .game-choice-card {
    min-height: 38px;
    gap: 6px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .game-choice-card input[type="radio"] {
    width: 14px;
    min-height: 14px;
    height: 14px;
  }

  .game-input-area,
  .game-input-panel,
  .game-step-panel {
    gap: 5px;
  }

  .game-input-panels,
  .game-step-panels {
    gap: 7px;
  }

  .input-caption {
    font-size: 0.68rem;
  }

  .input-note {
    font-size: 0.72rem;
    line-height: 1.42;
  }

  .number-line {
    min-height: 32px;
  }

  .field-group input,
  .field-group select {
    min-height: 36px;
    padding: 0 8px;
  }

  .counter-field input {
    min-height: 32px;
    font-size: 1.55rem;
  }

  .small-reset {
    min-height: 25px;
    padding: 0 7px;
    font-size: 0.66rem;
  }

  .step-grid {
    gap: 4px;
    margin-top: 5px;
  }

  .two-buttons {
    grid-template-columns: repeat(2, minmax(0, 38px));
    gap: 8px;
    margin-top: 5px;
  }

  .step-grid button,
  .two-buttons button {
    min-height: 30px;
    border-radius: 6px;
    font-size: 0.82rem;
  }

  .counter-field:not(.wide) {
    gap: 4px;
    padding: 7px 6px;
  }

  .counter-field:not(.wide) label {
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .counter-field:not(.wide) .number-line {
    min-height: 29px;
  }

  .counter-field:not(.wide) input {
    min-height: 29px;
    font-size: 1.4rem;
  }

  .counter-field:not(.wide) .two-buttons {
    grid-template-columns: repeat(2, minmax(0, 34px));
    gap: 6px;
    margin-top: 3px;
  }

  .simple-tool-output {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .forecast-card,
  .metric-card,
  .pro-advice-card {
    grid-column: 1 / -1;
  }

  .forecast-card,
  .metric-card,
  .behavior-card,
  .pro-advice-card,
  .result-column,
  .signal-item,
  .priority-list article,
  .boundary-grid article {
    padding: 10px;
  }

  .metric-card h3,
  .behavior-card h3 {
    margin-top: 3px;
    font-size: 0.9rem;
  }

  .behavior-card {
    min-width: 0;
    padding: 8px;
  }

  .behavior-card h3 {
    font-size: 0.78rem;
  }

  .behavior-card ul {
    padding-left: 0.9rem;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .behavior-card li + li {
    margin-top: 4px;
  }

  .metric-card strong {
    margin-top: 6px;
    font-size: 1.55rem;
  }

  .forecast-band-row div {
    padding: 7px;
  }

  .tg-setting-chart {
    gap: 4px;
    min-height: 106px;
    height: 106px;
    padding: 7px 4px 6px;
  }

  .output-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .logic-badge {
    width: fit-content;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
  }

  .tg-setting-chart::before {
    right: 8px;
    bottom: 46px;
    left: 8px;
  }

  .tg-bar-item {
    padding: 4px 1px 0;
    border-radius: 6px;
    gap: 4px;
  }

  .tg-bar-percent {
    min-height: 14px;
    padding: 0 3px;
    font-size: 0.62rem;
    line-height: 1.05;
  }

  .tg-bar-percent.is-setting-six-top {
    padding: 0 3px;
    font-size: 0.82rem;
    -webkit-text-stroke-width: 0;
  }

  .tg-bar {
    width: min(34px, 80%);
    min-height: 12px;
  }

  .tg-bar-label {
    font-size: 0.62rem;
  }

  .setting-table-wrap {
    border-color: rgba(215, 221, 228, 0.34);
  }

  .setting-diff-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .setting-diff-table th,
  .setting-diff-table td {
    padding: 7px 5px;
    font-size: 0.74rem;
    overflow-wrap: anywhere;
  }

  .setting-diff-table tbody th {
    width: 34%;
  }

  .confirmation-card {
    min-height: 0;
  }

  .signal-image-frame {
    height: 150px;
  }

  .forecast-band-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .forecast-band-row div {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
  }

  .forecast-band-row span {
    font-size: 0.74rem;
  }

  .forecast-band-row strong {
    margin-top: 3px;
    font-size: 1.18rem;
  }

  .confirmation-table,
  .compact-confirmation-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .confirmation-table th,
  .confirmation-table td {
    padding: 7px 5px;
    font-size: 0.74rem;
    overflow-wrap: anywhere;
  }

  .priority-list article {
    grid-template-columns: 1fr;
  }

  .priority-list p {
    grid-column: 1;
  }
}
