/* Rob'n Goblin - goblin-grimy, modern, dark-friendly. */

:root {
  --bg: #14110d;
  --bg-elev: #1f1b14;
  --bg-card: #252016;
  --ink: #f4e9cf;
  --ink-dim: #c5b89a;
  --muted: #8a7e63;
  --accent: #b8d34d;       /* goblin green */
  --accent-ink: #14110d;
  --danger: #e7574f;
  --warn: #ffb84a;
  --info: #6db2ff;
  --success: #7ed957;
  --border: #3a3220;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --maxwidth: 1180px;
  --font: "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: linear-gradient(180deg, #1f1b14 0%, #14110d 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.brand img { border-radius: 50%; border: 2px solid var(--accent); }
.brand-name { letter-spacing: 0.5px; }

.primary-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.primary-nav a {
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}
.primary-nav a:hover { background: rgba(184, 211, 77, 0.08); color: var(--accent); }
.primary-nav a.cta {
  background: var(--accent);
  color: var(--accent-ink);
}
.primary-nav a.cta:hover { filter: brightness(0.92); }

/* Layout */
.site-main {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 200px);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem); margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

p { margin: 0 0 1rem; }

/* Cards */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
/* Stacked full-width page sections only (not cards inside grids or .split) */
.site-main .container > section.card + section.card {
  margin-top: 1.25rem;
}
.library-links-grid > section.card {
  margin-top: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { filter: brightness(0.92); text-decoration: none; }
.btn.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled], .btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-dim);
  max-width: 50ch;
}
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-cta-note { margin: 0.75rem 0 0; font-size: 0.95rem; }
.hero-art img {
  border: 4px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
}

/* Tile grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.tile {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile .tile-body { padding: 1rem; flex: 1 1 auto; }
.tile h3 { margin: 0 0 0.3rem; color: var(--ink); }
.tile p { color: var(--ink-dim); margin: 0; }
.tile--soon {
  border-style: dashed;
  min-height: 100%;
  justify-content: center;
}
.tile--soon:hover { transform: none; border-color: var(--border); }
.tile-soon__body { padding: 1.25rem; }
.tile-soon__body h3 { margin: 0.5rem 0 0.35rem; }

/* Home landing marketing sections */
.home-section-header { margin-bottom: 1rem; }
.home-section-header h2 { margin-bottom: 0.35rem; }
.home-feature {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}
.home-feature--reverse .home-feature__copy { order: 2; }
.home-feature--reverse .home-feature__art { order: 1; }
@media (max-width: 800px) {
  .home-feature,
  .home-feature--reverse {
    grid-template-columns: 1fr;
  }
  .home-feature--reverse .home-feature__copy,
  .home-feature--reverse .home-feature__art {
    order: unset;
  }
}
.home-feature__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-feature__list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}
.home-feature__list li + li { margin-top: 0.35rem; }
.home-feature__cta { margin-top: 1.25rem; gap: 0.75rem; flex-wrap: wrap; }
.home-feature__art img {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .home-feature__art img { margin-left: 0; margin-right: auto; }
}
.home-dtrpg__steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}
.home-dtrpg__steps li + li { margin-top: 0.35rem; }
.home-cta-band { margin-top: 3rem; }
.home-cta-band__card { padding: 2rem 1.5rem; }

.home-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-hero__links {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.home-hero__links a { font-weight: 600; }

.home-audience { margin: 2.5rem 0; }
.home-audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 800px) {
  .home-audience__grid { grid-template-columns: 1fr; }
}
.home-audience__card h3 { margin-top: 0; }
.home-audience__cta { margin: 1.25rem 0 0; }

.home-tonight { margin: 2.5rem 0; }
.home-tonight__steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}
.home-tonight__steps li + li { margin-top: 0.5rem; }

.home-feature__shout { margin: 1rem 0; }

.home-proof { margin: 2.5rem 0; }
.home-proof__facts {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}
.home-proof__facts li + li { margin-top: 0.35rem; }
.home-proof__quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.home-proof__quote {
  margin: 0;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: var(--bg);
}
.home-proof__quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
  font-style: normal;
}

.home-offer { margin: 2.5rem 0; }
.home-offer__lead { margin-bottom: 1rem; }
.home-offer .split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) {
  .home-offer .split { grid-template-columns: 1fr; }
}
.home-offer__cta { margin: 1.25rem 0 0; }

