:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #64615b;
  --paper: #fffaf0;
  --line: rgba(23, 23, 23, 0.12);
  --black: #090909;
  --soft: #f4eadc;
  --font-display: "Cooper Black", "Georgia", serif;
  --font-ui: "Avenir Next", "Trebuchet MS", sans-serif;
  --shadow: 0 24px 60px rgba(28, 25, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 90, 122, 0.10), transparent 34%),
    linear-gradient(245deg, rgba(56, 189, 248, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f3f7f6 58%, #e5eef0 100%);
  font: 15px/1.42 var(--font-ui);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.concept-shell {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.concept-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.lab-nav {
  position: fixed;
  z-index: 80;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  width: min(520px, calc(100% - 20px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(23, 23, 23, 0.10);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.lab-nav a,
.lab-nav span,
.lab-nav small {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.lab-nav a {
  background: #18181b;
  color: white;
}

.lab-nav span {
  background: #ffd84d;
  color: #18181b;
}

.lab-nav small {
  background: rgba(24, 24, 27, 0.08);
  color: #57534e;
  text-transform: uppercase;
}

.hub-mode {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.4fr);
  gap: 20px;
  padding: 18px;
}

.hub-hero {
  position: sticky;
  top: 18px;
  min-height: calc(100dvh - 36px);
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hub-hero h1 {
  max-width: 8ch;
  font-size: clamp(52px, 8vw, 116px);
}

.hub-hero p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow,
.meta-line,
.concept-title span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-stats span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.08);
  font-weight: 850;
}

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

.concept-tile {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 32px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent), white 26%), transparent 34%),
    linear-gradient(145deg, #fff, color-mix(in srgb, var(--accent), white 82%));
  color: #171717;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, filter 160ms ease;
}

.concept-tile:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
}

.concept-tile strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.concept-tile span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.concept-tile p {
  color: rgba(23, 23, 23, 0.68);
}

.concept-screen {
  min-height: 100dvh;
  padding: 56px 14px 16px;
}

.concept-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  max-width: 740px;
  margin: 0 auto 14px;
}

.concept-title h1 {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.concept-title p {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  max-width: 560px;
}

.game-stats {
  position: relative;
  max-width: 760px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(23, 23, 23, 0.10);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.game-stats div {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.06);
}

.game-stats span {
  color: #68635d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-stats strong {
  min-width: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.game-stats > i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  width: var(--pct);
  height: 5px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent), #111 28%));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent), transparent 22%);
}

.game-loop-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto auto auto;
  gap: 9px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(23, 23, 23, 0.10);
  border-radius: 28px;
  background: color-mix(in srgb, var(--tg-theme-bg-color, #fff), white 68%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(18px);
}

.loop-orbit {
  min-height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent), white 8%) 0 20%, transparent 21%),
    conic-gradient(from 0deg, var(--accent), #111827, #38bdf8, var(--accent));
}

.loop-orbit span {
  grid-area: 1 / 1;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.72);
  animation: loopPulse 2.8s ease-in-out infinite;
}

.loop-orbit span:nth-child(2) {
  width: 30px;
  animation-delay: 320ms;
}

.loop-orbit span:nth-child(3) {
  width: 14px;
  background: #fff;
  animation-delay: 640ms;
}

.loop-copy,
.loop-pill {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.loop-copy span,
.loop-pill span,
.win-label,
.loot-marquee span,
.card-rarity,
.rarity-badge,
.boss-meter span,
.mission-criteria strong {
  color: #6b635c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loop-copy strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.12;
}

.loop-copy p,
.loop-pill strong {
  color: #57534e;
  font-size: 12px;
}

.loop-pill {
  width: min(170px, 21vw);
  align-content: center;
}

.loop-pill.live {
  background: color-mix(in srgb, var(--accent), white 76%);
}

.loop-pill strong {
  color: #171717;
  font-weight: 950;
}

@keyframes loopPulse {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.card-preview {
  max-width: 760px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.preview-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.preview-track::-webkit-scrollbar {
  display: none;
}

.card-preview button {
  border: 1px solid rgba(23, 23, 23, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #171717;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.10);
}

.card-step {
  min-width: 74px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
}

.preview-track button {
  flex: 0 0 150px;
  min-height: 56px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  scroll-snap-align: start;
  text-align: left;
}

.preview-track button.active {
  background: #111;
  color: #fff;
}

.preview-track span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-size: 11px;
  font-weight: 950;
}

.preview-track strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.08;
}

.concept-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.concept-card h2 {
  font-family: var(--font-ui);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.concept-card p,
.concept-card button {
  overflow-wrap: anywhere;
}

.visual-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #d6d3d1;
}

.visual-box img,
.visual-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.visual-box.has-media {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 32%),
    #0d0d0f;
}

.visual-box.has-media img,
.visual-box.has-media video {
  object-fit: contain;
}

.visual-art {
  min-height: 180px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 24%),
    radial-gradient(circle at 80% 62%, color-mix(in srgb, var(--card-accent), white 20%), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent), #fff 12%), #171717);
}

