/*
Theme Name: iGaming Player
Description: Player-first editorial theme implementing the approved Signal Desk design.
Version: 0.3.1
Requires at least: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: igm-player
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.demo-ribbon {
  min-height: 34px;
  padding: 8px 24px;
  background: var(--electric);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
.demo-ribbon span { font-weight: 650; letter-spacing: .02em; text-transform: none; }

.site-header {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; font-size: 20px; white-space: nowrap; }
.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--signal);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 5px 5px 0 var(--ink);
}
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: flex; justify-content: center; gap: clamp(16px, 2.6vw, 38px); }
.primary-nav a { position: relative; padding: 10px 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 3px; background: var(--signal); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav .nav-telegram { padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--electric); line-height: 1.2; text-align: center; }
.primary-nav .nav-telegram::after { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: inline-grid; grid-template-columns: repeat(2, 1fr); padding: 3px; border: 1px solid var(--ink); border-radius: 999px; }
.language-switch a { min-width: 36px; padding: 7px 8px; border-radius: 999px; font-size: 11px; font-weight: 850; text-align: center; }
.language-switch a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu-button { display: none; border: 0; background: transparent; cursor: pointer; font-weight: 850; }

.ticker { overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--white); }
.ticker-track { width: var(--page); min-height: 42px; margin: 0 auto; display: flex; align-items: center; gap: 34px; white-space: nowrap; font: 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.ticker-label::before { content: ""; width: 8px; height: 8px; background: var(--signal); border-radius: 50%; }
.ticker-item::before { content: "/"; margin-right: 34px; color: var(--signal); font-weight: 900; }

main { overflow: hidden; }
.hero { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1.28fr .72fr; min-height: 660px; border-bottom: 1px solid var(--ink); }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(54px, 7vw, 104px) clamp(32px, 5vw, 78px) 48px 0; border-right: 1px solid var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 3px; flex: 0 0 34px; background: var(--signal); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 850px; margin: 28px 0; font-size: clamp(56px, 7.1vw, 112px); line-height: .88; letter-spacing: -.075em; overflow-wrap: anywhere; }
.hero h1 a:hover { color: var(--blue); }
.hero-deck { max-width: 680px; margin-bottom: 0; color: #354158; font: clamp(19px, 2vw, 27px)/1.35 var(--font-editorial); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 42px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tag.demo { background: var(--signal); color: var(--ink); }
.tag.lime { background: var(--electric); color: var(--ink); }
.hero-visual { position: relative; min-height: 560px; overflow: hidden; background: var(--ink); color: var(--paper); isolation: isolate; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before { content: ""; position: absolute; width: 520px; height: 520px; top: 7%; left: 16%; border: 86px solid var(--blue); border-radius: 50%; opacity: .95; z-index: -1; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; z-index: -2; }
.visual-number { position: absolute; top: 40px; right: 36px; z-index: 2; font-size: 12px; letter-spacing: .15em; font-weight: 850; }
.story-window { position: absolute; left: 11%; right: 11%; top: 18%; min-height: 410px; padding: 28px; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-lg); background: rgba(244,239,230,.12); backdrop-filter: blur(12px); box-shadow: var(--shadow); transform: rotate(-2.5deg); }
.story-window-top { display: flex; justify-content: space-between; align-items: center; font: 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 4px rgba(174,242,61,.18); }
.signal-shape { position: relative; height: 210px; margin: 38px 0 20px; }
.signal-shape span { position: absolute; bottom: 0; width: 9%; border-radius: 999px 999px 6px 6px; background: var(--signal); }
.signal-shape span:nth-child(1) { left: 2%; height: 32%; }
.signal-shape span:nth-child(2) { left: 15%; height: 66%; background: var(--electric); }
.signal-shape span:nth-child(3) { left: 28%; height: 46%; }
.signal-shape span:nth-child(4) { left: 41%; height: 88%; background: var(--blue); }
.signal-shape span:nth-child(5) { left: 54%; height: 58%; }
.signal-shape span:nth-child(6) { left: 67%; height: 76%; background: var(--electric); }
.signal-shape span:nth-child(7) { left: 80%; height: 39%; }
.signal-shape span:nth-child(8) { left: 93%; height: 54%; background: var(--blue); }
.story-window h2 { margin: 0; font-size: clamp(24px, 2.4vw, 36px); line-height: 1; letter-spacing: -.045em; }

.section { width: var(--page); margin: 0 auto; padding: 86px 0; border-bottom: 1px solid var(--ink); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-kicker { margin-bottom: 10px; color: var(--signal-text); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section h2, .archive-header h1 { margin-bottom: 0; font-size: clamp(38px, 5vw, 72px); line-height: .95; letter-spacing: -.055em; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.text-link::after { content: "↗"; color: var(--signal); font-size: 18px; }
.empty-state { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--white); color: var(--muted); }

/* Frozen handoff: individual borders/radii and 16px gap at every breakpoint. */
.news-grid { display: grid; grid-template-columns: 1.08fr .92fr .92fr; gap: 16px; align-items: stretch; }
.news-card { min-width: 0; border: 1px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.news-card:first-child { background: var(--blue); color: white; }
.news-visual-link { display: block; flex: 0 0 200px; overflow: hidden; border-bottom: 1px solid var(--ink); }
.news-visual { position: relative; width: 100%; height: 200px; overflow: hidden; background: var(--paper-2); }
.news-visual.has-image { object-fit: cover; }
.news-card:first-child .news-visual { background: var(--electric); }
.news-visual:not(.has-image)::before, .news-visual:not(.has-image)::after { content: ""; position: absolute; }
.news-visual:not(.has-image)::before { width: 180px; height: 180px; border: 36px solid var(--signal); border-radius: 50%; left: 16%; top: 22%; }
.news-visual:not(.has-image)::after { width: 46%; height: 200%; background: var(--ink); top: -45%; right: 5%; transform: rotate(34deg); }
.news-visual.art-variant-2::before { width: 150px; height: 150px; border-radius: 22px; border: 0; background: var(--signal); transform: rotate(15deg); }
.news-visual.art-variant-2::after { background: var(--blue); transform: rotate(-22deg); }
.news-visual.art-variant-3::before { width: 260px; height: 260px; border: 55px solid var(--electric); left: 30%; top: -20%; }
.news-visual.art-variant-3::after { width: 18px; height: 120%; background: var(--signal); top: -10%; right: 42%; transform: rotate(22deg); }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.news-card h3 { margin: 20px 0 14px; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.02; letter-spacing: -.045em; overflow-wrap: anywhere; }
.news-card h3 a:hover { color: var(--electric); }
.news-card p { margin-bottom: 28px; color: var(--muted); line-height: 1.55; }
.news-card:first-child p { color: var(--white); }
.card-meta { margin-top: auto; padding-top: 18px; border-top: 1px solid currentColor; display: flex; justify-content: space-between; gap: 12px; font: 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; opacity: .82; }
.news-card:first-child .card-meta { opacity: 1; }

/* Conditionally rendered advertising inventory from the approved handoff. */
.ad-slot {
  --ad-max-width: 970px;
  --ad-ratio: 970 / 90;
  width: var(--page);
  margin: 32px auto;
}
.ad-slot--billboard { --ad-max-width: 1180px; --ad-ratio: 970 / 250; }
.ad-slot--leaderboard { --ad-max-width: 970px; --ad-ratio: 970 / 90; }
.ad-slot--content-banner { --ad-max-width: 728px; --ad-ratio: 728 / 90; }
.ad-slot__frame {
  width: min(100%, var(--ad-max-width));
  aspect-ratio: var(--ad-ratio);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--white);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  overflow: hidden;
  position: relative;
}
.ad-slot__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,253,248,.96) 0%, rgba(255,253,248,.74) 58%, rgba(255,253,248,.3) 100%); pointer-events: none; }
.ad-slot__media, .ad-slot__image { position: absolute; inset: 0; width: 100%; height: 100%; }
.ad-slot__image { object-fit: cover; }
.ad-slot__label {
  align-self: start;
  position: relative;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255,253,248,.9);
  font: 800 9px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ad-slot__copy { min-width: 0; position: relative; z-index: 2; }
