@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=Archivo:wght@400;600;700&display=swap");

:root {
  --desk: #2f3a32;
  --paper: #f6f1df;
  --ink: #1b1b1b;
  --stamp: #c45c26;
  --mute: #5e5a50;
  --m: "IBM Plex Mono", ui-monospace, monospace;
  --b: "Archivo", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--b);
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 20% 0%, #44564a, transparent 46%),
    var(--desk);
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--paper); padding: 8px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px dashed rgba(27, 27, 27, 0.35);
}
.topbar-in {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--m); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--mute); }
nav.links { display: flex; gap: 16px; flex: 1; font-family: var(--m); font-size: 0.78rem; }
.acts { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.player-name { font-family: var(--m); font-size: 0.82rem; }
.burger {
  display: none; border: 1px dashed var(--ink); background: transparent;
  width: 40px; height: 40px; cursor: pointer; margin-left: auto;
}

.btn {
  border: 1px dashed var(--ink); background: transparent; font: inherit; font-size: 0.82rem;
  padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; min-height: 40px;
}
.btn-fill { background: var(--ink); color: var(--paper); border-style: solid; }

.stage {
  width: min(var(--max), calc(100% - 40px));
  margin: 28px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.board {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}
.board img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.board img:first-child { height: 360px; }
.board-cap {
  font-family: var(--m);
  font-size: 0.75rem;
  color: #d7e0d8;
  margin: 0;
}

.slip {
  background: var(--paper);
  padding: 28px 28px 32px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
  position: relative;
  min-width: 0;
}
.slip:before {
  content: "";
  position: absolute; left: 0; right: 0; top: -8px; height: 16px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, #2f3a32 10px 12px);
  opacity: 0.18;
}
.sheet {
  width: min(840px, calc(100% - 40px));
  margin: 28px auto 48px;
  background: var(--paper);
  padding: 36px 40px 40px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

hr.dash { border: 0; border-top: 1px dashed var(--ink); margin: 16px 0; }
.center { text-align: center; }
.shop { font-family: var(--m); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); margin: 0.35em 0 0.2em; }
h2 { font-size: 1.25rem; }
.tiny { font-family: var(--m); font-size: 0.78rem; color: var(--mute); }
.pic { display: none; }
.rows { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rows td { padding: 14px 8px 14px 0; border-bottom: 1px dotted rgba(27, 27, 27, 0.35); vertical-align: middle; }
.rows td img { width: 56px; height: 56px; object-fit: cover; }
.sku { font-family: var(--m); font-size: 0.7rem; color: var(--mute); }
.tear {
  margin: 22px 0 10px; text-align: center; font-family: var(--m);
  font-size: 0.7rem; letter-spacing: 0.2em; position: relative;
}
.tear:before, .tear:after {
  content: ""; position: absolute; top: 50%; width: 28%; height: 0; border-top: 1px dashed var(--ink);
}
.tear:before { left: 0; }
.tear:after { right: 0; }
.stamp {
  width: 88px; height: 88px; border: 3px solid var(--stamp); color: var(--stamp);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--m); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-12deg); margin: 16px auto;
}
.foot { font-family: var(--m); font-size: 0.72rem; color: var(--mute); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; margin: 8px 0; }
.age {
  display: inline-flex; width: 26px; height: 26px; border: 1px solid var(--ink);
  align-items: center; justify-content: center; font-family: var(--m); font-size: 0.65rem; margin-right: 6px;
}

.overlay {
  position: fixed; inset: 0; background: rgba(20, 24, 21, 0.55);
  display: none; align-items: center; justify-content: center; z-index: 70; padding: 20px;
}
.overlay.is-open { display: flex; }
.modal, .age-box { width: min(420px, 100%); background: var(--paper); padding: 20px; position: relative; }
.close-x {
  position: absolute; right: 8px; top: 8px; border: 1px dashed var(--ink);
  background: transparent; width: 32px; height: 32px; cursor: pointer;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 36px 12px 0; }
.tabs button { border: 1px dashed var(--ink); background: transparent; min-height: 36px; font: inherit; cursor: pointer; }
.tabs button.is-on { background: var(--ink); color: var(--paper); }
.field { display: grid; gap: 4px; margin-bottom: 10px; font-family: var(--m); font-size: 0.72rem; }
.field input { min-height: 40px; border: 1px solid var(--ink); background: #fff; padding: 0 8px; font: inherit; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.marks { display: flex; gap: 6px; margin: 8px 0; }
.mark { width: 34px; height: 34px; border: 1px solid var(--ink); background: #fff; cursor: pointer; font-family: var(--m); }
.mark:has(input:checked) { background: var(--stamp); color: #fff; border-color: var(--stamp); }
.mark input { display: none; }
.consent { display: flex; gap: 8px; font-size: 0.86rem; }
.auth-error { color: var(--stamp); font-size: 0.84rem; font-family: var(--m); }
.switch-line { text-align: center; margin-top: 12px; font-size: 0.86rem; }
.switch-line button { background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 24px)); z-index: 60; background: var(--paper);
  padding: 12px 16px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.prose { font-size: 0.95rem; max-width: 62ch; }
.prose input, .prose textarea { width: 100%; border: 1px solid var(--ink); padding: 10px; font: inherit; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; margin-top: 16px; }
  .board { position: static; }
  .board img, .board img:first-child { height: 200px; }
  .sheet { width: min(100% - 24px, 840px); padding: 24px 18px; }
}

@media (max-width: 720px) {
  .topbar-in { width: calc(100% - 24px); flex-wrap: wrap; }
  nav.links {
    display: none; flex-basis: 100%; flex-direction: column; gap: 8px; padding-top: 8px;
  }
  nav.links.is-open { display: flex; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .acts { margin-left: 0; }
  .stage { width: calc(100% - 24px); }
  .slip { padding: 22px 16px 28px; }
  .board { display: none; }
  .pic { display: block; margin: 12px 0; }
  .pic img { width: 100%; height: 200px; object-fit: cover; filter: grayscale(0.15) contrast(1.05); }
}

@media (max-width: 480px) {
  .acts [data-open-auth="login"] { display: none; }
}
