﻿:root {
  --green: #009c3b;
  --yellow: #ffdf00;
  --blue: #002776;
  --white: #ffffff;
  --blue-deep: #001b52;
  --bg: var(--blue);
  --panel: rgba(255, 255, 255, .07);
  --panel-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .16);
  --text: var(--white);
  --muted: rgba(255, 255, 255, .76);
  --radius: 18px;
  --w: 480px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font: 15.5px/1.7 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(0, 156, 59, .45), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(255, 223, 0, .12), transparent 60%),
    var(--blue-deep);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 12px; }
strong, b { color: var(--white); }
small { color: var(--muted); }
ul, ol { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--yellow); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; z-index: 100; background: var(--yellow); color: var(--blue); padding: 6px 10px; border-radius: 8px; }

/* phone frame: always mobile width, even on desktop */
.app {
  position: relative;
  max-width: var(--w);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 88px;
  background:
    radial-gradient(520px 300px at 50% -4%, rgba(255, 223, 0, .16), transparent 70%),
    radial-gradient(460px 380px at 0% 16%, rgba(0, 156, 59, .42), transparent 70%),
    radial-gradient(460px 380px at 100% 60%, rgba(0, 156, 59, .22), transparent 70%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue) 40%, var(--blue-deep) 100%);
  box-shadow: 0 0 0 1px rgba(255, 223, 0, .22), 0 0 80px rgba(0, 0, 0, .55);
  overflow-x: clip;
}

/* ---------- top: install bar + header ---------- */
.top { position: sticky; top: 0; z-index: 40; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-top: 3px solid var(--yellow);
  background: var(--green);
}
.topbar img { width: auto; height: auto; max-height: 28px; max-width: 38%; flex-shrink: 0; }
.topbar .tb-text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.3; color: rgba(255, 255, 255, .88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tb-text b { display: block; font-size: 13.5px; }
.x {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: var(--white);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 39, 118, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--yellow);
}
.menu-btn {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
  display: grid; place-content: center; gap: 5px; cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--yellow); }
