/* igame9 — site styles (dark, game-first) */
:root {
  --bg: #0b0d17;
  --bg-2: #0f1222;
  --surface: #151933;
  --surface-2: #1c2144;
  --surface-3: #252b56;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceeff;
  --text-2: #c4c8ea;
  --muted: #8f95c2;
  --accent: #8b6cff;
  --accent-2: #2dd4f0;
  --accent-ink: #ffffff;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji';
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.ig-noscroll,
html.ig-noscroll body {
  overflow: hidden;
}
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(139, 108, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(45, 212, 240, 0.1), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.65 var(--font);
  min-height: 100vh;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 23, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo:hover {
  text-decoration: none;
}
.logo svg {
  width: 30px;
  height: 30px;
}
.logo b {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

/* ---------------- Breadcrumb ---------------- */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 8px;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--muted);
}
.crumbs a {
  color: var(--text-2);
}

/* ---------------- Game hero + player ---------------- */
.game-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.game-head h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.game-head .lede {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 17px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
a.chip:hover {
  border-color: var(--line-2);
  color: var(--text);
  text-decoration: none;
}

.player {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(78vh, 720px);
  min-height: 320px;
  background: #05060c;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.player-frame.is-active {
  box-shadow: inset 0 0 0 2px rgba(139, 108, 255, 0.55);
}
.player-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.4;
}
.player-stage .ig-canvas {
  display: block;
  position: absolute;
  inset: 0;
  touch-action: none;
}
.player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  background-size: cover;
  background-position: center;
}
.player-cover[hidden] {
  display: none;
}
.player-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 12, 0.45);
}
.player-cover button {
  position: relative;
  font: 800 20px var(--font);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(139, 108, 255, 0.45);
  cursor: pointer;
}
.player-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.player-frame.is-mounted .player-loading {
  display: none;
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.player-bar .pb-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-bar .pb-hint {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-bar .pb-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.icon-btn .off {
  display: none;
}
.icon-btn.is-off .on {
  display: none;
}
.icon-btn.is-off .off {
  display: inline;
}

/* Fullscreen: the whole .player (frame + toolbar) goes fullscreen, so the
   toolbar's fullscreen button is always the way out and nothing covers the game. */
.player:fullscreen,
.player.is-fs,
.player.is-pseudo-fs {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.player:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}
.player.is-pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.player:fullscreen .player-frame,
.player.is-fs .player-frame,
.player.is-pseudo-fs .player-frame {
  flex: 1 1 auto;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
  height: auto;
}
.player:-webkit-full-screen .player-frame {
  flex: 1 1 auto;
  max-height: none;
  height: auto;
}
.player-bar {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
  .player-frame {
    aspect-ratio: 4 / 5;
    max-height: 76vh;
  }
  .player-bar .pb-hint {
    display: none;
  }
}
@media (max-width: 720px) and (orientation: landscape) {
  .player-frame {
    aspect-ratio: 16 / 9;
    max-height: 88vh;
  }
}

/* ---------------- Content ---------------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  margin-top: 36px;
}
@media (max-width: 960px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.prose {
  min-width: 0;
  color: var(--text-2);
  font-size: 17px;
}
.prose h2 {
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  scroll-margin-top: 80px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  color: var(--text);
  font-size: 19px;
  margin: 26px 0 8px;
}
.prose p {
  margin: 0 0 14px;
}
.prose strong {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--accent);
}
.prose ol.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.prose ol.steps li {
  position: relative;
  padding: 12px 14px 12px 54px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 10px 0;
  counter-increment: step;
}
.prose ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
kbd {
  display: inline-block;
  font: 600 12px var(--mono);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  margin: 1px 0;
}
.tips li {
  margin: 10px 0;
}
.callout {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(139, 108, 255, 0.12), rgba(45, 212, 240, 0.06));
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
}
.faq details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin: 10px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 16px;
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 22px;
  color: var(--accent-2);
}
.faq details[open] summary::after {
  content: '–';
}
.faq .faq-a {
  padding: 0 16px 14px;
}
.faq .faq-a p:last-child {
  margin-bottom: 0;
}
.disclaimer {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 36px;
}

/* Sidebar */
.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 961px) {
  .side .sticky {
    position: sticky;
    top: 80px;
  }
}
.card-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card-box h2,
.card-box h3,
.card-box .box-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text);
}
.card-box .box-title {
  font-weight: 700;
}
.facts-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 14px;
  background: var(--surface-2);
}
.facts-src {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 14px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  color: var(--text-2);
  font-weight: 600;
}
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mini-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
.mini-list a:hover {
  color: var(--text);
  text-decoration: none;
}
.mini-list img {
  width: 72px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--surface-2);
}
.mini-list small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}
.toc li {
  margin: 4px 0;
}
.toc a {
  color: var(--text-2);
}

