/* ZykoGames — bright, modern, friendly. */
:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --ink: #14162b;
  --ink-2: #4b4f6a;
  --muted: #8a8ea8;
  --line: #e6e8f2;
  --violet: #6c4cff;
  --pink: #ff4f9a;
  --sun: #ffb020;
  --grad: linear-gradient(120deg, #6c4cff, #ff4f9a 60%, #ffb020);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,22,43,.05), 0 6px 18px rgba(20,22,43,.06);
  --shadow-lg: 0 18px 40px -14px rgba(20,22,43,.35);
  --head: 'Outfit', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3, .sec { font-family: var(--head); font-weight: 700; letter-spacing: -0.015em; }

/* ---------------- header ---------------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgba(20,22,43,.25); }
.top-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; filter: drop-shadow(0 4px 8px rgba(108,76,255,.3)); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.logo span { font-family: var(--head); font-size: 25px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.logo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { flex: 1; max-width: 560px; margin: 0 auto; }
.search input { width: 100%; height: 44px; border: 2px solid transparent; border-radius: 22px; background: #eef0f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238a8ea8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5l4 4'/%3E%3C/svg%3E") no-repeat 16px center; padding: 0 18px 0 44px; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { background-color: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,76,255,.12); }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.streak { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 19px; background: #fff4e0; color: #b25f00; font-family: var(--head); font-weight: 700; font-size: 15px; }
.saved-link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.saved-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(20,22,43,.6); }
.saved-link .heart { color: var(--pink); font-size: 17px; }
.saved-link i { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.menu-btn { display: none; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-top: 4px; padding-bottom: 12px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 19px; background: #fff; border: 1px solid var(--line); font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: border-color .15s, color .15s, transform .15s; }
.cats a:hover { color: var(--ink); border-color: #cfd3e6; transform: translateY(-1px); }
.cats a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ci { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: color-mix(in srgb, var(--t) 14%, white); }
.cats a.on .ci { background: rgba(255,255,255,.16); }

/* ---------------- hero ---------------- */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 22px; margin-top: 26px; }
.gotd { position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: 26px; overflow: hidden; background: linear-gradient(var(--c1), var(--c2)); color: #fff; box-shadow: var(--shadow-lg); isolation: isolate; }
.gotd-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) saturate(1.3); transform: scale(1.1); z-index: -2; }
.gotd::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,34,.82) 0%, rgba(14,15,34,.45) 55%, rgba(14,15,34,.1)); z-index: -1; }
.gotd-text { padding: 34px; max-width: 58%; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.gotd h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1; margin: 14px 0 10px; }
.gotd p { margin: 0 0 22px; font-size: 16px; color: rgba(255,255,255,.85); }
.btn-play { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 25px; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 17px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .2s; }
.gotd:hover .btn-play { transform: translateY(-2px) scale(1.03); }
.gotd-art { position: absolute; right: 34px; top: 50%; width: 30%; max-width: 230px; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; transform: translateY(-50%) rotate(4deg); box-shadow: 0 24px 40px -14px rgba(0,0,0,.6); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.gotd:hover .gotd-art { transform: translateY(-52%) rotate(1deg) scale(1.03); }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.welcome { background: var(--surface); border-radius: 22px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
.welcome h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.15; }
.welcome h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome p { margin: 0; color: var(--ink-2); font-size: 14px; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 9px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.mini:hover { transform: translateX(3px); box-shadow: var(--shadow-lg); }
.mini img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.mini span { flex: 1; min-width: 0; }
.mini b { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { color: var(--muted); font-size: 12px; }
.mini i { width: 34px; height: 34px; border-radius: 50%; background: #f0edff; color: var(--violet); display: grid; place-items: center; font-style: normal; font-size: 12px; flex-shrink: 0; transition: background .2s, color .2s; }
.mini:hover i { background: var(--violet); color: #fff; }

/* ---------------- sections ---------------- */
section.wrap { margin-top: 40px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sec { margin: 0; font-size: 24px; }
.more { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--violet); padding: 6px 12px; border-radius: 14px; background: #f0edff; transition: background .2s; }
.more:hover { background: #e3dcff; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; margin: -4px -4px 0; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 22px 16px; }
.card { display: block; }
.thumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(var(--c1), var(--c2)); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.9,.3,1.2), box-shadow .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:hover .thumb img { transform: scale(1.06); }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 10px; background: var(--sun); color: #3d2600; font-family: var(--head); font-weight: 700; font-size: 11px; }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #c4c7d8; font-size: 16px; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s, color .2s; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.card:hover .fav, .fav.on { opacity: 1; transform: scale(1); }
.fav.on { color: var(--pink); }
.fav:hover { transform: scale(1.12); }
.play-ic { position: absolute; left: 50%; bottom: 14px; width: 48px; height: 48px; margin-left: -24px; border-radius: 50%; background: #fff; color: var(--violet); display: grid; place-items: center; font-size: 16px; padding-left: 3px; box-shadow: 0 8px 18px rgba(0,0,0,.25); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.card:hover .play-ic { opacity: 1; transform: translateY(0); }
.meta { padding: 10px 4px 0; }
.meta b { display: block; font-family: var(--head); font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta small { color: var(--muted); font-size: 12.5px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--t) 10%, white); border: 1px solid color-mix(in srgb, var(--t) 18%, white); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile span { font-size: 28px; margin-bottom: 6px; }
.tile b { font-family: var(--head); font-weight: 700; font-size: 17px; color: color-mix(in srgb, var(--t) 70%, var(--ink)); }
.tile small { color: var(--ink-2); font-size: 12.5px; }
.tile::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--t); opacity: .12; }
.empty { color: var(--muted); }
.seo { max-width: 820px; padding: 26px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.seo h2 { font-size: 20px; margin: 0 0 6px; }
.seo p { color: var(--ink-2); margin: 0; }

/* ---------------- page tops ---------------- */
.page-top { margin-top: 30px !important; }
.page-h { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.page-sub { color: var(--ink-2); margin: 6px 0 0; }
.cat-hero { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: 24px; background: color-mix(in srgb, var(--t) 12%, white); }
.cat-hero > span { width: 70px; height: 70px; border-radius: 22px; background: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: var(--shadow); }
.empty-box { text-align: center; padding: 34px 20px; background: var(--surface); border-radius: 20px; border: 2px dashed var(--line); }
.empty-box b { font-family: var(--head); font-size: 18px; }
.empty-box p { color: var(--ink-2); margin: 6px 0 16px; }
.empty-box .btn-play { background: var(--ink); color: #fff; height: 44px; font-size: 15px; }

/* ---------------- game page ---------------- */
.crumbs { margin-top: 18px; display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--violet); }
section.game-top { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stage-box { display: flex; justify-content: center; padding: 22px; border-radius: 26px; background: radial-gradient(120% 120% at 50% 0%, #2a2d52, #14162b 70%); box-shadow: var(--shadow-lg); }
.player { position: relative; height: min(74vh, 740px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(var(--c1), var(--c2)); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.7); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player:fullscreen { border-radius: 0; height: 100%; aspect-ratio: auto; }
.cover { position: absolute; inset: 0; }
.cover > img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.5) saturate(1.3); transform: scale(1.15); }
.cover-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; text-align: center; color: #fff; }
.cover-icon { width: 120px; height: 160px; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 36px -10px rgba(0,0,0,.7); }
.cover-in b { font-family: var(--head); font-weight: 800; font-size: 32px; line-height: 1.05; }
.cover-in small { color: rgba(255,255,255,.7); font-size: 13px; }
.play-btn { height: 56px; padding: 0 38px; border: 0; border-radius: 28px; background: var(--grad); color: #fff; font-family: var(--head); font-weight: 700; font-size: 19px; box-shadow: 0 14px 30px -10px rgba(255,79,154,.8); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px 18px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.gb-title h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a, .tags span { padding: 3px 10px; border-radius: 10px; background: #f0edff; color: var(--violet); font-family: var(--head); font-weight: 600; font-size: 12.5px; }
.tags .new { background: #fff1d6; color: #9a5a00; }
.gb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.act { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-family: var(--head); font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s, color .15s; }
.act:hover { border-color: #cfd3e6; background: #f7f8fc; }
.act em { font-style: normal; }
.fav-btn span { color: #c4c7d8; }
.fav-btn.on { background: #ffe8f2; border-color: #ffc4dc; color: #c41c6a; }
.fav-btn.on span { color: var(--pink); }
.about { margin-top: 16px; padding: 22px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.about .lead { font-family: var(--head); font-weight: 600; font-size: 18px; margin: 0 0 8px; }
.about p { color: var(--ink-2); margin: 0 0 10px; }
.about-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 8px; }
.about h2 { font-size: 17px; margin: 10px 0 6px; }
.about ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.about li { margin-bottom: 3px; }
.upnext { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 10px; }
.upnext h2 { font-size: 20px; margin: 0 0 4px; }
.ad-slot { margin: 18px 0; min-height: 100px; }

/* ---------------- text pages ---------------- */
section.prose { max-width: 760px; margin-top: 30px; padding: 30px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); }
.prose .page-h { margin-bottom: 14px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; }
.prose h2 { font-size: 20px; margin: 26px 0 4px; }
.prose a { color: var(--violet); font-weight: 500; }
.prose .mail { font-family: var(--head); font-size: 22px; color: var(--ink); }
.center { text-align: center; margin: 0 auto; }

/* ---------------- footer ---------------- */
.foot { margin-top: 70px; background: var(--ink); color: #c8cbe0; padding: 46px 0 26px; }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot .logo span { color: #fff; }
.foot-brand p { max-width: 340px; font-size: 14px; margin: 12px 0 0; color: #9da1bd; }
.foot-cols { display: flex; gap: 56px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav b { font-family: var(--head); color: #fff; font-weight: 600; margin-bottom: 4px; }
.foot nav a { font-size: 14px; color: #9da1bd; }
.foot nav a:hover { color: #fff; }
.copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #73779a; }

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: column; }
  section.game-top { grid-template-columns: 1fr; }
  .upnext { position: static; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; gap: 10px; flex-wrap: wrap; }
  .logo img { width: 34px; height: 34px; }
  .logo span { font-size: 21px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 10px; }
  .search input { height: 40px; }
  .top-in { height: auto; padding-top: 10px; }
  .top-actions { margin-left: auto; }
  .saved-link .lbl { display: none; }
  .saved-link { width: 40px; padding: 0; justify-content: center; }
  .cats { padding-bottom: 10px; }
  .cats a { height: 34px; font-size: 13px; }
  .ci { width: 24px; height: 24px; font-size: 12px; }
  .hero { margin-top: 16px; }
  .gotd { min-height: 300px; border-radius: 22px; }
  .gotd-text { max-width: 62%; padding: 22px; }
  .gotd p { font-size: 14px; }
  .gotd-art { right: 16px; width: 34%; }
  .btn-play { height: 44px; padding: 0 20px; font-size: 15px; }
  .welcome { display: none; }
  section.wrap { margin-top: 30px; }
  .sec { font-size: 20px; }
  .rail { grid-auto-columns: 138px; gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .fav { opacity: 1; transform: scale(1); width: 30px; height: 30px; font-size: 14px; }
  .meta b { font-size: 15px; }
  .stage-box { padding: 10px; border-radius: 20px; }
  .player { height: auto; width: 100%; max-height: 72vh; }
  .about-cols { grid-template-columns: 1fr; gap: 4px; }
  .foot-cols { gap: 36px; }
}

/* full screen button in the stage's bottom-right corner */
.stage-box { position: relative; }
.stage-fs { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 23px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); color: #fff; font-family: var(--head); font-weight: 600; font-size: 15px; transition: background .2s, transform .2s, border-color .2s; }
.stage-fs:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.stage-fs svg { flex-shrink: 0; }
@media (max-width: 1000px) { .stage-fs span { display: none; } .stage-fs { width: 46px; padding: 0; justify-content: center; } }
@media (max-width: 720px) { .stage-fs { display: none; } }
