/* Gaming page — paper pinboard. Taped cards, handwriting, no neon. */

:root {
  --g-paper: #efe8db;
  --g-card: #fbf7ef;
  --g-line: #d9cfbb;
  --g-ink: #2b2723;
  --g-ink-soft: #6b6155;
  --g-tape: rgba(214, 199, 160, 0.75);
  --g-accent: #c2553f;
}

:root[data-theme="dark"] {
  --g-paper: #191713;
  --g-card: #262119;
  --g-line: #3d352a;
  --g-ink: #f0e9dc;
  --g-ink-soft: #b3a691;
  --g-tape: rgba(120, 104, 70, 0.65);
  --g-accent: #e08464;
}

body:has(.gaming-board) {
  background: var(--g-paper);
}

.gaming-board {
  max-width: 980px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
  color: var(--g-ink);
}

/* --- head ------------------------------------------------------------- */

.board-head {
  max-width: 34rem;
  padding-bottom: 2rem;
}

.board-head__pin {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g-ink-soft);
  margin: 0 0 0.75rem;
}

.board-head h1 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.scribble {
  font-family: "Caveat", cursive;
  font-size: 1.25em;
  color: var(--g-accent);
  display: inline-block;
  transform: rotate(-2deg);
}

.board-head p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--g-ink-soft);
  max-width: 32rem;
}

/* --- board: polaroid + tickets ---------------------------------------- */

.board {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding: 1rem 0 3rem;
}

.polaroid {
  position: relative;
  margin: 0;
  padding: 0.9rem 0.9rem 0;
  background: var(--g-card);
  border: 1px solid var(--g-line);
  box-shadow: 0 14px 30px rgba(43, 39, 35, 0.16);
  transform: rotate(-1.6deg);
}

/* Two strips of masking tape holding the photo to the board. */
.polaroid::before,
.polaroid::after {
  content: "";
  position: absolute;
  top: -0.85rem;
  width: 5.5rem;
  height: 1.7rem;
  background: var(--g-tape);
  border-radius: 2px;
}

.polaroid::before { left: 1.2rem; transform: rotate(-6deg); }
.polaroid::after { right: 1.2rem; transform: rotate(5deg); }

.polaroid svg {
  display: block;
  width: 100%;
  height: auto;
  /* A photo stays a photo: the print keeps its own light paper in both themes. */
  background: #ded5c2;
}

/* The lids roll up out of sight and drop for a blink, so they hinge at the top. */
#g-lids { transform-origin: 50% 0%; }

.polaroid figcaption {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  text-align: center;
  padding: 0.5rem 0 0.9rem;
  color: var(--g-ink-soft);
}

/* --- ID tickets -------------------------------------------------------- */

.tickets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--g-card);
  border: 1px solid var(--g-line);
  border-left: 5px solid var(--g-accent);
  box-shadow: 0 6px 16px rgba(43, 39, 35, 0.1);
}

.ticket:nth-child(even) { transform: rotate(0.5deg); }
.ticket:nth-child(odd) { transform: rotate(-0.4deg); }

.ticket__where {
  grid-column: 1 / -1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g-ink-soft);
}

.ticket__id {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.02rem;
  font-weight: 600;
  word-break: break-all;
}

.ticket__copy,
.ticket__link {
  justify-self: end;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--g-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--g-ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.ticket__copy:hover,
.ticket__copy:focus-visible,
.ticket__link:hover,
.ticket__link:focus-visible {
  background: var(--g-ink);
  color: var(--g-card);
}

.ticket__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.88rem;
  color: var(--g-ink-soft);
}

/* --- eras timeline ----------------------------------------------------- */

.eras {
  padding: 1rem 0 2rem;
}

.eras h2 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.eras__kicker {
  margin: 0 0 2rem;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  color: var(--g-accent);
}

.eras ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  border-left: 2px dashed var(--g-line);
  display: grid;
  gap: 2rem;
}

.eras li { position: relative; }

.eras li::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--g-accent);
}

.eras__when {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-ink-soft);
  margin-bottom: 0.4rem;
}

.eras h3 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
}

.eras p {
  margin: 0;
  line-height: 1.65;
  color: var(--g-ink-soft);
  max-width: 44rem;
}

/* --- closing note ------------------------------------------------------ */

.board-note {
  margin: 1rem 0 0;
  padding: 1.5rem 1.6rem;
  background: var(--g-card);
  border: 1px solid var(--g-line);
  box-shadow: 0 6px 16px rgba(43, 39, 35, 0.1);
  transform: rotate(-0.6deg);
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  line-height: 1.5;
}

.board-note a { color: var(--g-accent); }

/* --- avatar parts: every #g-* stays independently transformable -------- */

#gamer [id^="g-"] {
  transform-box: fill-box;
  transform-origin: center;
}

#g-float {
  animation: gamer-bob 4.5s ease-in-out infinite;
}

@keyframes gamer-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  #g-float { animation: none; }
  .ticket__copy,
  .ticket__link { transition: none; }
}

@media (max-width: 820px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .polaroid {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* --- footer sticker strip ---------------------------------------------- */

.board-foot {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--g-line);
}

.board-foot__label {
  margin: 0 0 1.25rem;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  color: var(--g-ink-soft);
}

.stickers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.stickers li {
  background: #000;
  border: 1px solid var(--g-line);
  box-shadow: 0 8px 20px rgba(43, 39, 35, 0.18);
}

.stickers li:nth-child(odd) { transform: rotate(-1.2deg); }
.stickers li:nth-child(even) { transform: rotate(1deg); }

.stickers img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .stickers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
