:root {
  --bg: #0b0d0f;
  --panel: #111417;
  --panel-2: #171b1f;
  --line: #2a3035;
  --line-strong: #40484f;
  --text: #f1f0e9;
  --muted: #9da5a9;
  --dim: #697277;
  --yellow: #f4d33b;
  --red: #fa5b54;
  --blue: #4d8dff;
  --green: #42cf83;
  --orange: #ff9e45;
  --radius: 3px;
  --display: "DIN Alternate", "Avenir Next Condensed", "PingFang SC", sans-serif;
  --body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 860px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, .023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .023) 1px, transparent 1px),
    radial-gradient(circle at 74% 8%, rgba(244, 211, 59, .075), transparent 24rem),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--yellow);
  color: #101214;
  font-weight: 700;
  transition: top .18s ease;
}

.skip-link:focus { top: 16px; }

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 290px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 15, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: .08em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 7px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.cube-mark {
  width: 39px;
  height: 39px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  transform: rotate(-7deg);
  border: 1px solid var(--line-strong);
  background: #050607;
}

.cube-mark i { background: #f1f0e9; }
.cube-mark i:nth-child(1),
.cube-mark i:nth-child(5) { background: var(--yellow); }
.cube-mark i:nth-child(3),
.cube-mark i:nth-child(6) { background: var(--red); }
.cube-mark i:nth-child(7),
.cube-mark i:nth-child(8) { background: var(--blue); }

.topbar-summary {
  justify-self: start;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.topbar-summary p { margin: 2px 0 0; color: var(--muted); }
.topbar-summary p strong { color: var(--text); font-size: 20px; }

.eyebrow {
  color: var(--dim);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.topbar-actions { display: flex; justify-content: flex-end; gap: 10px; }

.button,
.icon-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button-link { display: inline-flex; align-items: center; text-decoration: none; }

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-ghost { background: transparent; }
.button-ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, .045); }
.button-primary { border-color: var(--yellow); background: var(--yellow); color: #121416; }
.button-primary:hover { background: #ffe461; }
.button-danger { border-color: rgba(250, 91, 84, .6); background: transparent; color: #ff8c86; }

.workspace {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.filter-rail {
  min-height: calc(100vh - 88px);
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(12, 14, 16, .7);
}

.rail-section + .rail-section { margin-top: 30px; }

.section-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-label span { margin-right: 7px; color: var(--yellow); }

.search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.search-box:focus-within { border-color: var(--yellow); }

.search-box svg {
  width: 19px;
  fill: none;
  stroke: var(--dim);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder { color: #6d767b; }

kbd {
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}

.family-list { display: grid; gap: 3px; }

.family-button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.family-button::before {
  content: "";
  width: 3px;
  height: 18px;
  background: transparent;
}

.family-button:hover { color: var(--text); background: rgba(255,255,255,.035); }
.family-button[aria-current="true"] { border-color: var(--line); background: var(--panel-2); color: var(--text); }
.family-button[aria-current="true"]::before { background: var(--yellow); }
.family-button b { color: var(--dim); font-family: var(--display); font-size: 14px; }

.state-filters { display: grid; gap: 3px; }

.switch-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  color: var(--muted);
  cursor: pointer;
}

.switch-row input { position: absolute; opacity: 0; }
.switch-row b { color: var(--dim); font-size: 14px; }

.switch {
  position: relative;
  width: 32px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #080a0c;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dim);
  transition: transform .18s ease, background .18s ease;
}

.switch-row input:checked + .switch { border-color: rgba(244, 211, 59, .7); }
.switch-row input:checked + .switch::after { transform: translateX(14px); background: var(--yellow); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--yellow); outline-offset: 3px; }

.progress-panel {
  margin-top: 34px;
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--yellow);
  background: linear-gradient(145deg, rgba(244, 211, 59, .055), transparent 62%), var(--panel);
}

.progress-panel strong {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: .04em;
}

.progress-panel strong small { color: var(--muted); font-size: 14px; }

.progress-panel p {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.65;
}

.progress-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.progress-actions button {
  min-height: 34px;
  flex: 1;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.progress-actions button:hover { border-color: var(--yellow); color: var(--text); }

.progress-track { height: 4px; margin-top: 12px; overflow: hidden; background: #292e31; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .3s ease; }

.catalog { padding: 30px clamp(28px, 4vw, 68px) 80px; }

.catalog-context {
  display: flex;
  align-items: baseline;
  gap: 20px;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 10px 0 10px 16px;
  border-left: 1px solid var(--line-strong);
}

.catalog-context .eyebrow { flex: none; color: var(--yellow); }
.catalog-context p { margin: 0; color: var(--muted); font-size: 14px; }

.result-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.result-toolbar p { margin: 0; color: var(--text); font-weight: 700; }
.result-toolbar p span { color: var(--yellow); }
.legend { margin-left: auto; }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--blue); }

.text-button { padding: 4px 0; background: transparent; color: var(--yellow); font-weight: 700; }
.text-button:hover { text-decoration: underline; }

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

.case-card {
  position: relative;
  min-height: 238px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 8px 14px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 50%), var(--panel);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  animation: card-in .34s both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--family-color, var(--yellow));
  transition: width .18s ease;
}

.case-card:hover { z-index: 2; transform: translateY(-3px); border-color: var(--line-strong); background-color: #15191c; }
.case-card:hover::after { width: 100%; }

.case-visual {
  grid-row: 1 / 4;
  align-self: center;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    #0a0c0e;
  background-size: 12px 12px;
}

.case-visual img { width: 100px; height: 100px; image-rendering: auto; }

.case-meta { min-width: 0; }

.case-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--dim);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
}

.case-kicker i { width: 6px; height: 6px; background: var(--family-color, var(--yellow)); }

.case-card h2 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.algorithm {
  align-self: center;
  margin: 4px 0;
  color: #d9d9d5;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  word-spacing: 2px;
}

.move-u { color: var(--yellow); }
.move-r { color: var(--red); }
.move-f { color: var(--green); }
.move-l, .move-b { color: var(--orange); }
.move-d, .move-y, .move-x, .move-z { color: var(--blue); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

.card-actions { display: flex; gap: 4px; }

.mini-button,
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0e10;
  color: var(--muted);
  cursor: pointer;
}

.mini-button { width: 34px; height: 30px; }
.mini-button:hover,
.mini-button[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); }
.mini-button.weak[aria-pressed="true"] { border-color: var(--red); color: var(--red); }

