/* Kaleido Lab — hub /games, univers « Écran partagé » (sous-marque jeux, feuille autonome)
 * Un seul écran de télé coupé par d'épaisses barres noires : chaque case est un jeu, avec son canvas
 * animé (games.js) et sa plaque de HUD. Les barres sont le seul outil de mise en page : pas de cartes.
 * Couleurs joueurs = les quatre facettes de l'hexagone Kaleido, saturées (P1 corail, P2 ciel, P3 violet, P4 menthe).
 * Couleurs d'un jeu : --c (fond de sa case), --hi (son encre vive, lisible sur les barres).
 */

/* Polices auto-hébergées (variables, sous-ensemble latin, licence SIL OFL) */
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bar: #0E0D12;        /* barres de l'écran partagé, fond de page */
  --bar-2: #18161F;      /* plaques surélevées */
  --bar-3: #2A2734;      /* filets, pastilles éteintes */
  --chalk: #F5F1E8;
  --chalk-2: #B9B3C9;
  --p1: #FF6B4A;
  --p2: #3FA9FF;
  --p3: #A68BFF;
  --p4: #2ED19B;
  --m: clamp(5px, .5vw, 9px);               /* module de l'écran */
  --bw: calc(var(--m) * 2);                 /* épaisseur d'une barre de découpe */
  --gutter: clamp(16px, 3.6vw, 64px);
  --nav-h: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* Encres des jeux */
