/* WEB-SKIN-V07: Dudes complete hot-pink / safety-orange skin. */
.dudes-face { display: none; }

body[data-card-skin="dudes"] {
  --void: #090b0f;
  --panel: #11151b;
  --panel-2: #18202a;
  --line: #ff5820;
  --line-rgb: 255, 88, 32;
  --line-soft: rgba(255, 88, 32, 0.40);
  --text: #f8f2f4;
  --muted: #86a9bd;
  --danger: #ff50a0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 80, 160, 0.18), transparent 46%),
    radial-gradient(circle at 14% 68%, rgba(255, 88, 32, 0.10), transparent 34%),
    linear-gradient(180deg, #18212a, #07090d 76%);
}

body[data-card-skin="dudes"] ::selection {
  color: #13070d;
  background: rgba(255, 80, 160, 0.84);
}

body[data-card-skin="dudes"] .brand-panel,
body[data-card-skin="dudes"] .join-card,
body[data-card-skin="dudes"] .rules-card,
body[data-card-skin="dudes"] .lobby-panel,
body[data-card-skin="dudes"] .finish-panel,
body[data-card-skin="dudes"] .table-shell,
body[data-card-skin="dudes"] .game-header,
body[data-card-skin="dudes"] .player-score,
body[data-card-skin="dudes"] .capture-panel,
body[data-card-skin="dudes"] .last-move-panel,
body[data-card-skin="dudes"] .replay-panel,
body[data-card-skin="dudes"] .room-tools-panel,
body[data-card-skin="dudes"] .premium-panel,
body[data-card-skin="dudes"] .final-score {
  border-color: var(--line-soft);
  background-color: rgba(13, 17, 22, 0.95);
}

body[data-card-skin="dudes"] .brand-panel,
body[data-card-skin="dudes"] .join-card,
body[data-card-skin="dudes"] .rules-card,
body[data-card-skin="dudes"] .lobby-panel,
body[data-card-skin="dudes"] .finish-panel {
  background: linear-gradient(145deg, rgba(28, 35, 43, 0.97), rgba(7, 9, 13, 0.99));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 80, 160, 0.035);
}

body[data-card-skin="dudes"] .eyebrow,
body[data-card-skin="dudes"] h1,
body[data-card-skin="dudes"] .rules-card summary,
body[data-card-skin="dudes"] .lobby-panel h2,
body[data-card-skin="dudes"] .finish-panel h2,
body[data-card-skin="dudes"] .large-code,
body[data-card-skin="dudes"] .room-line strong,
body[data-card-skin="dudes"] .score-title,
body[data-card-skin="dudes"] .seat-status.online,
body[data-card-skin="dudes"] .stack-count b,
body[data-card-skin="dudes"] .rail-heading strong,
body[data-card-skin="dudes"] #selectionHint,
body[data-card-skin="dudes"] .final-score strong,
body[data-card-skin="dudes"] #replayIndex,
body[data-card-skin="dudes"] .premium-panel h2,
body[data-card-skin="dudes"] .system-on b,
body[data-card-skin="dudes"] .room-tools-field label {
  color: #ff50a0;
}

body[data-card-skin="dudes"] label,
body[data-card-skin="dudes"] .motto,
body[data-card-skin="dudes"] .room-line,
body[data-card-skin="dudes"] .score-values,
body[data-card-skin="dudes"] .stack-count,
body[data-card-skin="dudes"] .rail-heading,
body[data-card-skin="dudes"] .diagonal-key,
body[data-card-skin="dudes"] .game-log,
body[data-card-skin="dudes"] .final-score span,
body[data-card-skin="dudes"] .rematch-status,
body[data-card-skin="dudes"] .replay-text,
body[data-card-skin="dudes"] .inspect-register,
body[data-card-skin="dudes"] .room-tools-note {
  color: #83b6d2;
}

body[data-card-skin="dudes"] .turn-message,
body[data-card-skin="dudes"] .last-move,
body[data-card-skin="dudes"] .history-slide,
body[data-card-skin="dudes"] .rules-card {
  color: #f3edf0;
}

body[data-card-skin="dudes"] input,
body[data-card-skin="dudes"] .card-skin-select {
  border-color: rgba(255, 88, 32, 0.58);
  color: #f8f2f4;
  background: #0b1016;
}

body[data-card-skin="dudes"] input:focus,
body[data-card-skin="dudes"] .card-skin-select:focus {
  border-color: #ff50a0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 80, 160, 0.16);
}