.home-faq { margin: 2.5rem 0; }
.home-faq__list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.home-faq__item { margin: 0; }
.home-faq__item dt {
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.home-faq__item dd {
  margin: 0;
  color: var(--ink-dim);
}

/* Flashes */
.flashes { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--border);
  background: var(--bg-elev);
  margin: 0 0 0.5rem;
}
.flash-info    { border-color: var(--info); }
.flash-success { border-color: var(--success); }
.flash-warning { border-color: var(--warn); }
.flash-error   { border-color: var(--danger); }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 520px; }
.form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form input[type="url"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f0c08;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}
.form .field-errors { color: var(--danger); font-size: 0.9rem; margin-top: 0.25rem; }
.form .help { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.country-combobox { position: relative; z-index: 1; }
.country-combobox__input { width: 100%; }
.country-combobox__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.country-combobox__list[hidden] {
  display: none !important;
  pointer-events: none;
}
.country-combobox__option {
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--ink);
}
.country-combobox__option.is-active,
.country-combobox__option:hover {
  background: var(--bg-elev);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  background: #0f0c08;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table tr:last-child td { border-bottom: none; }

.kv-table th[scope="row"] {
  width: 11rem;
  background: transparent;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.kv-table tr:last-child th,
.kv-table tr:last-child td {
  border-bottom: none;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(184, 211, 77, 0.15);
  color: var(--accent);
  border: 1px solid rgba(184, 211, 77, 0.4);
}
.pill.pill-warn { background: rgba(255, 184, 74, 0.15); color: var(--warn); border-color: rgba(255, 184, 74, 0.4); }
.pill.pill-danger { background: rgba(231, 87, 79, 0.15); color: var(--danger); border-color: rgba(231, 87, 79, 0.4); }
.pill.pill-muted { background: rgba(255,255,255,0.05); color: var(--ink-dim); border-color: var(--border); }

/* Layout helpers */
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Dashboard (/me) shell */
.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dashboard-nav__link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.dashboard-nav__link:hover {
  background: rgba(184, 211, 77, 0.08);
  color: var(--accent);
  text-decoration: none;
}
.dashboard-nav__link.is-active {
  background: rgba(184, 211, 77, 0.14);
  color: var(--accent);
  border: 1px solid rgba(184, 211, 77, 0.35);
}

.dashboard-hero { margin-bottom: 1.25rem; }
.dashboard-hero__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dashboard-hero__identity h1 { margin: 0 0 0.25rem; }
.dashboard-hero__identity .dim { margin: 0; }

.dashboard-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dashboard-page-header h1 { margin: 0 0 0.25rem; }
.dashboard-page-header .dim { margin: 0; }
.dashboard-page-header__stat { margin: 0; font-size: 0.95rem; }
.dashboard-note { margin: -0.5rem 0 1.25rem; }

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-stat-grid .stat-card .stat-value {
  font-size: 1.75rem;
}

.card-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.card-header-row .card-title { margin: 0; }
.card-subtitle {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.dashboard-quick-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dashboard-quick-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.dashboard-quick-card .card-title { margin-bottom: 0.35rem; }
.dashboard-quick-card .dim { margin: 0; font-size: 0.9rem; }

.dashboard-heists { margin-top: 0.5rem; }
.dashboard-heists .tile-grid { margin-top: 1rem; }

.empty-state--compact { margin: 0; }
.empty-state--compact .account-links { margin-top: 0.75rem; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.resources-freebies {
  margin-bottom: 1.5rem;
}
.resources-freebies > h2 {
  margin-top: 0;
}
.resources-freebies__lead {
  margin: 0 0 1rem;
}
.resources-purchases-heading {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.resources-freebies-only {
  margin-top: 1.5rem;
}

.free-downloads-header {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
.free-downloads-header h1 {
  margin-top: 0;
}
.free-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.free-download-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.free-download-card__thumb-wrap {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.free-download-card__thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: top center;
}
.free-download-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
}
.free-download-card__title {
  margin: 0;
  font-size: 1.1rem;
}
.free-download-card__desc {
  margin: 0;
  flex: 1;
}
.free-download-card__action {
  margin: 0.5rem 0 0;
}
.free-downloads-upsell {
  margin-top: 0.5rem;
}
.free-downloads-upsell h2 {
  margin-top: 0;
}
.free-downloads-upsell .btn + .btn {
  margin-left: 0.5rem;
}
.resource-product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.resource-product-card:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(184, 211, 77, 0.3);
}
.resource-product-card__cover {
  aspect-ratio: 4 / 3;
  background: #0f0c08;
  border-bottom: 1px solid var(--border);
}
.resource-product-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.resource-product-card__cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(184, 211, 77, 0.1);
}
.resource-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem;
  gap: 0.35rem;
}
.resource-product-card__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--ink);
}
.resource-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.resource-product-card__date {
  margin: 0;
  font-size: 0.85rem;
}
.resource-product-card__files {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.resource-product-card__file {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.resource-product-card__file-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.resource-product-card__file-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.resource-product-card__file-desc {
  font-size: 0.85rem;
  line-height: 1.3;
}
.resource-product-card__file .btn {
  width: 100%;
  text-align: center;
  margin: 0;
}
.resource-product-card__empty {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.resource-product-card__dtrpg {
  margin-top: auto;
  padding-top: 0.75rem;
  width: 100%;
  text-align: center;
}

.account-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elev);
}
.account-avatar--sm { width: 56px; height: 56px; }
.account-avatar--md { width: 64px; height: 64px; }
.account-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  background: rgba(184, 211, 77, 0.12);
}

.card-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.referral-example-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.referral-example-row {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.referral-example-row__label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-weight: 600;
}

.referral-example-row__url {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-all;
  color: var(--accent);
  background: transparent;
  padding: 0;
  min-width: 0;
}

.referral-example-row__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--ink-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.referral-example-row__copy:hover,
.referral-example-row__copy:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg);
  outline: none;
}

.referral-example-row__copy.is-copied {
  color: var(--success);
  border-color: var(--success);
}

.referral-example-row__icon {
  display: block;
}

@media (max-width: 640px) {
  .referral-example-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .referral-example-row__label {
    grid-column: 1 / -1;
  }
}

.account-profile-details { flex: 1; min-width: 0; }
.account-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}
.account-dl dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  font-weight: 600;
  margin: 0;
}
.account-dl dd { margin: 0.15rem 0 0; }

.account-edit-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.account-edit-trigger:hover .account-edit-trigger__action {
  color: var(--accent);
  text-decoration: underline;
}
.account-edit-trigger__action {
  font-size: 0.9rem;
  color: var(--muted);
}

.account-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  max-width: 28rem;
  width: min(28rem, calc(100vw - 2rem));
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.account-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.account-dialog__panel { padding: 1.25rem; }
.account-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.account-dialog__title {
  margin: 0;
  font-size: 1.15rem;
}
.account-dialog__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.account-dialog__close:hover { color: var(--ink); }
.account-dialog__form { margin: 0; }
.account-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.username-field {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
}
.username-field__at {
  padding: 0.55rem 0.65rem;
  background: var(--surface-2, var(--card));
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--muted);
  font-family: var(--font-mono, monospace);
}
.username-field__input {
  flex: 1;
  min-width: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.email-reveal {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  border-bottom: 1px dashed var(--border);
}
.email-reveal:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.email-reveal-wrap { margin: 0; }
.email-reveal__status {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--accent);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.email-reveal__status:not(.visually-hidden) {
  position: static;
  width: auto;
  height: auto;
  margin: 0.35rem 0 0;
  clip: auto;
  overflow: visible;
}

.avatar-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  list-style: none;
}
.avatar-offer__text { margin: 0; flex: 1 1 12rem; }
.avatar-offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.entitlement-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.entitlement-preview li {
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.entitlement-preview li:hover {
  border-color: rgba(184, 211, 77, 0.35);
  background: rgba(184, 211, 77, 0.06);
}
.entitlement-preview__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  color: inherit;
  text-decoration: none;
}
.entitlement-preview__link:hover { text-decoration: none; color: var(--accent); }
.entitlement-preview__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.entitlement-preview__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  background: rgba(184, 211, 77, 0.12);
}
.entitlement-preview__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.entitlement-preview__name { font-weight: 600; }
.entitlement-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.provider-card__email {
  font-family: inherit;
}
.library-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}
.library-links-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  min-width: 0;
}
.library-links-card > .card-title {
  flex-shrink: 0;
}
.library-links-card > .muted {
  flex: 1 1 auto;
  margin-bottom: 1rem;
}
.library-links-card .form {
  flex-shrink: 0;
  margin-top: 0;
  max-width: none;
}
@media (max-width: 720px) {
  .library-links-grid {
    grid-template-columns: 1fr;
  }
}