.g-tet { --c: #120B2E; --hi: #FFB347; }
.g-hyd { --c: #14122A; --hi: #FFC861; }
.g-gaz { --c: #173B33; --hi: #E2B865; }
.g-aqb { --c: #FF3B30; --hi: #FF6A5C; }
.g-gou { --c: #2E9E5B; --hi: #FF8A2A; }
.g-nam { --c: #06070B; --hi: #EE3A55; }
.g-alc { --c: #5C1220; --hi: #D9A441; }
.g-lol { --c: #0A1A33; --hi: #E8B64C; }
.g-pil { --c: #FFD6E8; --hi: #FF7DB6; }
.g-zin { --c: #C8102E; --hi: #FF6275; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--bar-3) var(--bar); }
body {
  margin: 0; background: var(--bar); color: var(--chalk);
  font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-paused { overflow: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--p3); color: var(--bar); }
:focus-visible { outline: 3px solid var(--p2); outline-offset: 3px; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
kbd { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--chalk); color: var(--bar); font-weight: 700; border-radius: 2px; }
.skip:focus { top: 12px; }

/* ---------- Barre de navigation ---------- */
.top {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: var(--gutter); position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-txt { font: 600 15px/1 var(--display); letter-spacing: -.01em; }
.brand-txt b { font-weight: 600; color: var(--chalk-2); }
.top-links { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 28px); font-size: 14px; font-weight: 600; }
.top-links a:not(.btn) { text-decoration: none; color: var(--chalk-2); transition: color .2s; }
.top-links a:not(.btn):hover { color: var(--chalk); }
.top-links .lang { padding: 3px 7px; border: 1px solid var(--bar-3); border-radius: 2px; font-size: 12px; letter-spacing: .04em; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  background: var(--chalk); color: var(--bar); border-radius: 2px; text-decoration: none;
  font: 600 15px/1 var(--display); letter-spacing: -.01em; transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--p4); transform: translateY(-2px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; white-space: nowrap; }

/* ---------- La console : barre de HUD + écran partagé ---------- */
.console { display: flex; flex-direction: column; }
.bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: calc(var(--m) * 3) calc(var(--m) * 6);
  padding: calc(var(--m) * 2) var(--gutter) calc(var(--m) * 3);
}
.h1 { font: 700 clamp(32px, 3.5vw, 64px)/.98 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.h1 span { display: block; color: var(--chalk-2); }
.lead { margin-top: calc(var(--m) * 2); max-width: 30em; font-size: clamp(15px, 1.05vw, 17px); color: var(--chalk-2); text-wrap: pretty; }

.count[hidden] { display: none; }
.count fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.count legend { padding: 0; margin-bottom: calc(var(--m) * 1.2); font-size: 14px; font-weight: 700; color: var(--chalk); }
.ct-row { display: flex; gap: calc(var(--m) * .6); }
.ct {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-width: clamp(64px, 6.4vw, 112px); height: clamp(76px, 7.4vw, 124px); padding: calc(var(--m) * 1.4);
  background: var(--bar-2); border-radius: 2px; cursor: pointer; user-select: none;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.ct input { position: absolute; opacity: 0; pointer-events: none; }
.ct-n { white-space: nowrap; font: 700 clamp(28px, 3vw, 54px)/.9 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ct-0 .ct-n { font-size: clamp(18px, 1.7vw, 30px); letter-spacing: -.02em; }
.ct-s { font-size: 13px; font-weight: 600; color: var(--chalk-2); transition: color .25s; }
.ct::after { content: ""; position: absolute; left: calc(var(--m) * 1.4); right: calc(var(--m) * 1.4); top: 0; height: 4px; background: var(--k, var(--chalk)); }
.ct-1 { --k: var(--p1); } .ct-2 { --k: var(--p2); } .ct-3 { --k: var(--p3); } .ct-4 { --k: var(--p4); }
.ct:hover { transform: translateY(-3px); }
.ct:has(input:checked) { background: var(--k, var(--chalk)); color: var(--bar); }
.ct:has(input:checked) .ct-s { color: var(--bar); }
.ct:has(input:focus-visible) { outline: 3px solid var(--chalk); outline-offset: 3px; }
.count-out { margin-top: calc(var(--m) * 1.2); font-size: 13px; color: var(--chalk-2); min-height: 1.5em; }

/* L'écran partagé. Sans JS : une mosaïque simple ; games.js pose la grille de découpe (colonnes, lignes, cases). */
.split {
  display: grid; gap: var(--bw); padding: 0 var(--bw) var(--bw);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); grid-auto-rows: 300px;
}
.split.is-cut { grid-auto-rows: auto; }
@media (min-width: 900px) {
  .console { height: calc(100svh - var(--nav-h)); min-height: 640px; }
  .split { flex: 1; min-height: 0; }
}

.game, .slot { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.game { display: grid; grid-template: 1fr / 1fr; background: var(--c); container-type: size; isolation: isolate; }
.game > * { grid-area: 1 / 1; }
.screen { position: relative; z-index: 0; min-height: 0; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Plaque de HUD : une encoche des barres dans le coin de la case */
.tag {
  z-index: 2; align-self: start; justify-self: start; max-width: min(88%, 30em);
  padding: max(8px, calc(var(--m) * 1.2)) max(14px, calc(var(--m) * 2)) max(10px, calc(var(--m) * 1.4)) max(10px, calc(var(--m) * 1.4));
  background: var(--bar); border-bottom-right-radius: 2px;
}
.tag-name { font: 600 clamp(14px, 4.6cqi, 30px)/1.04 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hit { text-decoration: none; }
.hit::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tag-genre { margin-top: 3px; font-size: clamp(12px, 2.2cqi, 14px); color: var(--chalk-2); }
.tag-pl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--chalk); font-variant-numeric: tabular-nums; }
.pips { display: inline-flex; gap: 3px; }
.tag-len { color: var(--hi); }
.tag-len::before { content: "·"; margin-right: 8px; color: var(--chalk-2); }
.note { margin-top: 10px; font-size: 13px; color: var(--chalk-2); max-width: 52ch; }
.pips i { width: 9px; height: 9px; background: var(--bar-3); border-radius: 1px; }
.pips .p1.on { background: var(--p1); } .pips .p2.on { background: var(--p2); }
.pips .p3.on { background: var(--p3); } .pips .p4.on { background: var(--p4); }

/* Légende de la boucle en cours (état « visé ») */
.cap {
  z-index: 2; align-self: end; justify-self: start; display: flex; align-items: center; gap: 10px;
  padding: max(8px, calc(var(--m) * 1.1)) max(12px, calc(var(--m) * 1.6)) max(8px, calc(var(--m) * 1.1)) max(8px, calc(var(--m) * 1.1));
  background: var(--bar); border-top-right-radius: 2px; font-size: 13px; font-weight: 600;
  transform: translateY(101%); transition: transform .35s var(--ease);
}
.cap-n { display: grid; place-items: center; width: 22px; height: 22px; background: var(--hi); color: var(--bar); font: 700 12px/1 var(--display); border-radius: 1px; }
.cap .ic { color: var(--chalk-2); }
.game:hover .cap, .game:focus-within .cap { transform: none; }
.game::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 0 0 0 var(--hi); transition: box-shadow .25s var(--ease); }
.game:hover::after, .game:has(.hit:focus-visible)::after { box-shadow: inset 0 0 0 4px var(--hi); }
.hit:focus-visible, .tag-name:focus { outline: none; }
@container (max-width: 280px) { .tag-genre { display: none; } .tag { padding: 7px 10px 8px 8px; } .tag-pl { margin-top: 4px; } .cap { display: none; } }
@container (max-width: 200px) { .tag-len { display: none; } }
@container (max-height: 210px) { .tag-genre { display: none; } }
@media (hover: none) { .cap { transform: none; } }

/* Case vide : l'écran libre du joueur suivant (commande sur mesure) */
.slot {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: calc(var(--m) * 3);
  background: var(--bar-2); text-decoration: none; container-type: inline-size;
}
.slot-b { font: 700 clamp(18px, 9cqi, 36px)/1 var(--display); letter-spacing: -.03em; }
.slot-c { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--p4); animation: blink 1.6s steps(1) infinite; }
.slot:hover { background-color: #201D29; }
.slot:hover .slot-c { animation: none; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Pause : la case ouverte en plein écran ---------- */
.pause { display: none; }
.game.is-open, html:not(.js) .game:target {
  position: fixed; inset: 0; z-index: 60; overflow: hidden;
  grid-template: auto 1fr auto / minmax(340px, 560px) 1fr;
}
.game.is-open > *, html:not(.js) .game:target > * { grid-area: auto; }
.game.is-open::after, html:not(.js) .game:target::after { display: none; }
.is-open .screen, html:not(.js) :target > .screen { grid-column: 2; grid-row: 1 / 4; }
.is-open .tag, html:not(.js) :target > .tag {
  grid-column: 1; grid-row: 1; justify-self: stretch; max-width: none; border-radius: 0;
  padding: calc(var(--m) * 4) calc(var(--m) * 4) calc(var(--m) * 1.5);
}
.is-open .tag-name, html:not(.js) :target .tag-name { font-size: clamp(30px, 3.6vw, 60px); letter-spacing: -.035em; line-height: 1; }
.is-open .hit::after, html:not(.js) :target .hit::after { display: none; }
.is-open .hit, html:not(.js) :target .hit { pointer-events: none; }
.is-open .tag-genre, html:not(.js) :target .tag-genre { font-size: 15px; margin-top: 8px; }
.is-open .tag-pl, html:not(.js) :target .tag-pl { font-size: 13px; }
.is-open .cap, html:not(.js) :target > .cap { grid-column: 2; grid-row: 3; transform: none; margin: 0 0 calc(var(--m) * 2) 0; }
.is-open .pause, html:not(.js) :target > .pause { display: contents; }
.is-open .screen::after { content: "PAUSE"; position: absolute; right: 0; bottom: 0; padding: 10px 16px 9px; background: var(--bar); font: 700 15px/1 var(--display); letter-spacing: .08em; color: var(--chalk); }
.pause-in {
  grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--m) * 1.5) calc(var(--m) * 4) calc(var(--m) * 4); background: var(--bar);
  scrollbar-width: thin; scrollbar-color: var(--bar-3) transparent;
}
.pause-sub { font: 500 15px/1.3 var(--display); color: var(--hi); letter-spacing: -.01em; }
.pitch { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--chalk); max-width: 60ch; text-wrap: pretty; }
.go { margin-top: 22px; }
.play {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px 0 20px;
  background: var(--hi); color: var(--bar); border-radius: 2px; text-decoration: none;
  font: 700 19px/1 var(--display); letter-spacing: -.02em; transition: background .2s, transform .25s var(--ease);
}
.play .ic { width: 20px; height: 20px; }
.play span { font: 600 13px/1 var(--text); letter-spacing: 0; opacity: .78; }
.play:hover { background: var(--chalk); transform: translateY(-2px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin-top: 26px; }
.facts div { padding-top: 10px; border-top: 1px solid var(--bar-3); }
.facts dt { font-size: 12px; font-weight: 700; color: var(--chalk-2); }
.facts dd { margin-top: 4px; font-size: 14px; line-height: 1.4; }
.opt { margin-top: 34px; }
.opt-h { font: 600 18px/1.1 var(--display); letter-spacing: -.02em; }
.opt-h4 { margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--chalk-2); }
.loop { margin-top: 12px; display: grid; border-top: 1px solid var(--bar-3); }
.step {
  position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: baseline; width: 100%;
  padding: 12px 14px 13px 10px; text-align: left; font-size: 15px; line-height: 1.45; color: var(--chalk-2);
  background: transparent; border: 0; border-bottom: 1px solid var(--bar-3); border-radius: 0; cursor: pointer; transition: background .2s, color .2s;
}
.step b { color: var(--chalk); font-weight: 700; }
.step-n { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; align-self: start; background: var(--bar-3); color: var(--chalk); font: 700 14px/1 var(--display); border-radius: 1px; transition: background .2s, color .2s; }
.step:hover { background: var(--bar-2); color: var(--chalk); }
.step[aria-pressed="true"] { background: var(--hi); color: var(--bar); }
.step[aria-pressed="true"] b { color: var(--bar); }
.step[aria-pressed="true"] .step-n { background: var(--bar); color: var(--hi); }
.step::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--k, 0) * 100%); background: var(--bar); opacity: .55; }
.again { margin-top: 12px; padding-left: 54px; font-size: 14px; font-weight: 600; color: var(--hi); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips li { padding: 5px 10px; border: 1px solid var(--bar-3); border-radius: 2px; font-size: 13px; font-weight: 600; }
.shows { margin-top: 10px; display: grid; gap: 8px; }
.shows li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--chalk-2); max-width: 62ch; }
.shows li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--hi); border-radius: 1px; }
.pad {
  grid-column: 1; grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--m) * 1.5) calc(var(--m) * 4); background: var(--bar); border-top: 1px solid var(--bar-3);
  font-size: 13px; font-weight: 600; color: var(--chalk-2);
}
.back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); }
kbd, .pad-k { white-space: nowrap; }
.back kbd { padding: 3px 7px; border: 1px solid var(--chalk-2); border-bottom-width: 3px; border-radius: 3px; font-size: 11px; font-weight: 700; color: var(--chalk-2); }
.back:hover kbd { border-color: var(--chalk); color: var(--chalk); }
.pad-move { display: inline-flex; align-items: center; gap: 6px; }
.pad-move button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: var(--bar-2); border: 1px solid var(--bar-3); border-radius: 2px; cursor: pointer; }
.pad-move button:hover { background: var(--bar-3); }
.pad-k { margin-left: 6px; }
.pad-move[hidden] { display: none; }

