:root {
  --gold: #f5d58b;
  --bright: #ffeda6;
  --ink: #f9e5c1;
  --muted: #c9a986;
  --line: #9f6d3e;
  --dark: #190b0c;
  --display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #1b0b0c; font: 16px/1.55 system-ui, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff2ac; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 70; position: fixed; top: 6px; left: 8px; padding: 10px 18px; background: #331010; color: white; }

.masthead { position: sticky; top: 0; z-index: 30; height: 72px; border-bottom: 2px solid #bd7228; box-shadow: 0 2px 14px #1504009c; background: #ad180d var(--site-image-header-fire-webp, url(reference/header-fire.webp)) center/cover; color: #ffe8b6; }
.masthead-inner { position: relative; display: flex; gap: 26px; align-items: center; justify-content: space-between; max-width: 1286px; height: 100%; margin: auto; padding: 0 16px; }
.brand { display: inline-flex; gap: 12px; align-items: center; flex-shrink: 0; }
.brand img { border: 1px solid #ffd174; border-radius: 9px; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 19px; letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 2px 2px #7e2011; }
.brand small { margin-top: 3px; color: #ffdb9a; font-size: 10px; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.masthead nav { display: flex; align-items: center; gap: 8px; }
.masthead nav > a, .masthead summary { list-style: none; display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 5px; white-space: nowrap; color: #ffe5ab; text-transform: uppercase; font-size: 14px; font-weight: 850; letter-spacing: .035em; }
.masthead nav > a:hover, .masthead nav > a[aria-current], .masthead summary:hover, .masthead details[open] summary { background: #fff2ac24; }
.masthead summary { cursor: pointer; }
.masthead summary::-webkit-details-marker { display: none; }
.masthead summary::after { content: '⌄'; font-size: .9em; }
.submenu { position: relative; }
.submenu > div { position: absolute; top: 100%; left: 0; min-width: 160px; border: 1px solid var(--line); border-radius: 5px; padding: 5px; color: var(--bright); background: #3b100d; box-shadow: 0 8px 20px #0006; }
.submenu > div a { display: block; padding: 8px 12px; border-radius: 3px; }
.submenu > div a:hover { background: #fff2ac24; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions img { width: clamp(98px, 9.4vw, 141px); height: auto; }
.header-actions a:hover, .download-dock a:hover { filter: brightness(1.13); }
.menu-toggle, .mobile-actions { display: none; }

.hero { position: relative; min-height: 430px; height: min(48vw, 940px); isolation: isolate; display: flex; justify-content: center; align-items: flex-end; background: #29100f var(--site-image-hero-desktop-jpg, url(reference/hero-desktop.jpg)) center top/cover no-repeat; }
.hero::before { content: ''; z-index: -1; position: absolute; inset: 0; background: linear-gradient(0deg, #17090d 0%, transparent 18%); }
.hero-title { position: absolute; top: 24%; left: max(3.8%, calc((100% - 1980px) / 2)); width: 40%; text-align: center; transform: rotate(-4deg); }
.hero-title h1 { margin: 0; color: #ffcd52; font: italic 900 clamp(44px, 7.6vw, 160px)/.94 var(--display); letter-spacing: -.065em; }
.hero-title h1 span { display: block; padding: .09em .05em .11em; background: linear-gradient(#fff4b4 11%, #ffdc63 45%, #ffc031 70%, #d77911 92%); background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 #ffe090) drop-shadow(2px 3px 0 #8c0c04) drop-shadow(-2px -1px 0 #aa2707) drop-shadow(3px 4px 3px #2d0503); }
.hero-title p { display: inline-block; margin: .9em 0 0; padding: .36em 1.15em; color: #ffe6a1; background: linear-gradient(#70120c, #400905); border: 1px solid #f4ba4c; box-shadow: inset 0 0 0 2px #6b3217, 0 4px 12px #2505009c; font-size: clamp(8px, 1.18vw, 22px); letter-spacing: .035em; font-weight: 900; text-transform: uppercase; }
.download-dock { width: min(43vw, 650px); display: grid; grid-template-columns: .95fr 1fr .95fr; gap: 13px; align-items: center; margin-bottom: 4.2%; padding: 13px; border-block: 1px solid #e4b45180; background: radial-gradient(ellipse, #073816e0 35%, #021c12c2 70%, transparent); }
.download-dock img { width: 100%; height: auto; }
.dock-icon img { border-radius: 20%; border: 1px solid #ffdb88; }
.dock-platforms { display: grid; gap: 5px; }
.mobile-hero-actions { display: none; }

.home-news { position: relative; padding: clamp(30px, 4vw, 68px) 24px; background: #b57a44 var(--site-image-news-paper-jpg, url(reference/news-paper.jpg)) center/cover; }
.home-news-grid { margin: auto; max-width: 1220px; display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(14px, 2vw, 28px); }
.feed-carousel, .feed-panel { display: block; overflow: hidden; min-width: 0; isolation: isolate; position: relative; border: 1px solid #edc978; border-radius: 11px; box-shadow: 0 10px 28px #2d100c55; background: #1d151e; }
.feed-carousel { min-height: 330px; }
.feed-slide, .empty-feature { height: 100%; min-height: 325px; }
.feed-slide img, .empty-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-slide > span, .empty-feature strong { position: absolute; display: grid; gap: 4px; inset: auto 0 0; padding: 35px 22px 44px; background: linear-gradient(transparent, #190a0dfa 75%); }
.feed-slide strong { font-size: clamp(17px, 1.9vw, 24px); line-height: 1.25; }
.feed-slide small { color: #ffe299; text-transform: uppercase; letter-spacing: .1em; font-weight: 780; }
.carousel-arrow { position: absolute; top: 43%; width: 36px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid #dab66d; border-radius: 6px; color: var(--bright); background: #190b0cbb; font-size: 30px; line-height: 1; }
.carousel-arrow:hover { background: #4e1512; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots { position: absolute; display: flex; left: 0; right: 0; bottom: 12px; justify-content: center; gap: 8px; pointer-events: none; }
.carousel-dots button { pointer-events: auto; width: 16px; height: 16px; padding: 0; border: 1px solid #e8bc76; background: #2a0f13; border-radius: 50%; }
.carousel-dots button[aria-pressed=true] { background: #f9d888; }
.feed-panel { min-height: 330px; display: grid; grid-template-rows: auto 1fr auto; }
.feed-tabs { display: flex; gap: 0; overflow-x: auto; color: var(--gold); background: #270d0e; border-bottom: 1px solid #815b36; }
.feed-tabs a { flex: 1 0 auto; padding: 12px clamp(8px, 1vw, 14px); white-space: nowrap; text-align: center; font-size: 13px; font-weight: 740; }
.feed-tabs a:hover, .feed-tabs [aria-current] { color: #fff0ae; box-shadow: inset 0 -2px #efd07a; background: #5b2b2680; }
.feed-tabs .all-news { flex: 0 1 auto; }
.feed-list { margin: 0; padding: 4px 14px; list-style: none; height: 258px; overflow: auto; scrollbar-color: #a47349 #271916; scrollbar-width: thin; }
.feed-list li + li { border-top: 1px dashed #89654a77; }
.feed-list a { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 43px; padding: 10px 5px 10px 18px; font-size: 14px; }
.feed-list a::before { content: '◆'; position: absolute; left: 1px; top: 13px; color: #dbab61; font-size: 9px; }
.feed-list a:hover { color: #fff1aa; background: #d4ac7018; }
.feed-list time { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.feed-list small { border-radius: 3px; padding: 2px 4px; color: #fff1b9; background: #9f3121; font-size: 9px; font-weight: 830; }
.feed-empty { padding: 18px 8px; color: var(--muted); }
.search { display: flex; align-items: stretch; border: 1px solid #7e5739; border-radius: 6px; background: #160e13; color: #f8e1b0; min-width: 0; }
.feed-panel .search { margin: 8px 14px 13px; }
.search input { padding: 9px 12px; border: 0; background: transparent; color: inherit; width: 100%; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; background: transparent; color: #f8e1b0; flex: 0 0 38px; font-size: 22px; line-height: 1; }

.footer { border-top: 1px solid #864d28; padding: 28px 20px; background: #12090b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 1220px; margin: auto; gap: 22px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a:hover { color: #fff2aa; }
.footer p { margin: 0; color: var(--muted); font-size: 13px; }
.quick { position: fixed; right: 0; top: 45%; z-index: 25; display: flex; align-items: center; }
.quick-toggle { width: 43px; height: 70px; padding: 0 0 5px; border: 1px solid #bd8b53; border-right: 0; border-radius: 14px 0 0 14px; background: linear-gradient(#fff2b6, #d7a651); color: #81270a; font: 800 38px/1 var(--display); }
.quick-links { width: 133px; padding: 12px 9px; border: 1px solid #dcaf65; background: linear-gradient(135deg, #54220e, #28080a); border-radius: 7px 0 0 7px; display: grid; gap: 7px; }
.quick-links img { width: 100%; }
.quick-links a:hover { filter: brightness(1.2); }

.wrap { width: min(calc(100% - 40px), 1190px); margin-inline: auto; }
.editorial { min-height: 65vh; background: radial-gradient(ellipse at top, #471d19, #1e1012 52%, #160b0e); }
.article-heading { padding: 100px 0 51px; border-bottom: 1px solid #835332; background: linear-gradient(90deg, #200a0ad9 7%, #200a0a76 62%, #200a0a91), var(--site-image-hero-desktop-jpg, url(reference/hero-desktop.jpg)) center 30%/cover; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; color: #f3d2a0; font-size: 14px; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-heading h1 { max-width: 880px; margin: 14px 0 0; color: #ffe0a3; text-shadow: 0 3px 7px #25080b; font: 800 clamp(34px, 5vw, 60px)/1.15 var(--display); overflow-wrap: anywhere; }
.editorial-body { padding: 32px 0 72px; }
.editorial-toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.editorial-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.editorial-tabs a, .pagination a { padding: 8px 14px; border: 1px solid #8a5d3b; border-radius: 6px; font-size: 14px; font-weight: 700; color: #f6dcaa; }
.editorial-tabs [aria-current], .editorial-tabs a:hover, .pagination [aria-current], .pagination a:hover { color: #2d0f0b; background: #f4ca70; }
.editorial-toolbar .search { width: min(100%, 310px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { border: 1px solid #815639; border-radius: 9px; overflow: hidden; background: #271319; }
.news-card:hover { border-color: #d6ad65; }
.news-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.news-card a > div { padding: 16px; }
.news-card h2 { margin: 9px 0 5px; font-size: 20px; line-height: 1.28; overflow-wrap: anywhere; }
.news-card p { margin: 0; color: #d5b897; font-size: 14px; }
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.article-meta span { padding: 3px 8px; color: #f8d48d; background: #6d2b24; border-radius: 4px; font-weight: 690; }
.article { width: min(100%, 860px); margin: 0 auto 36px; border: 1px solid #8a5a3b; border-radius: 12px; background: #27141a; padding: clamp(17px, 4vw, 42px); }
.article-lead { color: var(--gold); font-size: 19px; font-weight: 660; }
.article-cover { width: 100%; max-height: 540px; object-fit: contain; background: #160c10; border-radius: 7px; }
.article-content { margin: 22px 0; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.gold-button { display: inline-flex; justify-content: center; padding: 9px 16px; color: #32110b; background: linear-gradient(#fff0ab, #dca844); border: 1px solid #e9b95a; border-radius: 5px; font-weight: 800; }
.gold-button:hover { filter: brightness(1.15); }
.utility { text-align: center; }
.utility img { margin: 0 auto; border-radius: 16px; }
.utility .gold-button { margin: 6px; }
.platform-status, .pagination { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0; }
.platform-status span { padding: 6px 10px; border: 1px solid #8e6348; border-radius: 5px; }

@media (max-width: 1110px) {
  .masthead-inner { gap: 14px; }
  .masthead nav { gap: 2px; }
  .masthead nav > a, .masthead summary { padding-inline: 8px; font-size: 12px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 9px; }
  .header-actions { gap: 5px; }
}

@media (max-width: 800px) {
  .masthead { height: 60px; }
  .masthead-inner { padding-inline: 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; }
  .header-actions { display: none; }
  .menu-toggle { display: grid; gap: 4px; place-content: center; width: 42px; height: 40px; border: 1px solid #ffe19c88; border-radius: 5px; background: #710e0c50; }
  .menu-toggle span { width: 19px; height: 2px; border-radius: 2px; background: var(--bright); }
  .masthead nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px 14px; background: #391012; box-shadow: 0 15px 25px #0008; border-bottom: 1px solid #ab7335; }
  .masthead nav.is-open { display: flex; }
  .masthead nav > a, .masthead summary { padding: 12px; font-size: 15px; }
  .submenu > div { position: static; box-shadow: none; margin-left: 24px; }
  .mobile-actions { display: flex; gap: 8px; padding-top: 6px; }
  .mobile-actions a, .mobile-hero-actions a { color: #341609; border: 1px solid #eac477; border-radius: 5px; background: linear-gradient(#ffe5a0, #dda94e); padding: 8px 14px; font-weight: 840; }
  .hero { min-height: min(560px, 118vw); height: min(720px, 126vw); background-image: var(--site-image-hero-mobile-jpg, url(reference/hero-mobile.jpg)); background-position: center top; }
  .hero-title { top: auto; bottom: 18%; left: 8%; width: 84%; }
  .hero-title h1 { font-size: clamp(47px, 12vw, 90px); }
  .hero-title p { font-size: clamp(9px, 2.6vw, 15px); }
  .download-dock { display: none; }
  .mobile-hero-actions { display: flex; gap: 9px; margin-bottom: 5%; padding: 0 12px; }
  .mobile-hero-actions a { min-width: 114px; text-align: center; font-size: 14px; }
  .home-news { padding: 22px 14px 28px; }
  .home-news-grid { grid-template-columns: 1fr; max-width: 615px; }
  .feed-carousel, .feed-slide, .empty-feature { min-height: clamp(208px, 55vw, 330px); }
  .feed-panel { min-height: 284px; }
  .feed-tabs a { padding-inline: 11px; }
  .feed-list { height: 210px; }
  .quick { top: auto; bottom: 16px; }
  .quick-toggle { width: 29px; height: 52px; font-size: 26px; }
  .quick-links { width: 115px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .article-heading { padding: 55px 0 30px; }
  .editorial-toolbar { flex-direction: column; }
  .editorial-toolbar .search { width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
}

@media (max-width: 470px) {
  .cards { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 28px); }
  .feed-tabs a { padding-inline: 9px; font-size: 12px; }
  .feed-list a { font-size: 13px; }
  .feed-list time { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
