:root {
  --match-paper: #DFF5FB;
  --match-panel: #FFFFFF;
  --match-ink: #152F36;
  --match-muted: #62747A;
  --match-orange: #FF7A1A;
  --match-orange-dark: #C64D00;
  --match-sky: #58C9E7;
  --match-yellow: #FFD447;
  --match-green: #58C875;
  --match-red: #E9574F;
  --match-soft: #FFF0C5;
  --match-ring: rgba(21,47,54,0.32);
  --match-backdrop: rgba(21,47,54,0.72);
  --match-radius-sm: 12px;
  --match-radius-md: 20px;
  --match-radius-lg: 28px;
  --match-space-1: 4px;
  --match-space-2: 8px;
  --match-space-3: 12px;
  --match-space-4: 16px;
  --match-space-5: 20px;
  --match-space-6: 24px;
  --match-space-8: 32px;
  --match-space-10: 40px;
  --match-space-12: 48px;
  --match-shell: 1120px;
  --match-motion: 180ms;
  --match-ease: cubic-bezier(0.2,0.8,0.2,1);
  --match-shadow: 0 7px 0 var(--match-ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--match-paper); }
body {
  margin: 0;
  color: var(--match-ink);
  background: var(--match-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--match-ring);
  outline-offset: 3px;
}
button:disabled { cursor: default; opacity: .52; }
[hidden] { display: none !important; }
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.match-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--match-space-4);
  min-height: 72px;
  padding: var(--match-space-3) max(var(--match-space-4), env(safe-area-inset-right)) var(--match-space-3) max(var(--match-space-4), env(safe-area-inset-left));
  border-bottom: 3px solid var(--match-ink);
  background: var(--match-panel);
}
.match-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--match-space-3);
  min-width: 0;
  padding: var(--match-space-1);
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.match-wordmark-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 42px;
  border: 3px solid var(--match-ink);
  border-radius: var(--match-radius-sm) var(--match-radius-md) var(--match-radius-sm) var(--match-radius-md);
  background: var(--match-orange);
  color: var(--match-panel);
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .04em;
  transform: rotate(-4deg);
}
.match-wordmark > span:last-child { display: grid; gap: var(--match-space-1); min-width: 0; }
.match-wordmark strong { font-size: 1.05rem; line-height: 1.1; white-space: nowrap; }
.match-wordmark small { color: var(--match-muted); font-size: .73rem; font-weight: 800; }
.match-top-status { display: flex; align-items: center; gap: var(--match-space-4); min-width: 0; color: var(--match-muted); font-size: .78rem; font-weight: 800; }
.match-top-status > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-create-link {
  min-height: 42px;
  padding: 0 var(--match-space-4);
  border: 3px solid var(--match-ink);
  border-radius: var(--match-radius-sm);
  background: var(--match-orange);
  color: var(--match-panel);
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}
.match-create-link:hover { background: var(--match-orange-dark); }
.match-top-back, .match-exit, .match-secondary-button {
  min-height: 44px;
  padding: 0 var(--match-space-4);
  border: 3px solid var(--match-ink);
  border-radius: var(--match-radius-sm);
  background: var(--match-panel);
  font-weight: 900;
  cursor: pointer;
}
.match-top-back:hover, .match-exit:hover, .match-secondary-button:hover { background: var(--match-yellow); }

.match-ad-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--match-shell));
  justify-content: center;
  gap: var(--match-space-3);
  width: 100%;
  padding: var(--match-space-6) var(--match-space-3) var(--match-space-10);
}
main { min-width: 0; }
#matchApp:focus { outline: 0; }
.match-side-ad { display: none; min-height: 600px; border: 1px solid var(--match-muted); color: var(--match-muted); font-size: .72rem; text-align: center; }
.match-side-ad > span { display: grid; min-height: 600px; place-items: center; }
.match-side-spacer, .match-side-ad--coupang { border: 0; }
.match-bottom-ad { display: block; max-width: 360px; min-height: 120px; margin: var(--match-space-8) auto; border: 0; color: var(--match-muted); font-size: .72rem; text-align: center; }
.match-bottom-ad[hidden], .coupang-partners-slot[hidden] { display: none !important; }
.match-bottom-ad > span { display: grid; min-height: 120px; place-items: center; }
.match-result-adsense { width: min(100%, 960px); min-height: 120px; margin: 150px auto 0; overflow: hidden; }
.match-result-adsense[hidden] { display: none !important; }
.coupang-partners-slot { display: grid; justify-items: center; gap: 8px; }
.coupang-partners-disclosure { width: min(100%, 320px); margin: 0; color: var(--match-muted); font-size: 10px; line-height: 1.45; text-align: left; }
.coupang-partners-frame { max-width: 100%; overflow: hidden; }
.coupang-partners-frame iframe { display: block; max-width: 100%; border: 0; }

.match-screen { min-height: calc(100svh - 136px); }
.match-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: var(--match-space-8);
  align-items: end;
  padding: var(--match-space-8) 0 var(--match-space-10);
  border-bottom: 3px solid var(--match-ink);
}
.match-intro-copy { min-width: 0; }
.match-eyebrow { margin: 0 0 var(--match-space-3); color: var(--match-orange-dark); font-size: .82rem; font-weight: 950; }
.match-intro h1 { max-width: 700px; margin: 0; font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 950; line-height: .96; letter-spacing: -.04em; }
.match-intro h1 em { color: var(--match-orange-dark); font-style: normal; }
.match-intro-copy > p:last-child { max-width: 560px; margin: var(--match-space-5) 0 0; color: var(--match-muted); font-size: 1rem; font-weight: 650; line-height: 1.65; }
.match-intro-tools { display: grid; gap: var(--match-space-4); min-width: 0; }
.match-global-search { display: grid; gap: var(--match-space-2); }
.match-global-search > label { font-size: .82rem; font-weight: 950; }
.match-search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--match-space-2); }
.match-search-control input { min-width: 0; min-height: 56px; padding: 0 var(--match-space-4); border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-panel); color: var(--match-ink); font-weight: 750; }
.match-search-control button, .match-primary-button { min-height: 56px; padding: 0 var(--match-space-5); border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-orange); color: var(--match-panel); box-shadow: 0 5px 0 var(--match-ink); font-weight: 950; cursor: pointer; }
.match-search-control button:hover, .match-primary-button:hover { background: var(--match-orange-dark); }
.match-search-control button:active, .match-primary-button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--match-ink); }
.match-rule-strip { display: flex; flex-wrap: wrap; gap: var(--match-space-2); }
.match-rule-strip span, .match-mode-badge { padding: var(--match-space-2) var(--match-space-3); border: 2px solid var(--match-ink); border-radius: 999px; background: var(--match-soft); font-size: .72rem; font-weight: 900; }