.visual-art.no-media {
  min-height: 72px;
  border: 1px solid color-mix(in srgb, var(--card-accent), white 52%);
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--card-accent), white 28%), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent), white 82%), #fffaf0);
}

.visual-art.no-media i {
  opacity: 0.18;
}

.reel-visual.no-media,
.deck-visual.no-media,
.story-visual.no-media,
.mag-cover.no-media,
.command-visual.no-media,
.split-visual.no-media,
.mission-visual.no-media,
.album-art.no-media,
.sports-visual.no-media,
.shop-visual.no-media,
.arcade-visual.no-media {
  height: auto;
  min-height: 78px;
}

.visual-art i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.visual-art i:nth-child(1) {
  width: 42%;
  aspect-ratio: 1;
  left: -8%;
  top: 10%;
}

.visual-art i:nth-child(2) {
  width: 54%;
  aspect-ratio: 1;
  right: -12%;
  bottom: -8%;
}

.visual-art i:nth-child(3) {
  width: 34%;
  aspect-ratio: 1;
  right: 22%;
  top: 30%;
  background: rgba(0, 0, 0, 0.14);
}

.visual-art span {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: #171717;
  font-weight: 950;
  font-size: 12px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: #57534e;
}

.meta-line span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--card-accent);
  color: #111;
}

.action-bar {
  display: grid;
  gap: 8px;
}

.primary-action,
.mega-button,
.action-bar button,
.mini-actions button {
  border: 0;
  border-radius: 999px;
  font-weight: 950;
}

.primary-action {
  min-height: 52px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), #000 32%));
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.agent-buttons,
.utility-buttons,
.mini-actions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.agent-buttons::-webkit-scrollbar,
.utility-buttons::-webkit-scrollbar,
.mini-actions::-webkit-scrollbar {
  display: none;
}

.agent-buttons button,
.utility-buttons button,
.mini-actions button {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(23, 23, 23, 0.10);
  background: rgba(255, 255, 255, 0.72);
}

.agent-buttons {
  display: grid;
  grid-template-columns: 1fr;
}

.agent-buttons button {
  white-space: normal;
  line-height: 1.12;
}

.agent-buttons .primary-action {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), #000 32%));
  color: #fff;
}

.agent-buttons button:not(.primary-action) {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.82);
}

.utility-buttons button {
  min-height: 40px;
  background: rgba(17, 17, 17, 0.06);
  color: #312e2a;
}

.story-stage .utility-buttons button,
.arcade-shell .utility-buttons button,
.command-main .utility-buttons button,
.terminal-shell .utility-buttons button,
.playlist-shell .utility-buttons button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.mini-actions button:first-child {
  background: #111;
  color: #fff;
}

.block-list {
  display: grid;
  gap: 8px;
}

.block-list section {
  padding: 12px;
  border-radius: 18px;
  background: rgba(23, 23, 23, 0.06);
}

.block-list strong {
  display: block;
  margin-bottom: 3px;
}

.block-list p {
  color: var(--muted);
}

.reel-stream {
  height: calc(100dvh - 118px);
  min-height: 620px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  display: grid;
  gap: 16px;
  max-width: 430px;
  margin: 0 auto;
}

.phone-reel {
  min-height: min(720px, calc(100dvh - 132px));
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  padding: 13px;
  border-radius: 36px;
  background: #fff;
  scroll-snap-align: start;
}

.phone-reel.no-visual-card {
  min-height: auto;
  grid-template-rows: auto auto auto;
}

.reel-visual {
  height: clamp(230px, 42dvh, 430px);
  min-height: 0;
}

.phone-reel.no-visual-card .reel-visual {
  display: none;
}

