/* Kareli Savaş sitesi: oyundaki defter renkleri (lib/ui/palette.dart). */
@font-face { font-family: "Kalam"; src: url("fonts/Kalam-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --desk: #E9EEF5; --paper: #FBFCF8; --grid: #C6D8EF; --ink: #1D2230; --muted: #5B6477;
  --line: #D8E1ED; --margin: #E9A3A0; --red: #C8372D; --blue: #1F5FD1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #0E131B; --paper: #161D29; --grid: #26354D; --ink: #E8ECF4; --muted: #9BA5B9;
    --line: #2B3649; --margin: #8A4A4A; --red: #FF7466; --blue: #7AA2FF;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: var(--blue); }
.sheet { max-width: 880px; margin: 0 auto; padding: 0 16px 40px; position: relative; }
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; background: var(--margin); opacity: .7; }
header { display: flex; align-items: center; gap: 12px; padding: 22px 0 8px 14px; }
header img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
header a { text-decoration: none; color: var(--ink); font-family: "Kalam", cursive; font-weight: 700; font-size: 26px; }
h1, h2, .hand { font-family: "Kalam", "Comic Sans MS", cursive; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(40px, 9vw, 64px); margin: 28px 0 6px; }
h1 .red, h2 .red { color: var(--red); }
h2 { font-size: 32px; margin: 44px 0 10px; }
.lead { font-size: 20px; margin: 0 0 18px; max-width: 34em; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.badge { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; padding: 8px 16px; border-radius: 999px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 0; }
.shots img { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
.muted { color: var(--muted); }
footer { margin-top: 56px; padding: 18px 0 0 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--muted); }
@media (max-width: 640px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots img:last-child { display: none; }
}
