/* Scribble Siege website · same notebook look as the game (src/style.css) */
:root {
  --ink: #2a3cb8;
  --ink-soft: #5a68c8;
  --red: #c42638;
  --green: #2c9a4c;
  --purple: #7a3fd0;
  --gold: #b88a00;
  --paper: #f7f3e8;
  --card: #fbf8ef;
  --rule: #b3c8ea;
  --margin: #e38080;
  --tape: rgba(244, 230, 166, .78);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: 'Patrick Hand', 'Comic Sans MS', cursive;
  font-size: 20px; line-height: 1.45;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 58px, var(--margin) 58px, var(--margin) 60px, transparent 60px),
    repeating-linear-gradient(var(--paper) 0 31px, var(--rule) 31px 32px);
  background-attachment: local;
}
a { color: var(--red); }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.small { font-size: .8em; opacity: .85; }
.hand { font-family: 'Gaegu', cursive; font-weight: 700; }
code { font-family: inherit; background: #fff8; border: 1.5px dashed var(--rule); border-radius: 4px; padding: 0 .3em; white-space: nowrap; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .35em; margin: 0 .08em;
  font: inherit; font-size: .85em; text-align: center; line-height: 1.5;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px 4px 7px 3px;
  box-shadow: 1px 2px 0 var(--ink);
}

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px 10px 76px;
  background: rgba(247, 243, 232, .94);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(3px);
}
.brand { font-family: 'Gaegu', cursive; font-weight: 700; font-size: 30px; letter-spacing: 3px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--ink); text-decoration: none; padding: 2px 10px; border-radius: 8px 5px 9px 4px; border: 2px solid transparent; }
.top nav a:hover { border-color: var(--ink); }
.top nav a.navCta { background: var(--ink); color: var(--paper); }
.menuToggle { display: none; margin-left: auto; font-size: 26px; background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 8px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: 'Gaegu', cursive; font-weight: 700; font-size: 24px; letter-spacing: 1px;
  color: var(--paper); background: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px 6px 14px 5px;
  padding: 6px 20px; margin: 4px 6px 4px 0;
  box-shadow: 3px 4px 0 rgba(42, 60, 184, .35);
  transition: transform .12s;
}
.btn:hover { transform: rotate(-1.2deg) scale(1.03); }
.btn.alt { background: var(--card); color: var(--ink); }
.btn.big { font-size: 34px; line-height: 1.05; padding: 10px 26px; }
.btn.big small { display: block; font-family: 'Patrick Hand', cursive; font-weight: 400; font-size: 15px; letter-spacing: 0; opacity: .85; }

/* ---------- layout ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 0 24px 0 84px; }
.page { padding: 56px 0 24px; }
h2 { font-family: 'Gaegu', cursive; font-weight: 700; font-size: 52px; letter-spacing: 2px; margin: 0 0 20px; line-height: 1; }
h2 span { background: linear-gradient(transparent 58%, rgba(244, 230, 120, .75) 58% 90%, transparent 90%); padding: 0 6px; }
h3.hand { font-size: 34px; margin: 40px 0 12px; }
.intro { max-width: 760px; }
.big-p { font-size: 1.2em; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }

/* ---------- taped photos ---------- */
figure { margin: 0; }
figure.tape {
  position: relative; background: #fff; padding: 10px 10px 6px;
  box-shadow: 2px 4px 12px rgba(42, 60, 184, .18), 0 0 0 1px rgba(42, 60, 184, .12);
  cursor: zoom-in;
}
figure.tape::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px;
  background: var(--tape); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
