:root {
  color-scheme: dark;
  --ink: #dffefe;
  --table: #030708;
  --panel: #091014;
  --ivory: #e8ffff;
  --paper: #b9d7d7;
  --brass: #00cccc;
  --gold: #00ffff;
  --muted: #789397;
  --danger: #d23b73;
  --cc-cyan: #00cccc;
  --cc-bright: #00ffff;
  --cc-green: #56e39f;
  --cc-violet: #9a65d4;
  --cc-burgundy: #5b1f37;
  --cc-black: #030708;
  --cc-panel: rgba(7, 15, 18, 0.94);
  --cc-line: rgba(0, 204, 204, 0.48);
  --cc-glow: 0 0 22px rgba(0, 255, 255, 0.14);
}

html,
body,
#cryptic-capital-root {
  min-height: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: "Cinzel", Georgia, serif;
}

body {
  min-width: 320px;
  background: var(--cc-black);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor:
    url("/images/cursors/pointer.cur") 6 0,
    url("/images/cursors/pointer.png") 6 0,
    auto;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="image"],
input[type="checkbox"],
input[type="radio"],
input[type="range"],
input[type="file"],
input[type="color"],
select,
label,
summary,
[onclick],
.cc-clickable {
  cursor:
    url("/images/cursors/hover.cur") 11 0,
    url("/images/cursors/hover.png") 11 0,
    pointer;
}

*:disabled,
*[disabled] {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cc-bright);
  outline-offset: 3px;
}

.cc-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--cc-line);
  border-radius: 5px;
  background: rgba(3, 7, 8, 0.7);
  color: #dffefe;
  font: 700 9px/1 "Cinzel", Georgia, serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.cc-back-link::before {
  content: "\2190";
  margin-right: 0.5em;
  font-size: 1.15em;
}

.cc-back-link:hover,
.cc-back-link:focus-visible {
  color: #020708;
  background: var(--cc-bright);
  border-color: var(--cc-bright);
  text-shadow: none;
}

.entry-card .cc-back-link {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  border-color: transparent;
  background: transparent;
  color: #88b5b7;
}

.entry-card .cc-back-link:hover,
.entry-card .cc-back-link:focus-visible {
  color: var(--cc-bright);
  border-color: rgba(0, 204, 204, 0.34);
  background: rgba(0, 204, 204, 0.06);
}

.topbar .cc-back-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8fb8ba;
}

.topbar .cc-back-link:hover,
.topbar .cc-back-link:focus-visible {
  color: var(--cc-bright);
  background: transparent;
}

/* Entry and setup screens */
.entry-shell {
  place-items: center start;
  padding: 76px clamp(28px, 8vw, 150px);
  padding-left: clamp(110px, calc(63vw - 825px), 430px);
  background:
    linear-gradient(90deg, rgba(1, 5, 7, 0.96) 0%, rgba(2, 7, 9, 0.78) 42%, rgba(2, 7, 9, 0.14) 78%),
    url("/minigames/cryptic-capital/assets/art/cryptic-capital-krix-hero-v3.webp") center / cover no-repeat;
}

.entry-shell::before {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
}

.entry-shell::after {
  content: "SEALED BY THE CRYPTIC CONCLAVE  ·  ENTER BY COVENANT  ·  TRUST NO COUNCIL";
  color: rgba(140, 244, 244, 0.62);
  border-color: rgba(0, 204, 204, 0.3);
  inset: 18px;
}

.entry-mark {
  display: none;
}

.entry-card {
  overflow: hidden;
  width: min(660px, calc(100vw - 44px));
  margin-left: 0;
  padding: 58px;
  border: 1px solid rgba(0, 255, 255, 0.74);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(4, 12, 15, 0.96), rgba(1, 5, 7, 0.94));
  text-align: left;
  box-shadow:
    0 32px 110px #000,
    0 0 42px rgba(0, 255, 255, 0.15),
    inset 0 0 0 1px rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 255, 255, 0.12), transparent 42%),
    linear-gradient(135deg, transparent 55%, rgba(91, 31, 55, 0.17));
  pointer-events: none;
}

