/* Player Points. Palette from UK banknotes: plum (£20) and orange (£10) on cool paper. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --paper: #f6f6fa;
  --surface: #ffffff;
  --ink: #241b35;
  --muted: #5d566f;
  --line: #dedae8;
  --plum: #4b2c83;
  --plum-soft: #ebe6f5;
  --orange: #d9631a;
  --track: #e4dfef;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); }
a { color: var(--plum); text-underline-offset: .18em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.vh, .mk-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 12px 16px; }
.skip:focus { left: 16px; }

/* frame */
.top, main, .foot { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 22px; padding-bottom: 22px; }
.mark { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.coins { width: 34px; height: 24px; }
.desk { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: .97rem; }
.desk a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.desk a:hover, .desk a[aria-current] { color: var(--plum); }
.desk a:hover { text-decoration: underline; }
.desk a[aria-current] { font-weight: 700; }

/* mobile menu: native <details>, no script */
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 700; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(18rem, calc(100vw - 32px));
  display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(36, 27, 53, .14); }
.menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 8px; color: var(--ink);
  text-decoration: none; font-weight: 600; }
.menu nav a:hover, .menu nav a:focus-visible { background: var(--plum-soft); }
.menu nav a[aria-current] { color: var(--plum); background: var(--plum-soft); }

/* hero: the question, set large */
.hero { padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
h1 { font-weight: 850; font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; max-width: 15ch; color: var(--plum); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.sub, .disclosure { color: var(--muted); margin: 0 0 22px; max-width: 46em; }
section { padding: 48px 0 8px; }

/* the speed chart: the one bold element */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.speed-table { min-width: 760px; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.speed-table th, .speed-table td { padding: 16px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.speed-table thead th { font-size: .88rem; font-weight: 600; color: var(--muted); vertical-align: bottom; }
.speed-table tbody tr:last-child > * { border-bottom: 0; }
.speed-table tbody th { font-weight: 700; white-space: nowrap; }
.bar-col { width: 38%; }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.track { position: relative; display: block; height: 14px; border-radius: 7px; background: var(--track); }
.track.none { background: repeating-linear-gradient(-45deg, var(--track) 0 6px, transparent 6px 12px); }
.bar { position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to)); min-width: 14px; border-radius: 7px; background: var(--orange); }
.wd { display: block; margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.notes { color: var(--muted); font-size: .95rem; }
.after { margin-top: 26px; }

/* method grid */
.matrix { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.matrix th, .matrix td { padding: 18px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix thead th { font-size: .88rem; font-weight: 600; color: var(--muted); }
.matrix th[scope="row"], .matrix thead th:first-child { text-align: left; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.brand { display: block; font-weight: 800; font-size: 1.12rem; white-space: nowrap; }
.lic { display: inline-block; white-space: nowrap; margin-top: 4px; font-size: .875rem; font-weight: 600; color: var(--plum); background: var(--plum-soft); border-radius: 4px; padding: 1px 7px; }
.mk { display: inline-block; width: 22px; height: 22px; border-radius: 50%; }
[data-has="yes"] .mk { background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
[data-has="no"] .mk { width: 12px; height: 2px; border-radius: 1px; background: var(--line); }
.go { text-align: right; }
.btn { display: inline-block; min-height: 44px; white-space: nowrap; background: var(--plum); color: #fff; font-weight: 700; text-decoration: none; padding: 11px 18px; border-radius: 8px; }
.btn:hover { background: #3a2068; }

/* prose pages */
.prose { max-width: 40em; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose li { margin-bottom: 8px; }
.prose h2 { margin-top: 36px; }
main > h1 { margin-top: 40px; }

.foot { margin-top: 64px; padding-bottom: 48px; }
.foot p { border-top: 1px solid var(--line); padding-top: 24px; margin: 0; max-width: 46em; color: var(--muted); font-size: .95rem; }

/* phone: sticky bar with the menu; the grid becomes one block per casino */
@media (max-width: 720px) {
  .top { position: sticky; top: 0; z-index: 10; flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px;
    background: rgba(246, 246, 250, .94); backdrop-filter: blur(8px); max-width: none; border-bottom: 1px solid var(--line); }
  .desk { display: none; }
  .menu { display: block; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix, .matrix tbody, .matrix tr { display: block; }
  .matrix tr { padding: 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .matrix tbody tr:last-child { border-bottom: 0; }
  .matrix th, .matrix td { padding: 0; border: 0; text-align: left; }
  .matrix th[scope="row"] { grid-column: 1 / -1; }
  .matrix td[data-group] { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
  .matrix td[data-group]::after { content: attr(data-group); }
  .matrix td[data-has="no"] { color: var(--muted); }
  .matrix td[data-has="no"]::after { text-decoration: line-through; }
  [data-has="no"] .mk { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: none; }
  [data-has="no"] .mk::before { content: ""; width: 12px; height: 2px; border-radius: 1px; background: var(--muted); }
  .go { grid-column: 1 / -1; }
  .btn { display: block; width: 100%; text-align: center; }
}
/* speed chart: stacked blocks below 960px (the five-column table needs ~760px plus margins) */
@media (max-width: 960px) {
  .speed-table { min-width: 0; }
  .speed-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .speed-table, .speed-table tbody { display: block; }
  .speed-table tr { display: grid; grid-template-columns: max-content max-content 1fr; align-items: baseline; gap: 8px 16px; padding: 18px; border-bottom: 1px solid var(--line); }
  .speed-table tbody tr:last-child { border-bottom: 0; }
  .speed-table th, .speed-table td { padding: 0; border: 0; }
  .speed-table tbody th, .bar-col { grid-column: 1 / -1; width: auto; }
  .speed-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .matrix th, .matrix td { padding: 16px 10px; }
  .matrix th[scope="row"], .matrix thead th:first-child { padding-left: 16px; }
  .go { padding-right: 16px; }
}
@media (max-width: 560px) {
  .speed-table tr { grid-template-columns: 1fr 1fr; }
  .notes { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .speed-table tr { grid-template-columns: 1fr; gap: 6px; }
  .matrix tr { grid-template-columns: 1fr; }
  .matrix td[data-group] { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
