/* Shetty / Shi player page. Light = cream. Dark = charcoal. Shared deltaplay-theme. */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F2E9;
  --bg-wash: #EFEBE0;
  --card: #FBF8F0;
  --stage: #EFE8DC;
  --ink: #2C2620;
  --muted: #7A7268;
  --body-soft: #5C554C;
  --lede: #4A433C;
  --line: rgba(44, 38, 32, 0.08);
  --shuo: #3D8A82;
  --shuo-dim: rgba(61, 138, 130, 0.14);
  --accent-orange: #C47A3A;
  --seg-empty: #E6DDD0;
  --seg-fill: #3D8A82;
  --radius: 22px;
  --stage-radius: 16px;
  --shadow-card: 0 1px 0 rgba(44, 38, 32, 0.04), 0 18px 44px -24px rgba(44, 38, 32, 0.28);
  --font: "Outfit", "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono-font: "IBM Plex Mono", "SF Mono", ui-monospace, Consolas, monospace;
  --sage: #D5E2D0;
  --sage-ink: #3A4A38;
  --lavender: #DDD6E8;
  --lavender-ink: #4A3F58;
  --dust: #E8DCC8;
  --dust-ink: #5A4E3C;
  --sky: #D4E0E8;
  --sky-ink: #3A4A54;
  --act-0: #E8E2D4;
  --act-1: #9AD4B8;
  --act-2: #3DA87A;
  --act-3: #1F8F62;
  --act-4: #0B6B48;
  --pill: rgba(44, 38, 32, 0.06);
  --act-pill-fg: #063226;
  --act-pill-bg: #9AD4B8;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12141A;
  --bg-wash: #12141A;
  --card: #181B22;
  --stage: #1C1F28;
  --ink: #fafeff;
  --muted: #8A8A86;
  --body-soft: #B4B4B0;
  --lede: #C8C8C4;
  --line: rgba(255, 255, 255, 0.08);
  --shuo: #7EB8B0;
  --shuo-dim: rgba(126, 184, 176, 0.22);
  --accent-orange: #E08A4A;
  --seg-empty: rgba(255, 255, 255, 0.12);
  --seg-fill: #7EB8B0;
  --shadow-card: none;
  --sage: rgba(126, 184, 176, 0.22);
  --sage-ink: #C5DDD4;
  --lavender: rgba(180, 160, 210, 0.22);
  --lavender-ink: #D4C8E4;
  --dust: rgba(200, 176, 130, 0.22);
  --dust-ink: #E0D0B4;
  --sky: rgba(130, 170, 200, 0.22);
  --sky-ink: #C0D4E0;
  --act-0: #252830;
  --act-1: #2A6B52;
  --act-2: #3DA87A;
  --act-3: #5BC496;
  --act-4: #9AD4B8;
  --pill: rgba(255, 255, 255, 0.07);
  --act-pill-fg: #9AD4B8;
  --act-pill-bg: rgba(61, 168, 122, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
}
body {
  font-family: var(--font);
  min-height: 100vh;
  letter-spacing: -0.01em;
  background:
    radial-gradient(900px 480px at 8% -8%, color-mix(in srgb, var(--shuo) 10%, transparent), transparent 62%),
    radial-gradient(720px 380px at 96% 4%, color-mix(in srgb, #C9B8A0 18%, transparent), transparent 58%),
    var(--bg);
}

.lab-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.lab {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 24px 88px;
  position: relative;
  z-index: 1;
}

.lab-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.lab-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { background: var(--pill); color: var(--ink); }
.theme-toggle svg { display: none; flex-shrink: 0; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="light"] .theme-toggle .ico-moon { display: block; }
html[data-theme="dark"] .lab-grain {
  opacity: 0.12;
  mix-blend-mode: overlay;
}
.lab-bar-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  font-variation-settings: "opsz" 72;
}
.lab-bar-meta {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.profile-back:hover { color: var(--ink); }
.profile-back svg { flex-shrink: 0; }

.lab-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}
.lab-col-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.lab-left { order: 1; }
.lab-profile { order: 2; }
.lab-g3 { order: 3; }

.lab-left, .lab-g3, .lab-profile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 24px 22px;
  min-width: 0;
}

.lab-kicker {
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 14px;
}
.lab-ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--shuo) 55%, #C9BBA8);
  background: var(--stage);
  margin-bottom: 14px;
  box-shadow: 0 10px 24px -14px rgba(44, 38, 32, 0.45);
}
.lab-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-variation-settings: "opsz" 84;
}
.lab-role {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--shuo);
}
.lab-role::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
  vertical-align: middle;
}
.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}
.right-tags { margin-top: 0; }
.lab-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lab-tag.sage { background: var(--sage); color: var(--sage-ink); }
.lab-tag.lavender { background: var(--lavender); color: var(--lavender-ink); }
.lab-tag.dust { background: var(--dust); color: var(--dust-ink); }
.lab-tag.sky { background: var(--sky); color: var(--sky-ink); }