.match-explorer { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(230px, .9fr) minmax(0, 1.38fr); gap: var(--match-space-4); padding: var(--match-space-8) 0 var(--match-space-6); }
.match-explorer-column { min-width: 0; border: 3px solid var(--match-ink); border-radius: var(--match-radius-md); background: var(--match-panel); box-shadow: var(--match-shadow); }
.match-explorer-column--genre { background: var(--match-yellow); }
.match-explorer-column--collection { background: var(--match-sky); }
.match-explorer-column--detail { background: var(--match-panel); }
.match-column-heading { display: flex; align-items: flex-start; gap: var(--match-space-3); min-height: 92px; padding: var(--match-space-4); border-bottom: 3px solid var(--match-ink); }
.match-step { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 2px solid var(--match-ink); border-radius: 50%; background: var(--match-panel); font-size: .73rem; font-weight: 950; }
.match-column-heading h2 { margin: 0; font-size: 1.08rem; font-weight: 950; line-height: 1.2; }
.match-column-heading p { margin: var(--match-space-1) 0 0; color: var(--match-muted); font-size: .78rem; font-weight: 750; line-height: 1.4; }
.match-explorer-column--genre .match-column-heading p, .match-explorer-column--collection .match-column-heading p { color: var(--match-ink); opacity: .72; }
.match-genre-list, .match-collection-list, .match-detail-list { min-width: 0; padding: var(--match-space-2); }
.match-genre-button, .match-collection-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--match-space-3); align-items: center; width: 100%; padding: var(--match-space-3); border: 2px solid transparent; border-radius: var(--match-radius-sm); background: transparent; cursor: pointer; text-align: left; }
.match-genre-button:hover, .match-collection-button:hover { border-color: var(--match-ink); background: var(--match-panel); }
.match-genre-button.is-selected, .match-collection-button.is-selected { border-color: var(--match-ink); background: var(--match-panel); box-shadow: 0 3px 0 var(--match-ink); }
.match-genre-button strong, .match-collection-button strong { min-width: 0; overflow-wrap: anywhere; font-size: .92rem; font-weight: 950; line-height: 1.25; }
.match-genre-button small, .match-collection-button small { color: var(--match-muted); font-size: .7rem; font-weight: 900; white-space: nowrap; }
.match-collection-button { padding: var(--match-space-4) var(--match-space-3); border-bottom-color: var(--match-muted); border-radius: 0; }
.match-collection-button:last-child { border-bottom-color: transparent; }
.match-collection-button strong { font-size: 1rem; }
.match-collection-button small { align-self: start; padding-top: var(--match-space-1); }
.match-loading, .match-empty { padding: var(--match-space-8) var(--match-space-4); color: var(--match-muted); font-size: .86rem; font-weight: 800; line-height: 1.55; text-align: center; }
.match-detail-list { display: grid; gap: var(--match-space-3); }
.match-detail-card { position: relative; min-width: 0; overflow: hidden; border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-panel); cursor: pointer; }
.match-detail-card:hover { box-shadow: 0 4px 0 var(--match-ink); }
.match-detail-card:has(.match-card-hit:focus-visible) { outline: 3px solid var(--match-ring); outline-offset: 3px; box-shadow: 0 4px 0 var(--match-ink); }
.match-card-hit { position: absolute; z-index: 1; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.match-card-hit:focus-visible { outline: 0; }
.match-detail-media { height: 128px; overflow: hidden; border-bottom: 2px solid var(--match-ink); background: var(--match-soft); }
.match-detail-media--collage { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.match-detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.match-detail-copy { display: grid; gap: var(--match-space-2); min-width: 0; padding: var(--match-space-4); }
.match-detail-copy > strong { overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 950; line-height: 1.25; }
.match-detail-copy > p { margin: 0; color: var(--match-muted); font-size: .82rem; font-weight: 650; line-height: 1.45; }
.match-detail-meta { display: flex; flex-wrap: wrap; gap: var(--match-space-2); align-items: center; }
.match-detail-meta span { color: var(--match-orange-dark); font-size: .73rem; font-weight: 950; }
.match-detail-action { display: flex; align-items: center; justify-content: space-between; gap: var(--match-space-3); width: 100%; min-height: 48px; padding: 0 var(--match-space-3); border: 2px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-orange); color: var(--match-panel); font-weight: 950; }
.match-detail-card:hover .match-detail-action { background: var(--match-orange-dark); }
.match-detail-action::after { content: "→"; font-size: 1.2rem; }
.match-cover-credit { position: relative; z-index: 2; width: fit-content; color: var(--match-muted); font-size: .68rem; line-height: 1.4; }
.match-cover-credit:hover { color: var(--match-orange-dark); }

.match-play-shell { max-width: 840px; margin: 0 auto; padding-top: var(--match-space-4); }
.match-play-topline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--match-space-4); align-items: center; }
.match-play-route { display: grid; gap: var(--match-space-1); min-width: 0; text-align: center; }
.match-play-route span { overflow: hidden; color: var(--match-muted); font-size: .75rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.match-play-route strong { overflow-wrap: anywhere; font-size: 1.1rem; font-weight: 950; line-height: 1.2; }
.match-play-tools { display: flex; align-items: center; gap: var(--match-space-2); }
.match-play-tools button { min-height: 36px; padding: 0 var(--match-space-3); border: 2px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-panel); font-size: .75rem; font-weight: 900; cursor: pointer; }
.match-score { color: var(--match-orange-dark); font-size: 1.1rem; white-space: nowrap; }
.match-progress { height: 12px; overflow: hidden; margin: var(--match-space-4) 0 var(--match-space-5); border: 2px solid var(--match-ink); border-radius: 999px; background: var(--match-panel); }
.match-progress span { display: block; width: 10%; height: 100%; background: var(--match-orange); transition: width var(--match-motion) var(--match-ease); }
.match-question-card { min-width: 0; padding: clamp(var(--match-space-5), 5vw, var(--match-space-10)); border: 3px solid var(--match-ink); border-radius: var(--match-radius-lg); background: var(--match-panel); box-shadow: var(--match-shadow); text-align: center; }
.match-question-loading { display: grid; min-height: 360px; place-content: center; gap: var(--match-space-4); }
.match-question-loading[hidden] { display: none; }
.match-question-loading strong { font-size: clamp(1.6rem, 5vw, 2.8rem); font-weight: 950; }
.match-loading-progress { width: min(420px, 68vw); height: 18px; overflow: hidden; border: 3px solid var(--match-ink); border-radius: 999px; background: var(--match-soft); }
.match-loading-progress span { display: block; width: 0; height: 100%; background: var(--match-orange); transition: width 120ms linear; }
.match-question-loading > span { color: var(--match-muted); font-size: .86rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.match-question-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--match-space-3); align-items: center; margin-bottom: var(--match-space-5); }
.match-question-meta > span:first-child { padding: var(--match-space-2) var(--match-space-3); border-radius: 999px; background: var(--match-yellow); font-size: .82rem; font-weight: 950; }
.match-mode-badge { background: var(--match-soft); }
.match-question-media { max-width: 640px; margin: 0 auto var(--match-space-5); }
.match-question-media img, .match-question-media iframe { display: block; width: 100%; max-height: 340px; border: 0; border-radius: var(--match-radius-md); object-fit: contain; background: var(--match-ink); }
.match-question-media iframe { aspect-ratio: 16 / 9; }
.match-question-media a { display: inline-block; margin-top: var(--match-space-2); color: var(--match-muted); font-size: .72rem; }
.match-question-card h1 { max-width: 700px; margin: 0 auto var(--match-space-5); font-size: clamp(1.45rem, 4vw, 2.35rem); font-weight: 950; line-height: 1.35; overflow-wrap: anywhere; }
.match-answer-hint { min-height: 24px; margin: 0 0 var(--match-space-4); color: var(--match-muted); font-size: .82rem; font-weight: 700; }
.match-answer-area { min-width: 0; }
.match-short-answer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--match-space-3); }
.match-short-answer input { min-width: 0; min-height: 60px; padding: 0 var(--match-space-4); border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-paper); color: var(--match-ink); font-size: 1.05rem; font-weight: 800; }
.match-short-answer button { min-height: 60px; padding: 0 var(--match-space-5); border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-orange); color: var(--match-panel); font-weight: 950; cursor: pointer; }
.match-short-answer button:hover { background: var(--match-orange-dark); }
.match-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--match-space-3); }
.match-choice { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--match-space-2); align-items: center; min-width: 0; min-height: 68px; padding: var(--match-space-3) var(--match-space-4); border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-paper); text-align: left; font-size: 1rem; font-weight: 850; cursor: pointer; }
.match-choice:hover { background: var(--match-yellow); }
.match-choice-index { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--match-ink); border-radius: 50%; background: var(--match-panel); font-size: .83rem; }
.match-choice.is-correct { background: var(--match-green); opacity: 1; }
.match-choice.is-wrong { background: var(--match-red); opacity: 1; }
.match-boolean-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--match-space-3); }
.match-boolean-choice { display: grid; place-items: center; min-height: 148px; padding: var(--match-space-4); border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-paper); color: var(--match-ink); cursor: pointer; }
.match-boolean-choice strong { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 950; line-height: .9; }
.match-boolean-choice span { margin-top: var(--match-space-2); color: var(--match-muted); font-size: .82rem; font-weight: 900; }
.match-boolean-choice:hover, .match-boolean-choice:focus-visible { outline: none; background: var(--match-yellow); box-shadow: 0 4px 0 var(--match-ink); transform: translateY(-2px); }
.match-boolean-choice.is-true { background: color-mix(in srgb, var(--match-green) 22%, var(--match-paper)); }
.match-boolean-choice.is-false { background: color-mix(in srgb, var(--match-red) 16%, var(--match-paper)); }
.match-boolean-choice:disabled { cursor: default; opacity: .62; transform: none; box-shadow: none; }
.match-reveal { margin-top: var(--match-space-5); padding-top: var(--match-space-5); border-top: 3px solid var(--match-ink); text-align: left; }
.match-reveal-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--match-space-3); }
.match-reveal-heading strong { font-size: 1.35rem; font-weight: 950; }
.match-reveal-heading span { color: var(--match-orange-dark); font-size: .9rem; font-weight: 900; }
.match-reveal p { margin: var(--match-space-2) 0 var(--match-space-4); color: var(--match-muted); line-height: 1.6; }
.match-reveal-credit { margin-bottom: var(--match-space-4); font-size: .76rem; }
.match-reveal-credit a { color: var(--match-muted); }
.match-reveal .match-primary-button { min-width: 160px; }
.match-play-note { margin: var(--match-space-5) 0 0; color: var(--match-muted); font-size: .76rem; line-height: 1.55; text-align: center; }

