/* Kabooshe Games portal layout (CrazyGames-style). Separate from the template's app.css. */
:root {
  --bg: #0c0c0e;
  --panel: #151518;
  --panel-2: #1d1d22;
  --line: #2a2a31;
  --text: #f3f1ec;
  --muted: #9b9aa3;
  --gold: #f4a916;
  --fire: #ff4d1c;
  --rail-w: 236px;
  --top-h: 72px;
  --gap: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- top bar ---- */
.top {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 50;
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: rgba(12, 12, 14, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.logo img { height: 60px; width: auto; margin: -4px 0; }
.burger { display: none; background: none; border: 0; font-size: 20px; padding: 8px; }
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 18px 0 44px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 169, 22, .18); }
.suggest {
  position: absolute; top: 52px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); max-height: 70vh; overflow: auto;
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.suggest a:hover, .suggest a.hl { background: var(--panel-2); }
.suggest img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; }
.suggest b { display: block; font-weight: 600; font-size: 14px; }
.suggest small { color: var(--muted); }
.suggest p { margin: 0; padding: 12px; color: var(--muted); }
.top-links { display: flex; gap: 6px; }
.top-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.top-links a:hover { color: var(--text); background: var(--panel-2); }

/* ---- left rail ---- */
.rail {
  position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--rail-w); z-index: 40;
  background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 10px 24px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail a {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px;
  color: #c9c8cf; font-weight: 600;
}
.rail a i { width: 20px; text-align: center; color: var(--muted); transition: color .15s; }
.rail a span { flex: 1; }
.rail a em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.rail a:hover { background: var(--panel-2); color: var(--text); }
.rail a:hover i { color: var(--gold); }
.rail a.on { background: linear-gradient(90deg, rgba(244, 169, 22, .2), rgba(244, 169, 22, .05)); color: #fff; }
.rail a.on i { color: var(--gold); }
.rail hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; }
.rail-h { margin: 6px 12px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 39; }

/* ---- main ---- */
.main { margin-left: var(--rail-w); padding: calc(var(--top-h) + 22px) 24px 0; min-height: 100vh; }
.row { margin-bottom: 30px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.row-head h2 { margin: 0; font: 700 20px/1.2 "Orbitron", sans-serif; letter-spacing: .02em; }
.row-ctl { display: flex; align-items: center; gap: 8px; }
.row-all { color: var(--gold); font-weight: 600; font-size: 14px; margin-right: 6px; }
.row-all:hover { text-decoration: underline; }
.row-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12px;
}
.row-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ---- tiles ---- */
.tile {
  position: relative; display: block; aspect-ratio: 556 / 299; border-radius: 14px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-info {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
  transform: translateY(100%); opacity: 0; transition: transform .18s ease, opacity .18s ease;
}
.tile-info b { font-size: 14px; font-weight: 700; line-height: 1.25; }
.tile-info i { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.tile:hover, .tile:focus-visible { transform: scale(1.06); z-index: 3; border-color: var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold), 0 0 24px rgba(244, 169, 22, .25); }
.tile:hover .tile-info, .tile:focus-visible .tile-info { transform: none; opacity: 1; }
@media (hover: none) {
  .tile-info { transform: none; opacity: 1; padding: 16px 8px 5px; }
  .tile-info b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tile-info i { display: none; }
}

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.mosaic .tile--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: 18px; }
.tile--big .tile-info { transform: none; opacity: 1; padding: 60px 20px 18px; }
.tile--big .tile-info b { font: 700 22px/1.2 "Orbitron", sans-serif; }
.tile--big .tile-info i { font-size: 12px; display: block; }
.tile--big .tile-info b { white-space: normal; font-size: 22px; }
@media (max-width: 767px) { .tile--big .tile-info b { font-size: 18px; } .tile--big .tile-info { padding: 40px 14px 12px; } }

.row-track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding: 10px 6px 14px; margin: -10px -6px -14px; scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track .tile { flex: 0 0 clamp(170px, 15.5vw, 230px); scroll-snap-align: start; }