.history-filters { margin-bottom: 1.25rem; }
.history-filters .pill.is-active {
  background: rgba(184, 211, 77, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}
.empty-state { margin-top: 1rem; }
.empty-state__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.empty-state__block {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}
.empty-state__block h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.empty-state__block .dim { margin: 0 0 0.75rem; }

.provider-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.provider-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}
.provider-card--linked {
  border-color: rgba(184, 211, 77, 0.25);
}
.provider-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.provider-card__title {
  margin: 0;
  font-size: 1.05rem;
}
.provider-card__meta {
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.provider-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.provider-cards-hint { margin-top: 1rem; }

.order-history-table .col-when { width: 8.5rem; }
.order-history-table .col-kind { width: 7rem; }
.order-history-table .col-status { width: 6.5rem; }
.order-history-table .col-product,
.order-history-table .col-detail {
  overflow-wrap: break-word;
  word-break: normal;
}
.col { flex: 1 1 auto; }
.right { margin-left: auto; }
.muted { color: var(--muted); }
.dim { color: var(--ink-dim); }
.mb-0 { margin-bottom: 0 !important; }
.teaser-oauth-note,
.teaser-tagline { margin-top: 1rem; font-size: 0.95rem; }
.card h3:first-child { margin-top: 0; }
.center { text-align: center; }
.stack { display: grid; gap: 1rem; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Heists index - core lineup */
.heists-lineup-hero {
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.heists-lineup-hero__inner {
  width: 100%;
  max-width: none;
}
.heists-lineup-hero .lead {
  max-width: none;
}
.heists-lineup-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.heists-boss-shout {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem 0.85rem;
  border-left: 4px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 184, 74, 0.08);
}
.heists-boss-shout p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
}
.heists-boss-shout cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--warn);
  letter-spacing: 0.04em;
}
.heists-lineup-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
}
.heists-pick-section { margin-top: 0.5rem; }
.heists-pick-section__header {
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.heists-pick-section__header h2 { margin-top: 0; }
.heists-pick-section__header .dim { margin: 0; }
.heists-pick-grid {
  margin-top: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1050px) {
  .heists-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .heists-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .heists-pick-grid { grid-template-columns: 1fr; }
}
.heists-pick-grid .tile .tile-body { padding: 0.75rem; }
.heists-pick-grid .tile h3 { font-size: 1.05rem; }
.heists-pick-grid .tile p { font-size: 0.88rem; line-height: 1.4; }
.heists-pick-grid .heist-pick-tile__cta { font-size: 0.85rem; margin-top: 0.65rem; }
.heist-pick-tile { position: relative; }
.heist-pick-tile__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: var(--shadow);
}
.heist-pick-tile:hover .heist-pick-tile__badge { filter: brightness(0.95); }
.heist-pick-tile__cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}
.heist-pick-tile:hover .heist-pick-tile__cta { text-decoration: underline; }
.heists-lineup-footer {
  margin-top: 2.5rem;
  text-align: center;
}
.heists-lineup-footer__title {
  margin-top: 0;
  font-size: clamp(1.35rem, 2vw + 0.5rem, 1.75rem);
}
.heists-lineup-footer .dim { max-width: 52ch; margin-left: auto; margin-right: auto; }
.heists-lineup-footer__cta {
  justify-content: center;
  margin: 1.25rem 0 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Heist detail */
.heist-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .heist-hero { grid-template-columns: 1fr; } }
.heist-hero img { border-radius: var(--radius); border: 3px solid var(--border); }
.heist-hero__extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.heist-hero__extras figure { margin: 0; }
.heist-hero__extras img { width: 100%; height: auto; }
.heist-collection-badge { margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.heist-collection-badge__role { font-size: 0.9rem; }
.heist-actions__cta { gap: 0.75rem; }
.heists-collection-promo__list { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.heist-intel-lead { margin-top: 0; }
.intel-list .intel-tier-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-right: 0.35rem;
}
.heist-tasks-table { margin-top: 0.75rem; }
.heist-tasks-table td:first-child { min-width: 14rem; }
.heist-secrets-list { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.heist-secrets-list li + li { margin-top: 0.5rem; }
.heist-hm-secrets {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.dashboard-heist-links {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.entitlement-preview__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.entitlement-preview__row .entitlement-preview__link { flex: 1 1 12rem; }
.entitlement-preview__heist { flex-shrink: 0; }
.resource-product-card__briefing { margin: 0.75rem 0; }
.resource-product-card__briefings { margin: 0.75rem 0; }
.resource-product-card__briefings-lead { margin: 0 0 0.35rem; }
.heist-hero__boss-shout {
  margin-bottom: 1rem;
  max-width: 65ch;
}
.heist-hero__boss-shout cite {
  text-align: right;
}
.heist-owned-pill { margin: 0.75rem 0 0; }
.heist-product-meta { margin-top: 0.5rem; }
.gate .heist-product-meta {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  text-align: left;
}
.gate .heist-product-meta__pills {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.gate .heist-included-in {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.2);
}
.gate__cta { margin: 1.25rem 0 0; }
.gate__checkout { display: inline; }
.gate__cta-hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
}
.heist-product-meta__pills { margin: 0 0 0.75rem; }
.heist-included-in {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(184, 211, 77, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.heist-included-in__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.heist-included-in__lead { margin: 0 0 0.85rem; }
.heist-included-in__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.heist-included-in__item {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.heist-included-in__item:first-child {
  padding-top: 0;
  border-top: none;
}
.heist-included-in__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.heist-included-in__name {
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.15rem;
}
.heist-included-in__name:hover { color: var(--accent); }
.heist-included-in__teaser {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}
#product-robn-goblin-core:target,
.tile[id^="product-"]:target,
.shop-product:target {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Shop */
.shop-hero {
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shop-hero__inner {
  width: 100%;
  max-width: none;
}
.shop-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.shop-hero .lead { max-width: none; }
.shop-hero__shout { max-width: none; }
.shop-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.shop-jump .pill {
  text-decoration: none;
  color: var(--ink);
}
.shop-jump .pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.shop-guide {
  margin-bottom: 2.5rem;
}
.shop-guide__title {
  margin-top: 0;
  font-size: 1.25rem;
}
.shop-guide__list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
  color: var(--ink-dim);
}
.shop-guide__list a { font-weight: 600; }
.shop-section { margin-bottom: 2.5rem; }
.shop-section__header {
  margin-bottom: 1.25rem;
  max-width: 52rem;
}
.shop-section__header h2 { margin-top: 0; }
.shop-section__header .dim { margin: 0; }
.shop-catalog {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .shop-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-catalog--core .shop-product--core,
  .shop-catalog--bundle .shop-product--bundle { grid-column: 1 / -1; }
}
.shop-catalog--heist {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* Compact individual heist tiles */
.shop-heist-card {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-heist-card--owned {
  border-color: rgba(126, 217, 87, 0.35);
}
.shop-heist-card__cover {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.shop-heist-card__cover:hover { text-decoration: none; }
.shop-heist-card__cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.shop-heist-card__owned-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 17, 13, 0.9);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
}
.shop-heist-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.5rem;
}
.shop-heist-card__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}
.shop-heist-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.shop-heist-card__title a:hover { color: var(--accent); }
.shop-heist-card__teaser {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-heist-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.shop-heist-card__actions {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.shop-heist-card__briefing {
  font-size: 0.9rem;
  font-weight: 600;
}
.shop-heist-card__actions form { margin: 0; }
.shop-heist-card__actions .btn {
  width: 100%;
  text-align: center;
}
.shop-product {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}
.shop-product--owned {
  border-color: rgba(126, 217, 87, 0.35);
}
.shop-product__media { position: relative; }
.shop-product__owned-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  background: rgba(20, 17, 13, 0.85);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
.shop-price-compare {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}
.shop-price-compare__heading {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-price-compare__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: center;
}
@media (max-width: 480px) {
  .shop-price-compare__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .shop-price-compare__vs { display: none; }
}
.shop-price-compare__option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.shop-price-compare__option--deal {
  border-color: rgba(184, 211, 77, 0.45);
  background: rgba(184, 211, 77, 0.08);
}
.shop-price-compare__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-dim);
  line-height: 1.3;
}
.shop-price-compare__amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.shop-price-compare__amount--deal { color: var(--accent); }
.shop-price-compare__hint {
  font-size: 0.78rem;
  line-height: 1.3;
}
.shop-price-compare__vs {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.shop-price-compare__savings {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.shop-price-compare__savings strong { color: var(--warn); }
.shop-includes-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}
.shop-includes-grid--many {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
.shop-includes-grid__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.shop-includes-grid__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  color: var(--ink);
  text-decoration: none;
  flex: 1 1 auto;
  min-height: 100%;
}
.shop-includes-grid__link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.shop-includes-grid__link--static {
  cursor: default;
}
.shop-includes-grid__link--static:hover {
  border-color: var(--border);
}
.shop-includes-grid__link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}
.shop-includes-grid__name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}
.shop-includes-grid__price { font-size: 0.78rem; }
.shop-includes-grid__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
}
.shop-includes-grid__teaser {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-product__layout {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 640px) {
  .shop-product__layout { grid-template-columns: 1fr; }
}
.shop-product__media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
@media (max-width: 640px) {
  .shop-product__media img { min-height: 0; }
}
.shop-product__body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.shop-product__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.shop-product--core .shop-product__title { font-size: 1.6rem; }
.shop-product__teaser {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.shop-product__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}
.shop-product__includes {
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.shop-product__includes-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.shop-product__includes-subtotal {
  font-weight: 500;
  font-size: 0.88rem;
}
.shop-product__details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}
.shop-product__details summary {
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}
.shop-product__details summary::-webkit-details-marker { display: none; }
.shop-product__details summary::before {
  content: "+ ";
  font-weight: 700;
}
.shop-product__details[open] summary::before { content: "- "; }
.shop-product__details-body {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.shop-product__details-body p { margin: 0 0 0.75rem; }
.shop-product__downloads-title {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.shop-product__downloads {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}
.shop-product__footer {
  margin-top: auto;
  padding-top: 0.25rem;
}
.shop-product__footer form { margin: 0; }
.shop-footer-note {
  margin-top: 2.5rem;
  text-align: center;
}
.shop-footer-note p { margin: 0; }
.shop-footer-note__links { margin: 0.75rem 0 0; }

/* Roll Yer Own heist design page */
.roll-yer-own-hero {
  display: grid;
  grid-template-columns: 1.75fr 0.55fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .roll-yer-own-hero { grid-template-columns: 1fr; }
}
.roll-yer-own-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
}
.roll-yer-own-hero__links {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.roll-yer-own-hero__art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.roll-yer-own-hero__art img {
  width: 50%;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  border-radius: var(--radius);
  border: 3px solid var(--border);
}
@media (max-width: 800px) {
  .roll-yer-own-hero__art {
    justify-content: center;
  }
  .roll-yer-own-hero__art img {
    width: min(50%, 280px);
    margin-left: 0;
    margin-right: auto;
  }
}
.roll-yer-own-tips {
  margin-bottom: 2.5rem;
  padding: 1.15rem 1.25rem;
}
.roll-yer-own-tips__header {
  margin-bottom: 1rem;
}
.roll-yer-own-tips__header h2 {
  margin: 0 0 0.35rem;
}
.heist-design-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .heist-design-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
  }
}
.heist-design-tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.65rem;
  align-items: start;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.heist-design-tip__marker {
  color: var(--accent);
  font-weight: 800;
  line-height: 1.35;
}
.heist-design-tip__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.3;
}
.heist-design-tip__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.roll-yer-own-steps__header {
  margin-bottom: 1.25rem;
}
.roll-yer-own-steps__header h2 {
  margin: 0 0 0.35rem;
}
.heist-design-steps {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .heist-design-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
.heist-design-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin: 0;
  padding: 1rem 1.1rem;
}
.heist-design-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(184, 211, 77, 0.15);
  color: var(--accent);
  border: 1px solid rgba(184, 211, 77, 0.45);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.heist-design-step__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.heist-design-step__summary {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.heist-design-step__detail {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.roll-yer-own-d20-section {
  margin-bottom: 2.5rem;
}
.roll-yer-own-d20-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.roll-yer-own-d20-section__header h2 {
  margin: 0 0 0.35rem;
}
.roll-yer-own-d20 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}
@media (min-width: 640px) {
  .roll-yer-own-d20 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.roll-yer-own-d20__row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) {
  .roll-yer-own-d20__row:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .roll-yer-own-d20__row:nth-last-child(-n+2) {
    border-bottom: none;
  }
}
@media (max-width: 639px) {
  .roll-yer-own-d20__row:last-child {
    border-bottom: none;
  }
}
.roll-yer-own-d20__roll {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.roll-yer-own-d20__name {
  line-height: 1.35;
}
.roll-yer-own-cta {
  margin-top: 1rem;
}
.checklist { list-style: none; padding-left: 1.5rem; }
.checklist-item::before { content: "✓ "; color: var(--accent); margin-right: 0.25rem; font-weight: 700; }
.checklist-item--sub {
  margin-left: 1.5rem;
}
.checklist-item--sub::before {
  content: "– ";
  color: var(--ink-dim);
  font-weight: 400;
}
.intel-list { list-style: none; margin: 0; margin-left: 1.5rem; padding: 0; }
.intel-list li + li { margin-top: 0.5rem;}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0f0c08;
  padding: 1.25rem 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner nav a { margin-left: 1rem; color: var(--ink-dim); }
.footer-inner nav a:hover { color: var(--accent); }

/* Login card */
.auth-card {
  max-width: 420px;
  margin: 2rem auto;
  text-align: center;
}
.auth-card img {
  max-height: 140px;
  width: auto;
  margin: 0 auto 1rem;
}
.auth-card .btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.auth-card .btn-row .btn { width: 100%; margin-top: 0; }
.auth-card form.btn-row { margin-top: 1rem; }
.auth-card .btn { margin-top: 0.5rem; }
.auth-card .btn-row .btn,
.auth-card form .btn { width: 100%; }

/* Prose lists in cards */
.card ul.feature-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-dim);
}
.card ul.feature-list li { margin-bottom: 0.45rem; }
.card ul.feature-list li::marker { color: var(--accent); }

/* Accent highlight panel */
.card.card-accent {
  border-color: rgba(184, 211, 77, 0.45);
  background: linear-gradient(165deg, #2a2418 0%, var(--bg-elev) 55%);
}

/* Admin preview banner on teaser */
.admin-preview-banner {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--info);
  background: rgba(109, 178, 255, 0.08);
  color: var(--ink-dim);
}
.admin-preview-banner a { font-weight: 600; }

/* Flash links */
.flash a { color: inherit; font-weight: 600; text-decoration: underline; }

code {
  font-size: 0.9em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

/* Section rhythm */
.site-main > .container > section + section { margin-top: 2.5rem; }
.site-main > .container > section:first-child { margin-top: 0; }

/* Teaser / coming-soon pages */
.teaser-site {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184, 211, 77, 0.07), transparent 55%),
    var(--bg);
}
.teaser-site .site-main { padding-top: 1.5rem; }
.teaser-site .hero { padding-top: 0.5rem; }
.teaser-site .hero-cta .btn { min-width: 12rem; }
.teaser-site .site-footer { margin-top: 2rem; }
.teaser-site .primary-nav a:not(.cta) {
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.teaser-site .primary-nav a:not(.cta):hover { color: var(--accent); }

.waitlist-success .hero-art img {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Admin layout */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.admin-shell > section {
  min-width: 0;
}
.admin-shell .admin-nav {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  height: max-content;
  position: sticky;
  top: 4.5rem;
}
.admin-shell .admin-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.admin-shell .admin-nav a:hover {
  background: rgba(184, 211, 77, 0.08);
  color: var(--accent);
  text-decoration: none;
}
.admin-shell .admin-nav a.is-active {
  background: rgba(184, 211, 77, 0.12);
  color: var(--accent);
  border: 1px solid rgba(184, 211, 77, 0.35);
}
.admin-shell .admin-nav hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0;
}
.admin-shell .admin-nav .nav-label {
  display: block;
  padding: 0.35rem 0.75rem 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-page-header h1 { margin: 0; }

.admin-lead {
  margin: -0.5rem 0 1.25rem;
  color: var(--ink-dim);
}
.admin-lead a { font-weight: 600; }

.admin-section + .admin-section,
.admin-shell > section > section + section,
.admin-shell > section > .card + .card,
.admin-shell > section > .card + section,
.admin-shell > section > section + .card {
  margin-top: 1.5rem;
}

.admin-help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.admin-help-toc a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-help-toc a:hover {
  color: var(--accent);
  border-color: rgba(184, 211, 77, 0.45);
  text-decoration: none;
}
.admin-help section[id] {
  scroll-margin-top: 5rem;
}
.admin-help .admin-page-header {
  margin-bottom: 0.75rem;
}
.admin-help .admin-page-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.admin-help p {
  margin: 0.6rem 0 0;
}
.admin-help p:first-of-type {
  margin-top: 0;
}
.admin-help ol,
.admin-help ul {
  margin: 0.6rem 0 0;
  padding-left: 1.25rem;
}
.admin-help li + li {
  margin-top: 0.35rem;
}
.admin-help dt {
  font-weight: 600;
  margin-top: 0.85rem;
}
.admin-help dt:first-child {
  margin-top: 0;
}
.admin-help dd {
  margin: 0.25rem 0 0;
  color: var(--ink-dim);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  text-align: center;
}
.stat-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--accent);
}
.stat-card a { color: inherit; text-decoration: none; }
.stat-card a:hover { color: var(--accent); text-decoration: underline; }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  align-items: center;
}
.filter-pills .pill {
  text-decoration: none;
}
.filter-pills .pill:hover { text-decoration: none; filter: brightness(1.05); }

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.table-wrap .data-table {
  margin: 0;
  border-radius: 0;
}
.table-wrap .data-table th,
.table-wrap .data-table td {
  white-space: nowrap;
}
.table-wrap .data-table td.wrap,
.table-wrap .data-table th.wrap {
  white-space: normal;
  min-width: 12rem;
}

/* Fit within admin content - no forced horizontal scroll */
.table-wrap--fluid {
  overflow-x: visible;
}
.table-wrap--fluid .data-table {
  table-layout: fixed;
}
.table-wrap--fluid .data-table th,
.table-wrap--fluid .data-table td {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.table-wrap--fluid .data-table td.wrap,
.table-wrap--fluid .data-table th.wrap {
  min-width: 0;
}

.purchases-table .col-when { width: 8.25rem; }
.purchases-table .col-user { width: 24%; }
.purchases-table .col-product { width: 24%; }
.purchases-table .col-provider { width: 7rem; }
.purchases-table .col-status { width: 6.5rem; }
.purchases-table .col-amount { width: 6.25rem; }
.purchases-table .col-actions { width: 6.75rem; }

/* Short labels and badges stay on one line */
.purchases-table .col-when,
.purchases-table .col-provider,
.purchases-table .col-status,
.purchases-table .col-amount,
.purchases-table .col-actions {
  white-space: nowrap;
}
/* Long emails and product names wrap at spaces, not mid-word */
.purchases-table .col-user,
.purchases-table .col-product {
  overflow-wrap: break-word;
}
.purchases-table .pill-compact {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}
.form-actions .btn { margin: 0; }

.checkbox-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 280px;
  overflow-y: auto;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 400;
  color: var(--ink);
}
.checkbox-row:hover { background: rgba(184, 211, 77, 0.06); }
.checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.admin-shell .form.card {
  max-width: 640px;
}
.admin-shell .form {
  max-width: 640px;
}
.admin-shell .form.wide {
  max-width: none;
}

.settings-value {
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  max-width: 28rem;
}

.admin-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.admin-back:hover { color: var(--accent); }

.admin-shell .card > h2,
.admin-shell .card > h3 {
  margin-top: 0;
}
.admin-shell .card > h2 + .muted,
.admin-shell .card > h3 + .muted {
  margin-top: 0.35rem;
}

.admin-shell .data-table code {
  font-size: 0.85em;
}
.admin-shell .btn + .btn { margin-left: 0; }

.inline-form {
  display: inline;
}
.inline-form .btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  min-width: 0;
}
.purchase-actions select {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f0c08;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
}
.purchase-actions .btn {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}
.search-bar input[type="search"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f0c08;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}
.search-bar .btn { flex-shrink: 0; }

.revoke-panel {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 20rem;
}
.revoke-panel .checkbox-row {
  display: flex;
  margin-bottom: 0.35rem;
}
.revoke-panel p {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.admin-shell .form .help,
.admin-shell small.muted {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.product-assets-lead {
  margin: -0.25rem 0 1.25rem;
  max-width: 42rem;
}
.product-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.product-asset-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.product-asset-heading {
  margin: 0;
  font-size: 1rem;
}
.product-asset-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.product-asset-filename {
  margin: 0;
  font-size: 0.9rem;
  word-break: break-all;
}
.product-asset-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cover-preview {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.cover-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  max-width: 180px;
  border-style: dashed;
  color: var(--muted);
  font-size: 0.9rem;
}
.product-asset-upload label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.product-asset-options {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.product-asset-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.product-asset-action-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.product-asset-note {
  margin: 0;
  font-size: 0.9rem;
}
.heist-images-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 800px) {
  .product-asset-grid {
    grid-template-columns: 1fr;
  }
  .heist-images-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-shell .admin-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .admin-shell .admin-nav a {
    display: inline-block;
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }
  .admin-shell .admin-nav hr,
  .admin-shell .admin-nav .nav-label { display: none; }
}

/* Gear gallery */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.gear-grid .gear {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transform: rotate(-0.4deg);
  transition: transform 0.15s ease;
}
.gear-grid .gear:nth-child(even) { transform: rotate(0.5deg); }
.gear-grid .gear:nth-child(3n)   { transform: rotate(-0.8deg); }
.gear-grid .gear:nth-child(5n)   { transform: rotate(0.7deg); }
.gear-grid .gear:hover { transform: rotate(0deg) translateY(-1px); }
.gear-grid .gear h4 { margin: 0 0 0.2rem; color: var(--accent); font-size: 1rem; }
.gear-grid .gear h4 .claw { color: var(--accent); font-weight: 900; margin-right: 0.35rem; opacity: 0.85; }
.gear-grid .gear p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }
.gear-grid .gear p.grunt { font-style: italic; }
.gear-grid .gear p.grunt::before,
.gear-grid .gear p.grunt::after { color: var(--muted); }

/* Make-a-goblin: selectable gear grid */
.gear-grid.gear-selectable { position: relative; }

.gear-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.9rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}
/* Override the wonky-paper rotation from .gear-grid .gear for selectable cards */
.gear-grid.gear-selectable .gear-card,
.gear-grid.gear-selectable .gear-card:nth-child(even),
.gear-grid.gear-selectable .gear-card:nth-child(3n),
.gear-grid.gear-selectable .gear-card:nth-child(5n) {
  transform: none;
}
.gear-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.gear-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gear-card:disabled { cursor: not-allowed; }

.gear-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #0d0a07;
  border: 1px solid var(--border);
  margin-bottom: 0.55rem;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.gear-card h4 {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 1rem;
}
.gear-card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.gear-status {
  display: block;
  margin-top: 0.55rem;
  min-height: 1.15rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

/* Picked by the user */
.gear-card.is-picked {
  border-color: rgba(184, 211, 77, 0.75);
  background: linear-gradient(160deg, #25341a, #0e1208);
  box-shadow:
    0 0 0 1px rgba(184, 211, 77, 0.3),
    0 8px 18px rgba(184, 211, 77, 0.18);
}
.gear-card.is-picked .gear-status {
  color: var(--accent);
}

/* Locked because of cooldown or pick limit */
.gear-card.is-locked {
  opacity: 0.55;
  filter: saturate(0.6);
}

/* Grimly has it */
.gear-card.is-held-npc {
  border-color: rgba(231, 87, 79, 0.55);
  background: linear-gradient(160deg, #2a1410, #0d0807);
  opacity: 0.85;
}
.gear-card.is-held-npc .gear-image {
  filter: grayscale(0.55) brightness(0.65);
  transform: rotate(-3deg);
}
.gear-card.is-held-npc .gear-status {
  color: #e87a6d;
}

@keyframes gear-pick-bounce {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-6px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
.gear-card.just-picked { animation: gear-pick-bounce 0.5s ease-out; }

/* Floating goblin sprite (the wanderer) */
.gear-goblin {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  pointer-events: none;
  z-index: 3;
  color: #b8d34d;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  will-change: transform;
}
.gear-goblin[hidden] { display: none; }
.gear-goblin svg {
  animation: gear-goblin-bob 1.6s ease-in-out infinite;
}
.gear-goblin-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(13, 10, 7, 0.85);
  color: #e87a6d;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(231, 87, 79, 0.4);
}
@keyframes gear-goblin-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-3px) rotate(3deg); }
}

/* Make-a-goblin: build workflow */
.goblin-flow {
  margin: 1.25rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 12, 8, 0.55);
}
.goblin-flow__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: goblin-flow;
}
.goblin-flow__item { flex: 1 1 5.5rem; min-width: 0; }
.goblin-flow__btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0f0c08;
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.goblin-flow__btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.goblin-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.goblin-flow__label { line-height: 1.2; }
.goblin-flow__item.is-active .goblin-flow__btn {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(184, 211, 77, 0.08);
}
.goblin-flow__item.is-active .goblin-flow__num {
  border-color: var(--accent);
  color: var(--accent);
}
.goblin-flow__item.is-complete .goblin-flow__btn {
  color: var(--ink);
}
.goblin-flow__item.is-complete .goblin-flow__num {
  border-color: rgba(184, 211, 77, 0.55);
  background: rgba(184, 211, 77, 0.15);
  color: var(--accent);
}
.goblin-flow__item.is-complete .goblin-flow__num::after {
  content: "";
}
@media (min-width: 640px) {
  .goblin-flow__list { flex-wrap: nowrap; }
  .goblin-flow__item { flex: 1 1 0; }
}

