/* Ragnarok 3: Genesis website, console identity (tokens from console-ui-v2/app/css/app.css). */
@font-face { font-family: 'Orpheus'; font-weight: 400; font-display: swap; src: url('fonts/Orpheus-Regular.otf') format('opentype'); }
@font-face { font-family: 'Indecisive'; font-weight: 400; font-display: swap; src: url('fonts/Indecisive-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Indecisive'; font-weight: 600 800; font-display: swap; src: url('fonts/Indecisive-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 400 600; font-display: swap; src: url('fonts/NotoSans-latin-wght400-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Noto Serif'; font-weight: 500 700; font-display: swap; src: url('fonts/NotoSerif-latin-wght500-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }

:root {
  --navy: #0f2550; --blue: #1b49ae; --blue-hover: #123c9c; --blue-ink: #16366a;
  --gold: #d4bea5; --gold-bright: #f6cd87; --gold-text: #7a5f2e; --gold-line: #d8caaa; --gold-frame: #b5a57e54;
  --ink: #1a2842; --ink-2: #293d5a; --muted: #5e6577; --paper: #f7f5f0; --panel: #fffefa; --white: #fff;
  --line: #e4e1d9; --line-card: #dedbcf; --on-navy: #ccd4e6; --on-blue: #e2e9fc; --focus: #9a7535;
  --serif: 'Orpheus', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Indecisive', 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 3.4vw, 44px);
  --bar: 92px;
  --side: 352px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-dark :focus-visible, .bar :focus-visible, .plaque :focus-visible, .foot :focus-visible { outline-color: var(--gold-bright); }
.wrap { max-width: 1336px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--panel); color: var(--blue-ink); }
.skip:focus { top: 12px; }
.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold-bright); }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.ornament i { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit; transition: background .18s, color .18s, border-color .18s; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-gold { background: var(--gold-bright); border-color: #d9ae62; color: var(--navy); font-weight: 600; }
.btn-gold:hover { background: #fbdda6; }
.btn-line { border-color: #ffffff66; color: var(--white); }
.btn-line:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-block { width: 100%; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 30; background: var(--navy) url('img/blue-banner.webp') center 46% / cover no-repeat; color: var(--white); }
.bar-inner { max-width: 1336px; margin: 0 auto; padding-inline: var(--gutter); min-height: var(--bar); display: flex; align-items: center; gap: 40px; }
.bar-logo img { height: 74px; width: auto; }
.bar-nav { display: flex; align-self: stretch; gap: 10px; }
.bar-nav a { position: relative; display: flex; align-items: center; padding: 0 10px; color: var(--on-blue); text-decoration: none; font-size: 15px; }
.bar-nav a:hover { color: var(--gold-bright); }
.bar-actions { margin-left: auto; width: var(--side); display: flex; align-items: center; gap: 10px; }
.bar-actions .btn { flex: 1 1 auto; min-height: 42px; padding: 0 10px; font-size: 14px; white-space: nowrap; }

/* hero: the console's blue member panel hangs from the bar */
.hero { position: relative; background: #274c86; overflow: hidden; }
.hero-art { width: 100%; height: clamp(600px, 50vw, 800px); object-fit: cover; object-position: center 22%; }
.hero-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero-scene.on { opacity: 1; }
.hero-pause { position: absolute; z-index: 2; left: var(--gutter); bottom: 20px; width: 44px; height: 44px; padding: 0; background: #0f2550b3; border: 1px solid #f6cd8766; color: var(--white); cursor: pointer; }
.hero-pause::before { content: ''; display: block; width: 12px; height: 14px; margin: auto; border-inline: 4px solid currentColor; }
.hero-pause.is-paused::before { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.hero-pause:focus-visible { outline-color: var(--gold-bright); }
.hero-side { position: absolute; inset: 0 var(--gutter) auto auto; }
.plaque { position: relative; width: var(--side); padding: 30px 30px 32px; background: linear-gradient(180deg, #122d66 0, #1b49ae 62%, #173f9c); color: var(--white); box-shadow: 0 18px 40px #0a1a3a4d; text-align: center; }
.plaque::before { content: ''; position: absolute; inset: 0 8px 8px; border: 1px solid #f6cd8759; border-top: 0; pointer-events: none; }
.plaque > * { position: relative; }
.plaque-kicker { margin: 18px 0 10px; font-size: 12px; letter-spacing: .19em; text-transform: uppercase; font-weight: 600; color: var(--gold-bright); }
.plaque h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.5px; }
.plaque-lead { margin: 14px 0 22px; color: var(--on-blue); font-size: 15px; line-height: 1.5; }
.plaque-actions { display: grid; gap: 10px; margin-bottom: 22px; }
.soon { position: relative; display: block; }
.btn-soon { border-color: #ffffff40; background: none; color: var(--on-blue); cursor: help; }
.btn-soon:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.soon-tip { text-wrap: balance; position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 3; padding: 10px 14px; background: var(--panel); border: 1px solid var(--gold-line); color: var(--ink); font-size: 14px; line-height: 1.4; box-shadow: 0 10px 24px #0a1a3a59; visibility: hidden; opacity: 0; transition: opacity .15s; pointer-events: none; }
.soon-tip::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: var(--panel); border-right: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); transform: rotate(45deg); }
.soon:hover .soon-tip, .btn-soon:focus-visible + .soon-tip, .soon.is-open .soon-tip { visibility: visible; opacity: 1; }
.soon.is-closed .soon-tip { visibility: hidden; opacity: 0; }

/* section heads */
.section { padding-block: clamp(52px, 6vw, 84px); }
.section-head h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.08; letter-spacing: -.8px; color: var(--blue-ink); }
.section-head p { margin-top: 8px; color: var(--muted); max-width: 60ch; }

/* news: launcher arrangement, notices left, banners right */
.news-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; margin-top: 30px; align-items: stretch; }
.news-grid.no-banners { grid-template-columns: minmax(0, 1fr); }
.news-grid.no-banners .banners { display: none; }
.notices { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line-card); }
.notices-title { padding: 15px 22px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; color: var(--blue-ink); }
.notice-list { list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-height: 220px; overflow-y: auto; }
.notice { padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.notice:first-child { border-top: 0; }
.notice-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.notice-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--tone, var(--gold-text)); }
.notice-tag::before { content: ''; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.notice-time { margin-left: auto; }
.notice h3 { margin-top: 8px; font-size: 24px; line-height: 1.18; color: var(--ink); }
.notice h3 a { color: var(--blue); text-underline-offset: 3px; }
.notice p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.tone-info { --tone: #1b49ae; } .tone-update { --tone: #16366a; } .tone-event { --tone: #6c3a9c; } .tone-maintenance { --tone: #7a5418; } .tone-security { --tone: #9c3b3b; }
.news-state { padding: 24px 22px; color: var(--muted); }
.news-state a { color: var(--blue); }

.banner-frame { position: relative; padding: 9px; background: var(--panel); border: 1px solid var(--gold-line); }
.banner-stage { position: relative; aspect-ratio: 1928 / 1184; background: #dfe7ee; overflow: hidden; }
.banner-slide { position: absolute; inset: 0; display: block; visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s; }
.banner-slide.on { visibility: visible; opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-bar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px 0; }
.banner-arrow { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line-card); color: var(--blue-ink); cursor: pointer; }
.banner-arrow:hover { border-color: var(--gold-text); color: var(--gold-text); }
.banner-arrow svg { width: 16px; height: 16px; }
.banner-dots { display: flex; gap: 2px; }
.banner-dot { width: 24px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; cursor: pointer; }
.banner-dot::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--gold-text); transform: rotate(45deg); }
.banner-dot[aria-current='true']::before { background: var(--gold-text); }
.banner-more { margin-left: auto; color: var(--blue); font-size: 15px; text-underline-offset: 3px; }

/* about */
.about { border-top: 1px solid var(--line); }
.about-lead { position: relative; min-height: 470px; display: flex; align-items: center; border: 1px solid #c6d3d9; background: #d6e9ee url('img/sky.webp') center 38% / cover no-repeat; overflow: hidden; }
.about-lead::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--gold-frame); z-index: 3; pointer-events: none; }
.about-art { position: absolute; right: 0; top: 0; bottom: 0; width: 66%; background: url('img/ranger.webp') right bottom / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.about-lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f7f5f0f5 0, #f7f5f0e6 34%, #f7f5f000 62%); z-index: 1; }
.about-copy { position: relative; z-index: 2; max-width: 560px; padding: 44px clamp(24px, 4vw, 52px); }
.about-copy h2 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -1px; color: var(--blue-ink); }
.about-copy p { margin-top: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.pillar img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; border: 1px solid var(--line-card); }
.pillar h3 { margin-top: 16px; font-size: 26px; line-height: 1.15; color: var(--blue-ink); }
.pillar p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* watch */
.watch { background: linear-gradient(112deg, var(--navy) 18%, #173f9c); color: var(--white); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; background: #0a1a3a; border: 1px solid #f6cd8766; padding: 8px; }
.video-inner { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.video-inner img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border: 0; }
.video-play { position: absolute; left: 50%; top: 37%; width: 84px; height: 84px; transform: translate(-50%, -50%) rotate(45deg); background: var(--gold-bright); border: 1px solid #d9ae62; box-shadow: 0 0 0 7px #f6cd8740; display: grid; place-items: center; transition: box-shadow .18s; }
.video-inner:hover .video-play { box-shadow: 0 0 0 11px #f6cd8759; }
.video-play svg { width: 26px; height: 26px; transform: rotate(-45deg) translateX(2px); color: var(--navy); }
.watch-copy h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.08; letter-spacing: -.8px; }
.watch-copy p { margin: 12px 0 22px; color: var(--on-blue); }

/* community */
.socials { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.socials a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; padding: 12px; background: var(--panel); border: 1px solid var(--line-card); color: var(--blue-ink); text-decoration: none; transition: border-color .18s, color .18s; }
.socials a:hover { border-color: var(--gold-text); color: var(--gold-text); }
.socials svg { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* footer */
.foot { background: var(--navy); color: var(--on-navy); font-size: 14px; }
.foot-inner { max-width: 1336px; margin: 0 auto; padding: 30px var(--gutter); display: flex; align-items: center; gap: 28px; }
.foot-mark { width: 74px; height: auto; flex: none; color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { color: var(--white); text-underline-offset: 3px; }
.foot small { display: block; margin-top: 6px; font-size: 13px; }
.foot-rate { margin-left: auto; flex: none; }
.foot-rate img { height: 74px; width: auto; }

/* cookie note */
.cookie-note { position: fixed; z-index: 40; left: calc(var(--gutter) + 56px); bottom: 20px; width: min(420px, calc(100vw - 2 * var(--gutter))); padding: 24px 26px; background: var(--panel); color: var(--ink); box-shadow: 0 16px 40px #0a1a3a59; border: 1px solid var(--gold-line); }
.cookie-note::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--gold-frame); pointer-events: none; }
.cookie-note > * { position: relative; }
.cookie-note h2 { font-size: 24px; line-height: 1.15; color: var(--blue-ink); }
.cookie-note p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cookie-actions { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.cookie-actions a { color: var(--blue); font-size: 15px; text-underline-offset: 3px; }
.btn-solid { background: var(--blue); border-color: #244c9a; color: var(--white); font-weight: 600; }
.btn-solid:hover { background: var(--blue-hover); }

@media (max-width: 1040px) {
  :root { --bar: 72px; }
  .bar-inner { gap: 16px; }
  .bar { background-size: max(1500px, 100%) auto; }
  .bar-logo img { height: 58px; }
  .bar-actions { width: auto; }
  .bar-actions .btn { padding: 0 14px; }
  .bar-nav { gap: 0; }
  .bar-nav a { padding: 0 8px; }
  .hero-art { height: clamp(300px, 56vw, 560px); }
  .hero-side { position: static; }
  .cookie-note { left: var(--gutter); }
  .plaque { width: auto; padding-inline: max(30px, var(--gutter)); background: linear-gradient(180deg, #1b49ae, #173f9c); }
  .plaque::before { inset: 8px; border-top: 1px solid #f6cd8759; }
  .news-grid, .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .banners { order: -1; }
  .notice-list { flex: none; }
  .socials { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 760px) {
  :root { --bar: 0px; }
  .bar { position: static; }
  .bar-inner { flex-wrap: wrap; gap: 0 12px; padding-block: 6px 0; }
  .bar-logo img { height: clamp(40px, 12vw, 48px); }
  .bar-nav { order: 3; width: 100%; justify-content: space-between; min-height: 44px; }
  .bar-actions { gap: 6px; }
  .bar-actions .btn { flex: none; min-height: 44px; padding: 0 clamp(8px, 2.6vw, 14px); font-size: clamp(13px, 3.7vw, 14px); }
  .bar-actions .long { display: none; }
  .about-lead { display: block; min-height: 0; padding-bottom: 72vw; }
  .about-lead::after { background: linear-gradient(180deg, #f7f5f0f5 0, #f7f5f0e0 52%, #f7f5f000 74%); }
  .about-art { top: auto; width: 100%; height: 76vw; background-size: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .about-copy { padding: 30px 24px 18px; }
  .video-play { width: 56px; height: 56px; box-shadow: 0 0 0 5px #f6cd8740; top: 34%; }
  .video-play svg { width: 18px; height: 18px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
