/* Bemuko — site styles */
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/fredoka-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/fredoka-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --sand: #f6e6cf;
  --ink: #1d2235;
  --ink-soft: #5d6075;
  --tomato: #f26b0f;
  --tomato-dark: #c4500a;
  --leaf: #3f8a45;
  --leaf-soft: #e3f1dc;
  --honey: #f3b23c;
  --plum: #7a4b8c;
  --line: #ecd8bd;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(29, 34, 53, .10);
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.65 var(--body); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tomato-dark); text-underline-offset: 3px; }
a:hover { color: var(--tomato); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

/* language switching: elements carry lang="en" / lang="tr"; html[data-lang] picks one */
html[data-lang="en"] :is([lang="tr"], [lang="es"]):not(html),
html[data-lang="tr"] :is([lang="en"], [lang="es"]):not(html),
html[data-lang="es"] :is([lang="en"], [lang="tr"]):not(html) { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 247, 236, .9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand { gap: 8px; }
.brand-icon { height: 44px; width: auto; }
.brand-word { height: 36px; width: auto; }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 1.02rem;
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.lang-menu { position: relative; margin-left: 6px; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 600 .9rem var(--display); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px;
}
.lang-current:hover, .lang-menu.open .lang-current { background: var(--sand); }
.lang-current .chev { transition: transform .15s ease; }
.lang-menu.open .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 150px;
  list-style: none; margin: 0; padding: 6px; background: var(--paper);
  border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.lang-list[hidden] { display: none; }
.lang-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  font: 500 .98rem var(--display); color: var(--ink); text-align: left; cursor: pointer;
  background: transparent; border: 0; border-radius: 10px; padding: 8px 12px;
}
.lang-list button:hover, .lang-list button:focus-visible { background: var(--sand); outline: none; }
.lang-list button[aria-checked="true"] { color: var(--tomato-dark); font-weight: 600; }
.lang-list button[aria-checked="true"]::after { content: "✓"; }

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 8px; padding-top: 8px; padding-bottom: 6px; min-height: 0; }
  .nav { width: 100%; margin: 4px 0 0; justify-content: space-between; }
  .nav a { padding: 6px 8px; font-size: .95rem; }
  .brand-icon { height: 34px; }
  .brand-word { height: 30px; }
  .site-header .lang-menu { margin-left: auto; }
  .lang-current { padding: 4px 10px; font-size: .85rem; }
}

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.05rem var(--display); text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 0;
  background: var(--tomato); color: #fff; box-shadow: 0 5px 0 var(--tomato-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--tomato-dark); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 var(--line); border: 2px solid var(--line); }
