:root {
  --navy: #171e46;
  --navy-deep: #101633;
  --fog: #eef3f9;
  --paper: #fff;
  --ink: #16233d;
  --muted: #425373;
  --rule: #d1dbeb;
  --accent: #ffb169;
  --accent-hover: #ff9d47;
  --link: #234d95;
  --content: 71rem;
  --art-fade: to right;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--fog);
  scroll-padding-top: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: .18em; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #3574e1; outline-offset: 3px; }
time, code { overflow-wrap: anywhere; }
.page-frame { width: min(calc(100% - 3rem), var(--content)); margin-inline: auto; }
.jump-content { position: fixed; z-index: 5; top: .5rem; left: .5rem; transform: translateY(-200%); }
.jump-content:focus { transform: none; }

.topline { position: sticky; inset-block-start: 0; z-index: 4; background: var(--navy-deep); color: #fff; }
.topline .page-frame { display: flex; align-items: center; gap: 1rem; min-height: 4.2rem; }
.wordmark { display: inline-flex; flex: none; text-decoration: none; }
.wordmark img { width: 6.65rem; }
.wide-links { display: flex; gap: clamp(.55rem,1.35vw,1.35rem); align-items: center; margin-inline: auto; }
.wide-links a, .folded-links a { color: #e5edff; font-size: .88rem; font-weight: 660; text-decoration: none; }
.wide-links a[aria-current], .wide-links a:hover, .folded-links a[aria-current] { color: #ffbf88; text-decoration: underline; }
.head-actions { display: flex; gap: .45rem; flex: none; }
.language-flag {
  flex: none; inline-size: 1.75rem; block-size: 1.3125rem;
  object-fit: cover; border-radius: .2rem; box-shadow: 0 0 0 1px #23416a24;
}
.topline .language-toggle { flex: none; min-inline-size: 2.75rem; padding-inline: .55rem; gap: .48rem; }
.language-toggle .language-flag { inline-size: 1.4rem; block-size: 1.05rem; }
.language-toggle::after {
  content: ""; inline-size: .36rem; block-size: .36rem; margin-block-end: .2rem;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.language-sheet {
  width: min(38rem, calc(100% - 1.5rem)); max-height: 85dvh; padding: 0;
  border: 1px solid var(--rule); border-radius: .95rem; color: var(--ink); background: var(--paper);
  box-shadow: 0 16px 56px #090f2e55; overscroll-behavior: contain; scroll-padding-block-start: 4.65rem;
}
.language-sheet::backdrop { background: #111933bc; }
.language-sheet-head {
  position: sticky; inset-block-start: 0; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; gap: .75rem; padding: .8rem 1rem; background: var(--paper);
  border-block-end: 1px solid var(--rule);
}
.language-sheet-head strong { font-size: 1.18rem; line-height: 1.3; }
.language-sheet-head form { margin: 0; }
.language-sheet-head button { min-inline-size: 2.75rem; font-size: 1.35rem; padding: 0; }
.language-sheet-list {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem;
  padding: .85rem; margin: 0; list-style: none;
}
.language-sheet-list a {
  display: flex; align-items: center; gap: .65rem; min-block-size: 2.75rem; height: 100%;
  padding: .45rem .7rem; border: 1px solid var(--rule); border-radius: .55rem;
  color: var(--ink); background: var(--fog); font-size: .92rem; font-weight: 650; line-height: 1.3;
  text-decoration: none; overflow-wrap: anywhere;
}
.language-sheet-list a:hover { background: #dce9fc; border-color: #7999c9; }
.language-sheet-list a[aria-current] { background: #fff1e3; border-color: #b96a2a; }
.language-sheet-list a[aria-current]::after {
  content: ""; flex: none; inline-size: .4rem; block-size: .67rem; margin-inline-start: auto;
  border: solid #884616; border-width: 0 2px 2px 0; transform: translateY(-.12rem) rotate(45deg);
}
.action {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 2.75rem; padding: .52rem .9rem; border: 1px solid transparent;
  border-radius: .42rem; background: var(--accent); color: #261926;
  font-size: .9rem; font-weight: 760; line-height: 1.28; text-align: center; text-decoration: none;
}
.action:hover { background: var(--accent-hover); }
.action-outline { background: transparent; border-color: #8d9dca; color: #f5f7ff; }
.action-outline:hover { background: #28355c; }
.action-muted { color: var(--link); border-color: #b4c5e0; background: #f2f6fd; }
.action-muted:hover { background: #e6effd; }
.folded-links { display: none; margin-inline-start: auto; }
.folded-links summary { list-style: none; cursor: pointer; min-width: 2.7rem; padding-inline: .52rem; }
.folded-links summary::-webkit-details-marker { display: none; }
.menu-bars { width: 1rem; height: .7rem; border-block: 2px solid currentColor; display: inline-grid; align-items: center; }
.menu-bars::before { content: ""; border-top: 2px solid currentColor; }
.folded-links nav { position: absolute; inset: 100% 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; padding: .7rem max(1rem, calc((100% - var(--content)) / 2)); background: #192449; border-top: 1px solid #3d5078; }
.folded-links nav a { padding: .5rem; border-radius: .35rem; }
.folded-links nav a:hover { background: #273861; }

.opening-band { color: #fff; background: var(--navy); overflow: hidden; }
.front-layout { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.07fr 1fr; align-items: center; min-height: 25rem; }
.front-copy { padding-block: clamp(1.65rem,5vw,4rem); position: relative; }
.front-copy h1, .guide-heading h1, .reading-flow h2, .reading-flow h3, .feature-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 720; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance;
  overflow-wrap: anywhere; hyphens: auto;
}
.front-copy h1 { max-width: 12ch; margin: 0; font-size: clamp(2.5rem,5.3vw,5rem); }
.front-copy p { max-width: 46ch; margin: .75rem 0 1.25rem; font-size: clamp(1rem,1.6vw,1.14rem); color: #e4ebff; }
.front-art { position: absolute; inset-block: 0; inset-inline-end: 0; z-index: -1; width: 56%; height: 100%; object-fit: cover; object-position: 58% center; mask-image: linear-gradient(var(--art-fade),transparent,#000 28%); }
.call-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.front-disclosure { display: inline-block; margin-top: .75rem; color: #ffdfbd; font-size: .875rem; }
.brief-strip { margin-block: 1.15rem; }
.lead-text { font-size: 1.085rem; color: #223552; margin: 0 0 .85rem; }
.feature-promo {
  color: #fff; background: #24284d; position: relative; isolation: isolate; overflow: hidden;
  border-radius: .65rem; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center;
  padding: clamp(1rem,3vw,2.1rem); min-height: 14rem; margin-block: 1.3rem;
}
.feature-promo img { position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 54%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(var(--art-fade),transparent,#000 22%); }
.feature-copy { max-width: 34rem; }
.feature-title { display: block; font-size: clamp(1.55rem,3vw,2.55rem); }
.feature-promo p { margin: .55rem 0 .85rem; color: #e7edff; }

.guide-heading { background: #e0e9f7; border-bottom: 1px solid #c9d8ef; padding-block: clamp(1rem,3vw,2rem); }
.guide-layout { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .65rem 2rem; }
.guide-heading h1 { margin: .35rem 0 .7rem; font-size: clamp(2.05rem,4.75vw,3.7rem); }
.guide-heading p { margin: 0 0 .85rem; max-width: 76ch; }
.guide-image { width: clamp(4.3rem,14vw,8rem); height: clamp(4.3rem,14vw,8rem); object-fit: cover; border-radius: .8rem; object-position: top; background: #cfdaf0; }
.pathline { font-size: .9rem; color: var(--muted); }
.pathline a { font-weight: 650; }

.reading-flow { margin-block: 1.15rem 2.2rem; }
.contents-list {
  background: #e1e9f5; padding: .9rem clamp(.8rem,2.5vw,1.5rem); margin: 0 0 1.1rem;
  border: 1px solid #c9d7eb; border-radius: .56rem;
}
.contents-list strong { display: block; }
.contents-list ul { margin: .35rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1.25rem; padding-inline-start: 1.15rem; font-size: .95rem; }
.contents-list a { font-weight: 600; }
.chapter { background: var(--paper); padding: clamp(1rem,3vw,2rem); border: 1px solid var(--rule); border-radius: .65rem; margin-block: .7rem; min-width: 0; }
.chapter h2 { font-size: clamp(1.55rem,3vw,2.4rem); margin: 0 0 .65rem; }
.chapter h3 { font-size: clamp(1.2rem,2vw,1.55rem); margin: 1.15rem 0 .45rem; }
.chapter p { margin: .55rem 0; }
.chapter :is(ol,ul):not(.game-list) { padding-inline-start: 1.45rem; margin-block: .65rem; }
.chapter :is(ol,ul):not(.game-list) li + li { margin-top: .22rem; }
.chapter a { font-weight: 650; }
.source-note, .attention { color: var(--muted); }
.attention { border-inline-start: .24rem solid #5779ad; padding: .6rem .75rem; border-radius: .2rem; background: #eaf0f9; margin: .8rem 0; }
.example-text { white-space: pre-wrap; overflow-wrap: anywhere; border-radius: .5rem; padding: .8rem; background: #edf2fa; font-family: inherit; line-height: 1.5; }

.scroll-table { max-width: 100%; overflow: auto; border: 1px solid #c7d5e8; border-radius: .55rem; margin: .8rem 0; background: #fff; }
.scroll-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: .935rem; }
.scroll-table caption { text-align: left; font-weight: 750; padding: .5rem .65rem; color: #2b4267; }
.scroll-table :is(th,td) { vertical-align: top; border-block-end: 1px solid var(--rule); padding: .55rem .65rem; overflow-wrap: anywhere; }
.scroll-table thead { background: #e3ebf8; }
.scroll-table tbody tr:nth-child(even) { background: #f4f7fc; }
.scroll-table tbody tr:last-child > * { border-bottom: 0; }
.currency-spread { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem 1rem; }
.currency-spread td { white-space: nowrap; }

.game-list { display: grid; grid-template-columns: repeat(var(--game-columns,4),minmax(0,1fr)); gap: .65rem; list-style: none; padding: 0; margin: .9rem 0; }
.game-list button { display: grid; align-content: start; text-align: left; width: 100%; height: 100%; padding: 0; overflow: hidden; border-radius: .55rem; border: 1px solid var(--rule); background: #edf3fa; color: var(--ink); }
.game-list button:hover { background: #e0eaff; border-color: #788eb5; }
.game-list img { aspect-ratio: 1.16; width: 100%; object-fit: cover; object-position: center 26%; }
.game-list span { padding: .5rem .55rem; font-size: .9rem; font-weight: 720; line-height: 1.3; }
.game-list small { display: block; margin-top: .25rem; font-weight: 500; color: var(--muted); }
.provider-form { display: grid; gap: .35rem; max-width: min(28rem,100%); font-weight: 740; margin-block: .8rem; }
.provider-form input { padding: .55rem .65rem; color: var(--ink); border: 1px solid #9eb2d0; border-radius: .4rem; }
.filter-status { font-size: .9rem; color: var(--muted); }

.screen-figure { margin: 1rem 0 .75rem; max-width: min(100%,30rem); }
.screen-figure a { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; width: min(100%,18rem); }
.screen-window { display: block; width: 100%; border: 1px solid var(--rule); border-radius: .55rem; overflow: hidden; }
.screen-window img { width: 100%; height: clamp(19rem,95vw,25rem); object-fit: cover; object-position: var(--image-focus,top); }
.screen-window[data-fit-image] img { height: auto; }
.screen-figure figcaption { margin-top: .3rem; font-size: .9rem; color: var(--muted); }
.image-popup { max-width: min(30rem,calc(100% - 1rem)); max-height: 95dvh; border: 0; color: var(--ink); border-radius: .65rem; padding: .65rem; background: #fff; }
.image-popup::backdrop { background: #111933da; }
.image-popup > img { width: min(100%,26rem); margin-inline: auto; }
.image-popup form { position: sticky; top: 0; text-align: end; margin-bottom: .4rem; }

.closing-band { background: var(--navy-deep); color: #e0e9ff; padding-block: 1.4rem; }
.closing-band a { color: #f8c79d; }
.footer-layout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem .95rem; font-size: .94rem; }
.responsibility-line { display: flex; align-items: center; gap: .7rem; font-size: .91rem; margin-top: .75rem; }
.responsibility-line img { width: 2.1rem; height: auto; flex: none; }
.responsibility-line img + img { width: 5.25rem; }
.closing-band p { margin: .4rem 0; }
.closing-band small { font-size: .85rem; }

@media (max-width: 76rem) {
  .wide-links { display: none; }
  .folded-links { display: block; }
  .topline .page-frame { gap: .65rem; }
}

[dir="rtl"] { --art-fade: to left; }
[dir="rtl"] :is(.scroll-table table,.scroll-table caption,.game-list button) { text-align: start; }
[dir="rtl"] :is(h1, h2, h3, .feature-title) { letter-spacing: normal; }
@media (max-width: 49rem) {
  .page-frame { width: calc(100% - 1.5rem); }
  .front-layout { min-height: 20rem; }
  .front-copy { grid-column: 1 / -1; max-width: 65%; }
  .front-art { width: 64%; object-position: 58%; mask-image: linear-gradient(var(--art-fade), transparent,#000 52%); }
  .game-list { --game-columns: 3; }
  .currency-spread { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 34rem) {
  .topline .page-frame { gap: .4rem; min-height: 3.8rem; }
  .wordmark img { width: 5.25rem; }
  .head-actions { gap: .25rem; flex: 0 1 auto; min-width: 0; }
  .head-actions .action { font-size: .82rem; padding-inline: .48rem; }
  .topline .language-toggle { flex-direction: column; gap: .14rem; padding: .3rem; }
  .topline .language-code { font-size: .59rem; line-height: 1; letter-spacing: .03em; }
  .language-toggle::after { display: none; }
  .front-copy { max-width: 100%; padding-block: 1.35rem; }
  .front-layout { min-height: 0; }
  .front-copy h1 { font-size: clamp(2.25rem,9vw,3.15rem); text-shadow: 0 1px 12px #111838; }
  .front-copy p { max-width: 26ch; text-shadow: 0 1px 8px #101633; }
  .front-art { width: 90%; opacity: .64; object-position: 58%; mask-image: linear-gradient(var(--art-fade),transparent,#000 70%); }
  .feature-promo { grid-template-columns: minmax(0,1fr); }
  .feature-promo img { width: 76%; opacity: .4; mask-image: linear-gradient(var(--art-fade),transparent,#000 65%); }
  .feature-promo p { max-width: 29ch; }
  .guide-layout { gap: .45rem .65rem; }
  .guide-layout h1 { grid-column: 1; }
  .guide-image { width: 3.6rem; height: 4.4rem; }
  .contents-list ul { grid-template-columns: 1fr; }
  .scroll-table table:has(thead th:nth-child(2):last-child) { table-layout: fixed; }
  .scroll-table table:has(thead th:nth-child(2):last-child) th:first-child { width: 38%; }
  .scroll-table :is(th,td) { padding-inline: .42rem; }
  .game-list span { font-size: .82rem; }
  .language-sheet-list { grid-template-columns: 1fr; }
  .responsibility-line { flex-wrap: wrap; gap: .45rem .65rem; }
  .responsibility-line p { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media (max-width: 26rem) {
  .wordmark img { width: 4.5rem; }
  .head-actions .action { padding-inline: .35rem; }
}
@media (max-width: 23rem) {
  :root { scroll-padding-top: 7.25rem; }
  .topline .page-frame { flex-wrap: wrap; padding-block: .4rem; }
  .topline .wordmark { margin-inline-end: auto; }
  .topline .folded-links { margin-inline-start: 0; }
  .topline .head-actions { flex: 1 0 100%; }
  .topline .head-actions .action { flex: 1; }
}
