:root {
  color-scheme: dark;
  --base: #0c111c;
  --panel: #151c2c;
  --line: #29354b;
  --fg: #f6f8fe;
  --muted: #b9c7dd;
  --ice: #9fd7ff;
  --blue: #63b6ff;
}
* { box-sizing: border-box; }
html { scroll-padding-block: 1.25rem 5rem; }
body { margin: 0; font: 1rem/1.65 Inter, "Segoe UI", sans-serif; color: var(--fg); background: var(--base); }
h1,h2,h3,p,ul,ol,figure,blockquote { margin: 0; }
h1,h2,h3 { line-height: 1.15; letter-spacing: -.036em; }
h2 { font-size: clamp(1.35rem, 1.13rem + 1vw, 1.87rem); }
a { color: var(--ice); text-underline-offset: .22em; }
a:hover { color: white; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c0e5ff; outline-offset: 4px; }
.skip { position: absolute; z-index: 6; top: .8rem; left: .8rem; padding: .5rem .8rem; border-radius: .4rem; background: var(--base); }
.skip:not(:focus) { clip-path: inset(50%); }
#main:focus { outline: none; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid #202a3e; background: #101624; }
.masthead-inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center; }
.brand { display: inline-flex; align-items: center; }
.brand img { object-fit: contain; }
.main-nav { display: flex; gap: .2rem; justify-content: center; flex-wrap: wrap; }
.main-nav a { padding: .48rem .72rem; border-radius: .57rem; text-decoration: none; font-weight: 680; color: #d9e4f4; font-size: .9rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: #213454; color: white; }
.masthead-actions { display: flex; justify-content: flex-end; gap: 7px; }
.masthead-actions .btn { min-height: 44px; white-space: nowrap; }
.masthead-actions .btn[aria-current="page"] { border-color: #b5dcff; }
.lead-grid { display: grid; gap: 13px; margin-top: 24px; }
.hero { min-height: clamp(390px,34vw,460px); isolation: isolate; display: flex; align-items: center; position: relative; overflow: hidden; border-radius: 22px; background: #182745 url(/assets/brand/hero-background.webp) center / cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,#10182eed 4%,#111c34e0 29%,#10213a88 52%,#0d122a17 78%),linear-gradient(0deg,#10183068,transparent 50%); }
.hero-copy { padding: clamp(22px,5vw,66px); max-width: 640px; position: relative; }
.overline { color: #c7d9ef; font-size: .82rem; font-weight: 690; margin-bottom: 13px; }
.hero h1 { font-size: clamp(3rem,2rem + 4.1vw,5.4rem); font-weight: 820; line-height: .98; }
.hero h1 span { display: block; font-size: .47em; letter-spacing: -.015em; color: #bfdeff; margin-top: .17em; }
.lead { font-size: clamp(1.1rem, .94rem + 1vw,1.65rem); font-weight: 720; margin-top: 17px; }
.summary { color: #e0eaf8; max-width: 43ch; margin-top: 8px; }
.hero-image { position: absolute; z-index: -1; right: clamp(2%,8vw,12%); bottom: -23%; width: auto; height: 129%; max-width: 49%; object-fit: contain; object-position: right bottom; }
.hero-actions, .article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 23px; }
.btn, .floating a { display: inline-flex; gap: .48rem; justify-content: center; align-items: center; min-height: 43px; padding: .45rem .92rem; border: 1px solid #6fbaff; border-radius: .62rem; color: #fff; background: linear-gradient(135deg,#1764c1,#1854d2); text-decoration: none; font-size: .9rem; font-weight: 740; line-height: 1.35; }
.btn:hover,.floating a:hover { color: #fff; background: #2266d1; }
.hero-actions a:last-child,.btn.quiet { background: #1b2942; border-color: #4d6485; }
.hero-actions a:last-child:hover,.btn.quiet:hover { background: #253e60; }
.tasks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.tasks a { display: grid; align-content: center; gap: 2px; position: relative; min-height: 102px; padding: 13px 40px 13px 20px; text-decoration: none; color: var(--fg); }
.tasks a + a { border-inline-start: 1px solid var(--line); }
.tasks a:first-child { border-radius: 14px 0 0 14px; }
.tasks a:last-child { border-radius: 0 14px 14px 0; }
.tasks a:hover,.tiles a:hover { background: #1d2b45; }
.tasks a > span { color: #b0c8ea; font-size: .76rem; }
.tasks strong { font-size: clamp(1.03rem,.8rem + .5vw,1.28rem); line-height: 1.23; }
.tasks small,.tiles small { color: var(--muted); }
.tasks b { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); color: var(--blue); }
.directory { margin-top: 34px; }
.directory header { margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tiles a { display: grid; gap: .25rem; align-content: center; position: relative; min-height: 92px; padding: .8rem 2rem .8rem .9rem; border: 1px solid #242e41; border-radius: 12px; background: var(--panel); color: var(--fg); text-decoration: none; }
.tiles small { line-height: 1.4; }
.tile-arrow { position: absolute; top: .9rem; right: .8rem; color: var(--ice); }
.home-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.panel { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.panel p { margin: .7rem 0; color: #d7e2f4; }
.panels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.panels h3 { line-height: 1.24; }
.panels p:last-child { margin-bottom: 0; }
.panel .btn { margin-top: .45rem; }
.evidence-image img { width: 100%; height: auto; border-radius: .55rem; }
.evidence-image figcaption { color: var(--muted); font-size: .83rem; margin-top: .55rem; }
.article-head { margin-block: 24px 21px; padding: clamp(20px,4vw,42px); background: linear-gradient(105deg,#161e31 34%,#17294a); border-radius: 17px; }
.article-head nav { color: #c6d5ea; font-size: .86rem; margin-bottom: .8rem; }
.article-head nav span { margin-inline: .27rem; }
.article-head h1 { max-width: 850px; font-size: clamp(2rem,1.12rem + 3.5vw,3.55rem); }
.article-head p { color: #d5e2f6; max-width: 70ch; margin-top: .9rem; }
.content-grid { display: grid; grid-template-columns: minmax(0,208px) minmax(0,850px); gap: 22px; }
.content-grid aside nav { display: grid; gap: .55rem; position: sticky; top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: .7rem; padding: 13px; font-size: .87rem; }
.content-grid aside a { color: #c7dcf6; }
article { min-width: 0; }
article > section { padding: clamp(16px,2.2vw,23px); border: 1px solid var(--line); border-radius: 13px; background: var(--panel); margin-bottom: 12px; overflow-wrap: anywhere; }
article p,article ol,article ul:not(.game-grid),article blockquote { margin-top: .8rem; color: #dce6f6; }
article ol,article ul:not(.game-grid) { padding-inline-start: 1.4rem; }
article li + li { margin-top: .4rem; }
blockquote { padding: .7rem 1rem; border-left: 3px solid var(--blue); background: #1e2d48; }
.table-wrap { margin-top: .85rem; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .916rem; }
th,td { vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
thead th { background: #243450; }
tbody th { width: 29%; font-weight: 690; }
td { color: #dce6f6; }
tbody tr:last-child > * { border-bottom: 0; }
.search,.calc { display: grid; gap: 10px; margin: .9rem 0; }
.search { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.search label { grid-column: 1/-1; }
.calc { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 12px; border: 1px solid var(--line); background: #131d30; border-radius: 9px; }
.calc label { display: block; margin-bottom: 5px; }
.calc output { grid-column: 1/-1; }
output { color: #a7d7ff; }
input { min-width: 0; width: 100%; min-height: 43px; color: white; font: inherit; border: 1px solid #52678b; background: #101928; border-radius: 7px; padding: 6px 10px; }
.game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; list-style: none; padding: 0; margin: .9rem 0; }
.game-grid > li { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: #141e31; }
.game-grid img { width: 100%; height: 115px; object-fit: cover; object-position: center 38%; }
.game-grid li > div { padding: 9px; display: grid; gap: 3px; }
.game-grid strong { line-height: 1.2; }
.game-grid small,.game-grid span { color: var(--muted); font-size: .83rem; }
.game-grid a { font-size: .85rem; }
.footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 16px 0 84px; color: var(--muted); font-size: .84rem; }
.footer > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.floating { position: fixed; z-index: 4; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: calc(100% - 24px); display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid #50709b; border-radius: 11px; background: #182640; box-shadow: 0 10px 28px #0007; font-size: .86rem; }
.floating small { display: block; color: var(--muted); line-height: 1.2; }
.floating button { min-width: 42px; min-height: 42px; border: 0; background: transparent; color: white; font-size: 1.25rem; cursor: pointer; }
.source-note { font-size: .9rem; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 38px); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: 4px 10px; padding-block: 10px 6px; }
  .main-nav { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; }
  .masthead-actions { grid-column: 2; grid-row: 1; }
  .content-grid { grid-template-columns: 160px minmax(0,1fr); gap: 12px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 26px); }
  .masthead-inner { padding-block: 7px 4px; }
  .main-nav a { padding: .44rem .36rem; font-size: .8rem; }
  .masthead .brand img { width: 118px; }
  .masthead-actions { gap: 5px; }
  .masthead-actions .btn { font-size: .81rem; padding-inline: .55rem; }
  .lead-grid { margin-top: 12px; gap: 9px; }
  .hero { min-height: 294px; border-radius: 15px; background-position: 60% center; }
  .hero-copy { padding: 18px; }
  .overline { margin-bottom: 10px; }
  .hero-image { max-width: 58%; right: -9%; bottom: -8%; height: 97%; }
  .hero::after { background: linear-gradient(90deg,#10182ef8 12%,#101b37de 44%,#0e193368 82%),linear-gradient(0deg,#1017307a,transparent 53%); }
  .lead { margin-top: 10px; }
  .summary { max-width: 28ch; font-size: .94rem; }
  .hero-actions { margin-top: 14px; }
  .tasks { grid-template-columns: minmax(0,1fr); }
  .tasks a { min-height: 68px; padding: 8px 31px 8px 12px; }
  .tasks a + a { border-inline: 0; border-top: 1px solid var(--line); }
  .tasks a:first-child { border-radius: 14px 14px 0 0; }
  .tasks a:last-child { border-radius: 0 0 14px 14px; }
  .directory { margin-top: 22px; }
  .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .tiles a { min-height: 89px; padding: 10px 23px 10px 10px; }
  .tile-arrow { top: .6rem; right: .45rem; }
  .home-detail,.content-grid,.panels { grid-template-columns: minmax(0,1fr); }
  .article-head { margin-block: 13px 10px; }
  .content-grid aside nav { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid aside strong { grid-column: 1/-1; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .game-grid img { height: 91px; }
  .calc { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .main-nav a { padding-inline: .3rem; }
  .hero { min-height: 258px; }
  .hero-copy { padding: 15px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .hero .lead { font-size: 1.05rem; }
  .summary { line-height: 1.46; max-width: 28ch; }
  .tasks a { min-height: 66px; gap: 1px; }
  .tasks a > span, .tasks small { line-height: 1.25; }
}
@media (max-width: 360px) {
  .masthead .brand img { width: 96px; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: .27rem; }
  .hero-actions { gap: 6px; }
  .hero-actions .btn { font-size: .82rem; padding-inline: .49rem; gap: .32rem; }
}

