:root {
  --cb2-neon: #a8ff3e;
  --cb2-green: #38c957;
  --cb2-blue: #62d6ff;
  --cb2-gold: #ffd75d;
  --cb2-red: #ff6b6b;
  --cb2-bg: #061006;
  --cb2-panel: rgba(7, 19, 9, .88);
  --cb2-card: rgba(255, 255, 255, .075);
  --cb2-line: rgba(168, 255, 62, .26);
  --cb2-muted: rgba(245, 255, 232, .74);
}

html.contraband-v2-scroll-root {
  scroll-behavior: auto;
}

.contraband-v2-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(168, 255, 62, .16), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(98, 214, 255, .10), transparent 34%),
    linear-gradient(180deg, #061006 0%, #0b180b 52%, #050805 100%);
  color: #f5ffe8;
}

.cb2-wrap {
  width: min(1420px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.cb2-console {
  border: 1px solid var(--cb2-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(168, 255, 62, .14), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(98, 214, 255, .09), transparent 34%),
    rgba(4, 12, 6, .90);
  box-shadow: 0 24px 76px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: clamp(12px, 2vw, 22px);
}

.cb2-playbar {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 22px;
  background: rgba(5, 15, 7, .94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.cb2-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cb2-tab,
.cb2-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  line-height: 1;
}

.cb2-tab {
  padding: 9px 13px;
  border: 1px solid rgba(168, 255, 62, .20);
  background: rgba(255, 255, 255, .06);
  color: rgba(245, 255, 232, .84);
}

.cb2-tab:hover,
.cb2-tab.active {
  border-color: rgba(168, 255, 62, .72);
  background: rgba(168, 255, 62, .16);
  color: #dfffad;
}

.cb2-quick {
  min-width: 146px;
  border: 0;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--cb2-gold), var(--cb2-neon) 54%, var(--cb2-green));
  color: #061006;
  box-shadow: 0 12px 28px rgba(168, 255, 62, .24);
  cursor: pointer;
}

.cb2-quick strong {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .16);
}

.cb2-quick-cluster { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.cb2-edible-indicator { --edible-glow: rgba(168, 255, 62, .14); min-width: 142px; min-height: 40px; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cookie copy" "pips pips"; align-items: center; column-gap: 7px; row-gap: 3px; padding: 5px 9px; border: 1px solid rgba(255, 215, 93, .24); border-radius: 15px; background: radial-gradient(circle at 18% 20%, var(--edible-glow), transparent 48%), rgba(255, 255, 255, .055); color: #f5ffe8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 7px 20px var(--edible-glow); }
.cb2-edible-cookie { grid-area: cookie; font-size: 1.25rem; filter: grayscale(.7); transform: rotate(-9deg); transition: transform .3s ease, filter .3s ease; }
.cb2-edible-copy { grid-area: copy; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.cb2-edible-copy small { min-width: 0; overflow: hidden; color: rgba(245, 255, 232, .62); font-size: .59rem; font-weight: 950; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.cb2-edible-copy strong { color: #ffd75d; font-size: .74rem; line-height: 1; }
.cb2-edible-pips { grid-area: pips; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.cb2-edible-pips i { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.cb2-edible-pips i.active { background: linear-gradient(90deg, #ffd75d, #ff8a00); box-shadow: 0 0 8px rgba(255, 138, 0, .68); transform: scaleY(1.35); }
.cb2-edible-indicator:not(.cb2-edible-level-0) { --edible-glow: rgba(255, 138, 0, .2); border-color: rgba(255, 215, 93, .58); }
.cb2-edible-indicator:not(.cb2-edible-level-0) .cb2-edible-cookie { filter: none; animation: cb2-cookie-bob 1.8s ease-in-out infinite; }
.cb2-edible-indicator.cb2-edible-overload { --edible-glow: rgba(255, 48, 48, .42); border-color: rgba(255, 94, 94, .9); background: radial-gradient(circle at 15% 10%, rgba(255, 215, 93, .28), transparent 34%), linear-gradient(135deg, rgba(255, 48, 48, .22), rgba(160, 58, 255, .22)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 0 18px rgba(255, 48, 48, .36), 0 7px 24px var(--edible-glow); }
.cb2-edible-indicator.cb2-edible-overload .cb2-edible-copy small,
.cb2-edible-indicator.cb2-edible-overload .cb2-edible-copy strong { color: #ff8a8a; text-shadow: 0 0 9px rgba(255, 48, 48, .74); }
.cb2-edible-indicator.cb2-edible-overload .cb2-edible-pips i.active { background: linear-gradient(90deg, #ff3d3d, #de8cff); box-shadow: 0 0 11px rgba(255, 61, 61, .88); }
.cb2-edible-indicator-dashboard { width: 100%; min-width: 0; }
@keyframes cb2-cookie-bob { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-3px) rotate(8deg); } }

.cb2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(168, 255, 62, .20);
  border-radius: 24px;
  background: rgba(255, 255, 255, .055);
}

.cb2-eyebrow {
  margin: 0 0 5px;
  color: var(--cb2-neon);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .76rem;
  font-weight: 950;
}

.cb2-hero h1 {
  margin: 0;
  color: #dfffad;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: .95;
}

.cb2-hero p {
  margin: 8px 0 0;
  color: var(--cb2-muted);
  font-weight: 800;
}

.cb2-cloud-conflict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 16px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255, 107, 107, .7);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 107, .18), transparent 45%),
    rgba(39, 8, 8, .9);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cb2-cloud-conflict h2 {
  margin: 0 0 7px;
  color: #ffd2d2;
}

.cb2-cloud-conflict p {
  margin: 6px 0 0;
}

.cb2-cloud-conflict .cb2-actions {
  justify-content: flex-end;
  min-width: 220px;
}

.cb2-cloud-conflict button {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.cb2-cloud-conflict button.primary {
  color: #061006;
  background: linear-gradient(135deg, var(--cb2-neon), var(--cb2-green));
}

.cb2-cloud-conflict button.danger {
  background: rgba(255, 107, 107, .22);
  border-color: rgba(255, 107, 107, .55);
}

.cb2-status-grid,
.cb2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.cb2-card,
.cb2-panel {
  min-width: 0;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 255, 62, .08), transparent 40%),
    var(--cb2-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  padding: 16px;
}

.cb2-card h2,
.cb2-card h3,
.cb2-panel h2,
.cb2-panel h3 {
  margin: 0 0 8px;
  color: #dfffad;
}

.cb2-card p,
.cb2-panel p,
.cb2-muted {
  color: var(--cb2-muted);
  font-weight: 750;
}

.cb2-stat {
  display: grid;
  gap: 4px;
}

.cb2-stat span {
  color: var(--cb2-muted);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cb2-stat strong {
  color: var(--cb2-neon);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.cb2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.cb2-actions .cb2-btn,
.cb2-tissue-status .cb2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cb2-btn,
.cb2-card button,
.cb2-panel button,
.cb2-card select,
.cb2-card input,
.cb2-panel select,
.cb2-panel input {
  font: inherit;
}

.cb2-btn,
.cb2-card button,
.cb2-panel button {
  border: 1px solid rgba(168, 255, 62, .34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 255, 62, .18), rgba(56, 201, 87, .14));
  color: #f5ffe8;
  cursor: pointer;
  font-weight: 950;
  padding: 10px 14px;
}

.cb2-btn.primary,
.cb2-card button.primary,
.cb2-panel button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--cb2-green), var(--cb2-neon));
  color: #061006;
}

.cb2-btn.danger {
  border-color: rgba(255, 107, 107, .38);
  background: rgba(255, 107, 107, .12);
  color: #ffd6d6;
}

.cb2-card button:disabled,
.cb2-panel button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.cb2-card input,
.cb2-card select,
.cb2-panel input,
.cb2-panel select {
  width: 100%;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 14px;
  background: rgba(0, 0, 0, .32);
  color: #f5ffe8;
  padding: 10px 12px;
  font-weight: 850;
}

.cb2-inventory-list {
  display: grid;
  gap: 10px;
}

.cb2-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(168, 255, 62, .18);
  border-radius: 18px;
  background: rgba(0, 0, 0, .20);
  padding: 12px;
}

.cb2-item strong {
  color: #f5ffe8;
}

.cb2-item small {
  display: block;
  color: var(--cb2-muted);
  font-weight: 750;
}

.cb2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 255, 62, .24);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--cb2-neon);
  background: rgba(168, 255, 62, .10);
  font-size: .78rem;
  font-weight: 950;
}

.cb2-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cb2-process {
  display: grid;
  gap: 10px;
}

.cb2-process-media {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(168, 255, 62, .22);
  background: rgba(0, 0, 0, .24);
  font-size: 3rem;
}

.cb2-refinement-board > h2 {
  margin: 0 0 12px;
  color: var(--cb2-neon);
}

.cb2-refinement-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.cb2-refinement-method {
  min-width: 0;
  min-height: 265px;
  cursor: pointer;
  perspective: 1100px;
}

.cb2-refinement-flip-inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 265px;
  transform-style: preserve-3d;
  transition: transform .52s cubic-bezier(.2, .72, .2, 1);
}

.cb2-refinement-method.is-flipped .cb2-refinement-flip-inner {
  transform: rotateY(180deg);
}

.cb2-refinement-face {
  grid-area: 1 / 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(168, 255, 62, .13), transparent 42%), #081109;
  box-shadow: 0 15px 34px rgba(0, 0, 0, .28);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cb2-refinement-back {
  position: absolute;
  inset: 0;
  justify-content: center;
  transform: rotateY(180deg);
  background: #030704;
  color: #fff;
  text-align: center;
}

.cb2-refinement-method.is-active .cb2-refinement-face {
  border-color: rgba(168, 255, 62, .78);
  box-shadow: 0 0 0 3px rgba(168, 255, 62, .12), 0 14px 32px rgba(0, 0, 0, .30);
}

.cb2-refinement-method.locked-method {
  filter: saturate(.65);
}

.cb2-refinement-face h3,
.cb2-active-refinement-panel h2 {
  margin: 0;
  color: #dfffad;
  text-align: center;
}

.cb2-refinement-face p {
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.4;
}

.cb2-refinement-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(98, 214, 255, .24);
  border-radius: 16px;
  background: radial-gradient(circle, rgba(168, 255, 62, .16), transparent 58%), rgba(0, 0, 0, .28);
}

.cb2-refinement-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb2-refinement-media-fallback {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.cb2-refinement-media-fallback[hidden] {
  display: none;
}

.cb2-refinement-open-note {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 6px 9px;
  border: 1px solid rgba(168, 255, 62, .24);
  border-radius: 999px;
  background: rgba(168, 255, 62, .10);
  color: var(--cb2-neon);
  font-size: .72rem;
  font-weight: 950;
  text-align: center;
}

.cb2-active-refinement-panel {
  margin-top: 14px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid rgba(168, 255, 62, .45);
  border-radius: 24px;
  background: radial-gradient(circle at 15% 0%, rgba(168, 255, 62, .12), transparent 34%), rgba(2, 8, 3, .94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
}

.cb2-active-refinement-panel > .cb2-refinement-media {
  max-height: 320px;
  aspect-ratio: 16 / 6;
  margin-bottom: 12px;
}

.cb2-refinement-workbench-copy {
  color: var(--cb2-muted);
  font-weight: 800;
  text-align: center;
}

.cb2-refinement-input-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cb2-refinement-action-row {
  margin-top: 12px;
}

.cb2-seed-sorter-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cb2-seed-sort-tool {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(198, 112, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.cb2-seed-sort-tool h3 {
  margin: 0 0 7px;
  color: #edccff;
}

.cb2-seed-sort-tool p {
  margin: 5px 0 10px;
  color: var(--cb2-muted);
  font-size: .82rem;
  font-weight: 800;
}

.cb2-seed-sort-choices {
  display: grid;
  gap: 6px;
  max-height: 300px;
  margin: 9px 0;
  overflow-y: auto;
}

.cb2-seed-sort-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 11px;
  background: rgba(0, 0, 0, .22);
}

.cb2-seed-sort-choice small {
  display: block;
  color: var(--cb2-muted);
  font-weight: 750;
}

.cb2-sorter-footer {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .cb2-seed-sorter-tools {
    grid-template-columns: 1fr;
  }
}

.cb2-room-card {
  min-height: 240px;
}

.cb2-plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cb2-seed-picker,
.cb2-clone-picker {
  margin-top: 12px;
  border: 1px solid rgba(168, 255, 62, .16);
  border-radius: 18px;
  background: rgba(0, 0, 0, .18);
  padding: 12px;
}

.cb2-seed-picker p,
.cb2-clone-picker p {
  margin: 0 0 10px;
}

.cb2-seed-picker button span,
.cb2-clone-picker button span {
  opacity: .75;
  font-size: .86em;
}

.cb2-mode-actions {
  margin: 10px 0 0;
}

.cb2-plant-card,
.cb2-drying-card,
.cb2-freezer-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 255, 62, .16), transparent 42%),
    rgba(0, 0, 0, .24);
  padding: 12px;
}

