/* ---- Palettes: every colour on the site comes from these tokens. ----
   Pick one in config.js (palette: 'bone' | 'phosphor' | 'paper' | 'blood' | 'bruise'). */
:root,
:root[data-palette="bone"] {
  --bg: #0b0a0d;
  --panel: #131118;
  --bone: #cfc8b4;
  --dim: #8d8775;
  --line: #4a463c;
  --link: #8f9bd6;
  --visited: #7b6fa8;
  --blood: #3a0f12;
  --flash: #e8d9b0;
  --accent: #e8d9b0;
  --on-link: #0b0a0d;
  --btn: #2a2832;
  --btn-hover: #37343f;
  --edge: #6b6779;
  --field: #000;
  --star: #1b1920;
  --count-bg: #0f0d12;
  --seg-off: #26232d;
  --seg-edge: #7a7690;
  --seg-on: #a3333a;
  --seg-on-edge: #c24b52;
  --seg-glow: rgba(163, 51, 58, 0.65);
  --plate: #cfc8b4;
  --paper: #cfc8b4;
  --img-filter: grayscale(1) contrast(1.05) brightness(0.9);
  --vignette: rgba(0, 0, 0, 0.55);
  --scan: rgba(0, 0, 0, 0.28);
  --glow: rgba(232, 217, 176, 0.5);
  --bad: #d98a8a;
  --serif: "Times New Roman", Times, serif;
  --mono: "Courier New", Courier, monospace;
}

:root[data-palette="phosphor"] {
  --bg: #030a05;
  --panel: #07140b;
  --bone: #8ee6a0;
  --dim: #4f9a63;
  --line: #1f5a31;
  --link: #c9ff6b;
  --visited: #7fc28a;
  --blood: #0b3a1a;
  --flash: #d6ffdc;
  --accent: #d6ffdc;
  --on-link: #030a05;
  --btn: #0c2514;
  --btn-hover: #12381f;
  --edge: #2f8a49;
  --field: #010603;
  --star: #08180e;
  --count-bg: #040d07;
  --seg-off: #0a1d11;
  --seg-edge: #2f7a46;
  --seg-on: #3ddc6c;
  --seg-on-edge: #8affad;
  --seg-glow: rgba(61, 220, 108, 0.6);
  --plate: #a8d9b0;
  --paper: #a8d9b0;
  --img-filter: grayscale(1) contrast(1.05) brightness(0.9);
  --vignette: rgba(0, 0, 0, 0.6);
  --scan: rgba(0, 30, 8, 0.32);
  --glow: rgba(142, 230, 160, 0.55);
  --bad: #ff9c8a;
}

:root[data-palette="paper"] {
  --bg: #d9d0b6;
  --panel: #e6dec6;
  --bone: #1d1a15;
  --dim: #6b624d;
  --line: #8a7f63;
  --link: #1b3a8a;
  --visited: #5a2f7a;
  --blood: #2a1a12;
  --flash: #f1e6c4;
  --accent: #7a1218;
  --on-link: #f1e6c4;
  --btn: #cbbf9c;
  --btn-hover: #bdb089;
  --edge: #8f825f;
  --field: #f1ead4;
  --star: #cbbf9c;
  --count-bg: #cfc5a6;
  --seg-off: #cbbf9c;
  --seg-edge: #8f825f;
  --seg-on: #8c1d22;
  --seg-on-edge: #5e1215;
  --seg-glow: rgba(140, 29, 34, 0.45);
  --plate: #efe6c8;
  --paper: #efe6c8;
  --img-filter: grayscale(1) contrast(1.05) brightness(0.95);
  --vignette: rgba(60, 40, 10, 0.35);
  --scan: rgba(60, 40, 10, 0.1);
  --glow: rgba(0, 0, 0, 0);
  --bad: #8c1d22;
}

:root[data-palette="blood"] {
  --bg: #0b0809;
  --panel: #141011;
  --bone: #d6cbc8;
  --dim: #968580;
  --line: #433434;
  --link: #d49c96;
  --visited: #b09b98;
  --blood: #3d191b;
  --flash: #f0ddd9;
  --accent: #f0ddd9;
  --on-link: #0d0606;
  --btn: #231a1a;
  --btn-hover: #2f2323;
  --edge: #64504f;
  --field: #050303;
  --star: #1a1212;
  --count-bg: #0f0a0a;
  --seg-off: #221a1a;
  --seg-edge: #64504f;
  --seg-on: #a8444a;
  --seg-on-edge: #d19490;
  --seg-glow: rgba(168, 68, 74, 0.5);
  --plate: #d6cbc6;
  --paper: #d6cbc6;
  --img-filter: grayscale(1) contrast(1.1) brightness(0.88);
  --vignette: rgba(0, 0, 0, 0.65);
  --scan: rgba(20, 8, 8, 0.28);
  --glow: rgba(212, 156, 150, 0.35);
  --bad: #e3a8a2;
}

