/* =========================================================
   Ossi Anna Games — main stylesheet (light, colorful theme)
   ========================================================= */
:root {
  --bg: #fffdf7;
  --surface: #ffffff;
  --line: #ebe6f0;
  --line-strong: #d8d1e2;
  --text: #1c1530;
  --muted: #4a4360;
  --red: #ef4444;
  --red-d: #dc2626;
  --yellow: #facc15;
  --orange: #f59e0b;
  --green: #22c55e;
  --green-d: #16a34a;
  --pink: #ec4899;
  --pink-d: #db2777;
  --blue: #3b82f6;
  --shadow: 0 12px 32px -14px rgba(28, 21, 48, .22);
  --radius: 22px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--text);
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* colored words */
.c-red { color: var(--red-d); }
.c-green { color: var(--green-d); }
.c-pink { color: var(--pink-d); }
.c-blue { color: #2563eb; }
.marker {
  background: linear-gradient(transparent 55%, #fde047 55%, #fde047 92%, transparent 92%);
  padding: 0 .08em;
}

/* ---------- background effects ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 24s ease-in-out infinite alternate; }
.b1 { width: 480px; height: 480px; background: var(--pink); top: -180px; left: -140px; }
.b2 { width: 440px; height: 440px; background: var(--yellow); top: 30%; right: -160px; opacity: .3; animation-delay: -8s; }
.b3 { width: 420px; height: 420px; background: var(--green); bottom: -200px; left: 25%; opacity: .16; animation-delay: -16s; }
.grid-fx {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28, 21, 48, .07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem;
  white-space: nowrap; color: var(--text);
}
.brand img { width: 42px; height: 42px; }
.brand b { font-weight: 700; color: var(--pink-d); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 800; font-size: 1rem; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--pink-d); }
.nav-links a.btn { color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px; border-radius: 12px;
  background: #fff; border: 2px solid var(--line-strong); cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 22px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a.btn { margin-top: 14px; border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-grad { background: var(--pink-d); color: #fff; box-shadow: 0 10px 24px -10px rgba(219, 39, 119, .7); }
.btn-grad:hover { background: #be185d; }
.btn-ghost { background: #fff; color: var(--text); border: 2px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-amazon { background: var(--yellow); color: var(--text); box-shadow: 0 10px 22px -12px rgba(202, 138, 4, .8); }
.btn-amazon:hover { background: #fbbf24; }
.btn-sm { padding: 11px 20px; font-size: .95rem; }
.btn[disabled], .btn.is-disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: #fff1f7; border: 1.5px solid #fbcfe8;
  color: #be185d; font-weight: 900; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- hero ---------- */
.hero { padding: 80px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; margin: 22px 0 18px; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 560px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 42px; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.stats li {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 20px; box-shadow: var(--shadow); min-width: 120px;
}
.stats strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stats li:nth-child(1) strong { color: var(--red-d); }
.stats li:nth-child(2) strong { color: var(--green-d); }
.stats li:nth-child(3) strong { color: var(--pink-d); }
.stats span { color: var(--muted); font-size: .9rem; font-weight: 800; }

.hero-art { display: flex; justify-content: center; perspective: 1200px; }
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  width: min(100%, 420px);
  transform: rotateX(12deg) rotateY(-18deg) rotateZ(3deg);
}
.tile {
  aspect-ratio: 1; border-radius: 26px; display: grid; place-items: center;
  box-shadow: 0 20px 34px -16px rgba(28, 21, 48, .45), inset 0 1px 0 rgba(255,255,255,.45);
  animation: float 6s ease-in-out infinite;
}
.tile svg { width: 44%; height: 44%; fill: #fff; filter: drop-shadow(0 3px 6px rgba(0,0,0,.2)); }
.tile img { width: 72%; height: 72%; border-radius: 20px; }
.tile:nth-child(1) { background: linear-gradient(135deg, #f87171, #dc2626); animation-delay: 0s; }
.tile:nth-child(2) { background: linear-gradient(135deg, #f472b6, #db2777); animation-delay: -1s; }
.tile:nth-child(3) { background: linear-gradient(135deg, #fde047, #f59e0b); animation-delay: -2s; }
.tile:nth-child(4) { background: linear-gradient(135deg, #4ade80, #16a34a); animation-delay: -3s; }
.tile:nth-child(5) { background: #fff; border: 1px solid var(--line); animation-delay: -1.5s; }
.tile:nth-child(6) { background: linear-gradient(135deg, #60a5fa, #2563eb); animation-delay: -4s; }
.tile:nth-child(7) { background: linear-gradient(135deg, #fde047, #f59e0b); animation-delay: -2.5s; }
.tile:nth-child(8) { background: linear-gradient(135deg, #f87171, #dc2626); animation-delay: -3.5s; }
.tile:nth-child(9) { background: linear-gradient(135deg, #4ade80, #16a34a); animation-delay: -.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 920px) {
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tiles { width: min(78%, 330px); gap: 14px; }
  .tile { border-radius: 20px; }
}

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin: 16px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.filters:empty { display: none; }
.chip {
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line-strong); background: #fff;
  color: var(--text); font-family: inherit; font-weight: 800; font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--text); }
.chip.active { color: #fff; background: var(--text); border-color: var(--text); }

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.game-card {
  --accent: #ec4899;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 44px -20px color-mix(in srgb, var(--accent) 70%, transparent);
}
.game-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.game-cover {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,.45), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
}
.game-cover .banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-cover .icon {
  position: relative; width: 40%; aspect-ratio: 1; border-radius: 22%; object-fit: cover;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.45);
  transition: transform .4s;
}
.game-cover .initials {
  position: relative; width: 40%; aspect-ratio: 1; border-radius: 22%;
  display: grid; place-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.2);
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.35);
  transition: transform .4s;
}
.game-card:hover .icon, .game-card:hover .initials { transform: scale(1.08) rotate(-3deg); }
.ribbon {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 13px; border-radius: 999px;
  background: #fff; color: var(--text); font-weight: 900; font-size: .74rem; letter-spacing: .08em;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.25);
}
.ribbon.soon { background: var(--text); color: #fff; }
.game-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.badge {
  align-self: flex-start; margin-bottom: 10px;
  font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: color-mix(in srgb, var(--accent) 65%, #000);
}
.game-card h3 { font-size: 1.4rem; margin: 0 0 6px; }
.game-card p { color: var(--muted); margin: 0 0 14px; font-size: 1rem; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.platforms span {
  font-size: .8rem; font-weight: 800; color: var(--muted);
  border: 1.5px solid var(--line-strong); padding: 3px 11px; border-radius: 999px;
}
.game-actions { margin-top: auto; display: flex; gap: 10px; }
.game-actions .btn { flex: 1; padding: 13px 14px; font-size: .96rem; }

/* coming-soon placeholder cards */
.game-card.mystery { cursor: default; }
.game-card.mystery:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.game-card.mystery .game-cover {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
}
.game-card.mystery .initials { font-size: 3rem; animation: float 5s ease-in-out infinite; }
.skeleton { height: 12px; border-radius: 6px; background: #efeaf4; margin-bottom: 10px; }
.skeleton.w70 { width: 70%; }
.skeleton.w45 { width: 45%; height: 22px; margin-bottom: 14px; }

.empty-note { text-align: center; color: var(--muted); margin-top: 30px; font-weight: 700; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s;
}
.feature:hover { transform: translateY(-4px); }
.feature .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 28px; height: 28px; fill: #fff; }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--muted); margin: 0; }
.feature a { color: var(--pink-d); font-weight: 800; }
.ic-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.ic-yellow { background: linear-gradient(135deg, #fde047, #f59e0b); }
.ic-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- support box ---------- */
.support-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center;
  padding: 56px; border-radius: 30px; border: 1px solid #fde68a;
  background: linear-gradient(120deg, #ffe4ef 0%, #fff5cc 50%, #dcfce7 100%);
}
.support-box h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-top: 14px; }
.support-box p { color: #3a3350; margin: 0; }
.contact-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.contact-card .label { font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card .email {
  display: block; margin: 6px 0 18px; font-family: "Fredoka", sans-serif; font-size: 1.2rem; font-weight: 600;
  word-break: break-all; text-decoration: none; color: var(--text);
}
.contact-card .email:hover { color: var(--pink-d); text-decoration: underline; }
.contact-card .btn { width: 100%; }
.contact-card small { display: block; margin-top: 14px; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .support-box { grid-template-columns: 1fr; padding: 34px 24px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0; margin-top: 30px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 800; color: var(--text); }
.footer-links a:hover { color: var(--pink-d); }
.footer-note { margin-top: 18px; font-size: .85rem; }

/* ---------- modal ---------- */
dialog.modal {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: calc(100% - 32px); max-width: 720px; max-height: calc(100vh - 40px);
}
dialog.modal::backdrop { background: rgba(28, 21, 48, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card {
  --accent: #ec4899;
  position: relative; background: #fff; border-radius: 26px;
  overflow: hidden auto; max-height: calc(100vh - 40px);
  box-shadow: 0 30px 60px -20px rgba(28, 21, 48, .5);
}
.modal-card .game-cover { aspect-ratio: 16 / 7; }
.modal-card .game-cover .icon, .modal-card .game-cover .initials { width: 26%; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3);
}
.modal-close:hover { background: #f3f0f7; }
.modal-body { padding: 28px 30px 32px; }
.modal-body h3 { font-size: 2rem; margin: 0 0 8px; }
.modal-body .desc p { color: #2e2743; margin: 0 0 12px; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 6px 0 14px; margin: 8px 0 10px; scroll-snap-type: x mandatory; }
.shots img { height: 280px; width: auto; border-radius: 14px; scroll-snap-align: start; border: 1px solid var(--line); }
@media (max-width: 560px) { .shots img { height: 220px; } }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 560px) {
  .modal-body { padding: 22px 20px 26px; }
  .modal-actions .btn { flex: 1 1 100%; }
}

/* ---------- privacy policy page ---------- */
.page-hero { padding: 66px 0 34px; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 18px 0 10px; }
.page-hero p { color: var(--muted); margin: 0; font-weight: 700; }
.policy-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.toc {
  position: sticky; top: 98px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow);
}
.toc h4 { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a {
  display: flex; gap: 10px; padding: 6px 0; font-size: .95rem; font-weight: 700;
  color: var(--text); text-decoration: none; line-height: 1.35;
}
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--pink-d); font-size: .8rem; font-weight: 900; padding-top: 2px; }
.toc a:hover { color: var(--pink-d); }
.policy {
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 48px;
  box-shadow: var(--shadow); min-width: 0;
}
.policy h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; scroll-margin-top: 98px; }
.policy h2:first-of-type { margin-top: 0; }
.policy h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.policy p, .policy li { color: #2e2743; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 6px; }
.policy a { color: #be185d; font-weight: 700; }
.policy strong { color: var(--text); }
.callout { border-radius: 16px; padding: 18px 20px; margin: 18px 0; background: #fff7d6; border: 1.5px solid #fde68a; }
.callout p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 16px; }
.policy table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.policy th, .policy td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy th { background: #faf7fd; font-weight: 900; color: var(--text); }
.policy tr:last-child td { border-bottom: 0; }
@media (max-width: 920px) {
  .policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .policy { padding: 30px 22px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