.ad-slot__copy strong { display: block; font-size: clamp(17px, 2vw, 27px); letter-spacing: -.035em; }
.ad-slot__format { align-self: end; position: relative; z-index: 2; color: var(--muted); font: 700 9px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.games-layout { display: grid; grid-template-columns: 1fr 1.45fr; gap: 28px; }
.editor-note { padding: 36px; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.editor-note blockquote { margin: 44px 0; font: clamp(26px, 3.3vw, 48px)/1.1 var(--font-editorial); letter-spacing: -.03em; }
.editor-note footer { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--electric); }
.game-stack { display: grid; gap: 14px; }
.game-card { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 24px; min-height: 138px; padding: 18px; border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game-art { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px solid var(--ink); position: relative; overflow: hidden; background: var(--signal); }
.game-art.has-image { object-fit: cover; }
.game-art:not(.has-image)::before { content: ""; position: absolute; width: 52%; height: 52%; left: 24%; top: 24%; border: 14px solid var(--paper); border-radius: 50%; }
.game-art.art-variant-2 { background: var(--blue); }
.game-art.art-variant-2::before { border-radius: 8px; transform: rotate(18deg); border-color: var(--electric); }
.game-art.art-variant-3 { background: var(--electric); }
.game-art.art-variant-3::before { border-color: var(--ink); border-radius: 50% 10% 50% 10%; }
.game-copy { min-width: 0; }
.game-copy h3 { margin: 8px 0; font-size: 25px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.game-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.score { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 20px; font-weight: 900; }
.score small { font-size: 9px; color: var(--muted); }

.providers { background: var(--paper-2); }
.providers .section { border-bottom: 0; }
.provider-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.provider-card { min-height: 270px; padding: 28px; border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--paper); position: relative; overflow: hidden; }
.provider-card::after { content: attr(data-letter); position: absolute; right: -12px; bottom: -52px; color: rgba(16,26,44,.08); font-size: 210px; line-height: 1; font-weight: 950; letter-spacing: -.12em; }
.provider-card h3 { margin: 46px 0 10px; font-size: 30px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.provider-card p { max-width: 260px; color: var(--muted); line-height: 1.55; font-size: 14px; position: relative; z-index: 1; }

.telegram { width: var(--page); margin: 86px auto; min-height: 340px; padding: clamp(36px, 6vw, 80px); border-radius: var(--radius-lg); background: var(--blue); color: white; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 44px; position: relative; overflow: hidden; }
.telegram::after { content: "↗"; position: absolute; right: -30px; bottom: -95px; font-size: 310px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.08); }
.telegram h2 { margin: 10px 0 18px; font-size: clamp(42px, 6vw, 82px); line-height: .92; letter-spacing: -.06em; }
.telegram p { max-width: 680px; margin: 0; color: var(--white); font: 18px/1.5 var(--font-editorial); }
.telegram-action { justify-self: end; position: relative; z-index: 2; }
.cta { display: inline-flex; align-items: center; gap: 14px; padding: 18px 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--electric); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cta::after { content: "↗"; font-size: 18px; }
.cta[aria-disabled="true"] { background: var(--paper-2); box-shadow: none; color: var(--muted); cursor: not-allowed; }

.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { width: var(--page); min-height: 260px; margin: 0 auto; padding: 58px 0; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 48px; }
.footer-brand { font-size: clamp(34px, 4vw, 58px); font-weight: 900; letter-spacing: -.06em; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; padding-top: 16px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.responsible-note { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.65; }
.consent-manage { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: rgba(255,255,255,.72); cursor: pointer; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.archive-header { width: var(--page); margin: 0 auto; padding: 86px 0 42px; border-bottom: 1px solid var(--ink); }
.archive-header p { max-width: 680px; margin-top: 20px; color: var(--muted); font: 20px/1.45 var(--font-editorial); }
.archive-grid { width: var(--page); margin: 0 auto; padding: 42px 0 86px; }
.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { min-width: 42px; padding: 10px 13px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); text-align: center; }
.pagination .current { background: var(--ink); color: var(--paper); }

.article-shell { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); border-bottom: 1px solid var(--ink); }
.article { min-width: 0; padding: clamp(54px, 7vw, 104px) clamp(32px, 5vw, 78px) 86px 0; border-right: 1px solid var(--ink); }
.article h1 { max-width: 980px; margin: 26px 0; font-size: clamp(48px, 7vw, 104px); line-height: .9; letter-spacing: -.07em; overflow-wrap: anywhere; }
.article__dek { max-width: 760px; color: #354158; font: clamp(19px, 2vw, 27px)/1.4 var(--font-editorial); }
.article__content { max-width: 760px; margin-top: 56px; font: 19px/1.72 var(--font-editorial); }
.article__content h2, .article__content h3 { font-family: var(--font-ui); letter-spacing: -.035em; line-height: 1.1; }
.article__content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article__content img { border: 1px solid var(--ink); border-radius: var(--radius-md); }
.igm-inline-media { margin: 38px 0; }
.igm-inline-media__image { width: 100%; height: auto; }
.igm-inline-media figcaption { margin-top: 10px; color: var(--muted); font: 12px/1.5 var(--font-ui); }
.article__hero-image { width: 100%; height: auto; margin-top: 38px; border: 1px solid var(--ink); border-radius: var(--radius-md); }
.article-side { padding: 86px 0 86px 36px; }
.article-side-card { position: sticky; top: 24px; padding: 28px; border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--white); }
.article-side-card h2 { font-size: 24px; letter-spacing: -.04em; }
.article-telegram { margin-top: 44px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 14px; }
.article-telegram a { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; background: var(--electric); font-size: 10px; font-weight: 900; letter-spacing: .07em; line-height: 1.25; text-align: center; text-transform: uppercase; }
.source-list { margin: 20px 0 0; padding: 0; list-style: none; }
.source-list li + li { margin-top: 12px; }
.source-list a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }

.related-stories { width: var(--page); margin: 0 auto; padding: 72px 0 86px; border-bottom: 1px solid var(--ink); }
.related-stories .section-head { margin-bottom: 30px; }
.related-stories h2 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: .95; letter-spacing: -.055em; }
.related-stories__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.related-stories .news-card:first-child { background: var(--white); color: var(--ink); }
.related-stories .news-card:first-child p { color: var(--muted); }
.related-stories .news-card:first-child .card-meta { opacity: .82; }

