/* =========================================================
   RKSI — KCASINO INDEX
   Light Cyber Brutalism / Technical Editorial
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f4f4f1;
  --paper-3: #ebebe7;
  --ink: #0b0b0b;
  --ink-2: #232323;
  --muted: #6b6b66;
  --muted-2: #8d8d87;
  --line: #dededa;
  --line-2: #c7c7c1;
  --violet: #6a2cf5;
  --violet-dark: #4a17c9;
  --violet-soft: #efe9ff;
  --lime: #d9f21f;
  --lime-dark: #b7ce00;
  --lime-soft: #f4ffc0;
  --alert: #c8342a;
  --display: "Archivo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --sans: "Noto Sans KR", "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.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;
}

/* ---------- shared micro type ---------- */

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.idx { color: var(--violet); }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: 1px;
}
.dot--live { background: #35c759; box-shadow: 0 0 0 3px rgba(53, 199, 89, 0.16); }

.cross {
  font-family: var(--mono);
  color: var(--line-2);
  line-height: 1;
  user-select: none;
}

/* ---------- utility bar ---------- */

.utility {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.utility__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  padding-block: 5px;
}
.utility__left,
.utility__right { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.utility__right { gap: 12px; }
.tag-18 {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.utility .slash { color: var(--line-2); }
.utility time { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.masthead__in {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-block: 10px;
}
.logo__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  flex: none;
}
.logo__word {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo__cursor {
  color: var(--violet);
  animation: blink 1.15s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.logo__sub {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--muted);
  text-transform: uppercase;
}
.logo__sub b { display: block; color: var(--ink); font-weight: 500; }

.nav {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav a span { color: var(--muted-2); font-size: 8.5px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a:hover span { color: var(--violet); }
.nav__cta {
  margin-left: 14px;
  padding: 0 18px !important;
  background: var(--ink);
  color: var(--paper) !important;
}
.nav__cta span { color: var(--lime) !important; }
.nav__cta:hover { background: var(--violet); color: #fff !important; }
.nav__cta svg { width: 11px; height: 11px; }

.menu-btn {
  display: none;
  width: 44px;
  align-self: center;
  height: 38px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.menu-btn span::before,
.menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  position: relative;
  background:
    linear-gradient(90deg, transparent 49.94%, var(--line) 49.94%, var(--line) 50.06%, transparent 50.06%) top / 100% 1px no-repeat;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
}
.hero__main {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px) clamp(36px, 4vw, 52px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__idx { color: var(--violet); font-weight: 700; }
.eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--line-2); }

.hero__title {
  margin: 20px 0 16px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.hero__title span { display: block; }
.hero__title .hero__title-long {
  font-size: 0.8em;
  letter-spacing: -0.055em;
}
.hero__title .hl {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 0 0.1em 0.03em;
  margin-left: -0.02em;
  background: var(--lime);
}
.hero__title .mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.hero__title .mark::before {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.04em;
  bottom: 0.04em;
  height: 0.32em;
  background: var(--lime);
  z-index: -1;
}
.hero__sub {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
}
.hero__lead {
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.78;
  color: #3b3b36;
}
.hero__lead strong { color: var(--ink); font-weight: 700; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn svg { width: 13px; height: 13px; flex: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink svg { color: var(--lime); }
.btn--ink:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn--ink:hover svg { color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #fff; border-color: #fff; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 10px 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero__meta div { min-width: 0; }
.hero__meta dt {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__meta dd {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

/* hero visual */

.hero__visual {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 28px 26px 26px;
  background-color: var(--paper-2);
  background-image:
    radial-gradient(var(--line-2) 0.7px, transparent 0.7px),
    linear-gradient(transparent 49.8%, rgba(0, 0, 0, 0.035) 49.8%, rgba(0, 0, 0, 0.035) 50.2%, transparent 50.2%);
  background-size: 14px 14px, 100% 120px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: auto;
}
.hv-label {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.hv-label b { color: var(--ink); font-weight: 500; }
.hv-globe {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 26px;
  height: 26px;
  color: var(--ink);
}
.hv-coord {
  position: absolute;
  right: 22px;
  bottom: 74px;
  min-width: 124px;
  padding: 9px 11px;
  background: var(--lime);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hv-coord span { color: rgba(11, 11, 11, 0.55); }
.hv-scn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hv-plus {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--line-2);
}

/* ---------- marquee ---------- */

.marquee {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  padding: 11px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.marquee span::after { content: "+"; color: var(--violet); font-size: 11px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.sec { border-bottom: 1px solid var(--line); position: relative; }
.sec--soft { background: var(--paper-2); }
.sec--dark { background: var(--ink); color: var(--paper); border-bottom-color: #2c2c2c; }

.sec__head {
  position: relative;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(38px, 4.6vw, 56px) 0 30px;
}
.sec__head::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 48px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  color: var(--line-2);
}
.sec__tag {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec__tag b {
  color: var(--violet);
  font-weight: 700;
  font-size: 10px;
}
.sec__tag em {
  display: block;
  font-style: normal;
  color: var(--muted-2);
  font-size: 8.5px;
}
.sec__body { padding-bottom: clamp(42px, 5vw, 64px); }
.sec__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  word-break: keep-all;
}
.sec__desc {
  max-width: 60em;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #4a4a44;
}
.sec--dark .sec__title { color: var(--paper); }
.sec--dark .sec__desc { color: #b9b9b2; }
.sec--dark .sec__tag { color: #8b8b84; }
.sec--dark .sec__tag b { color: var(--lime); }
.sec--dark .sec__head::after { color: #3d3d3d; }

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.principle {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 22px 28px;
  background: var(--paper);
  transition: background 0.16s var(--ease);
}
.principle:hover { background: var(--paper-2); }
.principle__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--ink);
}
.principle__icon svg { width: 100%; height: 100%; }
.principle__no {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.principle h3 {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 6px;
}
.principle h4 {
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.principle p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- protocol cards ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.pcard:hover { border-color: var(--ink); transform: translateY(-3px); }
.pcard__visual {
  position: relative;
  height: 158px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}
.pcard__visual svg { width: 100%; height: 100%; }
.pcard__visual--violet { background: var(--violet-soft); }
.pcard__visual--lime { background: var(--lime-soft); }
.pcard__visual--dark { background: var(--ink); }
.pcard__no {
  position: absolute;
  top: 10px;
  left: 11px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pcard__visual--dark .pcard__no { color: var(--lime); }
.pcard__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard__tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 6px;
}
.pcard h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pcard p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}
.pcard__go {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.pcard__go svg { width: 12px; height: 12px; transition: transform 0.16s var(--ease); }
.pcard:hover .pcard__go svg { transform: translate(2px, -2px); }

/* ---------- layers ---------- */

.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.layer {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}
.layer:last-child { border-right: 0; }
.layer--accent { background: var(--lime); border-right-color: #c3d81a; }
.layer__no {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 26px;
}
.layer--accent .layer__no { color: rgba(11, 11, 11, 0.6); }
.layer h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.layer__meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
.layer--accent .layer__meta { color: rgba(11, 11, 11, 0.65); }
.layer p { font-size: 13px; line-height: 1.7; color: #4b4b45; }
.layer--accent p { color: #1c1c14; }

.note {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.note::before { content: ""; background: var(--violet); }
.note--lime::before { background: var(--lime-dark); }
.note p { font-size: 13px; line-height: 1.75; color: #45453f; }
.note p + p { margin-top: 6px; }
.note strong { color: var(--ink); }
.note a { color: var(--violet-dark); font-weight: 600; }

/* ---------- steps ---------- */

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 34px;
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
  padding: 26px 8px 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s var(--ease), padding 0.15s var(--ease);
}
.step:hover { background: var(--paper-2); padding-left: 14px; }
.step__no {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  text-stroke: 1px var(--line-2);
  padding-top: 2px;
}
.step:hover .step__no { -webkit-text-stroke-color: var(--violet); }
.step h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}
.step p {
  max-width: 62em;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}
.step__arrow { color: var(--line-2); padding-top: 4px; }
.step__arrow svg { width: 15px; height: 15px; }
.step:hover .step__arrow { color: var(--ink); }

/* ---------- cause cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cause {
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--paper);
  padding: 24px 22px 26px;
}
.cause--violet { border-top-color: var(--violet); }
.cause--lime { border-top-color: var(--lime-dark); }
.cause__tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.cause h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}
.cause p { font-size: 13px; line-height: 1.7; color: var(--muted); }

.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-top: 0;
}
.rule {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: #45453f;
}
.rule:last-child { border-right: 0; }
.rule b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

/* ---------- checklist ---------- */

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.check {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.15s var(--ease);
}
.check:hover { background: var(--paper-2); }
.check__box {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  background: var(--paper);
}
.check:nth-child(7) { grid-column: 1 / -1; }
.check h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.check p { font-size: 12.5px; line-height: 1.68; color: var(--muted); }

/* ---------- table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.data {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}
.data caption { text-align: left; }
.data th,
.data td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data th:last-child,
.data td:last-child { border-right: 0; }
.data thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.data thead th:first-child { background: var(--violet); color: #fff; }
.data tbody th {
  width: 132px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.data tbody td { color: #4b4b45; }
.data tbody tr:last-child th,
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: #fbfbf8; }

/* ---------- games ---------- */

.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.game {
  padding: 24px 20px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.15s var(--ease);
}
.game:hover { background: var(--paper-2); }
.game__no {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  margin-bottom: 22px;
}
.game__tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 6px;
}
.game h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.game p { font-size: 12.5px; line-height: 1.68; color: var(--muted); }

/* ---------- signals ---------- */

.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.signal {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 24px 22px;
  position: relative;
}
.signal__flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alert);
}
.signal__flag::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--alert);
  transform: rotate(45deg);
}
.signal h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.signal p { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  gap: 14px;
  align-items: start;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--paper-2); }
.faq summary .q-no {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--violet);
  padding-top: 4px;
}
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  text-align: right;
}
.faq details[open] summary::after { content: "−"; color: var(--violet); }
.faq .answer {
  padding: 0 26px 22px 62px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #4b4b45;
}
.faq .answer p + p { margin-top: 8px; }
.faq .answer a { color: var(--violet-dark); font-weight: 600; }

/* ---------- provenance ---------- */

.provenance {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  margin-top: 34px;
}
.author-box,
.source-box {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 24px;
}
.author-box {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}
.author-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
}
.author-box h3 { font-size: 15.5px; margin-bottom: 2px; }
.author-box .role {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}
.author-box p { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.author-box a {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.source-box h3 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.source-box ul { list-style: none; display: grid; gap: 8px; }
.source-box li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #4b4b45;
}
.source-box li b {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--violet);
  padding-top: 2px;
}
.source-box a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.source-box a:hover { border-bottom-color: var(--ink); }
.correction {
  grid-column: 1 / -1;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime-dark);
  background: var(--lime-soft);
  font-size: 11.5px;
  line-height: 1.7;
  color: #45453f;
}
.correction b {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.correction a { color: var(--ink); font-weight: 600; }

/* ---------- CTA ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(34px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--violet) 0 34%, var(--lime) 34% 100%);
}
.cta-panel::after {
  content: "+";
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--mono);
  color: #4a4a4a;
}
.cta-panel__tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}
.cta-panel h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  max-width: 22em;
}
.cta-panel p {
  max-width: 52em;
  font-size: 13px;
  line-height: 1.7;
  color: #b7b7b0;
}
.cta-panel__actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.cta-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7e7e77;
}
.cta-note strong { color: #c9c9c2; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 46px 0 38px;
}
.footer .logo { margin-bottom: 14px; }
.footer__about {
  max-width: 26em;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.footer__license {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer h3 {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.footer ul { list-style: none; display: grid; gap: 7px; }
.footer li a {
  font-size: 11.5px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer li a:hover { color: var(--violet); text-decoration: underline; }
.footer__node {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.node-map {
  margin-top: 12px;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper-2);
}
.node-map svg { width: 100%; height: auto; }
.node-list { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.node-list span { color: var(--muted-2); }
.node-list b { color: var(--ink); font-weight: 500; }

.footer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bar > * {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.footer__bar > :last-child { justify-content: flex-end; }
.footer__secure .dot { background: var(--lime-dark); box-shadow: none; }
.footer__granted {
  background: var(--violet);
  color: #fff;
  padding: 12px 26px !important;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  letter-spacing: 0.14em;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- inner pages ---------- */

.page-hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 5vw, 64px) 0 clamp(32px, 4vw, 44px);
  background: var(--paper);
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}
.page-hero .lead {
  max-width: 54em;
  font-size: 14.5px;
  line-height: 1.78;
  color: #45453f;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-body { padding: clamp(36px, 4.5vw, 56px) 0 30px; }
.prose { max-width: 820px; }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 40px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2::before {
  content: attr(data-no);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--violet);
}
.prose h3 { margin: 26px 0 8px; font-size: 1.02rem; font-weight: 700; }
.prose p { margin-bottom: 14px; font-size: 13.5px; line-height: 1.8; color: #45453f; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; color: #45453f; }
.prose li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.75; }
.prose strong { color: var(--ink); }
.prose a { color: var(--violet-dark); font-weight: 600; }
.prose .note { margin: 24px 0; }
.prose .note p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1px 5px;
}

.notfound {
  padding: clamp(70px, 12vw, 140px) 0;
  text-align: center;
}
.notfound .eyebrow { justify-content: center; }
.notfound h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 16px 0 14px;
}
.notfound p { color: var(--muted); margin-bottom: 26px; font-size: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .nav a { padding: 0 10px; }
  .logo__sub { display: none; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .sec__head { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__main { padding-right: 0; }
  .hero__visual { border-left: 0; border-top: 1px solid var(--line); min-height: 420px; }
  .hero-art { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .cta-panel__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 74px; }
  .utility__right { display: none; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.5);
    padding: 6px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
  }
  .nav__cta { margin: 12px 0 0; justify-content: space-between; padding: 14px 16px !important; }
  .masthead__in { min-height: 60px; }
  .hero__title { font-size: clamp(2.35rem, 8.4vw, 3.6rem); }
  .hero__visual { min-height: 360px; padding: 20px; }
  .hero-art { max-width: 360px; }
  .sec__head { grid-template-columns: 1fr; gap: 10px; padding-top: 36px; }
  .sec__head::after { top: 34px; }
  .sec__tag em { display: inline; margin-left: 6px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle h3 { font-size: 9.5px; }
  .grid-4, .signals, .layers, .grid-3 { grid-template-columns: 1fr; }
  .layer { border-right: 0; border-bottom: 1px solid var(--line); }
  .layer:last-child { border-bottom: 0; }
  .rules { grid-template-columns: 1fr; }
  .rule { border-right: 0; border-bottom: 1px solid var(--line); }
  .rule:last-child { border-bottom: 0; }
  .checks { grid-template-columns: 1fr; }
  .check:nth-child(7) { grid-column: auto; }
  .faq .answer { padding-left: 58px; }
  .provenance { grid-template-columns: 1fr; }
  .correction { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bar { grid-template-columns: 1fr; }
  .footer__bar > * { border-bottom: 1px solid var(--line); }
  .footer__bar > :last-child { border-bottom: 0; justify-content: flex-start; }
  .footer__granted { clip-path: none; padding: 10px 16px !important; justify-content: center; }
  .cta-note { margin-top: 12px; }
}

@media (max-width: 620px) {
  .hero__main { padding-top: 34px; }
  .hero__title { letter-spacing: -0.045em; }
  .hero__title .hl { padding: 0 0.07em 0.03em; }
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .hero__actions .btn { width: 100%; }
  .principles { grid-template-columns: 1fr; }
  .grid-4, .games { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .step__arrow { display: none; }
  .step__no { font-size: 24px; }
  .cta-panel { padding: 30px 22px; }
  .cta-panel__actions { flex-direction: column; }
  .cta-panel__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar > :last-child { justify-content: flex-start; }
  .utility__left span:not(.tag-18) { font-size: 8.5px; }
}

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