/* Emkot Games - "Arcade Paper" design
   Cream paper, ink outlines, hard offset shadows and one bright colour per category. */

:root {
  --paper: #fff6ea;
  --paper-2: #ffeedd;
  --card: #ffffff;
  --ink: #17130f;
  --ink-2: #4b4339;
  --muted: #7a6f63;
  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --radius: 16px;
  --radius-sm: 10px;

  --red: #ff5a4e;
  --yellow: #ffc93c;
  --mint: #36d699;
  --blue: #4d9dff;
  --purple: #9b6bff;
  --pink: #ff7ac6;
  --orange: #ff9a3c;
  --teal: #20c4c4;
  --lime: #a6e22e;
  --sand: #e8c39e;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(23, 19, 15, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* category colours */
[data-cat="action"] { --cat: var(--red); }
[data-cat="arcade"] { --cat: var(--yellow); }
[data-cat="puzzle"] { --cat: var(--purple); }
[data-cat="racing"] { --cat: var(--orange); }
[data-cat="sports"] { --cat: var(--mint); }
[data-cat="shooting"] { --cat: var(--blue); }
[data-cat="kids"] { --cat: var(--lime); }
[data-cat="girls"] { --cat: var(--pink); }
[data-cat="board"] { --cat: var(--sand); }
[data-cat="simulation"] { --cat: var(--teal); }

/* ------------------------------------------------------------ header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg { width: 44px; height: 44px; flex-shrink: 0; transition: transform 0.2s; }
.brand:hover svg { transform: rotate(8deg) scale(1.05); }
.brand b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.brand small {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--yellow);
  border: var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  transform: rotate(-4deg);
}
.top-search {
  flex: 1;
  max-width: 460px;
  margin-left: auto;
  position: relative;
}
.top-search input,
.big-search input {
  width: 100%;
  border: var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 10px 16px 10px 42px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow 0.15s, transform 0.15s;
}
.top-search input:focus,
.big-search input:focus { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.top-search svg,
.big-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
.nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.nav a:hover { border-color: var(--ink); background: var(--card); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { margin-left: auto; }
  .nav a { padding: 6px 10px; font-size: 0.92rem; }
  .brand small { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero { padding: 40px 0 28px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--card);
  border: var(--line);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  box-shadow: 2px 2px 0 var(--ink);
}
.eyebrow i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint);
  border: var(--line);
  display: inline-grid; place-items: center;
  font-style: normal; font-size: 0.7rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 16px;
}
.hero h1 .mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: -4px; right: -6px; bottom: 6%;
  height: 38%;
  background: var(--yellow);
  border-radius: 6px;
  z-index: -1;
  transform: rotate(-1.5deg);
}
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34rem; margin: 0 0 22px; }
.big-search { position: relative; max-width: 520px; }
.big-search input { padding: 15px 20px 15px 48px; font-size: 1.05rem; box-shadow: var(--shadow); }
.big-search svg { left: 18px; width: 20px; height: 20px; }
.hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-stats div { font-weight: 600; color: var(--ink-2); font-size: 0.92rem; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.feature .card-big { grid-column: 1 / -1; }
.card-big {
  display: block;
  position: relative;
  text-decoration: none;
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.18s;
}
.card-big:hover { transform: rotate(0deg) translateY(-3px); }
.card-big img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--line); }
.card-big .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.card-big h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.card-big .sticker {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-3deg);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--card); }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--yellow); }
.card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-decoration: none;
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.card-mini:nth-child(2) { transform: rotate(1.5deg); }
.card-mini:nth-child(3) { transform: rotate(-1deg); }
.card-mini:hover { transform: translateY(-3px); }
.card-mini img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: var(--line); }
.card-mini b { display: block; font-size: 0.95rem; line-height: 1.2; }
.card-mini span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 26px; }
}

/* ------------------------------------------------------------ sections */
.section { padding: 26px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-head h2 em {
  font-style: normal;
  display: inline-block;
  background: var(--cat, var(--mint));
  border: var(--line);
  border-radius: 10px;
  padding: 0 10px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.section-head p { margin: 6px 0 0; color: var(--muted); font-weight: 500; }
.section-head a.more { font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--yellow); white-space: nowrap; }

/* category tiles */
.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 14px;
  text-decoration: none;
  background: var(--cat);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat-tile:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.cat-tile .ic { font-size: 1.9rem; line-height: 1; }
.cat-tile b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; }
.cat-tile small { font-weight: 700; font-size: 0.8rem; opacity: 0.75; }
.cat-tile::after {
  content: "";
  position: absolute;
  right: -18px; bottom: -18px;
  width: 70px; height: 70px;
  border: var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: repeat(2, 1fr); } .cat-tile { min-height: 96px; } }