.cb2-plant-media {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(168, 255, 62, .22);
  background:
    radial-gradient(circle at 50% 30%, rgba(168, 255, 62, .18), transparent 34%),
    linear-gradient(135deg, rgba(56, 201, 87, .14), rgba(98, 214, 255, .08));
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 1;
}

.cb2-plant-copy h3 {
  margin: 0 0 6px;
  color: #f5ffe8;
}

.cb2-plant-copy p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}

.cb2-plant-copy small {
  display: block;
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.4;
  margin-top: 8px;
}

.cb2-plant-copy .cb2-growth-clock {
  border: 1px solid rgba(98, 214, 255, .24);
  border-radius: 12px;
  padding: 7px 9px;
  background: rgba(98, 214, 255, .08);
  color: #c9f4ff;
  font-weight: 900;
}

.cb2-trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.cb2-trait {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(98, 214, 255, .28);
  border-radius: 999px;
  background: rgba(98, 214, 255, .10);
  color: #c9f3ff;
  padding: 4px 8px;
  font-size: .7rem;
  font-weight: 950;
  line-height: 1;
}

.cb2-trait.rarity-rare {
  border-color: rgba(98, 214, 255, .7);
  background: rgba(45, 137, 255, .20);
  color: #d9efff;
}

.cb2-trait.rarity-epic {
  border-color: rgba(198, 112, 255, .72);
  background: rgba(137, 62, 214, .24);
  color: #f0d9ff;
}

.rarity-common,
.plant h3.rarity-common { color: var(--cb2-neon) !important; }
.rarity-rare,
.plant h3.rarity-rare { color: #7cc7ff !important; }
.rarity-epic,
.plant h3.rarity-epic { color: #de8cff !important; }
.rarity-legendary,
.plant h3.rarity-legendary { color: #ffd75d !important; }

.plant-visual-frame.rarity-frame-common { border-color: rgba(168, 255, 62, .48); }
.plant-visual-frame.rarity-frame-rare { border-color: rgba(124, 199, 255, .58); box-shadow: 0 0 26px rgba(124, 199, 255, .2); }
.plant-visual-frame.rarity-frame-epic { border-color: rgba(222, 140, 255, .62); box-shadow: 0 0 30px rgba(222, 140, 255, .22); }
.plant-visual-frame.rarity-frame-legendary { border-color: rgba(255, 215, 93, .72); box-shadow: 0 0 34px rgba(255, 215, 93, .26); }

.cb2-trait.rarity-mythic {
  border-color: rgba(255, 215, 93, .78);
  background: rgba(255, 166, 43, .22);
  color: #fff0ad;
  box-shadow: 0 0 16px rgba(255, 215, 93, .16);
}

.cb2-breeding-panel {
  border: 1px solid rgba(198, 112, 255, .34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(137, 62, 214, .18), rgba(98, 214, 255, .08));
  padding: 10px;
}

.cb2-breeding-panel > strong,
.cb2-breeding-panel > small {
  display: block;
}

.cb2-breeding-panel > strong {
  color: #f0d9ff;
}

.cb2-breeding-panel > small {
  margin-top: 4px;
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.35;
}

.cb2-mother-panel {
  border: 1px solid rgba(168, 255, 62, .34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 201, 87, .18), rgba(168, 255, 62, .07));
  padding: 10px;
}

.cb2-mother-panel > strong,
.cb2-mother-panel > small {
  display: block;
}

.cb2-mother-panel > strong {
  color: #dfffad;
}

.cb2-mother-panel > small {
  margin-top: 4px;
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.35;
}

.cb2-sorter-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cb2-tissue-status,
.cb2-tissue-result,
.cb2-tissue-warning {
  border-radius: 17px;
  padding: 12px;
}

.cb2-tissue-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(168, 255, 62, .24);
  background: rgba(168, 255, 62, .08);
}

.cb2-tissue-status strong,
.cb2-tissue-status small,
.cb2-tissue-result strong,
.cb2-tissue-result small {
  display: block;
}

.cb2-tissue-status small,
.cb2-tissue-result small {
  margin-top: 4px;
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.4;
}

.cb2-tissue-result {
  margin-top: 10px;
  border: 1px solid rgba(198, 112, 255, .34);
  background: rgba(198, 112, 255, .11);
}

.cb2-tissue-result strong {
  color: #edccff;
}

.cb2-tissue-warning {
  margin-top: 10px;
  border: 1px solid rgba(255, 186, 73, .36);
  background: rgba(255, 186, 73, .10);
  color: #ffe0a3;
  font-weight: 900;
}

.cb2-notice {
  border-color: rgba(168, 255, 62, .4);
  background: rgba(30, 76, 24, .96);
  color: #edffd5;
  font-weight: 900;
}

.cb2-sorter-pack {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(198, 112, 255, .28);
  border-radius: 17px;
  background: rgba(0, 0, 0, .22);
  padding: 12px;
}

.cb2-sorter-pack small,
.cb2-rename-field span {
  display: block;
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.4;
}

.cb2-rename-field {
  display: grid;
  gap: 6px;
}

.cb2-modal[hidden] {
  display: none;
}

.cb2-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(9px);
}

.cb2-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 900px);
  overflow: auto;
  border: 1px solid rgba(168, 255, 62, .4);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 255, 62, .12), transparent 38%),
    #071009;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .66);
  padding: clamp(18px, 4vw, 30px);
}

.cb2-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: #142016;
  color: #f5ffe8;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 950;
}

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

.cb2-perk-stat {
  border-color: rgba(255, 215, 93, .48);
  background: linear-gradient(135deg, rgba(255, 215, 93, .16), rgba(168, 255, 62, .09));
}

.cb2-perk-stat small {
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.35;
}

.cb2-perk-callout,
.cb2-death-note {
  border-radius: 14px;
  padding: 9px 10px;
  font-weight: 850;
}

.cb2-perk-callout {
  border: 1px solid rgba(255, 215, 93, .4);
  background: rgba(255, 215, 93, .12);
  color: #fff0ad !important;
}

.cb2-death-note {
  border: 1px solid rgba(255, 107, 107, .38);
  background: rgba(255, 107, 107, .12);
  color: #ffd6d6 !important;
}

.cb2-nft-section {
  grid-column: 1 / -1;
}

.cb2-nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cb2-nft-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(98, 214, 255, .28);
  border-radius: 20px;
  background: rgba(0, 0, 0, .24);
  padding: 12px;
}

.cb2-nft-card.is-genesis {
  border-color: rgba(255, 215, 93, .68);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 93, .2), transparent 40%),
    rgba(0, 0, 0, .28);
  box-shadow: 0 0 28px rgba(255, 215, 93, .12);
}

.cb2-nft-card h3 {
  margin: 0 0 5px;
}

.cb2-nft-card small {
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.4;
}

.cb2-nft-media {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 214, 255, .24);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  font-size: 4rem;
}

.cb2-nft-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cb2-redemption-qr {
  width: min(320px, 100%);
  margin: 16px auto;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
}

.cb2-redemption-qr img {
  width: 100%;
  display: block;
}

.cb2-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(168, 255, 62, .14);
}

.cb2-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cb2-green), var(--cb2-neon), var(--cb2-gold));
}

.cb2-plant-actions {
  margin-top: auto;
}

.cb2-plant-actions button {
  flex: 1 1 110px;
}

.cb2-log {
  max-height: 260px;
  overflow: auto;
}

.cb2-empty {
  border: 1px dashed rgba(168, 255, 62, .24);
  border-radius: 18px;
  padding: 18px;
  color: var(--cb2-muted);
  text-align: center;
  font-weight: 850;
}

@media (max-width: 820px) {
  .cb2-playbar,
  .cb2-hero,
  .cb2-cloud-conflict {
    grid-template-columns: 1fr;
  }

  .cb2-cloud-conflict .cb2-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .cb2-tissue-status {
    grid-template-columns: 1fr;
  }

  .cb2-quick {
    width: 100%;
  }
}

/* Backup-template visual layer. The V2 engine and bindings stay underneath. */
.cb2-wrap {
  width: calc(100% - clamp(24px, 4vw, 48px));
  max-width: none;
  padding-top: 14px;
}

