/* The presentation page (www/prezentare.html). Same palette and fonts as the game. */
:root {
  --red: #ce1126; --red-dark: #7a0a15; --blue: #002b7f; --blue-dark: #001a4f; --yellow: #fcd116;
  --cream: #fff6e5; --paper: #fffdf6; --ink: #2b1a10; --muted: #6b5a4a; --line: #e6d6b8;
  --display: 'Baloo 2', 'Nunito', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-weight: 600; color: var(--ink); line-height: 1.55; }
/* height:auto keeps the width/height attributes from stretching shrunken images */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4.5vw, 42px); color: var(--blue); }
h3 { font-size: 21px; }
/* side padding also clears the notch / Dynamic Island when a phone is held sideways */
section {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) max(16px, env(safe-area-inset-right)) clamp(44px, 6vw, 80px) max(16px, env(safe-area-inset-left));
}
/* full-width bands keep their content in the same 1120px column */
.band {
  max-width: none;
  padding-left: max(16px, env(safe-area-inset-left), calc((100vw - 1120px) / 2 + 16px));
  padding-right: max(16px, env(safe-area-inset-right), calc((100vw - 1120px) / 2 + 16px));
}

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff;
  background: var(--red); padding: 12px 22px; border-radius: 14px; border: none;
  box-shadow: 0 4px 0 var(--red-dark); transition: transform 0.1s;
}
.btn:hover { transform: translateY(-2px); }
.btn.big { font-size: 22px; padding: 16px 28px; border-radius: 16px; }
.btn.small { font-size: 15px; padding: 8px 14px; border-radius: 11px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: rgba(255, 246, 229, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 6px solid; border-image: linear-gradient(90deg, var(--blue) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%) 1;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red); font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.lang { border: none; background: transparent; font: 800 14px 'Nunito', sans-serif; color: var(--muted); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.lang[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; max-width: none;
  background: radial-gradient(120% 120% at 70% 0%, #1458cf 0%, var(--blue) 60%, var(--blue-dark) 100%); color: #fff;
  padding-left: max(16px, env(safe-area-inset-left), calc((100vw - 1120px) / 2 + 16px));
  padding-right: max(16px, env(safe-area-inset-right), calc((100vw - 1120px) / 2 + 16px)); }
.hero h1 { font-size: clamp(54px, 9vw, 104px); color: var(--red); text-shadow: 3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff, 0 9px 0 var(--red-dark); margin-bottom: 18px; }
.kicker { font-weight: 800; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; margin: 0 0 6px; }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 520px; opacity: 0.95; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0 18px; }
.soon { font-size: 14px; opacity: 0.8; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; }
.hero-shot { position: relative; }

/* Screenshots: real phone captures (812×375, scripts/store-assets.mjs --web-only) shown in a phone held
   sideways. Padding percentages follow the frame's width, so the bezel scales with it; the screen corners
   are matched to the frame's (4.2% / 9% of a 2.17:1 image is the same radius both ways). */
.phone {
  position: relative;
  padding: 2.2% 3.6%;
  border-radius: 6% / 13%;
  background: linear-gradient(150deg, #34343c 0%, #121216 45%, #050507 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 28px 50px -18px rgba(0, 18, 60, 0.65);
}
.phone img { width: 100%; border-radius: 4.2% / 9%; background: #1b2340; }
/* front camera, on the left bezel */
.phone::before {
  content: '';
  position: absolute;
  left: 1.3%; top: 50%;
  width: 1.1%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3c4a6a, #0b0f1a 70%);
  transform: translateY(-50%);
}
.phone.tilt { transform: rotate(-2.5deg); }
.hero .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 60px -10px rgba(0, 0, 0, 0.6); }

/* speech bubbles, like the ones in the game */
.bubble {
  position: relative; display: inline-block; margin: 0;
  background: var(--cream); color: var(--ink); border-radius: 16px; padding: 7px 16px;
  font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.bubble::after {
  content: ''; position: absolute; left: 22px; bottom: -9px;
  border: 10px solid transparent; border-top-color: var(--cream); border-bottom: 0;
}
.bubble.right::after { left: auto; right: 22px; }
.hero-bubble { position: absolute; top: -6%; right: 6%; transform: rotate(4deg); font-size: clamp(16px, 2vw, 22px); }

/* ---------- the numbers ---------- */
.stats {
  list-style: none; margin: 0; padding: 22px max(16px, env(safe-area-inset-right)) 22px max(16px, env(safe-area-inset-left));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px;
  background: var(--yellow); color: var(--ink);
  border-bottom: 6px solid; border-image: linear-gradient(90deg, var(--blue) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%) 1;
}
.stats li { display: flex; align-items: baseline; gap: 8px; }
.stats b { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); line-height: 1; color: var(--red); white-space: nowrap; }
.stats span { font-weight: 800; font-size: 15px; }

/* ---------- cards (how to play, bosses, features) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.cards article, .features article, .helper-grid article {
  background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 4px 0 var(--line);
}
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.cards p, .features p, .helper-grid p { margin: 0; color: var(--muted); }

/* ---------- what goes in the slingshot: a restaurant menu ---------- */
.menu-section { background: var(--paper); border-radius: 28px; box-shadow: 0 6px 0 var(--line); margin-top: 8px; margin-bottom: 8px; max-width: 1088px; }
.menu-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.menu-head p { color: var(--muted); margin: 0; }
.shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.shots li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 8px 12px; border-radius: 18px; background: #fff; border: 2px solid var(--line); }
.shots .dish { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--cream); margin-bottom: 6px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.06); }
.shots .dish img { width: 68px; height: 68px; }
.shots b small { display: block; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; color: var(--muted); }
.shots b { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.shots i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--red); line-height: 1.25; }
.shots li.feast { border-style: dashed; border-color: #f0c64a; background: #fffaf0; }

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.journey p { color: var(--muted); }
.places { columns: 2; padding-left: 22px; margin: 16px 0 0; font-weight: 800; }
.places li { margin-bottom: 4px; }
.journey.flip { grid-template-columns: 1fr 1.2fr; }
.chapter-kicker { margin: 0; font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red) !important; }
.journey h2 { margin-top: 2px; }
.places.years { list-style: none; padding-left: 0; }
.places.years li { display: grid; grid-template-columns: 46px 1fr; break-inside: avoid; }
.places.years b { color: var(--red); font-family: var(--display); }
.bonus { margin: 18px 0 0; background: #fff1f1; border-radius: 14px; padding: 10px 14px; color: var(--ink) !important; }

.bosses { padding-top: 0; }
.badge-boss { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue); font-size: 28px; margin-bottom: 10px; transform: rotate(-4deg); box-shadow: 0 3px 0 var(--blue-dark); }

