:root {
  --bg: #eef2f6;
  --bg-mid: #eef2f6;
  --bg-dark: #e4e9ef;
  --panel: #ffffff;
  --panel-edge: #d9e1ea;
  --panel-shadow: rgba(15, 23, 42, 0.05);
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #eff6ff;
  --accent-3: #1d4ed8;
  --good: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --bottom-nav-gap: 10px;
  --bottom-nav-safe: max(var(--bottom-nav-gap), env(safe-area-inset-bottom));
  --bottom-nav-height: 76px;
  --bottom-nav-offset: calc(var(--bottom-nav-height) + var(--bottom-nav-safe) + 20px);
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

#app {
  width: 100%;
  overflow-x: hidden;
}

.app-shell {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: min(100vh, 932px);
  height: min(100vh, 932px);
  margin: 0 auto;
  padding: 12px 10px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--panel-edge);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: #f7f8fa;
}

.app-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.intro-shell {
  min-height: min(100vh, 932px);
  display: grid;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.home-screen {
  padding-bottom: var(--bottom-nav-offset);
}

.team-tab-screen {
  padding-top: 8px;
  padding-bottom: calc(var(--bottom-nav-offset) - 8px);
}

.team-tab-stack {
  display: grid;
  gap: 8px;
}

.recruit-screen {
  display: grid;
  gap: 12px;
}

.intro-screen {
  display: grid;
  gap: 14px;
  cursor: pointer;
  outline: none;
}

.gym-stage {
  position: relative;
  height: 320px;
  overflow: hidden;
  border: 2px solid rgba(43, 11, 76, 0.6);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 245, 186, 0.08), rgba(0, 0, 0, 0) 18%),
    linear-gradient(180deg, #12071f 0%, #24103a 44%, #3a1760 78%, #5d2f96 100%);
  box-shadow: 0 8px 20px rgba(29, 6, 54, 0.2);
}

.spotlight {
  position: absolute;
  left: 50%;
  top: -6%;
  width: 220px;
  height: 250px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 20%, rgba(255, 245, 186, 0.75), rgba(255, 245, 186, 0.08) 45%, rgba(255, 245, 186, 0) 72%);
  filter: blur(2px);
  animation: glowPulse 4s ease-in-out infinite;
}

.court-ring {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 190px;
  height: 54px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 212, 107, 0.42);
  border-radius: 50%;
  background: rgba(255, 212, 107, 0.04);
}

.mentor-silhouette {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 92px;
  height: 150px;
  transform: translateX(-50%);
  opacity: 0.9;
}

.mentor-head,
.mentor-body,
.mentor-ball {
  position: absolute;
  background: rgba(16, 5, 30, 0.9);
  box-shadow: 2px 2px 0 rgba(255, 245, 186, 0.06);
}

.mentor-head {
  top: 8px;
  left: 28px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.mentor-body {
  left: 20px;
  top: 42px;
  width: 50px;
  height: 78px;
  clip-path: polygon(18% 0, 82% 0, 100% 24%, 90% 100%, 10% 100%, 0 24%);
}

.mentor-body::before,
.mentor-body::after {
  content: "";
  position: absolute;
  bottom: -28px;
  width: 12px;
  height: 32px;
  background: rgba(16, 5, 30, 0.9);
}

.mentor-body::before {
  left: 10px;
}

.mentor-body::after {
  right: 10px;
}

.mentor-ball {
  right: 4px;
  top: 62px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.basketball {
  position: absolute;
  left: -40px;
  bottom: 68px;
  width: 30px;
  height: 30px;
  border: 3px solid #4a2200;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, #4a2200 45%, #4a2200 55%, transparent 55%),
    linear-gradient(180deg, transparent 45%, #4a2200 45%, #4a2200 55%, transparent 55%),
    #c96c1b;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.basketball.is-rolling {
  animation: ballRoll 3.6s ease-out forwards;
}

.basketball.is-resting {
  transform: translateX(222px) rotate(450deg);
}

.intro-dialog {
  display: grid;
  gap: 7px;
  background: #fff8dc;
}

.intro-line {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text);
}

.accent-line {
  color: var(--accent);
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.dialog-label {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.dialog-caret {
  font-size: 0.9rem;
  color: var(--muted);
  animation: caretBlink 0.9s steps(1) infinite;
}

.dialog-caret.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

@keyframes ballRoll {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  70% {
    transform: translateX(208px) rotate(400deg);
  }

  100% {
    transform: translateX(222px) rotate(450deg);
  }
}

@keyframes caretBlink {
  0%, 49% {
    opacity: 0.25;
  }

  50%, 100% {
    opacity: 1;
  }
}

.hero,
.stack,
.main-grid,
.tactic-form,
.insight-list,
.roster-list,
.schedule-list,
.highlight-list,
.possession-list {
  display: grid;
  gap: 10px;
}

.hero {
  margin-bottom: 10px;
}

.quick-grid,
.mini-stats {
  display: grid;
  gap: 10px;
}

.quick-grid {
  grid-template-columns: 1fr 1fr;
}

.simple-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-top,
.panel,
.stat-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  box-shadow: none;
}

.hero-top {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.hero-top::after,
.panel::after,
.stat-card::after {
  content: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.56rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1rem, 5.6vw, 1.45rem);
  line-height: 1.5;
}

.hero p,
.panel-head p,
.summary,
.highlight-card p,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.hero-badge {
  padding: 10px;
  border: 2px solid rgba(85, 37, 131, 0.24);
  background: rgba(255, 217, 90, 0.18);
}

.hero-badge strong {
  display: block;
  margin: 6px 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 12px;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.stat-card strong {
  font-size: 1.2rem;
  line-height: 1.4;
}

.layout {
  display: grid;
  gap: 10px;
}

.stack {
  gap: 10px;
}

.panel {
  padding: 12px;
}

.panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-head.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-head h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.7;
}

.pill {
  display: inline-block;
  width: fit-content;
  padding: 5px 8px;
  background: #f3f4f6;
  border: 1px solid var(--panel-edge);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  border-radius: 999px;
}

.pill.small {
  padding: 4px 6px;
  font-size: 0.64rem;
}

.main-board {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: #ffffff;
}

.main-board h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
  text-align: center;
}

.score-rank,
.board-record,
.board-timer {
  font-size: 0.82rem;
  line-height: 1.8;
  text-align: center;
}

.board-timer {
  color: var(--muted);
}

.main-cta {
  width: 100%;
}

.quick-card {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.quick-emphasis {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.6;
}

.focus-card {
  display: grid;
  gap: 8px;
}

.focus-card strong {
  font-size: 0.9rem;
  line-height: 1.6;
}

.augment-offer-grid {
  display: grid;
  gap: 10px;
}

.augment-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--panel-edge);
  background: #ffffff;
  border-radius: 8px;
}

.augment-card.tier-silver {
  border-color: rgba(120, 120, 120, 0.35);
  background: rgba(240, 240, 240, 0.52);
}

.augment-card.tier-gold {
  border-color: rgba(245, 197, 66, 0.45);
  background: rgba(255, 231, 153, 0.3);
}

.augment-card.tier-prism {
  border-color: rgba(140, 82, 255, 0.38);
  background: linear-gradient(135deg, rgba(196, 168, 255, 0.28), rgba(255, 228, 153, 0.24));
}

.augment-card.tier-synergy {
  border-color: rgba(54, 125, 72, 0.34);
  background: rgba(122, 209, 127, 0.16);
}

.augment-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.augment-head strong {
  font-size: 0.82rem;
  line-height: 1.5;
}

.augment-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.augment-tags span {
  padding: 3px 6px;
  border: 1px solid rgba(85, 37, 131, 0.16);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--muted);
}