.overview-reel {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overview-list button {
  min-height: 86px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(23, 23, 23, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.overview-list button.active {
  background: #111;
  color: #fff;
}

.overview-list span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-weight: 950;
}

.overview-list strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.1;
}

.overview-list small {
  grid-column: 2;
  color: currentColor;
  opacity: 0.62;
}

.overview-detail {
  height: auto;
  min-height: 0;
}

.reel-copy {
  display: grid;
  gap: 8px;
}

.reel-copy h2 {
  font-size: clamp(27px, 7.2vw, 36px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.reel-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.reel-copy p,
.social-post p,
.story-stage p,
.swipe-card p,
.pin p,
.mail-detail p,
.command-main p,
.magazine p,
.gallery-caption p {
  color: var(--muted);
}

.timeline-shell {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.social-post {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  background: #ffffff;
}

.avatar {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 950;
}

.social-post header {
  display: flex;
  gap: 7px;
  color: #71717a;
}

.social-post h2 {
  margin: 4px 0 7px;
  font-size: 26px;
  font-family: var(--font-ui);
  letter-spacing: -0.03em;
}

.post-media {
  height: 210px;
  margin: 10px 0;
}

.post-media.no-media {
  display: none;
}

.deck-visual.no-media,
.pin-visual.no-media,
.mag-cover.no-media,
.split-visual.no-media,
.command-visual.no-media,
.album-art.no-media,
.shop-visual.no-media {
  display: none;
}

.inline-actions .primary-action {
  min-height: 48px;
}

.story-layout {
  max-width: 470px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.story-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.story-strip button {
  flex: 0 0 84px;
  display: grid;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.story-strip button.active .visual-box {
  outline: 4px solid var(--accent);
}

.story-thumb {
  height: 94px;
  border-radius: 24px;
}

.story-stage {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 38px;
  background: #111;
  color: #fff;
}

.story-visual {
  height: 52vh;
}

.story-stage section {
  display: grid;
  gap: 9px;
}

.story-stage p,
.story-stage .meta-line {
  color: rgba(255, 255, 255, 0.74);
}

.deck-shell {
  position: relative;
  max-width: 420px;
  height: min(760px, calc(100dvh - 190px));
  min-height: 560px;
  margin: 0 auto;
  touch-action: pan-y;
}

.swipe-card {
  position: absolute;
  z-index: var(--z, 1);
  inset: 94px 0 132px;
  display: grid;
  grid-template-rows: minmax(150px, 42%) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 38px;
  background: white;
  overflow: hidden;
  opacity: calc(1 - var(--stack) * 0.16);
  transform: translateY(calc(var(--stack) * 12px)) scale(calc(1 - var(--stack) * 0.035));
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.swipe-card:not([data-swipe-card="1"]) {
  pointer-events: none;
}

.swipe-card:not([data-swipe-card="1"]) section,
.swipe-card:not([data-swipe-card="1"]) .deck-visual,
.swipe-card:not([data-swipe-card="1"]) .card-rarity {
  opacity: 0;
}

.swipe-card.swiping {
  cursor: grabbing;
  transition: none;
}

.swipe-card[data-intent="start"] {
  box-shadow: 0 34px 110px rgba(34, 197, 94, 0.32);
}

.swipe-card[data-intent="skip"] {
  box-shadow: 0 34px 110px rgba(239, 68, 68, 0.30);
  filter: saturate(0.7);
}

.deck-visual {
  min-height: 0;
}

.swipe-card section {
  display: grid;
  gap: 8px;
  min-height: 0;
  align-content: start;
  overflow: hidden;
}

.swipe-card h2 {
  font-size: 28px;
}

.swipe-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deck-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.deck-actions .agent-buttons {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.deck-actions .utility-buttons {
  justify-content: center;
}

.deck-swipe-cues {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.deck-swipe-cues span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.deck-swipe-cues span:last-child {
  text-align: right;
  color: #bbf7d0;
}

.deck-swipe-cues span:first-child {
  color: #fecaca;
}

.deck-swipe-cues strong {
  color: #fff;
  font-size: 11px;
}

.pin-board {
  column-count: 2;
  column-gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}

.pin {
  break-inside: avoid;
  display: grid;
  gap: 9px;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 26px;
  background: white;
}

.pin-visual {
  height: 150px;
}

.pin-1 .pin-visual,
.pin-4 .pin-visual {
  height: 230px;
}

.pin h2 {
  font-size: 24px;
  font-family: var(--font-ui);
  letter-spacing: -0.04em;
}

.wallet-stack {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.wallet-pass {
  display: grid;
  gap: 12px;
  min-height: 186px;
  margin-top: calc(var(--i) * -18px);
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), white 72%), #fff);
  transform: rotate(calc((var(--i) - 2) * 0.8deg));
}

.wallet-pass h2 {
  font-size: 30px;
}

.chat-shell {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.chat-thread {
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 88%;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 26px;
  background: #fff;
}

.user-bubble {
  justify-self: end;
  background: #111;
  color: white;
}

.bubble h2 {
  font-size: 24px;
  font-family: var(--font-ui);
  letter-spacing: -0.04em;
}

.bubble span {
  color: #8b8780;
  font-size: 12px;
  font-weight: 850;
}

.chat-composer {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.chat-composer > button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: white;
  font-weight: 950;
}

.kanban-board,
.crm-pipeline,
.roadmap-shell {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.kanban-board section,
.crm-pipeline section,
.roadmap-shell section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 560px;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
}

.kanban-board h2,
.crm-pipeline h2,
.roadmap-shell h2 {
  font-size: 26px;
}

.lane-card,
.crm-card,
.road-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-radius: 22px;
  background: white;
}

.mail-app {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
}

.mail-app aside {
  display: grid;
  gap: 8px;
}

.mail-app aside button {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
}

.mail-app aside button.active {
  background: #111;
  color: #fff;
}

.mail-detail {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border-radius: 34px;
  background: #fff;
}

.mail-detail h2 {
  font-size: 44px;
}

.command-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card,
.command-main,
.command-queue {
  padding: 16px;
  border-radius: 28px;
  background: #111;
  color: #fff;
}

.stat-card {
  display: grid;
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 54px;
}

.command-main {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.command-visual {
  min-height: 260px;
}

.command-queue {
  display: grid;
  gap: 8px;
}

.command-queue button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: white;
  text-align: left;
}

.magazine {
  max-width: 500px;
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 54% auto;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
}

.mag-cover {
  min-height: 380px;
  border-radius: 6px;
}

.magazine h2 {
  font-size: 48px;
}

.gallery-layout {
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-grid button {
  border: 0;
  background: transparent;
  padding: 0;
}

.gallery-thumb {
  height: 118px;
  border-radius: 16px;
}

.gallery-caption {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
}

.checklist-shell,
.compact-list,
.linear-list,
.table-shell,
.forum-feed {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.check-row,
.compact-row,
.linear-row,
.table-row,
.forum-post {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 24px;
  background: #fff;
}

.check-row > button:first-child,
.compact-row span,
.forum-post aside,
.quest-step span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  font-weight: 950;
}

.check-row > button:last-child,
.linear-row button,
.table-row button,
.quest-step button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  font-weight: 950;
}

.calendar-shell {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.time-block {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 26px;
  background: #fff;
}

.time-block time {
  color: var(--muted);
  font-weight: 950;
}

.arcade-shell {
  max-width: 450px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 36px;
  background: #111;
  color: #fff;
}

.slot-window {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 26px;
  background: #fff;
  color: #111;
}

.slot-window span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fef3c7;
  font-weight: 950;
}

.arcade-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.arcade-visual {
  min-height: 220px;
}

.split-shell,
.mission-shell,
.proof-shell {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 36px;
  background: #fff;
}

.split-visual,
.mission-visual {
  min-height: 520px;
}

.split-shell section,
.mission-shell section,
.proof-shell section {
  display: grid;
  align-content: center;
  gap: 14px;
}

.split-shell h2,
.mission-shell h2,
.proof-shell h2 {
  font-size: 44px;
}

.paper-stack {
  position: relative;
  max-width: 460px;
  min-height: 640px;
  margin: 0 auto;
}

.paper-card {
  position: absolute;
  inset: calc(var(--i) * 34px) 0 auto;
  display: grid;
  gap: 10px;
  min-height: 270px;
  padding: 24px;
  border-radius: 30px;
  background: #fffef7;
  transform: rotate(calc((var(--i) - 2) * 1.2deg));
}

.voice-shell,
.focus-shell,
.one-button-shell,
.letter-shell,
.concierge-shell,
.habit-shell,
.sports-shell,
.coach-shell,
.doc-shell,
.brief-shell,
.receipt-shell,
.terminal-shell {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 36px;
  background: #fff;
}

.wave {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 28px;
  background: #111;
}

.wave i {
  width: 10px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent);
}

.wave i:nth-child(2),
.wave i:nth-child(5) {
  height: 82px;
}

.wave i:nth-child(3) {
  height: 104px;
}

.voice-giant,
.mega-button {
  min-height: 68px;
  border: 0;
  border-radius: 28px;
  background: #111;
  color: #fff;
  font-weight: 950;
}

.table-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 76px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 900;
}

.coach-advice,
.brief-lines {
  padding: 18px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--accent), white 72%);
}

.doc-shell {
  background: #fbfbfb;
  border-radius: 12px;
}

.forum-post {
  grid-template-columns: 56px minmax(0, 1fr);
}

.forum-post aside {
  align-self: start;
  height: 64px;
  display: grid;
  gap: 0;
}

.playlist-shell {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 38px;
  background: #0f172a;
  color: white;
}

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

.playlist-shell ol {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style-position: inside;
}

.playlist-shell li button {
  width: calc(100% - 28px);
  border: 0;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: left;
}

.quest-ladder,
.shop-shelf,
.team-room,
.auction-room,
.tile-os {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quest-step,
.shop-card,
.person-card,
.bid-card,
.os-tile {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 28px;
  background: #fff;
}

.shop-visual {
  min-height: 180px;
}

.broadcast-shell,
.launch-shell,
.splitdeck-shell,
.draft-studio {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
}

.dispatch,
.launch-shell section,
.splitdeck-shell section,
.draft-studio aside,
.draft-studio section {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 32px;
  background: #fff;
}

.broadcast-shell aside,
.launch-shell ol,
.splitdeck-shell .action-bar,
.draft-studio .action-bar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-radius: 28px;
  background: #111;
  color: white;
}

.broadcast-shell aside button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #111;
  font-weight: 950;
}

.shelves {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.shelves section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 28px;
  background: #fff;
}

.shelves section div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.shelves button {
  flex: 0 0 170px;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffaf0;
  text-align: left;
  padding: 10px;
  font-weight: 850;
}

.receipt-shell {
  font-family: "Courier New", monospace;
  border-radius: 0;
  background: #fffdf2;
}

.receipt-shell h2,
.receipt-shell .primary-action {
  font-family: var(--font-ui);
}

.terminal-shell {
  background: #050505;
  color: #d9f99d;
}

.terminal-shell pre {
  white-space: pre-wrap;
  margin: 0;
  font: 14px/1.45 "SFMono-Regular", Consolas, monospace;
}

.comic-strip {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.comic-strip section {
  min-height: 280px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 4px solid #111;
  border-radius: 12px;
  background: #fff;
}

.comic-strip .action-bar {
  grid-column: 1 / -1;
}

.rings,
.stats {
  display: flex;
  gap: 8px;
}

.rings span,
.stats span {
  flex: 1;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: color-mix(in srgb, var(--accent), white 72%);
  font-weight: 950;
}

.sports-visual {
  min-height: 260px;
}

.orbit {
  border-radius: 50%;
  background: #050505;
}

.os-tile {
  border: 0;
  min-height: 130px;
  text-align: left;
  font-weight: 950;
}

.os-tile span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
}

.concept-1 {
  background:
    linear-gradient(90deg, rgba(255, 90, 122, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 90, 122, 0.10) 1px, transparent 1px),
    linear-gradient(135deg, #fff7f1, #effdf7 70%, #eef6ff);
  background-size: 30px 30px, 30px 30px, auto;
}

.concept-1 .quest-ladder {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.concept-1 .quest-ladder::before {
  content: "";
  position: absolute;
  inset: 96px 48px 60px;
  border-left: 4px dashed rgba(255, 90, 122, 0.36);
  border-bottom: 4px dashed rgba(255, 90, 122, 0.24);
  border-radius: 36px;
  pointer-events: none;
}

.quest-boss {
  grid-column: 1 / -1;
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 2px solid rgba(255, 90, 122, 0.24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 90, 122, 0.20), transparent 24%),
    #111827;
  color: #fff;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.22);
}

.quest-boss span,
.quest-boss p {
  color: rgba(255, 255, 255, 0.72);
}

.quest-boss strong {
  font-size: 30px;
  line-height: 1;
}

.concept-1 .quest-step {
  position: relative;
  min-height: 150px;
  border: 2px solid rgba(255, 90, 122, 0.14);
  transform: translateY(calc((var(--i, 0)) * 1px));
}

.concept-1 .quest-step.claimed {
  border-color: rgba(34, 197, 94, 0.34);
  background: #f0fdf4;
}

.concept-1 .quest-step:nth-child(odd) {
  transform: translateY(18px);
}

.concept-2 {
  background:
    radial-gradient(circle at 50% -10%, rgba(251, 191, 36, 0.18), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(34, 197, 94, 0.12), transparent 22%),
    linear-gradient(180deg, #111114 0%, #070709 58%, #020203 100%);
  color: #f8fafc;
}

.concept-2 .concept-title p,
.concept-2 .reel-copy p,
.concept-2 .meta-line {
  color: rgba(248, 250, 252, 0.68);
}

.concept-2 .phone-reel,
.concept-10 .phone-reel {
  background: #0f0f12;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.10);
}

.concept-2 .boss-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: center;
  margin: 0 auto 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  backdrop-filter: blur(18px);
}

.concept-2 .boss-meter div {
  min-width: 0;
}

.concept-2 .boss-meter span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.concept-2 .boss-meter strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-meter p {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.boss-meter i {
  display: block;
  width: var(--hp);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #facc15);
}

.boss-meter em {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.concept-2 .swipe-card {
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #fbfbfb;
  color: #101114;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.concept-2 .swipe-card p,
.concept-2 .swipe-card .meta-line {
  color: rgba(17, 24, 39, 0.72);
}

.concept-2 .deck-visual {
  opacity: 1;
}

.concept-2 .agent-buttons button:not(.primary-action) {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.card-rarity,
.rarity-badge {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), white 18%);
  color: #111827;
}

.concept-2 .utility-buttons button,
.concept-10 .utility-buttons button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.concept-2 .concept-title {
  display: none;
}

.boss-lab-nav {
  opacity: 0;
  transform: translate(-50%, -72px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.boss-lab-nav:focus-within,
.boss-lab-nav:hover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.concept-2 .deck-shell {
  width: min(430px, calc(100vw - 24px));
  height: min(790px, calc(100dvh - 20px));
  min-height: 600px;
  padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
}

.concept-2 .deck-swipe-cues {
  width: 100%;
  margin: 0 auto 10px;
  grid-template-columns: 1fr auto 1fr;
}

.concept-2 .deck-swipe-cues span,
.concept-2 .deck-swipe-cues strong {
  min-height: 34px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: none;
}

.concept-2 .deck-swipe-cues strong {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 780;
}

.concept-2 .swipe-card {
  inset: 76px 0 156px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 32px;
}

.concept-2 .swipe-card:not([data-swipe-card="1"]) {
  opacity: 0.16;
  filter: blur(0.4px);
}

.concept-2 .swipe-card:not([data-swipe-card="1"]) .boss-card-head,
.concept-2 .swipe-card:not([data-swipe-card="1"]) .boss-card-copy,
.concept-2 .swipe-card:not([data-swipe-card="1"]) .deck-visual,
.concept-2 .swipe-card:not([data-swipe-card="1"]) .swipe-intent {
  opacity: 0;
}

.boss-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.boss-card-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.boss-card-head small {
  color: #71717a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.boss-card-head strong {
  overflow: hidden;
  color: #18181b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-card-head b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.concept-2 .deck-visual {
  flex: 0 0 auto;
  height: clamp(150px, 28dvh, 238px);
  min-height: 0;
  border-radius: 24px;
  background: #111;
}

.concept-2 .swipe-card.no-media-card .boss-card-copy {
  margin-top: auto;
  margin-bottom: auto;
}

.boss-card-copy {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.boss-card-copy h2 {
  color: #09090b;
  font-family: var(--font-ui);
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.boss-card-copy p {
  display: block;
  color: #52525b;
  font-size: 14px;
  line-height: 1.32;
  overflow: visible;
}

.concept-2 .swipe-card.no-media-card .boss-card-copy p {
  font-size: 15px;
}

.lane-note {
  max-width: 44ch;
  padding: 9px 11px;
  border-radius: 16px;
  background: #ecfdf5;
  color: #166534 !important;
  font-size: 12px !important;
  font-weight: 750;
  line-height: 1.25 !important;
}

.boss-proof {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.boss-proof details {
  border: 1px solid rgba(9, 9, 11, 0.08);
  border-radius: 15px;
  background: #f4f4f5;
}

.boss-proof summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #27272a;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.boss-proof p {
  padding: 0 12px 12px;
  font-size: 13px;
}

.swipe-intent {
  position: absolute;
  z-index: 2;
  top: 76px;
  display: block;
  opacity: 0.38;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(var(--intent-rot));
}

.swipe-intent.left {
  left: 18px;
  color: #ef4444;
  --intent-rot: -10deg;
}

.swipe-intent.right {
  right: 18px;
  color: #16a34a;
  --intent-rot: 10deg;
}

.swipe-card[data-intent="skip"] .swipe-intent.left,
.swipe-card[data-intent="start"] .swipe-intent.right {
  opacity: 1;
  background: #fff;
}

.boss-reward {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.boss-reward span,
.boss-reward em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.boss-reward strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-reward em {
  text-align: right;
}

.concept-2 .deck-actions {
  bottom: 0;
  display: grid;
  gap: 7px;
}

.boss-action-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.boss-choice-grid button,
.boss-utility-grid button {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  font-weight: 880;
  line-height: 1.08;
}

.boss-choice-grid button {
  min-height: 40px;
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 13px;
}

.boss-choice-grid button:only-child {
  grid-column: 1 / -1;
}

.boss-choice-grid button span {
  display: none;
}

.boss-choice-grid button.selected {
  border-color: rgba(250, 204, 21, 0.72);
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #14110a;
}

.boss-utility-grid {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 62px minmax(86px, 0.8fr);
  gap: 8px;
}

.boss-utility-grid button {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.boss-utility-grid .skip-move {
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
  font-size: 24px;
}

.boss-utility-grid .context-move {
  background: rgba(255, 255, 255, 0.15);
}

.boss-utility-grid .voice-move {
  color: #bbf7d0;
}

.boss-utility-grid .launch-move {
  border-color: rgba(250, 204, 21, 0.66);
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #14110a;
}

.concept-3 {
  background: linear-gradient(180deg, #e0f2fe, #f8fafc 44%, #ecfeff);
}

.concept-3 .coach-shell {
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 28px 80px rgba(14, 165, 233, 0.18);
}

.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.streak-calendar span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.10);
  color: #0369a1;
  font-weight: 950;
}

.streak-calendar span.lit {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.22);
}

.concept-3 .coach-advice {
  background:
    radial-gradient(circle at 94% 10%, rgba(34, 197, 94, 0.22), transparent 24%),
    #eff6ff;
  border: 1px solid rgba(14, 165, 233, 0.16);
}

.concept-4 {
  background: #f7fee7;
}

.concept-4 .roadmap-shell {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  align-items: start;
}

.tree-progress {
  grid-column: 1 / -1;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
  background: #14532d;
  color: #dcfce7;
}

.tree-progress strong {
  color: #fff;
  font-size: 22px;
}

.tree-progress span {
  color: rgba(220, 252, 231, 0.76);
  font-size: 13px;
}

.concept-4 .roadmap-shell section {
  position: relative;
  min-height: 480px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 253, 245, 0.88));
  border: 1px solid rgba(34, 197, 94, 0.16);
}

.concept-4 .roadmap-shell section::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 74px;
  bottom: 28px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, rgba(34, 197, 94, 0.12));
  z-index: 0;
}

.concept-4 .road-card {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(34, 197, 94, 0.16);
  box-shadow: 0 14px 32px rgba(22, 101, 52, 0.10);
}

.road-card span {
  display: inline-grid;
  width: max-content;
  margin-bottom: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 950;
}

.road-card.locked {
  opacity: 0.58;
  filter: grayscale(0.55);
}

.concept-5 {
  background:
    radial-gradient(circle at 10% 14%, rgba(20, 184, 166, 0.18), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(249, 115, 22, 0.18), transparent 28%),
    #f8fafc;
}

.concept-5 .habit-shell {
  background: #071018;
  color: #fff;
  box-shadow: 0 30px 80px rgba(7, 16, 24, 0.28);
}

.ring-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.ring-score strong {
  font-size: 34px;
  line-height: 0.9;
}

.ring-score span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.concept-5 .habit-shell p {
  color: rgba(255, 255, 255, 0.72);
}

.concept-5 .rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.concept-5 .rings span {
  min-height: 126px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #071018 0 48%, transparent 49%),
    conic-gradient(var(--accent) 0 var(--ring), rgba(255, 255, 255, 0.12) var(--ring) 100%);
  color: #fff;
}

.concept-5 .rings b,
.concept-5 .rings em {
  grid-area: 1 / 1;
  font-style: normal;
}

.concept-5 .rings em {
  transform: translateY(18px);
  color: rgba(255, 255, 255, 0.64);
}

.concept-6 {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), transparent 34%),
    #050816;
  color: #e5e7eb;
}

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

.concept-6 .stat-card,
.concept-6 .command-main,
.concept-6 .command-queue {
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.concept-6 .stat-card small {
  color: rgba(255, 255, 255, 0.50);
  font-weight: 900;
}

.source-radar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.source-radar span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.concept-7 {
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.24), transparent 32%),
    linear-gradient(180deg, #260b3f, #090014);
  color: #fff;
}

.concept-7 .arcade-shell {
  border: 2px solid rgba(250, 204, 21, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)),
    #14051f;
}

.loot-marquee {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, #facc15, #fb7185);
  color: #111827;
}

.loot-marquee strong {
  font-size: 22px;
  line-height: 1;
}

.concept-7 .slot-window {
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.12);
}

.concept-7 .slot-window span {
  min-height: 62px;
  background: #fff;
  color: #111827;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.10);
}

.concept-8 {
  background: linear-gradient(180deg, #f8fafc, #e0f2fe);
}

.concept-8 .one-button-shell {
  min-height: calc(100dvh - 210px);
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.18), transparent 30%),
    #fff;
}

.concept-8 .win-label {
  justify-self: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.concept-8 .mega-button {
  min-height: 96px;
  border-radius: 34px;
  background: linear-gradient(135deg, #0088cc, #22c55e);
  font-size: 24px;
  box-shadow: 0 26px 60px rgba(14, 165, 233, 0.28);
}

.concept-8 .one-button-shell > button:not(.mega-button) {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: #334155;
  font-weight: 950;
}

.concept-8 .one-button-shell > button:not(.mega-button):last-child {
  background: transparent;
  color: #0088cc;
}

.concept-9 {
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.14), transparent 38%),
    #f9fafb;
}

.concept-9 .sports-shell {
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 197, 94, 0.22), transparent 24%),
    #102018;
  color: #fff;
}