.cb2-console {
  border-color: rgba(168, 255, 62, .30);
  background:
    radial-gradient(circle at 14% 0%, rgba(168, 255, 62, .16), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(98, 214, 255, .10), transparent 36%),
    rgba(4, 12, 6, .88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cb2-hero {
  padding: 13px 16px;
  border-radius: 20px;
  background: rgba(5, 14, 7, .66);
}

.cb2-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.cb2-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.45fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
}

.cb2-dashboard-left,
.cb2-dashboard-profile,
.cb2-dashboard-panel {
  display: grid;
  gap: 14px;
}

.cb2-dashboard-signin-callout { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(168, 255, 62, .34); border-radius: 16px; background: rgba(168, 255, 62, .08); }
.cb2-dashboard-signin-callout strong { color: var(--cb2-neon); font-size: 1.05rem; }
.cb2-dashboard-signin-callout p { margin: 0; color: var(--cb2-muted); line-height: 1.45; }
.cb2-dashboard-signin-callout .cb2-btn { width: fit-content; }

.cb2-collector-card {
  padding: clamp(16px, 2vw, 22px);
}

.cb2-collector-top-row { display: grid; grid-template-columns: auto minmax(150px, 1fr); gap: 16px; align-items: start; }
.cb2-collector-avatar-stack { width: max-content; min-width: 150px; display: grid; justify-items: center; justify-self: center; align-self: center; }
.cb2-avatar-melt { --melt-drop: 0px; --melt-stretch: 1; --melt-opacity: 0; --melt-tilt: 0deg; position: relative; width: 150px; height: 150px; isolation: isolate; }
.cb2-avatar-main { position: relative; z-index: 2; width: 150px; height: 150px; display: block; object-fit: cover; border: 3px solid var(--cb2-neon); border-radius: 50%; background: rgba(0, 0, 0, .28); box-shadow: 0 0 30px rgba(168, 255, 62, .32); transform: rotate(var(--melt-tilt)) scaleY(var(--melt-main-stretch, 1)); filter: saturate(var(--melt-saturation, 1)) hue-rotate(var(--melt-hue, 0deg)); transition: border-radius .45s ease, filter .45s ease, transform .45s ease; }
.cb2-avatar-melt-echo { position: absolute; z-index: 1; inset: 0; display: block; opacity: var(--melt-opacity); pointer-events: none; transform: translateY(var(--melt-drop)) scaleY(var(--melt-stretch)); transform-origin: 50% 58%; clip-path: polygon(0 57%, 11% 59%, 15% 100%, 23% 63%, 35% 60%, 41% 92%, 48% 62%, 59% 60%, 66% 100%, 73% 63%, 84% 59%, 89% 88%, 94% 60%, 100% 57%, 100% 100%, 0 100%); filter: saturate(var(--melt-saturation, 1)) hue-rotate(var(--melt-hue, 0deg)) blur(var(--melt-blur, 0)); transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.cb2-avatar-melt-echo img { width: 150px; height: 150px; display: block; object-fit: cover; border-radius: 44% 56% 42% 58% / 48% 45% 55% 52%; }
.cb2-avatar-edible-badge { position: absolute; z-index: 4; right: -9px; bottom: -9px; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 4px 8px; border: 2px solid rgba(6, 16, 6, .92); border-radius: 999px; background: linear-gradient(135deg, #ffd75d, #ff8a00); color: #151006; box-shadow: 0 7px 18px rgba(0, 0, 0, .4); font-size: .72rem; font-weight: 950; }
.cb2-avatar-melt.cb2-edible-level-0 .cb2-avatar-edible-badge { opacity: .62; filter: grayscale(.75); }
.cb2-avatar-melt.cb2-edible-level-1 { --melt-drop: 12px; --melt-stretch: 1.19; --melt-opacity: .52; --melt-main-stretch: 1.04; --melt-saturation: 1.3; --melt-hue: 5deg; --melt-blur: .25px; --melt-tilt: .8deg; }
.cb2-avatar-melt.cb2-edible-level-2 { --melt-drop: 18px; --melt-stretch: 1.29; --melt-opacity: .66; --melt-main-stretch: 1.055; --melt-saturation: 1.45; --melt-hue: 10deg; --melt-blur: .45px; --melt-tilt: -1.2deg; }
.cb2-avatar-melt.cb2-edible-level-3 { --melt-drop: 25px; --melt-stretch: 1.42; --melt-opacity: .82; --melt-main-stretch: 1.075; --melt-saturation: 1.65; --melt-hue: 18deg; --melt-blur: .7px; --melt-tilt: 1.6deg; }
.cb2-avatar-melt.cb2-edible-level-4 { --melt-drop: 36px; --melt-stretch: 1.72; --melt-opacity: .9; --melt-main-stretch: 1.12; --melt-saturation: 2.15; --melt-hue: 42deg; --melt-blur: 1.1px; --melt-tilt: -3.8deg; }
.cb2-avatar-melt.cb2-edible-level-5 { --melt-drop: 50px; --melt-stretch: 2.18; --melt-opacity: 1; --melt-main-stretch: 1.2; --melt-saturation: 3; --melt-hue: 110deg; --melt-blur: 2px; --melt-tilt: 6deg; }
.cb2-avatar-melt.cb2-edible-level-1 .cb2-avatar-main { border-radius: 46% 54% 47% 57% / 44% 48% 58% 54%; }
.cb2-avatar-melt.cb2-edible-level-2 .cb2-avatar-main { border-radius: 43% 57% 45% 60% / 41% 47% 61% 57%; }
.cb2-avatar-melt.cb2-edible-level-3 .cb2-avatar-main { border-radius: 40% 60% 42% 63% / 38% 45% 65% 60%; animation: cb2-avatar-wobble 2.8s ease-in-out infinite; }
.cb2-avatar-melt.cb2-edible-level-4 .cb2-avatar-main { border-radius: 35% 65% 38% 70% / 35% 44% 70% 63%; animation: cb2-avatar-wobble 2.15s ease-in-out infinite; filter: saturate(var(--melt-saturation, 1)) hue-rotate(var(--melt-hue, 0deg)) contrast(1.18) blur(.35px); }
.cb2-avatar-melt.cb2-edible-level-5 .cb2-avatar-main { border-radius: 28% 72% 31% 78% / 28% 39% 80% 70%; clip-path: polygon(8% 0, 94% 6%, 87% 36%, 100% 48%, 83% 100%, 58% 82%, 38% 100%, 0 83%, 12% 48%, 0 24%); animation: cb2-avatar-meltdown 1.75s ease-in-out infinite; filter: saturate(var(--melt-saturation, 1)) hue-rotate(var(--melt-hue, 0deg)) contrast(1.45) blur(1px) invert(.08); }
.cb2-avatar-melt.cb2-edible-level-4::before,
.cb2-avatar-melt.cb2-edible-level-5::before { content: ""; position: absolute; z-index: 3; inset: -10px; border-radius: 44% 56% 42% 58%; background: radial-gradient(circle at 25% 25%, rgba(255, 215, 93, .38), transparent 28%), radial-gradient(circle at 70% 35%, rgba(222, 140, 255, .42), transparent 30%), radial-gradient(circle at 50% 75%, rgba(98, 214, 255, .30), transparent 34%); mix-blend-mode: screen; opacity: .42; pointer-events: none; animation: cb2-avatar-glaze 2.2s ease-in-out infinite; }
.cb2-avatar-melt.cb2-edible-level-5::before { inset: -18px; opacity: .72; filter: blur(.7px); }
@keyframes cb2-avatar-wobble { 0%, 100% { transform: rotate(var(--melt-tilt)) scaleY(var(--melt-main-stretch, 1)) skewX(0); } 50% { transform: rotate(calc(var(--melt-tilt) * -0.8)) scaleY(calc(var(--melt-main-stretch, 1) + .025)) skewX(1.5deg); } }
@keyframes cb2-avatar-meltdown { 0%, 100% { transform: rotate(6deg) scaleY(1.2) skewX(-2deg); } 35% { transform: rotate(-7deg) scaleY(1.28) skewX(4deg) translateY(3px); } 70% { transform: rotate(4deg) scaleY(1.16) skewX(-5deg) translateX(2px); } }
@keyframes cb2-avatar-glaze { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(7deg) scale(1.06); } }
.cb2-collector-reset-stack { min-width: 0; display: grid; align-content: start; gap: 12px; }
.cb2-collector-cash { width: 100%; max-width: none; display: block; justify-self: stretch; color: var(--cb2-neon); font-size: clamp(1.05rem, 2.4vw, 1.65rem); line-height: 1; text-align: center; white-space: nowrap; overflow-wrap: normal; }
.cb2-dashboard-reset-box { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(255, 107, 107, .34); border-radius: 16px; background: rgba(255, 107, 107, .075); color: rgba(245, 255, 232, .88); font-size: .82rem; line-height: 1.35; }
.cb2-dashboard-reset-box strong { color: #ffb3b3; }
.cb2-dashboard-reset-box p { margin: 0; }
.cb2-dashboard-reset-box button { width: 100%; border: 0; background: linear-gradient(135deg, #ff6b6b, #d92d20); color: #fff; }
.cb2-collector-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(168, 255, 62, .18); border-radius: 16px; background: rgba(0, 0, 0, .16); }
.cb2-collector-identity-row > button { white-space: nowrap; }
.cb2-collector-identity-row > .cb2-disconnect-wallet { border-color: rgba(255, 107, 107, .42); background: linear-gradient(135deg, rgba(255, 107, 107, .22), rgba(217, 45, 32, .2)); color: #ffd6d6; }
.cb2-collector-identity h2, .cb2-collector-identity p { margin: 0; }
.cb2-collector-identity h2 { color: var(--cb2-neon); line-height: 1.08; }
.cb2-collector-identity { display: grid; gap: 5px; min-width: 0; }
.cb2-collector-identity p:last-child { color: var(--cb2-muted); overflow-wrap: anywhere; }
.cb2-collector-card > .cb2-dashboard-mini-stats { margin-top: 0; }

.cb2-collector-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.cb2-collector-preview img {
  width: 112px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(168, 255, 62, .42);
  border-radius: 24px;
  background: rgba(0, 0, 0, .28);
}

.cb2-collector-preview h2,
.cb2-collector-preview p {
  margin: 0;
}

.cb2-dashboard-mini-stats,
.cb2-room-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.cb2-dashboard-mini-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb2-dashboard-mini-stats > div,
.cb2-room-stats > div {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(168, 255, 62, .20);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  text-align: center;
}

.cb2-dashboard-mini-stats span,
.cb2-dashboard-mini-stats strong,
.cb2-room-stats span,
.cb2-room-stats strong {
  display: block;
}

.cb2-dashboard-mini-stats span,
.cb2-room-stats span {
  color: rgba(245, 255, 232, .62);
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cb2-dashboard-mini-stats strong,
.cb2-room-stats strong {
  margin-top: 4px;
  color: var(--cb2-neon);
  font-size: .82rem;
}

.cb2-dashboard-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cb2-dashboard-flip-card { position: relative; min-width: 0; min-height: 300px; perspective: 1200px; cursor: pointer; }
.cb2-dashboard-flip-inner { position: relative; display: grid; width: 100%; min-height: 300px; transform-style: preserve-3d; transition: transform .56s cubic-bezier(.2, .72, .2, 1); }
.cb2-dashboard-flip-card.is-flipped .cb2-dashboard-flip-inner { transform: rotateY(180deg); }
.cb2-dashboard-flip-face { grid-area: 1 / 1; min-width: 0; min-height: 300px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 13px; overflow: hidden; border: 1px solid rgba(168, 255, 62, .30); border-radius: 18px; background: linear-gradient(155deg, rgba(255, 255, 255, .085), rgba(7, 19, 9, .98)); box-shadow: 0 14px 32px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .07); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cb2-dashboard-flip-front { align-items: center; }
.cb2-dashboard-flip-back { align-items: stretch; transform: rotateY(180deg); overflow: auto; background: #030704; color: #fff; border-color: rgba(168, 255, 62, .48); text-align: left; text-shadow: 0 1px 2px #000; }
.cb2-dashboard-flip-back h3 { margin: 0; color: #dfffad; }
.cb2-dashboard-flip-back p { margin: 3px 0; padding: 7px 8px; border-radius: 9px; background: rgba(255, 255, 255, .055); color: #fff; font-weight: 800; line-height: 1.42; }
.cb2-dashboard-flip-hint { display: block; margin-top: auto; padding-top: 8px; color: var(--cb2-neon); font-size: .7rem; font-weight: 950; text-transform: uppercase; letter-spacing: .04em; }
.cb2-dashboard-meter-label { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: rgba(245, 255, 232, .88); font-weight: 900; }
.cb2-dashboard-meter-label strong { color: var(--cb2-neon); }
.cb2-dashboard-highness-card,
.cb2-dashboard-highness-card .cb2-dashboard-flip-inner,
.cb2-dashboard-highness-card .cb2-dashboard-flip-face { min-height: 382px; }
.cb2-dashboard-highness-card .cb2-dashboard-flip-face { padding: 9px; }
.cb2-highness-console {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  aspect-ratio: 1;
  color: #7cff87;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .34));
  isolation: isolate;
}
.cb2-highness-console-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  pointer-events: none;
  user-select: none;
}
.cb2-highness-needle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 61.5%;
  width: clamp(5px, 1.8vw, 8px);
  height: 31.5%;
  transform: translate(-50%, -100%) rotate(var(--cb2-highness-angle, -78deg));
  transform-origin: 50% 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a8f7ff, #d9ffff 50%, #5b8e9c);
  box-shadow: 0 0 6px rgba(201, 255, 255, .72), 0 0 16px rgba(125, 255, 135, .28);
  transition: transform .55s cubic-bezier(.18, .8, .2, 1);
}
.cb2-highness-needle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 18px solid #d9ffff;
  filter: drop-shadow(0 0 4px rgba(201, 255, 255, .82));
}
.cb2-highness-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border: 3px solid rgba(216, 255, 255, .86);
  border-radius: 999px;
  background: radial-gradient(circle, #93b8bd, #273a3d 72%);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .55);
}
.cb2-highness-readout {
  position: absolute;
  z-index: 3;
  left: 18%;
  width: 64%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74ff83;
  text-align: center;
  text-shadow: 0 0 6px rgba(84, 255, 96, .78), 0 0 14px rgba(84, 255, 96, .35);
  pointer-events: none;
}
.cb2-highness-readout-label {
  top: 67.75%;
  height: 6.4%;
  gap: .35em;
  font-size: clamp(.66rem, 2.15vw, 1.05rem);
  font-weight: 950;
  letter-spacing: .04em;
}
.cb2-highness-readout-percent {
  top: 76.05%;
  height: 9.5%;
  font-size: clamp(1.45rem, 6.4vw, 3.05rem);
  line-height: 1;
}
.cb2-highness-level-sober .cb2-highness-readout { color: #78ff7f; text-shadow: 0 0 7px rgba(88, 255, 94, .82), 0 0 15px rgba(88, 255, 94, .35); }
.cb2-highness-level-buzzed .cb2-highness-readout { color: #b8ff65; text-shadow: 0 0 7px rgba(184, 255, 101, .82), 0 0 15px rgba(184, 255, 101, .35); }
.cb2-highness-level-baked .cb2-highness-readout { color: #fff35d; text-shadow: 0 0 7px rgba(255, 243, 93, .82), 0 0 15px rgba(255, 243, 93, .35); }
.cb2-highness-level-cooked .cb2-highness-readout { color: #ffa33d; text-shadow: 0 0 7px rgba(255, 163, 61, .82), 0 0 15px rgba(255, 163, 61, .35); }
.cb2-highness-level-faded .cb2-highness-readout { color: #ff5e5e; text-shadow: 0 0 7px rgba(255, 94, 94, .9), 0 0 18px rgba(255, 42, 42, .45); }
.cb2-highness-console-button {
  position: absolute;
  z-index: 4;
  top: 76.85%;
  width: 20.8% !important;
  min-height: 0 !important;
  height: 6.8%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #142326 !important;
  box-shadow: none !important;
  font-family: "Arial Black", Impact, system-ui, sans-serif !important;
  font-size: clamp(.54rem, 1.7vw, .86rem) !important;
  letter-spacing: .02em;
  text-shadow: 0 1px rgba(255, 255, 255, .34);
}
.cb2-highness-console-button:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.03) !important;
  filter: brightness(1.12);
}
.cb2-highness-console-button:disabled {
  cursor: wait !important;
  color: rgba(20, 35, 38, .58) !important;
  filter: grayscale(.4) brightness(.82);
}
.cb2-highness-drink { left: 11.9%; }
.cb2-highness-relax { right: 11.9%; }
.cb2-relax-modal .cb2-relax-countdown {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 14px;
  background: rgba(168, 255, 62, .08);
  color: #f5ffe8;
  font-weight: 900;
}
.cb2-relax-modal .cb2-relax-countdown strong { color: var(--cb2-neon); }
.cb2-dashboard-card-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cb2-dashboard-card-actions > * { width: 100%; box-sizing: border-box; }
.cb2-dashboard-flip-face button,
.cb2-dashboard-flip-face .cb2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cb2-neon), var(--cb2-green));
  color: #061006;
  box-shadow: 0 10px 24px rgba(56, 201, 87, .18);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.cb2-dashboard-flip-face button:hover,
.cb2-dashboard-flip-face .cb2-btn:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.08); }
.cb2-dashboard-flip-face button:active,
.cb2-dashboard-flip-face .cb2-btn:active { transform: scale(.98); }
.cb2-dashboard-flip-face .cb2-dashboard-quick-action { background: linear-gradient(135deg, #ffd75d, #ff8a00); color: #111; }
.cb2-dashboard-choice-icons { width: 100%; display: flex; justify-content: center; gap: 10px; }
.cb2-dashboard-choice-icons span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(168, 255, 62, .25); border-radius: 14px; background: rgba(168, 255, 62, .09); font-size: 1.45rem; }
.cb2-dashboard-inventory-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cb2-dashboard-flip-face .cb2-dashboard-inventory-summary button { min-width: 0; min-height: 0; display: grid; justify-items: center; gap: 3px; padding: 9px 6px; border: 1px solid rgba(168, 255, 62, .22); border-radius: 14px; background: rgba(255, 255, 255, .065); color: #f5ffe8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); text-align: center; }
.cb2-dashboard-flip-face .cb2-dashboard-inventory-summary button:hover { border-color: rgba(168, 255, 62, .64); background: rgba(168, 255, 62, .13); }
.cb2-dashboard-inventory-summary small, .cb2-dashboard-inventory-summary strong { display: block; }
.cb2-dashboard-inventory-summary small { color: var(--cb2-muted); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.cb2-dashboard-inventory-summary strong { margin-top: 4px; overflow: hidden; color: var(--cb2-neon); text-overflow: ellipsis; white-space: nowrap; }
.cb2-dashboard-inventory-icon { font-size: 1.18rem; line-height: 1; }
.cb2-dashboard-inventory-empty { grid-column: 1 / -1; padding: 14px; border: 1px dashed rgba(168, 255, 62, .25); border-radius: 14px; color: var(--cb2-muted); text-align: center; }

.seed-reveal-modal-backdrop.cb2-game-popup-backdrop .seed-reveal-modal.cb2-dashboard-menu-popup {
  position: relative;
  width: min(96vw, 1240px);
  padding: 22px;
  text-align: left;
}
.cb2-dashboard-popup-close {
  position: sticky;
  z-index: 4;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(168, 255, 62, .36) !important;
  border-radius: 999px !important;
  background: rgba(4, 12, 5, .94) !important;
  color: #f5ffe8 !important;
  font-size: 1.5rem !important;
  line-height: 1;
}
.cb2-dashboard-popup-title { display: flex; align-items: center; gap: 12px; margin: 0 54px 16px 0; }
.cb2-dashboard-popup-title > span { font-size: 2rem; }
.cb2-dashboard-popup-title h2, .cb2-dashboard-popup-title p { margin: 0; }
.cb2-dashboard-popup-page { clear: both; display: grid; gap: 14px; }
.cb2-dashboard-menu-popup .cb2-market-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb2-dashboard-menu-popup .cb2-market-product-card,
.cb2-dashboard-menu-popup .cb2-market-flip-inner { min-height: 470px; }
.cb2-dashboard-menu-popup .cb2-smoke-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb2-dashboard-menu-popup .cb2-bank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .cb2-dashboard-menu-popup .cb2-market-product-grid,
  .cb2-dashboard-menu-popup .cb2-smoke-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb2-dashboard-menu-popup .cb2-bank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .seed-reveal-modal-backdrop.cb2-game-popup-backdrop .seed-reveal-modal.cb2-dashboard-menu-popup { width: 100%; max-height: calc(100vh - 16px); padding: 14px; border-radius: 20px; }
  .cb2-dashboard-menu-popup .cb2-market-product-grid,
  .cb2-dashboard-menu-popup .cb2-smoke-product-grid,
  .cb2-dashboard-menu-popup .cb2-bank-grid { grid-template-columns: 1fr; }
}

.cb2-dashboard-game-card {
  position: relative;
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 10px;
  color: #f5ffe8;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
  overflow: hidden;
}

.cb2-dashboard-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 255, 62, .68);
}

.cb2-dashboard-wide {
  grid-column: 1 / -1;
}

.cb2-dashboard-value {
  color: var(--cb2-neon);
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1;
}

.cb2-dashboard-art {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
}

.cb2-card-cta {
  color: var(--cb2-neon);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cb2-dashboard-profile {
  padding: clamp(16px, 2vw, 22px);
}

.cb2-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 8px;
  border-bottom: 1px solid rgba(168, 255, 62, .28);
  align-items: flex-end;
}

.cb2-profile-tab {
  position: relative;
  padding: 7px 11px 8px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  color: rgba(245, 255, 232, .82);
  background: linear-gradient(180deg, rgba(168, 255, 62, .13), rgba(168, 255, 62, .045)), rgba(0, 0, 0, .22);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(1px);
  cursor: pointer;
}

.cb2-profile-tab:hover { color: #f5ffe8; background: linear-gradient(180deg, rgba(168, 255, 62, .2), rgba(168, 255, 62, .07)), rgba(0, 0, 0, .22); }

.cb2-profile-tab.active {
  z-index: 2;
  border-color: rgba(168, 255, 62, .72);
  color: #102010;
  background: linear-gradient(180deg, var(--cb2-neon), rgba(168, 255, 62, .82));
}

.cb2-profile-inner-panel { display: none; }
.cb2-profile-inner-panel.active { display: grid; gap: 14px; }

.cb2-dashboard-panel {
  padding: 14px;
  border: 1px solid rgba(168, 255, 62, .16);
  border-radius: 19px;
  background: rgba(0, 0, 0, .16);
}

.cb2-dashboard-profile > .cb2-profile-inner-panel { min-width: 0; }

.cb2-profile-fields label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .9);
  font-weight: 900;
}

.cb2-profile-fields input[type="email"],
.cb2-profile-fields input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: #f5ffe8;
  font: inherit;
}

.cb2-profile-fields .cb2-profile-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.cb2-profile-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cb2-neon); }

.cb2-avatar-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(168, 255, 62, .24);
  border-radius: 18px;
  background: rgba(0, 0, 0, .14);
}

.cb2-avatar-picker p { margin-bottom: 0; color: var(--cb2-muted); }
.cb2-avatar-picker-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.cb2-avatar-filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cb2-avatar-filter-row label { display: grid; gap: 6px; color: var(--cb2-muted); font-size: .75rem; font-weight: 900; }
.cb2-avatar-filter-row select { width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(168, 255, 62, .3); border-radius: 11px; background: #efffde; color: #10200f; font: inherit; font-weight: 900; }
.cb2-dashboard-nft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.cb2-dashboard-avatar-choice { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 9px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #f5ffe8; text-align: left; cursor: pointer; }
.cb2-dashboard-avatar-choice:hover, .cb2-dashboard-avatar-choice.active { border-color: rgba(168, 255, 62, .65); background: rgba(168, 255, 62, .11); transform: translateY(-1px); }
.cb2-dashboard-avatar-choice.active { box-shadow: 0 0 0 2px rgba(168, 255, 62, .18); }
.cb2-dashboard-avatar-choice img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.cb2-dashboard-avatar-choice span { min-width: 0; overflow: hidden; color: #f5ffe8; font-size: .78rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.cb2-dashboard-avatar-choice small { min-width: 0; overflow: hidden; color: var(--cb2-muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 560px) {
  .cb2-avatar-filter-row { grid-template-columns: 1fr; }
}

.cb2-dashboard-stat-list { display: grid; gap: 0; }
.cb2-dashboard-stat-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(168, 255, 62, .14); color: var(--cb2-muted); }
.cb2-dashboard-stat-list > div:last-child { border-bottom: 0; }
.cb2-dashboard-stat-list span { color: #f5ffe8; font-weight: 900; }
.cb2-dashboard-stat-list strong { color: var(--cb2-neon); text-align: right; }

.cb2-dashboard-achievements { display: grid; gap: 10px; }
.cb2-dashboard-achievements article { padding: 13px; border: 1px solid rgba(168, 255, 62, .18); border-radius: 16px; background: rgba(0, 0, 0, .16); }
.cb2-dashboard-achievements article.unlocked { border-color: rgba(168, 255, 62, .48); background: rgba(168, 255, 62, .09); }
.cb2-dashboard-achievements article.locked { opacity: .62; filter: grayscale(.7); }
.cb2-dashboard-achievements h3, .cb2-dashboard-achievements p { margin: 0 0 6px; }
.cb2-dashboard-achievements strong { color: var(--cb2-neon); }

.cb2-dashboard-unlocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cb2-dashboard-unlocks span { padding: 13px; border: 1px solid rgba(168, 255, 62, .18); border-radius: 15px; background: rgba(255, 255, 255, .05); color: var(--cb2-muted); }
.cb2-dashboard-unlocks strong { display: block; margin-bottom: 4px; color: var(--cb2-neon); font-size: 1.2rem; }
.cb2-referral-link { padding: 11px 13px; border: 1px solid rgba(168, 255, 62, .28); border-radius: 999px; background: rgba(168, 255, 62, .09); color: var(--cb2-neon); font-weight: 900; overflow-wrap: anywhere; }
.cb2-dashboard-reset-card { border-color: rgba(255, 107, 107, .34); background: radial-gradient(circle at 16% 0%, rgba(255, 107, 107, .13), transparent 34%), rgba(255, 107, 107, .075); }
.cb2-progress-smoke > span { background: linear-gradient(90deg, #f6c146, #ff8a00); }
.cb2-reset-confirm-warning { margin: 14px 0 0; padding: 13px; border: 1px solid rgba(255, 107, 107, .34); border-radius: 16px; background: rgba(255, 107, 107, .075); color: rgba(245, 255, 232, .88); line-height: 1.45; }
.cb2-reset-confirm-input { width: min(100%, 260px) !important; margin-inline: auto; font-size: 1.6rem !important; font-weight: 900 !important; letter-spacing: .18em; border-color: rgba(255, 107, 107, .55) !important; }
.cb2-reset-confirm-error { min-height: 1.2em; margin: 4px 0 0; color: #ffb3b3; font-weight: 900; }

@media (max-width: 520px) {
  .cb2-collector-top-row { grid-template-columns: 1fr; }
  .cb2-dashboard-reset-box { width: 100%; box-sizing: border-box; }
  .cb2-collector-identity-row { grid-template-columns: 1fr; }
  .cb2-collector-identity-row > button { width: 100%; }
  .cb2-dashboard-card-actions { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cb2-playbar { grid-template-columns: 1fr; }
  .cb2-quick-cluster { justify-content: stretch; }
  .cb2-quick-cluster > * { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cb2-dashboard-flip-inner { transition: none; }
  .cb2-edible-indicator:not(.cb2-edible-level-0) .cb2-edible-cookie,
  .cb2-avatar-melt.cb2-edible-level-5 .cb2-avatar-main { animation: none; }
}

.cb2-leaderboard-title { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; padding: 2px 2px 4px; }
.cb2-leaderboard-title h2, .cb2-leaderboard-title p { margin: 0 0 6px; }
.cb2-leaderboard-title > div > p:last-child { color: var(--cb2-muted); }
.cb2-leaderboards-stack { display: grid; gap: 16px; }
.cb2-leaderboard { gap: 14px; }
.cb2-leaderboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cb2-leaderboard-head h2 { margin: 0; color: var(--cb2-neon); font-size: 1.1rem; }
.cb2-leaderboard-head p { margin: 6px 0 0; color: var(--cb2-muted); font-size: .88rem; line-height: 1.4; }
.cb2-leaderboard-head > span { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(168, 255, 62, .26); border-radius: 999px; background: rgba(168, 255, 62, .08); color: var(--cb2-neon); font-size: .78rem; font-weight: 900; white-space: nowrap; }
.cb2-leaderboard-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cb2-leaderboard-period-grid > section { min-width: 0; min-height: 156px; padding: 12px; border: 1px solid rgba(168, 255, 62, .16); border-radius: 18px; background: rgba(0, 0, 0, .16); }
.cb2-leaderboard-period-grid h3 { margin: 0 0 10px; color: #f5ffe8; font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; }
.cb2-leaderboard-entry { display: grid; grid-template-columns: minmax(140px, 1fr) auto; align-items: start; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(168, 255, 62, .14); color: var(--cb2-muted); }
.cb2-leaderboard-entry:last-child { border-bottom: 0; }
.cb2-leaderboard-entry span { min-width: 0; color: #f5ffe8; font-weight: 800; overflow-wrap: break-word; word-break: normal; writing-mode: horizontal-tb; }
.cb2-leaderboard-entry strong { color: var(--cb2-neon); text-align: right; white-space: nowrap; writing-mode: horizontal-tb; }
.cb2-leaderboard-empty { padding: 14px; border: 1px dashed rgba(168, 255, 62, .25); border-radius: 14px; background: rgba(168, 255, 62, .05); color: var(--cb2-muted); line-height: 1.45; text-align: center; font-size: .9rem; }

@media (max-width: 760px) {
  .cb2-leaderboard-period-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cb2-leaderboard-entry { grid-template-columns: 1fr; gap: 4px; }
  .cb2-leaderboard-entry strong { text-align: left; }
}

.cb2-page-rooms > .cb2-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.cb2-legacy-room-card,
.cb2-shop-card {
  overflow: hidden;
  padding: 0;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cb2-room-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, .28);
}

.cb2-room-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cb2-room-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: #dfffad;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cb2-room-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.cb2-room-body h2,
.cb2-room-body p {
  margin: 0;
}

.cb2-room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cb2-room-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(98, 214, 255, .26);
  border-radius: 999px;
  background: rgba(98, 214, 255, .09);
  color: #dff8ff;
  font-size: .72rem;
  font-weight: 900;
}

.cb2-shop-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.cb2-shop-card {
  min-height: 100%;
  position: relative;
  perspective: 1200px;
  cursor: default;
}

.cb2-easter-inner {
  position: relative;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform .56s cubic-bezier(.2, .72, .2, 1);
}

.cb2-shop-card.is-easter-flipped .cb2-easter-inner {
  transform: rotateY(180deg);
}

.cb2-easter-front {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
}

.cb2-easter-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 24% 18%, rgba(168, 255, 62, .20), transparent 34%),
    radial-gradient(circle at 78% 88%, rgba(98, 214, 255, .16), transparent 36%),
    linear-gradient(155deg, rgba(5, 14, 7, .99), rgba(11, 32, 13, .98));
  color: #dfffad;
  text-align: center;
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.cb2-easter-back span {
  font-size: 3rem;
}

.cb2-easter-back strong {
  font-size: 1.2rem;
  line-height: 1.3;
}

.cb2-menu-hero {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  align-items: center;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 24px;
  background: rgba(5, 14, 7, .74);
  padding: clamp(12px, 2vw, 20px);
}

.cb2-menu-hero img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 20px;
}

.cb2-menu-hero h2 {
  margin: 0;
  color: #dfffad;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.cb2-menu-hero p:last-child {
  color: var(--cb2-muted);
  font-weight: 800;
  line-height: 1.5;
}

.cb2-legacy-menu-panel,
.cb2-bank-grid {
  margin-top: 16px;
}

.cb2-visual-item {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.cb2-item-visual {
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
}

.cb2-item-visual img,
.cb2-legacy-plant-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cb2-legacy-plant-media {
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(168, 255, 62, .18), transparent 45%), rgba(0, 0, 0, .28);
}

.cb2-process {
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.cb2-process-media {
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 35%, rgba(168, 255, 62, .20), transparent 34%),
    linear-gradient(145deg, rgba(98, 214, 255, .09), rgba(0, 0, 0, .32));
  font-size: clamp(3rem, 8vw, 6rem);
}

@media (max-width: 980px) {
  .cb2-dashboard-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cb2-wrap {
    width: calc(100% - 16px);
  }

  .cb2-dashboard-game-grid,
  .cb2-page-rooms > .cb2-grid,
  .cb2-menu-hero {
    grid-template-columns: 1fr;
  }

  .cb2-dashboard-wide {
    grid-column: auto;
  }

  .cb2-room-stats {
    grid-template-columns: 1fr;
  }

  .cb2-visual-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cb2-visual-item > .cb2-badge {
    grid-column: 2;
  }
}

/* game-rooms backup parity ------------------------------------------------ */

.contraband-v2-page[data-contraband-page="rooms"] .cb2-wrap {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 clamp(12px, 2vw, 24px) 46px;
}

.cb2-page-rooms.game-live-room-console {
  margin-top: 14px;
  padding: clamp(8px, 1.4vw, 16px);
  border-radius: 30px;
}

.cb2-page-rooms .cb2-backup-playbar {
  top: 0;
  margin: 0 0 12px;
  border-radius: 22px;
}

.cb2-page-rooms .game-room-quick-toke {
  background: var(--quick-toke-bg);
  color: var(--quick-toke-text);
  box-shadow: 0 12px 28px var(--quick-toke-shadow);
}

.cb2-notification-bell {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5999;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 48px;
  border: 1px solid rgba(255, 215, 93, .55);
  border-radius: 999px;
  background: rgba(6, 16, 6, .96);
  color: #ffd75d;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .4), 0 0 22px rgba(255, 215, 93, .14);
  font-size: 1.2rem;
  cursor: pointer;
}

.cb2-notification-bell span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ffd75d;
  color: #101006;
  font-size: .72rem;
  font-weight: 950;
}

.cb2-notification-bell span[hidden] { display: none !important; }

.game-notification-flash {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(168, 255, 62, .28);
  background: linear-gradient(135deg, rgba(24, 89, 35, .96), rgba(55, 142, 42, .92));
  color: #f5ffe8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.4;
  animation: cb2-notification-flash-in .28s ease-out;
}

.game-notification-flash.notification-infection {
  border-color: rgba(255, 54, 54, .72);
  background: linear-gradient(135deg, rgba(122, 10, 10, .96), rgba(186, 22, 22, .92));
  color: #fff3f3;
}

.game-notification-flash.notification-highness {
  border-color: rgba(222, 140, 255, .55);
  background: linear-gradient(135deg, rgba(83, 30, 124, .96), rgba(128, 57, 166, .92));
}

.game-notification-flash.notification-cloud {
  border-color: rgba(98, 214, 255, .62);
  background: linear-gradient(135deg, rgba(20, 64, 96, .97), rgba(38, 113, 156, .94));
  color: #e8f8ff;
}

@keyframes cb2-notification-flash-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-notification-tab {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 36px));
  max-height: min(74vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 93, .42);
  border-radius: 20px;
  background: rgba(6, 16, 6, .97);
  color: #f5ffe8;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .44), 0 0 24px rgba(255, 215, 93, .1);
  backdrop-filter: blur(9px);
}

.game-notification-tab[hidden] { display: none !important; }

.game-notification-tab-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 215, 93, .24);
  background: rgba(255, 215, 93, .08);
}

.game-notification-title {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ffd75d;
  font-weight: 950;
}

.game-notification-header-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.game-notification-clear {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 215, 93, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #ffd75d;
  font-size: .72rem;
  font-weight: 950;
}

.game-notification-clear:disabled { opacity: .42; }

.game-notification-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.25rem;
}

