:root {
  --gold: #f3b61f;
  --gold-deep: #b77905;
  --ink: #232018;
  --charcoal: #332d26;
  --snow: #fffdf7;
  --paper: #fff7df;
  --mint: #dff3e8;
  --sky: #d9eef7;
  --teal: #1f7980;
  --leaf: #477346;
  --rust: #b14a35;
  --plum: #5a365f;
  --line: rgba(35, 32, 24, 0.14);
  --shadow: 0 24px 70px rgba(48, 38, 21, 0.2);
  --active-accent: #8f2430;
  --header-height: 88px;
  --font-body: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-ui: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(223, 243, 232, 0.68) 45%, rgba(255, 247, 223, 0.84)),
    radial-gradient(circle at 20% 10%, rgba(243, 182, 31, 0.28), transparent 26%),
    radial-gradient(circle at 86% 28%, rgba(31, 121, 128, 0.22), transparent 24%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  min-width: 320px;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 247, 0.82);
  border-bottom: 1px solid rgba(35, 32, 24, 0.1);
  box-shadow: 0 18px 44px rgba(35, 32, 24, 0.1);
  display: flex;
  gap: clamp(10px, 2vw, 22px);
  height: var(--header-height);
  justify-content: space-between;
  left: 0;
  padding: 10px clamp(18px, 3.4vw, 44px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand-link {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0;
  height: 68px;
  justify-content: center;
  overflow: visible;
  padding: 0;
  text-decoration: none;
}

.brand-link img {
  aspect-ratio: auto;
  height: 68px;
  object-fit: contain;
  width: auto;
}

.brand-link strong {
  color: #241a0a;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 0.95;
  max-width: 112px;
  text-transform: uppercase;
}

.brand-link span {
  display: none;
}

.site-nav {
  align-items: center;
  background: rgba(35, 32, 24, 0.92);
  border: 2px solid rgba(243, 182, 31, 0.58);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.08), 0 12px 28px rgba(35, 32, 24, 0.12);
  display: flex;
  gap: 2px;
  justify-content: flex-end;
  min-width: 0;
  padding: 6px;
}

.nav-toggle {
  align-items: center;
  background: rgba(35, 32, 24, 0.92);
  border: 2px solid rgba(243, 182, 31, 0.58);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.08), 0 12px 28px rgba(35, 32, 24, 0.12);
  color: var(--snow);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 52px;
}

.nav-toggle span {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
  left: 14px;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
  width: 20px;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
body.nav-open .nav-toggle {
  background: var(--gold);
  border-color: var(--gold-deep);
  color: #221704;
  outline: none;
}

body.nav-open .nav-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.site-nav a {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.86);
  display: inline-flex;
  flex: 0 1 auto;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  position: relative;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::before {
  display: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--gold);
  border-color: var(--gold-deep);
  color: #221704;
  outline: none;
}

.hero {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-height) + 30px) clamp(18px, 3.2vw, 44px) 32px;
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(rgba(35, 32, 24, 0.075) 2px, transparent 2px),
    linear-gradient(90deg, rgba(35, 32, 24, 0.075) 2px, transparent 2px),
    linear-gradient(135deg, transparent 0 45%, rgba(243, 182, 31, 0.18) 45% 55%, transparent 55% 100%);
  background-size: 44px 44px, 44px 44px, 220px 220px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  pointer-events: none;
  position: absolute;
  z-index: -3;
}

.hero::after {
  display: none;
}

.hero-backdrop {
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-backdrop::after {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.9) 45%, rgba(255, 253, 247, 0.42) 100%),
    linear-gradient(0deg, rgba(255, 253, 247, 1) 0%, rgba(255, 253, 247, 0.18) 52%),
    linear-gradient(180deg, rgba(255, 247, 223, 0.38), rgba(223, 243, 232, 0.38));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-backdrop img {
  filter: saturate(1.18) contrast(1.03);
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.58;
  width: 100%;
}

.hero-content {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1380px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
  min-width: 0;
  position: relative;
}

.hero-copy::after {
  display: none;
}

.hero-brand-lockup {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 18px;
}

.hero-logo-panel {
  align-items: center;
  aspect-ratio: 665 / 970;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  width: clamp(88px, 10vw, 132px);
}

.hero-logo-panel::after {
  background:
    radial-gradient(circle, var(--gold) 0 7px, transparent 8px),
    radial-gradient(circle, var(--teal) 0 7px, transparent 8px),
    radial-gradient(circle, var(--rust) 0 7px, transparent 8px);
  background-position: 0 0, 28px 0, 56px 0;
  background-repeat: no-repeat;
  bottom: -18px;
  content: "";
  height: 16px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 72px;
}

.hero-logo {
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.hero-wordmark {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: min(620px, calc(100vw - 160px));
  padding: 0;
  width: clamp(300px, 42vw, 620px);
}

.studio-console {
  align-items: center;
  background: #241a0a;
  border: 2px solid rgba(243, 182, 31, 0.62);
  border-radius: 8px;
  color: #fffdf7;
  display: inline-flex;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 900;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 100%;
  padding: 8px 10px;
  text-transform: uppercase;
  width: fit-content;
}

.studio-console span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.studio-console span:first-child::before {
  background: #48d274;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(72, 210, 116, 0.18);
  content: "";
  height: 9px;
  width: 9px;
}

.studio-console span + span {
  border-left: 1px solid rgba(255, 253, 247, 0.2);
  color: rgba(255, 253, 247, 0.74);
  padding-left: 10px;
}

.studio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.studio-meta span {
  background: rgba(255, 253, 247, 0.88);
  border: 2px solid rgba(35, 32, 24, 0.12);
  border-radius: 8px;
  color: rgba(35, 32, 24, 0.74);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  min-width: 72px;
  padding: 7px 10px;
  text-align: center;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
a,
button,
strong,
span {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
}

h1 {
  color: #241a0a;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  letter-spacing: 0;
  max-width: 760px;
}

.hero-deck {
  color: rgba(35, 32, 24, 0.78);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.hero-table-row {
  align-items: stretch;
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.76fr);
}

.studio-ledger {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
  max-width: 720px;
}

.studio-ledger span {
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(35, 32, 24, 0.11);
  border-radius: 8px;
  color: rgba(35, 32, 24, 0.68);
  min-width: 0;
  min-height: 76px;
  padding: 10px 12px;
}

.studio-ledger strong {
  color: var(--active-accent);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

.button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-ui);
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 18px;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  white-space: normal;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-3px);
}