.concept-9 .season-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.season-track span {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.76);
}

.season-track span.claimed {
  background: linear-gradient(135deg, #22c55e, #84cc16);
  color: #102018;
}

.season-track b,
.season-track em {
  font-style: normal;
}

.concept-10 {
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.24), transparent 32%),
    linear-gradient(180deg, #060712, #141022);
  color: #f8fafc;
}

.concept-10 .mission-shell {
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.concept-10 .orbit {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.34), transparent 26%),
    conic-gradient(from 90deg, #0f172a, #8b5cf6, #38bdf8, #0f172a);
}

.mission-criteria {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
}

.mission-criteria span {
  color: rgba(255, 255, 255, 0.78);
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  transform: translate(-50%, 24px) scale(0.96);
  max-width: calc(100vw - 28px);
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: white;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 880px) {
  .hub-mode {
    grid-template-columns: 1fr;
  }

  .hub-hero {
    position: static;
    min-height: auto;
  }

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

  .command-main,
  .split-shell,
  .mission-shell,
  .proof-shell,
  .mail-app,
  .broadcast-shell,
  .launch-shell,
  .splitdeck-shell,
  .draft-studio {
    grid-template-columns: 1fr;
  }

  .kanban-board,
  .crm-pipeline,
  .roadmap-shell {
    grid-template-columns: repeat(4, 240px);
  }
}

