/* Page view (?plain, or when the 3D world can't start). The island's cards
   as a website: the hero over a picture of the island, a grass edge, then
   tabs and cards on Minecraft dirt. site/page.js builds the tabs and paints
   --pv-dirt and --pv-grass; without it the cards stack and the colours stay
   flat. Motion only runs with body.pv-motion, which page.js leaves off when
   the visitor prefers reduced motion. Nothing here applies to the 3D view. */

body.plain { --pv-wide: 1080px; --pv-dirt-c: #3b2a1e; background: var(--pv-dirt-c); }
body.plain::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--pv-dirt-c) var(--pv-dirt, none) 0 0 / 64px 64px; image-rendering: pixelated;
}

/* ---------- Top bar: the tabs are the section list here ---------- */
body.plain .site-nav { display: none; }
body.plain .site-actions { margin-left: auto; }
@media (min-width: 1041px) {
  body.plain .site-menu { display: none; }
}
@media (max-width: 1040px) {
  body.plain .site-menu { display: block; }
  body.plain .site-nav.open { display: flex; z-index: 60; }
}
body.plain .site-mode { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; color: #fff; background: rgba(255, 255, 255, .1); }
body.plain .site-mode:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }

/* ---------- Hero over the island ---------- */
body.plain #hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; max-width: none; margin: 0;
  min-height: min(640px, calc(100svh - var(--bar-h) - 40px));
  padding: 64px max(24px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left));
  background: #182016;
}
body.plain #hero::before {
  content: ""; position: absolute; inset: -4%; z-index: -2;
  background: url("../assets/branding/island-wide.webp") 62% 45% / cover no-repeat;
}
body.plain #hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 10, .9) 0, rgba(10, 12, 10, .72) 38%, rgba(10, 12, 10, .1) 70%),
    linear-gradient(0deg, rgba(10, 12, 10, .55) 0, rgba(10, 12, 10, 0) 28%);
}
body.plain .hero-card { width: min(560px, 100%); color: #fff; }
body.plain .hero-eyebrow { color: #cfe8c4; text-shadow: 1px 1px 0 #000; }
body.plain .hero-tag { text-shadow: 1px 1px 0 #000; }
body.plain .hero-facts li { background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); transition: transform .18s, background-color .18s; }
body.plain .hero-facts li:hover { transform: translateY(-2px); background: rgba(0, 0, 0, .6); }
body.plain .hero-facts b { color: var(--gold); text-shadow: 1px 1px 0 #000; font-variant-numeric: tabular-nums; }

/* ---------- Grass edge and tabs ---------- */
/* Tall enough that even a short tab can scroll its bar up under the top bar. */
body.plain #pages { max-width: none; min-height: 100svh; margin: 0; padding: 0 0 24px; }
.pv-grass {
  height: 40px;
  background: #6fa544 var(--pv-grass, linear-gradient(#6fa544 0 12px, var(--pv-dirt-c) 12px)) 0 0 / 64px 64px repeat-x;
  image-rendering: pixelated;
}
.pv-tabbar {
  position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); z-index: 30;
  background: linear-gradient(rgba(22, 16, 11, .94), rgba(22, 16, 11, .88));
  box-shadow: 0 2px 0 #000;
}
.pv-tabs {
  display: flex; gap: 8px; max-width: var(--pv-wide); margin: 0 auto; padding: 10px 16px 12px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tab {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 82px; padding: 9px 10px 8px; border: 0;
  font: 600 13px/1 var(--text); color: #ecebe6; text-shadow: 1px 1px 0 #000; white-space: nowrap;
  background: #5c5953;
  box-shadow: 0 0 0 2px #000, inset 2px 2px 0 rgba(255, 255, 255, .2), inset -2px -3px 0 rgba(0, 0, 0, .38);
  transition: transform .15s ease, background-color .15s ease;
}
.pv-tab i { width: 28px; height: 28px; background: var(--icon) center / contain no-repeat; image-rendering: pixelated; transition: transform .2s ease; }
.pv-tab:hover { background: #76736c; transform: translateY(-2px); }
.pv-tab:hover i { transform: translateY(-2px) scale(1.08); }
.pv-tab:active { transform: translateY(1px); }
.pv-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pv-tab.cta { background: var(--cta); }
.pv-tab.cta:hover { background: var(--cta-hover); }
.pv-tab[aria-selected="true"] {
  color: var(--ink); text-shadow: none; background: var(--gui);
  box-shadow: 0 0 0 2px #000, inset 2px 2px 0 var(--gui-light), inset -2px -3px 0 var(--gui-shade), inset 0 -5px 0 var(--accent);
}
.pv-tab.cta[aria-selected="true"] { box-shadow: 0 0 0 2px #000, inset 2px 2px 0 var(--gui-light), inset -2px -3px 0 var(--gui-shade), inset 0 -5px 0 var(--cta); }

/* ---------- Cards ---------- */
body.plain #pages > .page {
  position: relative;
  width: min(840px, calc(100% - 32px));
  max-width: 840px;
  margin: 32px auto 40px;
  padding: 28px 32px 34px;
  background: #c8c5bc;
  border: 24px solid transparent;
  border-image: url("../assets/branding/stone-brick-frame.svg") 24 / 24px round;
  box-shadow: 0 0 0 2px #181512, 0 16px 40px rgba(0, 0, 0, 0.45);
}
body.plain #pages > .page:focus { outline: none; }
body.plain #pages > .page[hidden] { display: none !important; }

/* Universal Card Headers across all tabs */
body.plain .page-card-header,
body.plain .faq-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
body.plain :is(.page-card-header, .faq-card-header) .header-left,
body.plain :is(.page-card-header, .faq-card-header) .faq-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
}
body.plain .page-card-icon,
body.plain .faq-book-icon {
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--icon) center / contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.25));
}
body.plain #faq .page-card-icon,
body.plain #faq .faq-book-icon {
  background-image: url("../assets/branding/book-and-quill.svg");
}
body.plain :is(.page-card-header, .faq-card-header) h2 {
  display: inline-block;
  margin: 0;
  font-family: 'Minecraft', 'Silkscreen', 'Press Start 2P', monospace, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #27221c;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0 #aba69a;
}
body.plain :is(.page-card-header, .faq-card-header) h2::before {
  display: none !important;
}
body.plain .card-badge,
body.plain .faq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  margin-left: 2px;
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #ede7dc;
  background: #473e36;
  border: 2px solid #201b16;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), inset -1px -1px 0 rgba(0, 0, 0, 0.45);
  text-shadow: 1px 1px 0 #15110d;
}