.entry-card > * {
  position: relative;
  z-index: 1;
}

.entry-card .eyebrow,
.entry-card small {
  color: var(--cc-bright);
}

.entry-card h1 {
  color: #e8ffff;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.22);
}

.entry-card h1 span {
  color: var(--cc-bright);
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.42);
}

.entry-copy {
  color: #c7e5e6;
  font-size: 17px;
  line-height: 1.7;
}

.mobile-play-note {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  color: #86aaac;
  font: 600 9px/1.5 "Cinzel", Georgia, serif;
  letter-spacing: 0.12em;
  text-align: center;
}

.entry-card button,
.setup-panel input,
.join-row input {
  border-color: rgba(0, 204, 204, 0.55);
  border-radius: 5px;
  background: rgba(4, 12, 15, 0.9);
  color: #dffefe;
}

.entry-card button:hover {
  border-color: var(--cc-bright);
  color: var(--cc-bright);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.16);
}

button.primary,
.primary {
  color: #001113 !important;
  border-color: #8fffff !important;
  background: linear-gradient(180deg, #69ffff, #00bcbc) !important;
  box-shadow:
    inset 0 0 0 1px rgba(220, 255, 255, 0.55),
    0 6px 22px rgba(0, 255, 255, 0.2) !important;
}

.room-code,
.seat.filled {
  border-color: rgba(0, 204, 204, 0.48);
  border-radius: 7px;
  background: rgba(5, 13, 16, 0.88);
}

.room-code strong,
.seat span {
  color: var(--cc-bright);
}

.seat {
  border-color: rgba(0, 204, 204, 0.26);
  border-radius: 7px;
}

.entry-shell footer {
  left: 32px;
  right: 32px;
  color: rgba(174, 224, 226, 0.6);
  text-align: left;
}

/* Full game shell */
.game-shell {
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 28, 32, 0.16), rgba(1, 5, 7, 0.92) 72%),
    linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 12, 15, 0.64)),
    url("/minigames/cryptic-capital/assets/art/cryptic-capital-krix-hero-v2.webp") center / cover fixed no-repeat;
}

.game-shell::before {
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(120deg, transparent 0 5px, rgba(0, 255, 255, 0.08) 6px 7px);
}

.topbar {
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(0, 204, 204, 0.44);
  background: rgba(2, 7, 9, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.wordmark {
  color: #dffefe;
  font: 700 25px/1 "Cinzel", Georgia, serif;
  letter-spacing: 0.03em;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.18);
}

.wordmark span,
.center-brand span {
  color: var(--cc-bright);
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.44);
}

.table-meta {
  color: #bad3d4;
  font-size: 10px;
}

.live-dot::before {
  background: var(--cc-green);
  box-shadow: 0 0 12px var(--cc-green);
}

.live-dot.solo::before {
  background: var(--cc-bright);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.settings-button,
.music-player {
  border-color: rgba(0, 204, 204, 0.38);
  border-radius: 5px;
  background: rgba(5, 14, 17, 0.9);
}

.settings-button:hover,
.table-meta button:hover {
  color: var(--cc-bright);
}

.soundtrack-section .music-player {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 154px;
  padding: 42px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 204, 204, 0.58);
  background:
    radial-gradient(circle at 50% 0, rgba(0, 255, 255, 0.14), transparent 55%),
    linear-gradient(145deg, rgba(7, 25, 29, 0.98), rgba(2, 9, 11, 0.98));
  box-shadow: inset 0 0 24px rgba(0, 204, 204, 0.06);
}

.soundtrack-section .music-player::before {
  content: "DARK-FANTASY SCORE \00B7  5 CC0 TRACKS";
  position: absolute;
  top: 14px;
  left: 14px;
  color: #8bb8ba;
  font: 700 8px/1 Cinzel, serif;
  letter-spacing: 0.16em;
}