.analytics-consent {
  position: fixed;
  z-index: 100;
  left: max(12px, calc((100vw - 1440px) / 2));
  right: max(12px, calc((100vw - 1440px) / 2));
  bottom: 12px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent strong { font-size: 16px; }
.analytics-consent p { max-width: 760px; margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-consent button { min-height: 42px; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.analytics-consent button:first-child { background: var(--electric); }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-bottom: 16px; }
  .header-actions { justify-self: end; }
  .hero { grid-template-columns: 1.1fr .9fr; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .news-card:first-child { grid-column: 1 / -1; }
  .games-layout { grid-template-columns: .8fr 1.2fr; }
  .article-shell { grid-template-columns: minmax(0, 1fr) 320px; }
  .related-stories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .demo-ribbon { align-items: flex-start; flex-direction: column; gap: 3px; padding: 8px 12px; text-align: left; }
  .site-header { min-height: 76px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; position: relative; }
  .brand { font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; box-shadow: 4px 4px 0 var(--ink); }
  .brand small { max-width: 130px; white-space: normal; }
  .header-actions { gap: 7px; }
  .language-switch a { min-width: 30px; padding: 6px; }
  .menu-button { display: block; padding: 8px 0 8px 8px; font-size: 11px; text-transform: uppercase; }
  .primary-nav { display: none; position: absolute; z-index: 20; top: calc(100% + 1px); left: -12px; right: -12px; padding: 16px 12px 20px; border-bottom: 1px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; gap: 4px; }
  .primary-nav a { padding: 12px; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-telegram { margin-top: 8px; border: 1px solid var(--ink); }
  .ticker-track { overflow: hidden; gap: 24px; }
  .ticker-item::before { margin-right: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 540px; padding: 64px 0 42px; border-right: 0; }
  .hero h1 { font-size: clamp(54px, 19vw, 88px); }
  .hero-deck { font-size: 19px; }
  .hero-visual { min-height: 500px; margin-inline: -12px; }
  .story-window { left: 7%; right: 7%; }
  .section { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .news-grid { display: block; }
  .news-card + .news-card { margin-top: 16px; }
  .news-visual-link, .news-visual { height: 220px; flex-basis: 220px; }
  .games-layout { grid-template-columns: 1fr; }
  .editor-note { min-height: 390px; }
  .game-card { grid-template-columns: 86px minmax(0, 1fr); gap: 16px; }
  .score { grid-column: 2; width: auto; height: auto; border: 0; justify-content: start; display: flex; gap: 5px; font-size: 14px; }
  .provider-row { grid-template-columns: 1fr; }
  .provider-card { min-height: 220px; }
  .ad-slot { margin-block: 24px; }
  .ad-slot--billboard, .ad-slot--leaderboard { --ad-max-width: 390px; --ad-ratio: 320 / 100; }
  .ad-slot--content-banner { --ad-max-width: 320px; --ad-ratio: 300 / 250; }
  .ad-slot__frame { padding: 16px; grid-template-columns: 1fr auto; align-content: space-between; gap: 10px 14px; }
  .ad-slot__frame::after { background: linear-gradient(180deg, rgba(255,253,248,.9) 0%, rgba(255,253,248,.48) 100%); }
  .ad-slot__label { grid-column: 1; }
  .ad-slot__copy { grid-column: 1 / -1; }
  .ad-slot__copy strong { font-size: 17px; }
  .ad-slot__format { grid-column: 2; grid-row: 1; align-self: center; }
  .telegram { margin: 64px auto; grid-template-columns: 1fr; }
  .telegram-action { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .article-shell { grid-template-columns: 1fr; }
  .article { padding: 64px 0; border-right: 0; }
  .article h1 { font-size: clamp(46px, 14vw, 72px); }
  .article__content { font-size: 18px; }
  .article-telegram { align-items: flex-start; flex-direction: column; }
  .article-side { padding: 0 0 64px; }
  .article-side-card { position: static; }
  .related-stories { padding: 64px 0; }
  .related-stories__grid { display: block; }
  .related-stories .news-card + .news-card { margin-top: 16px; }
  .analytics-consent { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

