/* Player Profile — extends casino.css. Scoped under .prof-root. */

.prof-root {
  --prof-card: #FFFFFF;
  --prof-card-2: #FBF7EE;
  --prof-tile-bg: #F8F2E5;
  --prof-edge: rgba(26, 22, 18, 0.08);
}

/* ───────────── Header ───────────── */
.prof-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 36px 24px;
  padding: 24px 28px;
  background: var(--prof-card);
  border: 1px solid var(--prof-edge);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(26, 22, 18, 0.03), 0 12px 30px -16px rgba(26, 22, 18, 0.10);
  flex-wrap: wrap;
}
.prof-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.prof-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #C8A14A, #8C6E1F);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.prof-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prof-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: help;
}
.prof-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #888;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  flex-shrink: 0;
}
.prof-sync[data-state="idle"]    .prof-sync-dot { background: #888; }
.prof-sync[data-state="syncing"] .prof-sync-dot { background: #f5c542; animation: prof-sync-pulse 1s ease-in-out infinite; }
.prof-sync[data-state="synced"]  .prof-sync-dot { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); }
.prof-sync[data-state="offline"] .prof-sync-dot { background: #f87171; }
@keyframes prof-sync-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.prof-name-row {
  font-size: 32px;
  margin: 4px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prof-name-edit {
  background: transparent;
  border: 1px solid var(--prof-edge);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.prof-name-edit:hover {
  background: var(--prof-tile-bg);
  color: var(--ink);
  border-color: var(--ink);
}
.prof-name-input {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 0;
  border-bottom: 2px solid var(--gold);
  outline: none;
  padding: 2px 4px;
  background: transparent;
  color: var(--ink);
  min-width: 200px;
}
.prof-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.prof-cashout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 18px -8px rgba(26, 22, 18, 0.45);
}
.prof-cashout:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(26, 22, 18, 0.55);
}
.prof-cashout-label {
  font-weight: 600;
  font-size: 15px;
}
.prof-cashout-sub {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* ───────────── Hero strip ───────────── */
.prof-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 36px 32px;
}
.prof-hero-tile {
  background: var(--prof-card);
  border: 1px solid var(--prof-edge);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prof-hero-tile .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.prof-hero-tile .n {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.prof-hero-tile .n.accent { color: var(--gold); }
.prof-hero-tile .s {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ───────────── Section row helpers ───────────── */
.prof-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin-bottom: 14px;
  align-items: center;
}
.prof-row-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.prof-row-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.prof-mini {
  background: var(--prof-tile-bg);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid var(--prof-edge);
}
.prof-mini.wide { grid-column: span 2; }
.prof-mini .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.prof-mini .n {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.prof-mini .n.accent { color: var(--gold); }
.prof-mini .s { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* ───────────── Rare event chips ───────────── */
.prof-rare {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prof-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--prof-card);
  border: 1px solid var(--prof-edge);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}
.prof-chip .ico {
  font-size: 14px;
  color: var(--gold);
}
.prof-chip .n {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
}
.prof-chip .l {
  color: var(--ink-soft);
}
.prof-chip.has-trophy { border-color: var(--gold); background: #FBF4DE; }

/* ───────────── 8 per-game cards ───────────── */
.prof-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 36px;
}
.prof-game {
  background: var(--prof-card);
  border: 1px solid var(--prof-edge);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prof-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(26, 22, 18, 0.18);
}
.prof-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prof-game h4 {
  font-size: 17px;
  margin: 0;
}
.prof-game-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--prof-tile-bg);
  border-radius: 999px;
  padding: 3px 8px;
}
.prof-game-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--ink-soft);
}
.prof-game-meta .v {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.prof-game-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.prof-game-foot .play {
  color: var(--ink);
  font-weight: 600;
}

/* ───────────── Skeleton sections ───────────── */
.prof-skel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 12px 0 32px;
}
.prof-skel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--prof-card);
  border: 1px solid var(--prof-edge);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  transition: background 0.12s;
}
.prof-skel-row:hover { background: var(--prof-tile-bg); }
.prof-skel-row .name { font-weight: 500; }
.prof-skel-row .v {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.prof-skel-row .v.muted { color: var(--ink-soft); font-weight: 400; }

/* ───────────── Confirm modal ───────────── */
.prof-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 22, 18, 0.55);
  z-index: 100;
  padding: 20px;
}
.prof-modal.show { display: flex; }
.prof-modal-box {
  background: var(--prof-card);
  border-radius: 16px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.4);
}
.prof-modal-box h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
}
.prof-modal-box p { color: var(--ink-soft); line-height: 1.5; margin: 0 0 18px; font-size: 14px; }
.prof-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.prof-modal-actions button {
  font: 600 14px 'Inter', sans-serif;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--prof-edge);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.prof-modal-actions button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.prof-modal-actions button:hover { filter: brightness(0.95); }
.prof-modal-actions button.primary:hover { filter: brightness(1.1); }

/* ───────────── Responsive ───────────── */
@media (max-width: 1000px) {
  .prof-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prof-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prof-row { grid-template-columns: 1fr; }
  .prof-row-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .prof-header,
  .prof-hero { margin-left: 18px; margin-right: 18px; }
  .prof-hero { grid-template-columns: 1fr; }
  .prof-game-grid { grid-template-columns: 1fr; }
  .prof-row-tiles { grid-template-columns: 1fr; }
  .prof-mini.wide { grid-column: auto; }
  .prof-skel-grid { grid-template-columns: 1fr; }
}