.goblin-step.is-locked { display: none !important; }
.goblin-step.is-complete {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.goblin-step.is-complete .goblin-step-body,
.goblin-step.is-complete .goblin-step-actions { display: none; }
.goblin-step.is-complete .goblin-step-header h2 {
  margin: 0;
  font-size: 1rem;
}
.goblin-step.is-complete .goblin-step-summary[hidden] { display: none !important; }
.goblin-step.is-complete .goblin-step-summary:not([hidden]) {
  display: block !important;
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}
.goblin-step-actions {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.goblin-step:not(.is-current) .goblin-step-actions { display: none; }
.goblin-step-continue[disabled] { opacity: 0.45; cursor: not-allowed; }

.goblin-role-field {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}
.goblin-role-field input {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f0c08;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}
.goblin-role-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 211, 77, 0.2);
}
.goblin-role-hint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Make-a-goblin: interactive name pickers */
.goblin-name-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0.5rem;
}
.goblin-name-bar .btn { flex-shrink: 0; align-self: center; }
.goblin-name-field {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f0c08;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}
.goblin-name-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 211, 77, 0.2);
}
.goblin-name-field:disabled {
  opacity: 0.75;
  cursor: wait;
}
.goblin-col { min-width: 0; }
.goblin-toggle { padding: 0.35rem 0.65rem; font-size: 0.85rem; }