.augment-pick-btn {
  margin-top: 2px;
}

.standings-head,
.standings-main {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 62px 52px 52px;
  gap: 8px;
  align-items: center;
}

.standings-head {
  padding: 6px 8px;
  border: 1px solid var(--panel-edge);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.standings-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.standings-row {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--panel-edge);
  background: #ffffff;
  font-size: 0.72rem;
  line-height: 1.5;
}

.standings-meta {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}

.standings-meta span {
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--muted);
}

.standings-row strong {
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-row.is-user {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.recruit-header {
  display: grid;
  gap: 8px;
}

.recruit-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.pack-stage {
  position: relative;
  width: 100%;
}

.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "top top"
    "left right";
  gap: 12px;
  align-items: start;
  justify-items: center;
}

.recruit-card {
  position: relative;
  width: min(46vw, 192px);
  min-height: 0;
  padding: 6px;
  border: 2px solid rgba(85, 37, 131, 0.16);
  border-radius: 18px;
  background: #fff8dc;
  display: grid;
  gap: 0;
  align-content: start;
  box-shadow: 0 14px 28px rgba(43, 11, 76, 0.12);
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.recruit-card.pack-pos-top {
  grid-area: top;
}

.recruit-card.pack-pos-left {
  grid-area: left;
}

.recruit-card.pack-pos-right {
  grid-area: right;
}

.recruit-card.pack-pos-extra {
  grid-column: 1 / -1;
}

.recruit-card.featured {
  background: #ffe58b;
}

.recruit-card:not(.is-selected) {
  filter: saturate(0.9);
}

.recruit-card.is-selected {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(245, 197, 66, 0.7);
  box-shadow: 0 20px 34px rgba(43, 11, 76, 0.22);
}

.recruit-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 34px rgba(43, 11, 76, 0.2);
}

.team-card {
  gap: 0;
}

.team-box {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(85, 37, 131, 0.12);
  background: rgba(140, 82, 255, 0.04);
}

.team-box-title {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted);
}

.team-lane {
  display: grid;
  gap: 6px;
}

.team-lane + .team-lane {
  margin-top: 2px;
}

.team-lane-title {
  padding: 4px 6px;
  border: 1px solid rgba(85, 37, 131, 0.08);
  background: rgba(255, 255, 255, 0.38);
  font-size: 0.66rem;
  line-height: 1.4;
  color: var(--muted);
}

.recruit-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.recruit-meta span {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted);
}

.pack-art {
  position: relative;
  margin: 0;
  height: 230px;
  border-radius: 16px;
  border: 1px solid rgba(85, 37, 131, 0.14);
  background: linear-gradient(145deg, rgba(106, 53, 155, 0.95), rgba(63, 21, 104, 0.98));
  overflow: hidden;
}

.pack-art-btn {
  display: block;
  width: 100%;
  line-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pack-edge {
  position: absolute;
  inset: 14px 12px;
  border: 1px dashed rgba(255, 217, 90, 0.38);
  border-radius: 12px;
}

.pack-seal {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 217, 90, 0.96);
  color: #402060;
  font-size: 0.76rem;
  font-weight: 800;
}

.pack-shine {
  position: absolute;
  inset: -24px auto auto -18px;
  width: 72px;
  height: 320px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.22), rgba(255,255,255,0));
  transform: rotate(22deg);
}

.pack-core-mark {
  position: absolute;
  left: 16px;
  bottom: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 217, 90, 0.14);
  color: rgba(255, 248, 220, 0.92);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pack-choice-pack-grid {
  margin-bottom: 14px;
}

.pack-choice-pack-btn {
  width: 100%;
}

.pack-choice-caption {
  display: grid;
  gap: 2px;
  padding: 10px 6px 4px;
  text-align: center;
}

.pack-choice-caption strong {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text);
}

.pack-choice-caption span {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
}

.pack-choice-art-basic {
  background: linear-gradient(145deg, rgba(106, 53, 155, 0.95), rgba(63, 21, 104, 0.98));
}

.pack-choice-art-gold {
  background: linear-gradient(145deg, rgba(185, 120, 8, 0.98), rgba(120, 68, 4, 0.98));
}

.pack-choice-art-elite {
  background: linear-gradient(145deg, rgba(12, 86, 126, 0.98), rgba(5, 45, 84, 0.98));
}

.pack-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(85, 37, 131, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.pack-nav-left {
  left: 0;
}

.pack-nav-right {
  right: 0;
}

.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.team-preview-slot {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 78px;
  padding: 6px;
  border: 1px solid rgba(85, 37, 131, 0.12);
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.pack-result-slot[data-player-preview-card] {
  position: relative;
  cursor: pointer;
}

.pack-result-slot[data-player-preview-card]:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.36);
  outline-offset: 2px;
}

.ovr-gray {
  --ovr-surface: rgba(158, 158, 158, 0.16);
  --ovr-border: rgba(120, 120, 120, 0.34);
}

.ovr-green {
  --ovr-surface: rgba(76, 175, 80, 0.16);
  --ovr-border: rgba(56, 142, 60, 0.34);
}

.ovr-blue {
  --ovr-surface: rgba(33, 150, 243, 0.16);
  --ovr-border: rgba(21, 101, 192, 0.34);
}

.ovr-purple {
  --ovr-surface: rgba(156, 39, 176, 0.16);
  --ovr-border: rgba(106, 27, 154, 0.34);
}

.ovr-orange {
  --ovr-surface: rgba(255, 152, 0, 0.17);
  --ovr-border: rgba(239, 108, 0, 0.36);
}

.ovr-red {
  --ovr-surface: rgba(244, 67, 54, 0.16);
  --ovr-border: rgba(211, 47, 47, 0.36);
}

.ovr-gold {
  --ovr-surface: rgba(255, 215, 0, 0.22);
  --ovr-border: rgba(255, 179, 0, 0.5);
}

.ovr-shade-0 {
  --ovr-brightness: 0.97;
  --ovr-saturate: 0.94;
}

.ovr-shade-1 {
  --ovr-brightness: 0.99;
  --ovr-saturate: 0.98;
}

