/* PokiesDir: Aussie signage, not casino dark mode.
   Cobalt page, navy machine, sign-yellow and cherry. Bungee for signs, Figtree for reading. */
:root {
  --cobalt: #1d3fbf;
  --cobalt-deep: #17339c;
  --navy: #0f1f66;
  --yellow: #ffd23f;
  --cherry: #f0435f;
  --paper: #ffffff;
  --ink: #131a3a;
  --ink-soft: #4a5378;
  --mist: #dfe5ff;

  /* symbol colours for monogram tiles */
  --sym-1: #f0435f; --sym-2: #ffd23f; --sym-3: #2bb673;
  --sym-4: #ff8a1f; --sym-5: #7b4dff; --sym-6: #1d3fbf;

  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, sans-serif;

  /* type scale, 1.25 */
  --t-sm: 0.875rem; --t-base: 1.0625rem; --t-md: 1.25rem; --t-lg: 1.5625rem; --t-xl: 1.953rem;

  --reel-row: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--paper);
  background: var(--cobalt);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--navy); color: var(--paper);
}
.wordmark { font-family: var(--display); font-size: var(--t-lg); text-decoration: none; letter-spacing: .01em; }
.wordmark span { color: var(--yellow); }
.top nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-fav { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.fav-count { min-width: 1.6em; padding: 0 .4em; border-radius: 99px; background: var(--cherry); font-size: var(--t-sm); line-height: 1.6; text-align: center; }

/* ---------- hero ---------- */
.hero-stage { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 36px; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; opacity: 0; transition: opacity .8s ease; }
.hero-fx.is-live { opacity: 1; }
.hero h1 .word { display: inline-block; }
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .95; letter-spacing: -.01em;
  margin: 0 0 1.5rem; color: var(--yellow); text-wrap: balance;
  text-shadow: 0 .06em 0 var(--navy);
}
.lede { font-size: var(--t-md); max-width: 34ch; margin: 0 0 2rem; color: #e9edff; }
.lede strong { color: var(--paper); }
.hero-browse {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--paper);
}
.hero-browse:hover { background: var(--paper); color: var(--cobalt); }

/* the machine: the one loud thing on the page */
.machine {
  position: relative; background: var(--navy); border-radius: 28px;
  padding: 2.25rem 1.75rem 1.75rem; box-shadow: 0 14px 0 var(--cobalt-deep);
}
.bulbs {
  position: absolute; inset: 10px; border-radius: 20px; pointer-events: none;
  background:
    radial-gradient(circle, var(--yellow) 0 3px, transparent 3.5px) 0 0 / 22px 22px repeat-x,
    radial-gradient(circle, var(--yellow) 0 3px, transparent 3.5px) 0 100% / 22px 22px repeat-x;
  opacity: .9;
}
.machine.is-spinning .bulbs { animation: chase .35s steps(2) infinite; }
@keyframes chase { to { background-position: 22px 0, -22px 100%; } }

.reel-window {
  position: relative; height: calc(var(--reel-row) * 3); overflow: hidden;
  border-radius: 14px; background: var(--paper);
  box-shadow: inset 0 18px 22px -14px rgba(15, 31, 102, .55), inset 0 -18px 22px -14px rgba(15, 31, 102, .55);
}
.reel-strip { will-change: transform; }
.reel-item {
  height: var(--reel-row); display: flex; align-items: center; justify-content: center; gap: .9rem;
  font-family: var(--display); font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--ink);
  white-space: nowrap; padding: 0 1rem;
}
.reel-item .sym { width: 44px; height: 44px; font-size: .95rem; border-radius: 10px; }
.payline {
  position: absolute; left: 0; right: 0; top: var(--reel-row); height: var(--reel-row);
  border-block: 3px solid var(--cherry); pointer-events: none;
}
.payline::before, .payline::after {
  content: ""; position: absolute; top: 50%; translate: 0 -50%;
  border: 11px solid transparent;
}
.payline::before { left: 0; border-left-color: var(--cherry); }
.payline::after { right: 0; border-right-color: var(--cherry); }