.menu-btn span:nth-child(2) { width: 13px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--white); font-weight: 800; }
.brand img { width: auto; height: auto; max-height: 36px; max-width: 100%; }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.hdr-actions { display: flex; gap: 8px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; line-height: 1.2; text-align: center; letter-spacing: .3px;
  color: var(--blue); background: var(--yellow);
  box-shadow: 0 10px 24px rgba(255, 223, 0, .28);
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn small { color: rgba(0, 39, 118, .78); font-weight: 600; font-size: 12px; letter-spacing: 0; }
.btn-sm { padding: 8px 14px; font-size: 13px; box-shadow: none; }
.btn-ghost { background: var(--green); color: var(--white); border-color: var(--green); box-shadow: 0 8px 20px rgba(0, 156, 59, .3); }
.btn-ghost small, .btn-green small { color: rgba(255, 255, 255, .82); }
.btn-yellow { background: var(--yellow); color: var(--blue); box-shadow: 0 8px 20px rgba(255, 223, 0, .28); }
.btn-green { background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(0, 156, 59, .3); }
.hdr .btn { padding: 9px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* ---------- drawer ---------- */
.drawer-mask { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 60;
  left: max(0px, calc(50% - var(--w) / 2));
  width: min(82vw, 340px);
  overflow-y: auto;
  padding: 16px 14px 32px;
  background: var(--blue);
  border-right: 3px solid var(--green);
}
.drawer[hidden], .drawer-mask[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-head .brand { flex: none; }
.drawer h4 { margin: 16px 0 6px; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--yellow); }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer li { margin: 0; }
.drawer li a {
  display: block; padding: 9px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; font-weight: 600;
}
.drawer li a:hover { text-decoration: none; border-color: rgba(255, 223, 0, .5); }
.drawer li a[aria-current="page"] { color: var(--blue); border-color: var(--yellow); background: var(--yellow); }
.drawer .btn { margin-top: 18px; }

/* ---------- main blocks ---------- */
main { display: block; padding: 14px 12px 0; }
.card {
  margin: 0 0 14px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.card > :last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5 { color: var(--white); line-height: 1.3; margin: 0 0 10px; }
h1 { font-size: 25px; font-weight: 900; }
h2 { font-size: 18.5px; font-weight: 900; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--green); }
h3 {
  font-size: 15.5px; font-weight: 800;
  margin: 18px 0 10px; padding: 9px 12px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 156, 59, .28);
}
h4 { font-size: 15px; margin-top: 14px; }
h5 { font-size: 14.5px; margin-bottom: 6px; }

/* hero */
.hero {
  margin: 0 0 14px;
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 223, 0, .5);
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(255, 223, 0, .18), transparent 70%),
    linear-gradient(160deg, rgba(0, 156, 59, .7), rgba(0, 156, 59, .15) 55%, rgba(0, 39, 118, .2));
}
.pill {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--blue); background: var(--yellow);
}
.lead { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.chips > * {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line); color: var(--white);
}
.hero .btn { display: flex; width: 100%; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.hero-img { margin: 16px 0 0; }
.hero-img img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.hero-img figcaption { display: none; }

/* table of contents */
.toc { margin: 0 0 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.toc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-weight: 800; color: var(--white);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary small { font-weight: 500; }
.toc summary::after { content: "▾"; color: var(--yellow); transition: transform .2s; }
.toc[open] summary::after { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 4px 16px 14px 36px; border-top: 1px solid var(--line); }
.toc li { padding: 6px 0; margin: 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.toc li:last-child { border-bottom: 0; }
.toc a { color: var(--text); font-size: 14.5px; }

/* figures */
figure { margin: 14px 0; }
figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* tables */
.tbl { margin: 12px 0; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--white); background: var(--green); }
td:first-child { color: var(--white); }

/* auto-detected components */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.stat { padding: 12px 10px; text-align: center; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--green); }
.stat > strong:first-child { display: block; font-size: 19px; color: var(--yellow); line-height: 1.25; }
.stat > span { display: block; font-size: 12.5px; color: var(--muted); }

.checks { margin: 12px 0; display: grid; gap: 8px; }
.check { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14.5px; }
.check::before {
  content: "✓"; position: absolute; left: 11px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-content: center;
  font-size: 11px; font-weight: 900; color: var(--white); background: var(--green);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tags > span {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  color: var(--white); background: var(--green); border: 1px solid var(--green);
}

.cards { display: grid; gap: 10px; margin: 12px 0; }
.cards > div { padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.cards > div > :last-child { margin-bottom: 0; }
.cards h3, .cards h4, .cards h5 { margin: 0 0 6px; padding: 0; border: 0; background: none; font-size: 15px; }
.cards .ico { font-size: 22px; line-height: 1; display: block; margin-bottom: 6px; }

.media { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.media > img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.media > div > :last-child { margin-bottom: 0; }

/* game tiles */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 14px; }
.games.g2 { grid-template-columns: repeat(2, 1fr); }
.game {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 6px 6px 10px; border-radius: 14px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text);
}
.game:hover { text-decoration: none; border-color: var(--yellow); }
.game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.game b { display: block; margin-top: 7px; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .play {
  position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: var(--blue); background: var(--yellow);
}
.game .play.guide { color: var(--white); background: var(--green); }

.note {
  margin: 12px 0; padding: 14px;
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, rgba(0, 156, 59, .28), rgba(255, 255, 255, .04));
}
.note > :last-child { margin-bottom: 0; }
.note-h { font-weight: 800; margin-bottom: 8px; }

.ico { font-style: normal; }
blockquote { margin: 12px 0; padding: 14px; border-left: 3px solid var(--yellow); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .06); }

/* faq */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 13px 40px 13px 14px; font-weight: 700; color: var(--white); font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 10px; font-size: 20px; color: var(--yellow); }
.faq details[open] { border-color: rgba(0, 156, 59, .8); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 14px 12px; color: var(--muted); font-size: 14.5px; }
.faq details > div strong { color: var(--text); }

/* warning card */
.card.warn { border-color: rgba(255, 223, 0, .45); background: linear-gradient(160deg, rgba(255, 223, 0, .1), rgba(255, 255, 255, .04)); }
.card.warn h2 { border-bottom-color: var(--yellow); }

/* author */
.author { font-size: 14px; color: var(--muted); }
.author img { width: 48px; height: 48px; border-radius: 50%; float: left; margin: 0 12px 6px 0; border: 2px solid var(--yellow); }
.author strong { color: var(--white); }
.author > div > div:first-child::after { content: ""; display: block; clear: both; }

/* ---------- footer ---------- */
.foot { padding: 6px 12px 20px; color: var(--muted); font-size: 13.5px; }
.foot-cta { text-align: center; }
.foot-cta h4 { margin: 0 0 12px; font-size: 17px; }
.sitemap h4 { margin: 12px 0 6px; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--yellow); }
.sitemap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sitemap li { margin: 0; }
.sitemap a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.legal { font-size: 13px; }
.legal details { border-top: 1px solid var(--line); }
.legal summary { cursor: pointer; padding: 10px 0; color: var(--text); font-weight: 700; }
.legal h2 { display: none; }
.copy { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; text-align: center; }
.copy::before { content: ""; display: block; height: 4px; margin: 0 auto 14px; width: 120px; border-radius: 4px; background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--white) 66%); }

/* ---------- fixed bottom action bar ---------- */
.bottombar {
  position: fixed; bottom: 0; z-index: 45;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--w);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 39, 118, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 3px solid var(--green);
}
.bottombar .btn { flex: 1; padding: 13px 10px; text-transform: uppercase; }
.bottombar[hidden], .topbar[hidden] { display: none; }