.ovr-shade-2 {
  --ovr-brightness: 1.01;
  --ovr-saturate: 1.02;
}

.ovr-shade-3 {
  --ovr-brightness: 1.03;
  --ovr-saturate: 1.05;
}

.ovr-shade-4 {
  --ovr-brightness: 1.05;
  --ovr-saturate: 1.08;
}

.team-preview-slot[class*="ovr-"],
.pack-result-slot[class*="ovr-"],
.reward-card[class*="ovr-"],
.rotation-slot-card[class*="ovr-"],
.rotation-bench-card[class*="ovr-"],
.rotation-detail-main[class*="ovr-"],
.rotation-candidate-card[class*="ovr-"],
.pending-recruit-target[class*="ovr-"] {
  background: var(--ovr-surface, rgba(255, 255, 255, 0.5));
  border-color: var(--ovr-border, rgba(19, 38, 60, 0.12));
  filter: brightness(var(--ovr-brightness, 1)) saturate(var(--ovr-saturate, 1));
}

@keyframes ovrGoldPulse {
  0%, 100% {
    border-color: rgba(255, 179, 0, 0.46);
  }

  50% {
    border-color: rgba(255, 215, 0, 0.9);
  }
}

.team-preview-slot.ovr-gold,
.pack-result-slot.ovr-gold,
.reward-card.ovr-gold,
.rotation-slot-card.ovr-gold,
.rotation-bench-card.ovr-gold,
.rotation-detail-main.ovr-gold,
.rotation-candidate-card.ovr-gold,
.pending-recruit-target.ovr-gold {
  animation: ovrGoldPulse 2.4s ease-in-out infinite;
}

.slot-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.team-preview-slot > strong {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

.team-preview-slot > span {
  font-size: 0.58rem;
  line-height: 1.4;
  color: var(--muted);
}

.slot-badge {
  width: fit-content;
  padding: 2px 5px;
  border: 1px solid rgba(85, 37, 131, 0.14);
  background: rgba(245, 197, 66, 0.14);
  font-size: 0.56rem;
  line-height: 1.3;
  color: var(--text);
}

.slot-pill {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(85, 37, 131, 0.08);
  font-size: 0.54rem;
  line-height: 1.3;
  color: var(--muted);
}

.slot-hover-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: 220px;
  padding: 10px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(85, 37, 131, 0.2);
  background: rgba(255, 248, 220, 0.98);
  box-shadow: 0 8px 18px rgba(43, 11, 76, 0.14);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 120ms ease;
  text-align: left;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slot-hover-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.slot-hover-card.is-standalone {
  position: static;
  left: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: none;
}

.slot-hover-card.is-standalone::after {
  display: none;
}

.team-preview-slot:hover .slot-hover-card,
.team-preview-slot:focus-within .slot-hover-card,
.team-preview-slot.is-open .slot-hover-card,
.pack-result-slot[data-player-preview-card]:hover .slot-hover-card,
.pack-result-slot[data-player-preview-card]:focus-within .slot-hover-card,
.pack-result-slot[data-player-preview-card].is-open .slot-hover-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slot-hover-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: rgba(255, 248, 220, 0.98);
  border-right: 1px solid rgba(85, 37, 131, 0.2);
  border-bottom: 1px solid rgba(85, 37, 131, 0.2);
  transform: translateX(-50%) rotate(45deg);
}

.slot-hover-card strong {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.slot-hover-card p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
}

.slot-hover-tags,
.slot-hover-meta,
.slot-hover-stats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.slot-hover-tags span,
.slot-hover-meta span,
.slot-hover-stats span {
  padding: 3px 5px;
  border: 1px solid rgba(85, 37, 131, 0.1);
  background: rgba(140, 82, 255, 0.04);
  font-size: 0.6rem;
  line-height: 1.4;
  color: var(--muted);
}

.player-summary {
  display: grid;
  gap: 6px;
}

.meter-row {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 6px;
}

.meter-label {
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--muted);
}

.meter-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(85, 37, 131, 0.08);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.9), rgba(140, 82, 255, 0.9));
}

.meter-value {
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--text);
}

.detail-stats {
  margin-top: 2px;
  border-top: 1px solid rgba(85, 37, 131, 0.08);
  padding-top: 6px;
}

.detail-stats summary {
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
}

.detail-stats-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
}

.detail-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.6rem;
  line-height: 1.4;
  color: var(--muted);
}

.detail-stat-row strong {
  font-size: 0.62rem;
  color: var(--text);
}

@media (max-width: 719px) {
  .team-preview-slot:hover .slot-hover-card,
  .team-preview-slot:focus-within .slot-hover-card,
  .pack-result-slot[data-player-preview-card]:hover .slot-hover-card,
  .pack-result-slot[data-player-preview-card]:focus-within .slot-hover-card {
    opacity: 0;
    visibility: hidden;
  }

  .team-preview-slot.is-open .slot-hover-card,
  .pack-result-slot[data-player-preview-card].is-open .slot-hover-card {
    opacity: 1;
    visibility: visible;
  }

  .slot-hover-card {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(320px, calc(100vw - 32px));
    max-height: min(70vh, 420px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    z-index: 60;
    box-shadow: 0 18px 36px rgba(43, 11, 76, 0.22);
  }

  .slot-hover-card::after {
    display: none;
  }
}

.recruit-pick-btn {
  width: 100%;
}

.pack-result-card {
  display: grid;
  gap: 14px;
}

.player-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 31, 54, 0.58);
}

.player-preview-modal {
  width: min(100%, 390px);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: grid;
  gap: 12px;
}

.player-preview-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.player-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pack-result-banner {
  display: grid;
  gap: 6px;
}

.pack-result-banner strong {
  font-size: 0.96rem;
  line-height: 1.4;
}

.pack-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tutorial-overview-panel {
  display: grid;
  gap: 12px;
}

.tutorial-overview-grid {
  display: grid;
  gap: 8px;
}

.tutorial-overview-card,
.tutorial-overview-sample {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
}

.tutorial-overview-sample.tier-silver {
  border-color: rgba(120, 120, 120, 0.35);
}

.tutorial-overview-sample.tier-gold {
  border-color: rgba(245, 197, 66, 0.45);
  background: rgba(255, 243, 198, 0.88);
}

.tutorial-overview-sample.tier-prism {
  border-color: rgba(140, 82, 255, 0.38);
  background: linear-gradient(135deg, rgba(196, 168, 255, 0.18), rgba(255, 228, 153, 0.18));
}

.tutorial-overview-card p,
.tutorial-overview-sample p {
  margin: 0;
}

.pack-result-slot {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(85, 37, 131, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.pack-result-slot > span,
.pack-result-slot > em,
.reward-meta span,
.reward-card p {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: normal;
}

.pack-result-slot > strong,
.reward-card h2 {
  font-size: 0.84rem;
  line-height: 1.4;
}

.pack-result-slot > b {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text);
}

.pack-choice-stage {
  display: grid;
  gap: 14px;
}

.pack-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 31, 54, 0.56);
}