.match-create { max-width: 980px; margin: 0 auto; }
.match-create-head { display: flex; align-items: end; justify-content: space-between; gap: var(--match-space-4); padding: var(--match-space-6) 0 var(--match-space-5); border-bottom: 3px solid var(--match-ink); }
.match-create-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.03em; }
.match-draft-status { flex: 0 0 auto; padding: var(--match-space-2) var(--match-space-3); border: 2px solid var(--match-ink); border-radius: 999px; background: var(--match-yellow); font-size: .78rem; font-weight: 950; }
.match-create-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--match-space-2); padding: var(--match-space-5) 0; }
.match-create-steps button { display: flex; align-items: center; justify-content: center; gap: var(--match-space-2); min-height: 48px; border: 2px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-panel); font-size: .86rem; font-weight: 900; cursor: pointer; }
.match-create-steps button.is-current { background: var(--match-orange); color: var(--match-panel); box-shadow: 0 3px 0 var(--match-ink); }
.match-create-steps span { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 50%; font-size: .7rem; }
.match-create-panel { min-width: 0; padding: var(--match-space-6); border: 3px solid var(--match-ink); border-radius: var(--match-radius-md); background: var(--match-panel); box-shadow: var(--match-shadow); }
.match-create-basics { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--match-space-4); margin-bottom: var(--match-space-5); }
.match-create-basics label, .match-editor-fields label, .match-report-dialog label { display: grid; gap: var(--match-space-2); min-width: 0; font-size: .82rem; font-weight: 950; }
.match-create-basics input, .match-editor-fields input, .match-report-dialog select, .match-report-dialog textarea { width: 100%; min-width: 0; min-height: 52px; padding: var(--match-space-3); border: 3px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-paper); color: var(--match-ink); font-weight: 750; }
.match-dropzone { display: grid; place-items: center; min-height: 220px; padding: var(--match-space-6); border: 3px dashed var(--match-ink); border-radius: var(--match-radius-md); background: var(--match-soft); text-align: center; cursor: pointer; }
.match-dropzone:hover, .match-dropzone.is-dragging { background: var(--match-yellow); }
.match-dropzone strong { font-size: 1.25rem; font-weight: 950; }
.match-dropzone span { margin-top: var(--match-space-2); color: var(--match-muted); font-size: .8rem; font-weight: 750; }
.match-file-summary { min-height: 28px; margin-top: var(--match-space-3); color: var(--match-muted); font-size: .8rem; font-weight: 800; }
.match-create-actions { display: flex; justify-content: flex-end; gap: var(--match-space-3); margin-top: var(--match-space-5); }
.match-editor-head { display: flex; align-items: center; justify-content: space-between; gap: var(--match-space-4); margin-bottom: var(--match-space-4); }
.match-editor-head > div { display: grid; gap: var(--match-space-1); }
.match-editor-head strong { font-size: 1.1rem; }
.match-editor-head span { color: var(--match-muted); font-size: .75rem; font-weight: 750; }
.match-question-editor { display: grid; gap: var(--match-space-3); }
.match-editor-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 104px; gap: var(--match-space-3); align-items: center; padding: var(--match-space-3); border: 2px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-paper); }
.match-editor-row.has-error { border-color: var(--match-red); }
.match-editor-media { position: relative; min-width: 0; height: 104px; overflow: hidden; border: 2px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-ink); }
.match-editor-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.match-editor-media span { position: absolute; top: var(--match-space-2); left: var(--match-space-2); display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--match-ink); border-radius: 50%; background: var(--match-yellow); font-size: .72rem; font-weight: 950; }
.match-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--match-space-2); min-width: 0; }
.match-editor-fields label:last-child { grid-column: 1 / -1; }
.match-editor-fields input { min-height: 44px; padding: var(--match-space-2) var(--match-space-3); border-width: 2px; background: var(--match-panel); }
.match-editor-state { display: grid; gap: var(--match-space-2); color: var(--match-muted); font-size: .72rem; font-weight: 850; overflow-wrap: anywhere; }
.match-editor-state button { min-height: 36px; border: 2px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-yellow); font-weight: 900; cursor: pointer; }
.match-preview-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--match-space-3); align-items: center; margin-bottom: var(--match-space-4); text-align: center; }
.match-creator-preview { max-width: 680px; margin: 0 auto; text-align: center; }
.match-creator-preview img { display: block; width: 100%; height: min(52vw, 420px); object-fit: contain; border: 3px solid var(--match-ink); border-radius: var(--match-radius-md); background: var(--match-ink); }
.match-creator-preview > p { margin: var(--match-space-5) 0 var(--match-space-3); font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 950; }
.match-preview-answer { padding: var(--match-space-3); border: 2px solid var(--match-ink); border-radius: var(--match-radius-sm); background: var(--match-soft); }
.match-rights-checks { display: grid; gap: var(--match-space-3); max-width: 680px; margin: var(--match-space-6) auto 0; }
.match-rights-checks label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--match-space-2); align-items: start; font-size: .84rem; font-weight: 750; line-height: 1.5; }
.match-rights-checks input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--match-orange); }
.match-submit-error { min-height: 24px; margin: var(--match-space-3) 0 0; color: var(--match-red); font-size: .82rem; font-weight: 850; text-align: center; }
.match-report-dialog { width: min(92vw, 520px); padding: 0; border: 3px solid var(--match-ink); border-radius: var(--match-radius-md); background: var(--match-panel); color: var(--match-ink); box-shadow: var(--match-shadow); }
.match-report-dialog::backdrop { background: var(--match-backdrop); }
.match-report-dialog form { display: grid; gap: var(--match-space-4); padding: var(--match-space-6); }
.match-report-dialog h2 { margin: 0; font-size: 1.5rem; }
.match-report-dialog textarea { min-height: 112px; resize: vertical; }
.match-report-dialog p { margin: 0; color: var(--match-muted); font-size: .78rem; line-height: 1.5; }
.match-report-dialog form > div { display: flex; justify-content: flex-end; gap: var(--match-space-3); }