/* rail (horizontal scroll) */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 6px 14px 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 64px) / 5); } }

/* game card */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gcard:hover,
.gcard:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); outline: none; }
.gcard .thumb { position: relative; border-bottom: var(--line); background: var(--paper-2); }
.gcard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gcard .play {
  position: absolute;
  right: 10px; bottom: -18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  border: var(--line);
  display: grid; place-items: center;
  box-shadow: 2px 2px 0 var(--ink);
  transform: scale(0.7);
  opacity: 0;
  transition: 0.15s;
}
.gcard:hover .play { transform: scale(1); opacity: 1; }
.gcard .body { padding: 12px 12px 12px; }
.gcard b { display: block; font-weight: 800; font-size: 0.98rem; line-height: 1.25; letter-spacing: -0.01em; }
.pill {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cat);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 1px 8px;
}
.gcard.is-hidden { display: none; }

/* originals (existing 14 games) */
.originals {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.orig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s;
}
.orig:hover { transform: translateY(-3px) rotate(-1deg); }
.orig span { font-size: 1.8rem; }
@media (max-width: 1000px) { .originals { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .originals { grid-template-columns: repeat(3, 1fr); } }

/* promo strip */
.strip {
  margin: 30px 0 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 6px 6px 0 var(--red);
}
.strip h3 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
.strip p { margin: 4px 0 0; opacity: 0.8; }

/* ------------------------------------------------------------ games page */
.page-head { padding: 34px 0 10px; }
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
.page-head p { color: var(--ink-2); margin: 10px 0 0; font-size: 1.05rem; }
.filters {
  position: sticky;
  top: 68px;
  z-index: 20;
  background: var(--paper);
  padding: 14px 0;
  border-bottom: 2px dashed rgba(23, 19, 15, 0.25);
  margin-bottom: 22px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 6px 2px; scrollbar-width: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--ink)); border: 1.5px solid var(--ink); }
