:root {
  --bg: #0d0c0a;
  --panel: #171511;
  --panel-2: #1d1a15;
  --card: #211d16;
  --line: #3c3427;
  --line-soft: #2a251e;
  --gold: #c8a15a;
  --gold-bright: #e1bd73;
  --paper: #efe2c4;
  --text: #f2ead9;
  --muted: #afa48f;
  --danger: #ca6a61;
  --good: #7fb186;
  --blue: #7c9cb7;
  --shadow: 0 20px 50px rgba(0,0,0,.28);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(200,161,90,.08), transparent 34rem),
    linear-gradient(180deg, #0f0e0c, #0b0a09 60%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { color: inherit; }
button, input, select { min-height: 44px; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.app-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding-bottom: 48px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold);
  color: var(--gold-bright); font-family: Georgia, serif; font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, rgba(200,161,90,.16), transparent);
}
.brand strong { display: block; letter-spacing: .13em; font-family: Georgia, serif; font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: #756b59; }
.status-dot.online { background: var(--good); box-shadow: 0 0 0 4px rgba(127,177,134,.1); }

.view { display: none; }
.view.active { display: block; animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 24px; align-items: end; margin-bottom: 24px; }
.hero-copy { padding: 30px 0 22px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0; font-weight: 600; }
h1 { font-size: clamp(36px, 7vw, 72px); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
.hero-text { max-width: 710px; color: #c9bfad; font-size: 17px; line-height: 1.7; }
.rule-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.rule-strip span { border: 1px solid var(--line); background: rgba(29,26,21,.65); padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: 12px; }
.rule-strip b { color: var(--paper); }
.online-indicator { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,16,13,.72); color: var(--muted); font-size: 12px; font-weight: 700; }
.online-indicator strong { color: var(--paper); font-variant-numeric: tabular-nums; }
.online-indicator-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(127,177,134,.1); }

.panel { background: linear-gradient(180deg, rgba(29,26,21,.96), rgba(20,18,15,.96)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.identity-panel { padding: 18px; }
.identity-panel label, .stacked-form label { color: var(--muted); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
input, select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #100f0d; color: var(--text); padding: 10px 12px; font-size: 16px;
}
input::placeholder { color: #71695b; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.button {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 15px; cursor: pointer; font-weight: 800; letter-spacing: .025em; transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.button:hover { border-color: #6b5a3e; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.primary { background: linear-gradient(180deg, #d3ad65, #a77f3e); color: #17130d; border-color: #e0bd78; }
.button.secondary { background: #252016; color: var(--paper); }
.button.ghost { background: transparent; color: var(--muted); }
.button.danger { background: rgba(202,106,97,.1); border-color: rgba(202,106,97,.4); color: #e2a09a; }
.button.full { width: 100%; }
.text-button { background: none; border: 0; color: var(--gold-bright); cursor: pointer; padding: 8px; }

.home-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-actions-grid > .panel { padding: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading.compact { margin-bottom: 10px; }
.stacked-form { display: grid; gap: 14px; }
.stacked-form label { display: grid; gap: 7px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-row { grid-template-columns: 22px 1fr !important; align-items: center; gap: 10px !important; }
.toggle-row input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--gold); }
.join-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
#joinCode { text-transform: uppercase; letter-spacing: .25em; font-weight: 800; }
.divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: #6e6658; font-size: 11px; margin: 20px 0; text-transform: uppercase; letter-spacing: .14em; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line-soft); }
.room-list { display: grid; gap: 9px; }
.room-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: rgba(10,9,8,.45); border: 1px solid var(--line-soft); padding: 12px; border-radius: 12px; }
.room-row strong { display: block; }
.room-row small { color: var(--muted); }
.empty-state { padding: 20px 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }

.view-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.lobby-layout { display: grid; grid-template-columns: 1.5fr .7fr; gap: 24px; }
.lobby-main, .lobby-sidebar { padding: 24px; }
.lobby-main h1 { font-size: clamp(38px, 6vw, 64px); }
.room-code-block { margin: 22px 0; padding: 16px; background: #100f0d; border: 1px solid var(--line); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.room-code-block span { color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.room-code-block strong { color: var(--gold-bright); letter-spacing: .2em; font-size: 22px; }
.seat-list { display: grid; gap: 10px; }
.seat { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line-soft); background: rgba(10,9,8,.35); padding: 11px; border-radius: 13px; }
.seat-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #252018; color: var(--gold-bright); font-family: Georgia, serif; font-weight: 700; }
.seat small { color: var(--muted); }
.seat-status { color: var(--good); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.seat-status.offline { color: var(--danger); }
.rule-list { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; margin: 18px 0 24px; }
.rule-list dt { color: var(--muted); }
.rule-list dd { margin: 0; color: var(--paper); font-weight: 700; }
.host-controls { display: grid; gap: 9px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.5; }

.game-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.game-header h1 { font-size: clamp(36px, 6vw, 62px); }
.turn-banner { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--paper); background: #181510; font-size: 13px; font-weight: 800; }
.turn-banner.yours { color: #17130d; background: var(--gold); border-color: var(--gold-bright); }
.scoreboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.score-card { border: 1px solid var(--line-soft); border-radius: 13px; background: #15130f; padding: 12px; min-width: 0; }
.score-card.active { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(200,161,90,.12); }
.score-card .score-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.score-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-card .points { font-family: Georgia, serif; font-size: 24px; color: var(--gold-bright); }
.score-card small { color: var(--muted); }

.board { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at center, rgba(92,68,36,.18), transparent 45%), #100f0c; margin-bottom: 18px; }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.target-badge { border: 1px solid var(--line); color: var(--gold-bright); padding: 8px 11px; border-radius: 999px; font-size: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contract-card {
  position: relative; min-height: 230px; padding: 17px; border: 1px solid #65563c; border-radius: 14px; background:
    linear-gradient(180deg, rgba(239,226,196,.98), rgba(207,185,143,.96)); color: #2a2117; box-shadow: 0 12px 26px rgba(0,0,0,.24); cursor: default; overflow: hidden;
}
.contract-card.selectable { cursor: pointer; }
.contract-card.selectable:hover { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.contract-card::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(74,53,29,.25); border-radius: 9px; pointer-events: none; }
.contract-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.contract-head small { text-transform: uppercase; letter-spacing: .11em; color: #6f5b3d; }
.contract-points { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #84683c; color: #513c20; font-family: Georgia, serif; font-size: 21px; font-weight: 700; background: rgba(255,255,255,.18); flex: 0 0 auto; }
.requirements { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 25px 0 20px; }
.req-die { width: 43px; height: 43px; border-radius: 9px; display: grid; place-items: center; background: #f8edd3; border: 1px solid #8e7650; font-size: 29px; line-height: 1; }
.progress-list { position: relative; z-index: 1; display: grid; gap: 5px; margin-top: auto; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(72,52,29,.18); padding-top: 5px; font-size: 11px; }
.progress-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-dice { letter-spacing: .04em; font-size: 16px; }

.dice-tray { padding: 18px; }
.dice-tray-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.dice-grid { display: grid; grid-template-columns: repeat(6, minmax(56px, 1fr)); gap: 10px; }
.die-button, .die-static {
  aspect-ratio: 1; min-width: 0; min-height: 56px; display: grid; place-items: center; border-radius: 14px; border: 1px solid #63543c; background: linear-gradient(145deg, #f4e7cb, #cbb284); color: #241c13; font-size: clamp(34px, 6vw, 54px); box-shadow: inset 0 0 0 3px rgba(255,255,255,.16), 0 7px 13px rgba(0,0,0,.18); }
.die-button { cursor: pointer; }
.die-button.selected { outline: 3px solid var(--gold-bright); outline-offset: 2px; transform: translateY(-2px); }
.die-button.committed, .die-static.committed { opacity: .55; filter: saturate(.6); }
.die-button.rolling, .die-static.rolling { animation: dice-jump .42s ease; }
@keyframes dice-jump { 0%,100% { transform: rotate(0) scale(1); } 35% { transform: rotate(7deg) scale(1.08); } 70% { transform: rotate(-5deg) scale(.98); } }
.game-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.game-controls .button { flex: 1 1 160px; }

.winner-panel { margin-top: 18px; border: 1px solid var(--gold); border-radius: var(--radius); padding: 24px; text-align: center; background: radial-gradient(circle at top, rgba(200,161,90,.16), transparent 60%), #17140f; }
.winner-panel h2 { font-size: 42px; color: var(--gold-bright); margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: #252019; border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .18s ease; z-index: 50; box-shadow: var(--shadow); max-width: calc(100% - 30px); text-align: center; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(202,106,97,.55); color: #f0b0aa; }

@media (max-width: 850px) {
  .hero-grid, .home-actions-grid, .lobby-layout { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr; }
  .contract-card { min-height: 205px; }
  .dice-grid { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
}

@media (max-width: 560px) {
  .app-shell { width: min(100% - 18px, 1180px); padding-bottom: 28px; }
  .site-header { padding-top: 12px; margin-bottom: 18px; }
  .brand small { display: none; }
  .header-status { font-size: 0; }
  .header-status #connectionText { display: none; }
  .hero-copy h1 { font-size: 46px; }
  .hero-text { font-size: 15px; }
  .home-actions-grid > .panel, .lobby-main, .lobby-sidebar { padding: 16px; }
  .two-col { grid-template-columns: 1fr; }
  .join-form { grid-template-columns: 1fr; }
  .view-toolbar .button { flex: 1; }
  .game-header { align-items: start; flex-direction: column; }
  .game-header h1 { font-size: 42px; }
  .turn-banner { width: 100%; text-align: center; }
  .scoreboard { gap: 7px; }
  .score-card { padding: 9px; }
  .score-card .points { font-size: 20px; }
  .board { padding: 12px; }
  .board-heading h2 { font-size: 22px; }
  .target-badge { font-size: 11px; }
  .contract-card { min-height: 190px; padding: 14px; }
  .requirements { margin: 18px 0 14px; gap: 6px; }
  .req-die { width: 39px; height: 39px; font-size: 27px; }
  .dice-tray { padding: 13px; }
  .dice-tray-heading { align-items: start; flex-direction: column; gap: 5px; }
  .dice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .die-button, .die-static { font-size: 42px; }
  .toast { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v1.1 account, player identity, and dice-color additions */
.header-right { display: flex; align-items: center; gap: 12px; }
.profile-chip { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: #17140f; color: var(--paper); padding: 7px 11px; cursor: pointer; }
.player-color-dot { --player-color: var(--gold); width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--player-color); border: 1px solid rgba(255,255,255,.24); box-shadow: 0 0 0 2px rgba(0,0,0,.14); }
.small-dot { width: 10px; height: 10px; }
.large-color-dot { --player-color: var(--gold); --player-edge: #8c692c; width: 46px; height: 46px; border-radius: 13px; background: var(--player-color); border: 2px solid var(--player-edge); box-shadow: inset 0 0 0 3px rgba(255,255,255,.12); flex: 0 0 auto; }
.identity-heading, .account-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.account-summary { justify-content: flex-start; }
.account-summary-copy { min-width: 0; }
.account-summary-copy h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-form { gap: 10px; }
.auth-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.auth-buttons .button { flex: 1 1 120px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.stat-tile { border: 1px solid var(--line-soft); border-radius: 11px; padding: 9px; background: rgba(8,7,6,.32); min-width: 0; }
.stat-tile strong { display: block; color: var(--gold-bright); font-family: Georgia, serif; font-size: 20px; overflow: hidden; text-overflow: ellipsis; }
.stat-tile span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.game-header-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.score-card { position: relative; overflow: hidden; }
.score-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--score-color, var(--gold)); }
.score-identity { display: flex; align-items: center; gap: 7px; min-width: 0; }
.score-identity strong { min-width: 0; }

.progress-player { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.progress-dice { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; letter-spacing: 0; max-width: 64%; }
.committed-die-chip { --die-bg: #d6aa54; --die-edge: #8c692c; --die-ink: #241a0c; width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 7px; background: var(--die-bg); border: 1px solid var(--die-edge); color: var(--die-ink); font-size: 21px; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.13), 0 2px 4px rgba(0,0,0,.16); }
.empty-progress { color: #745f42; }

.die-button, .die-static {
  --die-bg: #d6aa54;
  --die-edge: #8c692c;
  --die-ink: #241a0c;
  border-color: var(--die-edge);
  background: var(--die-bg);
  color: var(--die-ink);
}
.die-button.committed, .die-static.committed { opacity: .48; filter: none; }

.seat { position: relative; overflow: hidden; }
.seat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--seat-color, transparent); }
.seat-avatar { --player-color: #252018; --player-edge: var(--line); --player-ink: var(--gold-bright); background: var(--player-color); border-color: var(--player-edge); color: var(--player-ink); }
.lobby-color-picker { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 2px; padding: 10px; border-top: 1px solid var(--line-soft); background: rgba(0,0,0,.12); border-radius: 0 0 10px 10px; }
.lobby-color-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lobby-color-heading strong { color: var(--paper); font-size: 12px; }
.lobby-color-heading small { color: var(--muted); font-size: 9px; }
.lobby-color-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.lobby-color-swatch { --player-color: var(--gold); --player-edge: #8c692c; --player-ink: #241a0c; min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: #15120f; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; text-align: left; }
.lobby-color-swatch:hover:not(:disabled) { border-color: var(--player-color); }
.lobby-color-swatch.active { border-color: var(--player-color); box-shadow: inset 0 0 0 1px var(--player-color); color: var(--paper); }
.lobby-color-swatch.bot-held:not(.active) { border-style: dashed; }
.lobby-color-swatch:disabled { opacity: .34; cursor: not-allowed; }
.lobby-color-chip { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; background: var(--player-color); border: 2px solid var(--player-edge); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.lobby-color-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-seat-avatar { background: #252018 !important; color: var(--gold-bright) !important; border-color: var(--line) !important; }

body.modal-open { overflow: hidden; }
.modal-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(3px);
  color: var(--text);
}
.modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(180deg, #1d1a15, #12100d);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.icon-button { width: 44px; min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #12100d; color: var(--muted); font-size: 25px; cursor: pointer; }
.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 12px; background: #100f0d; }
.modal-tab { border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.modal-tab.active { background: #292216; color: var(--gold-bright); }

@media (max-width: 560px) {
  .header-right { gap: 7px; }
  .profile-chip { padding: 7px 9px; max-width: 150px; }
  .profile-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .game-header-actions { width: 100%; display: grid; grid-template-columns: 1fr auto; }
  .game-header-actions .turn-banner { width: auto; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .progress-player { max-width: 100%; }
  .progress-dice { max-width: 100%; width: 100%; justify-content: flex-start; }
  .committed-die-chip { width: 28px; height: 28px; font-size: 20px; }
  .modal-card { padding: 16px; }
}

/* v1.2.1 mobile-first gameplay layout */
html, body { max-width: 100%; overflow-x: hidden; }
button, .button, .contract-card.selectable { touch-action: manipulation; }
.mobile-card-tabs { display: none; }

@media (max-width: 640px) {
  :root { --radius: 14px; }
  body { min-width: 0; background: #0d0c0a; }
  .app-shell { width: calc(100% - 12px); padding-bottom: 12px; }

  /* Global phone header */
  .site-header { min-height: 52px; padding: 7px 0 8px; margin-bottom: 12px; gap: 8px; }
  .brand { gap: 7px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; font-size: 19px; flex: 0 0 auto; }
  .brand strong { font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
  .brand small { display: none; }
  .header-right { gap: 5px; min-width: 0; }
  .header-status { width: 12px; min-width: 12px; }
  .header-status #connectionText { display: none; }
  .profile-chip { max-width: 128px; min-height: 36px; padding: 6px 8px; font-size: 12px; }
  .profile-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Home */
  .hero-grid { gap: 10px; margin-bottom: 10px; }
  .hero-copy { padding: 4px 2px 2px; }
  .hero-copy h1 { font-size: clamp(34px, 11vw, 44px); }
  .hero-text { margin: 8px 0; font-size: 14px; line-height: 1.45; }
  .rule-strip { margin-top: 10px; gap: 5px; }
  .rule-strip span { padding: 6px 8px; font-size: 10px; }
  .identity-panel, .home-actions-grid > .panel { padding: 13px; }
  .home-actions-grid { gap: 10px; }
  .section-heading { margin-bottom: 12px; }
  .section-heading h2 { font-size: 23px; }
  .stacked-form { gap: 10px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 8px; }
  .join-form { grid-template-columns: minmax(0, 1fr) auto; }
  .room-row { padding: 9px; gap: 8px; }
  .room-row small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.35; }

  /* Lobby */
  .view-toolbar { position: sticky; top: 4px; z-index: 30; margin-bottom: 8px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(13,12,10,.94); backdrop-filter: blur(8px); }
  .view-toolbar .button { min-height: 40px; padding: 8px 9px; font-size: 12px; }
  .lobby-layout { gap: 10px; }
  .lobby-main, .lobby-sidebar { padding: 13px; }
  .lobby-main h1 { font-size: 34px; }
  .room-code-block { margin: 12px 0; padding: 10px 12px; }
  .room-code-block strong { font-size: 18px; }
  .seat-list { gap: 6px; }
  .seat { grid-template-columns: 36px minmax(0,1fr) auto; gap: 8px; padding: 7px 8px; border-radius: 10px; }
  .seat-avatar { width: 36px; height: 36px; }
  .seat strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .seat small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .seat-status { font-size: 9px; }
  .seat .button { min-height: 34px; padding: 5px 7px; font-size: 10px; }
  .rule-list { margin: 10px 0 14px; gap: 7px 10px; font-size: 12px; }

  /* In-game phone shell: remove duplicate brand header and maximize board space. */
  body.in-game .site-header { display: none; }
  body.in-game .app-shell { width: calc(100% - 8px); padding-top: 4px; padding-bottom: 4px; }
  body.in-game main { min-width: 0; }

  .game-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; margin-bottom: 6px; padding: 2px 2px 0; }
  .game-header > div:first-child { min-width: 0; }
  .game-header .eyebrow { margin: 0; font-size: 9px; letter-spacing: .11em; }
  .game-header h1 { display: none; }
  .game-header-actions { width: auto; display: grid; grid-template-columns: minmax(88px, auto) auto; gap: 5px; }
  .game-header-actions .turn-banner { width: auto; min-height: 38px; display: grid; place-items: center; padding: 6px 9px; border-radius: 10px; font-size: 11px; text-align: center; white-space: nowrap; }
  .game-header-actions .button { min-height: 38px; padding: 6px 9px; border-radius: 10px; font-size: 11px; }

  /* Six players stay visible in a compact 3 x 2 grid. */
  .scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
  .score-card { min-height: 48px; padding: 6px 6px 5px 8px; border-radius: 9px; }
  .score-card::before { width: 3px; }
  .score-card .score-top { gap: 3px; }
  .score-identity { gap: 4px; min-width: 0; }
  .score-identity .player-color-dot { width: 8px; height: 8px; }
  .score-card strong { font-size: 10px; line-height: 1.1; }
  .score-card .points { font-size: 18px; line-height: 1; }
  .score-card small { display: none; }

  /* Contract switcher: one readable full contract at a time. */
  .board { margin-bottom: 6px; padding: 7px; border-radius: 12px; }
  .board-heading { margin-bottom: 6px; }
  .board-heading > div { display: flex; align-items: baseline; gap: 7px; }
  .board-heading .eyebrow { margin: 0; font-size: 9px; }
  .board-heading h2 { font-size: 17px; }
  .target-badge { padding: 4px 7px; font-size: 9px; white-space: nowrap; }
  .mobile-card-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
  .mobile-contract-tab { min-width: 0; min-height: 42px; padding: 4px 3px; border: 1px solid var(--line-soft); border-radius: 8px; background: #17140f; color: var(--muted); cursor: pointer; overflow: hidden; }
  .mobile-contract-tab strong { display: block; color: var(--paper); font-size: 10px; line-height: 1.05; }
  .mobile-contract-tab span { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1; letter-spacing: -.08em; }
  .mobile-contract-tab.active { border-color: var(--gold); background: #292216; }
  .mobile-contract-tab.available { box-shadow: inset 0 0 0 1px var(--gold-bright); }
  .card-grid { display: block; }
  .contract-card { display: none; min-height: 0; padding: 9px; border-radius: 10px; }
  .contract-card.mobile-active { display: flex; }
  .contract-head small { font-size: 8px; }
  .contract-head h3 { font-size: 17px; }
  .contract-points { width: 38px; height: 38px; font-size: 19px; }
  .contract-points::after { font-size: 6px; }
  .requirements { margin: 7px 0 7px; gap: 4px; }
  .req-die { width: clamp(31px, 10.5vw, 38px); height: clamp(31px, 10.5vw, 38px); border-radius: 7px; font-size: clamp(22px, 7.5vw, 28px); }
  .progress-list { gap: 3px; }
  .progress-row { min-height: 28px; flex-direction: row; align-items: center; justify-content: space-between; gap: 5px; padding-top: 3px; font-size: 9px; }
  .progress-player { max-width: 42%; gap: 4px; min-width: 0; }
  .progress-player > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .progress-dice { width: auto; max-width: 58%; justify-content: flex-end; gap: 2px; }
  .committed-die-chip { width: 23px; height: 23px; border-radius: 5px; font-size: 17px; }

  /* Tray stays reachable; all six dice fit on one line. */
  .dice-tray { position: sticky; bottom: max(4px, env(safe-area-inset-bottom)); z-index: 25; padding: 7px; border-radius: 12px; background: rgba(23,21,17,.98); box-shadow: 0 -8px 24px rgba(0,0,0,.28); }
  .dice-tray-heading { display: flex; align-items: center; justify-content: space-between; flex-direction: row; gap: 7px; margin-bottom: 5px; }
  .dice-tray-heading .eyebrow { display: none; }
  .dice-tray-heading h2 { font-size: 15px; white-space: nowrap; }
  .dice-tray-heading .small { min-width: 0; font-size: 9px; line-height: 1.15; text-align: right; }
  .dice-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  .die-button, .die-static { min-height: 0; width: 100%; aspect-ratio: 1; border-radius: 8px; font-size: clamp(27px, 9.2vw, 36px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 3px 6px rgba(0,0,0,.18); }
  .die-button.selected { outline-width: 2px; outline-offset: 1px; transform: translateY(-1px); }
  .game-controls { margin-top: 5px; gap: 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .game-controls .button { min-height: 39px; padding: 6px 7px; font-size: 11px; line-height: 1.15; }
  .winner-panel { margin-top: 7px; padding: 14px; }
  .winner-panel h2 { font-size: 30px; }

  .toast { bottom: calc(8px + env(safe-area-inset-bottom)); padding: 8px 11px; font-size: 11px; }
  .modal-dialog { padding: 8px; }
  .modal-card { width: 100%; max-height: calc(100dvh - 16px); padding: 13px; border-radius: 13px; }
}

@media (max-width: 380px) {
  .app-shell { width: calc(100% - 8px); }
  .brand strong { font-size: 11px; }
  .profile-chip { max-width: 104px; }
  .two-col { grid-template-columns: 1fr; }
  .score-card { padding-left: 7px; }
  .score-card strong { font-size: 9px; }
  .score-card .points { font-size: 16px; }
  .game-header-actions { grid-template-columns: minmax(80px, auto) auto; }
  .game-header-actions .turn-banner, .game-header-actions .button { font-size: 10px; padding-left: 7px; padding-right: 7px; }
  .mobile-contract-tab span { font-size: 13px; }
  .progress-player { max-width: 38%; }
  .progress-dice { max-width: 62%; }
  .committed-die-chip { width: 21px; height: 21px; font-size: 15px; }
}

@media (max-width: 640px) and (orientation: landscape) {
  body.in-game .scoreboard { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.in-game .score-card { min-height: 42px; }
  body.in-game .board-heading { display: none; }
  body.in-game .contract-card { padding: 6px 8px; }
  body.in-game .requirements { margin: 4px 0; }
  body.in-game .dice-tray-heading { display: none; }
}

/* v1.2.2 mobile stacked-contract layout */
@media (max-width: 640px) {
  /* Phone order: table header -> contracts -> dice/actions -> players. */
  #gameView.view.active {
    display: flex;
    flex-direction: column;
  }
  #gameView .game-header { order: 1; }
  #gameView .board { order: 2; }
  #gameView .dice-tray { order: 3; }
  #gameView .scoreboard { order: 4; }
  #gameView .winner-panel { order: 5; }

  /* Players now sit directly below the roll/end-turn controls. */
  .scoreboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 6px 0 0;
  }
  .score-card {
    min-height: 50px;
    padding: 6px 6px 5px 8px;
  }
  .score-card strong { font-size: 10px; }
  .score-card .points { font-size: 19px; }

  /* All three contracts remain visible and stack vertically. */
  .mobile-card-tabs { display: none !important; }
  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .contract-card,
  .contract-card.mobile-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 9px 10px;
    border-radius: 11px;
  }
  .contract-card::after { inset: 5px; border-radius: 8px; }
  .contract-head { align-items: center; gap: 8px; }
  .contract-head small { font-size: 9px; letter-spacing: .12em; }
  .contract-head h3 { font-size: 19px; line-height: 1.05; }
  .contract-points {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-width: 2px;
  }

  /* Required dice are the visual focus on phones. */
  .requirements {
    justify-content: center;
    gap: 6px;
    margin: 6px 0 6px;
  }
  .req-die {
    width: clamp(39px, 12vw, 46px);
    height: clamp(39px, 12vw, 46px);
    border-radius: 8px;
    font-size: clamp(28px, 8.8vw, 34px);
    border-width: 1.5px;
  }

  /* Make ownership/committed dice easier to read without making cards excessively tall. */
  .progress-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 8px;
    margin-top: 1px;
  }
  .progress-row {
    min-width: 0;
    min-height: 29px;
    padding-top: 3px;
    gap: 4px;
    font-size: 10px;
  }
  .progress-row.empty-progress { grid-column: 1 / -1; }
  .progress-player {
    max-width: 48%;
    gap: 4px;
    font-weight: 700;
  }
  .progress-player .player-color-dot { width: 9px; height: 9px; }
  .progress-dice {
    width: auto;
    max-width: 52%;
    gap: 2px;
  }
  .committed-die-chip {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    font-size: 18px;
  }

  /* The tray is part of normal document flow so the player grid truly follows the button. */
  .dice-tray {
    position: relative;
    bottom: auto;
    z-index: 1;
    margin: 0;
    padding: 7px;
    box-shadow: none;
  }
  .game-controls { margin-top: 5px; }
}

@media (max-width: 380px) {
  .contract-head h3 { font-size: 18px; }
  .contract-points { width: 42px; height: 42px; font-size: 21px; }
  .req-die { width: 38px; height: 38px; font-size: 28px; }
  .progress-list { gap: 2px 5px; }
  .progress-row { font-size: 9px; }
  .committed-die-chip { width: 23px; height: 23px; font-size: 17px; }
}

@media (max-width: 640px) and (orientation: landscape) {
  /* Preserve the requested stacked-card/player-below-controls order in landscape too. */
  body.in-game .scoreboard { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.in-game .board-heading { display: flex; }
  body.in-game .contract-card { padding: 7px 9px; }
  body.in-game .requirements { margin: 4px 0; }
  body.in-game .dice-tray-heading { display: flex; }
}

/* v1.2.6 cache-proof/mobile structural layout */
.game-build {
  display: inline-block;
  margin-top: 4px;
  color: #746b5c;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Desktop keeps the established visual order even though the DOM is phone-first. */
#gameView.view.active {
  display: flex;
  flex-direction: column;
}
#gameView .game-header { order: 1; }
#gameView .scoreboard { order: 2; }
#gameView .board { order: 3; }
#gameView .dice-tray { order: 4; }
#gameView .winner-panel { order: 5; }

@media (max-width: 640px) {
  /* Explicit phone order: header -> 3 contracts -> dice/roll -> players. */
  #gameView .game-header { order: 1; }
  #gameView .board { order: 2; }
  #gameView .dice-tray { order: 3; }
  #gameView .scoreboard { order: 4; }
  #gameView .winner-panel { order: 5; }

  .game-build { margin: 0 0 0 5px; font-size: 8px; }

  /* There is no mobile card carousel in this build: show all three, always. */
  .mobile-card-tabs { display: none !important; }
  #cardGrid.card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
  }
  #cardGrid .contract-card,
  #cardGrid .contract-card.mobile-active {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-height: 0 !important;
    padding: 10px 11px !important;
    border-radius: 11px;
  }

  /* Give the card's useful information the visual weight. */
  #cardGrid .contract-head h3 {
    font-size: 20px !important;
    line-height: 1.05;
  }
  #cardGrid .contract-head small {
    font-size: 10px !important;
  }
  #cardGrid .contract-points {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
  }
  #cardGrid .requirements {
    justify-content: center;
    gap: 7px !important;
    margin: 7px 0 !important;
  }
  #cardGrid .req-die {
    width: clamp(42px, 12.8vw, 50px) !important;
    height: clamp(42px, 12.8vw, 50px) !important;
    font-size: clamp(30px, 9.5vw, 37px) !important;
    border-radius: 9px;
  }
  #cardGrid .progress-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }
  #cardGrid .progress-row {
    min-height: 31px;
    font-size: 10px !important;
  }
  #cardGrid .progress-player {
    font-size: 10px;
    font-weight: 800;
  }
  #cardGrid .committed-die-chip {
    width: 27px !important;
    height: 27px !important;
    font-size: 20px !important;
  }

  /* Keep the dice/action area compact so players are immediately below Roll Free Dice. */
  .dice-tray {
    position: static !important;
    margin: 0 !important;
    padding: 8px !important;
    box-shadow: none !important;
  }
  .dice-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .game-controls {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: row !important;
    margin-top: 6px !important;
    gap: 5px !important;
  }
  .game-controls .button {
    width: 100%;
    min-height: 42px;
    font-size: 12px !important;
  }

  /* Six players: compact 3x2 block immediately beneath controls. */
  #scoreboard.scoreboard {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 7px 0 0 !important;
  }
  #scoreboard .score-card {
    min-height: 51px;
    padding: 6px 6px 5px 8px !important;
  }
  #scoreboard .score-card strong { font-size: 10px !important; }
  #scoreboard .score-card .points { font-size: 19px !important; }
}

@media (max-width: 380px) {
  #cardGrid .contract-head h3 { font-size: 18px !important; }
  #cardGrid .contract-points { width: 44px !important; height: 44px !important; font-size: 22px !important; }
  #cardGrid .req-die { width: 39px !important; height: 39px !important; font-size: 29px !important; }
  #cardGrid .progress-list { gap: 3px 5px; }
  #cardGrid .committed-die-chip { width: 24px !important; height: 24px !important; font-size: 18px !important; }
}

/* v1.2.6 true die faces --------------------------------------------------
   The tile itself is the die. Pips are real child elements positioned
   directly on the face, so there is no nested Unicode die glyph. */
.pip-die {
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  overflow: hidden;
  --pip-size: 16.5%;
}

.die-pip {
  position: absolute;
  display: block;
  width: var(--pip-size);
  height: var(--pip-size);
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 1px rgba(0,0,0,.18);
  pointer-events: none;
}

.pip-tl { left: 24%; top: 24%; }
.pip-tr { left: 76%; top: 24%; }
.pip-ml { left: 24%; top: 50%; }
.pip-c  { left: 50%; top: 50%; }
.pip-mr { left: 76%; top: 50%; }
.pip-bl { left: 24%; top: 76%; }
.pip-br { left: 76%; top: 76%; }

/* Keep an unrolled die visible as an empty physical die. */
.pip-die.empty-die::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10%;
  height: 10%;
  border-radius: 50%;
  background: currentColor;
  opacity: .18;
  transform: translate(-50%, -50%);
}

/* Contract requirement dice are neutral ivory dice. */
.req-die.pip-die {
  color: #2a2117 !important;
  --pip-size: 17%;
}

/* Colored committed dice use the player's die variables applied in JS. */
.committed-die-chip.pip-die {
  --pip-size: 18%;
}

/* Main roll tray: the entire button is one physical die face. */
.die-button.pip-die,
.die-static.pip-die {
  --pip-size: 16%;
}

/* Tiny contract-tab preview dice retained at wider responsive breakpoints. */
.tab-requirements {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 3px;
}

.tab-mini-die {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f8edd3;
  border: 1px solid #8e7650;
  color: #2a2117;
  --pip-size: 18%;
}

@media (max-width: 640px) {
  #cardGrid .req-die.pip-die { --pip-size: 17.5%; }
  #cardGrid .committed-die-chip.pip-die { --pip-size: 18.5%; }
  .die-button.pip-die,
  .die-static.pip-die { --pip-size: 16.5%; }
}


/* v1.2.8 audio controls -------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sound-control { display: flex; align-items: center; gap: 6px; }
.sound-toggle {
  width: 38px; height: 38px; min-height: 38px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: #171511; cursor: pointer;
  font-size: 17px; line-height: 1;
}
.sound-toggle.muted { opacity: .55; }
.sound-volume-wrap { display: flex; align-items: center; }
.sound-volume {
  width: 88px; min-height: 28px; height: 28px; padding: 0; border: 0; background: transparent;
  accent-color: var(--gold-bright); cursor: pointer;
}
.sound-game-toggle { min-width: 42px; padding-left: 8px !important; padding-right: 8px !important; background: #201c16; }
.sound-game-toggle.muted { opacity: .55; }

@media (max-width: 640px) {
  .sound-volume { width: 62px; }
  .sound-toggle { width: 34px; height: 34px; min-height: 34px; font-size: 15px; }
  .game-header-actions { grid-template-columns: minmax(88px, auto) 40px auto !important; }
  .sound-game-toggle { min-width: 40px !important; width: 40px; padding: 0 !important; }
}

@media (max-width: 420px) {
  .sound-volume-wrap { display: none; }
}

/* v1.3.0 multi-die selection feedback */
.contract-card.selectable {
  outline: 2px solid rgba(190, 145, 70, .68);
  outline-offset: 2px;
  box-shadow: 0 12px 26px rgba(0,0,0,.24), 0 0 0 3px rgba(214,170,84,.12);
}
.die-button.selected {
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.28), 0 0 0 3px rgba(214,170,84,.22), 0 7px 13px rgba(0,0,0,.18);
}
@media (max-width: 640px) {
  .contract-card.selectable { outline-width: 3px; outline-offset: 1px; }
  .die-button.selected { transform: translateY(-2px) scale(1.035); }
}

@media (max-width: 640px) {
  .lobby-color-picker { padding: 8px; gap: 6px; }
  .lobby-color-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .lobby-color-swatch { min-height: 38px; padding: 5px; justify-content: center; }
  .lobby-color-chip { width: 27px; height: 27px; flex-basis: 27px; }
  .lobby-color-label { display: none; }
}