body.plain .page p {
  max-width: 72ch;
  color: #27231e;
  font-size: 15px;
  line-height: 1.55;
}
body.plain .page strong {
  color: #171410;
}
body.plain .page h3 {
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #27221c;
}

/* Universal Minecraft Stone Beveled Surfaces */
body.plain :is(.hack-stat, .track-card, .schedule-item, .prize-tier, .store > li, .crew-role, .venue-address, .travel-item, .faq-box summary) {
  background: linear-gradient(180deg, #dedbd4 0%, #cac5ba 100%);
  border: 2px solid #25221d;
  box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #7b766c;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
body.plain :is(.hack-stat, .track-card, .schedule-item, .prize-tier, .store > li, .crew-role, .travel-item):hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #eae7e0 0%, #d6d1c7 100%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), inset 2px 2px 0 #ffffff, inset -2px -2px 0 #7b766c;
}

/* Inset Wells (Parchment wells for answer drawers, asides, and notes) */
body.plain :is(.faq-answer, #welcome .aside, .swag-box) {
  background: color-mix(in srgb, var(--gui, #c4c2bc) 88%, #000);
  border: 2px solid #25221d;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.28), inset -2px -2px 0 rgba(255, 255, 255, 0.25);
  padding: 14px 18px;
  margin-top: 14px;
}

/* Buttons press in. */
body.plain .mc-button {
  transition: transform 0.1s ease, background-color 0.15s ease;
}
body.plain .mc-button:hover {
  transform: translateY(-1px);
}
body.plain .mc-button:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 2px var(--line), inset 2px 3px 0 rgba(0, 0, 0, 0.3);
}

/* 1. Welcome */
body.plain .hack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
body.plain .hack-stat {
  padding: 14px 6px;
  text-align: center;
  opacity: 1 !important;
  min-width: 0;
  overflow: hidden;
}
body.plain .hack-stat .val {
  display: block;
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: clamp(14px, 1.8cqw, 18px);
  font-weight: 700;
  color: #1b4332;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.plain .hack-stat .lbl {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #59554e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.plain #welcome .aside {
  font-size: 15px;
  line-height: 1.6;
  color: #27231e;
}

/* 2. Tracks */
body.plain #tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.plain #tracks > :not(.track-card) {
  grid-column: 1 / -1;
}
body.plain .track-card {
  margin: 0;
  padding: 18px 20px;
}
body.plain .track-card h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  color: #27221c;
}
body.plain .track-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3b3630;
}
body.plain .track-tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid #201b16;
  border-radius: 3px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0 rgba(0, 0, 0, 0.4);
}