.pack-choice-modal {
  width: min(100%, 520px);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: grid;
  gap: 14px;
}

.pack-choice-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.pack-offer-preview-overlay[class*="ovr-"] {
  background:
    radial-gradient(circle at top center, var(--ovr-surface, rgba(255, 255, 255, 0.08)), transparent 48%),
    rgba(8, 31, 54, 0.66);
}

.pack-choice-grid {
  align-items: stretch;
}

.pack-choice-card {
  gap: 10px;
  padding: 14px;
}

.pack-choice-card .player-summary {
  display: grid;
  gap: 6px;
}

.pack-offer-preview-head {
  align-items: flex-start;
}

.pack-offer-preview-head p {
  margin: 4px 0 0;
}

.pack-offer-preview-body {
  display: grid;
  gap: 12px;
  outline: none;
}

.pack-offer-preview-modal {
  width: min(100%, 420px);
  border: 1px solid var(--ovr-border, rgba(85, 37, 131, 0.18));
  background:
    radial-gradient(circle at top right, var(--ovr-surface, rgba(255, 255, 255, 0.1)), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow:
    0 22px 48px rgba(8, 31, 54, 0.22),
    0 0 0 1px var(--ovr-border, rgba(85, 37, 131, 0.18));
}

.pack-preview-silhouette {
  border: 1px solid var(--ovr-border, rgba(85, 37, 131, 0.18));
  background:
    radial-gradient(circle at top center, var(--ovr-surface, rgba(255, 217, 90, 0.16)), transparent 58%),
    linear-gradient(180deg, rgba(25, 30, 46, 0.96), rgba(11, 14, 26, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 28px rgba(8, 31, 54, 0.16);
}

.pack-preview-silhouette::after {
  background: var(--ovr-surface, rgba(255, 217, 90, 0.16));
}

.pack-preview-silhouette.is-revealed {
  box-shadow:
    0 0 0 1px var(--ovr-border, rgba(255, 179, 0, 0.36)),
    0 18px 30px rgba(8, 31, 54, 0.2);
}

.pack-offer-revealed-card {
  margin-top: 2px;
}

.reward-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 197, 66, 0.26);
  border-radius: 14px;
  background: rgba(255, 217, 90, 0.12);
}

.reward-head,
.reward-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.naming-card {
  display: grid;
  gap: 14px;
}

.team-name-form {
  display: grid;
  gap: 10px;
}

.team-name-label {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.team-name-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(85, 37, 131, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  color: var(--text);
}

.team-name-input::placeholder {
  color: rgba(85, 37, 131, 0.42);
}

.auth-screen {
  display: grid;
  min-height: calc(100dvh - 24px);
  align-items: center;
}

.auth-card {
  width: min(100%, 560px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.auth-loading-card {
  width: min(100%, 420px);
}

.auth-provider-grid,
.auth-footnote,
.auth-email-panel {
  display: grid;
  gap: 8px;
}

.auth-email-panel {
  padding: 12px;
  border: 1px solid rgba(85, 37, 131, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.auth-form-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-toggle-btn.is-active {
  background: linear-gradient(180deg, #ffd95a, #f0b90b);
  color: #2b0b4c;
}

.auth-provider-btn {
  width: 100%;
}

.auth-form {
  gap: 8px;
}

.auth-error {
  margin: 0;
  color: #8b1c13;
  font-size: 0.78rem;
  line-height: 1.7;
}

.auth-inline-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.intro-skip-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(31, 8, 54, 0.44);
  color: #fff8dc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.scout-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(31, 8, 54, 0.58);
}

.scout-modal {
  width: min(100%, 390px);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: grid;
  gap: 12px;
}

.scout-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.scout-head-bar {
  justify-content: flex-end;
  margin-bottom: 0;
}

.scout-close-btn {
  margin-left: auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(85, 37, 131, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #2b0b4c;
  box-shadow: 0 8px 18px rgba(43, 11, 76, 0.12);
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.scout-close-btn:hover,
.scout-close-btn:focus-visible {
  background: #ffffff;
  border-color: rgba(245, 197, 66, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.scout-close-btn:active {
  transform: translateY(0);
}

.scout-header {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}

.scout-silhouette {
  position: relative;
  width: 88px;
  height: 112px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(85, 37, 131, 0.9), rgba(43, 11, 76, 0.95));
  overflow: hidden;
}

.scout-silhouette::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 217, 90, 0.16);
}

.scout-head,
.scout-body,
.scout-ball {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 5, 18, 0.95);
}

.scout-head {
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.scout-body {
  top: 38px;
  width: 40px;
  height: 48px;
  border-radius: 12px 12px 10px 10px;
}

.scout-ball {
  top: 66px;
  left: 62px;
  width: 16px;
  height: 16px;
  transform: none;
  border-radius: 50%;
}

.scout-silhouette.is-revealed .scout-head,
.scout-silhouette.is-revealed .scout-body,
.scout-silhouette.is-revealed .scout-ball {
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.92), rgba(236, 165, 36, 0.92));
}

.scout-headline {
  display: grid;
  gap: 4px;
}

.scout-headline strong {
  font-size: 1rem;
  line-height: 1.4;
}

.scout-headline span,
.scout-copy {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}

.scout-reveal-list {
  display: grid;
  gap: 6px;
}

.scout-reveal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(85, 37, 131, 0.08);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.scout-reveal-row strong {
  color: var(--text);
  font-size: 0.76rem;
}

.scout-reveal-row.is-unlocked {
  border-color: rgba(245, 197, 66, 0.26);
  background: rgba(255, 217, 90, 0.12);
}

.scout-hint {
  justify-content: center;
}

.scout-roster {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.scout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 719px) {
  .scout-modal {
    width: min(100%, 360px);
  }

  .scout-header {
    grid-template-columns: 76px 1fr;
  }

  .scout-silhouette {
    width: 76px;
    height: 98px;
  }
}

.mini-status {
  display: grid;
  gap: 8px;
  padding: 10px 2px 0;
}

.mini-status-day {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.mini-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.7;
}

.mini-status-row.is-day-result {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.mini-status-row span {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-status-row strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-status-row.is-user-match {
  color: var(--text);
  border: 1px solid rgba(245, 197, 66, 0.3);
  background: rgba(255, 217, 90, 0.1);
  padding: 2px 6px;
}

.mini-status-divider {
  height: 1px;
  background: rgba(85, 37, 131, 0.14);
  margin: 4px 0;
}

.augment-chip-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.augment-chip {
  padding: 4px 8px;
  border: 1px solid rgba(85, 37, 131, 0.18);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.64rem;
  line-height: 1.4;
}

.augment-chip.tier-silver {
  border-color: rgba(120, 120, 120, 0.35);
  background: rgba(240, 240, 240, 0.7);
}

.augment-chip.tier-gold {
  border-color: rgba(245, 197, 66, 0.45);
  background: rgba(255, 231, 153, 0.52);
}

.augment-chip.tier-prism {
  border-color: rgba(140, 82, 255, 0.38);
  background: rgba(196, 168, 255, 0.44);
}

.augment-chip.tier-synergy {
  border-color: rgba(54, 125, 72, 0.34);
  background: rgba(122, 209, 127, 0.32);
}

.slider-group {
  display: grid;
  gap: 6px;
}

.slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slider-label span {
  font-size: 0.8rem;
  line-height: 1.6;
}

.slider-label span:last-child {
  color: var(--accent);
}

.slider-hint {
  display: grid;
  gap: 2px;
}

.slider-hint span {
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--muted);
}

input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.tactic-preview-shell {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.tactic-preview-head,
.tactic-preview-section-head,
.tactic-augment-head,
.match-impact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tactic-preview-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.tactic-preview-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 184, 88, 0.16);
  color: #8a491f;
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 700;
}

.tactic-preview-grid,
.tactic-preview-player-list,
.tactic-augment-list {
  display: grid;
  gap: 8px;
}

.tactic-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tactic-preview-card,
.tactic-player-chip,
.tactic-augment-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.88);
}

.tactic-preview-card span,
.tactic-preview-section-head span,
.tactic-player-chip span,
.tactic-augment-row p,
.tactic-preview-card small,
.tactic-player-chip small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.tactic-preview-card strong,
.tactic-player-chip strong,
.tactic-augment-head strong,
.match-impact-head strong {
  font-size: 0.84rem;
  line-height: 1.45;
}

.tactic-preview-section {
  display: grid;
  gap: 8px;
}

.tactic-preview-section h3,
.match-impact-head span {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
}

.tactic-augment-row p {
  margin: 0;
}

.tactic-preview-chip-row,
.match-impact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tactic-preview-chip,
.match-impact-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(19, 38, 60, 0.06);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 700;
}

.tactic-preview-chip strong {
  color: var(--accent);
}

.tactic-preview-chip.is-muted {
  background: rgba(72, 153, 255, 0.09);
  color: #0d5f92;
}

.tactic-player-chip.is-positive {
  border-color: rgba(83, 168, 106, 0.18);
  background: rgba(244, 251, 244, 0.92);
}

.tactic-player-chip.is-risk {
  border-color: rgba(245, 146, 66, 0.2);
  background: rgba(255, 248, 241, 0.92);
}

@media (max-width: 720px) {
  .tactic-preview-grid {
    grid-template-columns: 1fr;
  }
}

.button-row {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.primary-btn,
.secondary-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(85, 37, 131, 0.34);
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(43, 11, 76, 0.1);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.6;
}

.primary-btn {
  background: linear-gradient(180deg, #ffd95a, #f0b90b);
  color: #2b0b4c;
}

.secondary-btn {
  background: #f1e6ff;
  color: var(--text);
}

.primary-btn:active,
.secondary-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(43, 11, 76, 0.08);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.insight-card,
.roster-card,
.schedule-card,
.highlight-card,
.possession-card,
.scoreboard,
.summary,
.report-grid {
  border: 1px solid rgba(85, 37, 131, 0.14);
  background: #fff8dc;
  border-radius: 0;
}

.insight-card,
.roster-card,
.schedule-card,
.highlight-card,
.possession-card,
.summary {
  padding: 12px;
}

.insight-card strong,
.roster-card strong,
.schedule-card strong,
.possession-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 212, 107, 0.22), rgba(255, 212, 107, 0)),
    #fff8dc;
}

