@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/variable/woff2/SUIT-Variable.css");

:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-soft: #fafcfb;
  --line: #e2e9e5;
  --text: #101820;
  --muted: #65776f;
  --cyan: #16b8d8;
  --cyan-dark: #087f98;
  --cyan-soft: #eefbfe;
  --lime: #b8e600;
  --lime-dark: #6f8f00;
  --lime-soft: #f7fbdf;
  --brand: var(--cyan-dark);
  --brand-dark: #073644;
  --brand-soft: var(--cyan-soft);
  --accent: var(--lime-dark);
  --danger: #d95d39;
  --men: var(--cyan-dark);
  --women: #e05a7a;
  --mixed: var(--lime-dark);
  --shadow: 0 10px 24px rgba(15, 36, 44, 0.08);
  --focus-ring: rgba(8, 127, 152, 0.14);
  --font-sans: "SUIT Variable", "SUIT", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-brand: "SUIT Variable", "SUIT", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: -0.018em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: 12px 12px 96px;
}

body.is-dragging {
  user-select: none;
  -webkit-user-select: none;
}

button,
input,
select {
  font: inherit;
  letter-spacing: -0.02em;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 16px;
  margin-bottom: 0;
  background: transparent;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.brand-lockup:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 5px;
  border-radius: 14px;
}

.brand-logo {
  display: block;
  width: min(248px, 72vw);
  height: auto;
}

.locale-toggle-btn {
  position: absolute;
  bottom: 4px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 22px !important;
  padding: 2px 7px !important;
  font-size: 9px !important;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  border-radius: 999px !important;
}

.locale-toggle-chip {
  color: #8aa099;
  transition: color 140ms ease;
}

.locale-toggle-sep {
  color: #b6c6bf;
}

.locale-toggle-btn[data-active-locale="ko"] [data-locale-chip="ko"],
.locale-toggle-btn[data-active-locale="en"] [data-locale-chip="en"] {
  color: var(--brand-dark);
}

.mail-link,
.footer a {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.panel {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.bottom-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
}

h2 {
  font-size: 14px;
  font-weight: 850;
  color: var(--muted);
}

.block {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.block-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.block:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.badge,
.type-tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.badge-green {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.badge-warn {
  color: #5f7f00;
  background: var(--lime-soft);
}

.count-control {
  --count-percent: 10%;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.count-summary {
  display: block;
}

.count-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.count-slider {
  position: relative;
  padding: 34px 0 6px;
}

.count-bubble {
  position: absolute;
  top: 0;
  left: clamp(22px, var(--count-percent), calc(100% - 22px));
  z-index: 2;
  min-width: 44px;
  height: 26px;
  padding: 0 9px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(7, 54, 68, 0.18);
  transition: left 120ms ease;
  pointer-events: none;
}

.count-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--brand-dark);
}

.count-range {
  width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.count-range::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime-dark) 0 var(--count-percent), var(--lime-soft) var(--count-percent) 100%);
  box-shadow: inset 0 1px 2px rgba(16, 24, 32, 0.08);
}

.count-range::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: var(--lime-soft);
}

.count-range::-moz-range-progress {
  height: 12px;
  border-radius: 999px;
  background: var(--lime-dark);
}

.count-range::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -9px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(111, 143, 0, 0.28);
  appearance: none;
  -webkit-appearance: none;
}

.count-range::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(111, 143, 0, 0.28);
}

.count-range:focus-visible::-webkit-slider-thumb {
  outline: 4px solid rgba(111, 143, 0, 0.16);
  outline-offset: 3px;
}

.count-range:focus-visible::-moz-range-thumb {
  outline: 4px solid rgba(111, 143, 0, 0.16);
  outline-offset: 3px;
}

.count-range:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.count-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.count-option {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.count-option.active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.count-option:disabled,
select:disabled,
input:disabled,
.picker-field-btn:disabled {
  color: #819189;
  background: #eef5f2;
}

.participant-list {
  display: grid;
  gap: 8px;
}

.participant-mode-btn {
  min-height: 21px;
  padding: 2px 7px;
  font-size: 10px;
  white-space: nowrap;
}

.participant-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  min-width: 35px;
  padding: 0;
}

.participant-icon-btn svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

.participant-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.participant-head {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
}

.participant-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}