.goblin-row {
  cursor: pointer;
  transition: background 0.1s ease;
}
.goblin-row:hover,
.goblin-row:focus-visible {
  background: rgba(184, 211, 77, 0.10);
  outline: none;
}
.goblin-row.selected {
  background: rgba(184, 211, 77, 0.22);
  border-left: 3px solid var(--accent);
  padding-left: calc(0.75rem - 3px) !important;
}
.goblin-row.previewing {
  background: rgba(184, 211, 77, 0.14);
  border-left: 3px solid rgba(184, 211, 77, 0.55);
  padding-left: calc(0.75rem - 3px) !important;
}
.goblin-list.collapsed .goblin-row:not(.selected) { display: none; }

.goblin-pickers.rolling { pointer-events: none; }
.goblin-pickers.rolling .goblin-toggle { display: none; }
.goblin-toggle { margin-top: 0.5rem; align-self: flex-start; }
.goblin-col { display: flex; flex-direction: column; }

@keyframes goblin-settle {
  0% {
    background: rgba(255, 196, 64, 0.85);
    box-shadow: 0 0 0 4px rgba(255, 196, 64, 0.55);
    transform: translateX(2px);
  }
  40% {
    background: rgba(255, 196, 64, 0.55);
    box-shadow: 0 0 0 6px rgba(255, 196, 64, 0.15);
    transform: translateX(0);
  }
  100% {
    background: rgba(184, 211, 77, 0.22);
    box-shadow: 0 0 0 0 transparent;
    transform: translateX(0);
  }
}
.goblin-row.settling { animation: goblin-settle 0.95s ease-out; }