figure.tape figcaption { text-align: center; font-size: 18px; padding-top: 6px; }
.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.4deg); }
.pinboard { display: grid; gap: 34px; padding-top: 10px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; align-items: center; padding: 56px 0 30px; }
.kicker { margin: 0; color: var(--red); font-size: 22px; }
.hero h1 { font-family: 'Gaegu', cursive; font-weight: 700; font-size: 104px; line-height: .86; letter-spacing: 6px; margin: 6px 0 18px; text-shadow: 3px 3px 0 rgba(196, 38, 56, .25); }
.lead { font-size: 22px; max-width: 520px; }
.ctaRow { margin: 22px 0 10px; display: flex; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.facts b { font-family: 'Gaegu', cursive; font-size: 30px; color: var(--red); }
.heroShot { transform: rotate(1.8deg); cursor: default; }
.heroShot video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #fff; }

/* ---------- enemies ---------- */
.enemies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.enemy { display: flex; align-items: center; gap: 12px; border: 2px solid var(--red); border-radius: 14px 6px 12px 8px; padding: 8px 14px 8px 8px; background: var(--card); color: var(--red); }
.enemy img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.enemy b { display: block; font-family: 'Gaegu', cursive; font-size: 26px; letter-spacing: 1px; }
.enemy span { color: var(--ink); }
.enemy.green { border-color: var(--green); color: var(--green); }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mode { font: inherit; color: inherit; text-align: left; padding: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; background: var(--card); border: 3px solid var(--ink); border-radius: 16px 8px 18px 7px; overflow: hidden; box-shadow: 3px 5px 0 rgba(42, 60, 184, .18); transition: transform .15s; }
.mode:hover { transform: rotate(-.6deg) translateY(-3px); }
.mode img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.mode > div { position: relative; flex: 1; width: 100%; }
.mode > div::after { content: 'more ›'; position: absolute; right: 14px; bottom: 12px; font-size: 16px; opacity: .6; }
.mode:hover > div::after, .mode:focus-visible > div::after { opacity: 1; text-decoration: underline; }
.mode:focus-visible { outline: 3px dashed var(--red); outline-offset: 4px; }
.mode > div { padding: 10px 16px 14px; }
.mode h3 { font-family: 'Gaegu', cursive; font-size: 30px; margin: 0; line-height: 1.1; }
.mode h3 small { display: block; font-family: 'Patrick Hand', cursive; font-size: 16px; font-weight: 400; opacity: .75; }
.mode p { margin: 6px 60px 0 0; font-size: 18px; }
.mode.green { border-color: var(--green); } .mode.green img { border-color: var(--green); } .mode.green h3 { color: var(--green); }
.mode.red { border-color: var(--red); } .mode.red img { border-color: var(--red); } .mode.red h3 { color: var(--red); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: '✓'; position: absolute; left: 4px; top: -2px; color: var(--red); font-size: 22px; font-weight: 700; }


/* ---------- weapons ---------- */
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; }
.cls { background: var(--card); border: 3px solid var(--ink); border-radius: 8px 16px 7px 18px; padding: 12px 16px; }
.cls h3 { font-family: 'Gaegu', cursive; font-size: 30px; margin: 0 0 6px; letter-spacing: 1px; }
.cls dl { margin: 0; }
.cls dt { font-weight: 700; color: var(--red); font-size: 21px; }
.cls dd { margin: 0 0 8px; font-size: 18px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.strip.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- skins ---------- */
.charLine { max-width: 760px; margin: 34px 0 0; }

/* ---------- controls ---------- */
.controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.ctl { background: var(--card); border: 2px solid var(--ink); border-radius: 8px 5px 9px 4px; padding: 8px 12px; font-size: 18px; }
.ctl span { display: block; margin-bottom: 4px; white-space: nowrap; }


/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.dlCard { background: var(--card); border: 3px solid var(--ink); border-radius: 14px 7px 16px 6px; padding: 12px 18px 16px; }
.dlCard h3 { font-family: 'Gaegu', cursive; font-size: 30px; margin: 0 0 4px; }
.dlCard p { margin: 0 0 10px; font-size: 18px; }
.dlCard .btn { font-size: 20px; padding: 4px 14px; }
.dlCard.red { border-color: var(--red); } .dlCard.red h3 { color: var(--red); }

footer { text-align: center; padding: 40px 24px 50px 84px; border-top: 2px solid var(--ink); margin-top: 50px; }
footer .hand { font-size: 30px; margin: 0; }
.ctlSplit { align-items: center; }
.moreKeys { margin-top: 14px; line-height: 1.9; }
.privacy { max-width: 760px; margin: 8px auto 0; }
.privacy summary { cursor: pointer; text-decoration: underline dotted; }
.privacy p { text-align: left; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 26, 70, .78); display: grid; place-items: center; padding: 24px; }
.modalInner { position: relative; width: min(1200px, 100%); background: var(--paper); border: 3px solid var(--ink); border-radius: 14px 8px 16px 7px; padding: 14px; }
.modalInner video, .modalInner img { width: 100%; display: block; border-radius: 6px; background: #000; }
.modalInner img { background: none; }
.modalInner p { text-align: center; margin: 8px 0 0; }
.close { position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 20px; cursor: pointer; }

/* ---------- mode pop-up ---------- */
.modalInner.pop { width: min(760px, 100%); padding: 18px 24px 22px; }
.popBody { max-height: calc(100vh - 100px); overflow: auto; }
.popBody h3 { font-family: 'Gaegu', cursive; font-size: 40px; margin: 0 0 10px; line-height: 1; }
.popBody h3 small { font-family: 'Patrick Hand', cursive; font-size: 18px; font-weight: 400; opacity: .75; margin-left: 8px; }
.popBody img { border: 3px solid var(--ink); border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.popBody p { text-align: left; margin: 12px 0 0; }
.popBody .ticks { margin-top: 12px; font-size: 18px; }
.popPics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.popBody.green h3 { color: var(--green); } .popBody.green img { border-color: var(--green); } .popBody.green .ticks li::before { color: var(--green); }
.popBody.red h3 { color: var(--red); } .popBody.red img { border-color: var(--red); }

/* ---------- doodles in the margins (wide screens only) ---------- */
.page { position: relative; }
.mdoodle { display: none; }
@media (min-width: 1440px) {
  .mdoodle {
    display: block; position: absolute; z-index: 2; width: 84px;
    background: none; border: 0; padding: 0; cursor: crosshair; font: inherit; color: var(--red);
    transition: transform .25s, opacity .4s;
  }
  .mdoodle.left { right: calc(100% + 6px); transform: rotate(-6deg); }
  .mdoodle.right { left: calc(100% + 8px); transform: rotate(5deg); }
  .mdoodle img { width: 100%; animation: bob 2.6s ease-in-out infinite; }
  .mdoodle span { display: block; font-family: 'Gaegu', cursive; font-size: 18px; line-height: 1.05; text-align: center; margin-top: 4px; }
  .mdoodle.green { color: var(--green); }
  .mdoodle:hover img { animation-duration: .5s; }
  .mdoodle.erased { opacity: 0; transform: scale(.4) rotate(40deg); pointer-events: none; }
}
.page > .pts { position: absolute; z-index: 3; font-family: 'Gaegu', cursive; font-weight: 700; font-size: 32px; color: var(--red); pointer-events: none; animation: pts .9s ease-out forwards; }
@media (min-width: 1700px) {
  .mdoodle { width: 130px; }
  .mdoodle.left { right: calc(100% + 40px); }
  .mdoodle.right { left: calc(100% + 40px); }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pts { from { opacity: 1; translate: -50% 0; } to { opacity: 0; translate: -50% -50px; } }
@media (prefers-reduced-motion: reduce) { .mdoodle img { animation: none; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 84px; }
  .modes, .enemies { grid-template-columns: repeat(2, 1fr); }
  .classes, .dl { grid-template-columns: repeat(2, 1fr); }
  .strip.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 18px; background-image: repeating-linear-gradient(var(--paper) 0 31px, var(--rule) 31px 32px); }
  main { padding: 0 16px; }
  footer { padding-left: 16px; }
  .top { padding: 8px 16px; flex-wrap: wrap; }
  .brand { font-size: 24px; }
  .menuToggle { display: block; }
  .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .top nav.open { display: flex; }
  .hero h1 { font-size: 64px; letter-spacing: 3px; }
  h2 { font-size: 40px; }
  .split, .modes, .enemies, .classes, .dl, .strip, .strip.four { grid-template-columns: 1fr; }
  .popPics { grid-template-columns: 1fr; }
  .btn.big { font-size: 28px; }
}