.mini-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-panel .panel-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.mini-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

input,
select,
.picker-field-btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.picker-field-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 34px;
  text-align: left;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.mini-grid .participant-picker-btn {
  min-height: 40px;
  padding: 9px 30px 9px 11px;
  font-size: 13px;
}

input:focus,
select:focus,
.picker-field-btn:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

input.count-range:focus {
  border-color: transparent;
  box-shadow: none;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.notice-warn {
  background: var(--lime-soft);
  color: #617f00;
}

.notice button {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--brand);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.share-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #d6e4e0;
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-soft);
}

.share-card h3 {
  margin: 0;
  font-size: 15px;
}

.share-link {
  padding: 10px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  user-select: none;
  -webkit-user-select: none;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.button-row.single-action {
  grid-template-columns: 1fr;
}

.primary-btn,
.secondary-btn,
.subtle-btn,
.ghost-btn,
.icon-btn {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 850;
}

.compact-btn {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.primary-btn {
  color: white;
  background: var(--brand);
}

.secondary-btn {
  color: var(--brand);
  background: white;
  border: 1px solid #b8dbe2;
}

.subtle-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: white;
}

.ghost-btn {
  border: 1px solid #b8dbe2;
  color: var(--brand);
  background: white;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--muted);
  background: white;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.danger-icon-btn {
  border-color: rgba(217, 93, 57, 0.38);
  color: #c14e35;
}

.danger-icon-btn:disabled {
  border-color: var(--line);
  color: #a7b1ac;
  background: #f1f5f3;
  cursor: not-allowed;
}

.exit-icon-btn {
  border-color: #b8dbe2;
  color: var(--brand);
  background: var(--cyan-soft);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.meta-chip {
  color: #073644;
  background: var(--brand-soft);
}

.meta-action-btn {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.game-list {
  display: grid;
  gap: 10px;
}

.add-game-bar {
  padding: 2px 0 6px;
}

.add-game-btn {
  width: 100%;
}

.play-count-summary {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.play-count-summary > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.export-actions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #d5dfdb;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfefd 0%, #f6faf8 100%);
}

.export-actions > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.export-actions-grid {
  display: grid;
  gap: 8px;
}

.export-action-btn {
  width: 100%;
}

.play-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.play-count-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 8px 9px;
  border: 1px solid #dfe8e4;
  border-radius: 10px;
  background: #fbfdfc;
  font-size: 12px;
  font-weight: 850;
}

.play-count-item.gender-m {
  border-color: #c8e6eb;
}

.play-count-item.gender-f {
  border-color: rgba(224, 90, 122, 0.42);
}

.play-count-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-count-item b {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.game-sort-stack {
  display: grid;
  gap: 10px;
}

.game-sort-stack.game-sort-stack-editable {
  gap: 10px;
}

.game-drop-slot {
  display: none;
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.game-drop-slot.start,
.game-drop-slot.end {
  height: 0;
}

.game-drop-slot-line {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 999px;
  background: #dbe4e0;
  transition: background 0.16s ease, height 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  opacity: 0;
}

body.is-game-sorting .game-drop-slot-active {
  display: block;
}

body.is-game-sorting .game-drop-slot-active .game-drop-slot-line {
  height: 10px;
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(21, 168, 196, 0.06) 0%,
    rgba(21, 168, 196, 0.18) 48%,
    rgba(21, 168, 196, 0.06) 100%
  );
  box-shadow:
    0 10px 18px -12px rgba(21, 168, 196, 0.52),
    0 0 0 1px rgba(21, 168, 196, 0.12) inset;
  transform: translateY(-5px);
}

body.is-game-sorting .game-drop-slot.start.game-drop-slot-active .game-drop-slot-line {
  transform: translateY(0);
}

body.is-game-sorting .game-drop-slot.end.game-drop-slot-active .game-drop-slot-line {
  transform: translateY(-10px);
}

.game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

.game-head.sortable-game-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-title strong {
  display: block;
  font-size: 15px;
}

.game-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.game-time-btn {
  border: 0;
  padding: 2px 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(8, 127, 152, 0.42);
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.game-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.remove-extra-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.game-card.game-drag-source {
  opacity: 0.34;
  transform: scale(0.985);
}

.court-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.court-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fcfa;
}

.court-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.court-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.court-name-slot {
  min-width: 0;
}

.court-name-label,
.court-name-btn {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 950;
  line-height: 1.2;
  text-align: left;
  word-break: keep-all;
}

.court-name-btn {
  cursor: pointer;
  padding: 2px 0;
  border-radius: 8px;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(8, 127, 152, 0.42);
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.court-name-btn.is-pressing {
  color: var(--brand);
  text-decoration-color: currentColor;
}

.result-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 11px;
  border: 1px solid #d6ddda;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #92a19a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.result-entry-btn.has-result {
  border-color: #becbc4;
  color: #556660;
  background: #f6faf8;
}

.export-render-host {
  position: fixed;
  left: -100000px;
  top: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.shared-screen-export {
  width: 100%;
  padding: 12px;
  background: var(--bg);
}

.shared-screen-export .app-shell {
  max-width: 440px;
  margin: 0 auto;
}

.image-export-sheet {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #f3f8f5;
  color: var(--text);
}

.image-export-header {
  display: grid;
  gap: 6px;
}

.image-export-kicker {
  color: #5b7169;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.image-export-title {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.image-export-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-export-sheet .export-actions,
.image-export-sheet .add-game-bar {
  display: none !important;
}

.image-export-sheet .game-list {
  gap: 12px;
}

.image-export-sheet .play-count-summary {
  box-shadow: 0 10px 28px rgba(32, 58, 50, 0.06);
}

.image-export-sheet .game-card {
  box-shadow: 0 10px 24px rgba(24, 52, 44, 0.06);
}

.social-share-card {
  display: grid;
  gap: 24px;
  padding: 44px;
  background:
    radial-gradient(circle at top left, rgba(214, 242, 232, 0.85), transparent 34%),
    linear-gradient(180deg, #f5fbf8 0%, #eef6f2 100%);
  color: var(--text);
}

.social-share-head {
  display: grid;
  gap: 10px;
}

.social-share-kicker {
  color: #58766c;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.social-share-title {
  font-size: 56px;
  font-weight: 980;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.social-share-caption {
  margin: 0;
  color: #627971;
  font-size: 24px;
  font-weight: 850;
}

.social-share-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-share-meta .meta-chip {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #d5e2dc;
  background: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.social-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-share-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d9e5df;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(27, 61, 51, 0.06);
}

.social-share-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.social-share-label {
  display: block;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.social-share-court {
  display: block;
  margin-top: 4px;
  color: #6a7f77;
  font-size: 17px;
  font-weight: 850;
}

.social-share-type {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 15px;
}

.social-share-teams {
  display: grid;
  gap: 8px;
}

.social-share-team {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #e4ede8;
  border-radius: 16px;
  background: #f9fcfb;
}

.social-share-team-label {
  color: #7d9089;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.social-share-team-names {
  font-size: 21px;
  font-weight: 950;
  line-height: 1.24;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.social-share-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 20px;
  background: #eaf5f0;
  color: #18493c;
  font-size: 36px;
  font-weight: 980;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.social-share-score.is-pending {
  background: #f5f8f7;
  color: #95a39d;
  font-size: 22px;
  font-weight: 900;
}

.social-share-footer {
  color: #6d8178;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.type-men {
  color: #1e66b3;
  background: #eef6ff;
}

.type-women {
  color: #b7355b;
  background: #fff0f4;
}

.type-mixed {
  color: #087f62;
  background: #ebfbf5;
}

.type-other {
  color: #6a5b12;
  background: #fff8df;
}

.type-placeholder {
  visibility: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.team {
  display: grid;
  gap: 7px;
  align-content: start;
}

.vs {
  display: grid;
  place-items: center;
  color: #7b9187;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.player-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  background: white;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px #dfe8e4;
  touch-action: manipulation;
  overflow: hidden;
}

.player-chip.draggable-player {
  touch-action: none;
}

.player-chip-label {
  display: block;
  width: 100%;
  color: inherit;
  text-align: center;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  font-size: inherit;
}

.player-chip-label.is-long {
  font-size: 12px;
  line-height: 1.14;
}

.player-chip-label.is-xlong {
  font-size: 11px;
  line-height: 1.12;
}

.player-chip-label.is-xxlong {
  font-size: 10px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.player-picker {
  position: relative;
}

.player-picker-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.player-picker-select option {
  color: var(--text);
}

.player-chip.gender-m {
  box-shadow: inset 0 0 0 1px #c8e6eb;
}

.player-chip.gender-f {
  box-shadow: inset 0 0 0 1px rgba(224, 90, 122, 0.48);
}

.player-chip.player-empty {
  color: #8a9a92;
  background: #fbfcfb;
  box-shadow: inset 0 0 0 1px #dfe8e4;
}

.player-chip.drag-source {
  opacity: 0.28;
}

.player-chip.drop-target {
  outline: 2px solid rgba(8, 127, 152, 0.24);
  background: var(--brand-soft);
}

.player-chip.drop-target-invalid {
  outline: 2px solid rgba(217, 93, 57, 0.26);
  background: rgba(217, 93, 57, 0.08);
}

.drag-ghost {
  position: fixed;
  z-index: 200;
  min-width: 116px;
  max-width: 180px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  background: white;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 0 0 1px #dfe8e4,
    0 16px 34px rgba(7, 52, 68, 0.2);
  pointer-events: none;
  transform: translate(-50%, -120%) scale(1.05);
}

.drag-ghost.game-drag-ghost {
  min-width: 136px;
  border: 1px solid rgba(8, 127, 152, 0.14);
}

.drag-ghost.gender-m {
  box-shadow:
    inset 0 0 0 1px #c8e6eb,
    0 16px 34px rgba(7, 52, 68, 0.2);
}

.drag-ghost.gender-f {
  box-shadow:
    inset 0 0 0 1px rgba(224, 90, 122, 0.48),
    0 16px 34px rgba(7, 52, 68, 0.2);
}

.waiting-box {
  margin: 0 10px 10px;
  padding: 10px;
  border: 1px solid #f1dfaa;
  border-radius: 12px;
  background: #fff8e7;
}

.waiting-box strong {
  display: block;
  margin-bottom: 8px;
  color: #795b08;
  font-size: 12px;
}

.waiting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.empty-state {
  padding: 24px 14px;
  border: 1px dashed #c8d8d4;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
}

.footer {
  display: grid;
  gap: 12px;
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.footer-help-btn,
.footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 9px 0 5px;
  border: 1px solid #d7e1dc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px rgba(15, 36, 44, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
}

.footer-help-btn:hover,
.footer-link-btn:hover {
  transform: translateY(-1px);
  border-color: #b8cbc2;
  box-shadow: 0 12px 22px rgba(15, 36, 44, 0.12);
}

.footer-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(57, 124, 89, 0.1);
  font-size: 10px;
  font-weight: 950;
}

.footer-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(57, 124, 89, 0.1);
}

.footer-link-icon svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.footer-pill-text {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.footer-help-text,
.footer-link-text {
  white-space: nowrap;
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 9px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 6px 16px rgba(15, 36, 44, 0.06);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-soft);
  opacity: 0.28;
  transform: translateX(-110%);
  animation: stat-sheen 1.8s ease-out 0.2s 1;
}

.stat-card em {
  position: relative;
  z-index: 1;
  color: #6f7f77;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat-card b {
  position: relative;
  z-index: 1;
  color: var(--brand);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

@keyframes stat-sheen {
  to {
    transform: translateX(115%);
  }
}

.sticky-actions {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 440px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(226, 233, 229, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(15, 36, 44, 0.12);
  transform: translateX(-50%);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(8, 24, 18, 0.48);
  backdrop-filter: blur(6px);
  overscroll-behavior: contain;
}

.modal-backdrop.open {
  display: flex;
}

.modal-backdrop[data-mode="court-result"] {
  height: var(--modal-viewport-height, 100dvh);
  touch-action: none;
}

.modal-card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  padding: 16px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.22);
}

.modal-card.guide-mode {
  max-width: 580px;
  max-height: calc(100vh - 24px);
  gap: 14px;
  padding: 18px;
}

.modal-card.sheet-mode {
  gap: 14px;
  padding: 18px;
  border-radius: 24px 24px 18px 18px;
}

.modal-card.social-export-mode {
  max-width: 520px;
}

.modal-card.time-mode {
  max-width: 500px;
}

.modal-card.result-mode {
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-width: 520px;
  max-height: calc(var(--modal-viewport-height, 100dvh) - 24px);
  overflow: hidden;
}

.modal-card.result-mode .modal-body {
  min-height: 0;
  max-height: none;
  padding-bottom: 2px;
  scroll-padding-bottom: 2px;
}

.modal-card.result-mode .button-row {
  position: relative;
  z-index: 1;
  background: white;
}

.modal-card h3 {
  margin: 0;
  font-size: 19px;
}

.modal-body {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 720px);
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
  overscroll-behavior: contain;
}

.result-modal {
  display: grid;
  gap: 14px;
}

.result-scoreboard {
  display: grid;
  gap: 12px;
}

.result-score-column {
  display: grid;
  min-width: 0;
}

.result-team-score-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5e0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
}

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

.result-team-card {
  min-height: 52px;
  padding: 10px 12px;
}

.result-score-picker-wrap {
  position: relative;
  min-width: 0;
  min-height: 64px;
}

.result-score-picker {
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  touch-action: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 16%, #000 34%, #000 66%, rgba(0, 0, 0, 0.45) 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 16%, #000 34%, #000 66%, rgba(0, 0, 0, 0.45) 84%, transparent 100%);
}

.result-score-picker::-webkit-scrollbar {
  display: none;
}

.result-score-spacer {
  flex: 0 0 calc(50% - 27px);
  min-width: calc(50% - 27px);
  height: 1px;
  scroll-snap-align: center;
}

.result-score-item {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 54px;
  color: #91a097;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  scroll-snap-align: center;
  transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
  cursor: pointer;
  user-select: none;
}

.result-score-item.is-selected {
  color: var(--brand);
  transform: scale(1.08);
}

.result-score-picker-focus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(8, 127, 152, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 252, 255, 0.88) 0%, rgba(232, 247, 251, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(8, 127, 152, 0.05),
    0 12px 28px rgba(8, 127, 152, 0.08);
  pointer-events: none;
}

.result-score-divider {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #f3f7f5;
  text-align: center;
}

.result-score-divider span {
  color: #7b8d86;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.result-score-divider strong {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  min-height: 30px;
}

.result-score-divider strong:empty::before {
  content: "\00a0";
}

.result-clear-btn {
  justify-self: flex-end;
  min-height: 38px;
  padding-inline: 14px;
}

.result-clear-btn.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.time-picker-modal {
  display: grid;
  gap: 14px;
}

.time-picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.time-picker-column {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe5e0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
}

.time-picker-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.time-picker-wrap {
  position: relative;
  min-height: 224px;
}

.time-picker {
  height: 224px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 16%, #000 34%, #000 66%, rgba(0, 0, 0, 0.45) 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 16%, #000 34%, #000 66%, rgba(0, 0, 0, 0.45) 84%, transparent 100%);
}

.time-picker::-webkit-scrollbar {
  display: none;
}

.time-picker-spacer {
  height: 86px;
  scroll-snap-align: center;
}

.time-picker-item {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: #91a097;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  scroll-snap-align: center;
  transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
  cursor: pointer;
  user-select: none;
}

.time-picker-item.is-selected {
  color: var(--brand);
  transform: scale(1.06);
}

.time-picker-focus {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 54px;
  transform: translateY(-50%);
  border: 1px solid rgba(8, 127, 152, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 252, 255, 0.88) 0%, rgba(232, 247, 251, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(8, 127, 152, 0.05),
    0 12px 28px rgba(8, 127, 152, 0.08);
  pointer-events: none;
}

.time-picker-divider {
  display: grid;
  place-content: center;
  gap: 8px;
  width: 124px;
  min-width: 124px;
  padding: 12px 10px;
  border-radius: 18px;
  background: #f3f7f5;
  text-align: center;
}

.time-picker-divider span {
  color: #7b8d86;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.time-picker-divider strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  word-break: keep-all;
}

.delay-picker-modal {
  display: grid;
  gap: 14px;
}

.delay-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.delay-picker-preview {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f3f7f5;
  text-align: center;
}

.delay-picker-preview span {
  color: #7b8d86;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.delay-picker-preview strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35em;
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delay-picker-column {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe5e0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
}

.value-picker-column {
  min-width: 0;
}

.value-picker-item {
  padding-inline: 8px;
  font-size: 24px;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.value-picker-item.is-disabled {
  color: #c0cbc6;
  cursor: default;
}

.value-picker-item-player {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.value-picker-modal[data-value-mode="schedule-player"] .delay-picker-preview strong {
  font-size: 20px;
}

.value-picker-modal[data-value-mode="schedule-player"] .time-picker-wrap {
  min-height: 280px;
}

.value-picker-modal[data-value-mode="schedule-player"] .time-picker {
  height: 280px;
}

.value-picker-modal[data-value-mode="schedule-player"] .time-picker-spacer {
  height: 113px;
}

.value-picker-item-date {
  font-size: 21px;
  letter-spacing: -0.04em;
}

.value-picker-modal[data-value-mode="game-date"] .delay-picker-preview strong {
  font-size: 22px;
}

.delay-picker-wrap {
  min-height: 224px;
}

.delay-picker-item {
  font-size: 28px;
  white-space: nowrap;
}

.export-sheet {
  display: grid;
  gap: 10px;
}

.export-sheet-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.export-sheet-option {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d7e2dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfefd 0%, #f3f8f5 100%);
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 36, 44, 0.05);
}

.export-sheet-option strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.export-sheet-option span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.social-export-sheet {
  display: grid;
  gap: 12px;
}

.social-export-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.social-export-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-export-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
}

.social-export-summary strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.social-export-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-export-player {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #dbe6e1;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f3f8f5 100%);
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 36, 44, 0.05);
}

.social-export-player .player-chip-label {
  text-align: left;
  line-height: 1.18;
}

.social-export-player-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid #c7d5ce;
  color: transparent;
  font-size: 10px;
  font-weight: 950;
  transition: all 0.16s ease;
}

.social-export-player.is-selected.gender-m {
  border-color: #c8e6eb;
}

.social-export-player.is-selected.gender-f {
  border-color: rgba(224, 90, 122, 0.48);
}

.social-export-player.is-selected.gender-m .social-export-player-check {
  border-color: #1e66b3;
  background: #1e66b3;
  color: white;
}

.social-export-player.is-selected.gender-f .social-export-player-check {
  border-color: #c34a74;
  background: #c34a74;
  color: white;
}

.social-export-player:not(.is-selected) {
  opacity: 0.72;
}

.guide-sheet {
  display: grid;
  gap: 12px;
}

.guide-section,
.guide-tip {
  border: 1px solid #dbe6e0;
  border-radius: 18px;
}

.guide-section h4 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.guide-section p,
.guide-tip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.guide-section {
  display: grid;
  gap: 10px;
  padding: 15px;
  background: white;
}

.guide-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(57, 124, 89, 0.24);
}

.guide-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: #4d6159;
  font-size: 13px;
  line-height: 1.62;
}

.toast {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: 210;
  min-width: 220px;
  max-width: calc(100% - 24px);
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(6, 22, 28, 0.94);
  color: #eafffb;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .count-grid,
  .button-row,
  .waiting-grid {
    grid-template-columns: 1fr;
  }

  .result-scoreboard {
    gap: 8px;
  }

  .result-team-score-block {
    gap: 8px;
    padding: 12px 10px;
  }

  .result-team-card {
    min-height: 50px;
    padding: 8px 10px;
  }

  .result-score-divider {
    min-height: 58px;
    padding-block: 10px;
    padding-inline: 6px;
  }

  .result-score-divider span {
    font-size: 11px;
  }

  .result-score-divider strong {
    font-size: 20px;
  }

  .result-score-picker-wrap,
  .result-score-picker {
    min-height: 58px;
    height: 58px;
  }

  .result-score-item {
    flex-basis: 50px;
    width: 50px;
    min-height: 50px;
    font-size: 22px;
  }

  .result-score-spacer {
    flex-basis: calc(50% - 25px);
    min-width: calc(50% - 25px);
  }

  .result-score-picker-focus {
    width: 50px;
    height: 50px;
  }

  .social-export-player-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .result-panel .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .result-panel .meta-row {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 0;
  }

  .result-panel .meta-chip,
  .result-panel .meta-action-btn {
    min-height: 26px;
    padding: 5px 8px;
    font-size: 11px;
    letter-spacing: -0.03em;
  }

  .result-panel .meta-action-btn {
    justify-self: end;
  }

  .footer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 54px;
  }
}

@media (min-width: 700px) {
  .export-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