:root[data-palette="bruise"] {
  --bg: #0c0914;
  --panel: #150f22;
  --bone: #d6cce8;
  --dim: #8f82ac;
  --line: #43365e;
  --link: #e08cff;
  --visited: #a58cd0;
  --blood: #2c1450;
  --flash: #f0e2ff;
  --accent: #f0e2ff;
  --on-link: #0c0914;
  --btn: #231a38;
  --btn-hover: #31244f;
  --edge: #6a5a94;
  --field: #05030a;
  --star: #1a1229;
  --count-bg: #0f0a19;
  --seg-off: #1d1530;
  --seg-edge: #6a5a94;
  --seg-on: #b94cff;
  --seg-on-edge: #e2a8ff;
  --seg-glow: rgba(185, 76, 255, 0.65);
  --plate: #d3c9e4;
  --paper: #d3c9e4;
  --img-filter: grayscale(1) contrast(1.08) brightness(0.9);
  --vignette: rgba(0, 0, 0, 0.6);
  --scan: rgba(20, 0, 40, 0.3);
  --glow: rgba(224, 140, 255, 0.5);
  --bad: #ff9ab8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 400 1rem/1.55 var(--mono);
}

/* old monitor edge darkening */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, var(--vignette) 100%);
  z-index: 50;
}

a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--on-link); background: var(--link); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--dim); font-size: 0.9rem; }

/* Donate bar */
.bar {
  display: flex;
  justify-content: center;
  padding: 6px 10px;
  background: var(--blood);
  border-bottom: 1px solid var(--line);
}

