/* OddGamez landing page — house style: deep purple, neon brights, sticker outlines */
:root {
  color-scheme: dark;
  /* Brand palette */
  --purple: #8C40FC;   /* Odd Purple */
  --yellow: #FAEF1B;   /* Bouncy Yellow */
  --pink:   #FF48B2;   /* Neon Pink */
  --cyan:   #36E3E1;   /* Fun Cyan */
  --orange: #FF8238;   /* Spry Orange */
  /* Surfaces */
  --bg: #1A0D45;
  --bg-raise: #261463;
  --bg-card: #2C1870;
  --ink: #140A36;      /* sticker outline */
  --text: #FFFFFF;
  --text-soft: #CFC3F7;
  --radius: 24px;
  --font: "Fredoka", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background-color: var(--bg);
  /* faint doodle wallpaper: controllers, stars, plus signs */
  background-image:
    radial-gradient(900px 600px at 50% -10%, rgba(140,64,252,.45), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 20v20M20 30h20'/%3E%3Ccircle cx='200' cy='40' r='12'/%3E%3Cpath d='M130 105l6 12 13 2-9 9 2 13-12-6-12 6 2-13-9-9 13-2z'/%3E%3Cpath d='M48 170h44c10 0 16 8 17 20 1 13-3 20-10 20-6 0-8-5-12-10H53c-4 5-6 10-12 10-7 0-11-7-10-20 1-12 7-20 17-20z'/%3E%3Cpath d='M52 182v14M45 189h14'/%3E%3Ccircle cx='86' cy='186' r='3'/%3E%3Ccircle cx='94' cy='194' r='3'/%3E%3Cpath d='M170 200q10-14 20 0t20 0t20 0'/%3E%3Cpath d='M225 120l8 8-8 8'/%3E%3Ccircle cx='130' cy='240' r='5'/%3E%3C/svg%3E");
  background-size: auto, 260px 260px;
  color: var(--text); font: 500 17px/1.6 var(--font);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); line-height: 1.08; margin: 0; letter-spacing: -.005em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }

.top, main, .foot { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }

/* Floating stickers */
.stickers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.st { position: absolute; animation: float 8s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); }
.st-star    { width: 58px; top: 14%; left: 5%;  rotate: -12deg; }
.st-smile   { width: 74px; top: 9%;  right: 7%; animation-delay: -2s; }
.st-pink    { width: 52px; top: 60%; left: 3%;  animation-delay: -4s; }
.st-bubbles { width: 78px; top: 44%; right: 3%; animation-delay: -1s; }
.st-spark   { width: 34px; top: 33%; left: 14%; animation-delay: -3s; }
.st-chev    { width: 34px; top: 80%; right: 12%; animation-delay: -5s; }
.st-star2   { width: 40px; top: 88%; left: 18%; rotate: 14deg; animation-delay: -6s; }
.st-pad     { width: 84px; top: 70%; right: 4%; rotate: 12deg; animation-delay: -7s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(8deg); } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; }
.brand img { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 99px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255,255,255,.1); color: var(--yellow); }