.game-notification-list {
  display: grid;
  gap: 9px;
  padding: 12px;
  overflow-y: auto;
}

.game-notification-item {
  padding: 11px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 14px;
  background: rgba(168, 255, 62, .065);
}

.game-notification-item strong { color: #ffd75d; }
.game-notification-item p { margin: 6px 0; white-space: pre-line; line-height: 1.4; }
.game-notification-item small { color: rgba(245, 255, 232, .62); }
.game-notification-empty { padding: 16px; color: rgba(245, 255, 232, .68); text-align: center; }

.game-notification-item.notification-outdoor,
.game-notification-item.notification-backwoods {
  border-color: rgba(255, 215, 93, .48);
  background: linear-gradient(135deg, rgba(145, 100, 8, .30), rgba(255, 215, 93, .09));
}

.game-notification-item.notification-outdoor strong,
.game-notification-item.notification-backwoods strong { color: #ffd75d; }

.game-notification-item.notification-highness {
  border-color: rgba(222, 140, 255, .52);
  background: linear-gradient(135deg, rgba(83, 30, 124, .42), rgba(222, 140, 255, .10));
}

.game-notification-item.notification-highness strong { color: #e8b0ff; }

.game-notification-item.notification-infection {
  border-color: rgba(255, 54, 54, .72);
  background: linear-gradient(135deg, rgba(122, 10, 10, .5), rgba(255, 31, 31, .14));
  box-shadow: inset 0 0 22px rgba(255, 31, 31, .08), 0 0 18px rgba(255, 31, 31, .12);
}

.game-notification-item.notification-infection strong { color: #ff5e5e; }

.game-notification-plant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}

.game-notification-plant-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(168, 255, 62, .34);
  border-radius: 999px;
  background: rgba(168, 255, 62, .11);
  color: #dfffad;
  font-size: .76rem;
  font-weight: 950;
  text-decoration: none;
}

.game-notification-plant-link:hover,
.game-notification-plant-link:focus-visible {
  border-color: rgba(168, 255, 62, .72);
  background: rgba(168, 255, 62, .20);
  color: #fff;
}

.cb2-notice.cb2-notice-infection {
  border-color: rgba(255, 54, 54, .72);
  background: rgba(122, 10, 10, .88);
  color: #fff3f3;
}

.cb2-room-save-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cb2-page-rooms .cb2-notice {
  margin: 0 0 12px;
  text-align: center;
  font-weight: 900;
}

.cb2-room-module {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--cb2-line);
  border-radius: 22px;
  background: var(--cb2-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 45px rgba(0, 0, 0, .28);
}

.cb2-room-tab-strip {
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(168, 255, 62, .24);
  background: rgba(7, 19, 9, .68);
}

.cb2-room-module .greenhouse-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-end;
  margin: 0;
  padding: 0 0 0 8px;
  border-bottom: 1px solid rgba(168, 255, 62, .28);
}

.cb2-room-module .greenhouse-tab {
  position: relative;
  transform: translateY(1px);
  padding: 8px 12px 9px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(168, 255, 62, .13), rgba(168, 255, 62, .045)), rgba(0, 0, 0, .22);
  color: rgba(245, 255, 232, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}

.cb2-room-module .greenhouse-tab::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 0;
  width: 8px;
  height: 11px;
  border-right: 1px solid rgba(168, 255, 62, .18);
  border-bottom: 1px solid rgba(168, 255, 62, .28);
  border-radius: 0 0 8px;
  opacity: .7;
}

