@import url('/assets/fonts/fonts.css');

/* ==========================================================================
   PAK SUPER CASINO - "THE BOARD"

   Deliberately NOT a card-grid directory. The form is a painted wall chart:
   twenty-five numbered lines on an indigo ground, set in condensed poster
   caps, read top to bottom like a results board. There is no tile grid, no
   hero image mosaic, no icon fact strip and no sticky sidebar anywhere on
   this site. Artwork appears once per line, as a stamp, and once per game
   page, at plate scale.

   LOCKS
     Ground .... indigo #141A4F, flat, one theme only. Nothing inverts.
     Accent .... lime #D6FF3F is the only interactive colour. Vermilion
                 #FF4B2B carries exactly one job: the 18+ warning.
     Shape ..... zero radius. Every corner on this site is square.
     Type ...... Anton for board lettering, Archivo for reading and figures.
   ========================================================================== */

:root {
  color-scheme: dark;

  --ground:   #141a4f;
  --ground-2: #0e1340;
  --ground-3: #1b2260;
  --rule:     #2f3780;
  --rule-dim: #232a68;

  --lime:     #d6ff3f;
  --lime-dim: #b8e02a;
  --on-lime:  #10143c;

  --alarm:    #ff4b2b;

  --ink:      #f2f2ec;
  --ink-2:    #b9bde0;
  --ink-3:    #8b90bd;

  --board:  'Anton', 'Archivo Narrow', system-ui, sans-serif;
  --text:   'Archivo', system-ui, -apple-system, sans-serif;

  --page: 1180px;
  --gut:  22px;
  --ease: cubic-bezier(.2,.8,.25,1);
}

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

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

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

::selection { background: var(--lime); color: var(--on-lime); }

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

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--on-lime);
  padding: 12px 20px; font-weight: 700;
}
.skip:focus { left: 0; }

/* Board lettering: condensed caps, tight, always uppercase. */
.board {
  font-family: var(--board);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
}

.tag {
  font-family: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fig { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ------------------------------------------------------------- nameplate -- */
/* Not a sticky app bar. A painted nameplate that scrolls away, with the
   navigation set as a single line of board type beneath it. */
.plate {
  border-bottom: 4px solid var(--lime);
  background: var(--ground-2);
}

.plate__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 14px;
}

.plate__mark { width: 38px; height: 38px; flex: none; }

.plate__name {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(21px, 3.4vw, 34px);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.plate__sub {
  margin-left: auto;
  text-align: right;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.plate__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-top: 1px solid var(--rule);
  margin: 0 calc(var(--gut) * -1);
  padding-inline: var(--gut);
}

.plate__nav a {
  padding: 11px 0;
  margin-right: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 3px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.plate__nav a:hover { color: var(--ink); }
.plate__nav a.on { color: var(--lime); border-bottom-color: var(--lime); }
.plate__nav .last { margin-right: 0; margin-left: auto; color: var(--lime); }

/* ------------------------------------------------------------- overture --- */
/* Type only. No image, no tiles, no stat chips. */
.overture { padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 4vw, 46px); }

.overture h1 {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(44px, 10.5vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.012em;
  margin-bottom: 22px;
}

.overture h1 em { font-style: normal; color: var(--lime); }

.overture__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 34px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
}

.overture__foot p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.overture__foot .n {
  font-family: var(--board);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 0.85;
  color: var(--lime);
}

.overture__foot .n span { display: block; font-family: var(--text); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); font-weight: 700; margin-top: 6px; }

/* ------------------------------------------------------------ the board --- */
.chart { padding-bottom: clamp(40px, 5vw, 70px); }

.chart__head {
  display: grid;
  grid-template-columns: 58px 1fr 92px 96px 120px;
  gap: 18px;
  align-items: center;
  padding: 0 0 9px;
  border-bottom: 2px solid var(--rule);
  color: var(--ink-3);
}

.chart__head span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.chart__head .r { text-align: right; }

/* One game = one line. Lines, not cards. */
.line {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr 92px 96px 120px;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-dim);
  transition: background-color 150ms var(--ease);
}

.line:hover { background: var(--ground-3); }

.line__no {
  font-family: var(--board);
  font-size: 26px;
  color: var(--ink-3);
  transition: color 150ms var(--ease);
}

.line:hover .line__no { color: var(--lime); }

.line__id { display: flex; align-items: center; gap: 14px; min-width: 0; }

.line__stamp {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(1.05);
}

.line__name {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 0.95;
  letter-spacing: 0.004em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 150ms var(--ease);
}

.line:hover .line__name { color: var(--lime); }