.soundtrack-section .music-player.active {
  border-color: var(--cc-bright);
  box-shadow:
    inset 0 0 26px rgba(0, 255, 255, 0.09),
    0 0 18px rgba(0, 255, 255, 0.09);
}

.soundtrack-section .music-toggle {
  grid-column: 1 / -1;
  min-height: 50px;
  color: #001113;
  border: 1px solid #9fffff;
  background: linear-gradient(180deg, #6fffff, #00b9b9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.38), 0 0 16px rgba(0, 255, 255, 0.12);
}

.soundtrack-section .music-player.active .music-toggle {
  color: #cfffff;
  background: rgba(0, 204, 204, 0.12);
}

.soundtrack-section .music-now {
  width: auto;
  min-width: 0;
  color: #e8ffff;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  overflow: hidden;
}

.soundtrack-section .music-next {
  min-width: 80px;
  color: #a9dada;
  border: 1px solid rgba(0, 204, 204, 0.32);
  background: rgba(0, 204, 204, 0.06);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.soundtrack-section .music-player input {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--cc-bright);
}

.table-layout {
  height: calc(100vh - 58px);
}

/* Player and action panels */
.player-card,
.turn-panel,
.recent-log,
.decision-card,
.quick-actions,
.dice-tray {
  border: 1px solid rgba(0, 204, 204, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 19, 22, 0.96), rgba(3, 9, 11, 0.96));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.player-card {
  position: relative;
  overflow: hidden;
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 0 50%, color-mix(in srgb, currentColor 10%, transparent), transparent 55%);
  pointer-events: none;
}

.player-card > * {
  position: relative;
  z-index: 1;
}

.player-card.active {
  border-color: var(--cc-bright);
  box-shadow:
    0 0 24px rgba(0, 255, 255, 0.2),
    inset 3px 0 0 var(--cc-bright);
}

.player-card strong,
.turn-panel h2,
.recent-log h3 {
  color: #e8ffff;
}

.player-card strong {
  font-size: 21px;
  line-height: 1.08;
}

.player-card small {
  color: #a7c2c4;
  font-size: 8.5px;
}

.player-card b {
  font-size: 22px;
}

.player-card b,
.turn-panel small,
.recent-log h3,
.decision-card small {
  color: var(--cc-bright);
}

.player-token {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background-color: #030708;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent !important;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.16);
}

.player-card:nth-child(1) .player-token {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-keeper.svg");
}

.player-card:nth-child(2) .player-token {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-shade.svg");
}

.player-card:nth-child(3) .player-token {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-oracle.svg");
}

.player-card:nth-child(4) .player-token {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-crown.svg");
}

.holding-pips i {
  box-shadow: 0 0 5px currentColor;
}

.dice-tray {
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 204, 204, 0.09), transparent 62%),
    rgba(2, 7, 9, 0.96);
}

.die {
  border: 1px solid rgba(0, 255, 255, 0.72);
  background: linear-gradient(145deg, #153039, #030708 72%);
  box-shadow:
    inset -5px -5px 10px #000,
    inset 2px 2px 6px rgba(0, 255, 255, 0.16),
    0 0 14px rgba(0, 255, 255, 0.12);
}

.die i {
  background: var(--cc-bright);
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.92);
}