@keyframes goblin-output-settle {
  0%   { color: #ffc440; text-shadow: 0 0 8px rgba(255, 196, 64, 0.65); transform: scale(1.05); }
  60%  { color: #ffc440; text-shadow: 0 0 4px rgba(255, 196, 64, 0.35); transform: scale(1.0); }
  100% { color: inherit; text-shadow: none; transform: scale(1.0); }
}
#goblin-name.settled {
  animation: goblin-output-settle 0.9s ease-out;
  font-weight: 700;
}

/* Make-a-goblin: goblin rage dice tracker */
.rage-tracker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0.25rem;
}
@media (max-width: 600px) {
  .rage-tracker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rage-tile {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
}
.rage-tile input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.rage-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 0.5rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #1a1410, #0d0a07);
  transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.25s ease;
}
.rage-tile:hover .rage-tile-inner {
  transform: translateY(-2px);
  border-color: rgba(184, 211, 77, 0.5);
}
.rage-tile input:focus-visible + .rage-tile-inner {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rage-fang {
  width: 38px;
  height: 50px;
  display: block;
  transition: transform 0.2s ease, filter 0.25s ease;
}
.rage-fang-body,
.rage-fang-shine {
  transition: fill 0.2s ease, stroke 0.2s ease, opacity 0.2s ease;
}
.rage-fang-shine {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0;
}

/* Spent (unchecked) - outlined ghost fang */
.rage-tile input:not(:checked) + .rage-tile-inner .rage-fang-body {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.2;
}
.rage-tile input:not(:checked) + .rage-tile-inner .rage-tile-label {
  color: var(--muted);
  text-decoration: line-through;
}
.rage-tile input:not(:checked) + .rage-tile-inner {
  background: linear-gradient(160deg, #14110d, #0a0805);
}

/* Live (checked) - glowing accent fang with a heartbeat */
.rage-tile input:checked + .rage-tile-inner {
  border-color: rgba(184, 211, 77, 0.7);
  background: linear-gradient(160deg, #25341a, #0e1208);
  box-shadow:
    0 0 0 1px rgba(184, 211, 77, 0.25),
    0 6px 18px rgba(184, 211, 77, 0.18);
}
.rage-tile input:checked + .rage-tile-inner .rage-fang-body {
  fill: var(--accent);
  stroke: #e3f199;
  stroke-width: 1;
  filter: drop-shadow(0 0 6px rgba(184, 211, 77, 0.6));
}
.rage-tile input:checked + .rage-tile-inner .rage-fang-shine {
  stroke: #f4ffce;
  opacity: 0.85;
}
.rage-tile input:checked + .rage-tile-inner .rage-fang {
  animation: rage-pulse 2.4s ease-in-out infinite;
}
.rage-tile input:checked + .rage-tile-inner .rage-tile-label {
  color: var(--ink);
}

.rage-tile-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-dim);
}

/* Character sheet rage display (read-only fangs) */
.char-sheet-block--rage .char-sheet-rage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.char-sheet-block--rage h3 {
  margin: 0;
}
.char-sheet-rage-count {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.rage-tracker--sheet {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.35rem 0 0;
}
.rage-tracker--sheet .rage-tile-inner {
  padding: 1rem 0.35rem 0.85rem;
  gap: 0;
  min-height: 4.75rem;
}
.rage-tracker--sheet .rage-fang {
  width: 38px;
  height: 50px;
}
.rage-tile--display {
  cursor: default;
  pointer-events: none;
}
body.goblin-in-game .rage-tracker--sheet .rage-tile--display {
  pointer-events: auto;
}
body.goblin-in-game .rage-tracker--sheet .rage-tile--display input:not(:checked) + .rage-tile-inner {
  cursor: pointer;
}
body.goblin-in-game .rage-tracker--sheet .rage-tile--display input:not(:checked) + .rage-tile-inner:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 211, 77, 0.5);
}
body.goblin-in-game .rage-hint-build-only {
  display: none;
}
body:not(.goblin-in-game) .rage-hint-game-only {
  display: none;
}
.rage-tile--display:hover .rage-tile-inner {
  transform: none;
  border-color: var(--border);
}
.rage-tile--display input:checked + .rage-tile-inner:hover {
  border-color: rgba(184, 211, 77, 0.7);
}
.char-sheet-rage-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
}