/* UI controls only. Card buttons are deliberately excluded. */
body[data-card-skin="dudes"] button:not(.card):not(.secondary):not(.ghost):not(.end-room-button):not(.intake-button) {
  color: #140810;
  border-color: #ff70b4;
  background: #ff50a0;
  box-shadow: 0 0 22px rgba(255, 80, 160, 0.20);
}

body[data-card-skin="dudes"] button.secondary {
  color: #ff7dbe;
  border-color: rgba(255, 80, 160, 0.70);
  background: rgba(31, 15, 27, 0.88);
}

body[data-card-skin="dudes"] button.ghost {
  color: #b9d5e4;
  border-color: rgba(72, 128, 160, 0.60);
  background: #131c24;
}

body[data-card-skin="dudes"] .game-header {
  border-color: rgba(255, 88, 32, 0.44);
  background: rgba(10, 14, 19, 0.94);
  box-shadow: 0 0 24px rgba(255, 80, 160, 0.06);
}

body[data-card-skin="dudes"] .connection.online {
  color: #79c8f0;
  background: rgba(72, 128, 160, 0.16);
}

body[data-card-skin="dudes"] .table-shell {
  border-color: rgba(255, 88, 32, 0.48);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.99), rgba(4, 6, 9, 0.99));
  box-shadow: inset 0 0 70px rgba(255, 80, 160, 0.045);
}

body[data-card-skin="dudes"] .table-shell::before {
  background-image:
    linear-gradient(rgba(9, 13, 18, 0.68), rgba(2, 4, 7, 0.93)),
    radial-gradient(circle at center, rgba(255, 80, 160, 0.10), transparent 55%),
    var(--board);
  opacity: 0.58;
  filter: saturate(0.72) sepia(0.12) hue-rotate(306deg) contrast(1.22) brightness(0.70);
}

body[data-card-skin="dudes"] .player-score {
  border-color: rgba(72, 128, 160, 0.62);
  background: rgba(10, 14, 19, 0.92);
}

body[data-card-skin="dudes"] .player-score.active-seat {
  border-color: rgba(255, 80, 160, 0.94);
  box-shadow: 0 0 18px rgba(255, 80, 160, 0.13);
}

body[data-card-skin="dudes"] .status-panel {
  border-left-color: #ff5820;
  background: linear-gradient(90deg, rgba(78, 25, 45, 0.88), rgba(15, 20, 27, 0.96));
}

body[data-card-skin="dudes"] h3,
body[data-card-skin="dudes"] .capture-panel summary,
body[data-card-skin="dudes"] .rail-axis .axis-name {
  color: #ff50a0;
}

body[data-card-skin="dudes"] .rail-axis { color: #d8f0ff; }

body[data-card-skin="dudes"] .card-back-mini {
  border-color: rgba(255, 88, 32, 0.72);
  filter: saturate(0.78) sepia(0.18) hue-rotate(305deg) contrast(1.26) brightness(0.76);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.64), 0 0 9px rgba(255, 80, 160, 0.15);
}

body[data-card-skin="dudes"] .card:not(.empty),
body[data-card-skin="dudes"] .mini-card,
body[data-card-skin="dudes"] .replay-card,
body[data-card-skin="dudes"] #yourHand > button.card.selectable,
body[data-card-skin="dudes"] #yourHand > button.card.selectable:hover,
body[data-card-skin="dudes"] #yourHand > button.card.selectable:focus-visible,
body[data-card-skin="dudes"] #yourHand > button.card.selectable:active,
body[data-card-skin="dudes"] #yourHand > button.card.selectable:disabled {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 88, 32, 0.96);
  background-color: #141920 !important;
  background-image: linear-gradient(155deg, #19212a 0%, #11161d 52%, #171c23 100%) !important;
  box-shadow: 0 0 0 1px rgba(77, 33, 20, 0.90) inset, 0 0 12px rgba(255, 80, 160, 0.18), 0 7px 16px rgba(0, 0, 0, 0.64);
}

body[data-card-skin="dudes"] .card.selectable.selected {
  border-color: #ffd2e8;
  box-shadow: 0 0 0 3px rgba(255, 80, 160, 0.42), 0 0 30px rgba(255, 80, 160, 0.34), 0 12px 22px rgba(0, 0, 0, 0.78);
}

body[data-card-skin="dudes"] .card.empty {
  border-color: rgba(72, 128, 160, 0.62);
  color: #52758a;
  background-color: rgba(18, 24, 31, 0.80);
}