/* 3. Schedule Timeline (Minecraft Railway & Redstone Mechanism) */
body.plain #schedule {
  overflow: visible;
}

/* Top Horizontal Railway Track Header */
body.plain .pv-timeline-top {
  grid-column: 1 / -1;
  margin: 6px 0 16px;
  padding: 0 4px;
}
body.plain .pv-top-track-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
body.plain .pv-prop-torch {
  flex: none;
  width: 20px;
  height: 20px;
  background: url("../assets/branding/redstone-torch.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 5px #ef4444);
}
body.plain .pv-top-badge {
  flex: none;
  padding: 6px 14px;
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
  user-select: none;
}
body.plain .pv-top-badge.d1 {
  background: #7a4b28;
  border: 2px solid #3c2415;
  box-shadow: inset 1px 1px 0 #a4683a, inset -1px -1px 0 #28170c;
  color: #f5eedb;
}
body.plain .pv-top-badge.d2 {
  background: #505256;
  border: 2px solid #242527;
  box-shadow: inset 1px 1px 0 #787a7f, inset -1px -1px 0 #1b1c1e;
  color: #edebe6;
}
body.plain .pv-rail-h {
  flex: 1;
  position: relative;
  height: 20px;
  background: url("../assets/branding/rail-h.svg") center / 20px 20px repeat-x;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.plain .pv-minecart {
  width: 32px;
  height: 24px;
  background: url("../assets/branding/minecart.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
  margin-top: -6px;
}
body.plain .pv-rail-h-end {
  flex: none;
  width: 48px;
  height: 20px;
  background: url("../assets/branding/rail-h.svg") center / 20px 20px repeat-x;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
body.plain .pv-redstone-dot {
  width: 14px;
  height: 14px;
  background: #dc2626;
  border: 2px solid #ff4d4d;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  margin-right: -4px;
}

/* Timeline Body: Redstone Gutter Left + Day 1 + Day 2 + Redstone Gutter Right */
body.plain .pv-timeline-body {
  display: grid;
  grid-template-columns: 20px 1fr 1fr 20px;
  gap: 12px;
  align-items: stretch;
  position: relative;
}

/* Redstone Wire Gutters */
body.plain .pv-redstone-gutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  position: relative;
}
body.plain .pv-redstone-gutter .rs-wire-v {
  flex: 1;
  width: 2px;
  background: #dc2626;
  box-shadow: 0 0 5px #ef4444;
  margin: 4px auto;
}
body.plain .pv-redstone-gutter .rs-torch {
  width: 18px;
  height: 18px;
  background: url("../assets/branding/redstone-torch.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 4px #ef4444);
}
body.plain .pv-redstone-gutter .rs-lever {
  width: 18px;
  height: 18px;
  background: url("../assets/branding/lever.svg") center / contain no-repeat;
}
body.plain .pv-redstone-gutter .rs-repeater {
  width: 18px;
  height: 18px;
  background: url("../assets/branding/repeater.svg") center / contain no-repeat;
  transform: rotate(90deg);
}
body.plain .pv-redstone-gutter .rs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 6px #ef4444;
}

/* Schedule Columns */
body.plain .pv-day {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Timeline Cards */
body.plain .schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  margin: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.plain .schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

/* Alternating Card Material Themes */
body.plain .schedule-item.theme-stone {
  background: linear-gradient(180deg, #dedbd4 0%, #cac5ba 100%);
  border: 2px solid #25221d;
  box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #7b766c;
}
body.plain .schedule-item.theme-stone::before {
  content: "";
  position: absolute;
  inset: -3px;
  pointer-events: none;
  background:
    linear-gradient(#5a554c, #5a554c) top left / 4px 4px no-repeat,
    linear-gradient(#5a554c, #5a554c) top right / 4px 4px no-repeat,
    linear-gradient(#5a554c, #5a554c) bottom left / 4px 4px no-repeat,
    linear-gradient(#5a554c, #5a554c) bottom right / 4px 4px no-repeat;
}

body.plain .schedule-item.theme-wood {
  background: linear-gradient(180deg, #cbbca1 0%, #b8a687 100%);
  border: 2px solid #3c2415;
  box-shadow: inset 2px 2px 0 #9c6b3f, inset -2px -2px 0 #4a2d18;
}
body.plain .schedule-item.theme-wood::before {
  content: "";
  position: absolute;
  inset: -3px;
  pointer-events: none;
  background:
    linear-gradient(#784c28, #784c28) top left / 4px 4px no-repeat,
    linear-gradient(#784c28, #784c28) top right / 4px 4px no-repeat,
    linear-gradient(#784c28, #784c28) bottom left / 4px 4px no-repeat,
    linear-gradient(#784c28, #784c28) bottom right / 4px 4px no-repeat;
}

body.plain .schedule-item.theme-stone-wood {
  background: linear-gradient(180deg, #d3cfc5 0%, #bebaa0 100%);
  border: 2px solid #2c1e14;
  box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #5c381c;
}
body.plain .schedule-item.theme-stone-wood::before {
  content: "";
  position: absolute;
  inset: -3px;
  pointer-events: none;
  background:
    linear-gradient(#784c28, #784c28) top left / 4px 4px no-repeat,
    linear-gradient(#5a554c, #5a554c) top right / 4px 4px no-repeat,
    linear-gradient(#784c28, #784c28) bottom left / 4px 4px no-repeat,
    linear-gradient(#5a554c, #5a554c) bottom right / 4px 4px no-repeat;
}

/* Vertical Rail Track Column Behind Time Pill */
body.plain .schedule-item .rail-track {
  position: absolute;
  left: 20px;
  top: -8px;
  bottom: -8px;
  width: 22px;
  background: url("../assets/branding/rail-powered-v.svg") center / 22px 22px repeat-y;
  pointer-events: none;
  z-index: 1;
}
/* Connecting standard rail between cards */
body.plain .schedule-item .rail-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: -14px;
  width: 22px;
  height: 14px;
  background: url("../assets/branding/rail-v.svg") center / 22px 22px repeat-y;
}

/* Schedule Time Slot (Digital Stone Pill) */
body.plain .schedule-time {
  position: relative;
  z-index: 2;
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #1c1a17;
  background: #dedbd4;
  padding: 4px 2px;
  text-align: center;
  border: 2px solid #25221d;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #7b766c;
  line-height: 1.2;
}

/* Card Content */
body.plain .schedule-item strong {
  display: block;
  font-size: 14px;
  color: #27221c;
  line-height: 1.35;
}
body.plain .schedule-item .aside {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: #555047;
}

/* Decorative Minecraft Props on Cards */
body.plain .schedule-item .mc-props {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
body.plain .schedule-item .mc-props i {
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
body.plain .schedule-item .prop-furnace { background-image: url("../assets/branding/furnace.svg"); }
body.plain .schedule-item .prop-smoker { background-image: url("../assets/branding/furnace.svg"); }
body.plain .schedule-item .prop-chest { background-image: url("../assets/branding/chest.svg"); }
body.plain .schedule-item .prop-lamp-lit {
  background-image: url("../assets/branding/redstone-lamp-lit.svg");
  filter: drop-shadow(0 0 5px #f59e0b);
}
body.plain .schedule-item .prop-hopper { background-image: url("../assets/branding/hopper.svg"); }
body.plain .schedule-item .prop-repeater { background-image: url("../assets/branding/repeater.svg"); }
body.plain .schedule-item .prop-dispenser { background-image: url("../assets/branding/dispenser.svg"); }

/* 4. Prizes */
body.plain #prizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.plain #prizes > :not(.prize-tier) {
  grid-column: 1 / -1;
}
body.plain #prizes .prize-tier {
  position: relative;
  margin: 0;
  padding: 16px 20px;
}
body.plain #prizes .prize-tier.gold {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #eedfb9 0%, #dac89d 100%);
  border-color: #b58d24;
  box-shadow: inset 2px 2px 0 #fbeeaf, inset -2px -2px 0 #8c6913;
}
body.plain #prizes .prize-tier.gold::after {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background:
    linear-gradient(#d4af37, #d4af37) top left / 4px 4px no-repeat,
    linear-gradient(#d4af37, #d4af37) top right / 4px 4px no-repeat,
    linear-gradient(#d4af37, #d4af37) bottom left / 4px 4px no-repeat,
    linear-gradient(#d4af37, #d4af37) bottom right / 4px 4px no-repeat;
}
body.plain #prizes .prize-tier.silver {
  border-color: #7b8893;
  background: linear-gradient(180deg, #e4e7ea 0%, #cbd0d5 100%);
  box-shadow: inset 2px 2px 0 #f6f8f9, inset -2px -2px 0 #6e7982;
}
body.plain #prizes .prize-tier.bronze {
  border-color: #a66a38;
  background: linear-gradient(180deg, #e8d5c4 0%, #d4bea9 100%);
  box-shadow: inset 2px 2px 0 #f7ece2, inset -2px -2px 0 #8c5324;
}
body.plain #prizes .prize-amount {
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1b4332;
  margin-bottom: 6px;
  display: block;
}
body.plain #prizes .prize-tier.gold .prize-amount {
  color: #7a5405;
}
body.plain #prizes .prize-tier h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: #27221c;
}
body.plain #prizes .prize-tier p {
  font-size: 13px;
  margin: 0;
  color: #3b3630;
}
body.plain #prizes .swag-box {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* 5. Sponsors */
body.plain #sponsors .store {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
body.plain #sponsors .store > li {
  padding: 16px;
}
body.plain #sponsors .listing {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}
body.plain #sponsors .listing h3 {
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #27221c;
}
body.plain #sponsors .listing p {
  margin: 0;
  font-size: 12px;
  color: #3b3630;
}

/* 6. Team */
body.plain .crew {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
body.plain .crew-role {
  padding: 16px 18px;
}
body.plain .crew-label {
  display: inline-block;
  padding: 3px 8px;
  margin: 0 0 8px;
  font-family: 'Minecraft', 'Silkscreen', monospace, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #ede7dc;
  background: #473e36;
  border: 1px solid #201b16;
  border-radius: 3px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), inset -1px -1px 0 rgba(0, 0, 0, 0.45);
  text-shadow: 1px 1px 0 #15110d;
}
body.plain .crew-role h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #27221c;
}

/* 7. FAQ: 2-Column Grid & Minecraft UI Accordion */
body.plain #faq .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: start;
}
body.plain #faq .faq-box {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
body.plain #faq .faq-box summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 6px 8px 6px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: linear-gradient(180deg, #dedbd4 0%, #cac5ba 100%);
  border: 2px solid #25221d;
  box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #7b766c;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
body.plain #faq .faq-box summary::-webkit-details-marker {
  display: none;
}
body.plain #faq .faq-box summary::after {
  display: none;
}
body.plain #faq .faq-q-text {
  font: 600 15px/1.35 var(--text);
  color: #27231e;
  padding-right: 12px;
}
body.plain #faq .faq-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, #59554e 0%, #46423b 100%);
  border: 2px solid #211e19;
  box-shadow: inset 1px 1px 0 #807c73, inset -1px -1px 0 #282520;
  color: #f1ede4;
  font-family: var(--text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-shadow: 1px 1px 0 #1b1814;
  transition: background 0.15s ease, transform 0.15s ease;
}
body.plain #faq .faq-toggle::before {
  content: "+";
  display: block;
  margin-top: -2px;
}
body.plain #faq .faq-box details[open] .faq-toggle::before {
  content: "−";
}
body.plain #faq .faq-box details[open] .faq-toggle {
  background: linear-gradient(180deg, #4d5c48 0%, #364432 100%);
}

/* Golden Highlight State (On Hover, Open, or Focus) */
body.plain #faq .faq-box summary:hover,
body.plain #faq .faq-box details[open] summary,
body.plain #faq .faq-box summary:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #eedfb9 0%, #dac89d 100%);
  border-color: #b58d24;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), inset 2px 2px 0 #fbeeaf, inset -2px -2px 0 #8c6913;
}
body.plain #faq .faq-box summary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 2px 2px 0 #8c6913, inset -2px -2px 0 #fbeeaf;
}
body.plain #faq .faq-box summary:hover .faq-toggle,
body.plain #faq .faq-box details[open] summary .faq-toggle,
body.plain #faq .faq-box summary:focus-visible .faq-toggle {
  border-color: #8c6913;
  background: linear-gradient(180deg, #6c5a32 0%, #544422 100%);
  box-shadow: inset 1px 1px 0 #9e854e, inset -1px -1px 0 #332711;
  color: #fff2c4;
}
body.plain #faq .faq-box summary:hover::after,
body.plain #faq .faq-box details[open] summary::after,
body.plain #faq .faq-box summary:focus-visible::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background:
    linear-gradient(#d4af37, #d4af37) top left / 4px 4px no-repeat,
    linear-gradient(#d4af37, #d4af37) top right / 4px 4px no-repeat,
    linear-gradient(#d4af37, #d4af37) bottom left / 4px 4px no-repeat,
    linear-gradient(#d4af37, #d4af37) bottom right / 4px 4px no-repeat;
}

/* Expanded answer drawer */
body.plain #faq .faq-answer {
  border-top: none;
  margin-top: -2px;
}
body.plain #faq .faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #27231e;
}
body.pv-motion .faq-box details[open] .faq-answer {
  animation: pv-rise 0.25s ease;
}

/* 8. Venue */
body.plain .venue-address {
  padding: 18px 20px;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
body.plain .venue-address p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #27231e;
}
body.plain .travel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
body.plain .travel-item {
  padding: 16px 18px;
}
body.plain .travel-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #27221c;
}
body.plain .travel-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #3b3630;
}

/* 9 & 10. Register and Contact Forms */
body.plain :is(.signup, .mailbox) {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}
body.plain .signup {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.plain .signup > :is(textarea, .mailbox-foot) {
  grid-column: 1 / -1;
}
body.plain :is(.signup, .mailbox) :is(input, select, textarea) {
  width: 100%;
  padding: 12px 14px;
  background: #dedbd4;
  border: 2px solid #25221d;
  box-shadow: inset 2px 2px 0 #7b766c, inset -2px -2px 0 #ffffff;
  color: #27221c;
  font-family: var(--text);
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.plain :is(.signup, .mailbox) :is(input, select, textarea):focus {
  outline: none;
  border-color: #b58d24;
  box-shadow: inset 2px 2px 0 #8c6913, 0 0 0 2px #d4af37;
  background: #f0ede6;
}
body.plain .mailbox-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
/* The registration form uses the mailbox field treatment without submitting through the mailbox. */
.signup {
  position: relative; display: grid; gap: 12px; padding: 14px;
  border: 8px solid transparent; border-image: var(--mc-frame) 4 fill / 8px;
}
.signup :is(input, select, textarea) {
  width: 100%; padding: 10px 12px; border: 0; border-radius: 0;
  font: 400 16px/1.5 var(--text); color: var(--ink); background: var(--field);
  box-shadow: 0 0 0 2px var(--field-edge);
}
.signup textarea { min-height: 120px; resize: none; }
.signup :is(input, select, textarea)::placeholder { color: var(--field-hint); }
.signup :is(input, select, textarea):focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }

/* Footer */
.pv-foot { display: none; }
body.plain .pv-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  width: min(var(--pv-wide), calc(100% - 32px)); margin: 32px auto 0; padding: 18px 0 0;
  border-top: 2px solid rgba(255, 255, 255, .12); color: #d8d2c6; font: 500 14px/1.5 var(--text); text-shadow: 1px 1px 0 #000;
}
body.plain .pv-foot p { margin: 0; }
body.plain .pv-foot a { color: #fff; margin-left: 18px; text-decoration: none; }
body.plain .pv-foot a:first-child { margin-left: 0; }
body.plain .pv-foot a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion ---------- */
@keyframes pv-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pv-drift { from { transform: scale(1) translate(-1%, 0); } to { transform: scale(1.06) translate(1.5%, -1%); } }
@keyframes pv-pop { 40% { transform: translateY(-4px) scale(1.25) rotate(-8deg); } }

body.plain #hero::before { animation: pv-drift 40s ease-in-out infinite alternate; }
body.plain .hero-card > * { animation: pv-rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
body.plain .hero-card > :nth-child(2) { animation-delay: .08s; }
body.plain .hero-card > :nth-child(3) { animation-delay: .16s; }
body.plain .hero-card > :nth-child(4) { animation-delay: .24s; }
body.plain .hero-card > :nth-child(5) { animation-delay: .32s; }
body.plain .hero-card > :nth-child(6) { animation-delay: .4s; }

/* A tab's card rises in; its pieces follow as they come into view. */
body.pv-motion #pages > .page.pv-enter { animation: pv-rise .32s cubic-bezier(.2, .7, .2, 1); }
body.pv-motion .pv-tab.pv-enter i { animation: pv-pop .35s ease; }
body.pv-motion [data-reveal]:not(.is-in) { opacity: 0; }
body.pv-motion [data-reveal].is-in { animation: pv-rise .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
body.pv-motion .faq-box details[open] > p { animation: pv-rise .28s ease; }
body.pv-motion .faq-box details[open] summary::after { animation: pv-pop .3s ease; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  body.plain .hack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.plain #prizes > :is(.gold, .silver, .bronze) { grid-column: span 3; }
  body.plain #prizes > .gold { grid-column: 1 / -1; }
  .pv-days { grid-template-columns: minmax(0, 1fr); }
  body.plain .pv-timeline-body {
    grid-template-columns: minmax(0, 1fr);
  }
  body.plain .pv-redstone-gutter {
    display: none;
  }
}
@media (max-width: 720px), (max-height: 520px) {
  body.plain #hero {
    align-items: flex-start;
    min-height: 0;
    padding: 28px max(12px, env(safe-area-inset-right)) 48px max(12px, env(safe-area-inset-left));
  }
  body.plain #hero::before {
    inset: 0;
    height: 100%;
    background-image: url("../assets/branding/island-small.webp");
    background-position: 58% 25%;
    background-size: cover;
  }
  body.plain #hero::after {
    background: linear-gradient(180deg, rgba(24, 32, 22, .88) 0, rgba(24, 32, 22, .76) 55%, rgba(24, 32, 22, .95) 100%);
  }
  .pv-grass { height: 30px; background-size: 48px 48px; }
  body.plain::before { background-size: 48px 48px; }
  .pv-tabs {
    gap: 6px; padding: 8px 12px 10px;
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .pv-tab { flex: none; min-width: 70px; padding: 7px 8px 6px; gap: 5px; font-size: 12px; }
  .pv-tab i { width: 24px; height: 24px; }
  body.plain #pages > .page {
    border-width: 16px;
    border-image-slice: 24;
    border-image-width: 16px;
    width: calc(100% - 20px);
    margin: 20px auto 28px;
    padding: 16px 14px 20px;
  }
  body.plain :is(.page-card-header, .faq-card-header) h2 {
    font-size: 20px;
  }
  body.plain .hack-grid { gap: 10px; }
  body.plain .hack-stat .val { font-size: clamp(14px, 1.8cqw, 18px); }
  body.plain :is(#tracks, #faq .faq-grid, #sponsors .store, .crew, .travel, .signup, .pv-days) { grid-template-columns: minmax(0, 1fr); }
  body.plain #prizes > .prize-tier { grid-column: 1 / -1; }
  body.plain .prize-amount { font-size: 24px; }
  body.plain #sponsors .listing { grid-template-columns: 44px minmax(0, 1fr); }
  body.plain #sponsors .listing > :first-child { width: 44px !important; }
  body.plain #sponsors .listing > .mc-button { grid-column: 1 / -1; justify-self: start; }
  body.plain .pv-foot { width: calc(100% - 24px); flex-direction: column; align-items: flex-start; }
}