.scoreboard-team span,
.score-center span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.scoreboard-team strong,
.score-center strong {
  font-size: clamp(1.25rem, 8vw, 1.8rem);
  line-height: 1.4;
}

.score-center {
  padding: 8px;
  border: 2px dashed rgba(85, 37, 131, 0.22);
}

.summary {
  line-height: 1.9;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.report-item {
  padding: 10px;
  border-right: 2px solid rgba(85, 37, 131, 0.14);
  border-bottom: 2px solid rgba(85, 37, 131, 0.14);
}

.report-item:nth-child(2n) {
  border-right: 0;
}

.report-item:last-child,
.report-item:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.report-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.report-item strong {
  font-size: 0.9rem;
  line-height: 1.6;
}

.highlight-card .tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 7px;
  background: var(--accent-2);
  border: 2px solid var(--panel-edge);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.4;
}

.possession-card {
  display: grid;
  gap: 8px;
}

.match-flow-panel {
  display: grid;
  gap: 14px;
}

.match-timeline-panel,
.match-replay-panel {
  display: grid;
  gap: 12px;
}

.match-replay-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 31, 54, 0.58);
}

.match-replay-modal {
  width: min(100%, 410px);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: grid;
  gap: 12px;
}

.match-replay-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.match-replay-modal .match-flow-panel {
  margin: 0;
}

.match-slot-grid {
  display: grid;
  gap: 10px;
}

.match-slot-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  border-radius: 16px;
  background: #fbfdff;
}