.primary-button {
  background: var(--gold);
  border: 2px solid var(--gold-deep);
  box-shadow: 0 6px 0 rgba(183, 121, 5, 0.42);
  color: #211602;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #ffd963;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(35, 32, 24, 0.18);
  color: var(--ink);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.dice-button {
  background: var(--teal);
  border: 2px solid #14575c;
  box-shadow: 0 6px 0 rgba(20, 87, 92, 0.34);
  color: #fff;
  min-width: 76px;
  position: relative;
}

.dice-button::before {
  background:
    radial-gradient(circle, #fff 0 2px, transparent 3px) 8px 8px,
    radial-gradient(circle, #fff 0 2px, transparent 3px) 22px 8px,
    radial-gradient(circle, #fff 0 2px, transparent 3px) 15px 20px,
    rgba(255, 255, 255, 0.16);
  background-repeat: no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 7px;
  content: "";
  display: inline-block;
  flex: 0 0 30px;
  height: 30px;
  margin-right: 7px;
  width: 30px;
}

.quest-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 223, 0.84)),
    linear-gradient(90deg, rgba(35, 32, 24, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(35, 32, 24, 0.05) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-top: 8px solid var(--active-accent);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(48, 38, 21, 0.14);
  margin-top: 0;
  max-width: none;
  min-width: 0;
  padding: 15px 17px 17px;
  position: relative;
}

.quest-panel::after {
  background:
    radial-gradient(circle, var(--gold) 0 6px, transparent 7px),
    radial-gradient(circle, var(--teal) 0 6px, transparent 7px),
    radial-gradient(circle, var(--rust) 0 6px, transparent 7px);
  background-position: 0 0, 24px 0, 48px 0;
  background-repeat: no-repeat;
  content: "";
  height: 14px;
  position: absolute;
  right: 14px;
  top: 12px;
  width: 62px;
}

.spotlight-kicker {
  color: rgba(35, 32, 24, 0.58);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.quest-panel h2 {
  color: #241a0a;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  padding-right: 72px;
}

.quest-panel p {
  margin: 8px 0;
}

#spotlightKind {
  color: var(--active-accent);
  font-weight: 900;
}

#spotlightDescription {
  color: rgba(35, 32, 24, 0.76);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  background: var(--mint);
  border: 1px solid rgba(35, 32, 24, 0.12);
  border-radius: 999px;
  color: #21483e;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.showcase-panel {
  align-self: start;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 247, 223, 0.82)),
    linear-gradient(90deg, rgba(35, 32, 24, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(35, 32, 24, 0.07) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-top: 8px solid var(--active-accent);
  border-radius: 8px;
  box-shadow: 18px 18px 0 rgba(35, 32, 24, 0.08), 0 28px 80px rgba(48, 38, 21, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: stretch;
  max-width: none;
  height: clamp(430px, 42vw, 520px);
  min-height: 0;
  padding: 18px 18px 20px;
  position: relative;
  width: 100%;
}

.showcase-panel::after {
  background:
    radial-gradient(circle, var(--gold) 0 7px, transparent 8px),
    radial-gradient(circle, var(--teal) 0 7px, transparent 8px),
    radial-gradient(circle, var(--rust) 0 7px, transparent 8px);
  background-position: 0 0, 30px 0, 60px 0;
  background-repeat: no-repeat;
  content: "";
  height: 16px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 82px;
}

.showcase-panel-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 28px;
  padding-right: 98px;
}

.showcase-panel-top span {
  color: rgba(35, 32, 24, 0.58);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-showcase {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.icon-button {
  align-items: center;
  background: #fff;
  border: 2px solid rgba(35, 32, 24, 0.18);
  border-radius: 50%;
  box-shadow: 0 6px 0 rgba(35, 32, 24, 0.08);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
  width: 46px;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--gold);
  color: var(--gold-deep);
  outline: none;
  transform: translateY(-2px);
}

.box-frame {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(35, 32, 24, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(35, 32, 24, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 182, 31, 0.18) 2px, transparent 2px),
    linear-gradient(rgba(243, 182, 31, 0.18) 2px, transparent 2px),
    radial-gradient(ellipse at 50% 95%, rgba(35, 32, 24, 0.18), transparent 44%),
    rgba(255, 255, 255, 0.42);
  background-size: 28px 28px, 28px 28px, 112px 112px, 112px 112px, auto, auto;
  border: 2px dashed rgba(35, 32, 24, 0.16);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  perspective: 1000px;
  position: relative;
}

.box-frame::before {
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(35, 32, 24, 0.1) calc(100% - 1px)),
    linear-gradient(transparent 0 calc(100% - 1px), rgba(35, 32, 24, 0.1) calc(100% - 1px));
  background-size: 56px 56px;
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
}

.box-frame img {
  filter: drop-shadow(0 36px 26px rgba(78, 58, 24, 0.3));
  height: clamp(250px, 28vw, 340px);
  max-height: calc(100% - 52px);
  object-fit: contain;
  transform: rotateY(-9deg) rotateX(2deg) rotateZ(-1deg);
  transition: opacity 220ms ease, transform 220ms ease;
  width: min(100%, 450px);
  z-index: 1;
}

.box-frame figcaption {
  background: #fff;
  border: 2px solid var(--active-accent);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
  margin-top: 10px;
  padding: 7px 13px;
  z-index: 1;
}

.shelf-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 32, 24, 0.12);
  border-radius: 8px;
  color: rgba(35, 32, 24, 0.68);
  display: flex;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: space-between;
  margin: 24px auto 10px;
  max-width: 1380px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.spotlight-strip[hidden] {
  display: none;
}

.spotlight-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  margin: 0 auto;
  max-width: 1380px;
}