@keyframes rage-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-1px) scale(1.04); }
}

/* Make-a-goblin: escape strike tally tracker */
.strike-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}
.strike-tile {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
}
.strike-tile input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.strike-tile input:disabled + .strike-tile-inner {
  opacity: 0.45;
  cursor: not-allowed;
}
.strike-tracker:not(.is-interactive) .strike-tile-inner {
  opacity: 0.45;
  cursor: default;
}
.strike-tracker.is-interactive .strike-tile {
  cursor: pointer;
}
.strike-tile-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.75rem;
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}
.strike-tracker.is-interactive .strike-tile:hover .strike-tile-inner {
  transform: translateY(-1px);
  border-color: rgba(231, 87, 79, 0.45);
}
.strike-mark {
  width: 22px;
  height: 28px;
  display: block;
}
.strike-mark-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke 0.2s ease, opacity 0.2s ease;
}
.strike-tile input:checked + .strike-tile-inner {
  border-style: solid;
  border-color: rgba(231, 87, 79, 0.65);
  background: rgba(231, 87, 79, 0.12);
  box-shadow: 0 0 0 1px rgba(231, 87, 79, 0.2);
}
.strike-tile input:checked + .strike-tile-inner .strike-mark-line {
  stroke: #e7574f;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 4px rgba(231, 87, 79, 0.45));
}

body.goblin-in-game .strike-hint-build-only {
  display: none;
}
body:not(.goblin-in-game) .strike-hint-game-only {
  display: none;
}

