/* RESONA — Luminous Horology Aesthetic Stylesheet */
:root {
  --bg: #080C14;
  --surface: rgba(15, 23, 42, 0.84);
  --surface-solid: #0F172A;
  --surface-hover: rgba(30, 41, 59, 0.88);
  --border: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(56, 189, 248, 0.45);
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --accent: #38BDF8;
  --amber: #FBBF24;
  --emerald: #34D399;
  --rose: #FB7185;
  --violet: #C084FC;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Scrollbar polish */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.45); }

/* App Shell */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.08), transparent 62%), var(--bg);
}

/* Top Minimal Header */
.topbar {
  height: 56px;
  min-height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 16px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(52, 211, 153, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.5);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 14px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

/* Pills & Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pill-crystal {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.3);
}

.pill-session {
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-session:hover {
  border-color: var(--emerald);
  color: var(--text);
}

.pill-session.ready {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.14);
  color: #FDE68A;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.22);
}

/* Bilingual VI | EN Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-opt {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-opt:hover:not(.active) {
  color: var(--text);
}

.lang-opt.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(52, 211, 153, 0.24));
  color: #F8FAFC;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.btn:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }

.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 9px; }

.btn-primary {
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  border-color: rgba(125, 211, 252, 0.55);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.32);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #38BDF8, #3B82F6);
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.45);
}

.btn-ignite {
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 99px;
  background: linear-gradient(135deg, #10B981, #0EA5E9);
  border: 1px solid rgba(110, 231, 183, 0.65);
  color: #031510;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.38);
}

.btn-ignite:hover:not(:disabled) {
  background: linear-gradient(135deg, #34D399, #38BDF8);
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.55);
  color: #02100C;
}

.btn-ignite.running {
  background: linear-gradient(135deg, #F43F5E, #FB923C);
  border-color: rgba(253, 164, 175, 0.65);
  color: #FFF;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.14));
  border-color: rgba(251, 191, 36, 0.55);
  color: #FDE68A;
}

.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.34), rgba(245, 158, 11, 0.24));
  border-color: #FBBF24;
}

/* Views Container */
.views-root {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
}

.view.active {
  display: flex;
  flex-direction: column;
}

/* ================= HUB VIEW ================= */
.hub-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hub-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* Radar Section */
.radar-layout {
  display: flex;
  align-items: center;
  gap: 20px;
}

.radar-svg-box {
  width: 210px;
  height: 195px;
  flex-shrink: 0;
}

.skill-stats-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rank-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.rank-roman {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #FDE68A;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.rank-name {
  font-size: 17px;
  font-weight: 700;
}

.buff-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6EE7B7;
  margin-top: 3px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.bar-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Covenant & 30-day Constellation */
.covenant-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.consistency-big {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #34D399, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  margin: 12px 0 16px;
}

.star-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.22);
  transition: all 0.2s ease;
}

.star-cell.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #7DD3FC;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
}

.star-cell.golden {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.72);
  color: #FDE68A;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.star-cell.today {
  outline: 2px solid rgba(248, 250, 252, 0.55);
  outline-offset: 1px;
}