@media (max-width: 899px) {
  .bar { grid-template-columns: 1fr; padding-top: calc(var(--m) * 3); }
  .ct-row { flex-wrap: wrap; }
  .ct { flex: 1 1 0; min-width: 0; height: 84px; }
  .game.is-open, html:not(.js) .game:target { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .is-open .screen, html:not(.js) :target > .screen { position: sticky; top: 0; height: 40svh; z-index: 0; }
  .is-open .tag, html:not(.js) :target > .tag { position: relative; padding: calc(var(--m) * 3) var(--gutter) calc(var(--m) * 1.5); }
  .is-open .cap, html:not(.js) :target > .cap { position: absolute; top: calc(40svh - 46px); left: 0; margin: 0; }
  .pause-in { position: relative; overflow: visible; padding: 8px var(--gutter) 32px; }
  .pad { position: sticky; bottom: 0; z-index: 2; padding: 10px var(--gutter); }
  .pad-k { display: none; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .top-links a:not(.btn):not(.lang) { display: none; }
  .ct { padding: 10px; }
  .ct-n { font-size: 26px; white-space: nowrap; }
  .ct-0 .ct-n { font-size: 17px; }
  .ct-s { font-size: 12px; }
}

/* Mise en route : l'écran se coupe case par case, les noms s'inscrivent, les pastilles tombent. */
.split.is-boot .game, .split.is-boot .slot { animation: cut .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.split.is-boot .tag-name a { animation: type .55s steps(14, end) both; animation-delay: calc(var(--i, 0) * 70ms + 300ms); }
.split.is-boot .pips i { animation: land .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 650ms); }
@keyframes cut { from { clip-path: inset(50% 50% 50% 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes land { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Redécoupe de l'écran et ouverture d'une case : View Transitions quand le navigateur les connaît */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; width: 100%; object-fit: cover; }
#tether { view-transition-name: v-tether; } #mr-hyde { view-transition-name: v-hyde; }
#la-gazette { view-transition-name: v-gazette; } #anime-quiz-battle { view-transition-name: v-aqb; }
#goupil { view-transition-name: v-goupil; } #namiyoru { view-transition-name: v-namiyoru; }
#alchimiste-du-marche-noir { view-transition-name: v-alchimiste; } #carton-plein { view-transition-name: v-carton; }
#pile-poil { view-transition-name: v-pilepoil; } #le-zinc { view-transition-name: v-zinc; }
.slot { view-transition-name: v-slot; }

/* ---------- Sections sous l'écran ---------- */
.scores { padding-block: clamp(64px, 8vw, 132px); }
.order, .faq { padding: 0; }
.sec-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 3vw, 48px); }
.h2 { font: 700 clamp(28px, 3vw, 54px)/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sec-p { font-size: 16px; color: var(--chalk-2); max-width: 54ch; text-wrap: pretty; }
.sec-p a { color: var(--chalk); text-underline-offset: 3px; }

.scores { border-top: var(--bw) solid var(--bar-2); }
.table-scroll { overflow-x: auto; scrollbar-width: thin; contain: paint; }
.board { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 3px; font-size: 14px; }
.board th, .board td { padding: 0; }
.board thead th { vertical-align: bottom; font-weight: 700; }
.board thead th:first-child { text-align: left; font-size: 13px; color: var(--chalk-2); padding: 0 10px 10px 0; }
.board thead th:not(:first-child) { width: 7.4%; }
.board thead a {
  display: block; height: 168px; margin: 0 auto; padding: 10px 0; text-decoration: none; text-align: left;
  writing-mode: vertical-rl; transform: rotate(180deg); font: 600 13px/1.15 var(--display); letter-spacing: -.01em;
}
.board thead a:hover { color: var(--hi); }
.board .sw { display: block; height: 6px; margin-bottom: 4px; background: var(--hi); }
.board tbody th { text-align: left; font-weight: 600; padding: 10px 14px 10px 12px; background: var(--bar-2); white-space: nowrap; position: sticky; left: 0; z-index: 1; }
.board td { height: 42px; background: var(--bar-2); text-align: center; }
.board td b { display: grid; place-items: center; width: 100%; height: 100%; min-height: 42px; background: var(--hi); color: var(--bar); }
.board td .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.board tbody tr:hover th, .board tbody tr:hover td:not(:has(b)) { background: #211E2A; }

.order-in, .faq-in { display: grid; gap: var(--bw); padding: var(--bw); }
.order-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.order-head { padding: clamp(32px, 4vw, 72px); background: var(--bar-2); }
.order-head p { margin-top: 20px; font-size: 17px; color: var(--chalk-2); max-width: 52ch; text-wrap: pretty; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.mail { font-weight: 600; color: var(--chalk); text-underline-offset: 4px; }
.make { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bw); counter-reset: mk; }
.make li { counter-increment: mk; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 22px 24px 26px; background: var(--k); font-size: 15px; color: var(--bar); }
.make li::before { content: "P" counter(mk); align-self: flex-start; margin-bottom: auto; padding: 4px 8px; background: var(--bar); color: var(--k); font: 700 14px/1 var(--display); }
.make li:nth-child(1) { --k: var(--p1); } .make li:nth-child(2) { --k: var(--p2); }
.make li:nth-child(3) { --k: var(--p3); } .make li:nth-child(4) { --k: var(--p4); }
.make b { display: block; margin: 18px 0 6px; font: 600 clamp(17px, 1.5vw, 24px)/1.15 var(--display); letter-spacing: -.02em; color: var(--bar); }

.faq-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-top: var(--bw) solid var(--bar); }
.faq-in > div:first-child { padding: clamp(32px, 4vw, 72px); background: var(--bar-2); }
.faq-in .sec-p { margin-top: 16px; }
.qas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bw); }
.qa { padding: 26px 28px 30px; background: var(--bar-2); }
.qa:first-child { grid-column: 1 / -1; }
.qa h3 { font: 600 17px/1.25 var(--display); letter-spacing: -.02em; }
.qa p { margin-top: 10px; font-size: 15px; color: var(--chalk-2); max-width: 70ch; }
.qa a { color: var(--chalk); text-underline-offset: 3px; }

.foot { padding-block: 30px 40px; border-top: 1px solid var(--bar-3); font-size: 13px; color: var(--chalk-2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--display); color: var(--chalk); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--chalk); }

@media (max-width: 899px) {
  .board tbody th { white-space: normal; min-width: 150px; }
  .sec-top, .order-in, .faq-in, .qas { grid-template-columns: 1fr; }
  .make li { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .slot-c { animation: none; }
}
