:root {
  color-scheme: dark;
  --page: #0e1017;
  --surface: #151822;
  --line: #2a2d3b;
  --text: #f6f5fb;
  --muted: #b1b2c2;
  --acid: #d7ff70;
  --violet: #ad91ff;
  --frame: 1192px;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.frame { width: min(var(--frame), calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 4; padding: 10px 16px; background: var(--acid); color: #131810; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { border-bottom: 1px solid #232632; background: #10121a; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 20px; font-weight: 800; letter-spacing: -.055em; }
.brand > span:last-child > span { color: var(--acid); }
.brand-mark { display: grid; position: relative; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--acid); }
.brand-mark::before, .brand-mark::after, .brand-mark i { grid-area: 1 / 1; display: block; content: ""; width: 13px; height: 13px; border: 2px solid #20291b; border-radius: 3px; transform: rotate(45deg); }
.brand-mark::before { margin-top: 6px; opacity: .55; }
.brand-mark::after { margin-top: -5px; background: var(--acid); }
.brand-mark i { z-index: 1; width: 4px; height: 4px; background: #20291b; margin-top: -5px; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); color: var(--muted); font-size: .9rem; font-weight: 600; }
.primary-nav a { display: grid; place-items: center; white-space: nowrap; min-height: 71px; border-bottom: 2px solid transparent; padding-top: 2px; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--text); }
.primary-nav a[aria-current] { border-color: var(--acid); }
.nav-jump { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; color: var(--muted); font-size: .85rem; }
.nav-jump:hover { border-color: var(--violet); color: var(--text); }
.search-icon { width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; display: inline-block; flex: none; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -3px; background: currentColor; width: 6px; height: 1.6px; transform: rotate(46deg); border-radius: 1px; }
.menu-toggle { display: none; }

.hero { isolation: isolate; display: grid; min-height: 390px; align-items: center; position: relative; overflow: hidden; margin-top: 32px; border-radius: 22px; border: 1px solid #343044; background: radial-gradient(ellipse at 78% 45%, #261745 0, #171328 37%, #151420 65%, #13131e 100%); }
.hero-art { position: absolute; inset: 0 0 0 38%; z-index: -1; background: linear-gradient(90deg, #151420 0%, transparent 22%), url('/_a/hero.442de0e9a4.jpg') center right / cover no-repeat; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, #151420 0%, #151420 25%, #151420d9 38%, transparent 62%); }
.hero-copy { padding: 38px 56px 36px; width: min(620px, 100%); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--acid); text-transform: uppercase; font: 650 .77rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .16em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 17px #d7ff7078; }
h1,h2,p { margin-top: 0; }
.hero h1 { font-weight: 850; font-size: clamp(3.5rem,5.7vw,5.75rem); line-height: .96; letter-spacing: -.075em; margin: 0 0 20px; }
.hero h1 span { color: var(--acid); }
.hero-description { color: #d2d1df; font-size: 1rem; line-height: 1.6; max-width: 472px; margin: 0 0 22px; }
.search { display: flex; align-items: center; gap: 12px; padding: 6px; padding-left: 17px; background: #10101a; border: 1px solid #49435d; border-radius: 11px; color: #bcb4d2; width: 100%; max-width: 488px; }
.search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 2px #ad91ff25; }
.search input { border: 0; color: var(--text); background: transparent; outline: 0; min-width: 0; width: 100%; padding-block: 6px; }
.search input::placeholder { color: #aaa8be; }
.search button, .button { border: 0; background: var(--acid); color: #1b2513; padding: 10px 16px; border-radius: 7px; font-size: .88rem; font-weight: 800; flex: none; white-space: nowrap; }
.search button:hover, .button:hover { background: #e6ffa7; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 17px; color: #aaa5bc; font-size: .79rem; font-weight: 650; }
.quick-links a { color: #d4d0e6; border: 1px solid #3b354d; border-radius: 6px; padding: 3px 8px; }
.quick-links a:hover { border-color: var(--violet); color: var(--text); }

.section { margin-top: 37px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 13px; }
.section h2, .section h1#directory-title, .detail-card h2 { margin: 0; font-size: 1.42rem; font-weight: 780; letter-spacing: -.035em; }
.section-head > span, .text-link { color: var(--muted); font-size: .86rem; }
.text-link:hover { color: var(--acid); }
.platform-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.tone-cyan { --tone: #78e7dd; --tint: #163d3d; }
.tone-coral { --tone: #ff9aa1; --tint: #492c3b; }
.tone-blue { --tone: #a3bfff; --tint: #28385e; }
.tone-amber { --tone: #ffd487; --tint: #4e3727; }
.tone-violet, .tone-other { --tone: #c4aaff; --tint: #392c56; }
.platform-tile { display: flex; align-items: center; gap: 11px; padding: 13px 11px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: border-color .18s, transform .18s; }
.platform-tile:hover, .game-row:hover { transform: translateY(-2px); border-color: var(--tone, var(--violet)); }
.platform-icon, .row-icon { display: grid; place-items: center; flex: none; border-radius: 9px; width: 40px; height: 40px; font-size: 1.35rem; color: var(--tone); background: var(--tint); font-weight: 800; }
.platform-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.platform-text strong { font-size: .94rem; }
.platform-text small { color: var(--muted); font-size: .77rem; line-height: 1.3; }
.platform-count { color: var(--muted); font: 650 .77rem ui-monospace, monospace; }
.featured-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.feature { isolation: isolate; position: relative; color: var(--text); min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border: 1px solid #3b3448; border-radius: 13px; overflow: hidden; background: radial-gradient(ellipse at 80% 30%, var(--tint) 0%, #1b1927 60%, #181822 100%); transition: transform .18s,border-color .18s; }
.feature:hover { border-color: var(--tone); transform: translateY(-2px); }
.feature > strong { font-size: 1.13rem; letter-spacing: -.045em; }
.feature > span:last-child { color: #c0bcd0; font-size: .86rem; }
.feature-platform { position: absolute; left: 16px; top: 15px; color: var(--tone); font: 600 .71rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.feature-symbol, .game-art { position: absolute; top: -21px; right: -16px; width: 123px; height: 123px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tone) 27%, transparent); display: grid; place-items: center; z-index: -1; }
.feature-symbol::before, .feature-symbol::after, .feature-symbol i, .game-art::before, .game-art i { display: block; content: ""; grid-area: 1/1; }
.feature-symbol::before, .game-art::before { width: 67%; height: 67%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--tone) 70%, transparent); }
.feature-symbol::after { width: 46%; height: 46%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tone) 48%, transparent); }
.feature-symbol i, .game-art i { width: 30%; height: 30%; border: 1px solid var(--tone); border-radius: 5px; transform: rotate(45deg); box-shadow: 0 2px 24px color-mix(in srgb,var(--tone) 36%,transparent); background: linear-gradient(135deg, var(--tone),var(--tint)); opacity: .88; }

.inner-hero { margin-top: 34px; padding: 32px 36px; background: radial-gradient(ellipse at 80% 20%, var(--tint,#24203a), #171922 65%); border: 1px solid var(--line); border-radius: 16px; }
.inner-hero h1, .detail-title h1 { font-size: clamp(2.35rem,5vw,3.9rem); letter-spacing: -.07em; line-height: 1.07; margin: 0 0 11px; }
.inner-hero p:last-child, .detail-title p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; max-width: 680px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 15px 0; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 7px; font-size: .84rem; font-weight: 620; color: var(--muted); }
.chip:hover, .chip[aria-current="true"] { border-color: #6f7854; color: var(--acid); background: #252b20; }
.sort { display: flex; align-items: center; white-space: nowrap; gap: 8px; color: var(--muted); font-size: .82rem; }
.sort select { color: var(--text); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 6px 10px; }
.library-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.game-row { border: 1px solid #262938; border-radius: 10px; background: #141721; transition: transform .18s,border-color .18s; min-width: 0; }
.game-row a { min-height: 67px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; }
.row-icon { width: 36px; height: 36px; font-size: .93rem; }
.row-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.row-text strong { font-size: .95rem; }
.row-text small { color: var(--muted); font-size: .82rem; }
.status { display: inline-block; flex: none; color: #d0cde3; font: 650 .73rem ui-monospace,monospace; border-radius: 5px; padding: 5px 7px; background: #272738; }
.status.ready { color: #d7ff91; background: #253222; }
.empty, .empty-copy { color: var(--muted); padding: 17px 0; margin: 0; }
.more, .copy { display: block; padding: 9px 15px; border: 1px solid #4a465d; color: var(--text); background: #252336; font-weight: 700; border-radius: 7px; font-size: .86rem; }
.more { margin: 16px auto 0; }
.more:hover, .copy:hover { background: #35314b; border-color: var(--violet); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .83rem; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--acid); }
.detail-heading { margin-top: 28px; border-radius: 16px; padding: 25px 28px 29px; border: 1px solid var(--line); background: radial-gradient(ellipse at 82% 30%, var(--tint), #171922 64%); }
.detail-title { display: flex; align-items: center; gap: 23px; }
.game-art { isolation: isolate; position: relative; inset: auto; z-index: 0; width: 110px; height: 110px; flex: none; border-radius: 14px; background: radial-gradient(var(--tint),#1a1a27); }
.detail-title .chips { margin-top: 13px; }
.detail-title .eyebrow { color: var(--tone); }
.detail-grid { display: grid; grid-template-columns: 1fr minmax(220px, .32fr); gap: 18px; align-items: start; margin-top: 18px; }
.detail-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 20px; margin-bottom: 14px; }
.detail-card h2 { margin-bottom: 11px; }
.detail-card p:last-child { margin-bottom: 0; }
.detail-card ol { margin-block: 10px 14px; padding-left: 1.3rem; }
.detail-card ol li { padding-left: .3rem; margin-bottom: .45rem; }
.detail-card a:not(.button) { color: #c8b8ff; text-decoration: underline; text-underline-offset: 3px; }
.detail-card a:hover { color: var(--acid); }
.detail-card .button { display: inline-block; margin-top: 4px; max-width: 100%; white-space: normal; }
.related a { display: block; border-bottom: 1px solid var(--line); padding: 7px 0; font-size: .89rem; }
.related a:last-child { border: 0; }
.related h2 { font-size: 1.15rem; }
.code-row { background: #10131c; border: 1px dashed #544960; border-radius: 10px; padding: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.code-row > div { min-width: 0; }
.code-row code { display: block; color: var(--acid); font-size: 1.22rem; font-weight: 800; margin: 5px 0; overflow-wrap: anywhere; }
.code-row strong, .code-row small { display: block; }
.code-row small { margin-top: 3px; color: var(--muted); }
.copy { flex: none; }
.about { margin-top: 16px; }
.about dt { font-weight: 750; }
.about dd { color: var(--muted); margin: 0 0 13px; }
.site-footer { margin-top: 55px; border-top: 1px solid var(--line); padding: 27px 0; background: #10121a; }
.footer-row { display: flex; gap: 20px; justify-content: space-between; }
.footer-row p { color: var(--muted); font-size: .87rem; margin: 8px 0 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: .87rem; }
.footer-row nav a:hover { color: var(--acid); }
#toast { position: fixed; z-index: 3; right: 20px; bottom: 20px; background: var(--acid); color: #18230e; font-weight: 750; padding: 10px 15px; border-radius: 8px; box-shadow: 0 5px 22px #0008; }

@media(max-width:1100px) {
  .header-row { gap: 17px; }
  .primary-nav { gap: 15px; }
  .nav-jump > span:last-child { display: none; }
  .platform-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .frame { width: calc(100% - 36px); }
  .site-header { position: relative; z-index: 2; }
  .header-row { min-height: 59px; gap: 10px; }
  .menu-toggle { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 7px 10px; font-size: .82rem; color: var(--muted); }
  .primary-nav { display: none; position: absolute; background: #181b25; border: 1px solid var(--line); box-shadow: 0 8px 26px #0008; top: 100%; right: 18px; left: 18px; flex-wrap: wrap; gap: 0; border-radius: 10px; padding: 7px; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 8px 11px; min-height: 38px; }
  .hero { min-height: 365px; margin-top: 20px; border-radius: 15px; }
  .hero-art { inset: 0 0 26% 17%; opacity: .71; background-position: right top; }
  .hero::after { background: linear-gradient(90deg,#151420 0%,#151420cd 33%,#15142031 83%), linear-gradient(0deg,#151420 0%,#15142093 44%,transparent 75%); }
  .hero-copy { padding: 40px 20px 27px; }
  .hero-description { max-width: 370px; }
  .section { margin-top: 25px; }
  .section h2 { font-size: 1.25rem; }
  .platform-grid, .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .platform-tile { padding: 10px 8px; gap: 7px; }
  .platform-icon { width: 32px; height: 32px; font-size: 1.12rem; }
  .feature { min-height: 118px; padding: 13px; }
  .feature-platform { left: 12px; top: 12px; }
  .feature-symbol { right: -33px; }
  .library-list { grid-template-columns: 1fr; }
  .inner-hero, .detail-heading { padding: 20px; margin-top: 19px; }
  .detail-title { align-items: flex-start; gap: 10px; }
  .game-art { display: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 0; }
  .detail-card { padding: 15px; }
  .footer-row { flex-direction: column; }
}
@media(max-width:440px) {
  .hero h1 { font-size: 3.25rem; }
  .hero-description { font-size: .95rem; }
  .search { gap: 8px; padding-left: 12px; }
  .search button { padding-inline: 9px; }
  .search input { font-size: .85rem; }
  .platform-count { font-size: .68rem; }
  .platform-text small { font-size: .7rem; }
  .status { font-size: .69rem; }
  .library-toolbar { align-items: flex-start; flex-direction: column; }
  .code-row { align-items: flex-start; flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Code shortcuts in the first viewport. */
.hero { min-height: 250px; }
.hero-copy { padding-block: 35px; }
.hero h1 { max-width: 485px; font-size: clamp(2.75rem, 5vw, 5.25rem); }
.hero-description { margin-bottom: 18px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.guide-button { color: var(--text); background: #252236; border: 1px solid #4d4660; }
.guide-button:hover { color: var(--text); background: #302b45; }
.latest-codes { margin-top: 25px; }
.code-shortcut-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.code-shortcut { display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 140px; padding: 14px 15px 13px; border: 1px solid #39354b; background: radial-gradient(ellipse at 97% 4%,#2b2341,var(--surface) 66%); border-radius: 12px; transition: border-color .18s, transform .18s; }
.code-shortcut:hover { border-color: #a290c4; transform: translateY(-2px); }
.code-shortcut-top { display: flex; justify-content: space-between; color: #c7b8da; font-size: .76rem; gap: 9px; }
.code-shortcut strong { font-size: 1.04rem; line-height: 1.26; }
.code-shortcut code { color: var(--acid); overflow-wrap: anywhere; font-weight: 700; font-size: .88rem; margin-top: 2px; }
.code-shortcut-link { color: #dfd2ff; font-size: .81rem; font-weight: 720; }
.topic-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.topic-link { display: flex; align-items: center; justify-content: space-between; min-height: 63px; gap: 10px; padding: 10px 13px; border-radius: 9px; background: #141721; border: 1px solid var(--line); }
.topic-link:hover { border-color: var(--violet); }
.topic-link strong { font-size: .94rem; }
.topic-link span { color: var(--muted); background: #282638; padding: 4px 7px; border-radius: 5px; font-size: .73rem; }
.topic-heading .detail-title h1 { font-size: clamp(2.15rem,4.3vw,3.5rem); }
.topic-heading .detail-title p:not(.eyebrow) { max-width: 850px; }
.code-disclosure { color: var(--muted); font-size: .93rem; }
#latest-codes, #redeem-codes { scroll-margin-top: 16px; }

@media(max-width:1030px) {
  .primary-nav { gap: 11px; }
  .header-row { gap: 12px; }
}
@media(max-width:850px) {
  .code-shortcut-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .hero { min-height: 242px; }
  .hero-copy { padding: 26px 20px 22px; }
  .hero-art { inset: 0 0 0 23%; }
  .hero h1 { font-size: clamp(2.55rem,9vw,3.45rem); }
  .code-shortcut-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .code-shortcut { padding: 11px 10px; min-height: 122px; }
  .topic-list { grid-template-columns: 1fr; }
}

/* Game index and compact redemption landing pages. */
.home-actions { margin-top: 13px; gap: 10px 18px; }
.home-actions .text-link { color: #d9cbed; text-underline-offset: 3px; }
.home-actions .text-link:hover { text-decoration: underline; }
#browse-platforms, #directory { scroll-margin-top: 16px; }
.latest-codes .code-shortcut { min-height: 108px; }
.code-heading { margin-top: 19px; padding-block: 16px 19px; }
.code-heading .crumb { margin-bottom: 8px; }
.code-heading .detail-title h1 { font-size: clamp(1.9rem,4.4vw,3.25rem); margin-bottom: 0; }
.code-heading .detail-title .chips { margin-top: 8px; }
.code-panel { padding-block: 15px; }
.code-panel .code-disclosure { margin: 13px 0 0; }
.guide-article { padding-block: 21px; }
.guide-article p, .guide-article li { max-width: 68ch; line-height: 1.65; }
.guide-article h3 { margin: 19px 0 5px; font-size: 1.08rem; }
.guide-article section + section { margin-top: 16px; }

@media(max-width:760px) {
  .code-heading { margin-top: 12px; padding: 14px; }
  .code-heading .detail-title h1 { font-size: clamp(1.75rem,6vw,2.4rem); }
  .code-heading + .detail-grid { margin-top: 9px; }
}
@media(max-width:440px) {
  .code-panel .code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 10px; }
  .code-panel .copy { padding-inline: 8px; white-space: nowrap; }
}

/* ==================== HOMEPAGE VISUAL MEDIA UPGRADE ==================== */
.live-ticker {
  display: flex; align-items: center; overflow: hidden; height: 40px;
  border-bottom: 1px solid #232632;
  background: linear-gradient(90deg, #121725, #1b1730 50%, #161a24);
}
.ticker-badge {
  flex: none; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 16px; height: 100%; background: #0e1017; border-right: 1px solid #232632;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acid);
}
.ticker-track {
  display: flex; gap: 12px; padding-left: 16px; white-space: nowrap;
  animation: gcm-marquee 36s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes gcm-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 999px;
  background: #171b27; border: 1px solid #2e3245; color: var(--text); font-size: .79rem;
  transition: border-color .18s, transform .15s;
}
.ticker-chip:hover { border-color: var(--acid); transform: translateY(-1px); }
.ticker-chip code { color: var(--acid); font-weight: 800; font-size: .78rem; }
.ticker-chip small { color: var(--muted); font-size: .72rem; }

.hero-v2 { margin-top: 24px; display: grid; grid-template-columns: 1.62fr 1fr; gap: 18px; align-items: stretch; }
.hero-spotlight {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 410px;
  border: 1px solid #35384d; background: #10131e;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: gcm-kenburns 16s ease-in-out infinite alternate;
}
@keyframes gcm-kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.08) translate(-1.5%, -1%); } }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,16,23,.18) 0%, rgba(14,16,23,.54) 46%, rgba(14,16,23,.96) 100%);
}
.hero-badges {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgba(14,16,23,.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); font-size: .73rem; font-weight: 750; color: #f6f5fb;
}
.hero-pill .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5d73; animation: gcm-blink 1.2s infinite; }
@keyframes gcm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hero-body { position: relative; z-index: 2; padding: 24px; }
.hero-body [data-hero-title] { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.08; letter-spacing: -.04em; margin: 0 0 10px; }
.hero-body p { color: #d2d1df; font-size: .95rem; max-width: 54ch; margin: 0 0 16px; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-code-box {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 7px 6px 14px; border-radius: 11px;
  background: rgba(16,19,29,.9); border: 1px solid rgba(215,255,112,.55);
}
.hero-code-box code { color: var(--acid); font-size: .96rem; font-weight: 850; letter-spacing: .04em; }
.btn-watch {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 9px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-size: .86rem; font-weight: 700; backdrop-filter: blur(8px);
}
.btn-watch:hover { background: rgba(255,255,255,.22); }
.hero-tabs { display: flex; gap: 8px; margin-top: 16px; }
.hero-tab {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 9px;
  background: rgba(16,19,29,.76); border: 1px solid rgba(255,255,255,.14);
  color: #c8c6d8; font-size: .77rem; font-weight: 650; text-align: left;
}
.hero-tab img { width: 36px; height: 22px; object-fit: cover; border-radius: 4px; flex: none; }
.hero-tab.active { background: rgba(215,255,112,.16); border-color: var(--acid); color: #fff; }

.hero-sidebar { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: .9rem; font-weight: 780; }
.side-head span { font-size: .72rem; color: var(--acid); font-family: ui-monospace, monospace; }
.side-card .search { max-width: none; }
.mini-clips { display: flex; flex-direction: column; gap: 9px; }
.mini-clip {
  display: grid; grid-template-columns: 104px 1fr; gap: 11px; align-items: center;
  padding: 6px; border-radius: 10px; background: #10131c; border: 1px solid transparent;
  transition: border-color .18s, transform .15s; text-align: left; color: var(--text);
}
.mini-clip:hover { border-color: var(--violet); transform: translateX(2px); }
.mini-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #0c0e15; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-dur {
  position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0,0,0,.82); color: #fff; font-size: .64rem; font-weight: 700;
}
.mini-clip strong { display: block; font-size: .84rem; line-height: 1.25; }
.mini-clip small { color: var(--muted); font-size: .74rem; }

.video-hub {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.video-stage {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0a0d14; border: 1px solid #2e3245; cursor: pointer;
}
.video-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-stage:hover img { transform: scale(1.04); }
.video-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(14,16,23,.18), rgba(14,16,23,.65));
}
.play-circle {
  width: 68px; height: 68px; border-radius: 50%; background: var(--acid); color: #161f0e;
  display: grid; place-items: center; font-size: 1.55rem; padding-left: 4px;
  box-shadow: 0 0 0 11px rgba(215,255,112,.22); transition: transform .2s;
}
.video-stage:hover .play-circle { transform: scale(1.08); }
.video-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.video-caption h3 { margin: 0; font-size: 1.02rem; }
.video-caption small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.video-playlist { display: flex; flex-direction: column; gap: 9px; }
.playlist-btn {
  display: grid; grid-template-columns: 118px 1fr; gap: 11px; padding: 7px; border-radius: 10px;
  background: #10131c; border: 1px solid transparent; text-align: left; color: var(--text);
}
.playlist-btn:hover { border-color: #464a63; }
.playlist-btn.active { border-color: var(--acid); background: #191f21; }
.playlist-btn strong { display: block; font-size: .84rem; line-height: 1.28; }
.playlist-btn small { color: var(--muted); font-size: .74rem; display: block; margin-top: 2px; }

.motion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.motion-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.motion-stage {
  position: relative; height: 158px; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line); background: #0e111a;
}
.motion-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.42) saturate(1.15); animation: gcm-kenburns 12s ease-in-out infinite alternate;
}
.motion-tag {
  position: absolute; top: 9px; right: 9px; z-index: 2; padding: 2px 7px; border-radius: 5px;
  background: rgba(0,0,0,.75); color: var(--acid); font-size: .66rem; font-weight: 800;
}
.motion-ui { position: relative; z-index: 2; }
.motion-copy {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 10px;
  background: rgba(14,16,23,.92); border: 1px solid rgba(215,255,112,.6);
}
.motion-copy code { color: var(--acid); font-weight: 800; font-size: .9rem; }
.motion-copy span {
  padding: 4px 9px; border-radius: 6px; font-size: .73rem; font-weight: 800; color: #161f0e;
  background: var(--acid); animation: gcm-copyflash 3s infinite;
}
@keyframes gcm-copyflash { 0%, 40% { background: var(--acid); } 50%, 82% { background: #78e7dd; transform: scale(.94); } 100% { background: var(--acid); } }
.motion-portal {
  width: 215px; padding: 11px; border-radius: 10px; background: rgba(14,16,23,.94);
  border: 1px solid rgba(173,145,255,.65);
}
.motion-portal small { display: block; color: var(--muted); font-size: .68rem; margin-bottom: 5px; }
.motion-type {
  padding: 5px 8px; border-radius: 6px; background: #0b0d14; border: 1px solid #494263;
  color: #dfd2ff; font-family: ui-monospace, monospace; font-size: .78rem;
  overflow: hidden; white-space: nowrap; width: 0; animation: gcm-typing 3.4s steps(12) infinite;
}
@keyframes gcm-typing { 0%, 15% { width: 0; } 55%, 85% { width: 100%; } 100% { width: 0; } }
.motion-reward {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 12px;
  background: rgba(14,16,23,.92); border: 1px solid rgba(255,212,135,.65);
  animation: gcm-float 2.4s ease-in-out infinite;
}
@keyframes gcm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.motion-body { padding: 13px 15px; }
.motion-body strong { display: block; font-size: .94rem; margin-bottom: 3px; }
.motion-body p { margin: 0; font-size: .8rem; color: var(--muted); }

.home-visual-grid .library-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card-v2 {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  border: 1px solid #2b2f42; background: #141721; transition: transform .2s, border-color .2s;
}
.game-card-v2:hover { transform: translateY(-3px); border-color: var(--acid); }
.game-card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1017; display: block; }
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.game-card-v2:hover .game-card-cover img { transform: scale(1.07); }
.game-card-cover-top {
  position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center;
}
.game-card-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card-body h3 { margin: 0; font-size: .98rem; line-height: 1.25; }
.game-card-body small { color: var(--muted); font-size: .78rem; }
.card-copy-bar {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 7px 6px 10px; border-radius: 8px; background: #0d1018; border: 1px dashed #3d4157;
}
.card-copy-bar code { color: var(--acid); font-size: .8rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-copy-bar button {
  flex: none; padding: 4px 9px; border-radius: 6px; border: 0; background: #262e1e; color: var(--acid);
  font-size: .74rem; font-weight: 800;
}
.card-copy-bar button:hover { background: var(--acid); color: #161f0e; }

.guide-visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-visual-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); transition: transform .2s, border-color .2s;
}
.guide-visual-card:hover { transform: translateY(-3px); border-color: var(--violet); }
.guide-visual-cover { aspect-ratio: 16 / 9; overflow: hidden; background: #0e1017; }
.guide-visual-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.guide-visual-card:hover .guide-visual-cover img { transform: scale(1.06); }
.guide-visual-body { padding: 12px 14px; }
.guide-visual-body span { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--acid); margin-bottom: 5px; }
.guide-visual-body strong { display: block; font-size: .92rem; line-height: 1.35; }

@media(max-width:980px) {
  .hero-v2, .video-hub { grid-template-columns: 1fr; }
  .motion-grid, .home-visual-grid .library-list, .guide-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:640px) {
  .motion-grid, .home-visual-grid .library-list, .guide-visual-grid { grid-template-columns: 1fr; }
  .hero-tabs { flex-direction: column; }
}

/* ==================== TOP-LEVEL NAV PAGES VISUAL UPGRADE ==================== */
.visual-inner-hero {
  position: relative; overflow: hidden; margin-top: 24px; border-radius: 20px;
  border: 1px solid #35384d; background: #10131e; min-height: 250px;
  display: flex; align-items: flex-end;
}
.visual-inner-hero .hero-bg-img { opacity: .62; }
.visual-inner-hero .hero-scrim {
  background: linear-gradient(90deg, rgba(14,16,23,.95) 0%, rgba(14,16,23,.78) 48%, rgba(14,16,23,.35) 100%),
              linear-gradient(180deg, rgba(14,16,23,.15) 0%, rgba(14,16,23,.9) 100%);
}
.visual-inner-body { position: relative; z-index: 2; padding: 28px 32px; width: 100%; }
.visual-inner-body h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.05em; margin: 0 0 10px; }
.visual-inner-body p { color: #d2d1df; max-width: 62ch; margin: 0 0 14px; }
.visual-inner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }

.inline-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inline-vid-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  border: 1px solid #2b2f42; background: var(--surface); transition: transform .2s, border-color .2s;
}
.inline-vid-card:hover { transform: translateY(-3px); border-color: var(--acid); }
.inline-vid-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0d14; cursor: pointer;
}
.inline-vid-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.inline-vid-card:hover .inline-vid-stage img { transform: scale(1.06); }
.inline-vid-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.inline-vid-stage .play-circle { width: 52px; height: 52px; font-size: 1.2rem; box-shadow: 0 0 0 8px rgba(215,255,112,.22); }
.inline-vid-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.inline-vid-body strong { font-size: .92rem; line-height: 1.3; }
.inline-vid-body small { color: var(--muted); font-size: .76rem; }

.code-visual-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.code-card-v2 {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  border: 1px solid #35324a; background: #141721; transition: transform .2s, border-color .2s;
}
.code-card-v2:hover { transform: translateY(-3px); border-color: var(--acid); }
.code-card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1017; display: block; }
.code-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.code-card-v2:hover .code-card-cover img { transform: scale(1.07); }
.code-card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.code-card-top { display: flex; justify-content: space-between; font-size: .72rem; color: #c7b8da; }
.code-card-body strong { font-size: .95rem; line-height: 1.25; }

@media(max-width:980px) {
  .inline-video-grid, .code-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:640px) {
  .inline-video-grid, .code-visual-grid { grid-template-columns: 1fr; }
  .visual-inner-body { padding: 20px; }
}

.video-source { color: var(--acid); font-size: .8rem; text-decoration: underline; }