@media (max-width: 560px) {
  .lab-nav {
    grid-template-columns: auto auto auto auto;
    gap: 5px;
    padding: 5px;
  }

  .lab-nav small {
    display: none;
  }

  .lab-nav a,
  .lab-nav span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .concept-screen {
    padding: 54px 10px 10px;
  }

  .card-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .card-step {
    display: none;
  }

  .preview-track button {
    flex-basis: 132px;
    min-height: 52px;
  }

  .concept-title h1 {
    font-size: 17px;
  }

  .concept-title {
    display: none;
  }

  .game-loop-panel {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .loop-orbit {
    min-height: 52px;
    border-radius: 18px;
  }

  .loop-orbit span {
    width: 34px;
  }

  .loop-orbit span:nth-child(2) {
    width: 22px;
  }

  .loop-orbit span:nth-child(3) {
    width: 10px;
  }

  .loop-pill {
    width: auto;
  }

  .game-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 7px;
  }

  .game-stats div {
    padding: 9px;
  }

  .game-stats strong {
    font-size: 16px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .phone-reel {
    min-height: min(720px, calc(100dvh - 118px));
    grid-template-rows: auto auto auto;
  }

  .reel-stream {
    height: calc(100dvh - 108px);
    min-height: 620px;
  }

  .reel-visual {
    height: clamp(230px, 42dvh, 430px);
  }

  .phone-reel.no-visual-card {
    min-height: auto;
    grid-template-rows: auto auto auto;
  }

  .reel-copy h2,
  .swipe-card h2,
  .mail-detail h2,
  .magazine h2,
  .split-shell h2,
  .mission-shell h2,
  .proof-shell h2 {
    font-size: 26px;
  }

  .pin-board {
    column-count: 1;
  }

  .quest-ladder,
  .shop-shelf,
  .team-room,
  .auction-room,
  .tile-os,
  .comic-strip,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .kanban-board,
  .crm-pipeline,
  .roadmap-shell {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .kanban-board section,
  .crm-pipeline section,
  .roadmap-shell section {
    min-height: auto;
  }

  .stat-card,
  .command-main,
  .command-queue {
    grid-column: auto;
  }

  .command-main {
    order: -1;
    grid-template-columns: 1fr;
  }

  .command-visual,
  .split-visual,
  .mission-visual {
    min-height: 260px;
  }

  .story-visual {
    height: 42vh;
  }

  .deck-shell {
    height: calc(100dvh - 82px);
    min-height: 560px;
  }

  .concept-2 .boss-meter {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border-radius: 20px;
  }

  .concept-2 .boss-meter p {
    grid-column: 1 / -1;
    height: 8px;
  }

  .concept-2 .boss-meter span {
    display: none;
  }

  .concept-2 .boss-meter strong,
  .concept-2 .boss-meter em {
    font-size: 12px;
  }

  .swipe-card {
    inset: 92px 0 116px;
    grid-template-rows: minmax(128px, 38%) minmax(0, 1fr);
    border-radius: 30px;
    padding: 12px;
  }

  .deck-swipe-cues {
    margin-bottom: 7px;
  }

  .deck-actions {
    gap: 6px;
  }

  .deck-actions .agent-buttons button,
  .deck-actions .utility-buttons button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .table-head {
    display: none;
  }

  .table-row,
  .linear-row,
  .compact-row,
  .check-row {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 680px) {
  .concept-screen {
    padding-top: 50px;
    padding-bottom: 8px;
  }

  .concept-title {
    display: none;
  }

  .deck-swipe-cues {
    display: none;
  }

  .deck-shell {
    height: calc(100dvh - 94px);
    min-height: 420px;
  }

  .concept-2 .boss-meter {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border-radius: 20px;
  }

  .boss-meter p {
    grid-column: 1 / -1;
    height: 8px;
  }

  .boss-meter em {
    font-size: 11px;
  }

  .swipe-card {
    inset: 72px 0 104px;
    grid-template-rows: minmax(110px, 36%) minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 28px;
  }

  .swipe-card h2 {
    font-size: 22px;
  }

  .swipe-card p {
    -webkit-line-clamp: 2;
  }

  .deck-actions {
    gap: 5px;
  }

  .deck-actions .agent-buttons {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .deck-actions .agent-buttons button,
  .deck-actions .utility-buttons button {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .concept-2 .deck-shell {
    height: calc(100dvh - 76px);
    min-height: 590px;
  }

  .concept-2 .swipe-card {
    inset: 74px 0 174px;
    display: flex;
    grid-template-rows: none;
    gap: 11px;
    padding: 15px;
  }

  .concept-2 .swipe-card h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .concept-2 .swipe-card p {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .concept-2 .deck-actions {
    gap: 8px;
  }
}

@media (max-height: 720px) {
  .concept-2 .deck-shell {
    height: calc(100dvh - 62px);
    min-height: 510px;
  }

  .concept-2 .deck-swipe-cues {
    display: none;
  }

  .concept-2 .swipe-card {
    inset: 62px 0 168px;
  }

  .concept-2 .deck-visual {
    height: 130px;
  }

  .boss-card-copy h2 {
    font-size: 24px;
  }

  .boss-proof {
    display: none;
  }
}