.match-slot-card.is-ready {
  border-color: rgba(37, 99, 235, 0.26);
  background: linear-gradient(180deg, #ffffff, #eaf3ff);
}

.match-slot-card.is-complete {
  border-color: rgba(22, 163, 74, 0.18);
  background: linear-gradient(180deg, #ffffff, #eefbf3);
}

.match-slot-card.is-locked,
.match-slot-card.is-upcoming {
  background: #f8fafc;
}

.match-slot-card.is-selected {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.match-slot-head,
.match-slot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.match-slot-tipoff {
  font-size: 0.95rem;
  line-height: 1.4;
}

.match-slot-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 700;
}

.match-slot-body {
  display: grid;
  gap: 4px;
}

.match-slot-body p {
  margin: 0;
}

.match-slot-opponent {
  font-size: 0.84rem;
  line-height: 1.5;
}

.match-mode-row,
.match-controls,
.match-card-meta,
.match-trigger-list,
.match-team-stats,
.growth-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-mode-btn {
  flex: 1 1 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(19, 38, 60, 0.1);
  border-radius: 12px;
  background: #f4f7fb;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  font-weight: 700;
  cursor: pointer;
}

.match-mode-btn.active {
  border-color: rgba(14, 139, 213, 0.38);
  background: linear-gradient(180deg, #ffffff, #dff1ff);
  color: var(--text);
}

.match-quarter-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.match-quarter-node {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.match-quarter-node i {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(19, 38, 60, 0.09);
  display: block;
}

.match-quarter-node.done i {
  background: linear-gradient(90deg, #f5c542, #ff9248);
}

.match-quarter-node.active {
  color: var(--text);
}

.match-quarter-node.active i {
  background: linear-gradient(90deg, #0e8bd5, #57c3ff);
  box-shadow: 0 0 0 2px rgba(14, 139, 213, 0.12);
}

.match-stage-shell {
  display: grid;
  gap: 10px;
}

.match-stage-shell.is-full-feed {
  gap: 12px;
}

.match-stage-meta,
.match-card-head,
.match-score-head,
.match-score-strip,
.growth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.match-stage-meta {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.match-stage-card {
  display: grid;
  gap: 12px;
  min-height: 276px;
  padding: 16px;
  border: 1px solid rgba(19, 38, 60, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(87, 195, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #eef6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  touch-action: pan-y;
}

.match-stage-card.is-team-possession {
  margin-right: 12%;
  border-color: rgba(245, 146, 66, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 187, 89, 0.18), transparent 34%),
    linear-gradient(180deg, #fffdf9, #fff5eb);
  box-shadow:
    inset 4px 0 0 rgba(245, 146, 66, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.match-stage-card.is-opponent-possession {
  margin-left: 12%;
  border-color: rgba(72, 153, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(87, 195, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #fbfeff, #edf6ff);
  box-shadow:
    inset -4px 0 0 rgba(72, 153, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: right;
}

.match-stage-card.is-opponent-possession .match-card-head,
.match-stage-card.is-opponent-possession .match-player-line,
.match-stage-card.is-opponent-possession .match-score-strip {
  flex-direction: row-reverse;
}

.match-stage-card.is-opponent-possession .match-trigger-list,
.match-stage-card.is-opponent-possession .match-impact-tags,
.match-stage-card.is-opponent-possession .match-card-meta {
  justify-content: flex-end;
}

.match-stage-card.is-opponent-possession .match-support-text,
.match-stage-card.is-opponent-possession .match-card-title,
.match-stage-card.is-opponent-possession .match-card-result,
.match-stage-card.is-opponent-possession .match-crowd {
  text-align: right;
}

.match-stage-shell.is-full-feed .match-stage-card {
  min-height: 0;
}

.match-stage-intro {
  background:
    radial-gradient(circle at top left, rgba(245, 197, 66, 0.22), transparent 34%),
    linear-gradient(180deg, #fffef6, #f2f7ff);
}

.match-stage-card.is-special,
.match-stage-summary.is-result {
  background:
    radial-gradient(circle at top left, rgba(255, 176, 66, 0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(87, 195, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #fffdfa, #eef7ff);
}

.match-stage-card.is-clutch {
  animation: clutchPulse 1.4s ease-in-out infinite alternate;
}

@keyframes clutchPulse {
  from {
    box-shadow: 0 10px 24px rgba(8, 31, 54, 0.08);
  }

  to {
    box-shadow: 0 14px 28px rgba(245, 122, 66, 0.18);
  }
}

.match-card-clock,
.match-card-kind,
.match-special-chip,
.match-trigger-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 700;
}

.match-card-kind {
  border: 1px solid rgba(19, 38, 60, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.match-card-kind.offense {
  background: rgba(249, 187, 66, 0.18);
}

.match-card-kind.defense {
  background: rgba(72, 153, 255, 0.15);
}

.match-card-kind.special,
.match-card-kind.result {
  background: rgba(255, 144, 66, 0.2);
}

.match-card-kind.intro {
  background: rgba(109, 194, 124, 0.16);
}

.match-possession-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.match-possession-banner.is-team {
  background: rgba(255, 184, 88, 0.18);
  color: #8a491f;
}

.match-possession-banner.is-opponent {
  background: rgba(72, 153, 255, 0.14);
  color: #0d5f92;
}

.match-stage-card.is-opponent-possession .match-possession-banner {
  justify-self: end;
}

.match-player-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.match-player-line strong,
.match-score-head strong,
.match-final-score strong {
  font-size: 1rem;
  line-height: 1.45;
}

.match-score-head span,
.growth-card-head span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.match-card-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 800;
}

.match-support-text,
.match-card-result,
.match-crowd {
  margin: 0;
}

.match-card-result {
  font-size: 0.94rem;
  line-height: 1.6;
  font-weight: 700;
}

.match-card-result.is-team {
  color: #8a491f;
}

.match-card-result.is-opponent {
  color: #0d5f92;
}

.match-crowd {
  color: #f57a42;
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 700;
}

.match-score-strip,
.match-card-meta,
.growth-stat-strip {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.match-score-strip strong {
  color: var(--text);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .match-stage-card.is-team-possession {
    margin-right: 6%;
  }

  .match-stage-card.is-opponent-possession {
    margin-left: 6%;
  }
}

.match-special-chip {
  background: rgba(255, 144, 66, 0.18);
  color: #8a491f;
}

.match-impact-tags span {
  background: rgba(255, 184, 88, 0.18);
  color: #8a491f;
}

.match-impact-tags.is-summary span {
  background: rgba(72, 153, 255, 0.12);
  color: #0d5f92;
}

.match-trigger-list span {
  background: rgba(14, 139, 213, 0.1);
  color: #0d5f92;
}

.match-controls {
  justify-content: space-between;
}

.match-controls > button {
  flex: 1 1 0;
  min-width: 0;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.45;
}

.match-final-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.match-final-score div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.match-final-score b {
  font-size: 1.6rem;
  line-height: 1;
}

.match-summary-grid,
.growth-list {
  display: grid;
  gap: 10px;
}

.match-summary-block,
.growth-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.match-summary-block h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.match-summary-lines {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.match-impact-head span {
  color: var(--muted);
}

.match-team-stats span {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(19, 38, 60, 0.05);
  font-size: 0.72rem;
  line-height: 1.5;
}

.match-boxscore-grid {
  display: grid;
  gap: 12px;
}

.match-boxscore-panel {
  display: grid;
  gap: 12px;
}

.match-boxscore-team-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.match-boxscore-team-head {
  display: grid;
  gap: 8px;
}

.match-boxscore-team-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.match-boxscore-team-title strong {
  font-size: 0.92rem;
  line-height: 1.4;
}

.match-boxscore-team-title span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.match-boxscore-team-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-boxscore-team-totals span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(19, 38, 60, 0.05);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.match-boxscore-table-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.match-boxscore-table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.match-boxscore-table {
  display: grid;
  gap: 6px;
  min-width: 816px;
}

.match-boxscore-table-head,
.match-boxscore-table-row {
  display: grid;
  grid-template-columns: minmax(164px, 1.8fr) 58px repeat(7, 48px) repeat(3, 84px);
  gap: 6px;
  align-items: stretch;
}

.match-boxscore-table-head {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
  font-weight: 700;
}

.match-boxscore-table-head > span {
  display: grid;
  place-items: center end;
  padding: 0 6px 4px;
  border-bottom: 1px solid rgba(19, 38, 60, 0.08);
}

.match-boxscore-table-head > .is-player {
  place-items: center start;
}

.match-boxscore-table-row {
  min-height: 56px;
}

.match-boxscore-player-cell,
.match-boxscore-stat-cell {
  padding: 8px 10px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.match-boxscore-player-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.match-boxscore-player-cell strong {
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.35;
}

.match-boxscore-player-cell span {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.match-boxscore-stat-cell {
  display: grid;
  gap: 2px;
  place-items: center end;
  text-align: right;
}

.match-boxscore-stat-cell strong {
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.3;
}

.match-boxscore-stat-cell span {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.3;
}

.match-boxscore-stat-cell.is-shot {
  background: rgba(245, 248, 252, 0.98);
}

.growth-card-head b {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.16);
  font-size: 0.68rem;
  line-height: 1.4;
}

.possession-deck {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.possession-deck::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.possession-deck-card {
  flex: 0 0 82%;
  min-width: 240px;
  scroll-snap-align: start;
}

.possession-top,
.possession-bottom,
.schedule-card,
.roster-meta,
.rating-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.possession-top span,
.possession-bottom span,
.roster-meta,
.rating-strip span,
.schedule-card .badge {
  font-size: 0.7rem;
  line-height: 1.6;
}

.schedule-card .badge {
  padding: 4px 7px;
  border: 1px solid rgba(85, 37, 131, 0.2);
}

.badge.win {
  background: var(--good);
}

.badge.loss {
  background: var(--warn);
}

.badge.pending {
  background: #ede2ff;
}

.roster-card {
  display: grid;
  gap: 6px;
}

.rotation-guide,
.rotation-selection-banner,
.rotation-court-panel,
.rotation-bench-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.rotation-layout {
  display: grid;
  gap: 10px;
}

.rotation-court {
  position: relative;
  width: min(100%, calc(100vw - 68px));
  max-width: 100%;
  min-height: clamp(392px, 94vw, 516px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 14px 12px;
  border: 1px solid rgba(85, 37, 131, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 234, 0.18), rgba(115, 58, 18, 0.06)),
    #efd69e;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  overflow: hidden;
  isolation: isolate;
}

.rotation-court-art {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  object-position: center center;
  opacity: 0.99;
  filter: saturate(1.02) contrast(1.02);
  z-index: 0;
  pointer-events: none;
}

.rotation-court::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 244, 219, 0.62);
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(122, 67, 16, 0.1);
  z-index: 1;
}

.rotation-court::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 244, 210, 0.14), rgba(255, 244, 210, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(54, 24, 6, 0.04));
  pointer-events: none;
  z-index: 1;
}

.rotation-court-mark {
  display: none;
}

.rotation-court-key {
  top: 49%;
  width: min(46%, 220px);
  height: 34%;
  border: 2px solid rgba(122, 67, 16, 0.28);
  border-radius: 0 0 90px 90px;
  border-top: 0;
}

.rotation-court-arc {
  top: 17%;
  width: min(74%, 320px);
  height: 41%;
  border: 2px solid rgba(122, 67, 16, 0.28);
  border-radius: 0 0 180px 180px;
  border-top: 0;
}

.rotation-court-rim {
  top: 14.5%;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(122, 67, 16, 0.32);
  border-radius: 50%;
}

.rotation-slot {
  position: absolute;
  left: var(--slot-x);
  top: var(--slot-y);
  width: clamp(112px, 28vw, 156px);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 4px;
  z-index: 2;
}

.rotation-slot-card,
.rotation-bench-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(85, 37, 131, 0.14);
  background: rgba(255, 248, 220, 0.84);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(43, 11, 76, 0.08);
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.rotation-slot-card {
  width: 100%;
  text-align: left;
}

.rotation-slot-card-compact {
  gap: 7px;
  padding: 10px 11px;
  border-radius: 14px;
}

.rotation-slot-card.is-empty {
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  border-style: dashed;
  color: var(--muted);
  box-shadow: none;
}

.rotation-slot-card.is-swap-mode {
  border-color: rgba(245, 197, 66, 0.54);
  box-shadow: 0 14px 28px rgba(240, 185, 11, 0.18);
}

.rotation-slot-card.is-selected {
  border-color: rgba(14, 139, 213, 0.42);
  box-shadow: 0 16px 30px rgba(14, 139, 213, 0.16);
}

.rotation-slot-card[data-open-roster-detail]:focus-visible {
  outline: 3px solid rgba(14, 139, 213, 0.34);
  outline-offset: 3px;
}

.rotation-swap-target {
  border-color: rgba(245, 197, 66, 0.62);
}

.rotation-swap-target:hover,
.rotation-swap-target:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(245, 197, 66, 0.42);
  outline-offset: 2px;
}

.rotation-slot-card.is-disabled-target {
  cursor: default;
  opacity: 0.56;
  border-color: rgba(107, 114, 128, 0.2);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.rotation-slot-summary {
  display: grid;
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.rotation-slot-name {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.24;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rotation-slot-ovr {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.18);
  border: 1px solid rgba(122, 77, 16, 0.12);
  color: #7a4d10;
  font-size: 0.69rem;
  line-height: 1.3;
  font-weight: 800;
}

.rotation-bench-card.is-selected {
  border-color: rgba(245, 197, 66, 0.58);
  background: rgba(255, 243, 196, 0.9);
  box-shadow: 0 18px 30px rgba(240, 185, 11, 0.16);
}

.rotation-slot-role {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(85, 37, 131, 0.12);
  background: rgba(85, 37, 131, 0.08);
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.rotation-slot-head,
.rotation-bench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.rotation-slot-head strong,
.rotation-bench-head strong {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.rotation-slot-head span,
.rotation-slot-meta,
.rotation-bench-meta,
.rotation-slot-caption {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.rotation-slot-meta,
.rotation-bench-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rotation-slot-actions {
  display: grid;
}

.rotation-swap-label {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(245, 197, 66, 0.16);
  color: #7a4d10;
  font-size: 0.66rem;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.rotation-bench-card .slot-hover-card {
  top: calc(100% + 10px);
  bottom: auto;
  z-index: 30;
}

.rotation-bench-card .slot-hover-card::after {
  display: none;
}

.rotation-swap-label.is-disabled {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.rotation-slot-mini-btn {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 0.64rem;
}

.rotation-slot-actions .primary-btn,
.rotation-slot-actions .secondary-btn,
.rotation-bench-actions .primary-btn,
.rotation-bench-actions .secondary-btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.7rem;
}

.rotation-slot-caption {
  text-align: center;
}

.rotation-slot-caption strong {
  display: block;
  color: var(--text);
  font-size: 0.62rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.rotation-bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.rotation-detail-panel {
  display: grid;
  gap: 12px;
}

.rotation-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 31, 54, 0.58);
}

.rotation-detail-modal {
  width: min(100%, 720px);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: grid;
  gap: 12px;
}

.rotation-detail-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.rotation-detail-head,
.rotation-candidate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rotation-detail-head p {
  margin: 4px 0 0;
}

.rotation-detail-layout {
  display: grid;
  gap: 12px;
}

.rotation-detail-main,
.rotation-candidate-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 38, 60, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.rotation-detail-meta,
.rotation-candidate-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.rotation-candidate-delta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rotation-candidate-delta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(19, 38, 60, 0.06);
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--muted);
}

.rotation-candidate-delta .is-up {
  background: rgba(109, 194, 124, 0.16);
  color: #1f6f34;
}

.rotation-candidate-delta .is-down {
  background: rgba(255, 144, 66, 0.16);
  color: #9a4517;
}

.rotation-candidate-delta .is-fit {
  background: rgba(14, 139, 213, 0.12);
  color: #0e5f93;
}

.rotation-detail-sidebar,
.rotation-candidate-grid,
.rotation-detail-empty {
  display: grid;
  gap: 10px;
}

.rotation-detail-empty {
  min-height: 180px;
  place-content: center;
  text-align: center;
}

.pending-recruit-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.recruit-resolution-layout {
  display: grid;
  gap: 12px;
}

.recruit-resolution-incoming {
  align-content: start;
}

.recruit-resolution-targets {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.pending-recruit-target {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(19, 38, 60, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
  cursor: pointer;
}

.recruit-resolution-target {
  gap: 8px;
  min-height: 132px;
}

.recruit-resolution-target-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pending-recruit-target strong {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text);
}

.pending-recruit-target span {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
}

.pending-recruit-target.is-disabled,
.pending-recruit-target:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (min-width: 820px) {
  .recruit-resolution-layout {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    align-items: start;
  }
}

.rotation-bench-actions {
  display: grid;
  gap: 8px;
}

.rating-strip span {
  padding: 3px 6px;
  background: rgba(245, 197, 66, 0.14);
  border: 1px solid rgba(85, 37, 131, 0.1);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: var(--bottom-nav-safe);
  transform: translateX(-50%);
  width: min(calc(100% - 4px), 430px);
  max-width: 430px;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px;
  background: rgba(246, 250, 255, 0.98);
  border: 1px solid rgba(19, 38, 60, 0.1);
  border-radius: 18px;
  box-shadow: 0 -10px 22px rgba(8, 31, 54, 0.12);
  z-index: 20;
}

.home-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.home-account-btn {
  min-height: 36px;
  padding: 8px 14px;
}

.account-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: grid;
  place-items: start center;
  padding: 16px;
  background: rgba(8, 31, 54, 0.42);
}

.account-panel {
  width: min(100%, 420px);
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.account-panel.is-upgrade {
  width: min(100%, 480px);
}

.account-panel-body {
  display: grid;
  gap: 10px;
}

.account-upgrade-panel {
  gap: 10px;
}

.account-upgrade-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 42px;
  padding: 6px 4px;
  border: 1px solid rgba(19, 38, 60, 0.1);
  background: #edf3fa;
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1.5;
  font-weight: 600;
}

.nav-item strong {
  font-size: 0.68rem;
  line-height: 1.4;
}

.nav-item-icon {
  font-size: 0.94rem;
  line-height: 1;
}

.nav-item.active {
  border-color: rgba(14, 139, 213, 0.45);
  background: linear-gradient(180deg, #ffffff, var(--accent-2));
  color: var(--text);
}

.form-error {
  margin: 0;
  color: #cc314d;
  font-size: 0.76rem;
  line-height: 1.6;
}

@media (max-width: 719px) {
  html {
    font-size: 17px;
  }

  body {
    place-items: start center;
  }

  .app-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    padding: 14px 12px calc(var(--bottom-nav-offset) + 12px);
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .team-tab-screen {
    padding-top: 10px;
    padding-bottom: calc(var(--bottom-nav-offset) + 4px);
  }

  .icon-btn,
  .eyebrow,
  .pill,
  .pill.small,
  .stat-card span,
  .dialog-label,
  .score-rank,
  .board-record,
  .board-timer,
  .augment-head strong,
  .augment-tags span,
  .standings-head,
  .standings-row,
  .standings-row strong,
  .standings-meta span,
  .team-box-title,
  .team-lane-title,
  .recruit-meta span,
  .pack-seal,
  .pack-core-mark,
  .team-preview-slot strong,
  .team-preview-slot span,
  .slot-badge,
  .slot-pill,
  .slot-hover-card p,
  .slot-hover-tags span,
  .slot-hover-meta span,
  .slot-hover-stats span,
  .meter-label,
  .meter-value,
  .detail-stats summary,
  .detail-stat-row,
  .pack-result-slot span,
  .pack-result-slot em,
  .pack-result-slot b,
  .reward-meta span,
  .reward-card p,
  .team-name-label,
  .team-name-input,
  .intro-skip-btn,
  .scout-headline span,
  .scout-copy,
  .scout-reveal-row,
  .mini-status-day,
  .mini-status-row,
  .augment-chip,
  .slider-label span,
  .report-item span,
  .highlight-card .tag,
  .possession-top span,
  .possession-bottom span,
  .roster-meta,
  .rating-strip span,
  .schedule-card .badge,
  .nav-item,
  .form-error {
    font-size: 0.78rem;
  }

  .intro-line,
  .hero p,
  .panel-head p,
  .summary,
  .highlight-card p,
  .muted,
  .simple-title,
  .panel-head h2,
  .focus-card strong,
  .scoreboard-team span,
  .score-center span,
  .slider-label span:last-child {
    font-size: 0.88rem;
  }

  .quick-emphasis,
  .pack-result-banner strong,
  .pack-result-slot strong,
  .reward-card h2,
  .insight-card strong,
  .roster-card strong,
  .schedule-card strong,
  .possession-card strong,
  .report-item strong,
  .scout-headline strong,
  .scout-reveal-row strong,
  .recruit-title {
    font-size: 0.98rem;
  }

  .main-board h1 {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .slot-hover-card {
    width: min(320px, calc(100vw - 24px));
  }
}

@media (min-width: 720px) {
  .rotation-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  }

  .rotation-bench-grid {
    grid-template-columns: 1fr;
  }

  .rotation-detail-layout {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .recruit-grid {
    grid-template-columns: repeat(2, 248px);
    justify-content: center;
    gap: 14px 18px;
  }

  .recruit-card {
    width: 224px;
    min-height: 0;
  }

  .pack-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-top {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }

  .layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
  }

  .button-row {
    grid-template-columns: 1fr auto;
  }

  .scoreboard {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }

  .score-center {
    min-width: 96px;
    text-align: center;
  }

  .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .possession-deck-card {
    flex: 0 0 44%;
  }

  .report-item {
    border-right: 2px solid rgba(85, 37, 131, 0.14);
  }

  .report-item:nth-child(2n) {
    border-right: 2px solid rgba(85, 37, 131, 0.14);
  }

  .report-item:nth-child(3n) {
    border-right: 0;
  }

  .bottom-nav {
    width: min(100%, 430px);
  }
}