body[data-card-skin="dudes"] .intake-button {
  color: #a9d8ef;
  border-color: rgba(72, 128, 160, 0.66);
  background: rgba(11, 15, 21, 0.97);
}

body[data-card-skin="dudes"] .intake-button.ready {
  color: #140810;
  border-color: #ff70b4;
  background: #ff50a0;
  box-shadow: 0 0 24px rgba(255, 80, 160, 0.24);
}

body[data-card-skin="dudes"] .capture-panel {
  border-color: rgba(72, 128, 160, 0.46);
  background: rgba(10, 14, 19, 0.94);
}

body[data-card-skin="dudes"] .last-move-panel {
  border-color: rgba(72, 128, 160, 0.40);
  background: rgba(7, 10, 14, 0.95);
}

body[data-card-skin="dudes"] .final-score.winner {
  border-color: #ff50a0;
  box-shadow: 0 0 24px rgba(255, 80, 160, 0.17);
}

body[data-card-skin="dudes"] .toast {
  border-color: #ff5820;
  background: rgba(13, 17, 22, 0.98);
  box-shadow: 0 10px 40px black, 0 0 18px rgba(255, 80, 160, 0.10);
}

body[data-card-skin="dudes"] .slide-result-banner {
  border-color: #ff50a0;
  color: #140810;
  background: #ff50a0;
  box-shadow: 0 0 28px rgba(255, 80, 160, 0.24);
}

body[data-card-skin="dudes"] .star-trace.gold-trace {
  color: #0c1117;
  background: #ff50a0;
  box-shadow: 0 0 14px rgba(255, 80, 160, 0.80), inset 0 0 7px rgba(255, 255, 255, 0.22);
}

body[data-card-skin="dudes"] .star-trace.black-trace {
  color: #8bc7e6;
  border-color: #487898;
  background: rgba(5, 9, 13, 0.92);
  box-shadow: 0 0 10px rgba(72, 128, 160, 0.42);
}

body[data-card-skin="dudes"] .end-room-button {
  color: #ffc9e2;
  border-color: rgba(255, 80, 160, 0.74);
  background: rgba(61, 18, 42, 0.56);
}

/* Deterministic Dudes card face. */
body[data-card-skin="dudes"] .dudes-face {
  position: absolute;
  inset: 2.3%;
  z-index: 3;
  display: grid;
  grid-template-rows: 7% 16% 2% 31% 6% 22% 14%;
  min-width: 0;
  min-height: 0;
  padding: 3.5%;
  border: 1px solid rgba(255, 88, 32, 0.88);
  border-radius: 4%;
  color: #f8f2f4;
  background: linear-gradient(90deg, rgba(255, 80, 160, 0.06), transparent 15%, transparent 85%, rgba(255, 88, 32, 0.07)), rgba(17, 22, 29, 0.90);
  box-shadow: 0 0 0 1px rgba(54, 32, 24, 0.94), 0 0 8px rgba(255, 80, 160, 0.13) inset;
  font-size: clamp(3.1px, 1.1vw, 6.2px);
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.025em;
  pointer-events: none;
  text-align: left;
  text-transform: uppercase;
}

body[data-card-skin="dudes"] .du-top,
body[data-card-skin="dudes"] .du-title,
body[data-card-skin="dudes"] .du-stars,
body[data-card-skin="dudes"] .du-weights,
body[data-card-skin="dudes"] .du-gold,
body[data-card-skin="dudes"] .du-footer { min-width: 0; }

body[data-card-skin="dudes"] .du-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 3%;
  color: #79b8da;
  font-size: 0.62em;
  white-space: nowrap;
}

