:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --text: #17191d;
  --muted: #747983;
  --line: #e8e9ed;
  --accent: #ee4d2d;
  --accent-soft: #fff0ec;
  --accent-dark: #c9361b;
  --success: #14895f;
  --shadow: 0 8px 28px rgba(24, 28, 36, 0.07);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(238, 77, 45, 0.09), transparent 30%),
    var(--bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, select, textarea { font: inherit; }
button { color: inherit; }

.app-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.32);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(232, 233, 237, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(238, 77, 45, 0.22);
  font-size: 14px;
  letter-spacing: -0.08em;
}

.brand-name { font-size: 18px; }
.prototype-badge {
  padding: 4px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px 14px;
}

.date-picker { position: relative; }

.date-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 240px;
  height: 42px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.date-trigger:hover,
.date-trigger[aria-expanded="true"] {
  background: var(--surface);
  border-color: #f2aa9b;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, .08);
}

.date-trigger:focus-visible,
.calendar-nav:focus-visible,
.calendar-day:focus-visible {
  outline: 3px solid rgba(238, 77, 45, .2);
  outline-offset: 2px;
}

.date-trigger-icon {
  position: relative;
  width: 15px;
  height: 14px;
  color: var(--accent);
  border: 2px solid currentColor;
  border-radius: 4px;
}
.date-trigger-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -2px;
  right: -2px;
  border-top: 2px solid currentColor;
}
.date-trigger-chevron { color: var(--muted); font-size: 12px; transition: transform .16s ease; }
.date-trigger[aria-expanded="true"] .date-trigger-chevron { transform: rotate(180deg); }