.empty-state {
  min-height: 420px;
  padding: 80px 20px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-state > span { color: var(--line-strong); font-family: var(--display); font-size: 72px; font-weight: 800; }
.empty-state h2 { margin: 4px 0; font-family: var(--display); font-size: 32px; }
.empty-state p { max-width: 570px; margin: 0 auto 24px; color: var(--muted); }

.modal {
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #111417;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.modal::backdrop { background: rgba(2, 4, 5, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .2s ease both; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  z-index: 5;
  float: right;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  margin: 16px 16px 0 0;
  font-size: 24px;
}

.modal-close:hover { border-color: var(--text); color: var(--text); }

.case-detail { padding: 48px; }

.detail-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), #0a0c0e;
  background-size: 20px 20px;
}

.detail-visual::before,
.detail-visual::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--yellow);
}

.detail-visual::before { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.detail-visual::after { right: 10px; bottom: 10px; border-right: 2px solid; border-bottom: 2px solid; }
.detail-visual img { width: 210px; height: 210px; image-rendering: auto; }

.detail-copy h2 { margin: 8px 0 10px; font-family: var(--display); font-size: 38px; line-height: 1.15; }
.detail-copy > p { margin: 0; color: var(--muted); }

.detail-algorithm {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  background: #0a0c0e;
}

.detail-algorithm-stack .detail-algorithm + .detail-algorithm { margin-top: 10px; }
.detail-algorithm-stack .setup-algorithm { border-left-color: var(--blue); }
.detail-algorithm p { margin: 6px 0 0; color: var(--dim); font-size: 14px; }

.algorithm-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.algorithm-label-row > span:last-child { color: var(--dim); font-size: 14px; }

.detail-algorithm .algorithm { margin: 6px 0 0; font-size: 22px; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.detail-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-notes div { padding: 18px; background: var(--panel); }
.detail-notes span { display: block; color: var(--dim); font-size: 14px; }
.detail-notes strong { display: block; margin-top: 4px; font-size: 15px; }

.trainer-modal { width: min(840px, calc(100vw - 48px)); }

.trainer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px 24px;
  border-bottom: 1px solid var(--line);
}

.trainer-head h2,
.sources-head h2 { margin: 6px 0 0; font-family: var(--display); font-size: 36px; line-height: 1.15; }
.trainer-head p { margin: 0; color: var(--muted); font-size: 14px; }

.trainer-stage { padding: 32px 48px 48px; }

.trainer-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.trainer-steps span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #0d1012;
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
}