.match-result, .match-error { display: flex; align-items: center; justify-content: center; text-align: center; }
.match-result-card, .match-error-card { width: min(100%, 620px); padding: var(--match-space-10) var(--match-space-6); border: 3px solid var(--match-ink); border-radius: var(--match-radius-lg); background: var(--match-panel); box-shadow: var(--match-shadow); }
.match-result h1, .match-error h1 { margin: 0; font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 950; line-height: 1; }
.match-result-score { display: block; margin: var(--match-space-5) 0 var(--match-space-2); color: var(--match-orange-dark); font-size: clamp(3rem, 11vw, 6rem); font-weight: 950; line-height: 1; }
.match-result-card > span { font-size: 1.1rem; font-weight: 900; }
.match-result-card > p:last-of-type { margin: var(--match-space-4) 0 0; color: var(--match-muted); font-weight: 750; }
.match-result-actions { display: flex; justify-content: center; gap: var(--match-space-3); margin-top: var(--match-space-8); }
.match-result-actions .match-secondary-button { min-height: 56px; }
.match-error-card > p:not(.match-eyebrow) { color: var(--match-muted); line-height: 1.6; }
.match-error-card .match-primary-button { margin-top: var(--match-space-4); }

@media (min-width: 1280px) {
  body[data-screen="play"] .match-ad-layout,
  body[data-screen="result"] .match-ad-layout { grid-template-columns: 160px minmax(0, var(--match-shell)) 160px; gap: var(--match-space-5); }
  body[data-screen="play"] .match-side-ad,
  body[data-screen="result"] .match-side-ad { display: block; }
  body[data-screen="play"] .match-bottom-ad,
  body[data-screen="result"] .match-bottom-ad { display: none !important; }
  .match-side-ad--coupang { align-self: start; }
}
@media (max-width: 1000px) {
  .match-explorer { grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr); }
  .match-explorer-column--detail { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .match-intro { grid-template-columns: 1fr; gap: var(--match-space-6); }
  .match-intro-tools { max-width: 640px; }
}
@media (max-width: 767px) {
  .match-topbar { align-items: flex-start; }
  .match-top-status { padding-top: var(--match-space-2); }
  .match-ad-layout { padding: var(--match-space-5) var(--match-space-3) var(--match-space-8); }
  .match-screen { min-height: calc(100svh - 104px); }
  .match-intro { padding: var(--match-space-5) 0 var(--match-space-8); }
  .match-intro h1 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .match-explorer { grid-template-columns: 1fr; gap: var(--match-space-4); padding-top: var(--match-space-6); }
  .match-explorer-column--detail { grid-column: auto; }
  .match-genre-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--match-space-1); }
  .match-genre-button { min-height: 56px; padding: var(--match-space-2); }
  .match-genre-button strong { font-size: .83rem; }
  .match-genre-button small { font-size: .64rem; }
  .match-column-heading { min-height: 78px; }
  .match-play-shell { padding-top: 0; }
  .match-play-topline { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--match-space-2); }
  .match-exit { padding: 0 var(--match-space-3); font-size: .8rem; }
  .match-score { font-size: .95rem; }
  .match-question-card { border-radius: var(--match-radius-md); padding: var(--match-space-5) var(--match-space-4); }
  .match-choice-list { grid-template-columns: 1fr; }
  .match-boolean-choice { min-height: 124px; }
  .match-short-answer { grid-template-columns: 1fr; }
  .match-short-answer button { width: 100%; }
  .match-result-card, .match-error-card { padding: var(--match-space-8) var(--match-space-4); }
  .match-result-actions { flex-direction: column; }
  .match-result-actions button { width: 100%; }
  .match-create-panel { padding: var(--match-space-4); box-shadow: 0 5px 0 var(--match-ink); }
  .match-create-basics { grid-template-columns: 1fr; }
  .match-dropzone { min-height: 168px; }
  .match-editor-row { grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
  .match-editor-media { height: 92px; }
  .match-editor-fields { grid-template-columns: 1fr; }
  .match-editor-fields label:last-child { grid-column: auto; }
  .match-editor-state { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .match-create-actions { flex-direction: column-reverse; }
  .match-create-actions button { width: 100%; }
}
@media (max-width: 420px) {
  .match-topbar { flex-wrap: wrap; }
  .match-top-status { width: 100%; justify-content: space-between; padding-top: 0; }
  .match-wordmark-mark { width: 42px; height: 38px; }
  .match-wordmark strong { font-size: .98rem; }
  .match-global-search { width: 100%; }
  .match-search-control { grid-template-columns: minmax(0, 1fr) auto; }
  .match-search-control button { padding: 0 var(--match-space-4); }
  .match-question-meta { align-items: flex-start; }
  .match-mode-badge { font-size: .66rem; }
  .match-create-head { align-items: flex-start; }
  .match-create-head h1 { font-size: 2rem; }
  .match-create-steps button { display: grid; justify-items: center; padding: var(--match-space-2); font-size: .72rem; }
  .match-editor-head { align-items: flex-start; }
  .match-editor-head .match-secondary-button { min-height: 40px; padding: 0 var(--match-space-3); }
  .match-editor-row { grid-template-columns: 72px minmax(0, 1fr); padding: var(--match-space-2); }
  .match-editor-media { height: 72px; }
  .match-preview-toolbar .match-secondary-button { padding: 0 var(--match-space-3); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .match-wordmark-mark, .match-search-control button:active, .match-primary-button:active { transform: none; }
}

/* Play gallery: the first screen is content, not a landing page. */
:root {
  --match-paper: #f5f6f8;
  --match-panel: #ffffff;
  --match-ink: #17191f;
  --match-muted: #71747d;
  --match-orange: #ff4f68;
  --match-orange-dark: #e52f4c;
  --match-soft: #eef0f4;
  --match-ring: rgba(23, 25, 31, .24);
  --match-shadow: 0 10px 28px rgba(23, 25, 31, .08);
  --match-shell: 1440px;
}
html, body { background: var(--match-paper); }
.match-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto auto auto minmax(240px, 640px) auto auto;
  gap: 12px;
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid #dedfe4;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px) saturate(150%);
}
.match-wordmark { gap: 9px; padding: 0; }
.match-wordmark-mark {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--match-ink);
  font-size: .72rem;
  transform: none;
}
.match-wordmark strong { font-size: .98rem; letter-spacing: -.02em; }
.match-game-menu { position: relative; }
.match-game-menu summary,
.match-escape-link,
.match-create-link,
.match-login-link,
.match-top-back {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--match-ink);
  font-size: .86rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.match-escape-link { text-decoration: none; }
