/* KingBomb landing, version B — daytime sticker deck: cream paper, thick ink outlines, red / blue / gold, a playable "beat it" toy */
:root {
  --paper: #fff4dc;
  --paper-2: #ffe9bd;
  --ink: #171717;
  --red: #ef3e36;
  --blue: #2f6bff;
  --gold: #ffc22e;
  --green: #19b47a;
  --pink: #ff6fae;
  --muted: #5a5246;
  --max: 1120px;
  --display: "Bungee", "Arial Black", system-ui, sans-serif;
  --text: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--text); color: var(--ink); line-height: 1.55; overflow-x: hidden;
  background: var(--paper) radial-gradient(rgba(23,23,23,0.09) 1.2px, transparent 1.3px) 0 0 / 22px 22px; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.ink { border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }

/* ── top ── */
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 11px; border: 3px solid var(--ink); }
.top nav { display: flex; gap: 18px; font-weight: 900; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* ── hero: the king printed on a giant playing card, stickers slapped around it ── */
.hero { padding: 26px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 8vw, 104px); line-height: 0.92; margin: 0; letter-spacing: -0.01em; }
.hero h1 .k { color: var(--red); }
.hero h1 .b { color: var(--blue); display: inline-block; transform: rotate(-2deg); }
.hero .say { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; margin: 18px 0 0; max-width: 520px; }
.hero .say mark { background: var(--gold); padding: 0 6px; border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); }
.hero .small { color: var(--muted); font-weight: 700; margin: 10px 0 0; max-width: 500px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 16px; font-family: var(--display); font-size: 17px; text-decoration: none; cursor: pointer;
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .1s, box-shadow .1s; background: #fff; color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.red { background: var(--red); color: #fff; }
.btn.gold { background: var(--gold); }
.btn small { font-family: var(--text); font-size: 12px; font-weight: 900; opacity: 0.7; }

.bigcard { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 5 / 7; background: #fff; border-radius: 28px; padding: 54px 34px; display: grid; place-items: center;
  transform: rotate(4deg); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.bigcard:hover { transform: rotate(0deg) scale(1.02); }
.bigcard .idx { position: absolute; font-family: var(--display); font-size: 34px; line-height: 0.9; color: var(--red); text-align: center; }
.bigcard .idx span { display: block; font-size: 28px; }
.bigcard .idx.tl { top: 16px; left: 18px; }
.bigcard .idx.br { bottom: 16px; right: 18px; transform: rotate(180deg); }
.bigcard img { width: 100%; border-radius: 22px; border: 4px solid var(--ink); }
.sticker { position: absolute; font-family: var(--display); font-size: 15px; padding: 10px 14px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap; animation: wobble 4s ease-in-out infinite; }
.sticker.s1 { top: 22%; left: -16%; background: var(--gold); --r: -12deg; }
.sticker.s2 { top: 44%; right: -16%; background: var(--pink); color: #fff; --r: 10deg; animation-delay: -1.3s; }
.sticker.s3 { bottom: 4%; left: -10%; background: var(--green); color: #fff; --r: -6deg; animation-delay: -2.6s; }
@keyframes wobble { 0%, 100% { transform: rotate(var(--r)) scale(1); } 50% { transform: rotate(calc(var(--r) * -0.4)) scale(1.06); } }

/* ── ticker ── */
.ticker { background: var(--ink); color: var(--paper); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -20px; }
.ticker .tape { display: flex; width: max-content; gap: 40px; padding: 14px 0; font-family: var(--display); font-size: 22px; animation: tape 26s linear infinite; }
.ticker .tape span:nth-child(3n+1) { color: var(--gold); } .ticker .tape span:nth-child(3n+2) { color: var(--pink); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ── shared section bits ── */
section.part { padding: 84px 0; }
.label { display: inline-block; font-family: var(--display); font-size: 13px; background: var(--blue); color: #fff; padding: 6px 12px; border-radius: 8px; border: 3px solid var(--ink); transform: rotate(-3deg); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 54px); line-height: 1; margin: 16px 0 10px; }
.p { font-size: 18px; font-weight: 700; color: var(--muted); max-width: 640px; margin: 0; }

/* ── the toy: beat the play on the table ── */
.toy { margin-top: 34px; background: #2c8f62; border-radius: 30px; padding: 26px; position: relative; overflow: hidden;
  background-image: radial-gradient(ellipse at 50% 30%, #34a873, #1f7a51 70%); }
.toy .lane { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.toy .who { color: #fff; font-family: var(--display); font-size: 15px; margin-bottom: 10px; opacity: 0.9; }
.hand { display: flex; }
.mini { width: 54px; aspect-ratio: 5 / 7; border-radius: 9px; background: #fff; border: 3px solid var(--ink); margin-left: -20px; display: grid; place-items: start; padding: 4px 6px;
  font-family: var(--display); font-size: 17px; line-height: 1; box-shadow: 3px 3px 0 rgba(0,0,0,0.35); }
.mini:first-child { margin-left: 0; }
.mini.r { color: var(--red); }
.mini.j { background: var(--ink); color: var(--gold); font-size: 9px; writing-mode: vertical-rl; text-orientation: upright; place-items: center; letter-spacing: 0.06em; }
.vs { font-family: var(--display); font-size: 30px; color: var(--gold); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.choice { background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 12px; cursor: pointer; text-align: left; box-shadow: 4px 4px 0 var(--ink); font: inherit; color: var(--ink);
  transition: transform .1s, box-shadow .1s; display: grid; gap: 8px; }
.choice:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.choice:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.choice b { font-family: var(--display); font-weight: 400; font-size: 14px; }
.choice .mini { width: 34px; font-size: 12px; border-width: 2px; margin-left: -13px; padding: 2px 4px; border-radius: 6px; }
.choice .mini.j { font-size: 6px; }
.verdict { margin-top: 18px; min-height: 64px; display: grid; place-items: center; text-align: center; color: #fff; font-family: var(--display); font-size: clamp(20px, 3vw, 30px);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.verdict small { display: block; font-family: var(--text); font-weight: 800; font-size: 15px; -webkit-text-stroke: 0; opacity: 0.9; }
.toy.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translate(-2px, 0); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-8px, 3px); } 40%, 60% { transform: translate(8px, -3px); } }
.boom { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; border-radius: 50%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0, var(--gold) 30%, var(--red) 60%, transparent 70%); animation: boom .7s ease-out forwards; }
@keyframes boom { to { width: 1400px; height: 1400px; opacity: 0; } }
.bit { position: absolute; width: 12px; height: 18px; border-radius: 3px; pointer-events: none; animation: bit 1.2s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes bit { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* ── polaroids ── */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.pola { background: #fff; padding: 12px 12px 16px; border-radius: 10px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); position: relative; margin: 0; transition: transform .25s; }
.pola::before { content: ""; position: absolute; top: -14px; left: 50%; translate: -50% 0; width: 90px; height: 26px; background: rgba(255, 194, 46, 0.75); border: 2px solid rgba(23,23,23,0.25); rotate: -3deg; }
.pola img { border-radius: 6px; border: 2px solid var(--ink); aspect-ratio: 2868 / 1320; object-fit: cover; width: 100%; height: auto; }
.pola figcaption { font-family: var(--display); font-size: 15px; text-align: center; padding-top: 12px; }
.pola:nth-child(1) { rotate: -4deg; } .pola:nth-child(2) { rotate: 2deg; translate: 0 18px; } .pola:nth-child(3) { rotate: -1deg; }
.pola:hover { transform: scale(1.04) rotate(2deg); }

/* ── comic strip rules ── */
.comic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.panel { background: #fff; border: 4px solid var(--ink); border-radius: 16px; padding: 18px 18px 20px; box-shadow: 5px 5px 0 var(--ink); position: relative; }
.panel:nth-child(odd) { background: var(--paper-2); }
.panel .n { position: absolute; top: -16px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--ink); background: var(--red); color: #fff; font-family: var(--display); }
.panel h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.panel p { margin: 0; font-weight: 700; color: var(--muted); }

/* ── final ── */
.final { text-align: center; padding: 70px 20px 90px; }
.final .card { display: inline-block; background: var(--gold); border-radius: 28px; padding: 40px clamp(20px, 6vw, 70px); transform: rotate(-1.5deg); }
.final .h2 { margin-top: 0; }
.final .p { margin: 0 auto 22px; color: var(--ink); }
footer { padding: 24px 0 36px; font-weight: 700; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }

@media (max-width: 860px) {
  .top nav a.opt { display: none; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .say, .hero .small { margin-left: auto; margin-right: auto; }
  .row { justify-content: center; }
  .bigcard { width: min(78vw, 330px); margin-top: 10px; }
  .sticker { font-size: 12px; padding: 8px 11px; }
  .sticker.s1 { left: -6%; } .sticker.s2 { right: -8%; } .sticker.s3 { left: -4%; }
  .toy { padding: 18px 14px; }
  .toy .lane { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .choices { grid-template-columns: 1fr 1fr; }
  .board, .comic { grid-template-columns: 1fr; }
  .pola:nth-child(n) { rotate: 0deg; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
