/* store-sites — giao diện chung các site chính sách theo store (08/10/2026).
   Kiểu "arcade sticker": nền kem sáng, viền mực dày, bóng cứng lệch, màu nút máy arcade (đỏ, vàng, xanh, ngọc). */
:root {
  --bg: #fff4dc;
  --bg-dot: #f3dfb4;
  --paper: #ffffff;
  --ink: #1d1442;
  --ink-2: #4a4170;
  --red: #ff4d5e;
  --yellow: #ffd23f;
  --blue: #2f6bff;
  --mint: #19c39c;
  --purple: #8b5cf6;
  --line: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --pop-sm: 4px 4px 0 var(--ink);
  --r: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; color: var(--ink); font: 500 17px/1.65 "Nunito", system-ui, sans-serif;
  background: var(--bg) radial-gradient(var(--bg-dot) 1.6px, transparent 1.7px) 0 0 / 22px 22px;
}
a { color: var(--blue); font-weight: 800; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, .brand span, .foot-brand span, .tile b { font-family: "Bungee", "Nunito", sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.12; }

/* ---------- đầu trang ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand span { font-size: 1.15rem; }
.top nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 800; font-size: .95rem; padding: 7px 14px; border-radius: 999px; border: 2px solid transparent; }
.top nav a:hover { border-color: var(--ink); background: var(--paper); }
.top nav a.on { background: var(--yellow); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 16px; border: var(--line); box-shadow: var(--pop-sm);
  font-weight: 900; font-size: 1.02rem; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.main { background: var(--red); color: #fff; }
.btn.ghost { background: var(--paper); }
.btn.play { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--red); }
.btn.play:hover { box-shadow: 6px 6px 0 var(--red); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- hero trang chủ ---------- */
.hero { position: relative; overflow: hidden; border-bottom: var(--line); background:
  radial-gradient(circle at 85% 20%, rgba(255, 210, 63, .55), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(255, 77, 94, .22), transparent 45%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 56px; }
.coin { display: inline-block; font-weight: 900; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; background: var(--mint); color: var(--ink);
  border: var(--line); border-radius: 999px; padding: 5px 14px; box-shadow: 3px 3px 0 var(--ink); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: 22px 0 16px; }
.hero h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 30px 0 0; }
.stats li { background: var(--paper); border: var(--line); border-radius: 14px; padding: 6px 14px; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.stats b { font-family: "Bungee", sans-serif; font-weight: 400; color: var(--blue); margin-right: 4px; }

/* máy arcade minh hoạ */
.hero-art { display: flex; justify-content: center; }
.cabinet { width: min(380px, 100%); background: var(--blue); border: var(--line); border-radius: 30px 30px 18px 18px; padding: 22px 22px 0; box-shadow: 10px 10px 0 var(--ink); transform: rotate(2deg); }
.screen { position: relative; aspect-ratio: 4 / 3.3; background: var(--ink) radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px) 0 0 / 8px 8px;
  border: var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; }
.sticker { width: 42%; max-width: 132px; border-radius: 26%; border: var(--line); box-shadow: 0 0 0 4px #fff, 6px 8px 0 4px rgba(0,0,0,.35); }
.sticker.s0 { transform: rotate(-7deg) translateY(-6px); animation: bob 3.2s ease-in-out infinite; }
.sticker.s1 { transform: rotate(6deg) translateY(10px); animation: bob 3.2s ease-in-out -1.6s infinite; }
.sticker.s2 { transform: rotate(-3deg); }
@keyframes bob { 50% { translate: 0 -8px; } }
.panel { position: relative; height: 74px; margin: 18px -22px 0; background: var(--red); border-top: var(--line); border-radius: 0 0 16px 16px; }
.panel i { position: absolute; border: var(--line); border-radius: 50%; }
.panel .stick { left: 18%; top: -14px; width: 16px; height: 44px; border-radius: 10px; background: var(--ink); }
.panel .stick::before { content: ""; position: absolute; left: 50%; top: -18px; translate: -50% 0; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: var(--line); }
.panel .b1 { left: 52%; top: 20px; width: 30px; height: 30px; background: var(--yellow); }
.panel .b2 { left: 66%; top: 12px; width: 30px; height: 30px; background: var(--mint); }
.panel .b3 { left: 80%; top: 22px; width: 30px; height: 30px; background: #fff; }

.ticker { background: var(--ink); color: var(--yellow); border-top: var(--line); overflow: hidden; white-space: nowrap; font-family: "Bungee", sans-serif; font-size: .95rem; padding: 10px 0; }
.ticker div { display: inline-block; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker div, .sticker { animation: none; } }

/* ---------- khối nội dung ---------- */
.block { padding: 64px 0 8px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.section-sub { color: var(--ink-2); font-size: 1.08rem; margin: 0 0 28px; max-width: 46em; }

.games { display: grid; gap: 32px; }
.game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; scroll-margin-top: 90px; }
.game-art { grid-column: 1 / -1; border-bottom: var(--line); }
.game-art img { width: 100%; height: auto; aspect-ratio: 1024 / 380; object-position: center top; object-fit: cover; }
.game-body { padding: 0 28px 28px; }
.game-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.game-head > div { padding-top: 14px; min-width: 0; }
.game-icon { width: 88px; height: 88px; margin-top: -40px; border-radius: 24px; border: var(--line); box-shadow: var(--pop-sm); background: #fff; flex: none; }
.game h3 { font-size: 1.45rem; margin: 0 0 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; }
.game p { color: var(--ink-2); margin: 8px 0 20px; }
.c0 .tags span { background: #ffe9a8; } .c1 .tags span { background: #ffd0d5; } .c2 .tags span { background: #cfe0ff; } .c3 .tags span { background: #c9f3e7; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 24px 24px 24px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots img { width: 132px; aspect-ratio: 9 / 18; object-fit: cover; border-radius: 14px; border: var(--line); flex: none; scroll-snap-align: start; background: #eee; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-bottom: 72px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: var(--line); border-radius: 18px; box-shadow: var(--pop-sm); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.tile b { font-size: 1.05rem; }
.tile span { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.t0 { background: #ffe9a8; } .t1 { background: #cfe0ff; } .t2 { background: #ffd0d5; } .t3 { background: #c9f3e7; } .t4 { background: #e6dcff; }

/* ---------- trang chính sách ---------- */
.doc-hero { border-bottom: var(--line); background: var(--yellow) repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,.35) 18px 36px); padding: 44px 0 36px; }
.kicker { display: inline-block; background: var(--ink); color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 8px; padding: 4px 10px; }
.doc-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 14px 0 6px; }
.updated { margin: 0; font-weight: 800; color: var(--ink-2); }
.applies { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px 3px 4px; font-weight: 900; font-size: .92rem; }
.chip img { border-radius: 7px; }
.doc { padding: 36px 0 72px; }
.doc-grid { display: grid; gap: 28px; }
.doc-grid.with-toc { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.card { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--pop); }
.toc { position: sticky; top: 92px; padding: 18px 18px 14px; max-height: calc(100vh - 110px); overflow: auto; }
.toc-title { font-family: "Bungee", sans-serif; font-size: .95rem; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: .93rem; }
.toc li { margin: 5px 0; }
.toc a { color: var(--ink); font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.prose { padding: 34px 38px; min-width: 0; }
.prose h2 { font-size: 1.35rem; margin: 2.1em 0 .6em; padding-top: .2em; scroll-margin-top: 90px; }
.prose h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; background: var(--red); border: 2px solid var(--ink); border-radius: 3px; transform: rotate(45deg) translateY(-3px); }
.prose h3 { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.08rem; margin: 1.5em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #2c2452; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.lead-box { background: #fff7dd; border: var(--line); border-radius: 16px; padding: 16px 20px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 4px 0 8px 52px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; display: grid; place-items: center; font-family: "Bungee", sans-serif; background: var(--mint); border: var(--line); border-radius: 50%; }
.table-wrap { overflow-x: auto; border: var(--line); border-radius: 14px; margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 2px solid #eadfc6; }
.prose th { background: var(--ink); color: #fff; font-weight: 900; }
.prose tr:last-child td { border-bottom: 0; }
.prose details { border: var(--line); border-radius: 14px; margin: 12px 0; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.prose summary { cursor: pointer; font-weight: 900; padding: 13px 18px; list-style: none; position: relative; padding-right: 46px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; display: grid; place-items: center; font-family: "Bungee", sans-serif; background: var(--yellow); border: 2px solid var(--ink); border-radius: 7px; }
.prose details[open] summary::after { content: "–"; }
.prose details > :not(summary) { margin: 0 18px 14px; }

/* ---------- chân trang ---------- */
.foot { background: var(--ink); color: #d9d3f5; border-top: var(--line); }
.foot-in { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 40px 0 44px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.1rem; }
.foot a { color: var(--yellow); }
.foot-games, .foot-links { font-weight: 700; }
.foot-copy { font-size: .88rem; opacity: .75; }

/* ---------- điện thoại ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding: 40px 0 44px; gap: 36px; }
  .hero-art { order: -1; }
  .cabinet { width: min(300px, 86%); }
  .game { grid-template-columns: minmax(0, 1fr); }
  .shots { padding: 0 20px 22px; }
  .doc-grid.with-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { min-height: 60px; }
  .brand span { display: none; }
  .hero h1 { font-size: 2.3rem; }
  .stats li { font-size: .9rem; }
  .game-body { padding: 0 18px 20px; }
  .game-icon { width: 72px; height: 72px; margin-top: -32px; border-radius: 20px; }
  .game h3 { font-size: 1.15rem; }
  .prose { padding: 22px 18px; }
  .card { box-shadow: var(--pop-sm); }
}