.calendar-popover {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 40;
  width: 316px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(24, 28, 36, .18);
  transform: translateX(-50%);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.calendar-head strong { font-size: 16px; letter-spacing: -.03em; }

.calendar-nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekdays { margin-bottom: 5px; }
.calendar-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.calendar-weekdays span:first-child { color: #dc4a43; }
.calendar-weekdays span:last-child { color: #3972bf; }

.calendar-day,
.calendar-blank {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.calendar-day {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.calendar-day:hover { background: var(--accent-soft); }
.calendar-day.today { box-shadow: inset 0 0 0 1px #f2aa9b; }
.calendar-day.selected { color: #fff; background: var(--accent); box-shadow: none; }
.calendar-day.has-match::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.calendar-day.selected.has-match::after { background: #fff; }

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  padding-top: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.calendar-legend::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.icon-button, .back-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.icon-button:hover, .back-button:hover {
  background: var(--accent-soft);
  border-color: #f5b4a6;
  transform: translateY(-1px);
}

.page { padding: 26px 22px 72px; }
.page-narrow { width: min(100%, 760px); margin: 0 auto; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 9px;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.subcopy { margin-bottom: 24px; color: var(--muted); line-height: 1.6; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 13px;
}
.section-heading h2 { margin: 0; }
.section-heading small { color: var(--muted); }

.match-list { display: grid; gap: 13px; }

.match-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.match-card:hover {
  border-color: #f0b5a9;
  box-shadow: 0 14px 34px rgba(24, 28, 36, 0.11);
  transform: translateY(-2px);
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.match-time { flex: 0 0 auto; }
.league-name { color: var(--text); font-weight: 850; }

.match-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 24px 18px 20px;
}

.team {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.team.away { flex-direction: row-reverse; text-align: right; }

.team-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 7px 16px rgba(0,0,0,.10);
  font-size: 13px;
  font-weight: 900;
}

.team-logo-official { background: #24272d; }
.team-logo-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 8%;
  object-fit: contain;
}

.team-name {
  overflow: hidden;
  font-size: 17px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-box { min-width: 74px; text-align: center; }
.score {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.status {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.status.live-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 4px 8px;
  color: var(--success);
  background: #eaf8f2;
  border: 1px solid #c8eadb;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 15px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
}

.rating-count { font-weight: 800; }
.card-arrow { font-weight: 900; }

.empty-state {
  padding: 54px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #d9dbe1;
  border-radius: var(--radius-lg);
}

.empty-icon { margin-bottom: 12px; font-size: 32px; }
.empty-state strong { display: block; margin-bottom: 7px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 14px; }

.detail-nav { display: flex; align-items: center; gap: 12px; }
.detail-title { min-width: 0; }
.detail-title strong { display: block; font-size: 15px; }
.detail-title span { color: var(--muted); font-size: 12px; }

.match-header {
  color: #fff;
  background: #16181d;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.match-header .back-button {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.13);
}
.match-header .back-button:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
}
.detail-only-header .header-inner { justify-content: flex-start; }
.compact-match-summary {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 34px auto 34px;
  align-items: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%);
  transition: opacity .2s ease, transform .25s ease;
}
.match-header.is-condensed .compact-match-summary {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.compact-match-summary .team-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 9px;
}
.compact-score {
  min-width: 46px;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

.match-page { padding: 0; }
.match-body { padding: 0 22px 96px; }

.match-hero {
  padding: 22px;
  background: linear-gradient(145deg, #1e2026 0%, #101115 100%);
  color: #fff;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 19px;
  color: #b8bbc3;
  font-size: 13px;
}

.hero-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.hero-team { display: grid; justify-items: center; gap: 9px; text-align: center; }
.hero-team .team-logo { width: 60px; height: 60px; border-radius: 19px; }
.hero-score { text-align: center; }
.hero-score strong { display: block; font-size: 34px; letter-spacing: -0.05em; }
.hero-score span { color: #aeb2ba; font-size: 12px; }
.hero-score span.live-label {
  display: inline-flex;
  margin-top: 6px;
  padding: 5px 9px;
  color: #8ce2bd;
  background: rgba(20, 137, 95, .2);
  border: 1px solid rgba(140, 226, 189, .28);
  border-radius: 6px;
  font-weight: 850;
  line-height: 1;
}
.tabs-wrap {
  position: sticky;
  top: 64px;
  z-index: 10;
  margin: 0 -22px;
  padding: 0 22px;
  background: rgba(244,245,247,.97);
  backdrop-filter: blur(12px);
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 14px 16px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.match-content { padding-top: 20px; }

.summary-comparison-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--line);
}

.summary-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  font-weight: 850;
}
.summary-team.away { justify-content: flex-end; }
.summary-team .team-logo {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 10px;
}

.summary-basis {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

.line-comparison { display: grid; }
.line-comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 54px 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 74px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.line-player {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-player.away { text-align: right; }

.line-score {
  display: grid;
  place-items: center;
  min-height: 40px;
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.line-score.home { background: #ee4d2d; }
.line-score.away { background: #3478e5; }

.line-role {
  display: grid;
  place-items: center;
  color: #2d3036;
}
.line-role-icon { width: 34px; height: 34px; }

.team-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.team-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 10px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 800;
}
.team-toggle-button + .team-toggle-button { border-left: 1px solid var(--line); }
.team-toggle-button:hover { color: var(--text); }
.team-toggle-button.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.team-toggle-button .team-logo { width: 44px; height: 44px; border-radius: 11px; font-size: 11px; }

.player-list { display: grid; gap: 8px; }
.player-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 12px;
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.player-card:hover { background: var(--accent-soft); border-color: #f4c1b7; transform: translateY(-1px); }
.player-card:active { transform: translateY(0) scale(.995); }

.player-identity {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}
.player-profile-image {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  box-shadow: 0 5px 12px rgba(24, 28, 36, .12);
}
.player-name {
  overflow: hidden;
  width: 100%;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-info {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}
.champion-image {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(24, 28, 36, .12);
}
.champion-copy { min-width: 0; width: 100%; }
.champion-copy strong {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.champion-kda {
  display: block;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}

.player-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(145deg, #5f6571, #24272e);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}
.player-rating { min-width: 0; text-align: right; }
.stars { display: flex; justify-content: flex-end; gap: 2px; margin-bottom: 4px; }
.star {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 24px;
  color: #d9dce1;
  font-size: 22px;
  line-height: 24px;
  text-align: left;
}
.star-empty { color: var(--text); }
.star-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #f5aa19;
  white-space: nowrap;
}
.player-rating strong { display: block; color: var(--text); font-size: 17px; line-height: 1.1; }
.player-rating-count { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }

.player-hero-card {
  padding: 22px;
  color: #fff;
  background: linear-gradient(145deg, #22252c, #101115);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(18, 20, 25, .17);
}
.player-hero-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.player-detail-profile {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 20px;
}
.player-hero-copy { min-width: 0; }
.player-hero-copy strong { display: block; margin-bottom: 6px; font-size: 26px; letter-spacing: -.04em; }
.player-hero-copy span { color: #b9bdc5; font-size: 12px; }

.player-performance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
}
.player-champion-summary { display: flex; align-items: center; gap: 11px; min-width: 0; }
.player-champion-summary img { width: 54px; height: 54px; border-radius: 14px; }
.player-kda-summary span { display: block; margin-bottom: 5px; color: #9fa4ae; font-size: 10px; font-weight: 750; }
.player-champion-summary strong { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.player-kda-summary { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.12); text-align: right; }
.player-kda-summary strong { font-size: 20px; letter-spacing: .02em; white-space: nowrap; }

.rating-summary {
  margin-top: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rating-summary h2 { margin-bottom: 18px; }
.rating-summary-grid {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.rating-average { text-align: center; }
.rating-average strong { font-size: 48px; line-height: 1; letter-spacing: -.06em; }
.rating-average .rating-scale { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 750; }
.rating-average-count { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }
.rating-distribution { display: grid; gap: 7px; }
.distribution-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 34px; align-items: center; gap: 8px; }
.distribution-label { color: var(--muted); font-size: 11px; font-weight: 800; }
.distribution-track { height: 7px; overflow: hidden; background: #e2e4e8; border-radius: 999px; }
.distribution-fill { display: block; height: 100%; background: #f5aa19; border-radius: inherit; }
.distribution-percent { color: var(--muted); font-size: 10px; text-align: right; }

.player-page { padding-bottom: 118px; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 12, 16, .48);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.rating-sheet {
  --sheet-peek-height: 86px;
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 90;
  width: min(100%, 760px);
  max-height: calc(100vh - 52px);
  padding: 0 20px calc(22px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 48px rgba(18, 20, 25, .2);
  transform: translate(-50%, calc(100% - var(--sheet-peek-height)));
  transition: transform .36s cubic-bezier(.22,.8,.24,1);
}
.rating-sheet.open { transform: translate(-50%, 0); }
.rating-sheet.dragging { transition: none; }
.sheet-handle-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: grab;
  touch-action: none;
}
.sheet-handle-button:active { cursor: grabbing; }
.sheet-handle { width: 38px; height: 4px; background: #c9ccd2; border-radius: 999px; }
.sheet-peek {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  max-height: 64px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 1;
  transition: min-height .2s ease, max-height .2s ease, opacity .14s ease;
}
.rating-sheet.open .sheet-peek {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.sheet-peek-label { flex: 0 0 auto; font-size: 14px; font-weight: 850; }
.sheet-peek-stars { display: flex; flex: 0 0 auto; gap: 3px; color: #f5aa19; font-size: 23px; line-height: 1; }
.sheet-expanded-content {
  overflow-y: auto;
  max-height: calc(100vh - 138px);
  padding-top: 10px;
  overscroll-behavior: contain;
}
.sheet-star-input { display: flex; justify-content: center; gap: 9px; margin-bottom: 18px; }
.sheet-star-button {
  padding: 0;
  color: #d6d9df;
  background: transparent;
  border: 0;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transition: color .14s ease, transform .14s ease;
}
.sheet-star-button:hover { transform: scale(1.08); }
.sheet-star-button.selected { color: #f5aa19; }
.sheet-star-button:disabled { cursor: default; }
.sheet-star-button:disabled:hover { transform: none; }
.sheet-comment {
  width: 100%;
  min-height: 96px;
  padding: 13px 14px;
  resize: none;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  line-height: 1.55;
}
.sheet-comment:focus { border-color: #f09a88; box-shadow: 0 0 0 3px rgba(238,77,45,.1); }
.sheet-comment.locked { color: var(--text); background: var(--surface); pointer-events: none; }
.sheet-submit {
  width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
}
.sheet-submit:disabled { opacity: .4; cursor: not-allowed; }
body.sheet-open { overflow: hidden; }

.comment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 24px 0 12px;
}
.comment-toolbar h2 { margin: 0; }
.sort-buttons { display: flex; gap: 14px; }
.sort-button { padding: 5px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.sort-button.active { color: var(--text); border-bottom-color: var(--accent); }

.comments { border-top: 1px solid var(--line); }
.comment-card { padding: 17px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.comment-score { padding: 3px 6px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; font-weight: 850; }
.comment-body { margin: 11px 0 13px; line-height: 1.6; font-size: 14px; }
.like-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 750; cursor: pointer; }
.like-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.like-button.liked { color: var(--accent); background: var(--accent-soft); border-color: #f3b7aa; }

.prototype-note { margin-top: 28px; color: #92969f; text-align: center; font-size: 11px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 110;
  padding: 11px 15px;
  color: #fff;
  background: #17191d;
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 760px) {
  .app-shell { border-left: 1px solid rgba(232,233,237,.7); border-right: 1px solid rgba(232,233,237,.7); }
  .page { padding-left: 38px; padding-right: 38px; }
  .match-body { padding-left: 38px; padding-right: 38px; }
  .tabs-wrap { margin-left: -38px; margin-right: -38px; padding-left: 38px; padding-right: 38px; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 58px; padding: 0 16px; }
  .brand-name { font-size: 17px; }
  .prototype-badge { display: none; }
  .date-bar { padding-left: 12px; padding-right: 12px; }
  .date-picker { min-width: 0; flex: 1; }
  .date-trigger { width: 100%; min-width: 0; }
  .calendar-popover { width: min(316px, calc(100vw - 28px)); }
  .page { padding: 20px 14px 56px; }
  .match-body { padding-left: 14px; padding-right: 14px; padding-bottom: 84px; }
  .tabs-wrap { top: 58px; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .team-logo { width: 43px; height: 43px; border-radius: 13px; }
  .team-name { font-size: 15px; }
  .match-versus { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .score { font-size: 22px; }
  .match-hero { padding: 20px 18px 24px; }
  .player-hero-card { padding: 18px; }
  .player-detail-profile { width: 68px; height: 68px; border-radius: 18px; }
  .player-hero-copy strong { font-size: 24px; }
  .player-performance { gap: 12px; }
  .player-champion-summary img { width: 48px; height: 48px; border-radius: 12px; }
  .player-kda-summary { padding-left: 12px; }
  .player-kda-summary strong { font-size: 18px; }
  .rating-summary-grid { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; }
  .rating-average strong { font-size: 42px; }
}

@media (max-width: 360px) {
  .player-card { grid-template-columns: 88px minmax(0, 1fr) 108px; gap: 5px; padding-left: 5px; padding-right: 5px; }
  .player-card .star { width: 20px; font-size: 20px; }
}
