:root {
  --red: #c80000;
  --dark: #080a12;
  --paper: #faf7ef;
  --ink: #111;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #111;
  color: white;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
}
.app { max-width: 1200px; margin: 0 auto; padding: 24px; }
.controls {
  font-family: system-ui, sans-serif;
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}
.controls label { display: block; margin: 12px 0; font-weight: 700; }
.controls input {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #777;
  font: 16px system-ui, sans-serif;
}
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
button {
  background: var(--red);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}
.cards { display: grid; gap: 28px; }
.card {
  background: var(--dark);
  color: var(--ink);
  border: 3px solid var(--red);
  border-radius: 14px;
  padding: 18px;
  page-break-after: always;
}
.card-header {
  text-align: center;
  color: var(--paper);
  letter-spacing: 5px;
}
.card-header .forum { font-size: 32px; }
.card-header .title {
  font-size: clamp(46px, 8vw, 88px);
  line-height: .95;
}
.card-header .subtitle {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 4px;
  margin: 8px 0 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 3px solid #111;
  background: #111;
  gap: 2px;
}
.letter {
  background: var(--red);
  color: white;
  text-align: center;
  font-size: 56px;
  line-height: 1.15;
}
.cell {
  min-height: 118px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: clamp(18px, 2.3vw, 29px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.free {
  background: #111827;
  color: white;
  flex-direction: column;
}
.free .small {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
}
.footer {
  margin-top: 12px;
  color: var(--paper);
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}
@media print {
  body { background: white; }
  .no-print { display: none; }
  .app { padding: 0; max-width: none; }
  .card { width: 100vw; min-height: 100vh; border-radius: 0; }
}