.readout { min-height: 10.5rem; padding: 1.1rem .25rem .25rem; }
.readout-idle { margin: 0; color: #b9c3f5; }
.readout-name { font-family: var(--display); font-size: var(--t-lg); color: var(--yellow); margin: 0; line-height: 1.1; }
.readout-perk { margin: .3rem 0 .8rem; color: #e9edff; }
.readout-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.readout-actions a { font-weight: 700; }
.win-kicker { margin: 0; font-weight: 600; color: #e9edff; }
.win-amount { margin: .1rem 0 .9rem; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.win-amount [data-countup] { font-family: var(--display); font-size: clamp(2.6rem, 5.5vw, 3.6rem); color: var(--yellow); font-variant-numeric: tabular-nums; text-shadow: 0 .06em 0 var(--cherry); }
.win-label { font-family: var(--display); font-size: var(--t-md); color: var(--paper); }
.win-terms { margin: .8rem 0 0; font-size: var(--t-sm); color: #9aa6dc; max-width: 52ch; }
.machine.is-won .bulbs { animation: flash .18s steps(2) 8; }
@keyframes flash { 50% { opacity: .15; } }
.readout-actions .visit { background: var(--yellow); color: var(--ink); text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; }

.coin {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b8 0 18%, var(--yellow) 19% 62%, #d9a400 63%);
  box-shadow: inset 0 0 0 2px #c99a00; pointer-events: none; z-index: 3;
}
.spin-btn {
  width: 100%; margin-top: .75rem; cursor: pointer;
  font-family: var(--display); font-size: var(--t-xl); letter-spacing: .04em;
  color: var(--ink); background: var(--yellow); border: 0; border-radius: 16px;
  padding: .7rem 1rem; box-shadow: 0 6px 0 #c99a00;
  transition: transform .08s, box-shadow .08s;
}
.spin-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #c99a00; }
.spin-btn:disabled { cursor: wait; }

/* ---------- directory ---------- */
.directory {
  background: var(--mist); color: var(--ink);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
  border-radius: 36px 36px 0 0;
  position: relative; margin-top: -36px;
}
.dir-head, .controls, .grid, .empty { max-width: 1240px; margin-inline: auto; }
.dir-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }
.dir-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; color: var(--cobalt); line-height: 1; }
.dir-count { margin: 0; color: var(--ink-soft); font-weight: 500; }

.controls {
  position: sticky; top: 0; z-index: 5;
  display: grid; gap: .9rem; padding: 1.25rem 0 1rem; margin-top: 1rem;
  background: var(--mist);
}
.search { position: relative; display: block; }
.search input {
  width: 100%; padding: .9rem 3rem .9rem 1.1rem; border-radius: 14px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-size: var(--t-base);
}
.search input::placeholder { color: #7d86ab; }
.search kbd {
  position: absolute; right: .9rem; top: 50%; translate: 0 -50%;
  font-family: var(--body); font-size: var(--t-sm); color: var(--ink-soft);
  border: 1px solid #b9c1e3; border-radius: 6px; padding: 0 .45rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: var(--t-sm);
}
.chip span { color: var(--ink-soft); font-weight: 500; margin-left: .3rem; }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-checked="true"] span { color: #b9c1e3; }
.control-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.sort { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: var(--t-sm); }
.sort select { border: 2px solid var(--ink); border-radius: 10px; padding: .3rem .6rem; background: var(--paper); color: var(--ink); }
.fav-toggle {
  cursor: pointer; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: var(--t-sm);
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem 0;
}
.fav-toggle::before { content: "♡"; font-size: 1.15rem; color: var(--cherry); line-height: 1; }
.fav-toggle[aria-pressed="true"]::before { content: "♥"; }

/* ---------- site tiles ---------- */
.grid {
  list-style: none; padding: 0; margin-top: .75rem; margin-bottom: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  background: var(--paper); border-radius: 18px; padding: 1.15rem 1.15rem 1rem;
  border: 2px solid transparent;
}
.tile.is-landed { border-color: var(--cherry); animation: land 1.2s ease-out 1; }
@keyframes land { 0%, 40% { box-shadow: 0 0 0 8px rgba(240, 67, 95, .35); } 100% { box-shadow: 0 0 0 0 rgba(240, 67, 95, 0); } }
.tile-head { display: flex; align-items: center; gap: .85rem; padding-right: 2.2rem; }
.sym {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  font-family: var(--display); font-size: 1.05rem; color: var(--paper); background: var(--sym-6);
}
.sym[data-c="1"] { background: var(--sym-1); }
.sym[data-c="2"] { background: var(--sym-2); color: var(--ink); }
.sym[data-c="3"] { background: var(--sym-3); }
.sym[data-c="4"] { background: var(--sym-4); color: var(--ink); }
.sym[data-c="5"] { background: var(--sym-5); }
.tile-name { font-family: var(--display); font-weight: 400; font-size: var(--t-md); line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.tile-host { margin: .1rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); }
.tile-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: var(--t-sm); }
.cat { color: var(--cobalt); font-weight: 700; }
.sponsored { font-size: var(--t-sm); font-weight: 700; color: var(--ink-soft); border: 1.5px solid currentColor; border-radius: 6px; padding: 0 .45rem; }
.tile.is-sponsored { border-color: var(--yellow); box-shadow: 0 6px 0 var(--yellow); }
.win-kicker .sponsored { color: #b9c3f5; margin-left: .35rem; }
.badge { background: var(--yellow); color: var(--ink); font-weight: 700; padding: .05rem .55rem; border-radius: 6px; }
.badge[data-b="Hot"] { background: var(--cherry); color: var(--paper); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.perks li { position: relative; padding-left: 1.1rem; }
.perks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--cherry); }
.perks-none { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.tile-foot { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.visit-btn {
  flex: 1; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--cobalt); color: var(--paper); padding: .65rem 1rem; border-radius: 12px;
}
.visit-btn:hover { background: var(--navy); }
.review-btn {
  text-align: center; text-decoration: none; font-weight: 700; color: var(--cobalt);
  padding: .55rem .9rem; border-radius: 12px; border: 2px solid var(--cobalt);
}
.review-btn:hover { background: var(--mist); }

/* ---------- review pages ---------- */
.rv-body { background: var(--mist); color: var(--ink); }
.rv { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 4rem; }
.rv-back { font-weight: 600; color: var(--cobalt); }
.rv h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4rem); color: var(--cobalt); line-height: 1; margin: 1.5rem 0 .25rem; overflow-wrap: anywhere; }
.rv-host { margin: 0 0 1.25rem; color: var(--ink-soft); }
.rv-disclosure { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; font-size: var(--t-sm); color: var(--ink-soft); margin: 0 0 1.25rem; }
.rv-verdict { font-size: var(--t-lg); font-weight: 600; line-height: 1.35; margin: 0 0 .5rem; max-width: 34ch; }
.rv-byline { color: var(--ink-soft); font-size: var(--t-sm); margin: 0 0 2rem; }
.rv h2 { font-family: var(--display); font-weight: 400; font-size: var(--t-md); color: var(--cobalt); margin: 2.25rem 0 .75rem; }
.rv-offers ul, .rv-pc ul { margin: 0; padding-left: 1.2rem; }
.rv-offers li, .rv-pc li { margin-bottom: .3rem; }
.rv-note { font-size: var(--t-sm); color: var(--ink-soft); max-width: 62ch; }
.rv-visit { display: inline-block; margin: 1.5rem 0 1rem; padding-inline: 1.6rem; }
.rv-text p { font-size: 1.125rem; line-height: 1.65; max-width: 64ch; }
.rv-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 2rem; }
.rv-games table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.rv-games th, .rv-games td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--mist); }
.rv-games th { font-size: var(--t-sm); color: var(--ink-soft); font-weight: 600; }
.rv-games td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.rv-games td a { color: var(--cobalt); font-size: var(--t-sm); }
@media (max-width: 520px) {
  .rv-games table { font-size: .85rem; }
  .rv-games th, .rv-games td { padding: .55rem .5rem; }
  #rtp ~ table th:nth-child(2), #rtp ~ table td:nth-child(2) { display: none; }
}
.fav {
  position: absolute; top: .9rem; right: .9rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 0; background: none; cursor: pointer; font-size: 1.35rem; color: var(--cherry); border-radius: 50%;
}
.fav:hover { background: #ffe8ec; }

.empty { text-align: center; padding: 3rem 1rem; }
.empty-title { font-family: var(--display); font-size: var(--t-lg); color: var(--cobalt); margin: 0 0 .25rem; }
.empty button { margin-top: 1rem; cursor: pointer; border: 2px solid var(--ink); background: none; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; }

/* ---------- footer ---------- */
.foot { background: var(--navy); padding: 2.5rem clamp(1rem, 4vw, 3rem) 3rem; color: #c9d1f7; font-size: var(--t-sm); }
.foot p { max-width: 70ch; margin: 0 0 .5rem; }
.foot-mark { font-family: var(--display); font-size: var(--t-md); color: var(--paper); }
.foot a { color: var(--yellow); }
.foot-source { margin-top: 1.25rem !important; color: #8f9ad0; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .lede { max-width: 46ch; }
}
@media (max-width: 520px) {
  :root { --reel-row: 64px; }
  .top nav a[href="#spin"] { display: none; }
  .machine { padding: 2rem 1.1rem 2rem; }
  .directory { border-radius: 24px 24px 0 0; }
  .search kbd { display: none; }
  .controls { position: static; }
  .directory { margin-top: -24px; }
  .hero-stage { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .machine.is-spinning .bulbs, .machine.is-won .bulbs, .tile.is-landed { animation: none; }
}
