/* TR: Trayful sitesi — oyunun kafe temasından sıfırdan tasarlandı (çizgili tente, ahşap tezgah, krem fincan rengi,
   turkuaz tente, pembe çörek vurgusu). Başka ürünün şablonu kullanılmadı (D-071).
   EN: Trayful site — designed from scratch from the game's cafe theme (striped awning, wooden counter, cream cup colour,
   teal awning, donut-pink accent). No other product's template (D-071). */
:root {
  --espresso: #3b2116;
  --cocoa: #5a3522;
  --wood: #8a5a3b;
  --wood-light: #a8714a;
  --caramel: #c8823f;
  --honey: #f2b65a;
  --cream: #fff4e2;
  --foam: #fffbf4;
  --teal: #2b8c84;
  --teal-dark: #1d6b65;
  --berry: #d94b72;
  --leaf: #5e9b4e;
  --ink: #3b2116;
  --ink-soft: #6b4a37;
  --radius: 22px;
  --shadow: 0 10px 28px rgba(59, 33, 22, .18);
  --head: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Awning: teal and cream stripes with a scalloped edge / Tente: turkuaz-krem çizgi, dalgalı kenar */
.awning {
  height: 46px;
  filter: drop-shadow(0 3px 0 rgba(59, 33, 22, .16));
  background: repeating-linear-gradient(90deg, var(--teal) 0 46px, var(--foam) 46px 92px);
  -webkit-mask: radial-gradient(23px at 23px 23px, #000 99%, transparent 101%) 0 0 / 46px 46px repeat-x,
                linear-gradient(#000 0 0) 0 0 / 100% 23px no-repeat;
          mask: radial-gradient(23px at 23px 23px, #000 99%, transparent 101%) 0 0 / 46px 46px repeat-x,
                linear-gradient(#000 0 0) 0 0 / 100% 23px no-repeat;
}
.topbar { background: var(--foam); padding: 6px 0 10px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { font-weight: 800; font-size: 15px; text-decoration: none; color: var(--cocoa); padding: 7px 14px; border-radius: 999px; border: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--caramel); background: var(--cream); color: var(--espresso); }

/* Hero / Vitrin */
.hero { padding: 34px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--teal-dark); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--espresso); line-height: 1.12; letter-spacing: .01em; }
h1 { font-size: clamp(38px, 6vw, 62px); margin: 0 0 14px; }
h1 span { color: var(--caramel); }
.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 22px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 20px; letter-spacing: .02em;
  text-decoration: none; color: #fff; background: var(--teal); padding: 14px 26px; border-radius: 16px;
  box-shadow: 0 5px 0 var(--teal-dark); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--teal-dark); }
.btn.soon { background: var(--wood); box-shadow: 0 5px 0 var(--cocoa); cursor: default; }
.btn.soon:hover { transform: none; box-shadow: 0 5px 0 var(--cocoa); }
.note { font-size: 14px; color: var(--ink-soft); }
.window {
  position: relative; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  border: 10px solid var(--wood); box-shadow: var(--shadow), inset 0 0 0 4px var(--wood-light);
  background: var(--wood); max-width: 440px; justify-self: center;
}

/* Facts / Kısaca */
.facts { background: var(--foam); border-block: 3px dashed rgba(200, 130, 63, .45); padding: 26px 0; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0; }
.facts dt { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); }
.facts dd { margin: 2px 0 0; font-weight: 700; }

section { padding: 60px 0; }
.center { text-align: center; }
h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 12px; }
.sub { color: var(--ink-soft); max-width: 40em; margin: 0 auto 30px; }

/* How to play on wooden shelves / Ahşap rafta nasıl oynanır */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--foam); border-radius: var(--radius); padding: 22px 20px 24px; box-shadow: var(--shadow); text-align: center; }
.shelf {
  height: 118px; border-radius: 14px; margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; padding: 0 12px 14px; background: linear-gradient(180deg, #f6e3c6 0 72%, var(--wood-light) 72% 80%, var(--wood) 80% 100%);
  box-shadow: inset 0 0 0 5px var(--wood);
}
.shelf img { width: 64px; height: 64px; }
.step h3 { font-size: 24px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }
.badge-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--berry); color: #fff; font-family: var(--head); font-size: 18px; margin-bottom: 8px; }

/* Regulars / Müdavimler */
.regulars { background: linear-gradient(180deg, var(--cream), #f7e2c2); }
.queue { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.queue figure { margin: 0; width: 132px; text-align: center; }
.queue img { width: 132px; height: 132px; animation: bob 3.2s ease-in-out infinite; }
.queue figure:nth-child(2n) img { animation-delay: -1.1s; }
.queue figure:nth-child(3n) img { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }

/* Screen / Ekran */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.phone { max-width: 300px; justify-self: center; border-radius: 38px; padding: 12px; background: var(--espresso); box-shadow: var(--shadow); }
.phone img { border-radius: 28px; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding-left: 36px; margin: 10px 0; position: relative; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* FAQ as a menu board / Menü panosu gibi SSS */
.faq { background: var(--cocoa); color: var(--cream); }
.faq h2 { color: var(--honey); }
.faq .sub { color: #f1dcc4; }
.faq details { text-align: left; background: rgba(255, 244, 226, .07); border: 2px solid rgba(242, 182, 90, .35); border-radius: 16px; padding: 14px 18px; margin: 10px auto; max-width: 760px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 18px; color: var(--foam); }
.faq details p { margin: 10px 0 0; color: #f6e6d2; }

/* Counter footer / Tezgah altbilgi */
.counter { background: linear-gradient(180deg, var(--wood-light) 0 10px, var(--wood) 10px 100%); color: var(--cream); padding: 34px 0 40px; font-size: 15px; }
.counter a { color: var(--honey); }
.counter nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.counter p { margin: 4px 0; color: #f3e1cb; }

/* Legal pages: a receipt on the counter / Yasal sayfalar: tezgahta bir fiş */
.legal-bg { background: var(--wood) linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 60px) 0 0 / 60px 100%; padding: 40px 0 64px; }
.receipt {
  width: min(820px, 100% - 32px); margin: 0 auto; background: var(--foam); color: var(--ink);
  padding: 44px clamp(22px, 5vw, 56px) 52px; box-shadow: var(--shadow);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
}
.receipt .stamp { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.receipt .stamp img { width: 46px; height: 46px; }
.receipt h1 { font-size: clamp(32px, 5vw, 46px); margin: 0; }
.receipt .meta { color: var(--ink-soft); font-size: 15px; border-bottom: 2px dashed rgba(138, 90, 59, .35); padding-bottom: 14px; margin-bottom: 18px; }
.receipt h2 { font-size: 24px; margin: 30px 0 8px; color: var(--cocoa); }
.receipt li { margin: 6px 0; }
/* Long URLs in legal text wrap instead of widening the page on phones (privacy, 375 px). */
.receipt a { overflow-wrap: anywhere; }
.receipt code { background: var(--cream); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .window { max-width: 360px; }
  .hero { padding-top: 18px; }
  .steps { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .topbar .wrap { justify-content: center; }
  .nav { width: 100%; justify-content: space-between; gap: 0; flex-wrap: nowrap; }
  .nav a { font-size: 14px; padding: 6px 9px; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