/* ---------- everyone talks back ---------- */
.talk { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; background: var(--blue-dark); }
.talk h2 { color: #fff; }
.talk > div > p { color: rgba(255, 255, 255, 0.85); font-size: 18px; }
.quotes { display: flex; flex-wrap: wrap; gap: 18px 12px; margin: 22px 0 26px; }
.quotes .bubble:nth-child(2) { transform: rotate(-2deg); }
.quotes .bubble:nth-child(3) { transform: rotate(2deg); }
.bubble.coachy { background: var(--ink); color: #fff; }
.bubble.coachy::after { border-top-color: var(--ink); }
.grades { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.grades li { display: flex; align-items: center; gap: 10px; color: #fff; }
/* the teacher's red pen, as on the level-end screen */
.grade {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--red); background: #fff; color: var(--red);
  font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; transform: rotate(-8deg);
}

/* ---------- cast and ranks ---------- */
.cast { text-align: center; }
.cast > p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.cast-grid figure { margin: 0; }
.cast-grid svg { width: 80px; height: 80px; transition: transform 0.15s; }
.cast-grid figure:hover svg { transform: scale(1.1) rotate(-4deg); }
.cast-grid figcaption { font-size: 12px; font-weight: 800; line-height: 1.2; margin-top: 4px; }
.ranks-title { margin-top: 40px; color: var(--blue); }
.ranks { list-style: none; padding: 0; margin: 14px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; counter-reset: rank; }
.ranks li { counter-increment: rank; background: #fff; border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 800; box-shadow: 0 2px 0 var(--line); display: flex; align-items: center; gap: 8px; }
.ranks li::before { content: counter(rank); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); color: var(--red); font-family: var(--display); font-size: 15px; }
.ranks li:last-child { background: var(--yellow); }

/* ---------- Harap-Alb's friends ---------- */
.helpers { text-align: center; background: #fff; }
.helpers > p { color: var(--muted); margin: 0 auto 24px; max-width: 600px; }
.helper-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: left; }
.helper-grid article { background: var(--cream); box-shadow: 0 4px 0 var(--line); padding: 18px; }
.helper-grid span { font-size: 32px; display: block; margin-bottom: 6px; }
.helper-grid span img { width: 40px; height: 40px; }
.helper-grid h3 { font-size: 18px; }
.helper-grid p { font-size: 14px; }

/* ---------- every day ---------- */
.daily { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.day-item { border-left: 4px solid var(--red); padding: 2px 0 2px 14px; margin-top: 16px; }
.day-item:nth-child(3) { border-color: var(--yellow); }
.day-item:nth-child(4) { border-color: var(--blue); }
.day-item h3 { margin-bottom: 4px; font-size: 20px; }
.day-item p { margin: 0; color: var(--muted); }

.tricks { padding-top: 0; text-align: center; }
.tricks > p { color: var(--muted); margin: 0 auto 24px; }
.tricks .hol-grid span { grid-row: auto; font-size: 26px; }
.hol-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: left; }
.hol-grid li { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 4px 0 var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.hol-grid span { font-size: 30px; grid-row: span 2; }
.hol-grid b { font-family: var(--display); font-size: 17px; line-height: 1.15; }
.hol-grid i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--red); }
.hol-grid p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- challenge ---------- */
.challenge { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.challenge p { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.challenge .cards-styles { font-size: 16px; }
.challenge .btn { margin-top: 6px; }
/* your grill: the picture first, then the four kinds of respect */
.challenge.grill { grid-template-columns: 1.2fr 1fr; }
.titles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.titles li { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; gap: 2px; }
.titles b { font-family: var(--display); font-size: 19px; color: var(--red); line-height: 1.1; }
.titles b small { display: block; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; color: var(--muted); }
.titles span { font-size: 14px; color: var(--muted); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 0; }
.features h3 { font-size: 19px; }

.final { text-align: center; background: var(--blue); color: #fff; max-width: none; }
.final h2 { color: #fff; margin-bottom: 6px; }
.final p { margin: 0 0 22px; opacity: 0.85; font-size: 18px; }
footer { text-align: center; padding: 28px 16px max(40px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px;
  border-top: 10px solid #f3e7cf; }
footer a { color: var(--blue); font-weight: 800; }
footer p { margin: 6px 0 0; }

@media (max-width: 960px) {
  .shots { grid-template-columns: repeat(4, 1fr); }
  .helper-grid { grid-template-columns: repeat(3, 1fr); }
  .hol-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero, .journey, .challenge, .talk, .daily, .journey.flip, .challenge.grill { grid-template-columns: 1fr; }
  .hero-shot { order: -1; margin-top: 18px; }
  /* phones: the screenshots use almost the whole width (the tilted one can't push the page sideways) */
  .hero { overflow: hidden; }
  .phone { margin: 0 -8px; }
  .journey, .challenge, .talk, .daily { gap: 28px; }
  .cards, .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .brand span { display: none; }
  .stats { gap: 8px 24px; }
}
@media (max-width: 520px) {
  .cards, .features, .helper-grid, .hol-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cast-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cast-grid svg { width: 60px; height: 60px; }
  .cast-grid figcaption { font-size: 10.5px; }
  .places { columns: 1; }
  .titles { grid-template-columns: 1fr; }
  .menu-section { border-radius: 0; box-shadow: none; }
  .stats { justify-content: flex-start; }
  .stats li { flex: 0 0 calc(50% - 12px); flex-direction: column; gap: 2px; }
  .stats span { line-height: 1.25; }
}

/* Phones held sideways: little height, so a one-line title and tighter spacing keep the screenshot beside it */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { gap: 28px; padding-top: 32px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(40px, 6.4vw, 60px); margin-bottom: 10px; text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 0 6px 0 var(--red-dark); }
  .lead { font-size: 16px; }
  .cta { margin: 16px 0 12px; }
  .btn.big { font-size: 19px; padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