.btn.donate {
  max-width: 100%;
  color: var(--flash);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.bar a { color: var(--flash); }
.bar a:hover { color: var(--blood); background: var(--flash); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Page */
.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.head { display: flex; align-items: center; gap: 16px; padding: 24px 0 8px; }
.head > div { min-width: 0; }

.logo-wrap {
  position: relative;
  flex: none;
  display: block;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--plate);
}
.logo { display: block; width: 100%; height: 100%; }
.lclip {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(0 44.6%, 100% 44.6%, 100% 49.2%, 0 49.2%);
}
.iris {
  position: absolute;
  top: 41.81%;
  width: 6.11%;
  height: 6.11%;
  border-radius: 50%;
  background: #151515;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.iris b { position: absolute; left: 50%; top: 45%; width: 15%; height: 15%; border-radius: 50%; background: var(--plate); }
.iris-l { left: 32.36%; }
.iris-r { left: 62.5%; }
@media (prefers-reduced-motion: reduce) { .iris { transition: none; } }

.head h1 {
  margin: 0;
  overflow-wrap: break-word;
  font: 400 clamp(1.7rem, 8.5vw, 3.4rem)/1 var(--serif);
  letter-spacing: 0.04em;
}

.sub {
  margin: 4px 0 0;
  color: var(--dim);
  font-style: italic;
}

.original {
  margin: 16px 0;
  padding: 12px 14px;
  border: 3px double var(--link);
  background: var(--panel);
  font-size: 0.95rem;
}

.original p { margin: 0 0 8px; }
.original p:last-child { margin-bottom: 0; }
.original strong { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 18px 0 8px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.nav a { padding: 2px 4px; }

.nav a[aria-current="page"] {
  color: var(--on-link);
  background: var(--bone);
  text-decoration: none;
}

.note {
  margin: 16px 0 24px;
  padding: 10px 14px;
  max-width: 62ch;
  border-left: 4px solid var(--accent);
  background: var(--panel);
}
.note[hidden] { display: none; }
.note p { margin: 0; }
.note .note-tag { margin: 0 0 4px; color: var(--dim); font-size: 0.75rem; letter-spacing: 0.12em; }

.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }

.panel h2 {
  margin: 0;
  font: 400 1.7rem/1.1 var(--serif);
  letter-spacing: 0.03em;
}

.panel[hidden] { display: none; }

/* Buttons: old raised look */
.btn {
  font: 400 0.9rem/1.2 var(--mono);
  color: var(--bone);
  background: var(--btn);
  padding: 7px 10px;
  min-height: 40px;
  border: 2px outset var(--edge);
  cursor: pointer;
}

.btn:hover { background: var(--btn-hover); }
.btn:active { border-style: inset; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.card {
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.file-id { margin: 0 0 6px; color: var(--dim); font-size: 0.8rem; }

.portrait {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: var(--img-filter);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, var(--scan) 2px 3px);
}

.name { margin: 10px 0 0; font: 400 1.2rem/1.2 var(--serif); }
.years { margin: 0; color: var(--dim); font-size: 0.85rem; }
.rated { margin: 6px 0 10px; color: var(--dim); font-size: 0.85rem; }

.actions { display: grid; gap: 6px; }

.actions .btn {
  --c: var(--accent);
  text-align: left;
  color: color-mix(in srgb, var(--c) 62%, var(--bone));
  font-weight: 700;
  background: color-mix(in srgb, var(--c) 7%, var(--btn));
  border: 2px solid color-mix(in srgb, var(--c) 42%, var(--btn));
}
.actions .btn:hover { background: color-mix(in srgb, var(--c) 16%, var(--btn)); border-color: color-mix(in srgb, var(--c) 70%, var(--btn)); }
.actions .btn:active { border-style: dashed; }
.actions .k-life { --c: #7e93ad; }
.actions .k-lastDay { --c: #ad8f68; }
.actions .k-cause { --c: #b0686b; }
.actions .k-comments { --c: #9b8fb2; }
.actions .k-secret { --c: #a8708f; }
.actions .k-word { --c: #6f9f93; }
.actions .k-rate { --c: #b3a76f; }

.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.field {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
  color: var(--bone);
  background: var(--field);
  border: 2px inset var(--edge);
  font: 400 1rem var(--mono);
}

.bad { color: var(--bad); }

/* Footer */
.foot { margin-top: 36px; }
.foot hr { border: 0; border-top: 1px dashed var(--line); }

.counter[hidden] { display: none; }
.counter {
  display: inline-block;
  padding: 2px 8px;
  border: 2px inset var(--edge);
  background: var(--field);
  color: var(--accent);
}

/* Whisper line */
.strip { position: relative; }
.strip.nocount { min-height: 30px; }

.whisper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px 12px;
  text-align: center;
  overflow-wrap: break-word;
  color: var(--accent);
  background: var(--count-bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px var(--glow);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.whisper.on { opacity: 1; }

/* Dialog */
.dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 18px;
  color: var(--bone);
  background: var(--panel);
  border: 3px double var(--link);
}

.dialog::backdrop { background: rgba(0, 0, 0, 0.8); }

.dialog h2 { margin: 0 0 10px; font: 400 1.4rem/1.2 var(--serif); }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.dialog p { margin: 0 0 12px; }

.stars { display: flex; gap: 4px; margin: 0 0 12px; }

.star {
  flex: 1;
  min-height: 44px;
  font: 400 1.5rem/1 var(--mono);
  color: var(--dim);
  background: var(--star);
  border: 2px outset var(--edge);
  cursor: pointer;
}

.star.on { color: var(--accent); }

textarea.field { width: 100%; min-height: 90px; margin-bottom: 10px; }

/* Glitch on hover: portraits slip for a moment */
@media (prefers-reduced-motion: no-preference) {
  .portrait:hover img { animation: slip 0.35s steps(2, end) 1; }
}

@keyframes slip {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 1px) skewX(2deg); }
  50% { transform: translate(5px, -1px); }
  75% { transform: translate(-2px, 0) skewX(-2deg); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whisper { transition: none; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}
.pre { white-space: pre-wrap; }

/* Countdown bar */
.countdown {
  padding: 5px 12px;
  text-align: center;
  color: var(--dim);
  background: var(--count-bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.countdown[hidden] { display: none; }

/* Portrait shield: the image itself is never the thing you right-click */
.portrait, .logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.shield { position: absolute; inset: 0; z-index: 2; }

/* Comments file */
.comments { margin: 0 0 14px; padding: 0 0 0 18px; max-height: 50vh; overflow: auto; }
.comments li { margin: 0 0 8px; }

/* Notices and the black screen */
.notice {
  position: fixed;
  left: 50%;
  top: 40%;
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  transform: translateX(-50%);
  text-align: center;
  color: var(--flash);
  background: var(--blood);
  border: 3px double var(--flash);
  font: 400 1.2rem/1.3 var(--serif);
}
.notice[hidden], .blackout[hidden] { display: none; }

.blackout {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d8775;
  background: #000;
}

@media print { body > *:not(.blackout) { display: none !important; } }

/* Progress: one block per thing you can learn */
.meter { display: flex; gap: 0; margin: 8px 0 2px; border: 1px solid var(--seg-edge); background: var(--seg-off); }
.meter .seg {
  flex: 1;
  height: 14px;
  background: transparent;
  transition: background 0.7s ease-out, box-shadow 0.7s ease-out, opacity 0.7s;
}
.meter .seg.on { background: var(--seg-on); box-shadow: 0 0 6px var(--seg-glow); opacity: 1; }
.meter .seg.seen { background: var(--seg-on); opacity: 0.45; }
.meter.big { display: flex; margin: 4px 0; }
.meter.big .seg { height: 10px; }
.meter-label { margin: 0 0 6px; color: var(--dim); font-size: 0.8rem; letter-spacing: 0.06em; }
.known { margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .meter .seg { transition: none; } }

/* Payment panel: plain and centred */
.pay { margin: 0 0 14px; text-align: center; }
.pay-amount { margin: 4px 0 2px; font: 400 2rem/1.1 var(--serif); color: var(--accent); }
.pay-net { margin: 0 0 14px; color: var(--dim); font-size: 0.85rem; letter-spacing: 0.05em; }
.pay .qr { margin: 0 auto 14px; }
.pay-warn { margin: 10px 0 0; color: var(--dim); font-size: 0.8rem; }
.pay-wait { margin: 12px 0 0; color: var(--bone); font-size: 0.9rem; }
.pay-wait::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--seg-on-edge); animation: payblink 1.4s ease-in-out infinite; }
@keyframes payblink { 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) { .pay-wait::before { animation: none; } }
.pay-price { margin: 0 0 8px; }
details.havecode { margin: 14px 0 8px; text-align: left; color: var(--dim); font-size: 0.85rem; }
details.havecode summary { cursor: pointer; }
details.havecode form { margin-top: 8px; }
.pay .row { margin: 0 0 8px; }
.pay textarea.field { width: 100%; min-height: 70px; margin: 0 0 8px; }
.pay .muted { margin: 8px 0; }
.linkbtn { display: inline-block; text-decoration: none; color: var(--bone); }
.linkbtn:visited { color: var(--bone); }
.qr { margin: 8px 0; padding: 6px; width: 192px; max-width: 100%; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
fieldset.who { margin: 0 0 10px; padding: 8px 10px; border: 1px dashed var(--line); }
fieldset.who legend { padding: 0 6px; color: var(--dim); }

/* Button tiers: the most valuable options are bigger */
.actions .btn.t1 { min-height: 64px; padding: 12px 12px; font-size: 1.1rem; border-width: 2px; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 18%, transparent); }
.actions .btn.t2 { min-height: 50px; padding: 9px 11px; font-size: 1rem; }

/* Creepy touches */
.portrait img.glitch { animation: glitchflash 0.7s steps(2, end) 1; }
@keyframes glitchflash {
  0% { transform: translate(0, 0); filter: invert(1) contrast(1.4); }
  15% { transform: translate(-6px, 1px) skewX(4deg); filter: var(--img-filter); }
  30% { transform: translate(7px, -2px); filter: invert(1) contrast(1.4); }
  50% { transform: translate(-3px, 0) skewX(-3deg); filter: var(--img-filter); }
  70% { transform: translate(4px, 1px); filter: invert(1) contrast(1.4); }
  100% { transform: translate(0, 0); filter: var(--img-filter); }
}
.head h1.flick { animation: flick 0.9s steps(1, end) 1; }
@keyframes flick {
  0% { opacity: 1; } 10% { opacity: 0.15; } 20% { opacity: 1; } 30% { opacity: 0.3; }
  40% { opacity: 1; } 55% { opacity: 0.05; } 65% { opacity: 1; } 100% { opacity: 1; }
}

/* "What do you think?" pop-up */
.think-head { text-align: center; }
.logo-wrap.big { width: min(230px, 62vw); height: min(230px, 62vw); margin: 4px auto 14px; border-radius: 8px; }
.think-code { margin: 14px 0; font: 700 2.4rem/1 var(--mono); letter-spacing: 0.3em; text-align: center; color: var(--accent); }
.think-row { margin: 8px 0 0; }
.btn.think { color: var(--flash); }
.think-logo { display: block; width: 72px; height: 72px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--plate); overflow: hidden; }
.think-logo img { display: block; width: 100%; height: 100%; }
.think-opt { text-align: left; }
.think-count { margin: 12px 0; font: 400 2.2rem/1 var(--serif); text-align: center; color: var(--accent); }
.dialog .actions { margin: 0 0 12px; }

/* The room (small game) and teasers */
.teaser { margin: 6px 0 0; color: var(--dim); font-style: italic; font-size: 0.85rem; }
.actions .teaser:first-child { margin-top: 0; }
.room { margin: 0 0 12px; }
.room-cv { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 2px solid var(--edge); background: var(--bg); cursor: crosshair; }
.room-stat { margin: 8px 0 2px; color: var(--dim); font-size: 0.8rem; letter-spacing: 0.08em; }
.room-say { margin: 0 0 6px; min-height: 1.4em; color: var(--bone); }

.room-mute { margin: 0 0 10px; }

.room-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.room-bar .btn[hidden] { display: none; }

/* Stamps for companies and countries */
.seal { position: relative; width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--plate); filter: var(--img-filter); }
.seal::before { content: ""; position: absolute; inset: 14px; border: 4px double #1a1616; }
.seal span { font: 700 clamp(2.4rem, 12vw, 3.6rem)/1 var(--serif); color: #1a1616; letter-spacing: 0.04em; }
.nav { flex-wrap: wrap; }

/* The two messages at the door */
.intro::backdrop { background: rgba(0, 0, 0, 0.94); }
.intro { max-width: 520px; text-align: center; padding: 28px 24px 24px; }
.intro-text { margin: 0 0 22px; font: 400 1.35rem/1.6 var(--serif); white-space: pre-line; color: var(--accent); }
.intro-go { margin: 0; }

/* The logo laughs */
.logo-wrap.laugh { animation: laughshake 0.24s steps(2, end) infinite; }
@keyframes laughshake { 0% { transform: translate(0, -5px) rotate(-2.5deg); } 100% { transform: translate(0, 3px) rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) { .logo-wrap.laugh { animation: none; } }
.laugh-text { min-height: 2.6em; margin: 4px 0 14px; text-align: center; font: 700 1.3rem/1.3 var(--mono, "Courier New", monospace); letter-spacing: 0.08em; color: var(--accent); }
.think-row { display: flex; flex-wrap: wrap; gap: 8px; }
.think-row .btn { max-width: 100%; }

/* Phones */
@media (max-width: 400px) {
  .head { gap: 12px; }
  .logo-wrap:not(.big) { width: 72px; height: 72px; }
  .think-row .btn { font-size: 0.85rem; }
}
@media (pointer: coarse) {
  .nav { gap: 2px 8px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  .dialog input[type="checkbox"], .dialog input[type="radio"] { width: 24px; height: 24px; }
  .dialog label { min-height: 40px; }
}
.field.addr { flex: 1 1 100%; min-height: 3.4em; margin: 0; resize: none; font-size: 0.85rem; line-height: 1.35; word-break: break-all; text-align: center; }

/* Automatic payment: the exact amount, the code that appears */
.pay.order .row { display: flex; gap: 8px; align-items: stretch; margin: 0 0 8px; }
.pay.order .row .field { flex: 1 1 auto; min-width: 0; margin: 0; }
.field.amt { text-align: center; font-size: 1.05rem; letter-spacing: 0.04em; }
.field.code-big { text-align: center; font-size: 1.5rem; letter-spacing: 0.12em; padding: 12px 8px; color: var(--accent); }
.pay.paid .pay-amount { font-size: 1rem; letter-spacing: 0.2em; color: var(--dim); }
@media (max-width: 380px) { .field.code-big { font-size: 1.2rem; letter-spacing: 0.06em; } }

/* Arsenal: weapon history notes */
.room-note { margin: 6px 0 0; text-align: center; font-size: 0.85rem; line-height: 1.4; color: var(--dim); min-height: 1.4em; }
.weapon-note { margin: 2px 0 10px; font-size: 0.8rem; line-height: 1.35; }

/* No refunds notice */
.pay-norefund { margin: 8px 0 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.norefund { margin: 6px 0 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.norefund:empty { display: none; }

/* Screenshot / print cover: the big logo face, staring */
.blackout { flex-direction: column; background: var(--plate, #d8cfcb); }
.blackout .logo-wrap.stare { width: min(100vw, 100vh, 640px); height: min(100vw, 100vh, 640px); margin: 0; border: 0; border-radius: 0; }
.blackout .stare-text { margin: 0; position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: #111; }
.blackout .stare-text:empty { display: none; }

/* Country flags: a flag on an old stamped plate, a little muted like everything else here */
.flagbox { position: relative; width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--plate); }
.flagbox .flag { display: block; width: 76%; height: auto; box-shadow: 0 0 0 3px #1a1616; filter: saturate(0.7) contrast(1.05) brightness(0.88); }

/* Search box in each section */
.search { flex: 1 1 160px; max-width: 280px; min-height: 36px; }
.card[hidden] { display: none; }
.nomatch { margin: 8px 0 0; }
