/* Rocket Hero legal pages — built from the game's own UI kit (Assets/Art/UI): sky + clouds,
   the navy-framed blue modal, the Store's tab pair, teal row strips and the kit buttons. */
@font-face {
  font-family: 'Luckiest';
  src: url('LuckiestGuy-Regular.ttf') format('truetype');
  font-display: swap;
}
:root {
  --navy: #0e3361;          /* modal frame, active tab */
  --navy-ink: #10284d;
  --panel: #6f9ff7;         /* modal body */
  --panel-hi: #8fb8fb;
  --teal: #087aa5;          /* row strips */
  --teal-dark: #06648a;
  --light: #ccecff;         /* light kit button */
  --rim: #4a8394;           /* kit button rim */
  --yellow: #ffcc00;
  --red: #e63b3b;
  --ink: #142a4a;
  --ink-mid: #34496b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #8fd0ff url('ui/sky.jpg') center top / cover fixed;
  min-height: 100vh;
  padding: 24px 16px 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.wrap { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

/* ── Drifting clouds (decor only) ───────────────────────── */
.clouds { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.clouds img { position: absolute; opacity: 0.95; animation: drift linear infinite; }
.clouds img:nth-child(1) { top: 8%;  width: 300px; animation-duration: 90s;  animation-delay: -20s; }
.clouds img:nth-child(2) { top: 38%; width: 420px; animation-duration: 120s; animation-delay: -70s; }
.clouds img:nth-child(3) { top: 70%; width: 340px; animation-duration: 100s; animation-delay: -45s; }
@keyframes drift { from { transform: translateX(-460px); } to { transform: translateX(calc(100vw + 40px)); } }
@media (prefers-reduced-motion: reduce) { .clouds img { animation: none; left: 6%; } .clouds img:nth-child(2) { left: 60%; } }

/* ── Header: logo + hero lock-up, as on the main menu ───── */
.hero { position: relative; text-align: center; padding-top: 6px; }
.hero-logo {
  display: block;
  width: min(440px, 74%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 0 rgba(14, 51, 97, 0.25));
}
.hero-flyer {
  position: absolute;
  width: min(150px, 22%);
  right: max(2%, calc(50% - 330px));
  top: 18px;
  transform: rotate(8deg);
  filter: drop-shadow(0 8px 0 rgba(14, 51, 97, 0.18));
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(8deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-flyer { animation: none; } }
.studio {
  margin: 10px 0 0;
  font-family: 'Luckiest', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy), 0 -2px 0 var(--navy);
}

/* ── Tabs: the Store's CHARACTERS / ITEMS pair ──────────── */
.tabs { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-top: 18px; position: relative; z-index: 2; }
.tabs a {
  display: block;
  font-family: 'Luckiest', sans-serif;
  font-size: clamp(15px, 3.6vw, 21px);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  padding: 14px 30px 8px;
  border-style: solid;
}
.tabs a.on {
  color: #fff;
  border-width: 0 34px 0 34px;
  border-image: url('ui/tab.png') 0 58 0 58 fill stretch;
  padding: 16px 6px 12px;
  margin-bottom: -4px;
}
.tabs a.off {
  color: var(--navy);
  border-width: 18px 22px 0 22px;
  border-image: url('ui/tab-off.png') 30 38 0 38 fill stretch;
  padding: 0 4px 6px;
}
.tabs a.off:hover { filter: brightness(1.06); }
.tabs a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 10px; }

/* ── The modal panel ────────────────────────────────────── */
.panel {
  border-style: solid;
  border-width: 30px;
  border-image: url('ui/panel.png') 56 fill stretch;
  padding: 10px 12px 18px;
  filter: drop-shadow(0 10px 0 rgba(14, 51, 97, 0.22));
}
.panel h1 {
  font-family: 'Luckiest', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: 0.03em;
  text-align: center;
  color: #fff;
  text-shadow: 0 3px 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy), 0 -2px 0 var(--navy);
  line-height: 1.15;
  margin: 4px 0 2px;
}
.panel .date { text-align: center; color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px; text-shadow: 0 1px 0 rgba(14, 51, 97, 0.5); }

/* summary: the Store's item cards (icon, title, caption) */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.card {
  background: var(--teal);
  border: 4px solid var(--navy);
  border-radius: 16px;
  padding: 14px 10px 12px;
  text-align: center;
  color: #fff;
  box-shadow: inset 0 -5px 0 var(--teal-dark);
}
.card img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 6px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.2)); }
.card h3 { font-family: 'Luckiest', sans-serif; font-weight: 400; font-size: 17px; letter-spacing: 0.03em; line-height: 1.2; }
.card p { font-size: 14px; line-height: 1.35; color: #d8f2ff; margin-top: 4px; }

/* sections: teal title strip on a light kit card */
.section {
  background: var(--light);
  border: 4px solid var(--rim);
  border-radius: 16px;
  margin-top: 14px;
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(14, 51, 97, 0.18);
}
.section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--teal);
  color: #fff;
  font-family: 'Luckiest', sans-serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.03em;
  line-height: 1.2;
  padding: 10px 14px 7px;
  box-shadow: inset 0 -4px 0 var(--teal-dark);
}
.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
  padding-top: 3px;
}
.body { padding: 12px 18px 16px; }
.section p, .section li {
  font-size: 17px;
  color: var(--ink-mid);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
.section p + p, .section p + ul, .section ul + p { margin-top: 8px; }
.section strong { color: var(--ink); font-weight: 800; }
.section a { color: #0a63b8; font-weight: 800; text-underline-offset: 3px; }
.section ul { list-style: none; }
.section li { position: relative; padding-left: 26px; margin-top: 6px; }
.section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--navy);
}
.no { color: var(--red); font-weight: 800; }
.path {
  display: inline;
  background: #fff;
  border: 2px solid var(--rim);
  border-radius: 8px;
  padding: 1px 8px;
  line-height: 2;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

/* contact: navy strip with the kit's yellow button */
.contact {
  margin-top: 16px;
  text-align: center;
  background: var(--navy);
  color: #cfe0ff;
  border-radius: 16px;
  padding: 20px 16px 18px;
}
.contact h2 { font-family: 'Luckiest', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: 0.03em; color: var(--yellow); }
.contact p { font-size: 16px; }
.btn {
  display: inline-block;
  margin: 14px 0 8px;
  padding: 18px 40px 12px;
  border-style: solid;
  border-width: 14px;
  border-image: url('ui/btn-yellow.png') 34 fill stretch;
  font-family: 'Luckiest', sans-serif;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--navy-ink);
  text-decoration: none;
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.contact .company { font-size: 13px; color: #8fa9d6; }

/* footer: the six heroes */
footer { text-align: center; padding: 26px 0 30px; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 0 rgba(14, 51, 97, 0.6); }
.squad { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-bottom: 8px; }
.squad img { width: 64px; height: auto; filter: drop-shadow(0 4px 0 rgba(14, 51, 97, 0.2)); }
.squad img:nth-child(odd) { transform: translateY(-8px); }

@media (max-width: 640px) {
  body { padding-top: 14px; }
  .hero-flyer { width: 92px; top: 4px; right: 0; }
  .summary { grid-template-columns: 1fr; gap: 8px; }
  .card { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; align-items: center; text-align: left; padding: 10px 12px; }
  .card img { width: 52px; height: 52px; grid-row: span 2; margin: 0; }
  .panel { border-width: 22px; padding: 6px 2px 12px; }
  .section h2 { font-size: 16px; }
  .section p, .section li { font-size: 16px; }
  .body { padding: 10px 14px 14px; }
  .tabs a.on { border-width: 0 26px; }
  .squad img { width: 44px; }
  .card p { text-align: left; }
}

/* small phones (iPhone SE, 320–380px): keep both tabs and the logo lock-up on screen */
@media (max-width: 400px) {
  body { padding-left: 10px; padding-right: 10px; }
  .hero-logo { width: 70%; margin-left: 4%; }
  .hero-flyer { width: 25%; right: 0; top: 0; }
  .studio { font-size: 12px; }
  .tabs { gap: 4px; }
  .tabs a { font-size: 13px; letter-spacing: 0.02em; }
  .tabs a.on { border-width: 0 18px; padding: 14px 2px 10px; }
  .tabs a.off { border-width: 14px 14px 0 14px; padding: 0 2px 6px; }
  .panel { border-width: 18px; padding: 4px 0 10px; }
  .card { grid-template-columns: 44px 1fr; gap: 0 10px; padding: 10px; }
  .card img { width: 44px; height: 44px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 13px; }
  .section h2 { font-size: 15px; gap: 10px; padding: 9px 10px 6px; }
  .num { width: 28px; height: 28px; font-size: 13px; }
  .section p, .section li { font-size: 15px; }
  .body { padding: 10px 12px 12px; }
  .path { font-size: 13px; padding: 1px 6px; }
  .btn { font-size: 17px; padding: 16px 24px 10px; }
  .squad img { width: 38px; }
}

/* lines holding a menu-path chip read better ragged than stretched */
.section li:has(.path) { text-align: left; }