.cb2-room-module .greenhouse-tab:hover {
  transform: translateY(0);
  border-color: rgba(168, 255, 62, .48);
  background: linear-gradient(180deg, rgba(168, 255, 62, .20), rgba(168, 255, 62, .07)), rgba(0, 0, 0, .22);
  color: #f5ffe8;
}

.cb2-room-module .greenhouse-tab.active {
  z-index: 2;
  transform: translateY(1px);
  border-color: rgba(168, 255, 62, .72);
  color: #102010;
  background: linear-gradient(180deg, var(--cb2-neon), rgba(168, 255, 62, .82));
  box-shadow: 0 -6px 18px rgba(168, 255, 62, .08), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.cb2-room-module .greenhouse-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--cb2-neon);
}

.room-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .20);
  color: inherit;
  font-size: .64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.greenhouse-tab .tab-count {
  margin-left: 4px;
  opacity: .72;
  font-weight: 800;
}

.cb2-active-room-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-self: start;
  justify-content: stretch;
  padding: 10px 4px 0;
}

.cb2-active-room-actions .active-greenhouse-action-label {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(245, 255, 232, .78);
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
}

.cb2-active-room-actions .cb2-room-conversion-note {
  padding: 6px;
  border: 1px solid rgba(168, 255, 62, .16);
  border-radius: 12px;
  background: rgba(0, 0, 0, .15);
}

