/* Kral Tırpan — the game's site: the menu's wood, cream and hazel green, the game's own badges. */
:root {
  --wood: #6b4a2c;
  --wood-dark: #3e2a17;
  --wood-deep: #2a1c0f;
  --cream: #f6eedb;
  --paper: #fffaf0;
  --ink: #2b2118;
  --muted: #6e6255;
  --green: #3f8f2f;
  --green-dark: #2c6a20;
  --leaf: #8cc63f;
  --orange: #f07b1d;
  --gold: #ffcf3a;
  --line: #e4d7bb;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---- The bar along the top. */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(42, 28, 15, 0.92); backdrop-filter: blur(8px); color: var(--cream); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 900; letter-spacing: 0.02em; font-size: 18px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.bar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.bar nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.bar nav a:hover, .bar nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.14); }

/* ---- The opening: the game's own painted cover, the logo over it. */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  place-items: center;
  color: #fff;
  background: #2d4a1f url('img/kapak.jpg') center 30% / cover no-repeat;
  text-align: center;
  padding: 56px 0 96px;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 30%, rgba(20, 12, 4, 0.55) 100%), linear-gradient(180deg, rgba(20, 14, 6, 0) 50%, rgba(20, 14, 6, 0.7)); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--cream); clip-path: ellipse(70% 100% at 50% 100%); }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero .logo { width: min(500px, 82%); filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero p { margin: 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); max-width: 680px; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 22px 10px 16px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.store svg { width: 30px; height: 30px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store small { font-size: 12px; opacity: 0.85; font-weight: 700; }
.store b { font-size: 21px; }

/* ---- The numbers, on the game's wooden board. */
.board {
  position: relative; z-index: 2; margin-top: -40px;
  background: linear-gradient(180deg, #8a5a2b, #6b431d);
  border: 4px solid #4a2e14; border-radius: 22px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 12px 28px rgba(60, 35, 10, 0.35);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px;
}
.stat { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: #fff3da; }
.stat img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.stat b { display: block; font-size: 26px; line-height: 1; color: var(--gold); text-shadow: 0 2px 0 #4a2e14; }
.stat span { font-size: 14px; font-weight: 800; }

/* ---- Sections. */
section { padding: 72px 0; }
section.alt { background: var(--paper); border-block: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.2; color: var(--wood-dark); }
.kicker { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); background: #e3f1d3; border-radius: 99px; padding: 4px 12px; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; font-weight: 900; }
.lead { color: var(--muted); margin: 0 auto 36px; font-size: 19px; max-width: 720px; }
.center { text-align: center; }

/* A feature: the picture in a phone held sideways, its words beside it (sides swapped every other one). */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .phone { order: 2; }
.phone {
  position: relative; background: #111; border-radius: 34px; padding: 12px;
  box-shadow: 0 0 0 2px #333, 0 22px 50px rgba(45, 30, 12, 0.35);
}
.phone::before { content: ''; position: absolute; left: 4px; top: 50%; width: 5px; height: 46px; margin-top: -23px; background: #2a2a2a; border-radius: 4px; }
.phone img { border-radius: 24px; aspect-ratio: 2868 / 1320; object-fit: cover; width: 100%; }
.feature h3 { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 10px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.feature h3 img { width: 48px; height: 48px; object-fit: contain; }
.feature p { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 700; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* The small pictures in a row (the other village jobs). */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 22px rgba(74, 50, 29, 0.1); transition: transform 0.2s; }
.tile:hover { transform: translateY(-4px); }
.tile img { aspect-ratio: 2868 / 1320; object-fit: cover; width: 100%; }
.tile div { padding: 14px 16px 18px; }
.tile h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.villages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.village img { aspect-ratio: 1870 / 841; }

/* The call at the end. */
.cta { background: linear-gradient(135deg, #2c6a20, #3f8f2f 60%, #6aa83a); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { color: #fff; }
.cta p { margin: 0 auto 24px; max-width: 600px; font-size: 18px; opacity: 0.95; }

/* ---- The legal pages: one column of text on paper. */
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); margin: 32px auto 56px; max-width: 820px; }
.doc h1 { margin-top: 0; font-size: clamp(26px, 4vw, 34px); }
.doc h2 { font-size: 21px; margin: 28px 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: -6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.lang { float: right; font-size: 14px; font-weight: 700; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--wood-dark); }
.faq details p { margin: 8px 0 0; }
.contact { display: inline-block; margin-top: 8px; background: var(--green); color: #fff; text-decoration: none; font-weight: 800; padding: 12px 20px; border-radius: 12px; }
.contact:hover { background: var(--green-dark); }

footer { background: var(--wood-deep); color: #e9dcc2; padding: 32px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; margin-right: 14px; }
footer .brand { font-size: 16px; }

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .phone { order: 0; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .villages { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  section { padding: 52px 0; }
  .hero { min-height: 72vh; padding: 40px 0 80px; }
  .tiles { grid-template-columns: 1fr; }
  .phone { border-radius: 22px; padding: 7px; }
  .phone img { border-radius: 16px; }
  .stat img { width: 40px; height: 40px; }
  .stat b { font-size: 22px; }
  .lang { float: none; display: block; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hero .logo { animation: none; } html { scroll-behavior: auto; } }