.chip small { opacity: 0.6; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--cat, var(--ink)); color: var(--ink); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.chip[data-cat="all"][aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.result-line { margin: 10px 0 0; font-weight: 600; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .filters { top: 112px; } }

/* ------------------------------------------------------------ game page */
.crumbs { font-size: 0.88rem; font-weight: 600; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; border-bottom: 2px solid var(--yellow); color: var(--ink); }
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 16px 0 30px;
  align-items: start;
}
@media (max-width: 1000px) { .game-layout { grid-template-columns: 1fr; } }
.game-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.game-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.game-title .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.78rem;
  font-weight: 800;
  border: var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--card);
}
.tag.cat { background: var(--cat); }
.stage-frame {
  background: var(--ink);
  border: var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 6px 6px 0 var(--cat, var(--yellow));
}
.stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  margin: 0 auto;
}
.stage[data-orient="P"] { aspect-ratio: 9 / 16; max-width: calc(74vh * 9 / 16); }
.stage[data-orient="S"] { aspect-ratio: 1; max-width: 74vh; }
.stage .cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}
.stage .cover::before { content: ""; position: absolute; inset: 0; background: rgba(23, 19, 15, 0.55); backdrop-filter: blur(6px); }
.stage .cover > div { position: relative; text-align: center; color: #fff; padding: 16px; }
.stage .cover img {
  width: min(260px, 60%);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--cat, var(--yellow));
  transform: rotate(-2deg);
}
.stage .cover .btn { font-size: 1.15rem; padding: 13px 30px; box-shadow: 4px 4px 0 #000; }
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 2px;
  color: var(--paper);
  flex-wrap: wrap;
}
.stage-bar .left { font-weight: 700; font-size: 0.9rem; opacity: 0.85; }
.stage-bar .right { display: flex; gap: 8px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(255, 246, 234, 0.4);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--paper); background: rgba(255, 246, 234, 0.08); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.box {
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.box h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.box h2 .num {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: var(--line);
  border-radius: 9px;
  background: var(--cat, var(--yellow));
  font-size: 0.95rem;
}
.box p { margin: 0 0 10px; color: var(--ink-2); }
.facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1.5px dashed rgba(23, 19, 15, 0.2); padding-bottom: 6px; font-size: 0.93rem; }
.facts li span { color: var(--muted); font-weight: 600; }
.facts li b { text-align: right; }

.side h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.side .list { display: grid; gap: 12px; }
.side .card-mini { transform: none !important; box-shadow: 3px 3px 0 var(--ink); }
.side .card-mini:hover { transform: translate(-1px, -1px) !important; }
@media (min-width: 1001px) { .side { position: sticky; top: 90px; } }
@media (max-width: 1000px) { .side .list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .side .list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.foot {
  margin-top: 40px;
  border-top: var(--line);
  background: var(--yellow);
}
.foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 26px;
}
.foot h4 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.05rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot p { margin: 10px 0 0; font-weight: 500; max-width: 26rem; }
.foot .bottom { border-top: var(--line); font-size: 0.86rem; font-weight: 600; padding: 12px 0; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > div:first-child { grid-column: 1 / -1; } }


