/*
 * Food Street Tycoon web site. The same look as the game: a striped stall awning, thick brown
 * outlines, haldi yellow and chilli red on warm paper.
 */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-700.woff") format("woff"); }

:root {
  --ink: #3b1f14;
  --paper: #fff4d9;
  --paper-2: #ffe9b8;
  --haldi: #ffc533;
  --chilli: #e3402f;
  --sky: #1f6fa0;
  --leaf: #2f7d3e;
  --night: #1d2747;
  --muted: #6f5140;
  --font: "Poppins", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --edge: 4px solid var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--haldi); color: var(--ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Headline lettering like the game's: white or haldi letters with a thick brown outline */
.lettered { color: #fff; -webkit-text-stroke: 0.13em var(--ink); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink); letter-spacing: 0.01em; }
.lettered .haldi { color: var(--haldi); }

/* ---------- header: a stall awning ---------- */
.awning {
  height: 28px;
  background: repeating-linear-gradient(90deg, var(--chilli) 0 44px, var(--haldi) 44px 88px);
  border-bottom: var(--edge);
  position: relative;
}
.awning::after {   /* the scalloped edge under the stripes */
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 4px); height: 16px;
  background:
    radial-gradient(circle at 22px 0, var(--chilli) 17px, var(--ink) 17px 21px, transparent 21px) 0 0 / 88px 16px repeat-x,
    radial-gradient(circle at 66px 0, var(--haldi) 17px, var(--ink) 17px 21px, transparent 21px) 0 0 / 88px 16px repeat-x;
}
.site-head { position: relative; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.9rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 12px; }
.nav { display: flex; align-items: center; gap: 1.2rem; font-weight: 700; font-size: 0.95rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1.5rem 0.8rem 1.2rem; border: var(--edge); border-radius: 999px;
  background: var(--haldi); color: var(--ink); font-weight: 700; font-size: 1.1rem; line-height: 1.15;
  text-decoration: none; box-shadow: 0 5px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn small { display: block; font-size: 0.75rem; font-weight: 400; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.9rem; box-shadow: 0 3px 0 var(--ink); border-width: 3px; }
.play-mark { width: 1.6em; height: 1.6em; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 4.5rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-lead { font-size: 1.2rem; max-width: 34rem; }
.hero-facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-weight: 700; font-size: 0.95rem; color: var(--muted); }
.hero-facts li::before { content: "✔"; color: var(--leaf); margin-right: 0.4rem; }
.sticker { border: 5px solid var(--ink); border-radius: 28px; box-shadow: 10px 12px 0 var(--ink); background: var(--ink); overflow: hidden; }
.hero-art { transform: rotate(2.5deg); max-width: 25rem; width: 100%; justify-self: center; }
@media (max-width: 860px) {
  .hero { padding-top: 1.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-art { max-width: 19rem; }
}

/* ---------- the journey: four steps, in order ---------- */
.journey { background: var(--night); color: #fff; padding: 4.5rem 0; border-top: var(--edge); border-bottom: var(--edge); }
.journey h2 { text-align: center; }
.journey .intro { text-align: center; max-width: 40rem; margin: 0 auto 3.2rem; color: #ffe9b8; font-size: 1.1rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 3.5rem; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 17rem) 1fr; gap: 2.8rem; align-items: center; counter-increment: step; }
.step:nth-child(even) { grid-template-columns: 1fr minmax(0, 17rem); }
.step:nth-child(even) .step-art { order: 2; }
.step-art { transform: rotate(-2deg); box-shadow: 8px 10px 0 #0c1226; border-color: #0c1226; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.step:nth-child(even) .step-art { transform: rotate(2deg); }
.step h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.step h3::before {
  content: counter(step); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: 0.7rem;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--haldi); color: var(--ink); font-size: 1.1rem; vertical-align: 0.15em;
}
.step p { color: #f4ead6; max-width: 32rem; }
@media (max-width: 720px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 1.4rem; }
  .step:nth-child(even) .step-art { order: 0; }
  .step-art { max-width: 14rem; }
}

/* ---------- screenshots ---------- */
.section { padding: 4.5rem 0; }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.shots { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.4rem 1.25rem 1.6rem; margin: 0 -1.25rem; list-style: none; }
.shots li { flex: none; width: min(14.5rem, 62vw); scroll-snap-align: center; margin: 0; }
.shots figure { margin: 0; }
.shots img { border: 4px solid var(--ink); border-radius: 20px; box-shadow: 6px 7px 0 var(--ink); }
.shots figcaption { font-weight: 700; font-size: 0.92rem; margin-top: 0.9rem; text-align: center; line-height: 1.35; }

/* ---------- trailer ---------- */
.trailer { background: var(--paper-2); border-top: var(--edge); border-bottom: var(--edge); }
.trailer .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.trailer video { width: 100%; max-width: 19rem; aspect-ratio: 9 / 16; object-fit: cover; justify-self: center; }
@media (max-width: 760px) { .trailer .wrap { grid-template-columns: 1fr; } .trailer video { order: 2; } }

/* ---------- every day ---------- */
.daily { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.daily li { background: #fff; border: var(--edge); border-radius: 20px; padding: 1.3rem 1.3rem 1.1rem; box-shadow: 0 5px 0 var(--ink); }
.daily .ico { font-size: 2rem; line-height: 1; display: block; margin-bottom: 0.6rem; }
.daily h3 { margin-bottom: 0.3rem; }
.daily p { margin: 0; font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details { border: var(--edge); border-radius: 18px; background: #fff; margin-bottom: 0.9rem; box-shadow: 0 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.2rem 1rem; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- closing call ---------- */
.closing { position: relative; color: #fff; text-align: center; padding: 6rem 0; border-top: var(--edge); overflow: hidden; background: var(--night); }
.closing picture, .closing picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 39, 71, 0.55), rgba(29, 39, 71, 0.88)); z-index: 1; }
.closing .wrap { position: relative; z-index: 2; }
.closing p { font-size: 1.15rem; max-width: 34rem; margin: 0 auto 1.8rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #f1e2c8; padding: 2.5rem 0 3rem; font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-foot a { color: var(--haldi); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.site-foot p { margin: 0; }

/* ---------- text pages (guide, privacy, terms) ---------- */
.page { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.page ul, .page ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.page li { margin-bottom: 0.4rem; }
.updated, .crumbs { color: var(--muted); font-size: 0.95rem; }
.crumbs a { color: var(--muted); }
.page .note { background: #fff; border: var(--edge); border-radius: 16px; padding: 1rem 1.2rem; box-shadow: 0 4px 0 var(--ink); }
.page table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; font-size: 0.97rem; }
.page th, .page td { border: 2px solid var(--ink); padding: 0.45rem 0.7rem; text-align: left; vertical-align: top; }
.page th { background: var(--paper-2); }
.page .cta { margin: 2.5rem 0 0; }
.page .banner-art { margin: 1.5rem 0 2.2rem; border-radius: 22px; width: 100%; max-width: 32rem; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; transform: rotate(-1deg); }