.line__new {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 6px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.line__score, .line__ver { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.line__score b { color: var(--ink); font-weight: 700; }

.line__get {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: transparent;
  border: 2px solid var(--rule);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.line:hover .line__get { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }

.line__hit::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 900px) {
  /* Names wrap rather than truncate: an ellipsised game name is unusable on a
     board whose whole job is naming games. */
  .line__name { white-space: normal; overflow: visible; line-height: 1.02; }
  .line__id { align-items: flex-start; }
  .line__stamp { margin-top: 2px; }
  .chart__head { grid-template-columns: 40px 1fr 78px; }
  .chart__head .h-ver, .chart__head .h-get { display: none; }
  .line { grid-template-columns: 40px 1fr 78px; gap: 12px; padding: 11px 0; }
  .line__ver, .line__get { display: none; }
  .line__no { font-size: 20px; }
  .line__stamp { width: 38px; height: 38px; }
}

/* ----------------------------------------------------------- section rule - */
.rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(34px, 4.5vw, 56px) 0 14px;
}

.rule-head h2 {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(26px, 4.6vw, 48px);
  line-height: 1;
}

.rule-head .c { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* ------------------------------------------------------------- game page -- */
/* A full-bleed colour band with the name at plate scale, then one wide
   reading column. No two-column sidebar layout anywhere. */
.crumb {
  padding: 16px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.crumb a:hover { color: var(--lime); }
.crumb i { font-style: normal; padding: 0 8px; }

.marquee-band { background: var(--ground-2); border-block: 4px solid var(--lime); }

.marquee {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: clamp(26px, 4vw, 46px) 0;
}

.marquee__plate { border: 3px solid var(--lime); }
.marquee__plate img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.marquee h1 {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(36px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.008em;
  margin-bottom: 14px;
}

.marquee__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 12px 0 18px;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  margin-bottom: 20px;
}

.marquee__meta div { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.marquee__meta b { display: block; font-family: var(--board); font-size: 24px; letter-spacing: 0; color: var(--ink); margin-top: 3px; }
.marquee__meta .lime b { color: var(--lime); }

.get {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--board);
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.01em;
  transition: background-color 150ms var(--ease), transform 120ms var(--ease);
}

.get:hover { background: #fff; }
.get:active { transform: translateY(2px); }
.get--wide { width: 100%; justify-content: center; }

.getline { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 760px) {
  .marquee { grid-template-columns: 118px minmax(0, 1fr); gap: 18px; }
  .marquee__meta { gap: 8px 18px; }
  .marquee__meta b { font-size: 19px; }
}

/* -------------------------------------------------------------- reading --- */
.read { padding: clamp(34px, 4.5vw, 60px) 0; }
/* Text is never width-capped at element level; the page cap lives on .wrap. */
.read__col { width: 100%; }

.read__col h2 {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 0.95;
  margin: 2em 0 0.5em;
  padding-top: 0.7em;
  border-top: 2px solid var(--rule);
}

.read__col > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.read__col h3 { font-family: var(--board); text-transform: uppercase; font-size: 20px; margin: 1.7em 0 0.4em; color: var(--lime); }
.read__col p { margin: 0 0 1.15em; color: var(--ink-2); }
.read__col strong { color: var(--ink); font-weight: 700; }
.read__col a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

.read__col ul, .read__col ol { margin: 0 0 1.3em; padding-left: 0; }
.read__col ul { list-style: none; }
.read__col ul li { position: relative; padding-left: 30px; margin-bottom: 9px; color: var(--ink-2); }
.read__col ul li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 16px; height: 3px; background: var(--lime);
}
.read__col ol { padding-left: 24px; }
.read__col ol li { margin-bottom: 9px; color: var(--ink-2); }
.read__col ol li::marker { font-family: var(--board); color: var(--lime); }

/* Spec block sits inline in the reading flow, not in a rail. */
.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--rule);
  margin: 0 0 34px;
}

.spec div { padding: 14px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spec div:nth-child(3n) { border-right: 0; }
.spec div:nth-last-child(-n+3) { border-bottom: 0; }
.spec dt { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 4px 0 0; font-family: var(--board); font-size: 21px; text-transform: uppercase; }
.spec .lime dd { color: var(--lime); }

@media (max-width: 620px) {
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec div:nth-child(3n) { border-right: 1px solid var(--rule); }
  .spec div:nth-child(2n) { border-right: 0; }
  .spec div:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .spec div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------------------------------------------------------------- duty ---- */
.duty { background: var(--alarm); color: #180705; padding: clamp(34px, 4.5vw, 58px) 0; }

.duty h2 {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(28px, 5.6vw, 58px);
  line-height: 0.98;
  margin-bottom: 14px;
}

.duty p { margin: 0 0 18px; font-size: 16px; }

.duty ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid rgba(24,7,5,.35); }
.duty li { padding: 12px 18px 12px 0; border-bottom: 2px solid rgba(24,7,5,.35); font-size: 14.5px; font-weight: 500; }
.duty li b { font-family: var(--board); font-size: 19px; display: block; text-transform: uppercase; }

@media (max-width: 720px) { .duty ul { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------- endplate -- */
.endplate { border-top: 4px solid var(--lime); background: var(--ground-2); padding: clamp(36px, 4.5vw, 58px) 0 24px; }

.endplate__big {
  font-family: var(--board);
  text-transform: uppercase;
  font-size: clamp(38px, 10vw, 116px);
  line-height: 0.95;
  color: var(--ground-3);
  margin-bottom: 26px;
  word-break: break-word;
}

.endplate__cols { display: flex; flex-wrap: wrap; gap: 14px 46px; padding-top: 20px; border-top: 2px solid var(--rule); }
.endplate__cols a { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.endplate__cols a:hover { color: var(--lime); }
.endplate__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }

/* ------------------------------------------------------------- to top ----- */
.up {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); border: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.up.on { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------------------------------------- reveal ----- */
.js .rise { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.js .rise.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* Static page titles are sentences, not two-word slogans: they get their own
   scale rather than the board's poster size. Still no width cap on the text. */
.overture--page h1 { font-size: clamp(28px, 4.8vw, 56px); line-height: 1.02; }