/* ------------------------------------------------------------ phone fixes */
@media (max-width: 760px) {
  .nav li:first-child { display: none; }            /* the logo already goes home */
  body[data-page="home"] .top-search { display: none; } /* home has the big search */
  .top .wrap { flex-wrap: nowrap; }
  body:not([data-page="home"]) .top .wrap { flex-wrap: wrap; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .stage,
  .stage[data-orient] { aspect-ratio: auto; max-width: none; height: min(68vh, 560px); }
  .stage[data-orient="L"] { height: min(46vh, 380px); }
  .stage .cover img { width: min(170px, 46%); margin-bottom: 12px; }
  .stage .cover .btn { font-size: 1.05rem; padding: 11px 24px; }
  .hero h1 { margin-top: 14px; }
}

/* ------------------------------------------------------------ ticker + ranks */
.ticker {
  margin: 8px 0 18px;
  background: var(--ink);
  color: var(--paper);
  border-top: var(--line);
  border-bottom: var(--line);
  transform: rotate(-1.2deg);
  overflow: hidden;
  white-space: nowrap;
}
.ticker .track {
  display: inline-flex;
  gap: 34px;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  animation: ticker 36s linear infinite;
}
.ticker .track span { display: inline-flex; align-items: center; gap: 34px; }
.ticker .track i { font-style: normal; color: var(--yellow); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

.gcard .rank {
  position: absolute;
  left: 10px;
  top: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
}

/* ------------------------------------------------------------ live game stage (play.js) */
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.stage.is-loading .cover .btn { opacity: 0.7; pointer-events: none; }
.stage.is-playing .cover { display: none; }
.stage:fullscreen { max-width: none; max-height: none; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.stage:-webkit-full-screen { max-width: none; max-height: none; width: 100%; height: 100%; border-radius: 0; }
.stage.is-pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 10000;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
}
.exit-fs {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: rgba(23, 19, 15, 0.7);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.stage.is-pseudo-fs .exit-fs { display: block; }
html.arcade-noscroll, html.arcade-noscroll body { overflow: hidden; }
.icon-btn[disabled] { opacity: 0.45; cursor: default; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ older pages in the new look */
body.emkot-skin {
  background-color: var(--paper) !important;
  background-image: radial-gradient(rgba(23, 19, 15, 0.07) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  display: block !important;
  min-height: 100vh;
}
body.emkot-skin > main { padding: 10px 0 30px; }
body.emkot-skin > main .container { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
body.emkot-skin main h1,
body.emkot-skin main h2,
body.emkot-skin main h3,
body.emkot-skin main h4 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
body.emkot-skin main h1 { font-size: clamp(2rem, 5vw, 3rem) !important; line-height: 1.05; }
body.emkot-skin main p,
body.emkot-skin main li,
body.emkot-skin main dd,
body.emkot-skin main td { color: var(--ink-2) !important; }
body.emkot-skin main a:not(.btn):not(.mail-btn):not(.game-control) { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

body.emkot-skin .about-section,
body.emkot-skin .privacy-policy,
body.emkot-skin .terms-section,
body.emkot-skin .policy-section,
body.emkot-skin .disclaimer-section,
body.emkot-skin .faq-section,

body.emkot-skin .contact-simple,
body.emkot-skin .game-panel,
body.emkot-skin .faq-item,
body.emkot-skin .value-item,
body.emkot-skin .team-member {
  background: var(--card) !important;
  border: var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: var(--ink) !important;
}
body.emkot-skin .faq-section { padding: 22px; }
body.emkot-skin .faq-item { box-shadow: 3px 3px 0 var(--ink) !important; margin-bottom: 14px; padding: 14px 18px; }
body.emkot-skin .faq-question { color: var(--ink) !important; font-weight: 800 !important; }
body.emkot-skin .contact-hero { background: none !important; border: 0 !important; box-shadow: none !important; }
body.emkot-skin .contact-hero * { color: var(--ink) !important; }

body.emkot-skin .game-page-hero { text-align: left !important; max-width: none !important; padding: 26px 0 14px !important; }
body.emkot-skin .game-page-title { color: var(--ink) !important; }
body.emkot-skin .game-page-lead { color: var(--ink-2) !important; }
body.emkot-skin .game-play {
  background: var(--ink) !important;
  border: var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 6px 6px 0 var(--yellow) !important;
  color: var(--paper) !important;
}
body.emkot-skin .game-play p,
body.emkot-skin .game-play span,
body.emkot-skin .game-play label,
body.emkot-skin .game-play div { color: var(--paper); }
body.emkot-skin .game-control,
body.emkot-skin .mail-btn,
body.emkot-skin .btn-primary,
body.emkot-skin .btn-secondary {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  border: var(--line) !important;
  border-radius: 999px !important;
  box-shadow: 3px 3px 0 #000 !important;
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
}
body.emkot-skin .game-control:hover { transform: translate(-1px, -1px); }
body.emkot-skin .game-section-title { border-bottom: 2px dashed rgba(23, 19, 15, 0.2) !important; }
body.emkot-skin .game-more-grid a {
  background: var(--card) !important;
  border: var(--line) !important;
  color: var(--ink) !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
}
body.emkot-skin header.top { box-shadow: none !important; background: var(--paper) !important; border-bottom: var(--line) !important; }
body.emkot-skin .faq-answer,
body.emkot-skin .faq-answer *,
body.emkot-skin .about-content,
body.emkot-skin .about-content *:not(h1):not(h2):not(h3) { color: var(--ink-2) !important; }
body.emkot-skin .game-play p,
body.emkot-skin .game-play span,
body.emkot-skin .game-play label,
body.emkot-skin .game-play-info p { color: var(--paper) !important; }
body.emkot-skin .game-play .game-control { color: var(--ink) !important; }
