:root {
  --bg: #f6eadc;
  --bg-deep: #edd9c3;
  --surface: #fffaf3;
  --surface-2: #f8ead8;
  --ink: #4a2b2a;
  --ink-soft: #7c5646;
  --ink-mute: #6b5c4b;
  --line: #e4cbb0;
  --line-strong: #d5b493;
  --primary: #79c15f;
  --primary-edge: #4f9a3d;
  --primary-ink: #25381b;
  --accent: #f6c445;
  --accent-edge: #c98f1c;
  --accent-ink: #5a3510;
  --rose: #ec5f8a;
  --rose-soft: #f7c3d5;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px rgba(90, 48, 28, 0.10);
  --bevel: 0 4px 0 var(--line-strong);
  --font-display: 'Baloo 2', ui-rounded, system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12px 12px, rgba(196, 150, 110, 0.14) 1.5px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(180deg, #fbf3e9 0%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(251, 243, 233, 0.88);
  border-bottom: 1.5px solid rgba(228, 203, 176, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 13px;
  border-radius: 99px;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.lang-switch {
  display: inline-flex;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 2px;
  margin-left: 4px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(74, 43, 42, 0.12);
}

/* Main */
main {
  flex: 1;
  padding: 36px 0 64px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow), var(--bevel);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-ink);
  letter-spacing: 0.01em;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(121, 193, 95, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.04;
  margin: 14px 0 12px;
  letter-spacing: -0.015em;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-edge);
  box-shadow: 0 4px 0 var(--primary-edge);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--primary-edge);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 4px 0 var(--line);
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mute);
}

.meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Games Loading Showcase */
.games-loading-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 52px 36px;
  box-shadow: var(--shadow), var(--bevel);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.games-loading-card h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.08;
  margin: 4px 0 0;
  letter-spacing: -0.015em;
}

.games-loading-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 48ch;
}

.loading-track {
  width: min(360px, 100%);
  height: 14px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  padding: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.loading-fill {
  height: 100%;
  width: 42%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  animation: loading-glide 2.4s ease-in-out infinite;
}

@keyframes loading-glide {
  0% { transform: translateX(-30%); width: 32%; }
  50% { transform: translateX(85%); width: 48%; }
  100% { transform: translateX(-30%); width: 32%; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-fill { animation: none; width: 55%; }
}

.loading-status {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.showcase-card {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 20%, #fff7eb 0%, #f5dec5 100%);
  border: 2px solid var(--line-strong);
  overflow: hidden;
  padding: 0 20px 22px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(110, 60, 30, 0.12);
}

.awning {
  height: 30px;
  margin: 0 -20px 18px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0 24px,
    #fffaf3 24px 48px
  );
  border-bottom: 4px solid var(--primary-edge);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 0 rgba(74, 43, 42, 0.10);
}

.counter-stage {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.lokum-tray {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 14px 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--line);
}

.lokum-cube {
  width: 42px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 rgba(0, 0, 0, 0.08);
  animation: bob 2.6s ease-in-out infinite;
}

.lokum-rose { background: var(--rose); }
.lokum-pistachio { background: var(--primary); animation-delay: 0.25s; }
.lokum-lemon { background: var(--accent); animation-delay: 0.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .lokum-cube { animation: none; }
}

.counter-ticket {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.ticket-pill {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1.5px solid var(--accent-edge);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 800;
}

/* Sections */
.section {
  margin-top: 38px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--bevel);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.studio-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--bevel);
}

.studio-banner h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 8px;
}

.studio-banner p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-box {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.contact-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.contact-mail {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  word-break: break-word;
}

.contact-mail:hover {
  text-decoration: underline;
}

/* Legal & Document Pages */
.doc-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 26px;
  padding: 34px 36px;
  box-shadow: var(--shadow), var(--bevel);
}

.doc-card h1 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.doc-meta {
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.doc-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 24px 0 6px;
}

.doc-card p,
.doc-card li {
  color: var(--ink-soft);
}

.doc-card ul {
  padding-left: 20px;
  margin: 6px 0 12px;
}

.doc-note {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14.5px;
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto 16px;
}

.doc-tab {
  border: 2px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.doc-tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.doc-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--primary-edge);
  box-shadow: 0 3px 0 var(--line);
}

/* Footer */
.site-footer {
  border-top: 1.5px solid var(--line);
  background: rgba(255, 250, 243, 0.72);
  padding: 22px 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .hero,
  .studio-banner,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero,
  .doc-card {
    padding: 24px 20px;
  }
}