/* Make-a-goblin: game mode */
body.goblin-in-game #goblin-flow,
body.goblin-in-game #goblin-page-lead,
body.goblin-in-game .goblin-step:not(#step-sheet) {
  display: none !important;
}
body.goblin-in-game #step-sheet .goblin-step-header,
body.goblin-in-game #step-sheet .goblin-step-body > p:first-child,
body.goblin-in-game #char-sheet-build-actions {
  display: none !important;
}
body.goblin-in-game #goblin-game-mode {
  display: block !important;
}
body.goblin-in-game #step-sheet {
  display: block !important;
}
body.goblin-in-game #step-sheet[hidden] {
  display: block !important;
}
.goblin-page-head .goblin-reset-btn {
  flex-shrink: 0;
  align-self: center;
}
.goblin-game-mode {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.goblin-game-mode-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.game-mode-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.game-mode-action-grid .btn {
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 0.9rem;
}
@media (max-width: 700px) {
  .game-mode-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.game-mode-picker {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}
.game-mode-picker-label {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}
.game-mode-picker-options {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.game-mode-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.game-mode-log-list li {
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.92rem;
  line-height: 1.4;
}
.game-mode-log-list li.is-success {
  border-color: rgba(184, 211, 77, 0.35);
}
.game-mode-log-list li.is-fail,
.game-mode-log-list li.is-danger {
  border-color: rgba(231, 87, 79, 0.35);
}
.game-mode-log-list li.is-ghost {
  border-color: rgba(180, 160, 255, 0.35);
}
.game-mode-log-empty {
  margin: 0;
  font-size: 0.9rem;
}
.game-mode-log:not(:has(.game-mode-log-list li)) .game-mode-log-empty,
.game-mode-log-list:not(:empty) + .game-mode-log-empty {
  display: none;
}

.game-mode-roll-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
.game-mode-roll-section {
  margin: 0.85rem 0;
}
.game-mode-roll-stats {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.game-mode-roll-stats .btn.is-selected {
  border-color: var(--accent);
  background: rgba(184, 211, 77, 0.12);
  color: var(--ink);
}
.game-mode-modifier-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.game-mode-modifier-grid .btn {
  min-width: 2.75rem;
  padding: 0.35rem 0.5rem;
}
.game-mode-modifier-grid .btn.is-selected {
  border-color: var(--accent);
  background: rgba(184, 211, 77, 0.12);
}
.game-mode-roll-rage {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.85rem 0;
  cursor: pointer;
  font-size: 0.92rem;
}
.game-mode-roll-rage input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.game-mode-roll-rage input:disabled + span {
  opacity: 0.45;
}
.game-mode-rage-stepper {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.game-mode-rage-count {
  min-width: 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.game-mode-rage-cap {
  font-size: 0.88rem;
}
.game-mode-rage-stepper .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.game-mode-roll-pool {
  display: inline-block;
  margin: 0.5rem 0 0.85rem;
  font-size: 0.88rem;
}
.game-mode-roll-actions {
  gap: 0.5rem;
}

/* Make-a-goblin: stat allocator - 4 across, then 2x2, then stacked. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* Logged-out gates */
.gate {
  background: rgba(184, 211, 77, 0.07);
  border: 1px dashed rgba(184, 211, 77, 0.45);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
}

/* Mobile nav rough fix */
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; }
  .primary-nav { width: 100%; justify-content: flex-start; }
}

/* Make-a-goblin: digital character sheet */
.char-sheet {
  background: linear-gradient(170deg, #2a2113, #14110d);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
  margin-top: 1rem;
}
.char-sheet-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.85rem 1.25rem;
  align-items: end;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .char-sheet-header { grid-template-columns: 1fr; }
}
.char-sheet-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.char-sheet-name { display: block; }
.char-sheet-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  word-break: break-word;
}
.char-sheet-value--role {
  font-size: 1.1rem;
  font-weight: 700;
}
.char-sheet-field { display: block; }
.char-sheet-field input,
.char-sheet-field textarea {
  width: 100%;
  background: #0f0c08;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  resize: vertical;
}
.char-sheet-field input:focus,
.char-sheet-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 211, 77, 0.2);
}

.char-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 800px) {
  .char-sheet-grid { grid-template-columns: 1fr; }
}
.char-sheet-block--strikes {
  margin-bottom: 1rem;
}
.char-sheet-strikes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}
.char-sheet-strikes-head h3 {
  margin: 0;
}
.char-sheet-strikes-count {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.char-sheet-strike-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}
.char-sheet-ghost-banner {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(231, 87, 79, 0.45);
  background: rgba(231, 87, 79, 0.12);
  color: #ffb4ae;
  font-size: 0.92rem;
}
.char-sheet.is-ghost {
  box-shadow: inset 0 0 40px rgba(231, 87, 79, 0.12);
}
.char-sheet-gear li.is-used { opacity: 0.85; font-style: italic; }
.char-sheet-gear li.is-broken {
  text-decoration: line-through;
  opacity: 0.65;
}
.char-sheet-gear li.is-lost {
  opacity: 0.45;
  font-style: italic;
}
.char-sheet-gear li .gear-status-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.char-sheet-block {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.char-sheet-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.char-sheet-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.char-sheet-stats li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}
.char-sheet-stats li > span:last-child {
  font-weight: 800;
  color: var(--accent);
  min-width: 1.6rem;
  text-align: right;
}

.char-sheet-gear {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.char-sheet-gear li {
  background: rgba(184, 211, 77, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.92rem;
}
.char-sheet-gear .char-sheet-gear-empty {
  color: var(--muted);
  background: transparent;
  border-left-color: var(--border);
  font-style: italic;
}

.char-sheet-narratives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 600px) {
  .char-sheet-narratives { grid-template-columns: 1fr; }
}

/* Print only the character sheet */
@media print {
  @page {
    margin: 0.5in;
  }

  body.printing-sheet {
    background: #fff !important;
  }

  body.printing-sheet .skip-link,
  body.printing-sheet .site-header,
  body.printing-sheet .site-footer,
  body.printing-sheet .flashes {
    display: none !important;
  }

  body.printing-sheet .site-main,
  body.printing-sheet .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  body.printing-sheet .container > *:not(#step-sheet) {
    display: none !important;
  }

  body.printing-sheet #step-sheet,
  body.printing-sheet #step-sheet[hidden] {
    display: block !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.printing-sheet #step-sheet .goblin-step-header,
  body.printing-sheet #step-sheet .goblin-step-body > p,
  body.printing-sheet #char-sheet-build-actions,
  body.printing-sheet #goblin-game-mode,
  body.printing-sheet .goblin-page-head .goblin-reset-btn {
    display: none !important;
  }

  body.printing-sheet #step-sheet .goblin-step-body {
    padding: 0 !important;
    margin: 0 !important;
  }

  body.printing-sheet .char-sheet,
  body.printing-sheet .char-sheet * {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  body.printing-sheet .char-sheet {
    border: 1px solid #000 !important;
    margin: 0 !important;
  }
  body.printing-sheet .char-sheet-block {
    border: 1px solid #888 !important;
  }
  body.printing-sheet .char-sheet-label {
    color: #444 !important;
  }
  body.printing-sheet .char-sheet-value,
  body.printing-sheet .char-sheet-stats li > span:last-child {
    color: #000 !important;
    font-weight: 800;
  }
  body.printing-sheet .char-sheet input,
  body.printing-sheet .char-sheet textarea {
    border: 1px solid #000 !important;
  }
  body.printing-sheet .rage-tracker--sheet .rage-tile-inner {
    border: 1px solid #888 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  body.printing-sheet .rage-tracker--sheet input:checked + .rage-tile-inner .rage-fang-body {
    fill: #000 !important;
    stroke: #000 !important;
  }
  body.printing-sheet .rage-tracker--sheet input:not(:checked) + .rage-tile-inner .rage-fang-body {
    fill: #fff !important;
    stroke: #888 !important;
  }
  body.printing-sheet .char-sheet-gear li {
    border-left: 3px solid #000 !important;
  }
}