.spotlight-thumb {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  min-height: 92px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.spotlight-thumb::after {
  background: linear-gradient(0deg, rgba(35, 32, 24, 0.82), rgba(35, 32, 24, 0.05));
  content: "";
  inset: 0;
  position: absolute;
}

.spotlight-thumb img {
  height: 96px;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.spotlight-thumb span {
  bottom: 7px;
  font-size: 0.72rem;
  font-weight: 900;
  left: 7px;
  line-height: 1.1;
  max-width: calc(100% - 14px);
  position: absolute;
  right: 7px;
  z-index: 1;
}

.spotlight-thumb:hover img,
.spotlight-thumb:focus-visible img {
  transform: scale(1.06);
}

.spotlight-thumb:hover,
.spotlight-thumb:focus-visible {
  transform: translateY(-3px);
}

.spotlight-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 182, 31, 0.28), 0 12px 24px rgba(35, 32, 24, 0.12);
}

.spotlight-thumb:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.page-board {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.72), rgba(223, 243, 232, 0.5) 42%, rgba(255, 247, 223, 0.7)),
    linear-gradient(90deg, rgba(35, 32, 24, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(35, 32, 24, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  border-top: 4px solid rgba(243, 182, 31, 0.62);
  overflow: hidden;
  position: relative;
}

.page-board::before {
  background: linear-gradient(180deg, var(--gold), var(--teal), var(--rust), var(--leaf));
  border-radius: 999px;
  bottom: 96px;
  content: "";
  left: max(18px, calc((100vw - 1280px) / 2 + 16px));
  opacity: 0.16;
  position: absolute;
  top: 64px;
  width: 8px;
}

.page-board > section,
.about-section,
.games-section,
.contact-section,
.idea-lab-section,
.board-path-section {
  margin: 0 auto;
  max-width: 1280px;
  padding: 56px 24px;
  position: relative;
  z-index: 1;
}

.about-section {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
}

.section-heading h2 {
  color: #241a0a;
  font-size: clamp(2.15rem, 4.2vw, 3.72rem);
  max-width: 850px;
}

.about-copy {
  color: rgba(35, 32, 24, 0.78);
  font-size: 1.04rem;
}

.about-copy p {
  margin-top: 0;
}

.studio-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.studio-stats span {
  background: #fff;
  border: 2px solid rgba(35, 32, 24, 0.12);
  border-radius: 8px;
  color: rgba(35, 32, 24, 0.72);
  min-height: 116px;
  padding: 14px;
}

.studio-stats strong {
  color: var(--active-accent);
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.board-path-section {
  padding-bottom: 28px;
  padding-top: 0;
}

.board-path {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.board-path::before {
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--rust), var(--leaf));
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

.board-path span {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 8px 0 rgba(35, 32, 24, 0.08);
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-ui);
  font-weight: 900;
  justify-content: center;
  justify-self: center;
  max-width: 132px;
  padding: 18px;
  text-align: center;
  width: 100%;
}

.idea-lab-section {
  padding-top: 36px;
}

.idea-lab-card {
  background:
    linear-gradient(135deg, rgba(35, 32, 24, 0.98), rgba(31, 121, 128, 0.94) 55%, rgba(143, 36, 48, 0.92)),
    linear-gradient(90deg, rgba(255, 253, 247, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 247, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  border: 2px solid rgba(243, 182, 31, 0.74);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.18), 0 18px 0 rgba(35, 32, 24, 0.16), 0 34px 86px rgba(35, 32, 24, 0.28);
  color: var(--snow);
  margin-top: 0;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  position: relative;
}

.idea-card-intro {
  align-items: center;
  border-bottom: 2px solid rgba(255, 253, 247, 0.16);
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  margin-bottom: 14px;
  padding: 0 0 14px 0;
  position: relative;
  z-index: 1;
}

.idea-lab-mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
  height: clamp(54px, 7vw, 78px);
  object-fit: contain;
  width: clamp(42px, 5.5vw, 62px);
}

.idea-card-intro h2 {
  color: #fffdf7;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.9;
  max-width: 840px;
  text-shadow: 0 4px 0 rgba(35, 32, 24, 0.28);
}

.idea-lab-card::before,
.idea-lab-card::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.idea-lab-card::before {
  display: none;
}

.idea-lab-card::after {
  border: 2px solid rgba(255, 253, 247, 0.08);
  border-radius: 8px;
  inset: 10px;
}

.idea-lab-toolbar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 253, 247, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 0 0 14px;
  position: relative;
  z-index: 1;
}

.idea-lab-toolbar h3 {
  color: #fffdf7;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

.idea-lab-card .eyebrow,
.idea-lab-card .spotlight-kicker {
  color: rgba(255, 253, 247, 0.72);
}

.idea-name-badge {
  align-items: start;
  background: rgba(255, 253, 247, 0.1);
  border: 1px solid rgba(243, 182, 31, 0.52);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-top: 8px;
  max-width: min(680px, 100%);
  padding: 10px 12px;
}

.idea-name-badge[hidden] {
  display: none;
}

.idea-name-badge span {
  color: rgba(255, 253, 247, 0.62);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.idea-name-badge strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.85rem);
  line-height: 1.16;
  overflow: visible;
  overflow-wrap: anywhere;
  padding-bottom: 0.08em;
}

.idea-lab-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 100%;
}

.idea-step-markers {
  align-items: center;
  background: rgba(255, 253, 247, 0.1);
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 999px;
  display: flex;
  gap: 6px;
  padding: 7px;
}

.idea-step-marker {
  background: rgba(255, 253, 247, 0.28);
  border-radius: 999px;
  display: block;
  height: 10px;
  transition: background 160ms ease, transform 160ms ease, width 160ms ease;
  width: 10px;
}

.idea-step-marker[data-step-state="done"] {
  background: var(--teal);
}

.idea-step-marker[data-step-state="active"] {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(243, 182, 31, 0.2);
  transform: scale(1.1);
  width: 24px;
}