.btn.ghost:hover { color: var(--ink); }
.chip {
  display: inline-block; font: 600 .8rem var(--display); letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--honey); color: var(--ink);
}
.chip.green { background: var(--leaf-soft); color: var(--leaf); }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  /* soft gingham made with gradients — no image needed */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    linear-gradient(90deg, rgba(242, 107, 15, .09) 50%, transparent 0) 0 0 / 56px 56px,
    linear-gradient(rgba(242, 107, 15, .09) 50%, transparent 0) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero h1 em { font-style: normal; color: var(--tomato); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hero-art .plate {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 40%, var(--sand) 41% 62%, #f0d6b4 63% 100%);
  box-shadow: var(--shadow);
}
.hero-art img { position: absolute; filter: drop-shadow(0 8px 10px rgba(80, 45, 20, .2)); }
.hero-art .basket { width: 56%; left: 22%; top: 24%; }
.hero-art .f1 { width: 26%; left: 2%; top: 6%; transform: rotate(-12deg); }
.hero-art .f2 { width: 24%; right: 2%; top: 4%; transform: rotate(10deg); }
.hero-art .f3 { width: 24%; left: 0; bottom: 4%; transform: rotate(8deg); }
.hero-art .f4 { width: 25%; right: 0; bottom: 6%; transform: rotate(-8deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .f1, .hero-art .f2, .hero-art .f3, .hero-art .f4 { animation: bob 5s ease-in-out infinite; }
  .hero-art .f2 { animation-delay: -1.2s; } .hero-art .f3 { animation-delay: -2.5s; } .hero-art .f4 { animation-delay: -3.7s; }
}
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 320px; order: -1; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.game-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 40px rgba(84, 52, 24, .18); color: var(--ink); }
.game-card .cover {
  aspect-ratio: 16 / 10; background: #7cb86a center 40% / cover no-repeat;
  display: grid; place-items: center; padding: 18px;
}
.game-card .cover img { width: 82%; max-width: 360px; filter: drop-shadow(0 6px 10px rgba(60, 30, 10, .35)); }
.game-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card .body p { color: var(--ink-soft); margin: 0; }
.game-card .chip { position: absolute; top: 14px; left: 14px; }
.game-card .more { margin-top: auto; padding-top: 10px; font: 600 1rem var(--display); color: var(--tomato-dark); }
.game-card.soon .cover {
  background:
    repeating-linear-gradient(45deg, var(--sand) 0 14px, var(--cream) 14px 28px);
}
.game-card.soon .cover .mystery {
  width: 96px; height: 96px; border-radius: 28px; background: var(--paper); border: 3px dashed var(--ink-soft);
  display: grid; place-items: center; font: 700 2.6rem var(--display); color: var(--ink-soft);
}

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: var(--cream); border-radius: var(--radius); padding: 26px; border: 2px solid var(--line); }
.value .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.7rem; }
.value:nth-child(1) .icon { background: #ffe1d8; } .value:nth-child(2) .icon { background: var(--leaf-soft); } .value:nth-child(3) .icon { background: #fdeccb; }
.value p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* contact strip */
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--ink); color: var(--cream); border-radius: calc(var(--radius) + 6px); padding: 36px 40px;
}
.cta-box h2 { color: #fff; margin-bottom: .2em; }
.cta-box p { margin: 0; color: #c9ccdb; }
.cta-box .btn { background: var(--honey); color: var(--ink); box-shadow: 0 5px 0 #c98d1f; }
@media (max-width: 640px) { .cta-box { padding: 28px 22px; } }

/* ---------- game page ---------- */
.game-hero {
  position: relative; color: #fff; text-align: center;
  background: #6aa95c url(/assets/img/picnicfit-bg.webp) center 45% / cover no-repeat;
  padding: 64px 0 80px; overflow: hidden;
}
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 50, 20, .05), rgba(30, 50, 20, .45)); z-index: 0; }
.game-hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.game-hero .logo { width: min(560px, 92%); filter: drop-shadow(0 10px 16px rgba(40, 20, 5, .35)); margin-bottom: 18px; }
.game-hero .tagline {
  font: 600 clamp(1.15rem, 2.6vw, 1.5rem) var(--display); background: rgba(51, 36, 26, .72);
  padding: 8px 20px; border-radius: 999px; margin-bottom: 26px;
}
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 190px; padding: 9px 20px; border-radius: 14px;
  background: #1d1611; color: #fff; text-decoration: none; border: 2px solid rgba(255, 255, 255, .25);
}
.store small { font: 500 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.store b { font: 600 1.2rem var(--display); }
.store.disabled { opacity: .85; cursor: default; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 22px; text-align: center; counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; top: -14px; left: 50%; translate: -50% 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--tomato); color: #fff;
  font: 700 .95rem/30px var(--display);
}
.step img { width: 96px; height: 96px; object-fit: contain; margin: 4px auto 12px; }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
@media (max-width: 460px) { .steps { gap: 14px; row-gap: 30px; } .step { padding: 22px 12px 16px; } .step img { width: 72px; height: 72px; } .step p { font-size: .9rem; } }
@media (max-width: 330px) { .steps { grid-template-columns: 1fr; } }

.food-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.food-strip img {
  width: 76px; height: 76px; object-fit: contain; padding: 8px; background: var(--paper);
  border-radius: 20px; border: 2px solid var(--line);
}
.food-strip img:nth-child(odd) { transform: rotate(-4deg); } .food-strip img:nth-child(even) { transform: rotate(3deg); }
@media (max-width: 460px) { .food-strip img { width: 62px; height: 62px; } }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; padding: 0; margin: 0; list-style: none; }
.feature-list li { padding-left: 34px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(242, 107, 15, .85) 50%, rgba(242, 107, 15, .4) 0) 0 0 / 10px 10px, #fff;
}
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

.notify { text-align: center; max-width: 620px; margin: 0 auto; }

/* ---------- legal / text pages ---------- */
.page-head { padding: 52px 0 18px; }
.page-head p { color: var(--ink-soft); }
.prose { max-width: 780px; padding-bottom: 72px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; color: var(--tomato-dark); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; } .prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--sand); font-family: var(--display); font-weight: 600; }
.meta { font-size: .92rem; color: var(--ink-soft); }
.note { background: #fff1d6; border: 2px dashed var(--honey); border-radius: 14px; padding: 14px 18px; font-size: .95rem; }
.toc { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 16px 22px; margin: 18px 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 24px 0; }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .cards-2 { grid-template-columns: 1fr; } }
.mail { font: 600 1.15rem var(--display); word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: #1d2235; color: #e3e5ee; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #ffb878; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { font: 600 1rem var(--display); color: #fff; margin: 0 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; font-size: .95rem; }
.footer-logo { display: inline-block; background: var(--cream); border-radius: 18px; padding: 10px 16px; margin-bottom: 14px; }
.footer-logo img { width: 150px; }
.site-footer p { font-size: .95rem; color: #b9bdd0; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .88rem; color: #9da2b8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* 404 */
.lost { text-align: center; padding: 90px 0 110px; }
.lost img { width: 140px; margin: 0 auto 18px; }