.cb2-active-room-actions button,
.cb2-room-module .controls button,
.cb2-room-picker button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cb2-green), var(--cb2-neon));
  color: #061006;
  box-shadow: 0 8px 18px rgba(56, 201, 87, .16);
  font: inherit;
  font-size: .76rem;
  font-weight: 950;
  line-height: 1.05;
  cursor: pointer;
}

.cb2-active-room-actions button {
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  font-size: .84rem;
  white-space: normal;
}

.cb2-active-room-actions button:disabled,
.cb2-room-module .controls button:disabled,
.cb2-room-picker button:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.35);
}

.cb2-active-room-actions .plant-random-seed-btn,
.cb2-active-room-actions .breed-btn,
.cb2-active-room-actions .harvest-all-btn {
  grid-column: span 2;
}

.cb2-active-room-actions .plant-random-seed-btn {
  background: linear-gradient(135deg, #d7b078, #9b6a3b);
  color: #180f06;
}

.cb2-active-room-actions .harvest-all-btn {
  background: linear-gradient(135deg, #ffd75d, #ffae00);
  color: #111;
}

.cb2-active-room-actions .sell-all-plants-btn {
  background: linear-gradient(135deg, #de8cff, #7c3aed);
  color: #fff;
}

.cb2-room-module .plant-breed-btn {
  background: linear-gradient(135deg, #de8cff, #a855f7);
  color: #fff;
}

.cb2-active-room-actions .yank-all-btn,
.cb2-room-module button.danger {
  background: linear-gradient(135deg, #ff6b6b, #d92d20);
  color: #fff;
}

.cb2-active-room-actions .yank-male-plants-btn {
  background: linear-gradient(135deg, #ff9f43, #d35400);
  color: #fff;
}

.cb2-room-module .greenhouse-panel {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cb2-room-module .greenhouse-panel h2 {
  margin: 0;
  color: var(--cb2-neon);
  text-align: center;
  text-shadow: 0 0 18px rgba(168, 255, 62, .28);
}

.cb2-room-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.cb2-room-module .cb2-room-heading-row h2 {
  min-width: 0;
  text-align: left;
}

.cb2-room-column-switcher {
  display: grid;
  grid-template-columns: auto 150px;
  gap: 9px;
  align-items: center;
  justify-self: end;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 999px;
  background: rgba(0, 0, 0, .30);
  color: rgba(245, 255, 232, .82);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.cb2-room-column-switcher strong {
  color: var(--cb2-neon);
  font-size: .82rem;
}

.cb2-room-column-switcher input[type="range"] {
  width: 150px;
  margin: 0;
  accent-color: var(--cb2-neon);
  cursor: ew-resize;
}

.cb2-room-module .grow-space-note {
  margin: 10px 0 0;
  color: rgba(245, 255, 232, .74);
  font-weight: 800;
  text-align: center;
}

.cb2-room-picker {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(168, 255, 62, .20);
  border-radius: 18px;
  background: rgba(0, 0, 0, .20);
}

.cb2-room-picker[hidden] {
  display: none !important;
}

.cb2-room-picker .cb2-seed-picker,
.cb2-room-picker .cb2-clone-picker {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cb2-room-picker .cb2-clone-picker {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(168, 255, 62, .16);
}

.cb2-room-module .plant-container {
  display: grid;
  grid-template-columns: repeat(var(--cb2-room-columns, 5), minmax(0, 1fr));
  gap: 9px;
  align-items: start;
  margin-top: 12px;
}

.cb2-room-module .plant.notification-target-highlight {
  scroll-margin-top: 120px;
  scroll-margin-bottom: 80px;
  animation: cb2-notification-target-pulse .8s ease-in-out 3;
  outline: 3px solid #ffd75d;
  outline-offset: 3px;
}

@keyframes cb2-notification-target-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 93, 0); }
  50% { box-shadow: 0 0 28px rgba(255, 215, 93, .68); }
}

.cb2-room-module .inventory-empty {
  grid-column: 1 / -1;
  width: auto;
  padding: 20px;
  border: 1px dashed rgba(168, 255, 62, .22);
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  color: rgba(245, 255, 232, .72);
  font-weight: 850;
  text-align: center;
}

.cb2-room-module .plant {
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 15px;
  background: var(--cb2-card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  text-align: center;
  cursor: pointer;
  perspective: 1200px;
}

.cb2-room-module .plant:hover {
  border-color: rgba(168, 255, 62, .60);
}

.cb2-room-flip-inner {
  position: relative;
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .56s cubic-bezier(.2, .72, .2, 1);
}

.cb2-room-flip-card.is-flipped {
  z-index: 4;
}

.cb2-room-flip-card.is-flipped .cb2-room-flip-inner {
  min-height: 460px;
  transform: rotateY(180deg);
}

.cb2-room-flip-face {
  grid-area: 1 / 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cb2-room-flip-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cb2-room-flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 460px;
  overflow: auto;
  transform: rotateY(180deg);
  border: 1px solid rgba(168, 255, 62, .48);
  background: #030704;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 2px #000;
}

.cb2-room-flip-back h3 {
  margin: 0;
  color: #dfffad;
  text-align: center;
}

.cb2-room-flip-back p {
  margin: 3px 0;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

.cb2-room-module .plant-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 146px;
  margin: 2px 0 5px;
}

.cb2-room-module .plant-visual-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 146px);
  height: 146px;
  overflow: hidden;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(168, 255, 62, .12), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 34px rgba(0, 0, 0, .24);
}

.cb2-room-module .plant-visual-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  pointer-events: none;
}

.cb2-room-module .plant-stage-image {
  width: 118px;
  height: 118px;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(168, 255, 62, .20));
}

.cb2-room-module .plant-stage-image.shared-stage-video {
  width: 124px;
  height: 124px;
}

.cb2-room-module .plant:not(.dry-room-card) .plant-graphic {
  min-height: 0;
}

.cb2-room-module .plant:not(.dry-room-card) .plant-visual-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.cb2-room-module .plant:not(.dry-room-card) .plant-stage-image,
.cb2-room-module .plant:not(.dry-room-card) .plant-stage-image.shared-stage-video,
.cb2-room-module .plant:not(.dry-room-card) .plant-stage-image.mature-strain-image,
.cb2-room-module .plant:not(.dry-room-card) .plant-stage-image.dead-plant-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: inherit;
  object-fit: cover;
}

.cb2-room-module .plant-stage-image.mature-strain-image,
.cb2-room-module .plant-stage-image.dead-plant-image {
  width: 132px;
  height: 132px;
  max-width: 92%;
  max-height: 92%;
}

.cb2-room-module .dead-plant-frame {
  border-color: rgba(255, 107, 107, .58);
  background: radial-gradient(circle at 50% 28%, rgba(255, 107, 107, .16), transparent 58%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .30));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 28px rgba(255, 107, 107, .16), 0 14px 34px rgba(0, 0, 0, .24);
}

.cb2-room-module .dry-batch-stage-image {
  width: 132px;
  height: 132px;
  max-width: 92%;
  max-height: 92%;
}

.cb2-room-module .plant-stage-badge {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: rgba(245, 255, 232, .90);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
}

.cb2-room-module .plant-mature-ready .plant-stage-badge,
.cb2-room-module .stage-ready .plant-stage-badge {
  border-color: rgba(168, 255, 62, .76);
  background: linear-gradient(135deg, var(--cb2-neon), var(--cb2-green));
  color: #102010;
}

.cb2-room-module .plant-dead {
  border-color: rgba(255, 107, 107, .42);
  background: rgba(255, 107, 107, .075);
  filter: grayscale(.24);
}

.cb2-room-module .plant-contagious {
  border-color: rgba(255, 40, 40, .82);
  background: linear-gradient(180deg, rgba(117, 0, 0, .16), rgba(255, 34, 34, .08));
  box-shadow: 0 0 26px rgba(255, 34, 34, .18);
}

.cb2-room-module .plant-contagious .plant-stage-badge,
.contagious-plant-badge {
  border: 1px solid rgba(255, 73, 73, .72);
  border-radius: 10px;
  background: rgba(132, 0, 0, .9);
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255, 34, 34, .2);
}

.contagious-plant-badge { padding: 7px 9px; }

.cb2-room-module .dry-room-card {
  border-color: rgba(98, 214, 255, .32);
  background: linear-gradient(180deg, rgba(98, 214, 255, .09), rgba(0, 0, 0, .20));
}

.cb2-room-module .plant h3 {
  margin: 4px 0 3px;
  color: var(--cb2-neon);
  line-height: 1.08;
}

.cb2-room-module .plant h3.plant-front-name {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
}

.cb2-room-module .plant p {
  margin: 2px 0;
  font-size: .82rem;
  line-height: 1.16;
}

.seeded-plant-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 215, 93, .48);
  border-radius: 999px;
  background: rgba(255, 215, 93, .12);
  color: #ffe994;
  font-size: .72rem;
  font-weight: 950;
}

.cb2-seeded-panel {
  border-color: rgba(255, 215, 93, .38);
  background: rgba(255, 215, 93, .08);
}

.lineage-summary-line {
  display: block;
}

.lineage-full-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px !important;
  margin: 6px 0 0 !important;
  padding: 4px 9px !important;
  border: 1px solid rgba(168, 255, 62, .30) !important;
  border-radius: 999px !important;
  background: rgba(168, 255, 62, .12) !important;
  color: var(--cb2-neon) !important;
  box-shadow: none !important;
  font-size: .7rem !important;
  font-weight: 950 !important;
}

/* Backup room popups */
.seed-reveal-modal-backdrop.cb2-game-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.cb2-game-popup-backdrop .seed-reveal-modal {
  width: min(96vw, 760px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(168, 255, 62, .42);
  border-radius: 24px;
  background: rgba(6, 16, 6, .97);
  color: #f5ffe8;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62);
  text-align: center;
}

.cb2-game-popup-backdrop .seed-choice-modal {
  width: min(96vw, 820px);
}

.cb2-game-popup-backdrop .seed-reveal-rarity-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.cb2-game-popup-backdrop .seed-reveal-rarity-card {
  padding: 14px 10px;
  border: 1px solid rgba(245, 255, 232, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .22);
}

.cb2-game-popup-backdrop .seed-reveal-rarity-card.is-zero {
  opacity: .45;
}

.cb2-game-popup-backdrop .seed-reveal-rarity-number {
  display: block;
  font-size: clamp(2.6rem, 8vw, 4.35rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
  text-shadow: 0 0 20px currentColor;
}

.cb2-game-popup-backdrop .seed-reveal-rarity-label {
  display: block;
  margin-top: 9px;
  color: rgba(245, 255, 232, .9);
  font-size: .88rem;
  font-weight: 900;
}

.cb2-game-popup-backdrop .seed-reveal-rarity-card.legendary .seed-reveal-rarity-number { color: #ffd75d; }
.cb2-game-popup-backdrop .seed-reveal-rarity-card.epic .seed-reveal-rarity-number { color: #de8cff; }
.cb2-game-popup-backdrop .seed-reveal-rarity-card.rare .seed-reveal-rarity-number { color: #7cc7ff; }
.cb2-game-popup-backdrop .seed-reveal-rarity-card.common .seed-reveal-rarity-number { color: var(--cb2-neon); }

.cb2-game-popup-backdrop h2 {
  margin: 0 0 8px;
  color: var(--cb2-neon);
  text-shadow: 0 0 18px rgba(168, 255, 62, .28);
}

.cb2-game-popup-backdrop .game-popup-emoji {
  display: block;
  margin-bottom: 8px;
  font-size: 2.6rem;
}

.cb2-game-popup-backdrop .game-popup-message,
.cb2-game-popup-backdrop .seed-choice-option-meta {
  color: rgba(245, 255, 232, .82);
  font-weight: 800;
  line-height: 1.4;
}

.cb2-game-popup-backdrop .cb2-popup-pre-line {
  white-space: pre-line;
}

.cb2-game-popup-backdrop .seed-choice-list {
  display: grid;
  gap: 10px;
  max-height: min(55vh, 470px);
  margin: 18px 0;
  padding-right: 6px;
  overflow-y: auto;
}

.cb2-game-popup-backdrop .seed-choice-option {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(168, 255, 62, .26);
  border-radius: 18px;
  background: rgba(255, 255, 255, .075);
  color: #f5ffe8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: left;
  cursor: pointer;
}

.cb2-game-popup-backdrop .seed-choice-option:hover {
  border-color: rgba(168, 255, 62, .58);
  background: rgba(168, 255, 62, .12);
}

.cb2-game-popup-backdrop .seed-choice-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid rgba(168, 255, 62, .26);
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(168, 255, 62, .12), rgba(0, 0, 0, .28)), rgba(0, 0, 0, .28);
}

.cb2-game-popup-backdrop .seed-choice-thumb img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 5px;
  object-fit: contain;
}

.cb2-game-popup-backdrop .seed-choice-random-icon {
  font-size: 2rem;
}

.cb2-game-popup-backdrop .seed-choice-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cb2-game-popup-backdrop .seed-choice-option-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--cb2-neon);
  font-size: 1rem;
  font-weight: 900;
}