.idea-lab-board {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.idea-lab-card.is-stepped [data-idea-step] {
  display: none;
}

.idea-lab-card.is-stepped [data-idea-step].is-active {
  animation: ideaPop 180ms ease-out;
  display: block;
}

.idea-lab-card.is-stepped .project-forge[data-idea-step].is-active {
  display: flex;
}

@keyframes ideaPop {
  from {
    opacity: 0;
    transform: translateY(8px) rotate(-0.6deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.project-forge {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: clamp(18px, 2.2vw, 28px) 0 0;
  position: relative;
}

.project-forge::before {
  display: none;
}

.project-forge h3,
.idea-panel h3,
.shortlist-panel h3 {
  color: #fffdf7;
  font-size: 2rem;
}

.project-forge h3 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  margin-right: 0;
}

.project-forge p {
  color: rgba(255, 253, 247, 0.76);
}

.idea-lab-card .project-forge,
.idea-lab-card .shortlist-panel {
  background: transparent;
}

.idea-lab-card .project-forge,
.idea-lab-card .idea-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 296px;
}

.idea-lab-card .project-forge {
  max-height: none;
  overflow: visible;
  padding: clamp(18px, 2.2vw, 28px) 0 0;
}

.idea-lab-card .project-forge h3 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.98;
  margin-right: 0;
}

.idea-lab-card .project-forge p {
  font-size: 0.92rem;
  line-height: 1.34;
  margin: 8px 0 0;
}

.idea-lab-card .project-forge .modal-actions {
  margin-top: 18px;
}

.idea-final-actions {
  align-items: center;
}

.idea-share-dialog {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-width: min(456px, calc(100vw - 28px));
  padding: 0;
  width: 456px;
}

.idea-share-dialog::backdrop {
  backdrop-filter: blur(5px);
  background: rgba(10, 13, 16, 0.62);
}

.share-dialog-panel {
  background:
    linear-gradient(135deg, rgba(243, 182, 31, 0.18), transparent 42%),
    #fffdf7;
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.share-dialog-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.share-dialog-header .eyebrow {
  color: rgba(16, 24, 32, 0.58);
  margin: 0 0 4px;
}

.share-dialog-header h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.08;
  margin: 0;
}

.share-close {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(16, 24, 32, 0.08);
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.share-close:hover,
.share-close:focus-visible {
  background: rgba(243, 182, 31, 0.28);
}

.share-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.share-option {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-family: var(--font-ui);
  gap: 7px;
  justify-items: center;
  min-height: 86px;
  min-width: 0;
  padding: 10px 7px;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.share-option[hidden] {
  display: none;
}

.share-option:hover,
.share-option:focus-visible {
  background: #fffdf7;
  border-color: rgba(243, 182, 31, 0.6);
  box-shadow: 0 10px 20px rgba(16, 24, 32, 0.12);
  transform: translateY(-2px);
}

.share-option strong {
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.share-option-icon {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fffdf7;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.share-option-icon::before {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.share-facebook::before {
  content: "f";
  font-size: 1.25rem;
}

.share-instagram::before {
  content: "";
  border: 2px solid currentColor;
  border-radius: 9px;
  height: 17px;
  width: 17px;
}

.share-instagram::after {
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 6px;
  position: absolute;
  width: 6px;
}

.share-whatsapp::before {
  content: "W";
}

.share-linkedin::before {
  content: "in";
}

.share-bluesky::before {
  content: "B";
}

.share-email::before {
  content: "@";
}

.share-more::before {
  content: "...";
}

.share-copy::before {
  content: "L";
}

@media (max-width: 520px) {
  .idea-share-dialog {
    max-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
  }

  .share-dialog-panel {
    padding: 14px;
  }

  .share-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-option {
    min-height: 72px;
  }
}

.share-feedback {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.idea-lab-card .idea-result-grid {
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.idea-lab-card .idea-result-row {
  font-size: 0.84rem;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 8px 0;
}

.idea-lab-card .idea-stat-grid {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.idea-lab-card .idea-stat-card {
  min-height: 62px;
  padding: 8px;
}

.idea-lab-card .idea-stat-card strong {
  font-size: 1.24rem;
}

.idea-result-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0 8px;
}

.idea-result-section {
  display: grid;
  gap: 10px;
}

.idea-result-section h4 {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.idea-profile-grid {
  display: grid;
  gap: 10px;
}

.idea-result-row {
  align-items: start;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: 98px minmax(0, 1fr);
  padding: 10px;
}

.idea-result-row span:first-child {
  color: var(--gold);
  font-family: var(--font-ui);
  font-weight: 900;
}

.idea-result-row span:last-child {
  color: rgba(255, 253, 247, 0.78);
}

.idea-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idea-stat-card {
  background: rgba(255, 253, 247, 0.11);
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 8px;
  border-left: 5px solid var(--gold);
  min-height: 84px;
  padding: 12px;
}

.idea-stat-card strong {
  color: #fffdf7;
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.idea-stat-card span {
  color: rgba(255, 253, 247, 0.64);
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 900;
  margin-top: 5px;
  text-transform: uppercase;
}

.idea-mini-games {
  display: block;
}

.idea-lab-card:not(.is-stepped) .idea-panel + .idea-panel {
  margin-top: 12px;
}

.idea-panel {
  padding: clamp(18px, 2.2vw, 28px) 0 0;
}

.idea-lab-card .idea-panel {
  padding: clamp(18px, 2.2vw, 28px) 0 0;
}

.idea-panel-top {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

.idea-panel-top .eyebrow {
  margin-bottom: 4px;
}

.idea-panel-top h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.idea-token {
  align-items: center;
  aspect-ratio: 1;
  background: var(--gold);
  border: 2px solid rgba(35, 32, 24, 0.16);
  border-radius: 50%;
  box-shadow: 0 6px 0 rgba(35, 32, 24, 0.1);
  color: #211602;
  display: inline-flex;
  font-family: var(--font-ui);
  font-weight: 900;
  justify-content: center;
  width: 36px;
}

.idea-token::before {
  background: var(--gold);
  border-radius: 50%;
  box-shadow: -8px -6px 0 var(--rust), 8px 6px 0 var(--teal);
  content: "";
  height: 6px;
  width: 6px;
}

.name-forge-card {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 247, 0.1) 1px, transparent 1px),
    rgba(255, 253, 247, 0.09);
  background-size: 22px 22px;
  border: 0;
  border-bottom: 4px solid var(--active-accent);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
}

.idea-lab-card .name-forge-card {
  align-items: center;
  display: flex;
  min-height: 150px;
  overflow: visible;
  padding: 20px 20px 24px;
}

.idea-lab-card .name-forge-card.is-locked {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 247, 0.07) 1px, transparent 1px),
    rgba(255, 253, 247, 0.06);
  background-size: 22px 22px;
  border-bottom-style: dashed;
}

.name-forge-card strong {
  color: var(--gold);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.18;
  overflow: visible;
  padding-bottom: 0.08em;
}

.name-forge-card.is-locked strong {
  color: rgba(255, 253, 247, 0.64);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
}

.idea-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.idea-lab-card .idea-options {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.idea-option {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(35, 32, 24, 0.14);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 42px;
  padding: 7px 9px;
  position: relative;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.idea-lab-card .idea-option {
  align-items: center;
  display: grid;
  justify-content: stretch;
  min-height: 42px;
  padding: 7px 9px;
  text-align: left;
}

.idea-option::before {
  align-items: center;
  aspect-ratio: 1;
  background: #241a0a;
  border-radius: 50%;
  color: #fffdf7;
  content: attr(data-choice-number);
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 900;
  justify-content: center;
  width: 24px;
}

.idea-option:hover,
.idea-option:focus-visible {
  border-color: var(--teal);
  outline: none;
  transform: translateY(-2px);
}

.idea-option.is-selected {
  background: rgba(223, 243, 232, 0.9);
  border-color: var(--active-accent);
  box-shadow: 0 0 0 3px rgba(143, 36, 48, 0.14);
}

.idea-option.is-selected::before {
  background: var(--active-accent);
}

.idea-option strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.12;
}

.idea-option span {
  color: rgba(35, 32, 24, 0.66);
  display: block;
  font-size: 0.78rem;
  line-height: 1.24;
  margin-top: 5px;
}

.idea-lab-card .idea-option strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.08;
  overflow: hidden;
}

.idea-lab-card .idea-option span {
  display: none;
}

.idea-controls {
  align-items: center;
  border-top: 1px solid rgba(255, 253, 247, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  position: relative;
  z-index: 1;
}

.idea-controls .mini-action {
  flex: 1 1 132px;
  min-width: 132px;
}

.idea-lab-card.is-result .idea-controls {
  display: none;
}

.shortlist-panel {
  align-items: start;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(35, 32, 24, 0.12);
  box-shadow: none;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  margin-top: 22px;
  padding: 18px;
}

.idea-lab-card .shortlist-panel {
  box-shadow: none;
  display: none;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  margin-top: 12px;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.idea-lab-card .shortlist-panel.has-saved {
  display: grid;
}

.idea-lab-card .shortlist-panel h3 {
  font-size: 1.12rem;
}

.idea-lab-card .shortlist-card {
  min-height: 76px;
  padding: 9px;
}

.idea-lab-card .shortlist-empty {
  min-height: 58px;
  padding: 10px;
}

.shortlist-panel h3 {
  font-size: 1.65rem;
}

.shortlist-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shortlist-card {
  background: rgba(255, 247, 223, 0.64);
  border: 1px solid rgba(35, 32, 24, 0.14);
  border-radius: 8px;
  border-top: 5px solid var(--active-accent);
  min-height: 118px;
  padding: 12px;
}

.shortlist-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.05;
}

.shortlist-card span {
  color: rgba(35, 32, 24, 0.66);
  display: block;
  font-size: 0.86rem;
  margin-top: 8px;
}

.shortlist-empty {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 2px dashed rgba(35, 32, 24, 0.18);
  border-radius: 8px;
  color: rgba(35, 32, 24, 0.64);
  display: flex;
  font-weight: 900;
  min-height: 88px;
  padding: 16px;
}

.toolkit-section {
  padding-top: 36px;
}

.toolkit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 28px;
}

.tool-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 247, 223, 0.84)),
    linear-gradient(90deg, rgba(35, 32, 24, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(35, 32, 24, 0.05) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-radius: 8px;
  border-top: 8px solid var(--gold);
  box-shadow: 0 16px 42px rgba(48, 38, 21, 0.12);
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
}

.tool-card:nth-child(2) {
  border-top-color: var(--teal);
  grid-row: span 2;
}

.tool-card:nth-child(3) {
  border-top-color: var(--rust);
}

.tool-card:nth-child(4) {
  border-top-color: var(--leaf);
}

.tool-card-heading {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tool-card h3 {
  color: #241a0a;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.tool-form-grid,
.component-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card label {
  color: rgba(35, 32, 24, 0.68);
  display: grid;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.tool-card input,
.tool-card textarea {
  background: #fff;
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  text-transform: none;
  width: 100%;
}

.tool-card textarea {
  min-height: 92px;
  resize: vertical;
}

.tool-card input:focus,
.tool-card textarea:focus {
  border-color: var(--teal);
  outline: none;
}

.tool-actions,
.tool-inline-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tool-inline-form label {
  flex: 1 1 190px;
}

.dice-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.die-row,
.die-result-row,
.turn-player {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(35, 32, 24, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 9px;
}

.die-row strong,
.die-result-row strong,
.turn-player strong {
  color: #241a0a;
  line-height: 1.1;
}

.die-row small,
.die-result-row span,
.turn-player span {
  color: rgba(35, 32, 24, 0.64);
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 3px;
}

.dice-result {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.die-face {
  align-items: center;
  background: var(--teal);
  border: 2px solid #14575c;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  min-width: 52px;
  padding: 6px 10px;
  text-align: center;
}

.card-builder-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
}

.generated-card {
  aspect-ratio: 2.5 / 3.5;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 247, 223, 0.92)),
    linear-gradient(90deg, rgba(35, 32, 24, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(35, 32, 24, 0.04) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
  border: 3px solid var(--card-accent, var(--gold));
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(35, 32, 24, 0.16);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 390px;
  overflow: hidden;
  padding: 16px;
}

.generated-card-top {
  align-items: start;
  border-bottom: 2px solid rgba(35, 32, 24, 0.14);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 12px;
}

.generated-card-top strong {
  color: #241a0a;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 0.98;
}

.generated-card-top span {
  align-items: center;
  background: var(--card-accent, var(--gold));
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-radius: 50%;
  color: #241a0a;
  display: inline-flex;
  font-family: var(--font-ui);
  font-weight: 900;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 6px;
}

.generated-card-type {
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 12px 0;
  text-transform: uppercase;
}

.generated-card p {
  align-self: center;
  color: rgba(35, 32, 24, 0.78);
  font-size: clamp(0.95rem, 1.7vw, 1.14rem);
  line-height: 1.36;
  margin: 0;
}

.generated-card small {
  border-top: 2px solid rgba(35, 32, 24, 0.12);
  color: rgba(35, 32, 24, 0.58);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 900;
  padding-top: 10px;
  text-transform: uppercase;
}

.turn-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.turn-player {
  grid-template-columns: auto minmax(0, 1fr);
}

.turn-player::before {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(35, 32, 24, 0.1);
  border-radius: 50%;
  content: attr(data-turn);
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  width: 30px;
}

.turn-player.is-active {
  background: rgba(223, 243, 232, 0.92);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 121, 128, 0.12);
}

.turn-player.is-active::before {
  background: var(--teal);
  color: #fff;
}

.component-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.component-total {
  background: rgba(35, 32, 24, 0.94);
  border: 2px solid rgba(243, 182, 31, 0.7);
  border-radius: 8px;
  color: #fffdf7;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1;
  margin-top: 16px;
  padding: 16px;
}

.games-section {
  padding-top: 60px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.filter-button {
  background: #fff;
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-radius: 999px;
  color: rgba(35, 32, 24, 0.82);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  max-width: 100%;
  padding: 9px 14px;
  text-align: center;
  white-space: normal;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--gold);
  border-color: var(--gold-deep);
  color: #211602;
  outline: none;
}

.games-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  background: #fff;
  border: 2px solid rgba(35, 32, 24, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(52, 42, 23, 0.11);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.game-card:hover,
.game-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 26px 52px rgba(52, 42, 23, 0.19);
}

.cover-wrap {
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  padding: clamp(10px, 1.4vw, 16px);
  position: relative;
}

.cover-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  height: 100%;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.cover-button::after {
  display: none;
}

.cover-button:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: -4px;
}

.game-card img {
  background: transparent;
  border-radius: 6px;
  height: 100%;
  object-fit: contain;
  transition: transform 240ms ease;
  width: 100%;
}

.game-card:hover img,
.game-card:focus-within img {
  transform: scale(1.04);
}

.game-number {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 900;
  left: 12px;
  padding: 5px 9px;
  position: absolute;
  top: 12px;
  z-index: 1;
}

.game-info {
  border-top: 5px solid var(--accent);
  min-width: 0;
  padding: 18px;
}

.game-info p {
  color: rgba(35, 32, 24, 0.7);
  margin: 10px 0 0;
}

.game-info p:not(.game-kind) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.game-info .game-kind {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.game-info h3 {
  color: #241a0a;
  display: -webkit-box;
  font-size: 1.65rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.mini-action {
  background: var(--paper);
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 900;
  justify-content: center;
  max-width: 100%;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.mini-action:hover,
.mini-action:focus-visible {
  background: var(--gold);
  border-color: var(--gold-deep);
  outline: none;
}

.idea-lab-card .mini-action,
.idea-lab-card .button {
  border-radius: 8px;
  box-shadow: 0 5px 0 rgba(35, 32, 24, 0.1);
  min-height: 40px;
  position: relative;
}

.idea-lab-card .mini-action {
  align-items: center;
  background: #241a0a;
  border-color: #241a0a;
  color: #fffdf7;
  gap: 8px;
  padding: 8px 12px;
}

.idea-lab-card .mini-action::before {
  aspect-ratio: 1;
  background:
    radial-gradient(circle, #241a0a 0 2px, transparent 3px) 7px 7px,
    radial-gradient(circle, #241a0a 0 2px, transparent 3px) 17px 16px,
    var(--gold);
  background-repeat: no-repeat;
  border-radius: 5px;
  content: "";
  flex: 0 0 26px;
  width: 26px;
}

.idea-lab-card .mini-action:hover,
.idea-lab-card .mini-action:focus-visible {
  background: var(--teal);
  border-color: #14575c;
  color: #fff;
}

.tabletopia-link,
.tabletopia-button {
  background: var(--teal);
  border-color: #14575c;
  color: #fff;
}

.tabletopia-link:hover,
.tabletopia-link:focus-visible,
.tabletopia-button:hover,
.tabletopia-button:focus-visible {
  background: #2c98a0;
  color: #fff;
}

.is-disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.62;
}

.is-disabled:hover,
.is-disabled:focus-visible {
  transform: none;
}

.reel-section {
  background: rgba(35, 32, 24, 0.92);
  border-bottom: 3px solid var(--gold);
  border-top: 3px solid var(--gold);
  margin: 34px 0;
  max-width: none;
  overflow: hidden;
  padding: 18px 0;
  width: 100%;
}

.reel-track {
  animation: reel 44s linear infinite;
  display: flex;
  gap: 14px;
  width: max-content;
}

.reel-track:hover {
  animation-play-state: paused;
}

.reel-item {
  border: 2px solid rgba(255, 253, 247, 0.22);
  border-radius: 8px;
  height: 180px;
  overflow: hidden;
  width: 180px;
}

.reel-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@keyframes reel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.contact-section {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 40px;
}

.contact-section h2 {
  color: #241a0a;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  max-width: 780px;
}

.contact-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.social-link {
  align-items: center;
  background: #fff;
  border: 2px solid rgba(35, 32, 24, 0.14);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 12px 6px 7px;
  text-decoration: none;
}

.social-link span {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: #211602;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.social-link svg {
  height: 17px;
  width: 17px;
}

.social-link strong {
  font-size: 0.86rem;
  min-width: 0;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  outline: none;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 22px;
}

.site-footer img {
  background: transparent;
  border-radius: 0;
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.site-footer span {
  color: var(--gold);
  font-weight: 900;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

.card-section {
  align-items: start;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  padding-top: 0;
}

.card-section h2 {
  color: #241a0a;
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 660px;
}

.card-copy {
  background:
    linear-gradient(135deg, rgba(35, 32, 24, 0.96), rgba(31, 121, 128, 0.9)),
    linear-gradient(90deg, rgba(255, 253, 247, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 247, 0.08) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  border: 2px solid rgba(243, 182, 31, 0.7);
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(35, 32, 24, 0.18);
  color: rgba(255, 253, 247, 0.86);
  padding: clamp(18px, 2.6vw, 28px);
}

.card-copy p {
  margin-top: 0;
}

.card-rules {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.card-rules span {
  background: rgba(255, 253, 247, 0.11);
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 8px;
  color: #fffdf7;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 52px;
  padding: 10px;
  text-transform: uppercase;
}

.card-game-gallery {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.card-game-track-shell {
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.card-game-track {
  --card-game-index: 0;
  display: flex;
  transform: translateX(calc(var(--card-game-index) * -100%));
  transition: transform 260ms ease;
}

.card-game-tile {
  align-items: stretch;
  background: rgba(255, 253, 247, 0.94);
  color: var(--ink);
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr);
  min-width: 0;
}

.card-game-image {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(35, 32, 24, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(35, 32, 24, 0.07) 1px, transparent 1px),
    #fff8e1;
  background-size: 18px 18px;
  display: flex;
  justify-content: center;
  min-height: 160px;
  padding: 12px;
}

.card-game-image img {
  border-radius: 8px;
  height: 150px;
  object-fit: contain;
  width: 100%;
}

.card-game-copy {
  align-content: center;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.card-game-copy .eyebrow,
.card-game-copy h3,
.card-game-copy p {
  margin: 0;
}

.card-game-copy h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.card-game-copy p:not(.eyebrow) {
  color: rgba(35, 32, 24, 0.72);
  font-size: 0.94rem;
}

.card-game-rules {
  color: rgba(35, 32, 24, 0.76);
  display: grid;
  font-size: 0.84rem;
  gap: 6px;
  line-height: 1.38;
  margin: 2px 0 0;
  padding-left: 1.1rem;
}

.card-game-rules li::marker {
  color: var(--rust);
  font-weight: 900;
}

.card-game-link {
  justify-self: start;
  margin-top: 4px;
}

.card-game-controls {
  align-items: center;
  color: #fffdf7;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.card-game-controls .icon-button {
  background: rgba(255, 253, 247, 0.94);
  color: var(--ink);
  height: 38px;
  width: 38px;
}

.card-game-controls span {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 900;
  min-width: 48px;
  text-align: center;
}

.modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-scrim {
  background: rgba(35, 32, 24, 0.68);
  inset: 0;
  position: absolute;
}

.modal-panel {
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1fr);
  max-height: min(820px, calc(100svh - 48px));
  max-width: 1140px;
  overflow: hidden;
  position: relative;
  width: min(100%, 1140px);
  z-index: 1;
}

.close-button {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.modal-art {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  min-height: 540px;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px);
  position: relative;
}

.modal-art img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.modal-image-button {
  background: rgba(255, 253, 247, 0.9);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.modal-image-button:hover,
.modal-image-button:focus-visible {
  transform: translateY(calc(-50% - 2px));
}

.modal-image-button.previous {
  left: 14px;
}

.modal-image-button.next {
  right: 14px;
}

.modal-image-button[hidden],
.modal-image-dots[hidden] {
  display: none;
}

.modal-image-dots {
  align-items: center;
  background: rgba(35, 32, 24, 0.52);
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 999px;
  bottom: 14px;
  display: flex;
  gap: 7px;
  left: 50%;
  padding: 8px 10px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.modal-image-dot {
  background: rgba(255, 253, 247, 0.54);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 9px;
  padding: 0;
  transition: background 160ms ease, width 160ms ease;
  width: 9px;
}

.modal-image-dot.is-active {
  background: var(--gold);
  width: 24px;
}

.modal-copy {
  overflow-y: auto;
  padding: 54px 34px 34px;
}

.modal-copy h2 {
  color: #241a0a;
  font-size: 3rem;
}

.modal-copy p {
  color: rgba(35, 32, 24, 0.78);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.detail-row {
  border-top: 1px solid rgba(35, 32, 24, 0.12);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding-top: 10px;
}

.detail-row span:first-child {
  color: rgba(35, 32, 24, 0.58);
  font-weight: 900;
}

.detail-row span:last-child {
  color: var(--ink);
  font-weight: 900;
  min-width: 0;
  text-align: right;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.modal-actions > * {
  min-width: 0;
}

@media (max-width: 980px) {
  :root {
    --header-height: 86px;
  }

  .brand-link {
    height: 62px;
  }

  .brand-link img {
    height: 58px;
    width: auto;
  }

  .hero-logo-panel {
    width: 108px;
  }

  .hero-wordmark {
    width: min(460px, calc(100vw - 160px));
  }

  .about-section,
  .idea-lab-board,
  .card-section,
  .toolkit-grid,
  .card-builder-grid,
  .shortlist-panel,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .hero-table-row {
    grid-template-columns: 1fr;
  }

  .showcase-panel {
    height: 430px;
    justify-self: stretch;
    max-width: none;
    padding: 12px;
  }

  .showcase-panel-top {
    padding-right: 74px;
  }

  .showcase-panel-top span {
    display: none;
  }

  .hero-showcase {
    gap: 8px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    justify-self: stretch;
    max-width: none;
  }

  .icon-button {
    height: 34px;
    width: 34px;
  }

  .hero-logo {
    height: auto;
  }

  .studio-ledger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .box-frame {
    height: 100%;
    min-height: 0;
  }

  .box-frame img {
    height: 318px;
    max-height: calc(100% - 52px);
  }

  .spotlight-strip {
    grid-auto-columns: minmax(106px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idea-lab-card::before {
    display: none;
  }

  .idea-lab-toolbar {
    padding-right: 0;
  }

  .idea-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idea-lab-card .idea-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shortlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    align-items: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .modal-panel {
    overflow-y: auto;
  }

  .modal-art {
    min-height: 360px;
  }

  .generated-card {
    justify-self: center;
    max-width: 320px;
    width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 112px;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 9px 12px;
  }

  .brand-link {
    height: 46px;
    max-width: none;
    padding: 0;
  }

  .brand-link img {
    height: 46px;
    width: auto;
  }

  .site-nav a::before,
  .hero::after {
    display: none;
  }

  .site-nav {
    flex: 1 0 100%;
    gap: 2px;
    justify-content: flex-start;
    order: 2;
    overflow-x: auto;
  }

  .site-nav a {
    font-size: 0.76rem;
    padding: 7px 8px;
  }

  .hero {
    padding: calc(var(--header-height) + 18px) 16px 16px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-table-row {
    grid-template-columns: 1fr;
  }

  .studio-console {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .studio-console span + span {
    border-left: 0;
    padding-left: 0;
  }

  .hero-logo-panel {
    width: 88px;
  }

  .hero-wordmark {
    max-width: 100%;
    width: min(330px, 100%);
  }

  .hero-logo {
    height: auto;
  }

  .studio-meta span {
    font-size: 0.68rem;
    min-width: 0;
  }

  .hero-deck {
    font-size: 1rem;
  }

  .studio-ledger {
    grid-template-columns: 1fr;
  }

  .studio-ledger span {
    min-height: 68px;
  }

  .quest-panel h2 {
    font-size: 1.65rem;
  }

  .showcase-panel {
    height: 380px;
    padding: 12px;
  }

  .showcase-panel::after {
    display: none;
  }

  .showcase-panel-top {
    padding-right: 0;
  }

  .showcase-panel-top span {
    display: none;
  }

  .hero-showcase {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .icon-button {
    height: 40px;
    width: 40px;
  }

  .box-frame {
    height: 100%;
    min-height: 0;
  }

  .box-frame img {
    height: 280px;
    max-height: calc(100% - 52px);
  }

  .about-section,
  .games-section,
  .contact-section,
  .idea-lab-section,
  .card-section,
  .toolkit-section,
  .board-path-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-section,
  .games-section,
  .idea-lab-section,
  .toolkit-section,
  .card-section,
  .contact-section {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .studio-stats,
  .games-grid,
  .toolkit-grid,
  .tool-form-grid,
  .card-builder-grid,
  .idea-options,
  .idea-stat-grid,
  .shortlist-grid {
    grid-template-columns: 1fr;
  }

  .card-game-tile {
    grid-template-columns: 1fr;
  }

  .card-game-image {
    min-height: 140px;
  }

  .card-game-image img {
    height: 132px;
  }

  .idea-lab-card {
    box-shadow: 0 14px 0 rgba(243, 182, 31, 0.2), 0 24px 50px rgba(52, 42, 23, 0.14);
    padding: 12px;
  }

  .idea-card-intro {
    padding-right: 0;
  }

  .idea-card-intro h2 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .idea-lab-card .project-forge,
  .idea-lab-card .idea-panel {
    min-height: 282px;
  }

  .idea-lab-card .project-forge {
    max-height: none;
  }

  .idea-lab-card .project-forge h3 {
    margin-right: 0;
  }

  .idea-lab-card .name-forge-card {
    min-height: 150px;
  }

  .idea-lab-card .idea-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }

  .idea-controls .mini-action {
    flex: 1;
    min-width: 0;
  }

  .idea-lab-toolbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .idea-lab-toolbar h3 {
    font-size: 1.35rem;
  }

  .idea-name-badge strong {
    font-size: clamp(1.45rem, 8vw, 2.35rem);
  }

  .idea-lab-actions {
    justify-content: flex-start;
  }

  .idea-lab-card .shortlist-panel {
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  }

  .idea-panel-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .idea-panel-top .mini-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .idea-lab-card .idea-panel-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .idea-lab-card .idea-panel-top .mini-action {
    grid-column: auto;
    justify-self: end;
  }

  .idea-lab-card .idea-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .idea-lab-card .idea-result-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .project-forge h3 {
    margin-right: 0;
  }

  .idea-result-row {
    grid-template-columns: 1fr;
  }

  .board-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-path::before {
    display: none;
  }

  .board-path span {
    max-width: 116px;
  }

  .game-card {
    grid-template-rows: auto 1fr;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100svh - 24px);
  }

  .modal-art {
    min-height: 300px;
  }

  .component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-copy {
    padding: 44px 20px 22px;
  }

  .modal-copy h2 {
    font-size: 2.35rem;
  }

  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .detail-row span:last-child {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .idea-lab-card .idea-result-grid {
    grid-template-columns: 1fr;
  }

  .idea-lab-card .idea-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 116px;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-bottom: 8px;
  }

  .brand-link {
    max-width: none;
  }

  .site-nav {
    flex: 1 0 100%;
    gap: 4px;
    justify-content: space-between;
    order: 2;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .hero {
    padding-top: calc(var(--header-height) + 16px);
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 8px);
  }

  .modal-actions .button,
  .modal-actions .mini-action {
    flex: 1 1 100%;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
  }

  html,
  body {
    overflow-x: clip;
  }

  .site-header {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    height: var(--header-height);
    min-height: 0;
    overflow: visible;
    padding: 9px 12px;
  }

  .brand-link {
    height: 52px;
    max-width: none;
    padding: 0;
  }

  .brand-link img {
    height: 52px;
    width: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    border-radius: 18px;
    display: grid;
    flex: none;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: initial;
    left: 12px;
    max-height: calc(100svh - var(--header-height) - 20px);
    opacity: 0;
    order: initial;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    pointer-events: none;
    position: fixed;
    right: 12px;
    top: calc(var(--header-height) + 8px);
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, transform 160ms ease;
    visibility: hidden;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .site-nav a {
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.14;
    min-height: 42px;
    padding: 10px 12px;
    white-space: normal;
    width: 100%;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    box-shadow: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 18px);
  }
}

@media (max-width: 420px) {
  .idea-lab-card .idea-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