/* Hero + logo wordmark */
.hero { text-align: center; padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.logo {
  font-size: clamp(54px, 12.5vw, 138px); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  display: inline-flex; align-items: flex-end; justify-content: center; flex-wrap: wrap;
  padding-top: .3em;
  /* dark outer outline + chunky drop, around the white inner outline */
  filter: drop-shadow(3px 0 0 var(--ink)) drop-shadow(-3px 0 0 var(--ink)) drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 -3px 0 var(--ink)) drop-shadow(0 7px 0 var(--ink));
}
.lt {
  position: relative; display: inline-block; color: var(--c);
  -webkit-text-stroke: .11em #fff; paint-order: stroke fill;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
  animation: bob 3.2s ease-in-out infinite;
}
.lt:nth-child(2n) { animation-delay: -.4s; }
.lt:nth-child(3n) { animation-delay: -.9s; }
.lt:hover { transform: translateY(-.12em) rotate(-6deg); }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -.04em; } }
.dotcom { font-size: .62em; margin-left: .04em; }
.eyes { position: absolute; left: 50%; top: .07em; translate: -50% 0; display: flex; gap: .02em; }
.eyes i {
  width: .3em; height: .3em; border-radius: 50%; background: #fff; border: .045em solid var(--ink);
  position: relative; display: block;
}
.eyes i::after {
  content: ""; position: absolute; width: 48%; height: 48%; border-radius: 50%; background: var(--ink);
  left: 26%; top: 26%; transform: translate(var(--px, 0), var(--py, 0)); transition: transform .08s linear;
}
.tagline-brand {
  margin: 18px 0 0; font-weight: 600; font-size: clamp(18px, 3vw, 30px);
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.lead { max-width: 560px; margin: 16px auto 0; color: var(--text-soft); font-size: clamp(17px, 2.2vw, 19px); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.perks { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.perks span::before { content: "★ "; color: var(--yellow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 19px; padding: 12px 26px; border-radius: 99px;
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ink), 0 7px 0 3px var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn.primary { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: var(--bg-raise); color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--ink), 0 9px 0 3px var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 3px var(--ink), 0 3px 0 3px var(--ink); }

/* Badges & tags */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--pink); color: #fff; border: 3px solid #fff; border-radius: 12px;
  padding: 2px 12px; rotate: -7deg; box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px var(--ink);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 13px; font-weight: 600; padding: 2px 12px; border-radius: 99px;
  color: var(--accent, var(--cyan)); border: 2px solid currentColor;
  background: color-mix(in srgb, var(--accent, var(--cyan)) 14%, transparent);
}

/* Featured card */
.feat-card {
  display: grid; grid-template-columns: 1.35fr 1fr; text-decoration: none;
  background: var(--bg-card); border: 4px solid var(--accent); border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px var(--ink), 0 0 60px -10px color-mix(in srgb, var(--accent) 60%, transparent);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 0 0 4px var(--ink), 0 14px 0 4px var(--ink), 0 0 80px -6px color-mix(in srgb, var(--accent) 75%, transparent); }
.feat-media { position: relative; border-right: 4px solid var(--accent); background: var(--ink); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; }
.feat-body {
  padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--bg-card)), var(--bg-card) 65%);
}
.feat-label { margin: 0; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.feat-body h2 { font-size: clamp(30px, 3.6vw, 42px); }
.feat-body .tagline { margin: 0; font-weight: 600; font-size: 18px; }
.feat-body .desc { margin: 0; color: var(--text-soft); font-size: 16px; }
.feat-body .play { margin-top: auto; }

/* Games grid */
.games { padding-top: clamp(56px, 8vw, 90px); scroll-margin-top: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 7px; margin-top: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan)); }
.count { font-weight: 600; color: var(--text-soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--bg-card); border: 4px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-6px) rotate(.8deg); box-shadow: 0 0 0 3px var(--ink), 0 12px 0 3px var(--ink), 0 0 50px -8px var(--accent); }
a.card:nth-child(even):hover { transform: translateY(-6px) rotate(-.8deg); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-bottom: 4px solid var(--accent); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 24px; }
.card-body p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.play-dot {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ink);
  font-size: 14px; padding-left: 3px; transition: transform .2s;
}
a.card:hover .play-dot { transform: scale(1.12) rotate(-10deg); }

.card.soon {
  --accent: rgba(255,255,255,.28);
  border-style: dashed; box-shadow: none; background: rgba(255,255,255,.04);
  display: grid; place-items: center; min-height: 300px; text-align: center;
}
.soon-inner { padding: 24px; }
.soon-icon { font-size: 46px; animation: float 4s ease-in-out infinite; display: inline-block; }
.soon h3 { font-size: 24px; margin-top: 8px; }
.soon p { margin: 6px 0 0; color: var(--text-soft); font-size: 15px; }
.noscript { font-weight: 600; }

/* About */
.about { padding: clamp(56px, 8vw, 90px) 0 20px; scroll-margin-top: 20px; }
.about-card {
  display: flex; gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--purple), var(--pink));
  border: 4px solid #fff; border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 44px); box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px var(--ink);
}
.about-card h2 { font-size: clamp(28px, 3.6vw, 40px); }
.about-card p { margin: 12px 0 0; max-width: 660px; }
.about-card .small { opacity: .9; font-size: 15px; }
.about-face { flex: none; width: 112px; rotate: -8deg; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); animation: float 6s ease-in-out infinite; }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 36px 0 44px; color: var(--text-soft); font-weight: 600; font-size: 15px; }
.foot-fun { letter-spacing: .1em; text-transform: uppercase; }

/* 404 page helper */
.wiggle { color: var(--pink); display: inline-block; animation: wiggle 3.5s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wiggle { 0%,80%,100% { transform: rotate(0); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(4deg); } 95% { transform: rotate(-2deg); } }

/* Small screens */
@media (max-width: 820px) {
  .feat-card { grid-template-columns: 1fr; }
  .feat-media { border-right: 0; border-bottom: 4px solid var(--accent); aspect-ratio: 16 / 9; }
  .about-card { flex-direction: column; align-items: flex-start; }
  .about-face { width: 84px; }
}
@media (max-width: 560px) {
  .logo { filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(0 5px 0 var(--ink)); }
  .st-star, .st-smile, .st-bubbles, .st-spark, .st-pink { display: none; }
  .nav a { padding: 8px 10px; }
}

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

/* Brand logo image in the hero */
.logo-img { margin: 0 auto; width: min(860px, 100%); }
.logo-img img { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); animation: logo-pop .7s cubic-bezier(.3,1.5,.5,1) both; }
.logo-img:hover img { animation: logo-wiggle .6s ease-in-out; }
@keyframes logo-pop { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes logo-wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg) scale(1.02); } 75% { transform: rotate(1.5deg) scale(1.02); } }
.logo-img + .lead { margin-top: 22px; }