.cb2-game-popup-backdrop .seed-choice-pill {
  padding: 3px 8px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 999px;
  background: rgba(168, 255, 62, .10);
  font-size: .72rem;
  font-weight: 950;
}

.cb2-game-popup-backdrop .game-popup-input {
  display: block;
  width: min(100%, 430px);
  box-sizing: border-box;
  margin: 14px auto 6px;
  padding: 11px 14px;
  border: 1px solid rgba(168, 255, 62, .32);
  border-radius: 999px;
  outline: 0;
  background: rgba(0, 0, 0, .45);
  color: #f5ffe8;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.cb2-game-popup-backdrop .game-popup-input:focus {
  border-color: rgba(168, 255, 62, .72);
  box-shadow: 0 0 0 4px rgba(168, 255, 62, .10);
}

.cb2-game-popup-backdrop .game-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.cb2-game-popup-backdrop .harvest-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.cb2-game-popup-backdrop .harvest-choice-grid button {
  display: grid;
  gap: 6px;
  min-height: 94px;
  align-content: center;
  border: 1px solid rgba(168, 255, 62, .26);
  border-radius: 18px;
  background: rgba(255, 255, 255, .075);
  color: #f5ffe8;
  text-align: left;
}

.cb2-game-popup-backdrop .harvest-choice-grid button:hover:not(:disabled) {
  border-color: rgba(168, 255, 62, .58);
  background: rgba(168, 255, 62, .12);
}

.cb2-game-popup-backdrop .harvest-choice-grid strong {
  color: var(--cb2-neon);
}

.cb2-game-popup-backdrop .harvest-choice-grid small {
  color: rgba(245, 255, 232, .76);
  font-weight: 800;
  line-height: 1.35;
}

.cb2-game-popup-backdrop .harvest-choice-grid button:disabled {
  cursor: not-allowed;
  filter: grayscale(.7);
  opacity: .48;
}

.cb2-game-popup-backdrop button {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cb2-green), var(--cb2-neon));
  color: #061006;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.cb2-game-popup-backdrop .game-popup-secondary-btn {
  border: 1px solid rgba(245, 255, 232, .18);
  background: rgba(255, 255, 255, .13);
  color: #f5ffe8;
}