.trainer-steps b { color: var(--line-strong); font-family: var(--display); }
.trainer-steps .is-active { background: rgba(244, 211, 59, .07); color: var(--text); }
.trainer-steps .is-active b { color: var(--yellow); }

.setup-stage { padding: 2px 0 0; }

.hold-guide {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: center;
}

.hold-guide h3 { margin: 7px 0 8px; font-family: var(--display); font-size: 30px; }
.hold-guide p { margin: 0; color: var(--muted); }
.hold-guide code { color: var(--blue); font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; }

.hold-cube {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 14px auto;
  transform: rotate(-4deg);
}

.hold-cube span {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid #080a0c;
  color: rgba(10, 12, 14, .7);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .06em;
}

.hold-front {
  left: 12px;
  top: 53px;
  width: 81px;
  height: 84px;
  background:
    linear-gradient(rgba(0,0,0,.25) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,.25) 2px, transparent 2px), var(--red);
  background-size: 27px 28px;
  transform: skewY(16deg);
}

.hold-right {
  right: 1px;
  top: 34px;
  width: 58px;
  height: 84px;
  background:
    linear-gradient(rgba(0,0,0,.25) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,.25) 2px, transparent 2px), var(--green);
  background-size: 19px 28px;
  transform: skewY(-32deg);
}

.hold-top {
  left: 14px;
  top: 12px;
  width: 126px;
  height: 58px;
  background:
    linear-gradient(rgba(0,0,0,.2) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,.2) 2px, transparent 2px), var(--yellow);
  background-size: 42px 19px;
  transform: skewY(-16deg) rotate(1deg);
}

.setup-formula {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: #090b0d;
}

.setup-formula .algorithm { margin: 10px 0 0; font-size: 22px; }

.trainer-case {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  align-items: center;
}

.trainer-visual {
  min-height: 290px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #090b0d;
}

.trainer-visual img { width: 250px; height: 250px; }
.trainer-info h3 { margin: 8px 0 8px; font-family: var(--display); font-size: 30px; }
.trainer-info p { margin: 0; color: var(--muted); }

.answer-panel {
  min-height: 116px;
  display: grid;
  align-content: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #0a0c0e;
}

.answer-panel.is-hidden {
  background: repeating-linear-gradient(-45deg, #0c0f11, #0c0f11 8px, #101315 8px, #101315 16px);
  color: var(--dim);
  text-align: center;
}

.answer-panel .algorithm { margin: 0; font-size: 19px; }
.trainer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trainer-hint { margin-top: 12px !important; color: var(--dim) !important; font-size: 14px; }

.sources-modal { width: min(980px, calc(100vw - 48px)); }
.sources-head { padding: 48px 56px 28px; border-bottom: 1px solid var(--line); }
.sources-head > p { max-width: 760px; margin: 16px 0 0; color: var(--muted); }

.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 28px 56px; }

.source-card {
  min-height: 246px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.source-card > span { color: var(--dim); font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.source-card h3 { margin: 9px 0; font-family: var(--display); font-size: 22px; }
.source-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.source-card a { color: var(--yellow); font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.source-primary { border-top: 3px solid var(--yellow); }
.source-wca { border-top: 3px solid var(--blue); }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.source-footnote { margin: 0; padding: 0 56px 48px; color: var(--dim); font-size: 14px; }

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--yellow);
  background: #171b1f;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1280px) {
  .topbar { grid-template-columns: 260px 1fr auto; }
  .topbar-summary { display: none; }
  .case-grid { grid-template-columns: repeat(2, minmax(270px, 1fr)); }
  .catalog-context { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 1024px) {
  body { min-width: 768px; }
  .topbar { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .workspace { grid-template-columns: 236px minmax(0, 1fr); }
  .filter-rail { padding-inline: 16px; }
  .catalog { padding: 36px 24px 64px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 120px minmax(0, 1fr); }
  .case-visual { width: 112px; height: 112px; }
  .legend { display: none; }
  .detail-top { grid-template-columns: 220px 1fr; gap: 28px; }
  .detail-visual { min-height: 220px; }
  .detail-visual img { width: 180px; height: 180px; }
  .trainer-case { grid-template-columns: 240px 1fr; gap: 26px; }
  .trainer-visual { min-height: 240px; }
  .trainer-visual img { width: 210px; height: 210px; }
  .hold-guide { grid-template-columns: 160px 1fr; gap: 22px; }
  .hold-cube { transform: rotate(-4deg) scale(.88); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