.match-game-menu summary::-webkit-details-marker { display: none; }
.match-game-menu summary:hover,
.match-escape-link:hover,
.match-login-link:not(:disabled):hover,
.match-top-back:hover { background: #eef0f4; }
.match-escape-link:focus-visible { outline: 3px solid var(--match-ring); outline-offset: 3px; }
.match-game-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 5px;
  width: 390px;
  padding: 10px;
  border: 1px solid #dedfe4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23,25,31,.14);
}
.match-game-menu nav a { padding: 11px 12px; border-radius: 9px; font-size: .82rem; font-weight: 750; text-decoration: none; }
.match-game-menu nav a:hover { background: #f0f1f4; }
.match-global-search { display: block; min-width: 0; }
.match-search-control { grid-template-columns: minmax(0,1fr) auto; gap: 0; }
.match-search-control input {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8d9df;
  border-radius: 11px 0 0 11px;
  background: #f5f6f8;
  font-size: .9rem;
  font-weight: 650;
}
.match-search-control button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 0 11px 11px 0;
  background: var(--match-ink);
  box-shadow: none;
  font-size: .84rem;
}
.match-search-control button:hover { background: #34363e; }
.match-top-status { gap: 8px; }
.match-create-link { background: var(--match-orange); color: #fff; }
.match-create-link:hover { background: var(--match-orange-dark); }
.match-login-link { border: 1px solid #d8d9df; }
.match-login-link:disabled { opacity: .48; cursor: default; }
.match-login-link { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }

.match-login-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--match-ink);
  box-shadow: 0 28px 90px rgba(23,25,31,.24);
}
.match-login-dialog::backdrop { background: rgba(17,18,22,.48); backdrop-filter: blur(5px); }
.match-login-panel { position: relative; padding: 28px; }
.match-login-panel h2 { margin: 0 0 22px; font-size: 1.45rem; letter-spacing: -.04em; }
.match-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: #eef0f4;
  color: #5e616a;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}
.match-login-providers { display: grid; gap: 10px; }
.match-provider-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #d8d9df;
  border-radius: 11px;
  background: #fff;
  color: var(--match-ink);
  font: inherit;
  cursor: pointer;
}
.match-provider-button:not(:disabled):hover { border-color: #aeb0b8; background: #f7f8fa; }
.match-provider-button:disabled { color: #9a9da6; background: #f5f6f8; cursor: default; }
.match-provider-button strong { font-size: .9rem; }
.match-provider-button span { font-size: .72rem; font-weight: 750; }
.match-provider-button.is-kakao,
.match-provider-button.is-naver {
  display: block;
  min-height: 48px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
}
.match-provider-button.is-kakao { background: #fee500; }
.match-provider-button.is-naver { background: #03a94d; }
.match-provider-button.is-kakao img,
.match-provider-button.is-naver img {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
}
.match-provider-button.is-kakao:not(:disabled):hover { border: 0; background: #fee500; }
.match-provider-button.is-naver:not(:disabled):hover { border: 0; background: #03a94d; }
.match-provider-button.is-kakao:disabled { background: #fee500; opacity: .45; }
.match-provider-button.is-naver:disabled { background: #03a94d; opacity: .45; }
.match-provider-button.is-kakao:focus-visible,
.match-provider-button.is-naver:focus-visible { outline: 3px solid var(--match-ring); outline-offset: 3px; }
.match-login-message { min-height: 20px; margin: 14px 0 0; color: #6f727b; font-size: .8rem; }
.match-login-policy { display: inline-block; margin-top: 8px; color: #777a83; font-size: .72rem; font-weight: 700; }
.match-service-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--match-space-6);
  width: min(calc(100% - 40px), var(--match-shell));
  margin: 0 auto;
  padding: var(--match-space-6) 0 var(--match-space-10);
  border-top: 1px solid rgba(21,47,54,.18);
  color: var(--match-muted);
}
.match-service-footer strong { color: var(--match-ink); font-size: .9rem; }
.match-service-footer p { margin: var(--match-space-1) 0 0; font-size: .78rem; line-height: 1.5; }
.match-service-footer nav { display: flex; gap: var(--match-space-4); font-size: .76rem; font-weight: 750; white-space: nowrap; }
.match-service-footer a:hover { color: var(--match-ink); }
body:not([data-screen="explore"]) .match-service-footer { display: none; }
.match-login-label { display: block; margin-bottom: 7px; color: #737680; font-size: .76rem; font-weight: 750; }
#accountName { display: block; padding-right: 54px; font-size: 1.25rem; letter-spacing: -.03em; }
.match-nickname-form { margin-top: 20px; }
.match-nickname-form > label { display: block; margin-bottom: 7px; color: #737680; font-size: .76rem; font-weight: 750; }
.match-nickname-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.match-nickname-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d9df;
  border-radius: 10px;
  background: #fff;
  color: var(--match-ink);
}
.match-nickname-form button {
  min-width: 64px;
  border: 0;
  border-radius: 10px;
  background: var(--match-ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.match-nickname-form button:hover { background: #34363e; }
.match-nickname-form p { min-height: 18px; margin: 7px 0 0; color: #6f727b; font-size: .74rem; }
.match-logout-button {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  border: 1px solid #d8d9df;
  border-radius: 10px;
  background: #fff;
  color: var(--match-ink);
  font-weight: 800;
  cursor: pointer;
}
.match-logout-button:hover { background: #f2f3f6; }
.match-ad-layout { padding: 18px 20px 56px; }
.match-screen { min-height: calc(100svh - 86px); }
.match-explore { width: min(100%, var(--match-shell)); margin: 0 auto; }
.match-genre-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scrollbar-width: none;
}
.match-genre-list::-webkit-scrollbar { display: none; }
.match-genre-button {
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #d8d9df;
  border-radius: 999px;
  background: #fff;
  font-size: .8rem;
  text-align: center;
}
.match-genre-button small { display: none; }
.match-genre-button:hover { border-color: #aeb0b8; background: #fff; }
.match-genre-button.is-selected { border-color: var(--match-ink); background: var(--match-ink); color: #fff; box-shadow: none; }
.match-subgenre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  margin: -4px 0 18px;
}
.match-subgenre-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e0e1e6;
  border-radius: 999px;
  background: #f7f7f9;
  color: #626570;
  font-size: .74rem;
  font-weight: 750;
  cursor: pointer;
}
.match-subgenre-button:hover { border-color: #b8bac2; color: var(--match-ink); }
.match-subgenre-button.is-selected { border-color: var(--match-ink); background: #fff; color: var(--match-ink); }
.match-detail-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; padding: 0; }
.match-featured-list { margin-bottom: 22px; }
.match-featured-card { border-color: var(--match-orange); }
.match-detail-card {
  border: 1px solid #dfe0e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.match-detail-card:hover { border-color: #c6c8d0; box-shadow: var(--match-shadow); transform: translateY(-3px); }
.match-detail-card:has(.match-card-hit:focus-visible) { outline: 3px solid var(--match-ring); outline-offset: 3px; box-shadow: var(--match-shadow); }
.match-detail-media { height: auto; aspect-ratio: 16 / 10; border: 0; border-bottom: 1px solid #e6e7eb; background: #eceef2; }
.match-detail-media--portrait { aspect-ratio: 4 / 3; }
.match-detail-media--portrait img { object-position: center 18%; }
.match-detail-media img { object-fit: cover; }
.match-detail-media--placeholder { display: grid; place-items: center; color: #a4a7b0; font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 900; letter-spacing: -.08em; }
.match-detail-copy { gap: 9px; min-height: 94px; padding: 14px 15px 16px; }
.match-detail-copy > strong { display: -webkit-box; overflow: hidden; font-size: 1rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.match-detail-copy > p,
.match-detail-action { display: none; }
.match-detail-meta { gap: 5px; }
.match-detail-meta span { color: var(--match-muted); font-size: .72rem; font-weight: 750; }
.match-detail-meta .match-mode-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border: 1px solid #d4d6dd; border-radius: 999px; background: #f5f6f8; color: var(--match-ink); font-size: .68rem; font-weight: 850; }
.match-detail-meta .match-mode-badge::before { content: none; }
.match-detail-meta span + span::before { content: "·"; margin-right: 5px; }
.match-cover-credit { z-index: 2; color: #92959e; font-size: .64rem; }
.match-empty { grid-column: 1 / -1; padding: 72px 20px; font-weight: 700; }
.match-load-more {
  display: block;
  min-width: 180px;
  min-height: 46px;
  margin: 26px auto 0;
  padding: 0 18px;
  border: 1px solid #d8d9df;
  border-radius: 999px;
  background: #fff;
  color: var(--match-ink);
  font-weight: 800;
  cursor: pointer;
}
.match-load-more:hover { border-color: var(--match-ink); background: #f7f7f9; }

@media (max-width: 1080px) {
  .match-detail-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .match-topbar { grid-template-columns: auto auto auto minmax(0,1fr) auto; gap: 7px; padding: 9px 12px; }
  .match-wordmark strong { display: none; }
  .match-game-menu summary { padding: 0 10px; }
  .match-global-search { grid-column: 1 / -1; grid-row: 2; }
  .match-top-status { justify-self: end; }
  .match-create-link, .match-login-link { padding: 0 10px; font-size: .78rem; }
  .match-game-menu nav { position: fixed; top: 62px; right: 12px; left: 12px; width: auto; grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .match-topbar { grid-template-columns: auto auto minmax(0,1fr) auto auto; gap: 7px; padding: 9px 12px; }
  .match-wordmark strong { display: none; }
  .match-game-menu summary { padding: 0 10px; }
  .match-global-search { grid-column: 1 / -1; grid-row: 2; }
  .match-top-status { justify-self: end; }
  .match-create-link, .match-login-link { padding: 0 10px; font-size: .78rem; }
  .match-game-menu nav { position: fixed; top: 62px; right: 12px; left: 12px; width: auto; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .match-ad-layout { padding: 14px 12px 42px; }
  .match-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .match-detail-copy { min-height: 88px; padding: 11px 12px 13px; }
  .match-detail-copy > strong { font-size: .9rem; }
  .match-service-footer {
    display: grid;
    min-width: 0;
    width: calc(100% - 24px);
    gap: var(--match-space-3);
    padding-bottom: var(--match-space-8);
  }
  .match-service-footer nav { min-width: 0; flex-wrap: wrap; white-space: normal; }
}
@media (max-width: 480px) {
  .match-subgenre-list { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
  .match-subgenre-list::-webkit-scrollbar { display: none; }
  .match-subgenre-button { flex: 0 0 auto; white-space: nowrap; }
  .match-detail-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .match-detail-media { aspect-ratio: 16 / 8; }
  .match-detail-media--portrait { aspect-ratio: 16 / 8; }
  .match-detail-copy { min-height: 76px; }
}
@media (max-width: 380px) {
  .match-topbar { gap: 5px; padding-inline: 8px; }
  .match-wordmark-mark { width: 34px; height: 34px; border-radius: 10px; }
  .match-game-menu summary { padding-inline: 7px; font-size: .78rem; }
  .match-create-link, .match-login-link { min-height: 38px; padding-inline: 7px; font-size: .72rem; }
  .match-login-panel { padding: 24px 20px; }
}

/* Community and growth surfaces */
.match-hub-tabs {
  position: sticky;
  z-index: 20;
  top: 68px;
  display: flex;
  gap: var(--match-space-2);
  margin: 0 0 var(--match-space-5);
  padding: var(--match-space-2) 0;
  overflow-x: auto;
  background: var(--match-paper);
  scrollbar-width: none;
}
.match-hub-tabs::-webkit-scrollbar { display: none; }
.match-fun-links {
  display: flex;
  gap: 8px;
  margin: -8px 0 20px;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: none;
}
.match-fun-links::-webkit-scrollbar { display: none; }
.match-fun-links a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #d8d9df;
  border-radius: 999px;
  background: #fff;
  color: var(--match-ink);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.match-fun-links a:hover { border-color: var(--match-ink); }
.match-fun-links a:focus-visible { outline: 3px solid var(--match-ring); outline-offset: 2px; }
.match-hub-tabs button,
.match-ranking-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--match-space-4);
  border: 1px solid #d8d9df;
  border-radius: 999px;
  background: var(--match-panel);
  color: var(--match-muted);
  font-weight: 850;
  cursor: pointer;
}
.match-hub-tabs button:hover,
.match-ranking-tabs button:hover { border-color: var(--match-ink); color: var(--match-ink); }
.match-hub-tabs button[aria-selected="true"],
.match-ranking-tabs button[aria-selected="true"] { border-color: var(--match-ink); background: var(--match-ink); color: var(--match-panel); }
.match-hub-panel { min-width: 0; }
.match-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--match-space-4);
  padding: var(--match-space-4) 0 var(--match-space-5);
  border-bottom: 1px solid #d8d9df;
}
.match-section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.match-section-head p { margin: var(--match-space-1) 0 0; color: var(--match-muted); font-size: .82rem; font-weight: 700; }
.match-icon-button {
  min-height: 44px;
  padding: 0 var(--match-space-4);
  border: 1px solid #d8d9df;
  border-radius: var(--match-radius-sm);
  background: var(--match-panel);
  font-weight: 800;
  cursor: pointer;
}
.match-icon-button:hover { border-color: var(--match-ink); }
.match-ranking-tabs { display: flex; gap: var(--match-space-2); padding: var(--match-space-5) 0 var(--match-space-4); overflow-x: auto; scrollbar-width: none; }
.match-ranking-tabs::-webkit-scrollbar { display: none; }
.match-ranking-list { border-top: 1px solid #d8d9df; }
.match-ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: var(--match-space-4);
  align-items: center;
  min-height: 78px;
  padding: var(--match-space-3) var(--match-space-2);
  border-bottom: 1px solid #d8d9df;
}
.match-ranking-row:nth-child(-n+3) .match-rank-number { background: var(--match-orange); color: var(--match-panel); }
.match-rank-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--match-soft);
  font-size: .85rem;
}
.match-ranking-copy { display: grid; min-width: 0; gap: var(--match-space-1); }
.match-ranking-copy > strong,
.match-user-identity > strong,
.match-user-identity > h3 { min-width: 0; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.match-ranking-copy > span { color: var(--match-muted); font-size: .72rem; font-weight: 700; }
.match-ranking-value { color: var(--match-orange-dark); font-size: .9rem; white-space: nowrap; }
.match-user-identity { display: flex; min-width: 0; align-items: center; gap: var(--match-space-2); }
.match-badge-row { display: inline-flex; flex: 0 0 auto; align-items: center; gap: var(--match-space-1); }
.match-badge-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8d9df;
  border-radius: 50%;
  background: var(--match-soft);
  font-size: .9rem;
  line-height: 1;
}
.match-badge-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.match-community-state,
.match-signed-out-state { display: grid; min-height: 152px; place-items: center; padding: var(--match-space-6); color: var(--match-muted); font-weight: 750; text-align: center; }
.match-community-state.is-loading { animation: match-pulse 1s ease-in-out infinite alternate; }
@keyframes match-pulse { from { opacity: .48; } to { opacity: 1; } }

.match-growth-body { padding-top: var(--match-space-5); }
.match-level-summary { display: grid; gap: var(--match-space-3); padding-bottom: var(--match-space-6); border-bottom: 1px solid #d8d9df; }
.match-level-summary > div:first-child { display: flex; justify-content: space-between; gap: var(--match-space-4); align-items: center; }
.match-level-summary h3 { font-size: 1.25rem; }
.match-level-number { color: var(--match-orange-dark); font-size: 1.4rem; }
.match-xp-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e3e4e8; }
.match-xp-track > span { display: block; height: 100%; border-radius: inherit; background: var(--match-orange); transition: width var(--match-motion) var(--match-ease); }
.match-level-summary > p { margin: 0; color: var(--match-muted); font-size: .78rem; font-weight: 750; }
.match-growth-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #d8d9df; }
.match-growth-stats > div { display: grid; gap: var(--match-space-1); padding: var(--match-space-5) var(--match-space-3); border-right: 1px solid #d8d9df; }
.match-growth-stats > div:last-child { border-right: 0; }
.match-growth-stats span { color: var(--match-muted); font-size: .74rem; font-weight: 700; }
.match-growth-stats strong { font-size: clamp(1rem, 3vw, 1.35rem); }
.match-badge-progress { padding-top: var(--match-space-6); }
.match-badge-progress h3 { margin: 0; font-size: 1.1rem; }
.match-badge-progress > p { margin: var(--match-space-2) 0 var(--match-space-4); color: var(--match-muted); font-size: .78rem; }
.match-genre-progress-row { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: var(--match-space-4); border-top: 1px solid #d8d9df; }
.match-genre-progress-row > span { display: flex; align-items: center; gap: var(--match-space-2); font-weight: 800; }

.match-result { display: block; text-align: left; }
.match-result-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: var(--match-space-6); align-items: start; width: min(100%, 1020px); margin: 0 auto; }
.match-result-card { position: sticky; top: 92px; text-align: center; }
.match-result-layout .match-result-score { font-size: clamp(3rem, 4.5vw, 3.8rem); white-space: nowrap; }
.match-result-growth { display: inline-flex; align-items: center; gap: var(--match-space-2); margin-top: var(--match-space-4); padding: var(--match-space-2) var(--match-space-3); border-radius: 999px; background: var(--match-soft); }
.match-comments { min-width: 0; padding: var(--match-space-5) 0; border-top: 2px solid var(--match-ink); border-bottom: 2px solid var(--match-ink); }
.match-comments-head { display: flex; align-items: center; gap: var(--match-space-2); }
.match-comments-head h2 { margin: 0; font-size: 1.35rem; }
.match-comments-head span { color: var(--match-orange-dark); font-weight: 900; }
.match-comment-compose { padding: var(--match-space-4) 0; border-bottom: 1px solid #d8d9df; }
.match-comment-compose form { display: grid; gap: var(--match-space-2); }
.match-comment-compose textarea,
.match-comment-edit textarea {
  width: 100%;
  min-height: 88px;
  padding: var(--match-space-3);
  resize: vertical;
  border: 1px solid #cfd1d7;
  border-radius: var(--match-radius-sm);
  background: var(--match-panel);
  color: var(--match-ink);
  line-height: 1.5;
}
.match-comment-compose form > div { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: var(--match-space-3); }
.match-comment-compose form > div > span { color: var(--match-muted); font-size: .76rem; }
.match-comment-compose .match-primary-button { min-height: 44px; padding-inline: var(--match-space-4); box-shadow: none; }
.match-comment-login { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: var(--match-space-3); color: var(--match-muted); font-size: .82rem; font-weight: 700; }
.match-comment-login button,
.match-comment-actions button,
.match-comment-edit button {
  min-height: 40px;
  padding: 0 var(--match-space-3);
  border: 0;
  border-radius: var(--match-radius-sm);
  background: var(--match-soft);
  color: var(--match-ink);
  font-weight: 800;
  cursor: pointer;
}
.match-comment-row { display: grid; gap: var(--match-space-2); padding: var(--match-space-4) 0; border-bottom: 1px solid #d8d9df; }
.match-comment-row > header { display: flex; align-items: center; justify-content: space-between; gap: var(--match-space-3); }
.match-comment-row time { color: var(--match-muted); font-size: .7rem; white-space: nowrap; }
.match-comment-row > p { margin: 0; overflow-wrap: anywhere; line-height: 1.55; }
.match-comment-row.is-hidden > p { color: var(--match-muted); font-size: .82rem; font-style: italic; }
.match-comment-actions { display: flex; justify-content: flex-end; gap: var(--match-space-1); }
.match-comment-actions button { min-height: 32px; padding-inline: var(--match-space-2); background: transparent; color: var(--match-muted); font-size: .72rem; }
.match-comment-actions button:hover { color: var(--match-ink); text-decoration: underline; text-underline-offset: var(--match-space-1); }
.match-comment-edit { display: grid; gap: var(--match-space-2); padding: var(--match-space-4) 0; border-bottom: 1px solid #d8d9df; }
.match-comment-edit > div { display: flex; justify-content: flex-end; gap: var(--match-space-2); }
.match-comment-report-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--match-radius-md); background: var(--match-panel); color: var(--match-ink); }
.match-comment-report-dialog::backdrop { background: var(--match-backdrop); }
.match-comment-report-dialog form { display: grid; gap: var(--match-space-3); padding: var(--match-space-6); }
.match-comment-report-dialog h2 { margin: 0; }
.match-comment-report-dialog label { font-size: .82rem; font-weight: 800; }
.match-comment-report-dialog select { min-height: 48px; padding: 0 var(--match-space-3); border: 1px solid #cfd1d7; border-radius: var(--match-radius-sm); background: var(--match-panel); }
.match-comment-report-dialog form > div { display: flex; justify-content: flex-end; gap: var(--match-space-2); }
.match-comment-report-dialog .match-primary-button { min-height: 44px; box-shadow: none; }

@media (max-width: 767px) {
  .match-hub-tabs { top: 104px; margin-bottom: var(--match-space-3); }
  .match-section-head { align-items: center; }
  .match-ranking-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--match-space-2); }
  .match-ranking-value { font-size: .78rem; }
  .match-result-layout { grid-template-columns: 1fr; gap: var(--match-space-5); }
  .match-result-card { position: static; }
  .match-comments { padding-top: var(--match-space-4); }
}
@media (max-width: 480px) {
  .match-hub-tabs { top: 104px; }
  .match-hub-tabs button { flex: 1 0 auto; }
  .match-ranking-row { min-height: 70px; padding-inline: 0; }
  .match-ranking-copy .match-badge-icon:nth-child(n+4) { display: none; }
  .match-growth-stats { grid-template-columns: 1fr; }
  .match-growth-stats > div { grid-template-columns: 1fr auto; border-right: 0; border-bottom: 1px solid #d8d9df; }
  .match-growth-stats > div:last-child { border-bottom: 0; }
  .match-comment-login { align-items: flex-start; }
  .match-genre-progress-row { align-items: flex-start; padding-block: var(--match-space-3); }
  .match-genre-progress-row > strong { font-size: .78rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .match-community-state.is-loading { animation: none; }
  .match-xp-track > span { transition: none; }
}