/* ---------------- Game cards ---------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 48px 0 6px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.01em;
}
.section-head a {
  font-size: 14px;
  font-weight: 600;
}
.section-intro {
  color: var(--text-2);
  margin: 0 0 18px;
  max-width: 780px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.card .thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.card .card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card .card-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}
.card .card-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(5, 6, 12, 0.72);
  color: #fff;
}

/* ---------------- Hub ---------------- */
.hub-hero {
  padding: 48px 0 8px;
  text-align: center;
}
.hub-hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto 14px;
  max-width: 900px;
}
.hub-hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hub-hero p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 26px;
}
.search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 18px;
}
.search input {
  width: 100%;
  font: 16px var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 14px 20px 14px 48px;
}
.search input::placeholder {
  color: var(--muted);
}
.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.filters button {
  font: 600 14px var(--font);
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.filters button[aria-pressed='true'] {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.no-results {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.stats b {
  color: var(--text);
  font-size: 20px;
  display: block;
}
.section-head .section-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hub-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 8px 0 18px;
}
.hub-why img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .hub-why {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hub-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.hub-about .card-box p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.foot-brand p {
  margin: 0;
  flex: 1 1 320px;
}
/* One horizontal row per category: label on the left, game links flowing to the right. */
.foot-rows {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}
.foot-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}
.site-footer h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin: 0;
  white-space: nowrap;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
@media (max-width: 720px) {
  .foot-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--text);
}
.foot-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* ---------------- In-game UI kit (.ig-*) ----------------
   Shared by all engines so overlays/buttons look consistent. */
.ig-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 6, 14, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: igFade 0.18s ease;
}
.ig-panel {
  width: min(420px, 100%);
  max-height: 100%;
  overflow: auto;
  text-align: center;
  background: rgba(21, 25, 51, 0.94);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.ig-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #fff;
}
.ig-sub {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 14px;
}
.ig-body {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 14px;
}
.ig-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.ig-btn {
  font: 800 16px var(--font);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(139, 108, 255, 0.35);
  touch-action: manipulation;
}
.ig-btn:hover {
  filter: brightness(1.08);
}
.ig-btn:active {
  transform: translateY(1px);
}
.ig-btn.secondary {
  background: var(--surface-3);
  box-shadow: none;
}
.ig-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.ig-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 4;
}
.ig-pill {
  pointer-events: auto;
  font: 800 14px var(--font);
  color: #fff;
  background: rgba(5, 6, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.ig-toast {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 12;
  font: 800 16px var(--font);
  color: #fff;
  background: rgba(5, 6, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 16px;
  pointer-events: none;
  white-space: nowrap;
  animation: igPop 0.2s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ig-toast.out {
  opacity: 0;
  transform: translate(-50%, -10px);
}
.ig-kbd {
  display: inline-block;
  font: 700 12px var(--mono);
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
@keyframes igFade {
  from {
    opacity: 0;
  }
}
@keyframes igPop {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.96);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .ig-overlay,
  .ig-toast {
    transition: none;
    animation: none;
  }
}