.roll-button {
  min-height: 58px;
  color: #001113;
  border: 3px double #9fffff;
  background: linear-gradient(180deg, #6fffff, #00b9b9);
  font-family: "Cinzel", Georgia, serif;
  text-shadow: 0 1px rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 0 0 2px #006f74,
    0 8px 22px rgba(0, 255, 255, 0.15);
}

.secondary-action,
.end-button,
.decision-card > button:not(.roll-button),
.danger,
.manage-assets-button {
  border-color: rgba(0, 204, 204, 0.5);
  border-radius: 5px;
  background: rgba(5, 14, 17, 0.95);
  color: #dffefe;
}

.quick-actions button {
  color: #b4cbcc;
}

.quick-actions button + button {
  border-left-color: rgba(0, 204, 204, 0.22);
}

.quick-actions span,
.recent-log p i {
  color: var(--cc-bright);
}

.recent-log p {
  color: #9bb0b2;
  border-top-color: rgba(0, 204, 204, 0.14);
}

/* Board */
.board-grid {
  overflow: hidden;
  outline: 0;
  border: 7px solid #0a2930;
  border-radius: 14px;
  background: #030708;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.88),
    0 0 0 1px var(--cc-bright),
    0 0 34px rgba(0, 255, 255, 0.18),
    inset 0 0 28px rgba(0, 255, 255, 0.08);
}

.space {
  gap: 3px;
  color: #dffefe;
  border-color: rgba(0, 204, 204, 0.24);
  background:
    linear-gradient(145deg, rgba(18, 43, 49, 0.99), rgba(4, 13, 16, 0.99));
  text-shadow: 0 1px 4px #000, 0 0 4px rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 0 18px rgba(0, 255, 255, 0.045);
}

.space:hover {
  z-index: 8;
  filter: brightness(1.22);
  border-color: var(--cc-bright);
  box-shadow: 0 8px 22px #000, 0 0 14px rgba(0, 255, 255, 0.32);
}

.space strong {
  color: #f1ffff;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: clamp(7.5px, 0.7vw, 11.5px);
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

.space small {
  color: #c1e1e2;
  font-size: clamp(6px, 0.5vw, 8.5px);
  line-height: 1.2;
}

.space-index {
  color: #91c5c8;
  font-size: 6px;
}

.group-band {
  height: 14%;
  border-bottom: 1px solid rgba(208, 255, 255, 0.38);
  background: var(--band);
  box-shadow: 0 0 10px color-mix(in srgb, var(--band) 58%, transparent);
}

.space.corner,
.space.jail,
.space.goToJail,
.space.free {
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 204, 204, 0.11), transparent 58%),
    linear-gradient(145deg, #102128, #030708);
}

.space.corner strong {
  font-size: clamp(9px, 0.76vw, 14px);
}

.space.jail,
.space.goToJail {
  border-color: rgba(154, 101, 212, 0.54);
  background:
    linear-gradient(135deg, rgba(91, 31, 55, 0.82) 0 47%, #020708 48% 52%, rgba(0, 91, 99, 0.82) 53%);
}

.space.intel,
.space.fund {
  background:
    radial-gradient(circle at 50% 54%, rgba(0, 204, 204, 0.1), transparent 52%),
    linear-gradient(145deg, #101d22, #030708);
}

.space.intel::after,
.space.fund::after,
.space.compute::after,
.space.utility::after,
.space.tax::after,
.space.go::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.space.intel::after {
  background-image: url("/minigames/cryptic-capital/assets/icons/omen.svg");
}

.space.fund::after {
  background-image: url("/minigames/cryptic-capital/assets/icons/decree.svg");
}

.space.compute::after {
  background-image: url("/minigames/cryptic-capital/assets/icons/archive.svg");
}

.space.utility::after {
  background-image: url("/minigames/cryptic-capital/assets/icons/forge.svg");
}

.space.tax::after {
  background-image: url("/minigames/cryptic-capital/assets/icons/tithe.svg");
}

.space.go::after {
  background-image: url("/minigames/cryptic-capital/assets/icons/gate.svg");
}

.owner-dot {
  border: 1px solid rgba(232, 255, 255, 0.88);
  box-shadow: 0 0 8px currentColor;
}

.tier-marks {
  color: var(--cc-green);
  text-shadow: 0 0 5px rgba(86, 227, 159, 0.72);
}

.tokens {
  z-index: 12;
  align-items: flex-end;
  inset: auto 3px 3px;
}

.tokens i.token-piece {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border: 2px solid var(--token-color, #dfffff);
  background-color: #030708 !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 2px 2px #000) drop-shadow(0 0 4px var(--token-color, #00ffff));
  box-shadow: 0 0 0 1px #030708, 0 0 8px var(--token-color, #00ffff);
}

.tokens i.token-piece:first-child {
  margin-left: 0;
}

.tokens .token-1 {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-keeper.svg");
}

.tokens .token-2 {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-shade.svg");
}

.tokens .token-3 {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-oracle.svg");
}

.tokens .token-4 {
  background-image: url("/minigames/cryptic-capital/assets/icons/token-crown.svg");
}

.tokens i.piece-hopping {
  animation: cc-piece-hop 140ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes cc-piece-hop {
  50% {
    filter: brightness(1.5) drop-shadow(0 7px 5px #000) drop-shadow(0 0 9px var(--token-color, #00ffff));
    transform: translateY(-13px) scale(1.3);
  }
}

.board-center {
  background:
    linear-gradient(rgba(2, 7, 9, 0.13), rgba(2, 7, 9, 0.34)),
    url("/minigames/cryptic-capital/assets/art/cryptic-capital-board-surface-v2.webp") center / cover no-repeat;
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(0, 204, 204, 0.2);
}

.board-center::before {
  opacity: 0.16;
  background:
    repeating-linear-gradient(102deg, transparent 0 5px, rgba(0, 255, 255, 0.025) 6px 7px);
}

.center-brand {
  top: 10%;
}

.center-brand h2 {
  color: #dffefe;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.025em;
  text-shadow:
    0 3px 8px #000,
    0 0 20px rgba(0, 255, 255, 0.28);
}

.center-brand p {
  color: #b4e3e5;
  font-size: clamp(6px, 0.48vw, 9px);
  text-shadow: 0 2px 4px #000;
}

.decks {
  top: 38%;
}

.deck {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 255, 0.7);
  border-radius: 8px;
  background: #030708;
  color: #e8ffff;
  text-shadow: 0 2px 7px #000;
  box-shadow:
    7px 9px 18px rgba(0, 0, 0, 0.66),
    0 0 18px rgba(0, 255, 255, 0.12);
}

.deck::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.deck::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(transparent 36%, rgba(1, 5, 7, 0.82) 64%, rgba(1, 5, 7, 0.96));
}

.intel-deck::before {
  background-image: url("/minigames/cryptic-capital/assets/art/cryptic-capital-omens-cardback-v2.webp");
}

.fund-deck::before {
  background-image: url("/minigames/cryptic-capital/assets/art/cryptic-capital-decrees-cardback-v2.webp");
  filter: none;
}

.deck span,
.deck strong,
.deck small {
  position: relative;
  top: 23%;
}

.deck strong {
  color: var(--cc-bright);
  font-size: clamp(10px, 0.95vw, 17px);
}

.deck span {
  font-size: clamp(8px, 0.72vw, 13px);
}

.deck small {
  color: #d2eeee;
  font-size: clamp(5px, 0.4vw, 7px);
}

.market-ticker {
  color: #aed2d4;
  border-top-color: rgba(0, 204, 204, 0.35);
  font-size: clamp(6px, 0.5vw, 9px);
}

.market-ticker b {
  color: var(--cc-green);
}

.turn-panel small,
.decision-card small {
  font-size: 9px;
}

.turn-panel p {
  color: #b9d0d2;
  font-size: 12px;
  line-height: 1.45;
}

.quick-actions button {
  color: #c8dfe0;
  font-size: 9px;
}

.recent-log h3 {
  font-size: 13px;
}

.recent-log p {
  color: #bdd3d4;
  font-size: 11.5px;
  line-height: 1.45;
}

/* Modals, cards and drawers */
.modal-shade,
.drawer-shade,
.bug-report-shade,
.chat-scrim {
  background: rgba(1, 4, 6, 0.82);
  backdrop-filter: blur(7px);
}

.drawn-card,
.winner-card {
  overflow: hidden;
  min-height: 420px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(rgba(2, 7, 9, 0.2), rgba(2, 7, 9, 0.34)),
    url("/minigames/cryptic-capital/assets/art/cryptic-capital-event-card-v2.webp") center / cover no-repeat;
  color: #dffefe;
  box-shadow: 0 32px 100px #000, 0 0 32px rgba(0, 255, 255, 0.22);
}

.drawn-card small,
.winner-card small,
.drawn-card h2,
.winner-card h2 {
  color: var(--cc-bright);
}

.drawn-card p,
.winner-card p {
  color: #dffefe;
  font-size: 21px;
  line-height: 1.5;
  text-shadow: 0 2px 5px #000;
}

.drawn-card button,
.winner-card button {
  border-color: var(--cc-line);
  border-radius: 5px;
  background: #071315;
  color: #dffefe;
}

.card-auto-progress {
  background: rgba(0, 204, 204, 0.24);
}

.card-auto-progress::after {
  background: var(--cc-bright);
}

.trade-builder,
.trade-review,
.property-drawer,
.portfolio-drawer,
.log-drawer,
.rules-drawer,
.settings-drawer,
.chat-drawer,
.bug-report-card {
  color: #dffefe;
  border-color: rgba(0, 204, 204, 0.52);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 204, 204, 0.07), transparent 32%),
    linear-gradient(145deg, #0a171b, #030708);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.82);
}

.trade-builder input,
.trade-builder select,
.bug-report-card textarea,
.chat-composer textarea {
  color: #dffefe;
  border-color: rgba(0, 204, 204, 0.4);
  background: #03090b;
}

.property-drawer dt {
  color: #b3cbcc;
  font-size: 10px;
}

.property-drawer dd {
  color: #efffff;
  font-size: 17px;
}

.rules-drawer li {
  color: #c5dcdd;
  font-size: 17.5px;
  line-height: 1.55;
}

.rules-drawer {
  width: min(520px, 100vw);
  padding-inline: 38px;
}

.rules-drawer li b {
  color: #f1ffff;
}

.rules-footnote {
  color: #9ebabb;
  font-size: 15px;
}

.settings-section,
.settings-nav,
.chat-drawer > header,
.chat-composer {
  border-color: rgba(0, 204, 204, 0.22);
}

.table-chat-button {
  color: #001113;
  border-color: #9fffff;
  background: linear-gradient(180deg, #6fffff, #00b9b9);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 255, 255, 0.18);
}

.chat-message > div,
.chat-message.mine > div {
  border-color: rgba(0, 204, 204, 0.28);
  background: rgba(8, 19, 22, 0.94);
}

.bug-report-button {
  color: #7dd7d7;
  border: 1px solid rgba(0, 204, 204, 0.25);
  width: 38px;
  min-height: 38px;
}

.bug-report-button svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1180px) {
  .topbar .cc-back-link { font-size: 8px; }
}

@media (max-width: 900px) {
  .entry-shell {
    place-items: center;
    padding-inline: 24px;
  }

  .game-shell {
    background-attachment: scroll;
  }

  .table-layout {
    height: auto;
  }

  .board-grid {
    min-width: 720px;
  }

}

@media (max-width: 720px) {
  .cc-back-link {
    font-size: 8px;
  }

  .entry-card .cc-back-link {
    top: 10px;
  }

  .entry-shell {
    place-items: center;
    padding: 64px 15px 38px;
    background-position: 64% center;
  }

  .entry-shell::after {
    inset: 8px;
    padding: 8px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .entry-card {
    padding: 42px 22px;
    text-align: center;
  }

  .entry-card h1 {
    white-space: normal;
    font-size: clamp(40px, 13.5vw, 58px);
    line-height: 0.92;
  }

  .entry-card h1 span {
    display: block;
  }

  .topbar {
    padding: 0 10px;
  }

  .topbar .cc-back-link {
    width: 34px;
    min-width: 34px;
    padding: 0;
    font-size: 0;
  }

  .topbar .cc-back-link::before {
    content: "\2190";
    margin-right: 0;
    font-size: 18px;
  }

  .wordmark {
    font-size: 17px;
  }

  .drawn-card,
  .winner-card {
    min-height: 340px;
  }

  .board-grid {
    min-width: 700px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