.lab-lede .dossier-bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--body-soft);
}
.lab-lede .dossier-bio-src {
  margin-top: 8px;
  font-size: 10px;
  font-family: var(--mono-font);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lab-meta {
  margin-top: 14px;
  font-family: var(--mono-font);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.dossier-sec-lab {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin: 4px 0 12px;
}
.g3-banner {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--stage);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 14px;
}
.unit-stat {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.unit-ico {
  width: 28px;
  height: 28px;
  color: var(--shuo);
}
.unit-lab {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.unit-seg { display: flex; gap: 4px; }
.unit-seg i {
  display: block;
  flex: 1;
  height: 8px;
  border-radius: 3px;
  background: var(--seg-empty);
}
.unit-seg i.on { background: var(--seg-fill); }
.unit-val {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 4.6em;
  text-align: right;
}
.unit-note {
  grid-column: 2 / -1;
  font-size: 10px;
  font-family: var(--mono-font);
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 8px;
}
.dossier-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.dossier-fact {
  background: var(--stage);
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 64px;
}
.dossier-fact span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.dossier-fact b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dossier-fact small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono-font);
}
.dossier-bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body-soft);
}
.dossier-bio-src {
  margin-top: 8px;
  font-size: 10px;
  font-family: var(--mono-font);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  padding: 22px 22px 18px;
  min-height: 0;
}
.profile-card { padding: 22px 22px 18px; margin-bottom: 16px; }
.profile-card .dossier-sec-lab { margin-bottom: 14px; }

.act-card { margin-bottom: 16px; }
.act-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.act-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.act-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}
.act-pill {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--act-pill-fg);
  background: var(--act-pill-bg);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 600;
}
.act-metric {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 14px;
}
.act-metric span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.act-stage {
  position: relative;
  background: var(--stage);
  border-radius: var(--stage-radius);
  padding: 16px 16px 12px;
  overflow-x: auto;
}
.act-months {
  position: relative;
  height: 14px;
  margin: 0 0 6px 28px;
  font-family: var(--mono-font);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.act-month { white-space: nowrap; }
.act-body {
  display: grid;
  grid-template-columns: 22px max-content;
  gap: 6px;
  align-items: start;
}
.act-dows {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
  font-family: var(--mono-font);
  font-size: 9px;
  color: var(--muted);
  line-height: 12px;
}
.act-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 3px;
}
.act-tile {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--act-0);
  cursor: default;
  border: 0;
  padding: 0;
}
.act-tile.lv1 { background: var(--act-1); cursor: pointer; }
.act-tile.lv2 { background: var(--act-2); cursor: pointer; }
.act-tile.lv3 { background: var(--act-3); cursor: pointer; }
.act-tile.lv4 { background: var(--act-4); cursor: pointer; }
.act-tile:hover { outline: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); outline-offset: 1px; }

.act-hint {
  text-align: center;
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 4px;
}
.act-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono-font);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 10px;
}
.act-honesty {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--body-soft);
}
.act-honesty strong {
  display: block;
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 4px;
  font-weight: 600;
}

.act-tip {
  position: fixed;
  z-index: 50;
  min-width: 220px;
  max-width: 320px;
  pointer-events: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-card);
  font-size: 12px;
}
.act-tip[hidden] { display: none !important; }
.act-tip-date {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.act-tip-name { font-weight: 700; margin-bottom: 2px; }
.act-tip-sub { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.act-tip-match {
  font-family: var(--mono-font);
  font-size: 10px;
  line-height: 1.45;
  color: var(--lede);
}
.act-tip-src {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

.tmt-list { display: flex; flex-direction: column; gap: 8px; }
.tmt-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 12px;
  align-items: start;
  background: var(--stage);
  border-radius: 14px;
  padding: 12px 14px;
}
.tmt-dates {
  font-family: var(--mono-font);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-top: 3px;
}
.tmt-name { font-size: 14px; font-weight: 700; }
.tmt-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tmt-pos {
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--shuo);
  white-space: nowrap;
  padding-top: 3px;
}

.unverified {
  margin-top: 8px;
  padding-left: 18px;
  color: var(--body-soft);
  font-size: 13px;
  line-height: 1.5;
}
.unverified li { margin-bottom: 4px; }

.profile-footer {
  margin-top: 28px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.profile-footer code { font-size: 10px; font-family: var(--mono-font); }

@media (max-width: 1023px) {
  .lab-studio { grid-template-columns: 1fr; }
  .lab-col-left { display: contents; }
  .lab-bar { grid-template-columns: 1fr auto; text-align: left; }
  .lab-bar-title { grid-column: 1 / -1; text-align: left; }
  .lab-bar-right { grid-column: 2; grid-row: 1; }
  .profile-back { grid-column: 1; grid-row: 1; }
  .lab-left, .lab-g3, .lab-profile { max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .tmt-row { grid-template-columns: 1fr; gap: 4px; }
  .dossier-facts { grid-template-columns: 1fr; }
}
