/* ===== Game Siêu Vui — giao diện công khai ===== */
:root {
  --ink: #2B2350;
  --ink-2: #5F5888;
  --main: #6C4DF6;
  --main-d: #4B30C9;
  --sun: #FFC93C;
  --sun-d: #E39B00;
  --pink: #FF5C8A;
  --mint: #2ED8A3;
  --sky: #2BA8F5;
  --card: #fff;
  --r: 24px;
  --font-fun: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, #D9F0FF 0, #EEF4FF 420px, #F6F1FF 1100px, #FFF7E8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
h1, h2, h3 { font-family: var(--font-fun); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 22px; padding-bottom: 50px; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; font-weight: 800; }
.skip:focus { left: 12px; }

/* Mây trang trí nền */
.sky { position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none; overflow: hidden; z-index: 0; }
.sky i { position: absolute; background: #fff; border-radius: 999px; opacity: .7; }
.sky i::before, .sky i::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.sky i:nth-child(1) { width: 170px; height: 48px; top: 150px; left: -40px; }
.sky i:nth-child(1)::before { width: 70px; height: 70px; left: 28px; top: -36px; }
.sky i:nth-child(1)::after { width: 54px; height: 54px; left: 86px; top: -24px; }
.sky i:nth-child(2) { width: 210px; height: 56px; top: 250px; right: -60px; }
.sky i:nth-child(2)::before { width: 84px; height: 84px; left: 34px; top: -44px; }
.sky i:nth-child(2)::after { width: 62px; height: 62px; left: 106px; top: -28px; }
.sky i:nth-child(3) { width: 120px; height: 36px; top: 430px; left: 46%; opacity: .5; }
.sky i:nth-child(3)::before { width: 50px; height: 50px; left: 20px; top: -26px; }
.sky i:nth-child(3)::after { width: 38px; height: 38px; left: 60px; top: -16px; }

/* ===== Header ===== */
.top { position: relative; z-index: 5; padding-top: 14px; }
.top-row { display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.wm { font-family: var(--font-fun); font-weight: 800; font-size: 30px; line-height: 1; display: inline-flex; gap: 7px; letter-spacing: -.3px; }
.wm b:nth-child(1) { color: var(--main); }
.wm b:nth-child(2) { color: var(--pink); }
.wm b:nth-child(3) { color: #F59E0B; }
.brand-light .wm b:nth-child(1) { color: #fff; }
.brand-light .wm b:nth-child(2) { color: #FFB3CA; }
.brand-light .wm b:nth-child(3) { color: var(--sun); }

.search { display: flex; align-items: center; flex: 1; max-width: 430px; background: #fff; border-radius: 999px; padding: 5px 5px 5px 20px; box-shadow: 0 4px 0 rgba(108, 77, 246, .16); border: 3px solid transparent; transition: border-color .15s; }
.search:focus-within { border-color: var(--main); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); padding: 7px 0; }
.search input::placeholder { color: #9A94BD; font-weight: 600; }
.search button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--main); display: grid; place-items: center; flex-shrink: 0; transition: transform .15s; }
.search button:hover { transform: scale(1.08); }
.search svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }

.cats { margin-top: 14px; }
.cats-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-pill { --c: var(--main); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; font-family: var(--font-fun); font-weight: 700; font-size: 17px; color: var(--ink); background: #fff; padding: 7px 18px 7px 8px; border-radius: 999px; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 35%, transparent); transition: transform .15s, background .15s, color .15s; }
.cat-emoji { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, #fff); font-size: 18px; }
.cat-pill:hover { transform: translateY(-3px); }
.cat-pill.is-active { background: var(--c); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #000); }
.cat-pill.is-active .cat-emoji { background: rgba(255, 255, 255, .28); }

/* ===== Nút ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-fun); font-weight: 800; font-size: 21px; line-height: 1; text-decoration: none; padding: 15px 30px; border-radius: 999px; border: 0; transition: transform .12s, box-shadow .12s; }
.btn svg { width: 24px; height: 24px; fill: currentColor; }
.btn-sun { background: var(--sun); color: #4A2E00; box-shadow: 0 6px 0 var(--sun-d); }
.btn-main { background: var(--main); color: #fff; box-shadow: 0 6px 0 var(--main-d); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }

/* ===== Hero ===== */
.hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 20px; background: linear-gradient(120deg, #7A5CFA 0, #5B8DFF 60%, #46C6FF 100%); border-radius: 40px; padding: 44px 52px; color: #fff; overflow: hidden; box-shadow: 0 10px 0 rgba(75, 48, 201, .28); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hero::before { width: 300px; height: 300px; right: -70px; top: -110px; }
.hero::after { width: 190px; height: 190px; left: 38%; bottom: -120px; }
.hero-text { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; background: rgba(255, 255, 255, .2); padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; text-shadow: 0 3px 0 rgba(43, 35, 80, .18); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p { font-size: 19px; max-width: 520px; opacity: .96; margin-bottom: 24px; font-weight: 700; }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 250px; }
.hero-art img { width: min(260px, 70%); filter: drop-shadow(0 16px 0 rgba(43, 35, 80, .2)); animation: bob 3.2s ease-in-out infinite; }
.float { position: absolute; font-size: 44px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 5px 0 rgba(43, 35, 80, .18)); }
.f1 { left: 4%; top: 6%; animation-delay: -.6s; }
.f2 { right: 4%; top: 0; font-size: 54px; animation-delay: -1.4s; }
.f3 { left: 10%; bottom: 2%; animation-delay: -2.2s; }
.f4 { right: 8%; bottom: 8%; font-size: 48px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ===== Tiêu đề khối ===== */
.block { margin-top: 38px; }
.h-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.h-row .h-sec { margin-bottom: 0; }
.h-sec { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 18px; }
.h-sec-sm { font-size: 24px; margin: 4px 0 14px; }
.h-ico { --c: var(--sun); width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: var(--c); display: grid; place-items: center; font-size: 25px; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 65%, #000); transform: rotate(-6deg); }
.h-sec-sm .h-ico { width: 40px; height: 40px; font-size: 21px; border-radius: 13px; }
.tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 4px 0 rgba(108, 77, 246, .14); }
.tabs a { text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink-2); padding: 7px 18px; border-radius: 999px; }
.tabs a.is-active { background: var(--main); color: #fff; }

/* ===== Thẻ game ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 24px; }
.grid-feature { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-wide { grid-column: 1 / -1; }
.grid-wide:empty { display: none; }
.card { --c: var(--main); display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); text-decoration: none; color: var(--ink); padding: 8px; box-shadow: 0 7px 0 color-mix(in srgb, var(--c) 30%, #DCD6F5); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s; }
.card:hover, .card:focus-visible { transform: translateY(-7px) rotate(-1.2deg); box-shadow: 0 14px 0 color-mix(in srgb, var(--c) 55%, #DCD6F5); }
.card:nth-child(even):hover { transform: translateY(-7px) rotate(1.2deg); }
.card-media { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--c) 18%, #fff); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.07); }
.card-tag { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.card-play { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; box-shadow: 0 4px 0 var(--sun-d); transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.7, .5, 1); }
.card-play svg { width: 24px; height: 24px; fill: #4A2E00; margin-left: 2px; }
.card:hover .card-play, .card:focus-visible .card-play { transform: scale(1); }
.card-body { display: block; padding: 12px 8px 8px; }
.card-title { display: block; font-family: var(--font-fun); font-weight: 800; font-size: 21px; line-height: 1.15; margin-bottom: 4px; }
.card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: 15px; line-height: 1.4; font-weight: 600; }
.card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.card-likes { color: var(--pink); font-weight: 800; font-size: 13px; }
.card-plays { display: inline-block; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 70%, #2B2350); font-weight: 800; font-size: 13px; }
.grid-feature .card-title { font-size: 25px; }
.grid-feature .card-desc { font-size: 16px; }

.pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.pager a { min-width: 46px; height: 46px; padding: 0 10px; display: grid; place-items: center; background: #fff; border-radius: 16px; text-decoration: none; font-family: var(--font-fun); font-weight: 800; font-size: 19px; color: var(--ink); box-shadow: 0 4px 0 rgba(108, 77, 246, .16); }
.pager a.is-active { background: var(--main); color: #fff; box-shadow: 0 4px 0 var(--main-d); }

.empty { text-align: center; background: #fff; border-radius: 36px; padding: 44px 24px; box-shadow: 0 7px 0 rgba(108, 77, 246, .14); }
.empty-page { margin-top: 30px; }
.empty-face { font-size: 76px; line-height: 1; margin-bottom: 12px; animation: bob 3s ease-in-out infinite; }
.empty h1, .empty h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.empty p { color: var(--ink-2); font-weight: 700; margin-bottom: 22px; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.perk { --c: var(--mint); background: #fff; border-radius: 28px; padding: 22px 24px; border-bottom: 7px solid var(--c); }
.perk span { font-size: 38px; line-height: 1; display: block; margin-bottom: 8px; }
.perk h3 { font-size: 23px; font-weight: 800; margin-bottom: 4px; }
.perk p { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 16px; }

/* ===== Trang chơi game ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { color: var(--ink); }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.play-main { min-width: 0; }

.stage { background: #211A47; border-radius: 30px; padding: 12px; box-shadow: 0 9px 0 rgba(43, 35, 80, .28); }
.stage-frame { --ratio: 16 / 9; --ratio-n: 1.7778; position: relative; margin: 0 auto; width: min(100%, max(260px, calc((100vh - 190px) * var(--ratio-n)))); aspect-ratio: var(--ratio); border-radius: 20px; overflow: hidden; background: #100C2A; }
.stage-square .stage-frame { --ratio: 1 / 1; --ratio-n: 1; }
.stage-portrait .stage-frame { --ratio: 9 / 16; --ratio-n: .5625; }
.stage-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; display: grid; place-items: center; overflow: hidden; color: #fff; }
.stage-poster[hidden] { display: none; }
.stage-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(22px) brightness(.62); }
.stage-thumb { position: relative; width: min(58%, 430px); border-radius: 22px; border: 6px solid #fff; box-shadow: 0 12px 0 rgba(0, 0, 0, .28); transform: rotate(-3deg); margin-bottom: 70px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.stage-poster:hover .stage-thumb { transform: rotate(2deg) scale(1.04); }
.stage-go { position: absolute; bottom: 9%; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-fun); font-weight: 800; font-size: clamp(20px, 3vw, 28px); line-height: 1; background: var(--sun); color: #4A2E00; padding: 16px 34px; border-radius: 999px; box-shadow: 0 7px 0 var(--sun-d); animation: pulse 1.6s ease-in-out infinite; }
.stage-go svg { width: 28px; height: 28px; fill: currentColor; }
.stage-poster:disabled .stage-go { background: #E6E2F7; color: var(--ink-2); box-shadow: 0 7px 0 #B9B2DC; animation: none; }
.stage-poster:disabled .stage-go svg { display: none; }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }

.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 8px 4px; color: #fff; }
.stage-info { min-width: 0; }
.stage-info h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 6px; }
.stage-info p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { --c: var(--main); text-decoration: none; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; padding: 3px 12px; border-radius: 999px; }
.plays { font-weight: 700; font-size: 14.5px; color: #C9C2F2; }
.stage-tools { display: flex; gap: 10px; flex-shrink: 0; }

/* Thích & chia sẻ */
.social { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 24px; padding: 14px 18px; margin-top: 18px; box-shadow: 0 6px 0 rgba(108, 77, 246, .12); }
.social-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.social-label { font-weight: 800; color: var(--ink-2); font-size: 15px; }
.soc { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 999px; color: #fff; transition: transform .12s, filter .15s; }
.soc:hover { transform: translateY(-2px); filter: brightness(1.07); }
.soc svg { width: 20px; height: 20px; fill: currentColor; }
.soc-fb { background: #1877F2; box-shadow: 0 4px 0 #0F5BC4; }
.soc-zalo { background: #0068FF; box-shadow: 0 4px 0 #004FC4; }
.soc-copy { background: #EFECFB; color: var(--ink); box-shadow: 0 4px 0 #D9D3F3; }
.soc-copy svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.soc-like { background: #FFE9F0; color: #D62863; box-shadow: 0 4px 0 #FFC4D6; font-size: 16.5px; padding: 11px 20px; }
.soc-like svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; width: 22px; height: 22px; }
.soc-like b { background: #fff; border-radius: 999px; padding: 0 10px; min-width: 30px; text-align: center; }
.soc-like[aria-pressed=true] { background: var(--pink); color: #fff; box-shadow: 0 4px 0 #D63C6B; }
.soc-like[aria-pressed=true] svg { fill: currentColor; animation: like-pop .35s cubic-bezier(.3, 1.7, .5, 1); }
.soc-like[aria-pressed=true] b { color: #D62863; }
@keyframes like-pop { 0% { transform: scale(.5); } 100% { transform: scale(1); } }
.social-toast { position: absolute; right: 16px; bottom: calc(100% + 8px); background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; padding: 8px 14px; border-radius: 12px; max-width: min(340px, 90vw); z-index: 5; }
.social-toast[hidden] { display: none; }
@media (max-width: 720px) {
  .social { padding: 12px; border-radius: 20px; justify-content: center; }
  .soc-like { width: 100%; justify-content: center; }
  .social-label { display: none; }
  .social-share { justify-content: center; }
  .soc { padding: 9px 13px; font-size: 14.5px; }
}
.tool { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; font-size: 15px; padding: 11px 16px; border-radius: 16px; transition: background .15s, transform .12s; }
.tool[hidden] { display: none; }
.tool:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
.tool-main { background: var(--main); box-shadow: 0 4px 0 var(--main-d); }
.tool-main:hover { background: #7D61FA; }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.stage:fullscreen, .stage.is-full { border-radius: 0; padding: 0; display: flex; flex-direction: column; width: 100%; height: 100%; }
.stage.is-full { position: fixed; inset: 0; z-index: 100; height: 100dvh; }
.stage:fullscreen .stage-frame, .stage.is-full .stage-frame { flex: 1; width: 100%; aspect-ratio: auto; border-radius: 0; }
.stage:fullscreen .stage-bar, .stage.is-full .stage-bar { padding: 6px 12px; }
.stage:fullscreen .stage-info p, .stage.is-full .stage-info p { display: none; }
.stage:fullscreen .stage-info h1, .stage.is-full .stage-info h1 { font-size: 18px; margin: 0; }
.stage:fullscreen .tool, .stage.is-full .tool { padding: 7px 12px; }

.about { background: #fff; border-radius: 30px; padding: 28px 32px; margin-top: 26px; box-shadow: 0 7px 0 rgba(108, 77, 246, .12); }
.about h2 { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 800; margin: 26px 0 12px; }
.about h2:first-child { margin-top: 0; }
.about h2 .h-ico { width: 40px; height: 40px; font-size: 21px; border-radius: 13px; }
.about p { color: #453D6E; }
.about p:last-child { margin-bottom: 0; }
.lead { font-size: 19px; font-weight: 700; color: var(--ink) !important; }

.play-side { position: sticky; top: 16px; }
.side-list { display: grid; gap: 12px; }
.mini { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 8px; text-decoration: none; color: var(--ink); box-shadow: 0 5px 0 rgba(108, 77, 246, .13); transition: transform .15s; }
.mini:hover { transform: translateX(5px); }
.mini img { width: 112px; height: 70px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.mini b { display: block; font-family: var(--font-fun); font-weight: 800; font-size: 18px; line-height: 1.15; }
.mini small { color: var(--ink-2); font-weight: 700; font-size: 13.5px; }

/* ===== Quảng cáo =====
   Giữ sẵn chiều cao để trang không bị giật khi quảng cáo nạp xong, và cách xa khung game
   để tránh bấm nhầm (yêu cầu của chính sách AdSense). */
.ad { margin: 34px auto 0; text-align: center; max-width: 100%; }
.ad-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8C86B0; margin-bottom: 6px; }
.ad-top, .ad-infeed, .ad-game-bottom { min-height: 116px; }
.ad-game-bottom { margin-top: 40px; }
.ad-game-side { min-height: 276px; margin: 0 0 24px; }
.ad-box { display: grid; place-items: center; min-height: 90px; height: calc(100% - 22px); border: 3px dashed #BDB5E8; border-radius: 18px; color: #7F78A8; font-weight: 700; background: rgba(255, 255, 255, .55); }
.ad-game-side .ad-box { min-height: 250px; }

/* ===== Trang nội dung ===== */
.prose { background: #fff; border-radius: 34px; padding: 40px 46px; max-width: 880px; margin: 8px auto 0; box-shadow: 0 7px 0 rgba(108, 77, 246, .12); }
.prose h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; color: var(--main); }
.prose h2 { font-size: 25px; font-weight: 800; margin: 30px 0 10px; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 22px 0 8px; }
.prose p, .prose li { color: #453D6E; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 800; }

/* ===== Footer ===== */
.foot { margin-top: 30px; color: #E4DEFF; }
.foot-wave { display: block; width: 100%; height: 56px; fill: #4B30C9; margin-bottom: -1px; }
.foot-in { background: #4B30C9; padding: 16px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 40px; }
.foot h2 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.foot p { font-size: 15.5px; margin: 12px 0 0; font-weight: 600; }
.foot h2 + p { margin-top: 0; }
.foot nav a { display: block; color: #E4DEFF; text-decoration: none; font-weight: 700; padding: 4px 0; }
.foot nav a:hover { color: var(--sun); }
.foot-copy { margin-top: 26px; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, .15); font-size: 14.5px; font-weight: 700; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .play-layout { grid-template-columns: 1fr; }
  .play-side { position: static; }
  .side-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .ad-game-side { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .top-row { flex-wrap: wrap; gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .wm { font-size: 26px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero { grid-template-columns: 1fr; padding: 28px 24px 30px; border-radius: 30px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero-art { order: -1; min-height: 150px; }
  .hero-art img { width: 130px; }
  .float { font-size: 32px; }
  .f2, .f4 { font-size: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-feature { grid-template-columns: 1fr; }
  .card { padding: 6px; border-radius: 20px; }
  .card-media { border-radius: 15px; }
  .card-title { font-size: 18px; }
  .card-desc { font-size: 13.5px; }
  .card-tag { font-size: 11px; padding: 2px 8px; }
  .card-plays { font-size: 12px; padding: 1px 8px; }
  .card-stats { margin-top: 6px; }
  .card-likes { font-size: 12px; }
  .card-play { display: none; }
  .grid-feature .card-title { font-size: 22px; }
  .perks { grid-template-columns: 1fr; gap: 14px; }
  .stage { padding: 8px; border-radius: 24px; }
  .stage-frame { border-radius: 16px; }
  .stage-landscape .stage-frame { width: 100%; }
  .stage-bar { flex-direction: column; align-items: stretch; }
  .stage-tools { justify-content: stretch; }
  .tool { flex: 1; justify-content: center; white-space: nowrap; padding: 11px 10px; font-size: 14.5px; }
  .stage:fullscreen .stage-bar, .stage.is-full .stage-bar { flex-direction: row; align-items: center; }
  .stage:fullscreen .tool, .stage.is-full .tool { flex: 0 0 auto; }
  .stage:fullscreen .tool span, .stage.is-full .tool span { display: none; }
  .stage-thumb { margin-bottom: 56px; border-width: 4px; }
  .about { padding: 22px 20px; border-radius: 24px; }
  .prose { padding: 26px 22px; border-radius: 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .h-ico { width: 42px; height: 42px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.home-intro { margin-top: 30px; }
.home-intro h2 { display: block; }
