.cc-hide-stock-title .relative.z-10.flex.min-h-0.flex-1.flex-col.items-center {
  visibility: hidden;
  pointer-events: none;
}
html.cc-hide-stock-title .relative.z-10.flex.min-h-0.flex-1.flex-col.items-center {
  visibility: hidden;
  pointer-events: none;
}
body.cc-shop-on #root .fixed.inset-0 {
  opacity: 0 !important;
  pointer-events: none !important;
}

#cc-shell {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
  font-family: Outfit, system-ui, sans-serif;
  color: #f4efe4;
  background: #070605;
  overflow: hidden;
}
#cc-shell.on { display: block; }
.piece-stone {
  filter: grayscale(1) contrast(1.18) brightness(0.82) sepia(0.5) !important;
}
#cc-shell * { box-sizing: border-box; }

/* ── cinematic board ── */
#cc-cine {
  position: absolute;
  inset: -4%;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: saturate(0.92) contrast(1.05);
}
.cc-cine-board {
  width: min(128vh, 100vw);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  transform: perspective(1400px) rotateX(18deg) rotateZ(-8deg) scale(1.12);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 10px #1a140c,
    inset 0 0 0 12px #c4a45a;
  background: #1c1610;
}
.cc-sq {
  position: relative;
  background: #d7c4a0;
}
.cc-sq.dark { background: #5a4630; }
.cc-cine-piece {
  position: absolute;
  width: 118%;
  height: 140%;
  left: -9%;
  bottom: 0;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s ease, filter 0.3s;
  z-index: 2;
  pointer-events: none;
}
.cc-cine-piece.black { transform: scaleX(-1); }
.cc-cine-piece.hit { filter: drop-shadow(0 0 12px #ffb15a) brightness(1.4); }
.cc-cine-piece.stone { filter: grayscale(1) contrast(1.2) brightness(0.85); }
.cc-cine-piece.evo { filter: drop-shadow(0 0 16px #7dffb0) brightness(1.25); }
.cc-bolt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 42%, #fff7c2 46%, #7ecbff 50%, #fff 52%, transparent 58%);
  mix-blend-mode: screen;
}
.cc-bolt.on { animation: ccBolt 0.55s ease-out; }
.cc-clash {
  position: absolute;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d0 0%, #e07a3a 35%, transparent 70%);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cc-clash.on { animation: ccClash 0.5s ease-out; }
.cc-caption {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2.2vw, 28px);
  letter-spacing: 0.04em;
  color: #f3e6c6;
  text-shadow: 0 2px 18px #000;
  opacity: 0.92;
  white-space: nowrap;
  pointer-events: none;
}
@keyframes ccBolt {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes ccClash {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

.cc-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 70% 40%, transparent 10%, rgba(8, 6, 4, 0.28) 48%, rgba(8, 6, 4, 0.78) 100%),
    linear-gradient(180deg, rgba(10, 8, 6, 0.2) 0%, rgba(8, 6, 4, 0.55) 70%, rgba(6, 4, 3, 0.88) 100%);
  pointer-events: none;
}

.cc-bento {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 3.2vh 3.2vw 2.4vh;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.72fr 0.95fr 0.82fr;
  grid-template-rows: auto 1.15fr 0.92fr 0.85fr;
  gap: 11px 12px;
}

.cc-brand {
  grid-column: 1 / 4;
  grid-row: 1;
  align-self: end;
  pointer-events: none;
}
.cc-brand .kicker {
  margin: 0;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 10px;
  color: #d7c08a;
}
.cc-brand h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 0.86;
  margin: 6px 0 0;
  font-weight: 600;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.cc-brand p {
  max-width: 34rem;
  margin: 8px 0 0;
  color: #d9d0c2;
  font-size: 13.5px;
  line-height: 1.45;
}

.cc-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background: #14110c;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  transform: rotate(var(--tilt, 0deg));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 236, 190, 0.08);
}
.cc-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(214, 186, 122, 0.55);
  box-shadow:
    inset 0 0 0 4px rgba(18, 14, 10, 0.55),
    inset 0 0 0 5px rgba(196, 164, 90, 0.45);
}
.cc-tile::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(#e8d39a, #e8d39a) top left / 14px 1px no-repeat,
    linear-gradient(#e8d39a, #e8d39a) top left / 1px 14px no-repeat,
    linear-gradient(#e8d39a, #e8d39a) top right / 14px 1px no-repeat,
    linear-gradient(#e8d39a, #e8d39a) top right / 1px 14px no-repeat,
    linear-gradient(#e8d39a, #e8d39a) bottom left / 14px 1px no-repeat,
    linear-gradient(#e8d39a, #e8d39a) bottom left / 1px 14px no-repeat,
    linear-gradient(#e8d39a, #e8d39a) bottom right / 14px 1px no-repeat,
    linear-gradient(#e8d39a, #e8d39a) bottom right / 1px 14px no-repeat;
}
.cc-tile:hover { filter: brightness(1.1); }
.cc-tile:hover::before { border-color: #f0d78a; }
.cc-tile img.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.08);
  z-index: 0;
}
.cc-tile .shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 18%, rgba(8, 6, 4, 0.9) 100%);
}
.cc-tile .label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1;
}
.cc-tile .sub {
  display: block;
  margin-top: 5px;
  font-family: Outfit, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2d2a8;
  opacity: 0.92;
}
.cc-tile .price {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a140c;
  background: #e8d39a;
  padding: 4px 7px;
  font-weight: 700;
}
.cc-tile .owned {
  background: #7dffb0;
  color: #102214;
}

.cc-cpu { grid-column: 1 / 3; grid-row: 2 / 4; --tilt: -1.1deg; }
.cc-bonus { grid-column: 3 / 5; grid-row: 2; --tilt: 1.2deg; }
.cc-hot { grid-column: 5; grid-row: 2 / 4; --tilt: 0.7deg; }
.cc-multi { grid-column: 3 / 5; grid-row: 3; --tilt: -0.5deg; }
.cc-how { grid-column: 1; grid-row: 4; --tilt: 1deg; }
.cc-maps { grid-column: 2; grid-row: 4; --tilt: -0.8deg; }
.cc-tf { grid-column: 3; grid-row: 4; --tilt: 0.4deg; }
.cc-med { grid-column: 4; grid-row: 4; --tilt: -0.6deg; }
.cc-rites { grid-column: 5; grid-row: 4; --tilt: 0.9deg; }
.cc-vr { display: none; }

.cc-cpu .label { font-size: 34px; }
.cc-multi .label { font-size: 26px; }
.cc-maps .label { font-size: 22px; }
.cc-maps img.art { object-position: 50% 48%; }

/* ── lobby ── */
#cc-lobby {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(8, 6, 4, 0.86);
  padding: 5vh 6vw;
}
#cc-lobby.on { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
#cc-lobby h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  margin: 0;
}
.cc-seats { display: flex; gap: 28px; align-items: stretch; width: min(920px, 100%); }
.cc-seat {
  flex: 1;
  min-height: 280px;
  border: 1px solid rgba(214, 186, 122, 0.4);
  background: #14110d;
  position: relative;
  overflow: hidden;
}
.cc-seat img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.cc-seat.empty {
  display: flex; align-items: center; justify-content: center;
  color: #9a8f7c; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px;
}
.cc-seat .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(8, 6, 4, 0.92));
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
}
.cc-seat .meta small {
  display: block; font-family: Outfit, sans-serif; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: #d9c8a0;
}
.cc-board-set { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cc-board-set button {
  background: #1c1812; color: #f4efe4; border: 1px solid #6a5a3a;
  padding: 10px 14px; cursor: pointer;
  font-family: Outfit, sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.cc-board-set button.on { background: #c4a45a; color: #1a140c; }
.cc-board-set button.locked { opacity: 0.7; }
.cc-lobby-actions { display: flex; gap: 10px; }
.cc-lobby-actions button, #cc-lobby .back {
  cursor: pointer; border: 1px solid #c4a45a; background: #c4a45a; color: #1a140c;
  padding: 12px 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
#cc-lobby .back { background: transparent; color: #f4efe4; }
.cc-note { color: #cfc6b8; font-size: 13px; max-width: 36rem; text-align: center; }

.cc-chip {
  position: absolute; top: 10px; right: 12px; z-index: 70;
  display: none; gap: 8px; align-items: center;
  background: rgba(12, 10, 8, 0.82); border: 1px solid rgba(214, 186, 122, 0.35);
  padding: 6px 10px; font-size: 12px;
}
.cc-chip.on { display: flex; }
.cc-chip img { width: 28px; height: 36px; object-fit: cover; }

/* ── pack shop ── */
#cc-shop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(8, 6, 4, 0.82);
  padding: 3vh 3vw;
  overflow: auto;
}
#cc-shop.on { display: block; }
.cc-shop-panel {
  margin: 0 auto;
  max-width: 1100px;
  background: #16120e;
  border: 1px solid rgba(214, 186, 122, 0.5);
  box-shadow: inset 0 0 0 6px rgba(20, 16, 12, 0.8), 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 22px 24px 26px;
  position: relative;
}
.cc-shop-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cc-shop-top h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 42px);
  margin: 4px 0 0;
  line-height: 0.95;
}
.cc-shop-top .kicker {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: #d7c08a;
}
.cc-shop-top p.blurb {
  margin: 8px 0 0;
  color: #d5cbbd;
  max-width: 40rem;
  font-size: 14px;
  line-height: 1.45;
}
.cc-x {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid #c4a45a; background: transparent; color: #f4efe4;
  cursor: pointer; font-size: 20px;
  pointer-events: auto;
  z-index: 5;
  position: relative;
}
.cc-pack-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.cc-pack-list button {
  text-align: left;
  background: #1c1812;
  color: inherit;
  border: 1px solid rgba(214, 186, 122, 0.4);
  padding: 16px;
  cursor: pointer;
}
.cc-pack-list button h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  margin: 0;
}
.cc-feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.cc-card {
  cursor: pointer;
  background: #1a1611;
  border: 1px solid rgba(214, 186, 122, 0.35);
  padding: 10px;
  color: inherit;
  text-align: left;
}
.cc-card.hero { grid-column: span 1; }
.cc-card img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(0.9);
  transform-origin: center center;
  display: block;
  background: #120e0a;
  border: 1px solid rgba(214, 186, 122, 0.25);
}
.cc-card .nm {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  margin: 8px 0 0;
}
.cc-card .meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d9c8a0;
  margin-top: 2px;
}
.cc-card .desc {
  font-size: 12.5px;
  color: #cfc6b8;
  margin-top: 6px;
  line-height: 1.4;
}
.cc-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.cc-grid-cards .cc-card img { aspect-ratio: 3 / 4; }
.cc-shop-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cc-shop-actions button {
  cursor: pointer;
  border: 1px solid #c4a45a;
  background: #c4a45a;
  color: #1a140c;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cc-shop-actions .ghost {
  background: transparent;
  color: #f4efe4;
}
.cc-err { color: #e07a6a; font-size: 13px; margin-top: 8px; }
.cc-ok { color: #7dffb0; font-size: 14px; margin-top: 10px; }

#cc-closeup {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  background: rgba(6, 4, 3, 0.88);
  padding: 4vh 4vw;
}
#cc-closeup.on { display: flex; align-items: center; justify-content: center; }
.cc-closeup-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(240px, 420px);
  gap: 28px;
  width: min(860px, 100%);
  background: #16120e;
  border: 1px solid rgba(214, 186, 122, 0.5);
  padding: 22px;
  position: relative;
}
.cc-closeup-card > .cc-x {
  position: absolute;
  top: 12px;
  right: 12px;
}
.cc-closeup-card img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(0.9);
  transform-origin: center center;
  background: #120e0a;
  border: 1px solid rgba(214, 186, 122, 0.3);
}
.cc-closeup-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  margin: 0;
  line-height: 0.95;
}
.cc-types { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cc-types span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid #c4a45a;
  padding: 3px 7px;
  color: #e8d39a;
}
.cc-closeup-card .body {
  margin-top: 12px;
  color: #d5cbbd;
  font-size: 15px;
  line-height: 1.5;
}

