:root {
  color-scheme: dark;
  --background: #151312;
  --surface: #211d1b;
  --surface-hover: #2e2520;
  --line: #40352e;
  --text: #faf3ec;
  --muted: #cdbfb4;
  --gold: #ffae77;
  --gold-hover: #ffd0aa;
  --ink: #24140b;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 100%;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, summary { font: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(100% - 3.5rem, 96rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .6rem .8rem; background: var(--gold); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 4; top: 0; background: #1c1918; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; min-height: 4.6rem; }
.brand-lockup { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 9.5rem; }
.brand-caption { padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: .875rem; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.25rem); }
.header-login, .header-register { text-decoration: none; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.header-login { color: var(--muted); padding: .38rem .15rem; }
.header-login:hover, .header-login[aria-current] { color: var(--gold); }
.header-register { color: var(--gold); background: #34261e; border: 1px solid #674637; padding: .5rem .9rem; border-radius: .45rem; }
.header-register:hover, .header-register[aria-current] { color: var(--gold-hover); background: #443023; }
.language { display: flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: .42rem; padding: .17rem; font-size: .875rem; line-height: 1; font-weight: 700; }
.language a, .language span { display: grid; min-width: 2.25rem; min-height: 2rem; place-items: center; text-decoration: none; border-radius: .29rem; }
.language span { color: var(--gold); background: #392a22; }
.language a:hover { color: var(--gold); }

.editorial-layout { display: grid; grid-template-columns: clamp(13.25rem, 17vw, 15.75rem) minmax(0, 1fr); align-items: start; gap: clamp(1.15rem, 2.2vw, 2rem); padding-block: 1.5rem 4rem; }
.editorial-content { min-width: 0; scroll-margin-top: 5.6rem; }
.library-panel { position: sticky; top: 5.6rem; min-width: 0; max-height: calc(100dvh - 6.6rem); overflow: auto; scrollbar-width: thin; scrollbar-color: #64473a transparent; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.library-title { padding: .86rem 1rem .78rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 750; }
.library-nav { padding: .85rem .72rem .9rem; }
.library-group + .library-group { margin-top: .72rem; border-top: 1px solid var(--line); padding-top: .68rem; }
.library-group-title { margin: 0 .62rem .33rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.library-nav ul { margin: 0; padding: 0; list-style: none; }
.library-nav li + li { margin-top: .1rem; }
.library-nav a { display: block; border-inline-start: 2px solid transparent; border-radius: .28rem; padding: .38rem .54rem; color: var(--text); font-size: .93rem; line-height: 1.35; text-decoration: none; }
.library-nav a:hover { background: var(--surface-hover); color: var(--gold-hover); }
.library-nav a[aria-current] { border-inline-start-color: var(--gold); background: #382820; color: var(--gold-hover); font-weight: 700; }
.library-nav a:focus-visible { outline-offset: 1px; }
.library-mobile { display: none; }

.hero { position: relative; display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); min-height: clamp(23rem, 34vw, 30rem); isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: .95rem; background: linear-gradient(116deg, #251f1b 17%, #281c16 63%, #38241a); }
.hero-copy { position: relative; z-index: 1; padding: clamp(1.55rem, 3.45vw, 3.3rem); padding-inline-end: .3rem; }
.eyebrow { color: var(--gold); font-size: .875rem; line-height: 1.4; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.hero h1, .guide-head h1 { margin: 0 0 1rem; font-size: clamp(2.8rem, 5.4vw, 5.7rem); line-height: .99; letter-spacing: -.057em; overflow-wrap: break-word; }
.hero-lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); max-width: 34rem; text-wrap: pretty; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.button { min-height: 3.15rem; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; text-align: center; font-weight: 750; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: .52rem; line-height: 1.25; }
.button-primary { background: var(--gold); color: var(--ink); box-shadow: 0 .3rem 1.35rem #100b083e; }
.button-primary:hover { background: var(--gold-hover); }
.button-secondary { background: #241d19; border-color: #725747; color: var(--text); }
.button-secondary:hover { background: #3a2921; border-color: #ae8066; }
.hero-note { margin-top: .85rem; max-width: 31rem; color: var(--muted); font-size: .90rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .85rem; }
.hero-links a { color: var(--gold); font-size: .93rem; font-weight: 650; text-underline-offset: .18em; }
.hero-links a:hover { color: var(--gold-hover); }
.operator-address { color: var(--muted); overflow-wrap: anywhere; }
.hero-art { position: relative; min-width: 0; align-self: stretch; display: grid; align-items: center; padding: 1.1rem 1.65rem 1.1rem .25rem; }
.hero-art::before { content: ''; position: absolute; inset: 1.5rem 1.05rem 1.5rem 0; z-index: -1; border: 1px solid #82503951; border-radius: .72rem; background: radial-gradient(ellipse at 64% 53%, #92532791, #38251f42 67%, #281e1b22); }
.hero-art img { width: 100%; filter: drop-shadow(0 1rem 1.55rem #1008059e); }

.fact-bar { margin-top: .85rem; border: 1px solid var(--line); border-radius: .85rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); }
.fact-bar > div { padding: .90rem clamp(.8rem, 2vw, 1.5rem); min-width: 0; }
.fact-bar > div + div { border-left: 1px solid var(--line); }
.fact-bar dt { color: var(--muted); font-size: .875rem; }
.fact-bar dd { margin-top: .12rem; font-size: clamp(.95rem, 1.36vw, 1.11rem); font-weight: 700; overflow-wrap: anywhere; }
.fact-bar a { text-decoration-color: #aa8d7b; text-underline-offset: .2em; }
.fact-bar a:hover { color: var(--gold); }

.section, .faq { margin-top: clamp(2.75rem, 5.9vw, 5.5rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .7rem 1.25rem; margin-bottom: 1.15rem; }
h2 { font-size: clamp(1.6rem, 3.15vw, 2.8rem); line-height: 1.11; letter-spacing: -.036em; text-wrap: balance; }
.section-head p { color: var(--muted); margin-top: .42rem; }
.text-link, .guide-aside a { color: var(--gold); font-weight: 700; text-underline-offset: .22em; }
.text-link { flex: 0 0 auto; }
.text-link:hover, .guide-aside a:hover { color: var(--gold-hover); }
.game-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.55rem, 1.35vw, 1.1rem); list-style: none; margin: 0; padding: 0; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.game-card img { width: 100%; aspect-ratio: 29 / 31; object-fit: cover; object-position: center; background: #382c24; }
.game-name { padding: .68rem .8rem .78rem; }
.game-name h3 { font-size: clamp(.9rem, 1.4vw, 1.1rem); line-height: 1.25; }
.game-name p { font-size: .86rem; color: var(--muted); margin-top: .26rem; }
.quick { margin-top: 1.4rem; padding: clamp(1.15rem, 2.55vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: .95rem; }
.quick h2 { margin-top: .45rem; }
.quick-grid { margin-top: 1.15rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.quick-card { color: inherit; display: block; min-height: 7.25rem; text-decoration: none; padding: .95rem 1.05rem; border-radius: .58rem; background: #2a221e; border: 1px solid var(--line); }
.quick-card:hover { border-color: #946c52; background: var(--surface-hover); }
.quick-card h3 { font-size: 1.1rem; line-height: 1.35; }
.quick-card p { color: var(--muted); margin-top: .32rem; }
.topic-links { margin-top: clamp(2rem, 4vw, 3.75rem); }
.topic-links ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.topic-links a { display: flex; height: 100%; align-items: center; min-height: 3.1rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--text); font-weight: 650; text-decoration: none; }
.topic-links a:hover { color: var(--gold); background: var(--surface-hover); }
.faq-list { margin-top: 1.05rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3.45rem; padding: .6rem .1rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.45rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 48rem; padding: 0 1.4rem .9rem 0; color: var(--muted); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { text-underline-offset: .2em; }
.breadcrumbs a:hover { color: var(--gold); }
.guide-head { min-height: 16rem; padding: clamp(1.35rem, 3.5vw, 2.9rem); border: 1px solid var(--line); border-radius: .95rem; background: linear-gradient(118deg, #271f1a, #231c18 58%, #39271e); }
.guide-head h1 { max-width: 52rem; font-size: clamp(2.45rem, 4.9vw, 4.7rem); text-wrap: balance; }
.guide-head.with-art { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); align-items: center; gap: 1rem; overflow: hidden; }
.guide-art { margin: -.6rem -1rem -.6rem 0; }
.guide-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem 1.25rem; max-width: 40rem; margin: 1.15rem 0 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: #211a17; }
.guide-contacts dt { font-weight: 700; }
.guide-contacts dd { margin-top: .12rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(12.2rem, 1fr); gap: clamp(1.1rem, 3.1vw, 3rem); margin-top: clamp(1.8rem, 3.5vw, 3.3rem); }
.guide-content { line-height: 1.68; }
.guide-content > section + section { margin-top: 2rem; }
.guide-content h2, .form-spec h2 { font-size: clamp(1.45rem, 2.45vw, 2.15rem); text-wrap: pretty; }
.guide-content p { color: var(--muted); margin-top: .72rem; }
.guide-content ol { color: var(--muted); margin: .85rem 0 0; padding-left: 1.5rem; }
.guide-content ol li + li { margin-top: .5rem; }
.form-spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(1.05rem, 3vw, 2.4rem); margin-top: clamp(1.15rem, 2.5vw, 2rem); padding: clamp(1.1rem, 3vw, 1.65rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.form-spec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.2rem; margin-top: .95rem; }
.form-spec dt { font-weight: 700; }
.form-spec dd { margin-top: .15rem; color: var(--muted); }
.form-spec p { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.form-screenshot { width: min(100%, 395px); justify-self: center; }
.form-screenshot img { border: 1px solid var(--line); border-radius: .56rem; }
.guide-troubleshooting { display: grid; gap: .78rem; margin: .8rem 0 0; }
.guide-troubleshooting > div { padding: .8rem .95rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.guide-troubleshooting dt { font-weight: 700; }
.guide-troubleshooting dd { margin-top: .2rem; color: var(--muted); }
.guide-content .faq p { margin-top: 0; }
.guide-aside { align-self: start; padding: 1.02rem 1.2rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.guide-aside h2 { font-size: 1.07rem; letter-spacing: 0; }
.guide-aside ul + h2 { margin-top: 1.25rem; }
.guide-aside ul { padding-left: 1rem; margin-block: .6rem 0; }
.guide-aside li + li { margin-top: .3rem; }
.guide-aside li { font-size: .92rem; }
.guide-aside figure { margin: 1.2rem 0; }
.guide-aside figure img { border-radius: .55rem; width: min(100%, 10rem); }
figcaption { margin-top: .35rem; color: var(--muted); font-size: .9rem; }

.footer { border-top: 1px solid var(--line); background: #1c1918; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 1.4rem 3rem; padding-block: 1.75rem; }
.footer-brand .brand img { width: 8.5rem; }
.footer p { font-size: .9rem; color: var(--muted); }
.footer-brand p { margin-top: .62rem; }
.footer-links { display: grid; align-content: start; gap: .35rem; }
.footer-links > * { font-size: .89rem; }
.footer-links a { text-decoration-color: #aa8d7b; text-underline-offset: .18em; }
.footer-links a:hover { color: var(--gold); }
.footer-age { display: flex; align-items: flex-start; gap: .65rem; }
.age-mark { display: grid; place-items: center; flex: 0 0 2.45rem; height: 2.45rem; border: 1px solid #8a6f60; border-radius: 50%; font-weight: 700; font-size: .91rem; }

.choose { min-height: 100svh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(ellipse at center, #493124, var(--background) 70%); }
.choose-card { padding: clamp(1.4rem, 5vw, 3.5rem); width: min(100%, 30rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); text-align: center; }
.choose-card img { margin-inline: auto; }
.choose-card h1 { margin-top: .75rem; font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }
.choose-card p { color: var(--muted); margin-top: .55rem; }
.choose-card .button-row { justify-content: center; }

@media (max-width: 960px) {
  .editorial-layout { display: flex; flex-direction: column; align-items: stretch; gap: .9rem; padding-top: .85rem; }
  .library-panel { position: static; max-height: none; }
  .library-desktop { display: none; }
  .library-mobile { display: block; }
  .library-mobile summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 2.85rem; padding: .45rem .9rem; list-style: none; font-weight: 700; cursor: pointer; }
  .library-mobile summary::-webkit-details-marker { display: none; }
  .library-mobile summary::after { content: '+'; color: var(--gold); font-size: 1.35rem; line-height: 1; }
  .library-mobile[open] summary::after { content: '−'; }
  .library-mobile[open] summary { border-bottom: 1px solid var(--line); }
  .library-mobile summary:focus-visible { outline-offset: -4px; }
  .library-nav a { min-height: 2.45rem; padding-block: .58rem; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 1.5rem); }
  .header-inner { min-height: 4.2rem; gap: .65rem; }
  .brand-lockup { gap: .6rem; }
  .brand img { width: 8.15rem; }
  .brand-caption { padding-inline-start: .6rem; }
  .editorial-layout { padding-bottom: 3rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: linear-gradient(138deg, #251f1b 25%, #362419 84%); }
  .hero-copy { padding: 1.35rem 1.1rem .35rem; }
  .hero h1 { font-size: clamp(2.65rem, 11.2vw, 4.75rem); }
  .hero-lead { max-width: 28rem; }
  .hero-art { padding: .35rem .85rem .78rem; }
  .hero-art::before { inset: .2rem .82rem .65rem; }
  .hero-art img { max-height: 21rem; object-fit: contain; }
  .button-row { margin-top: 1.1rem; gap: .5rem; }
  .button { min-height: 2.9rem; padding-inline: .85rem; font-size: .94rem; }
  .hero .button { flex: 1 1 8.75rem; }
  .fact-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-bar > div:nth-child(odd) { border-left: 0; }
  .fact-bar > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head { align-items: start; flex-direction: column; }
  .game-strip { grid-template-columns: repeat(5, minmax(8.6rem, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: #795b4a transparent; padding-bottom: .45rem; }
  .game-card { scroll-snap-align: start; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; }
  .topic-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .topic-links a { padding-inline: .6rem; font-size: .93rem; }
  .guide-head.with-art { grid-template-columns: 1fr; gap: .65rem; }
  .guide-head { min-height: 0; }
  .guide-art { margin: 0; }
  .guide-art img { max-height: 15rem; width: 100%; object-fit: contain; }
  .form-spec { grid-template-columns: 1fr; }
  .guide-layout, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .brand-lockup { flex-direction: column; align-items: flex-start; gap: .18rem; }
  .brand-caption { border: 0; padding: 0; font-size: .875rem; }
  .header-register { display: none; }
}
@media (max-width: 360px) {
  .form-spec dl { grid-template-columns: 1fr; }
  .brand img { width: 7.25rem; }
  .header-login { font-size: .86rem; }
  .language a, .language span { min-width: 1.9rem; }
}