.covenant-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 4 Game Mode Cards */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mode-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mode-color, var(--accent));
  opacity: 0.75;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--mode-color, var(--accent));
  background: rgba(22, 33, 56, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.mode-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-title {
  font-size: 16px;
  font-weight: 700;
  color: #F8FAFC;
}

.mode-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.mode-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mode-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* ================= CAMPAIGN SELECT VIEW ================= */
.campaign-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.chapter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.chapter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.chapter-title { font-size: 16px; font-weight: 700; }
.chapter-sub { font-size: 12.5px; color: var(--text-muted); }

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

.level-tile {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.18s ease;
}

.level-tile:hover {
  border-color: var(--accent);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.level-tile.solved {
  border-color: rgba(52, 211, 153, 0.42);
}

.level-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.level-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #F8FAFC;
}

.medal-strip {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.medal-dot {
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-dim);
}

.medal-dot.earned-min { background: rgba(56, 189, 248, 0.18); color: #7DD3FC; }
.medal-dot.earned-vel { background: rgba(251, 191, 36, 0.18); color: #FDE68A; }
.medal-dot.earned-sym { background: rgba(52, 211, 153, 0.18); color: #6EE7B7; }
.medal-dot.earned-one { background: rgba(192, 132, 252, 0.22); color: #E9D5FF; }

/* ================= PLAY VIEW ================= */
.play-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  min-width: 265px;
  border-right: 1px solid var(--border);
  background: rgba(10, 15, 26, 0.92);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.level-info-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.level-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.badge-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.16);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.level-title-side {
  font-size: 15px;
  font-weight: 800;
}

.level-sub-side {
  font-size: 12px;
  line-height: 1.48;
  color: var(--text-muted);
}

.tip-box {
  font-size: 11.5px;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #FDE68A;
}

/* Color Alchemy Mini Legend */
.alchemy-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 9px;
}

.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 3px;
}

/* Primitive Tool Palette */
.palette-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.tool-btn:hover:not(.disabled) {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

.tool-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--tool-accent, var(--accent));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.14);
}

.tool-btn.disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.tool-hotkey {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--tool-accent, var(--accent));
  flex-shrink: 0;
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-name {
  font-size: 12.5px;
  font-weight: 700;
}

.tool-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

/* Focus & Discipline Challenge Switches */
.switch-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  cursor: pointer;
}

.switch-row.on {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.1);
}

.switch-row.on-fog {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.1);
}

/* Center Canvas Stage */
.stage-col {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage-hud-top {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: center;
  pointer-events: none;
}

.hud-chip {
  pointer-events: auto;
  background: rgba(9, 14, 24, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hud-clarity-gold {
  border-color: rgba(251, 191, 36, 0.55);
  color: #FDE68A;
}

.hud-fog {
  border-color: rgba(192, 132, 252, 0.5);
  color: #E9D5FF;
}

.canvas-holder {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.stage-dock-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(9, 14, 24, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.controls-footnote {
  position: absolute;
  bottom: 4px;
  right: 14px;
  font-size: 10.5px;
  color: var(--text-dim);
  pointer-events: none;
}

/* Studio Controls inside Sidebar */
.studio-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-size: 12.5px;
  font-family: inherit;
}

.studio-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-dot-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.color-dot-btn.active {
  border-color: #FFF;
  transform: scale(1.15);
}

/* ================= MODALS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0D1424;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
}

/* Triad Histogram in Victory Modal */
.triad-box {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.triad-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.triad-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
}

.xp-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.xp-pill {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

/* Spire Marshmallow Test Cards */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.choice-card.delayed {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.1), rgba(15, 23, 42, 0.92));
}

.choice-card.delayed:hover {
  border-color: #FBBF24;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.2);
}

/* Golden Stop Breathing Circle */
.breath-orb {
  width: 96px;
  height: 96px;
  margin: 4px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.65), rgba(52, 211, 153, 0.18) 60%, transparent 75%);
  border: 2px solid rgba(251, 191, 36, 0.6);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #FEF3C7;
  animation: breathe 4.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.94); box-shadow: 0 0 22px rgba(251, 191, 36, 0.28); }
  50% { transform: scale(1.08); box-shadow: 0 0 42px rgba(52, 211, 153, 0.48); }
}

/* Sanctuary Grid */
.cosmetic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cosmetic-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.16s ease;
}

.cosmetic-item:hover { border-color: rgba(148, 163, 184, 0.45); }
.cosmetic-item.equipped { border-color: var(--emerald); background: rgba(52, 211, 153, 0.12); }

/* Toast Notification */
.toast {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .hub-top-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-row { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 235px; min-width: 225px; }
}

@media (max-width: 720px) {
  .modes-grid { grid-template-columns: 1fr; }
  .levels-row { grid-template-columns: 1fr; }
  .play-layout { flex-direction: column-reverse; }
  .sidebar { width: 100%; height: 220px; border-right: none; border-top: 1px solid var(--border); }
  .brand-sub { display: none; }
}