body[data-card-skin="dudes"] .du-top small:last-child { color: #ff5820; text-align: right; }
body[data-card-skin="dudes"] .du-title { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 5%; overflow: hidden; }
body[data-card-skin="dudes"] .du-title strong { align-self: center; color: #ff50a0; font-family: Georgia, "Times New Roman", serif; font-size: 4.65em; font-weight: 800; letter-spacing: -0.08em; line-height: 0.8; text-shadow: 0 0 7px rgba(255, 80, 160, 0.56); }
body[data-card-skin="dudes"] .du-title em { overflow: hidden; padding-bottom: 4%; color: #ff5820; font-size: 0.88em; font-style: normal; font-weight: 850; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
body[data-card-skin="dudes"] .du-rule { align-self: center; height: 1px; background: linear-gradient(90deg, #ff5820, rgba(255, 88, 32, 0.12)); }
body[data-card-skin="dudes"] .du-stars { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 1%; }
body[data-card-skin="dudes"] .du-channel { display: grid; grid-template-rows: 1fr auto auto; place-items: center; min-width: 0; color: #b7d6e6; font-style: normal; }
body[data-card-skin="dudes"] .du-channel b { color: #213342; font-family: Georgia, "Times New Roman", serif; font-size: 3.2em; font-weight: 400; line-height: 0.95; text-shadow: 0 0 1px #487898; }
body[data-card-skin="dudes"] .du-channel.is-lit b { color: #ff50a0; text-shadow: 0 0 2px #fff0f7, 0 0 8px rgba(255, 80, 160, 0.92); }
body[data-card-skin="dudes"] .du-channel i { margin-top: 8%; color: #d9effa; font-size: 0.92em; font-style: normal; font-weight: 900; }
body[data-card-skin="dudes"] .du-channel small { overflow: hidden; width: 100%; margin-top: 8%; color: #6fa0bb; font-size: 0.48em; text-align: center; white-space: nowrap; }
body[data-card-skin="dudes"] .du-weights { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; color: #90bbd0; font-size: 0.75em; text-align: center; }
body[data-card-skin="dudes"] .du-weights i { font-style: normal; }

body[data-card-skin="dudes"] .du-gold {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: 5% 6%;
  border: 1px solid rgba(255, 88, 32, 0.84);
  border-radius: 7%;
  background: rgba(13, 18, 24, 0.86);
  box-shadow: 0 0 7px rgba(255, 80, 160, 0.14) inset;
}

body[data-card-skin="dudes"] .du-gold small { color: #80c3e4; font-size: 0.86em; font-weight: 900; }
body[data-card-skin="dudes"] .du-gold b { grid-row: 2; color: #ff50a0; font-size: 2.8em; font-weight: 800; line-height: 0.8; }
body[data-card-skin="dudes"] .du-gold code { grid-column: 2; grid-row: 1 / span 2; color: #ccecff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.25em; letter-spacing: 0.08em; }
body[data-card-skin="dudes"] .du-footer { align-self: end; display: grid; gap: 10%; color: #d9edf7; font-size: 0.72em; text-align: center; }
body[data-card-skin="dudes"] .du-footer small { color: #78a9c2; font-size: 0.8em; }

body[data-card-skin="dudes"] .mini-card .dudes-face,
body[data-card-skin="dudes"] .replay-card .dudes-face { grid-template-rows: 34% 4% 42% 20%; padding: 5%; font-size: 3px; }
body[data-card-skin="dudes"] .mini-card .du-top,
body[data-card-skin="dudes"] .mini-card .du-weights,
body[data-card-skin="dudes"] .mini-card .du-gold,
body[data-card-skin="dudes"] .mini-card .du-footer,
body[data-card-skin="dudes"] .mini-card .du-title em,
body[data-card-skin="dudes"] .replay-card .du-top,
body[data-card-skin="dudes"] .replay-card .du-weights,
body[data-card-skin="dudes"] .replay-card .du-footer,
body[data-card-skin="dudes"] .replay-card .du-channel small { display: none; }
body[data-card-skin="dudes"] .mini-card .du-title,
body[data-card-skin="dudes"] .replay-card .du-title { display: block; }
body[data-card-skin="dudes"] .mini-card .du-title strong,
body[data-card-skin="dudes"] .replay-card .du-title strong { font-size: 5em; }
body[data-card-skin="dudes"] .mini-card .du-channel b,
body[data-card-skin="dudes"] .replay-card .du-channel b { font-size: 2.5em; }
body[data-card-skin="dudes"] .mini-card .du-channel i { display: none; }
body[data-card-skin="dudes"] .replay-card .du-gold { display: flex; justify-content: space-between; padding: 3% 6%; }
body[data-card-skin="dudes"] .replay-card .du-gold b { font-size: 2em; }
body[data-card-skin="dudes"] .replay-card .du-gold code { font-size: 0.9em; }

@media (max-width: 430px) {
  body[data-card-skin="dudes"] .card .dudes-face { font-size: clamp(2.8px, 1vw, 4.8px); }
  body[data-card-skin="dudes"] .card .du-channel small,
  body[data-card-skin="dudes"] .card .du-top small:first-child { display: none; }
  body[data-card-skin="dudes"] .card .du-top { justify-content: flex-end; }
}