@media (max-width: 520px) {
  .cb2-game-popup-backdrop .seed-choice-option {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cb2-game-popup-backdrop .seed-choice-thumb {
    margin: 0 auto;
  }
}

.cb2-room-progress {
  width: 100%;
  margin-top: 3px;
}

.cb2-room-card-percent {
  color: rgba(245, 255, 232, .72);
  font-size: .67rem;
  font-weight: 900;
}

.cb2-room-card-timer {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 6px 7px;
  border: 1px solid rgba(98, 214, 255, .22);
  border-radius: 9px;
  background: rgba(98, 214, 255, .07);
  color: #dff8ff;
  font-size: .66rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.room-card-back-layout,
.plant-card-back-layout,
.dry-card-back-layout {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 0;
}

.cb2-room-module .plant-details {
  display: block;
  min-width: 0;
}

.cb2-room-module .controls.plant-bottom-actions,
.cb2-room-module .controls.dry-bottom-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
}

.cb2-room-module .controls .plant-tissue-culture-btn {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #7cc7ff, #2563eb);
  color: #fff;
}

.cb2-room-module .controls .plant-sell-btn {
  background: linear-gradient(135deg, #ffd75d, #ff8a00);
  color: #111;
}

.cb2-room-module .smoke-cost-note {
  display: block;
  margin-top: 2px;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
}

.cb2-room-module .cb2-breeding-panel,
.cb2-room-module .cb2-mother-panel {
  margin-top: 8px;
  text-align: left;
}

@media (max-width: 720px) {
  .cb2-game-popup-backdrop .seed-reveal-rarity-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb2-game-popup-backdrop .harvest-choice-grid {
    grid-template-columns: 1fr;
  }

  .contraband-v2-page[data-contraband-page="rooms"] .cb2-wrap {
    width: auto;
    padding-inline: 8px;
  }

  .cb2-active-room-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb2-active-room-actions .active-greenhouse-action-label,
  .cb2-active-room-actions .plant-random-seed-btn,
  .cb2-active-room-actions .breed-btn,
  .cb2-active-room-actions .harvest-all-btn {
    grid-column: 1 / -1;
  }

  .cb2-room-module .plant-container {
    grid-template-columns: repeat(var(--cb2-room-columns, 5), minmax(0, 1fr));
  }

  .cb2-room-heading-row {
    gap: 8px;
  }

  .cb2-room-column-switcher {
    grid-template-columns: auto 92px;
    gap: 6px;
    padding: 6px 8px;
    font-size: .64rem;
  }

  .cb2-room-column-switcher input[type="range"] {
    width: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb2-room-flip-inner {
    transition: none;
  }
}

/* Backup-style Market Menu, rebuilt as a native Contraband page. */
.cb2-page-market .cb2-market-page {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.cb2-market-banner {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(168, 255, 62, .26);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(10, 25, 13, .96), rgba(21, 48, 24, .88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.cb2-market-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

.cb2-market-banner h1,
.cb2-market-section-heading h2,
.cb2-market-side-card h2 {
  margin: 0;
}

.cb2-market-banner p:not(.cb2-eyebrow) {
  color: rgba(245, 255, 232, .76);
  line-height: 1.55;
}

.cb2-market-banner strong {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(168, 255, 62, .35);
  border-radius: 999px;
  color: var(--cb2-neon, #a8ff3e);
  background: rgba(168, 255, 62, .09);
}

.cb2-market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 16px;
  align-items: start;
}

.cb2-market-products,
.cb2-market-side-card {
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 20px;
  background: rgba(8, 20, 11, .92);
  padding: 14px;
}

.cb2-market-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cb2-market-product-grid,
.cb2-market-sidebar {
  display: grid;
  gap: 12px;
}

.cb2-market-product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cb2-market-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.cb2-market-product-card {
  min-width: 0;
  min-height: 500px;
  perspective: 1200px;
  outline: none;
}

.cb2-market-flip-inner {
  position: relative;
  min-height: 500px;
  transform-style: preserve-3d;
  transition: transform .46s ease;
}

.cb2-market-product-card.is-flipped .cb2-market-flip-inner {
  transform: rotateY(180deg);
}

.cb2-market-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "title"
    "badges"
    "amount"
    "actions";
  gap: 12px;
  align-content: center;
  backface-visibility: hidden;
  padding: 14px;
  border: 1px solid rgba(168, 255, 62, .25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 48, 27, .98), rgba(7, 16, 9, .98));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.cb2-market-product-card:focus-visible .cb2-market-face,
.cb2-market-product-card:hover .cb2-market-face {
  border-color: rgba(168, 255, 62, .62);
}

.cb2-market-back {
  transform: rotateY(180deg);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "backcopy" "amount" "actions";
  align-content: start;
  overflow-y: auto;
}

.cb2-market-back h3,
.cb2-market-back p,
.cb2-market-back .cb2-traits {
  grid-column: 1 / -1;
  margin: 0;
}

.cb2-market-back h3 { color: #f5ffe8; }
.cb2-market-back p { color: rgba(245, 255, 232, .76); line-height: 1.45; }
.cb2-market-back .cb2-market-warning { color: #ffd75d; font-weight: 900; }

.cb2-market-product-media {
  grid-area: media;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(168, 255, 62, .25);
  border-radius: 16px;
  background: rgba(0, 0, 0, .25);
}

.cb2-market-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cb2-market-title { grid-area: title; min-width: 0; }
.cb2-market-title strong { display: block; overflow: hidden; color: #f5ffe8; font-size: 1.06rem; text-overflow: ellipsis; white-space: nowrap; }
.cb2-market-title span { display: block; margin-top: 4px; color: rgba(245, 255, 232, .65); font-weight: 800; }

.cb2-market-badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.cb2-market-badges span {
  height: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: rgba(245, 255, 232, .82);
  font-size: .7rem;
  font-weight: 900;
  text-transform: capitalize;
}

.cb2-market-amount {
  grid-area: amount;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cb2-market-amount label {
  display: grid;
  gap: 5px;
  color: rgba(245, 255, 232, .72);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cb2-market-amount input,
.cb2-seller-choice select {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  border: 1px solid rgba(168, 255, 62, .3);
  border-radius: 11px;
  background: #efffde;
  color: #10200f;
  padding: 7px 9px;
  font-weight: 900;
}

.cb2-market-amount small,
.cb2-seller-choice small {
  color: rgba(245, 255, 232, .65);
  font-weight: 700;
  line-height: 1.35;
}

.cb2-market-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-self: end;
}

.cb2-market-actions button { width: 100%; min-height: 38px; padding-inline: 7px; border-radius: 999px; white-space: nowrap; }
.cb2-market-actions .market-sell-all-btn { border-color: rgba(168, 255, 62, .34); background: linear-gradient(135deg, rgba(168, 255, 62, .18), rgba(56, 201, 87, .14)); color: #f5ffe8; }

.cb2-market-side-card h2 { margin-bottom: 12px; }
.cb2-seller-choice {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(168, 255, 62, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.cb2-seller-choice > span:first-child,
.cb2-market-cleanup-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 15px;
  background: rgba(0, 0, 0, .25);
  font-size: 1.8rem;
}

.cb2-seller-choice > span:last-child { display: grid; gap: 6px; min-width: 0; }
.cb2-seller-choice strong { color: #f5ffe8; }

.cb2-market-cleanup {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  border-color: rgba(255, 215, 93, .34);
  background: rgba(255, 215, 93, .07);
}

.cb2-market-cleanup h2 { margin-bottom: 4px; }
.cb2-market-cleanup p:not(.cb2-eyebrow) { color: rgba(245, 255, 232, .7); line-height: 1.45; }
.cb2-market-cleanup-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cb2-market-cleanup-actions .cb2-btn { width: 100%; min-height: 40px; padding: 9px 11px; border-radius: 999px; font-size: .78rem; line-height: 1.15; }

@media (max-width: 1100px) {
  .cb2-market-banner,
  .cb2-market-layout { grid-template-columns: 1fr; }
  .cb2-market-banner img { max-height: 420px; }
  .cb2-market-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb2-market-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .cb2-market-section-heading { align-items: stretch; flex-direction: column; }
  .cb2-market-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb2-market-product-card,
  .cb2-market-flip-inner { min-height: 470px; }
}

@media (max-width: 410px) {
  .cb2-market-product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cb2-market-flip-inner { transition: none; }
}

/* Finished flower quality system restored from the original game. */
.weed-quality-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-left: 5px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.weed-quality-mids { color: #d6b47e; background: rgba(214, 180, 126, .12); }
.weed-quality-good { color: var(--cb2-neon); background: rgba(168, 255, 62, .12); }
.weed-quality-primo { color: #de8cff; background: rgba(222, 140, 255, .12); }
.weed-quality-fire { color: #ffb3b3; background: rgba(255, 107, 107, .14); }

.weed-quality-frame-mids { border-color: rgba(214, 180, 126, .68) !important; box-shadow: 0 0 18px rgba(214, 180, 126, .18); }
.weed-quality-frame-good { border-color: rgba(168, 255, 62, .68) !important; box-shadow: 0 0 18px rgba(168, 255, 62, .18); }
.weed-quality-frame-primo { border-color: rgba(222, 140, 255, .76) !important; box-shadow: 0 0 20px rgba(222, 140, 255, .24); }
.weed-quality-frame-fire { border-color: rgba(255, 107, 107, .82) !important; box-shadow: 0 0 22px rgba(255, 107, 107, .28); }

.market-quality-circle {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  align-self: center;
  padding: 0 !important;
  border: 2px solid rgba(255, 255, 255, .18) !important;
  border-radius: 999px;
  box-shadow: 0 0 13px currentColor;
}

.market-quality-circle.quality-mids { color: #d6b47e; background: #d6b47e; }
.market-quality-circle.quality-good { color: var(--cb2-neon); background: var(--cb2-neon); }
.market-quality-circle.quality-primo { color: #de8cff; background: #de8cff; }
.market-quality-circle.quality-fire { color: #ff6b6b; background: #ff6b6b; }

.cb2-finished-weed-section { grid-column: 1 / -1; }
.cb2-finished-weed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.cb2-finished-weed-card {
  min-height: 390px;
  perspective: 1200px;
  outline: none;
}

.cb2-finished-weed-inner {
  position: relative;
  min-height: 390px;
  transform-style: preserve-3d;
  transition: transform .46s ease;
}

.cb2-finished-weed-card.is-flipped .cb2-finished-weed-inner { transform: rotateY(180deg); }
.cb2-finished-weed-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backface-visibility: hidden;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(168, 255, 62, .24);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(24, 48, 27, .98), rgba(7, 16, 9, .98));
}

.cb2-finished-weed-back { transform: rotateY(180deg); }
.cb2-finished-weed-face h3,
.cb2-finished-weed-face p { margin: 0; }
.cb2-finished-weed-front p { color: rgba(245, 255, 232, .72); font-weight: 800; }
.cb2-finished-weed-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(168, 255, 62, .3);
  border-radius: 14px;
  background: rgba(0, 0, 0, .25);
}

.cb2-finished-weed-image img { width: 100%; height: 100%; object-fit: contain; }
.cb2-finished-weed-details { display: grid; gap: 7px; color: rgba(245, 255, 232, .78); font-size: .82rem; font-weight: 750; line-height: 1.42; }
.cb2-finished-weed-back .cb2-actions { margin-top: auto; }
.cb2-market-back .cb2-finished-weed-details { grid-column: 1 / -1; }
.cb2-market-title strong .weed-quality-badge { vertical-align: .12em; }

@media (prefers-reduced-motion: reduce) {
  .cb2-finished-weed-inner { transition: none; }
}

.cb2-drying-package-note {
  display: block;
  grid-column: 1 / -1;
  color: rgba(255, 215, 93, .86);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.35;
}

/* Backup Smoke Menu rebuilt as a native game page. */
.cb2-smoke-page { margin-top: 10px; }
.cb2-smoke-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 16px;
  align-items: start;
}

.cb2-smoke-products-panel,
.cb2-smoke-side-card {
  padding: 14px;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 20px;
  background: rgba(8, 20, 11, .92);
}

.cb2-smoke-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.cb2-smoke-heading h1,
.cb2-smoke-side-card h2 { margin: 0; }
.cb2-smoke-meter-pill {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(168, 255, 62, .3);
  border-radius: 999px;
  color: var(--cb2-neon);
  background: rgba(168, 255, 62, .09);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.cb2-smoke-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cb2-smoke-product-card {
  min-width: 0;
  min-height: 430px;
  perspective: 1200px;
  outline: none;
}

.cb2-smoke-flip-inner {
  position: relative;
  min-height: 430px;
  transform-style: preserve-3d;
  transition: transform .46s ease;
}

.cb2-smoke-product-card.is-flipped .cb2-smoke-flip-inner { transform: rotateY(180deg); }
.cb2-smoke-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backface-visibility: hidden;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(168, 255, 62, .24);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(24, 48, 27, .98), rgba(7, 16, 9, .98));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.cb2-smoke-product-card:hover .cb2-smoke-face,
.cb2-smoke-product-card:focus-visible .cb2-smoke-face { border-color: rgba(168, 255, 62, .62); }
.cb2-smoke-back { transform: rotateY(180deg); }
.cb2-smoke-face h3,
.cb2-smoke-face p { margin: 0; }
.cb2-smoke-front p { color: rgba(245, 255, 232, .7); font-size: .8rem; font-weight: 800; line-height: 1.4; }
.cb2-smoke-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(168, 255, 62, .28);
  border-radius: 15px;
  background: rgba(0, 0, 0, .25);
}
.cb2-smoke-product-image img { width: 100%; height: 100%; object-fit: contain; }
.cb2-smoke-face .smoke-product-action-pill { width: 100%; margin-top: auto; }
.cb2-smoke-product-details { display: grid; gap: 7px; color: rgba(245, 255, 232, .76); font-size: .82rem; font-weight: 750; line-height: 1.42; }
.cb2-smoke-sidebar { display: grid; gap: 12px; }
.cb2-smoking-choice {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(168, 255, 62, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}
.cb2-smoking-choice > span:first-child,
.cb2-smoke-cleanup-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 255, 62, .22);
  border-radius: 15px;
  background: rgba(0, 0, 0, .25);
  font-size: 1.8rem;
}
.cb2-smoking-choice > span:last-child { display: grid; gap: 6px; min-width: 0; }
.cb2-smoking-choice strong { color: #f5ffe8; }
.cb2-smoking-choice select {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(168, 255, 62, .3);
  border-radius: 11px;
  background: #efffde;
  color: #10200f;
  font-weight: 900;
}
.cb2-smoking-choice small,
.cb2-edible-boost-status small { color: rgba(245, 255, 232, .65); font-weight: 700; line-height: 1.35; }
.cb2-edible-boost-status { display: grid; gap: 4px; margin-top: 12px; padding: 10px; border: 1px solid rgba(98, 214, 255, .24); border-radius: 14px; background: rgba(98, 214, 255, .07); }
.cb2-smoke-cleanup { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; border-color: rgba(255, 215, 93, .34); background: rgba(255, 215, 93, .07); }
.cb2-smoke-cleanup h2 { margin-bottom: 4px; }
.cb2-smoke-cleanup p:not(.cb2-eyebrow) { color: rgba(245, 255, 232, .7); line-height: 1.45; }

@media (max-width: 1100px) {
  .cb2-smoke-layout { grid-template-columns: 1fr; }
  .cb2-smoke-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cb2-smoke-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb2-smoke-heading { align-items: stretch; flex-direction: column; }
}

@media (max-width: 430px) {
  .cb2-smoke-product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cb2-smoke-flip-inner { transition: none; }
}

/* Backup Dank Bank rebuilt as a native tabbed vault. */
.cb2-bank-page {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.cb2-bank-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.cb2-bank-heading h1 { margin: 0; color: var(--cb2-neon); }
.cb2-bank-heading p:not(.cb2-eyebrow) { margin: 5px 0 0; color: rgba(245, 255, 232, .72); font-weight: 800; }
.cb2-bank-wallet {
  padding: 8px 11px;
  border: 1px solid rgba(168, 255, 62, .26);
  border-radius: 999px;
  background: rgba(168, 255, 62, .09);
  color: rgba(245, 255, 232, .88);
  font-weight: 900;
  white-space: nowrap;
}
.cb2-bank-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.cb2-bank-toolbar label { display: grid; gap: 5px; color: rgba(245, 255, 232, .76); font-size: .76rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.cb2-bank-toolbar input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 13px;
  border: 1px solid rgba(168, 255, 62, .28);
  border-radius: 999px;
  background: #efffde;
  color: #10200f;
  font-size: .96rem;
  font-weight: 850;
}
.cb2-bank-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cb2-bank-tab {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(168, 255, 62, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(245, 255, 232, .82);
  box-shadow: none;
  white-space: nowrap;
}
.cb2-bank-tab > span { display: inline-flex; min-width: 22px; min-height: 22px; align-items: center; justify-content: center; padding: 2px 7px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(0, 0, 0, .24); color: var(--cb2-neon); font-size: .72rem; font-weight: 950; }
.cb2-bank-tab.active { border-color: rgba(168, 255, 62, .72); background: linear-gradient(135deg, var(--cb2-neon), var(--cb2-green)); color: #102010; }
.cb2-bank-tab.active > span { color: #102010; background: rgba(255, 255, 255, .42); }
.cb2-bank-body { min-height: 500px; overflow: hidden; border: 1px solid rgba(168, 255, 62, .2); border-radius: 20px; background: rgba(0, 0, 0, .18); }
.cb2-bank-panel { padding: 14px; }
.cb2-bank-panel[hidden] { display: none !important; }
.cb2-bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.cb2-bank-panel-footer { display: flex; justify-content: flex-end; margin-top: 14px; }
.cb2-bank-item { min-width: 0; min-height: 465px; perspective: 1200px; outline: none; }
.cb2-bank-item[hidden] { display: none !important; }
.cb2-bank-item-inner { position: relative; min-height: 465px; transform-style: preserve-3d; transition: transform .48s ease; }
.cb2-bank-item.is-flipped .cb2-bank-item-inner { transform: rotateY(180deg); }
.cb2-bank-item-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backface-visibility: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 11px;
  border: 1px solid rgba(168, 255, 62, .26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 48, 27, .98), rgba(7, 16, 9, .98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.cb2-bank-item:hover .cb2-bank-item-face,
.cb2-bank-item:focus-visible .cb2-bank-item-face { border-color: rgba(168, 255, 62, .6); }
.cb2-bank-item-back { transform: rotateY(180deg); background: linear-gradient(145deg, rgba(7, 15, 8, .99), rgba(1, 5, 2, .99)); color: #fff; }
.cb2-bank-item-face h3,
.cb2-bank-item-face p { margin: 0; }
.cb2-bank-item-face p { color: rgba(245, 255, 232, .74); font-size: .84rem; font-weight: 800; line-height: 1.4; }
.cb2-bank-item-media { display: flex; width: 100%; aspect-ratio: 1; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(168, 255, 62, .24); border-radius: 16px; background: rgba(0, 0, 0, .28); }
.cb2-bank-item-media img { width: 100%; height: 100%; object-fit: contain; padding: 5px; box-sizing: border-box; }
.cb2-bank-product-icon { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 4rem; }
.cb2-bank-item-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; align-items: center; }
.cb2-bank-item-actions button,
.cb2-bank-item-actions a { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; margin: 0 !important; padding: 7px 10px; border-radius: 999px; font-size: .76rem; font-weight: 950; text-decoration: none; }
.cb2-bank-item-actions .inventory-use-action { background: linear-gradient(135deg, var(--cb2-neon), var(--cb2-green)) !important; color: #071107 !important; }
.cb2-bank-process-shortcuts { display: flex; width: 100%; gap: 7px; align-items: center; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0; }
.cb2-bank-process-shortcuts > a { width: 46px; height: 46px; min-height: 46px; flex: 0 0 46px; padding: 3px !important; overflow: hidden; border: 1px solid rgba(98, 214, 255, .38) !important; border-radius: 13px !important; background: rgba(98, 214, 255, .12) !important; }
.cb2-bank-process-shortcuts .cb2-refinement-media { width: 100%; height: 100%; min-height: 0; }
.cb2-bank-flip-toggle { width: 100%; min-height: 36px; margin-top: auto !important; border: 1px solid rgba(168, 255, 62, .28) !important; border-radius: 999px; background: rgba(168, 255, 62, .1) !important; color: var(--cb2-neon) !important; box-shadow: none !important; font-size: .76rem !important; font-weight: 950; }
.cb2-bank-item-details { display: grid; gap: 8px; padding: 10px; border: 1px solid rgba(168, 255, 62, .18); border-radius: 14px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .88rem; font-weight: 850; line-height: 1.55; text-shadow: 0 1px 2px #000; }
.cb2-bank-nft-card.is-genesis .cb2-bank-item-face { border-color: rgba(255, 215, 93, .55); background: linear-gradient(145deg, rgba(63, 45, 7, .92), rgba(12, 10, 3, .98)); }

@media (max-width: 820px) {
  .cb2-bank-heading,
  .cb2-bank-toolbar { grid-template-columns: 1fr; }
  .cb2-bank-wallet { width: fit-content; }
}
@media (max-width: 560px) {
  .cb2-bank-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cb2-bank-item-inner { transition: none; }
}

.cb2-bank-item-face h3,
.cb2-smoke-face h3 {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
