/* WOW888 PH — light WOW88-style theme (royal blue #31499a, red #e0231f, navy, gold). */
:root {
  --blue: #31499a;
  --blue-d: #1e2f73;
  --blue-l: #4d66c4;
  --navy: #00164f;
  --red: #e0231f;
  --red-d: #b8150f;
  --gold: #f7b500;
  --bg: #f3f5fa;
  --card: #fff;
  --line: #e3e8f3;
  --text: #20263a;
  --muted: #646d86;
  --radius: 12px;
  --max: 1200px;
  --shadow: 0 2px 12px rgba(0, 22, 79, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--blue-d); }
.wrap { width: min(100% - 24px, var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--blue-d); font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 6px; font-size: 14px; font-weight: 800; letter-spacing: .03em; line-height: 1; text-decoration: none; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-reg { background: linear-gradient(180deg, #f2362e, var(--red-d)); color: #fff; box-shadow: 0 2px 0 #8e0d09; }
.btn-reg:hover, .btn-login:hover { color: #fff; }
.btn-login { background: linear-gradient(180deg, #5a73b8, var(--blue)); color: #fff; box-shadow: 0 2px 0 var(--blue-d); }
.btn-gold { background: linear-gradient(180deg, #ffe27a, var(--gold)); color: #4a2c00; box-shadow: 0 2px 0 #b07c00; }
.btn-gold:hover { color: #4a2c00; }
.btn-ghost { background: #eef2fb; color: var(--blue-d); }
.btn-ghost:hover { color: var(--red); }
.btn-lg { min-height: 48px; padding: 0 26px; font-size: 15px; border-radius: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Announcement bar */
.notice { background: #eaf0fc; color: var(--blue-d); font-size: 13px; border-bottom: 1px solid #dbe3f6; }
.notice-in { display: flex; align-items: center; gap: 8px; height: 32px; overflow: hidden; }
.notice .ico { width: 18px; height: 18px; color: var(--red); }
.notice-track { flex: 1; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.notice-track p { display: inline-flex; margin: 0; animation: ticker 36s linear infinite; }
.notice-track span { padding-right: 60px; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0, 22, 79, .08); }
.hdr-in { position: relative; display: flex; align-items: center; gap: 16px; min-height: 62px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 200px; height: auto; }
.hdr-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hdr-nav a { padding: 8px 10px; border-radius: 6px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { background: #eef2fb; color: var(--red); }
.hdr-cta { display: flex; gap: 8px; }
.burger { display: none; place-items: center; width: 40px; height: 40px; margin-left: 4px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue-d); cursor: pointer; }

/* Category bar (WOW88-style red line icons) */
.cats { background: #fff; border-bottom: 1px solid var(--line); }
.cats-in { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; min-width: 92px; padding: 10px 8px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-bottom: 3px solid transparent; color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; }
.cat .ico { width: 28px; height: 28px; color: var(--red); stroke-width: 1.6; }
.cat:hover, .cat[aria-current="page"] { border-bottom-color: var(--red); color: var(--blue); }

/* Carousel */
.carousel { position: relative; margin-top: 14px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius); box-shadow: var(--shadow); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 1600 / 380; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots { gap: 0; margin-top: 2px; }
.dots button { width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #c3cce4; transition: width .2s ease, background .2s ease; }
.dots button[aria-current="true"]::before { width: 22px; background: var(--blue); }

/* Headings and cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-card { margin-top: 14px; padding: 18px 20px; }
.intro-card h1 { font-size: clamp(22px, 3.2vw, 30px); }
.intro-card p { margin: 8px 0 0; color: #3d4560; font-size: 15px; }
.sec { margin-top: 26px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { padding-left: 10px; border-left: 4px solid var(--red); font-size: 19px; text-transform: uppercase; letter-spacing: .01em; }
.sec-head a { font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.lined { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: #3b4257; font-size: clamp(18px, 2.4vw, 24px); text-align: center; text-transform: uppercase; }
.lined::before, .lined::after { content: ""; flex: 1; height: 1px; background: #cfd6e8; }

/* Game tiles */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { display: block; color: var(--text); font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 22, 79, .18); transition: transform .2s ease, box-shadow .2s ease; }
.tile span { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover { color: var(--red); }
.tile:hover img { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 22, 79, .25); }

/* Category cards */
.catcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catcard { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px; }
.catcard img { width: 96px; border-radius: 12px; }
.catcard h3 { font-size: 17px; }
.catcard h3 a { color: var(--blue-d); text-decoration: none; }
.catcard p { margin: 4px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.catcard .cta-row { margin-top: 0; gap: 8px; }
.catcard .btn { min-height: 34px; padding: 0 12px; font-size: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.steps h3 { font-size: 16px; }
.steps p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.steps a { font-size: 13px; font-weight: 800; text-decoration: none; }

/* Guide links */
.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guides a { display: grid; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.guides a:hover { border-color: #b9c6ea; }
.guides strong { color: var(--blue-d); font-size: 15px; }
.guides strong::after { content: " ›"; color: var(--red); }
.guides span { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Long-form content */
.prose { padding: 20px 22px; }
.prose + .prose { margin-top: 14px; }
.prose h2 { margin-bottom: 10px; font-size: 20px; }
.prose h3 { margin: 16px 0 6px; font-size: 16px; }
.prose p { margin: 0 0 12px; color: #3b4257; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 12px; padding-left: 20px; color: #3b4257; }
.prose li { margin: 4px 0; }
.prose a { font-weight: 700; }
.check-list, .step-list, .prose .check-list, .prose .step-list { margin: 10px 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; margin: 0; padding: 10px 12px 10px 38px; border-radius: 8px; background: #f5f8ff; color: #2f3650; }
.check-list li::before { content: "✓"; position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #1faa59; color: #fff; font-size: 11px; font-weight: 900; }
.step-list { counter-reset: st; }
.step-list li { counter-increment: st; position: relative; margin: 0; padding: 10px 12px 10px 46px; border-radius: 8px; background: #f5f8ff; color: #2f3650; }
.step-list li::before { content: counter(st); position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 900; }
.note { margin: 12px 0; padding: 12px 14px; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; background: #fff8e3; }
.note strong { color: #7a4e00; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.note p { margin: 4px 0 0; color: #4a4030; font-size: 14px; }
.table-wrap { margin: 10px 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--blue); color: #fff; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:nth-child(even) td { background: #f7f9fe; }
tbody tr:last-child td { border-bottom: 0; }
code { padding: 1px 5px; border-radius: 4px; background: #eef2fb; color: var(--blue-d); font-size: 13px; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; color: var(--blue-d); font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.faq details > p { margin: 0; padding: 0 14px 14px; color: #3b4257; font-size: 14px; }

/* Provider chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 12px; border: 1px solid #cfd8ef; border-radius: 99px; background: #fff; color: var(--blue-d); font-size: 13px; font-weight: 700; }
.chips-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.prose .chips { margin: 0; padding: 0; }
.side .card > a { font-size: 13px; font-weight: 800; text-decoration: none; }

/* CTA band */
.band { position: relative; overflow: hidden; margin-top: 26px; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: var(--radius); background: radial-gradient(circle at 88% 20%, rgba(255, 224, 102, .35), transparent 35%), linear-gradient(110deg, var(--blue-l), var(--blue) 45%, var(--blue-d)); color: #fff; }
.page-main .band { margin-top: 14px; }
.band h2 { color: #fff; font-size: clamp(20px, 3vw, 28px); }
.band h2 em { color: #ffd84a; font-style: normal; }
.band p { margin: 6px 0 0; color: #dfe6ff; font-size: 14px; }
.band-actions { display: grid; justify-items: end; gap: 6px; }
.band small { color: #c9d3f5; font-size: 12px; }

/* Inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 0; color: var(--muted); font-size: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--blue-d); font-weight: 700; }
.page-banner { margin-top: 10px; }
.page-banner img { width: 100%; aspect-ratio: 1600 / 380; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; margin-top: 14px; }
.page-main > * + * { margin-top: 14px; }
.page-main .intro-card { margin-top: 0; }
.side { position: sticky; top: 76px; display: grid; gap: 14px; }
.side .card { padding: 16px; }
.side h3 { margin-bottom: 8px; font-size: 16px; }
.side p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.side-cta { text-align: center; }
.side-cta img { width: 120px; margin: 0 auto 10px; border-radius: 12px; }
.side-cta .btn { width: 100%; }
.side-cta small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.side-links a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.side-links a::after { content: "›"; color: var(--red); font-weight: 900; }
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { color: var(--blue); }
.age-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border: 3px solid var(--red); border-radius: 50%; color: var(--red); font-size: 13px; font-weight: 900; }
.related { margin-top: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-grid a { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--blue-d); font-weight: 800; text-decoration: none; }
.related-grid img { width: 56px; border-radius: 10px; }
.related-grid a:hover { color: var(--red); }
.nf { padding: 28px 22px; text-align: center; }
.nf h1 { font-size: 26px; }
.nf p { margin: 8px auto 0; max-width: 560px; color: var(--muted); }
.nf .cta-row { justify-content: center; }

/* Footer */
.ftr { margin-top: 34px; background: var(--navy); color: #b9c3e0; font-size: 13px; }
.ftr-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; padding: 30px 0 20px; }
.ftr h3 { margin-bottom: 10px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.ftr a { color: #dfe6ff; text-decoration: none; }
.ftr a:hover { color: #ffd84a; }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ftr-brand img { width: 170px; padding: 8px 10px; margin-bottom: 10px; border-radius: 8px; background: #fff; }
.ftr-brand p { margin: 0; line-height: 1.6; }
.ftr-legal { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9ea9cc; font-size: 12px; line-height: 1.6; }
.ftr-legal b { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--red); border-radius: 50%; color: #fff; font-size: 12px; }
.ftr-legal p { margin: 0; }
.ftr-legal a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Mobile tab bar */
.tabbar { display: none; }

@media (max-width: 1100px) {
  .hdr-nav { display: none; position: absolute; left: -12px; right: -12px; top: 100%; padding: 6px 12px 12px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: 0 10px 20px rgba(0, 22, 79, .12); }
  .hdr-nav.open { display: flex; }
  .hdr-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hdr-cta { margin-left: auto; }
  .burger { display: grid; }
  .catcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .steps { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); font-size: 14px; }
  .wrap { width: min(100% - 20px, var(--max)); }
  .hdr-in { gap: 8px; min-height: 56px; }
  .hdr-nav { left: -10px; right: -10px; }
  .logo img { width: 128px; }
  .hdr-cta .btn { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .burger { width: 36px; height: 36px; }
  .cats-in { justify-content: flex-start; }
  .cat { min-width: 74px; font-size: 11px; }
  .carousel { margin-top: 10px; }
  .slides { border-radius: 10px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
  .tile { font-size: 11px; }
  .tile img { border-radius: 10px; }
  .catcards, .guides, .related-grid { grid-template-columns: 1fr; }
  .intro-card { padding: 16px; }
  .prose { padding: 16px; }
  .prose h2 { font-size: 18px; }
  .band { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .band-actions { width: 100%; justify-items: stretch; }
  .band .btn { width: 100%; }
  .cta-row .btn { flex: 1 1 140px; }
  .table-wrap { overflow: visible; border: 0; }
  table, thead, tbody, tr, th, td { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody { display: grid; gap: 8px; }
  tbody tr { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  tbody tr:nth-child(even) td { background: transparent; }
  td { display: grid; grid-template-columns: minmax(90px, .45fr) 1fr; gap: 8px; padding: 5px 0; border: 0; }
  td::before { content: attr(data-label); color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .ftr-in { grid-template-columns: 1fr; gap: 18px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0, 22, 79, .08); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #545c72; font-size: 10.5px; font-weight: 700; text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .tabbar .ico { width: 23px; height: 23px; }
  .tabbar .tab-reg { color: var(--red); }
  .tabbar .tab-reg i { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -24px; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(180deg, #f2362e, var(--red-d)); color: #fff; box-shadow: 0 4px 12px rgba(224, 35, 31, .45); }
  .tabbar .tab-reg .ico { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .slides { scroll-behavior: auto; }
  .notice-track p { animation: none; }
  .notice-track span + span { display: none; }
  .btn, .tile img { transition: none; }
}
.related-grid .ico { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: #eef2fb; color: var(--red); }
.page-main .catcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .page-main .catcards { grid-template-columns: 1fr; } }