/* ---- footer ---- */
.foot {
  margin: 40px -24px 0; padding: 28px 24px; border-top: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: center; gap: 24px;
}
.foot-logo { width: 150px; height: auto; flex: none; }
.foot-text p { margin: 0 0 4px; color: var(--muted); }
.foot-text strong { color: var(--text); }
.foot-text a:hover { color: var(--gold); }
.foot-text .copy { font-size: 13px; }

/* ---- responsive ---- */
@media (max-width: 1199px) {
  :root { --rail-w: 76px; }
  .rail a { flex-direction: column; gap: 4px; padding: 10px 2px; font-size: 10.5px; text-align: center; }
  .rail a span { flex: none; }
  .rail a em, .rail-h { display: none; }
  .rail a i { font-size: 17px; }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  :root { --rail-w: 0px; --top-h: 60px; }
  .burger { display: block; }
  .top { gap: 8px; padding: 0 10px; }
  .logo img { height: 46px; }
  .top-links { display: none; }
  .rail {
    width: 250px; transform: translateX(-100%); transition: transform .2s; z-index: 60; padding-top: 14px;
    top: 0; border-right: 1px solid var(--line);
  }
  .rail.open { transform: none; }
  .rail a { flex-direction: row; gap: 14px; padding: 10px 12px; font-size: 15px; text-align: left; }
  .rail a span { flex: 1; }
  .rail a em { display: inline; }
  .rail-h { display: block; }
  .main { padding: calc(var(--top-h) + 16px) 12px 0; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic .tile--big { grid-column: span 2; grid-row: auto; aspect-ratio: 556 / 299; }
  .row-track .tile { flex-basis: 150px; }
  .row-btn { display: none; }
  .foot { margin: 30px -12px 0; flex-direction: column; text-align: center; padding: 24px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- All Games listing ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font: 800 clamp(26px, 3vw, 36px)/1.1 "Orbitron", sans-serif; letter-spacing: .02em; }
.page-count { margin: 6px 0 0; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.sort select {
  height: 40px; padding: 0 36px 0 14px; border-radius: 999px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); font: inherit; font-weight: 600; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239b9aa3' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.sort select:focus { outline: none; border-color: var(--gold); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: #d4d3da; transition: border-color .15s, color .15s, background .15s;
}
.chip em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 4px; font-size: 12px; }
.chip:hover { border-color: var(--gold); color: #fff; }
.chip.on { background: var(--gold); border-color: var(--gold); color: #1a0d00; }
.chip.on em { color: #5a3a00; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap); padding: 6px; margin: -6px; }
.grid[hidden], .tile[hidden], .empty[hidden], .more[hidden] { display: none; }
.more { text-align: center; margin-top: 28px; }
.more-btn {
  height: 46px; padding: 0 30px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  font-weight: 700; transition: border-color .15s, color .15s;
}
.more-btn:hover { border-color: var(--gold); color: var(--gold); }
.empty { text-align: center; padding: 70px 16px; color: var(--muted); }
.empty i { font-size: 44px; color: var(--gold); opacity: .8; }
.empty h2 { margin: 14px 0 6px; font: 700 20px "Orbitron", sans-serif; color: var(--text); }
.empty p { margin: 0 0 18px; }
@media (max-width: 767px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .page-head { align-items: flex-start; }
}

/* ---- Game detail ---- */
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs i { font-size: 10px; opacity: .6; }
.crumbs span { color: var(--text); font-weight: 600; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-bottom: 34px; }
.detail h2 { margin: 0 0 14px; font: 700 18px/1.2 "Orbitron", sans-serif; letter-spacing: .02em; }

.stage { position: relative; aspect-ratio: 556 / 299; background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .15s, background .15s;
}
.stage:hover .stage-btn, .stage-btn:focus-visible { opacity: 1; }
.stage-btn:hover { background: var(--gold); color: #1a0d00; }
.stage-btn.prev { left: 14px; }
.stage-btn.next { right: 14px; }
.stage-count { position: absolute; right: 14px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: 12px; font-weight: 600; }
@media (hover: none) { .stage-btn { opacity: 1; } }

.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.thumbs button { flex: none; width: 116px; aspect-ratio: 556 / 299; padding: 0; border-radius: 10px; overflow: hidden; background: var(--panel); border: 2px solid transparent; opacity: .65; transition: opacity .15s, border-color .15s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 1; }
.thumbs button.on { border-color: var(--gold); opacity: 1; }

.gamebar {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
  margin-top: 16px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
}
.gamebar-icon { width: 84px; height: 84px; border-radius: 18px; border: 1px solid var(--line); }
.gamebar h1 { margin: 0; font: 800 clamp(20px, 2.2vw, 28px)/1.15 "Orbitron", sans-serif; }
.gamebar-tag { margin: 4px 0 0; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gamebar-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.gamebar-meta a { color: var(--text); font-weight: 600; }
.gamebar-meta a:hover { color: var(--gold); }
.gamebar-meta span + span::before, .gamebar-meta a + span::before { content: "\2022"; margin-right: 14px; opacity: .5; }
.gamebar-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }

.store {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 700; line-height: 1.1;
  background: var(--panel-2); border: 1px solid var(--line);
}
.store i { font-size: 22px; }
.store span { display: flex; flex-direction: column; font-size: 14px; }
.store small { font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.store--play { background: linear-gradient(180deg, #ffc93c, var(--gold) 50%, #e8630a); color: #1a0d00; border-color: transparent; box-shadow: 0 6px 20px rgba(255, 110, 20, .3); transition: transform .15s, box-shadow .15s; }
.store--play:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 130, 30, .5); }
.store.is-soon { opacity: .45; cursor: not-allowed; }

.share { position: relative; }
.share-btn { height: 48px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; }
.share-btn:hover { border-color: var(--gold); color: var(--gold); }
.share-menu { position: absolute; right: 0; top: 56px; min-width: 190px; z-index: 20; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 500; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--panel-2); color: var(--gold); }
.share-menu[hidden] { display: none; }

.about, .facts { margin-top: 28px; }
.about p { margin: 0 0 14px; color: #cfcdd4; max-width: 72ch; }
.about .about-lead { color: var(--text); font-size: 17px; font-weight: 600; }
.feat { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feat li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.feat i { color: var(--gold); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.facts dl div { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-weight: 700; }

.detail-side { position: sticky; top: calc(var(--top-h) + 20px); }
.side-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); padding: 6px; margin: -6px; }
.side-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold); font-weight: 600; font-size: 14px; }
.side-all:hover { text-decoration: underline; }

@media (max-width: 1199px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
  .side-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 767px) {
  .gamebar { grid-template-columns: auto minmax(0, 1fr); }
  .gamebar-icon { width: 64px; height: 64px; border-radius: 14px; }
  .gamebar-act { grid-column: 1 / -1; justify-content: stretch; }
  .gamebar-act .store--play { flex: 1 1 100%; justify-content: center; }
  .store.is-soon { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 0 10px; }
  .share { flex: 1 1 100%; }
  .share-btn { width: 100%; justify-content: center; }
  .share-menu { left: 0; right: 0; }
  .thumbs button { width: 96px; }
  .side-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Play in browser ---- */
.play-overlay {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .72)); border: 0; cursor: pointer; color: #fff;
  transition: background .2s;
}
.play-overlay:hover { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15), rgba(0, 0, 0, .6)); }
.play-circle {
  width: clamp(72px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(26px, 3.4vw, 44px);
  color: #1a0d00; padding-left: .12em; background: linear-gradient(180deg, #ffc93c, var(--gold) 50%, #e8630a);
  box-shadow: 0 0 0 8px rgba(244, 169, 22, .25), 0 12px 40px rgba(255, 110, 20, .6); transition: transform .18s;
  animation: ring 2.4s ease-in-out infinite;
}
.play-overlay:hover .play-circle { transform: scale(1.1); animation: none; }
.play-label { font: 800 clamp(18px, 2.4vw, 28px)/1 "Orbitron", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 12px #000; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 8px rgba(244, 169, 22, .25), 0 12px 40px rgba(255, 110, 20, .5); } 50% { box-shadow: 0 0 0 16px rgba(244, 169, 22, .08), 0 12px 48px rgba(255, 110, 20, .8); } }

.store--now { height: 56px; padding: 0 26px; background: linear-gradient(180deg, #2fd16b, #17a34a); color: #04210f; border-color: transparent; box-shadow: 0 6px 20px rgba(30, 200, 100, .3); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.store--now:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 200, 100, .5); }
.store--now span { font-size: 17px; }
.store--now.is-soon { background: var(--panel-2); color: var(--text); box-shadow: none; transform: none; border-color: var(--line); }

.stage--playing { background: #000; }
.stage--playing > img, .stage--playing > .stage-btn, .stage--playing > .stage-count, .stage--playing > .play-overlay { display: none; }
.stage-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage-bar { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; opacity: 0; transition: opacity .15s; z-index: 2; }
.stage:hover .stage-bar, .stage-bar:focus-within { opacity: 1; }
.stage-bar button { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); }
.stage-bar button:hover { background: var(--gold); color: #1a0d00; }
@media (hover: none) { .stage-bar { opacity: 1; } .stage-bar span { display: none; } }
.stage:fullscreen { border-radius: 0; border: 0; width: 100%; height: 100%; aspect-ratio: auto; }
@media (max-width: 767px) { .gamebar-act .store--now { flex: 1 1 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .play-circle { animation: none; } }
.thumbs[hidden] { display: none; }

/* ---- About + Contact ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn--gold { background: linear-gradient(180deg, #ffc93c, var(--gold) 50%, #e8630a); color: #1a0d00; border-color: transparent; box-shadow: 0 6px 20px rgba(255, 110, 20, .3); }
.btn--gold:hover { color: #1a0d00; border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 130, 30, .5); }
.btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }

.page-intro { max-width: 820px; margin: 6px 0 34px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.page-intro h1 { margin: 0 0 16px; font: 800 clamp(28px, 4vw, 48px)/1.12 "Orbitron", sans-serif; }
.lead { margin: 0; font-size: clamp(16px, 1.4vw, 19px); color: #cfcdd4; max-width: 62ch; }
.intro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap); margin-bottom: 40px; }
.stats div { padding: 22px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.stats strong { display: block; font: 800 clamp(24px, 2.6vw, 34px)/1.1 "Orbitron", sans-serif; color: var(--gold); }
.stats span { color: var(--muted); font-size: 14px; }

.block { margin-bottom: 40px; }
.block h2, .contact h2 { margin: 0 0 16px; font: 700 20px/1.2 "Orbitron", sans-serif; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--gap); }
.kinds a { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, transform .15s; }
.kinds a:hover { border-color: var(--gold); transform: translateY(-3px); }
.kinds i { font-size: 22px; color: var(--gold); margin-bottom: 6px; }
.kinds b { font-size: 16px; }
.kinds span { color: var(--muted); font-size: 13px; }

.block.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.block.two p { margin: 0 0 14px; color: #cfcdd4; max-width: 60ch; }
.parent { text-align: center; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.parent img { width: min(100%, 320px); height: auto; margin: 0 auto 8px; }
.parent p { margin: 0; color: var(--muted); }
.parent strong { color: var(--text); }

.cta-band { text-align: center; padding: 44px 20px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(244, 169, 22, .18), rgba(244, 169, 22, 0) 70%), var(--panel); }
.cta-band h2 { margin: 0 0 6px; font: 800 clamp(22px, 3vw, 32px)/1.15 "Orbitron", sans-serif; }
.cta-band p { margin: 0 0 22px; color: var(--muted); }

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.contact-card, .contact-form { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.mail { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 700 clamp(16px, 1.6vw, 20px) "Inter", sans-serif; word-break: break-all; }
.mail i { color: var(--gold); }
.mail:hover { color: var(--gold); }
.contact-card h3 { margin: 24px 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-card ul { margin: 0; padding-left: 20px; color: #cfcdd4; }
.contact-card li { margin: 6px 0; }
.contact-form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.contact-form small { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--text); font: 500 15px "Inter", sans-serif;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 169, 22, .18); }
.form-error { margin: 0 0 12px; color: #ff7a59; font-weight: 600; }
.form-error[hidden] { display: none; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1199px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .block.two { grid-template-columns: minmax(0, 1fr); }
  .contact-card, .contact-form { padding: 20px; }
  .btn--lg { width: 100%; }
}
@media (max-width: 767px) { br.wide { display: none; } }

/* ---- Become a publisher ---- */
.top-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px !important; margin-left: 6px; border-radius: 999px;
  background: linear-gradient(180deg, #ffc93c, var(--gold) 55%, #e8630a); color: #1a0d00 !important; font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 110, 20, .3); transition: transform .15s, box-shadow .15s;
}
.top-cta:hover { background: linear-gradient(180deg, #ffc93c, var(--gold) 55%, #e8630a) !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 130, 30, .5); }
.rail a.rail-cta { color: var(--gold); background: rgba(244, 169, 22, .08); border: 1px solid rgba(244, 169, 22, .35); }
.rail a.rail-cta i { color: var(--gold); }
.rail a.rail-cta:hover { background: rgba(244, 169, 22, .18); color: #fff; }
.rail a.rail-cta.on { background: linear-gradient(90deg, rgba(244, 169, 22, .3), rgba(244, 169, 22, .1)); color: #fff; }
@media (max-width: 1100px) { .top-cta span { display: none; } .top-cta { padding: 0 14px !important; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: 40px; }
.pillars div { padding: 24px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.pillars i { font-size: 24px; color: var(--gold); margin-bottom: 12px; }
.pillars h2 { margin: 0 0 8px; font: 700 17px/1.2 "Orbitron", sans-serif; }
.pillars p { margin: 0; color: #cfcdd4; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps li { counter-increment: step; position: relative; padding: 52px 20px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before {
  content: counter(step); position: absolute; top: 16px; left: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #1a0d00; font: 800 14px "Orbitron", sans-serif;
}
.steps b { font-size: 16px; }
.steps span { color: #cfcdd4; font-size: 14px; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rules > div { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.rules h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.rules-do h3 i { color: #2fd16b; }
.rules-dont h3 i { color: #ff6a4d; }
.rules ul { margin: 0; padding-left: 20px; color: #cfcdd4; }
.rules li { margin: 8px 0; }
.notice { display: flex; gap: 16px; align-items: flex-start; margin-top: var(--gap); padding: 20px 22px; border-radius: 16px; background: rgba(244, 169, 22, .08); border: 1px solid rgba(244, 169, 22, .35); }
.notice i { font-size: 24px; color: var(--gold); margin-top: 2px; }
.notice p { margin: 0; color: #e6e3da; }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tips div { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.tips i { font-size: 20px; color: var(--gold); margin-bottom: 4px; }
.tips span { color: #cfcdd4; font-size: 14px; }

.plans { align-items: stretch; }
.plans p { margin: 0 0 12px; color: #cfcdd4; }
.buybox { padding: 24px; border-radius: 18px; border: 1px solid rgba(244, 169, 22, .35); background: radial-gradient(ellipse at 50% 0%, rgba(244, 169, 22, .14), rgba(244, 169, 22, 0) 70%), var(--panel); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.buybox i { font-size: 24px; color: var(--gold); }
.buybox h2 { margin: 4px 0 0 !important; font-size: 18px !important; }
.buybox .btn { margin-top: 8px; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq details[open] { border-color: rgba(244, 169, 22, .45); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; color: #cfcdd4; }

@media (max-width: 1199px) { .steps, .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .pillars, .steps, .rules, .tips { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Approved ad networks (publisher page) ---- */
.nets-intro { margin: 0 0 16px; color: #cfcdd4; max-width: 70ch; }
.nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: 18px; }
.nets div { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.nets b { font-size: 16px; color: var(--gold); }
.nets span { color: #cfcdd4; font-size: 14px; }
.nets-notes { margin: 0; padding-left: 20px; color: #cfcdd4; max-width: 80ch; }
.nets-notes li { margin: 8px 0; }
@media (max-width: 1199px) { .nets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .nets { grid-template-columns: minmax(0, 1fr); } }

/* ---- Legal pages (privacy policy) ---- */
.legal { max-width: 900px; padding-bottom: 20px; }
.legal h1 { margin: 0 0 6px; font: 800 clamp(28px, 4vw, 44px)/1.12 "Orbitron", sans-serif; }
.legal-date { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 34px 0 10px; font: 700 19px/1.25 "Orbitron", sans-serif; }
.legal p, .legal li { color: #cfcdd4; }
.legal p { margin: 0 0 14px; max-width: 74ch; }
.legal ul { margin: 0 0 14px; padding-left: 22px; max-width: 74ch; }
.legal li { margin: 7px 0; }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #fff; }
.draft-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 8px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 106, 77, .1); border: 1px solid rgba(255, 106, 77, .45); }
.draft-note i { color: #ff8a6b; margin-top: 3px; }
.draft-note p { margin: 0; color: #f1d9d2; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); margin: 6px 0 18px; }
.legal table { width: 100%; border-collapse: collapse; min-width: 620px; }
.legal th { text-align: left; padding: 12px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.legal td { padding: 14px 16px; vertical-align: top; font-size: 14px; color: #cfcdd4; border-bottom: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { width: 22%; color: var(--text); }
.soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(244, 169, 22, .16); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
@media (max-width: 767px) {
  .legal table { min-width: 0; }
  .legal thead { display: none; }
  .legal tr, .legal td { display: block; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal tr:last-child { border-bottom: 0; }
  .legal td { border: 0; padding: 6px 16px; width: auto !important; }
  .legal td:nth-child(2)::before, .legal td:nth-child(3)::before { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .legal td:nth-child(2)::before { content: "What we collect"; }
  .legal td:nth-child(3)::before { content: "Why"; }
}
.notice a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; } .notice a:hover { color: #fff; }

/* ---- Weekly-email sign-up ---- */
.signup {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; margin: 36px 0 30px; padding: 28px;
  border-radius: 20px; border: 1px solid rgba(244, 169, 22, .35);
  background: radial-gradient(ellipse at 0% 0%, rgba(244, 169, 22, .16), rgba(244, 169, 22, 0) 60%), var(--panel);
}
.signup h2 { margin: 0 0 8px; font: 800 clamp(18px, 2vw, 24px)/1.2 "Orbitron", sans-serif; display: flex; gap: 12px; align-items: center; }
.signup h2 i { color: var(--gold); }
.signup p { margin: 0; color: #cfcdd4; }
.signup-row { display: flex; gap: 10px; }
.signup-row input[type="email"] {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: 500 15px "Inter", sans-serif;
}
.signup-row input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 169, 22, .18); }
.signup-row .btn { height: 50px; padding: 0 24px; }
.signup-row .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.signup-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.signup-consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.signup-consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.signup-msg { margin: 12px 0 0 !important; min-height: 1.4em; font-weight: 600; font-size: 14px; }
.signup-msg.ok { color: #4fe08a; }
.signup-msg.err { color: #ff8a6b; }

.status-banner { margin: 0 0 8px; padding: 16px 20px; border-radius: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); }
.status-banner[hidden] { display: none; }
.status-banner.ok { border-color: rgba(79, 224, 138, .5); background: rgba(79, 224, 138, .08); color: #b9f5d1; }
.status-banner.warn { border-color: rgba(244, 169, 22, .5); background: rgba(244, 169, 22, .08); color: #ffe2a3; }
.status-banner.err { border-color: rgba(255, 106, 77, .5); background: rgba(255, 106, 77, .08); color: #ffd0c4; }
.nl-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.nl-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 899px) { .signup { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; } }
@media (max-width: 480px) { .signup-row { flex-direction: column; } .signup-row .btn { width: 100%; } }

/* ---- Report this game ---- */
.report-btn { height: 48px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.report-btn:hover, .report-btn:focus-visible { border-color: #ff6a4d; color: #ff8a6b; }
.report-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: auto; }
.report-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px); }
.report-form { padding: 24px; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.report-head h2 { margin: 0; font: 800 20px/1.2 "Orbitron", sans-serif; }
.report-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; cursor: pointer; }
.report-x:hover { border-color: var(--gold); color: var(--gold); }
.report-sub { margin: 0 0 16px; color: #cfcdd4; }
.report-form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.report-form small { color: var(--muted); font-weight: 400; }
.report-form select, .report-form textarea, .report-form input[type="email"] {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: 500 15px "Inter", sans-serif;
}
.report-form textarea { resize: vertical; min-height: 110px; }
.report-form select:focus, .report-form textarea:focus, .report-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 169, 22, .18); }
.report-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.report-note a, .report-msg a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.report-msg { margin: 0 0 12px; min-height: 1.3em; font-weight: 600; font-size: 14px; }
.report-msg.ok { color: #4fe08a; }
.report-msg.err { color: #ff8a6b; }
.report-actions { display: flex; gap: 10px; justify-content: flex-end; }
.report-done { text-align: center; padding: 10px 0 4px; }
.report-done i { font-size: 34px; color: #4fe08a; }
.report-done h2 { margin: 12px 0 8px; font: 800 20px "Orbitron", sans-serif; }
.report-done p { margin: 0 0 18px; color: #cfcdd4; }
@media (max-width: 767px) { .report-btn { flex: 1 1 100%; justify-content: center; } .report-form { padding: 18px; } .report-actions .btn { flex: 1; } }

/* ---- Cookie choices ---- */
.consent-banner {
  position: fixed; left: calc(var(--rail-w) + 16px); right: 16px; bottom: 16px; z-index: 70; display: flex; gap: 20px; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
}
.consent-text { max-width: 74ch; }
.consent-text strong { display: block; margin-bottom: 4px; font: 700 15px "Orbitron", sans-serif; }
.consent-text p { margin: 0; color: #cfcdd4; font-size: 14px; line-height: 1.5; }
.consent-text a, .consent-foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; align-items: center; flex: none; }
.consent-actions .btn { height: 44px; min-width: 96px; }
.consent-link { background: none; border: 0; color: var(--muted); font: 600 14px "Inter", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.consent-link:hover { color: var(--text); }
.has-consent-banner .main { padding-bottom: 150px; }

.consent-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: auto; }
.consent-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.consent-dialog-body { padding: 24px; }
.consent-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.consent-dialog-head h2 { margin: 0; font: 800 20px/1.2 "Orbitron", sans-serif; }
.consent-cat { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.consent-cat b { display: block; margin-bottom: 4px; }
.consent-cat p { margin: 0; color: #cfcdd4; font-size: 14px; line-height: 1.5; }
.consent-ask-text { margin: 0 0 18px; color: #cfcdd4; }
.consent-foot { margin: 12px 0 18px; color: var(--muted); font-size: 13px; }
.consent-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.consent-dialog-actions .btn { flex: 1 1 auto; }

.switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #9b9aa3; transition: transform .15s, background .15s; }
.switch input:checked + span { background: rgba(244, 169, 22, .25); border-color: var(--gold); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--gold); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.linklike:hover { color: var(--gold); }

@media (max-width: 1199px) { .consent-banner { left: calc(var(--rail-w) + 12px); right: 12px; } }
@media (max-width: 899px) {
  .consent-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 12px; bottom: 12px; padding: 16px; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1; }
  .has-consent-banner .main { padding-bottom: 260px; }
}
@media (prefers-reduced-motion: reduce) { .switch span, .switch span::after { transition: none; } }
