/* 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 { 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: 1180px; 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.25fr; 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); }

/* ---------- enemies ---------- */
.enemies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.enemy { border: 2px solid var(--red); border-radius: 14px 6px 12px 8px; padding: 10px 14px; background: var(--card); color: var(--red); }
.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 { 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 { aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid inherit; border-bottom: 3px solid var(--ink); cursor: zoom-in; }
.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 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); }
.zombies { margin-top: 10px; }
.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; }
.zombies .ticks li::before { color: var(--green); }
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.map { border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 16px; background: rgba(251, 248, 239, .8); }
.map h4 { font-family: 'Gaegu', cursive; font-size: 28px; margin: 0; }
.map p { margin: 4px 0 0; font-size: 18px; }
.map.green { border-color: var(--green); } .map.green h4 { color: var(--green); }

/* ---------- 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 ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.rico { width: 20px; height: 20px; vertical-align: -3px; flex: none; }
.tabs { display: inline-flex; border: 3px solid var(--ink); border-radius: 10px 6px 11px 5px; overflow: hidden; margin: 6px 0 20px; }
.tabs button { font: inherit; font-size: 21px; color: var(--ink); background: var(--card); border: 0; border-right: 2px solid var(--ink); padding: 4px 22px; cursor: pointer; }
.tabs button:last-child { border-right: 0; }
.tabs button.on { background: var(--ink); color: var(--paper); }
.skinGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.skin {
  background: var(--card);
  background-image: repeating-linear-gradient(var(--card) 0 23px, #dfe7f6 23px 24px);
  border: 2.5px solid var(--ink); border-radius: 10px 6px 12px 5px;
  padding: 8px 10px 12px; text-align: center; position: relative;
  transition: transform .15s;
}
.skin:hover { transform: translateY(-4px) rotate(-1deg); }
.skin img { width: 100%; aspect-ratio: 1; object-fit: contain; transform: scale(1.18); margin: -6px 0 2px; }
.skin .nm { font-family: 'Gaegu', cursive; font-weight: 700; font-size: 22px; line-height: 1.1; display: flex; justify-content: center; align-items: center; gap: 5px; }
.skin .rar { display: block; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
.skin .desc { display: block; font-size: 16px; line-height: 1.25; margin-top: 4px; }
.skin .how { display: block; margin-top: 8px; font-size: 14px; color: var(--red); border-top: 1.5px dashed var(--rule); padding-top: 6px; }
.skin.rare { border-color: var(--ink); }
.skin.legendary { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(243, 221, 140, .7); }
.skin.legendary .rar { color: var(--red); opacity: 1; }
.skin.mythic { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(220, 203, 247, .9); }
.skin.mythic .rar { color: var(--purple); opacity: 1; }
.char { margin-top: 30px; align-items: center; }

/* ---------- achievements ---------- */
.achs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
.ach { display: grid; grid-template-columns: 34px 1fr 84px; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--ink); border-radius: 10px 5px 12px 6px; padding: 8px 12px; }
.ach .star { font-size: 30px; color: var(--red); text-align: center; line-height: 1; }
.ach b { font-family: 'Gaegu', cursive; font-size: 24px; letter-spacing: 1px; display: block; line-height: 1.1; }
.ach .goal { font-size: 17px; }
.ach .rw { display: block; font-size: 15px; color: var(--red); }
.ach .rw.none { color: var(--ink-soft); }
.ach img { width: 84px; height: 84px; object-fit: contain; }
.ach .noimg { width: 84px; height: 84px; display: grid; place-items: center; font-size: 34px; opacity: .5; }

/* ---------- how to play ---------- */
.steps { padding-left: 26px; margin: 0; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li::marker { font-family: 'Gaegu', cursive; font-weight: 700; color: var(--red); font-size: 1.2em; }
.controls { display: grid; grid-template-columns: repeat(4, 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; }
.tips { columns: 2; column-gap: 40px; }
.tips li { break-inside: avoid; }

/* ---------- 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; }

/* ---------- 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; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 84px; }
  .modes, .enemies, .maps { grid-template-columns: repeat(2, 1fr); }
  .classes, .dl { grid-template-columns: repeat(2, 1fr); }
  .controls { grid-template-columns: repeat(2, 1fr); }
  .strip.four { grid-template-columns: repeat(2, 1fr); }
  .achs { grid-template-columns: 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, .maps, .classes, .dl, .strip, .strip.four, .controls { grid-template-columns: 1fr; }
  .skinGrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tabs button { padding: 4px 12px; font-size: 18px; }
  .tips { columns: 1; }
  .ach { grid-template-columns: 30px 1fr 64px; }
  .ach img, .ach .noimg { width: 64px; height: 64px; }
  .btn.big { font-size: 28px; }
}