#cc-howto {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 4, 0.86);
  padding: 4vh 4vw;
}
#cc-howto.on { display: flex; }
.cc-howto-panel {
  position: relative;
  width: min(640px, 100%);
  background: #16120e;
  border: 1px solid rgba(214, 186, 122, 0.5);
  box-shadow: inset 0 0 0 6px rgba(20, 16, 12, 0.8), 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 30px 26px;
  color: #f4efe4;
}
.cc-howto-panel .kicker {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: #d7c08a;
}
.cc-howto-panel h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 6px 0 12px;
  line-height: 0.95;
}
.cc-howto-panel ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
  color: #d5cbbd;
  line-height: 1.5;
  font-size: 15px;
}
.cc-howto-panel li { margin: 0 0 8px; }
.cc-howto-panel .cc-err { color: #f0b4a0; }
.cc-howto-panel > button {
  border: 1px solid #c4a45a;
  background: #e8d39a;
  color: #1a140c;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}
.cc-howto-panel .cc-x {
  position: absolute;
  top: 12px;
  right: 12px;
}

html.cc-mobile .cc-map-large { display: none !important; }

#cc-mob {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #0c0b09;
  color: #f4efe4;
  font-family: Outfit, system-ui, sans-serif;
  flex-direction: column;
  touch-action: auto;
}
html.cc-mob-on #cc-mob,
body.cc-mob-on #cc-mob { display: flex !important; }
html.cc-mob-on #root { visibility: hidden; pointer-events: none; }
html.cc-mobile #cc-howto { z-index: 210; }
.cc-mob-hud {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px calc(6px + env(safe-area-inset-top, 0px));
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: #14110d;
  border-bottom: 1px solid rgba(214, 186, 122, 0.35);
  z-index: 4;
  touch-action: manipulation;
}
.cc-mob-turn {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-mob-hud-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cc-mob-ap {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8d39a;
  white-space: nowrap;
  padding: 8px 4px 8px 0;
}
.cc-mob-hud button {
  border: 1px solid #c4a45a;
  background: transparent;
  color: #f4efe4;
  padding: 8px 9px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  touch-action: manipulation;
  flex: none;
  white-space: nowrap;
}
.cc-mob-hud button.on { background: #c4a45a; color: #1a140c; }
.cc-mob-port {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  perspective: 980px;
  display: grid;
  place-items: center;
  touch-action: none;
  padding: 2% 4.5%;
  box-sizing: border-box;
}
.cc-mob-world {
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
}
.cc-mob-board {
  width: min(88vmin, 520px);
  aspect-ratio: 1;
  display: grid;
  background: #1c1610;
  box-shadow: inset 0 0 0 6px #1a140c, inset 0 0 0 8px #c4a45a, 0 18px 40px #0008;
  transform-style: preserve-3d;
}
.cc-mob-board.iso {
  overflow: visible;
}
.cc-mob-sq {
  position: relative;
  border: 0;
  padding: 0;
  background: #d7c4a0;
  overflow: hidden;
  transform-style: preserve-3d;
}
.cc-mob-sq.dark { background: #5a4630; }
.cc-mob-sq.sel { outline: 3px solid #e8d39a; outline-offset: -3px; }
.cc-mob-sq.legal { box-shadow: inset 0 0 0 3px #7dffb0; }
.cc-mob-sq.last { box-shadow: inset 0 0 0 3px #e07a3a; }
.cc-mob-sq.hole { background: #0a0908 !important; }
.cc-mob-unit {
  position: absolute;
  inset: 1%;
  width: 98%;
  height: 98%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.cc-mob-piece {
  width: 100%;
  height: 88%;
  object-fit: contain;
  object-position: 50% 80%;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px #0008);
}
.cc-mob-piece.black { transform: scaleX(-1); }
.cc-mob-board.iso .cc-mob-sq {
  overflow: visible;
  transform-style: preserve-3d;
}
.cc-mob-board.iso .cc-mob-unit {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 145%;
  height: 175%;
  transform-origin: 50% 50%;
  transform: translate3d(-50%, -50%, 0) rotateZ(45deg) rotateX(-58deg);
  transform-style: preserve-3d;
  justify-content: center;
  z-index: 4;
}
.cc-mob-board.iso .cc-mob-piece {
  height: 100%;
  object-position: 50% 50%;
}
.cc-mob-board.iso .cc-mob-hp { margin-bottom: 0; }
.cc-mob-hp {
  width: 84%;
  height: 3px;
  margin: 1px 0 3px;
  border-radius: 99px;
  background: #0c0c0ecc;
  overflow: hidden;
}
.cc-mob-hp > i {
  display: block;
  height: 100%;
  background: var(--color-hp-high, #5cae6e);
}
.cc-mob-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: 50% 50%;
  pointer-events: none;
  z-index: 1;
}
.cc-mob-msg {
  flex: none;
  margin: 0;
  min-height: 1.2em;
  padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  color: #d5cbbd;
}
#cc-mob.cc-mob-has-hand .cc-mob-msg { display: none; }

html.cc-mobile #cc-shell .cc-bento {
  padding: 8px;
  gap: 8px;
}
html.cc-mobile .cc-brand h1 { font-size: clamp(36px, 12vw, 56px); }
html.cc-mobile .cc-brand p { font-size: 13px; max-width: none; }

@media (max-width: 520px) {
  html.cc-mobile .cc-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto repeat(8, minmax(72px, auto));
    height: auto;
    min-height: 100%;
    overflow: auto;
    padding: 8px;
    gap: 8px;
  }
  html.cc-mobile .cc-brand { grid-column: 1 / -1; grid-row: 1; padding: 12px 8px 4px; }
  html.cc-mobile .cc-cpu { grid-column: 1 / -1; grid-row: 2; min-height: 96px; }
  html.cc-mobile .cc-bonus { grid-column: 1; grid-row: 3; }
  html.cc-mobile .cc-hot { grid-column: 2; grid-row: 3; }
  html.cc-mobile .cc-multi { grid-column: 1 / -1; grid-row: 4; }
  html.cc-mobile .cc-how { grid-column: 1; grid-row: 5; }
  html.cc-mobile .cc-maps { grid-column: 2; grid-row: 5; }
  html.cc-mobile .cc-tf { grid-column: 1; grid-row: 6; }
  html.cc-mobile .cc-med { grid-column: 2; grid-row: 6; }
  html.cc-mobile .cc-rites { grid-column: 1 / -1; grid-row: 7; }
  html.cc-mobile .cc-cpu .label { font-size: 26px; }
  html.cc-mobile .cc-tile .label { font-size: 18px; }
}

/* Keep the bonus/deck hand above the mobile board overlay. */
html.cc-mob-on #root .absolute.bottom-2.left-3.z-40,
html.cc-mob-on #root .fixed.z-\[85\] {
  visibility: visible !important;
  z-index: 70 !important;
}
html.cc-mob-on #root .absolute.bottom-2.left-3.z-40 .pointer-events-auto {
  pointer-events: auto !important;
}
html.cc-mob-on #root .absolute.bottom-2.left-3.z-40 .mb-1.flex.flex-wrap,
html.cc-mob-on #root .absolute.bottom-2.left-3.z-40 p.mb-1 {
  display: none !important;
}

/* Hide white/black piece bases on mobile. */
html.cc-mobile .absolute.bottom-\[6\%\].left-1\/2.z-0.-translate-x-1\/2.rounded-full {
  display: none !important;
}

/* Center XP orbs in the tile (img height:auto fights absolute inset). */
html.cc-mobile img[src*="xp-orb"] {
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 38% !important;
  height: 38% !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%) !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}

/* Pieces + in-tile chrome 2% smaller. */
html.cc-mobile .relative.z-\[1\].flex.h-\[88\%\].w-\[94\%\].items-end.justify-center {
  width: 92.12% !important;
  height: 86.24% !important;
}
html.cc-mobile .absolute.inset-x-0.top-0.z-20.flex.flex-col.items-center {
  transform: scale(0.98);
  transform-origin: top center;
}

/* 3D field is the iso toggle — no pack lock. */
html.cc-mobile button .ml-1.inline.size-3\.5.text-gold,
html.cc-mobile button .ml-1.inline.size-3.text-gold {
  display: none !important;
}
html.cc-mobile.cc-mob-iso .grid.grid-cols-8.overflow-hidden.rounded-\[var\(--radius-lg\)\] {
  transform: perspective(900px) rotateX(52deg) rotateZ(-45deg) scale(1.06);
  transform-origin: 50% 50%;
}

/* Deck/bonus hand: cards ~15% smaller, type ~25% smaller. */
html.cc-mobile .hand-card {
  width: 8.5765rem !important;
}
html.cc-mobile .hand-fan.h-\[23\.35rem\] {
  height: 19.85rem !important;
}
html.cc-mobile .h-\[7\.4rem\].w-\[5\.4rem\].shrink-0 {
  height: 6.29rem !important;
  width: 4.59rem !important;
}
html.cc-mobile .fixed.z-\[85\].w-\[6\.16rem\] {
  width: 5.236rem !important;
}
html.cc-mobile .hand-card:hover,
html.cc-mobile .hand-card.is-held {
  transform: rotate(0) translateY(-2.89rem) scale(1.129);
}
html.cc-mobile .hand-card .text-lg {
  font-size: calc(var(--text-lg) * 0.75) !important;
  line-height: 1.15 !important;
}
html.cc-mobile .hand-card .text-sm {
  font-size: calc(var(--text-sm) * 0.75) !important;
  line-height: 1.2 !important;
}
html.cc-mobile .hand-card .text-xs {
  font-size: calc(var(--text-xs) * 0.75) !important;
  line-height: 1.2 !important;
}
html.cc-mobile .hand-card .text-\[8px\] { font-size: 6px !important; }
html.cc-mobile .hand-card .text-\[9px\] { font-size: 6.75px !important; }
html.cc-mobile .hand-card .text-\[10px\] { font-size: 7.5px !important; }
html.cc-mobile .hand-card .text-\[11px\] { font-size: 8.25px !important; }

/* Army builder creature cards: 30% smaller. */
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 {
  gap: 0.4rem !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .p-3 {
  padding: 0.525rem !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .gap-3 {
  gap: 0.525rem !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .size-\[4\.5rem\] {
  width: 3.15rem !important;
  height: 3.15rem !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .text-xl {
  font-size: calc(var(--text-xl) * 0.7) !important;
  line-height: 1.1 !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .text-sm {
  font-size: calc(var(--text-sm) * 0.7) !important;
  line-height: 1.2 !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .text-\[11px\] {
  font-size: 7.7px !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .text-\[9px\] {
  font-size: 6.3px !important;
}
html.cc-mobile .grid.grid-cols-2.gap-1\.5.sm\:grid-cols-3 .min-h-16 {
  min-height: 2.8rem !important;
}

@media (max-width: 860px) {
  .cc-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto repeat(6, minmax(88px, 1fr));
    padding: 10px;
    gap: 8px;
  }
  .cc-brand { grid-column: 1 / -1; }
  .cc-cpu { grid-column: 1 / 2; grid-row: 2 / 4; }
  .cc-bonus { grid-column: 2; grid-row: 2; }
  .cc-hot { grid-column: 2; grid-row: 3; }
  .cc-multi { grid-column: 1 / -1; grid-row: 4; }
  .cc-how { grid-column: 1; grid-row: 5; }
  .cc-maps { grid-column: 2; grid-row: 5; }
  .cc-tf { grid-column: 1; grid-row: 6; }
  .cc-med { grid-column: 2; grid-row: 6; }
  .cc-rites { grid-column: 1 / -1; grid-row: 7; }
  .cc-vr { display: none; }
  .cc-cine-board { transform: perspective(900px) rotateX(12deg) scale(1.35); opacity: 0.55; }
  .cc-pack-list { grid-template-columns: 1fr; }
  .cc-closeup-card { grid-template-columns: 1fr; }
  .cc-seats { flex-direction: column; }
  .cc-caption { display: none; }
}
