/* Hupu screenshot layout; all experiment styling remains locally scoped. */
.hupu-entry { padding: 0 22px 18px; }
.hupu-entry-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border: 1px solid #f5c0b6; border-radius: 13px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 750; cursor: pointer; }
.hupu-entry-button > span:first-child { display: grid; place-items: center; width: 25px; height: 25px; margin-right: auto; background: var(--accent); color: white; border-radius: 8px; font-size: 13px; }
.hupu-entry-button > span:last-child { margin-left: auto; }
body:has(.hupu-dialog[open]) { overflow: hidden; }
.hupu-dialog { width: min(720px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; color: #17181b; background: #222528; box-shadow: 0 22px 90px #0003; }
.hupu-dialog[open] { display: flex; flex-direction: column; }
.hupu-dialog::backdrop { background: #18212c8c; }
.hupu-dialog-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; flex-shrink: 0; padding: 9px 16px; color: #f5f5f6; background: #222528; }
.hupu-dialog-head h2 { margin: 0; text-align: center; font-size: 17px; font-weight: 750; }
.hupu-origin-label { color: #9fa1a6; font-size: 10px; font-weight: 700; text-align: right; }
.hupu-close { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #bfc2c7; font-size: 25px; cursor: pointer; }
.hupu-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 0; }
.hupu-hero { padding: 9px 30px 30px; color: #d0d2d6; background: linear-gradient(108deg, #202326, #24272a); }
.hupu-hero-meta { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hupu-hero-meta strong { font-size: 18px; font-weight: 650; }
.hupu-hero-meta > span { color: #9c9fa5; font-size: 12px; }
.hupu-versus { display: grid; grid-template-columns: minmax(0, 1fr) 95px minmax(0, 1fr); align-items: center; margin-top: 12px; }
.hupu-hero-team { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 15px; }
.hupu-hero-team .team-logo { width: 58px; height: 58px; padding: 0; background: transparent; box-shadow: none; }
.hupu-match-score { text-align: center; align-self: start; margin-top: 13px; color: #c8cbd0; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.hupu-rating-panel { margin-top: -4px; overflow: hidden; border-radius: 20px 20px 0 0; background: #fff; }
.hupu-section-tab { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 20px; border-bottom: 1px solid #edeef2; }
.hupu-section-tab > strong { display: grid; place-items: center; align-self: stretch; position: relative; padding: 0 3px; font-size: 16px; }
.hupu-section-tab > strong::after { content: ''; position: absolute; height: 3px; width: 31px; bottom: 0; left: calc(50% - 15px); background: #e72e36; }
.hupu-section-tab a { color: #9195a1; text-decoration: none; font-size: 12px; }
.hupu-rating-content { padding: 18px 20px 22px; }
.hupu-overall-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; }
.hupu-overall-heading h3 { margin: 0; font-size: 15px; }
.hupu-overall-heading > span { color: #9499a5; font-size: 11px; }
.hupu-comparison { position: relative; padding-bottom: 4px; }
.hupu-comparison::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 50%; border-left: 1px dashed #e6e8ed; }
.hupu-comparison-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px 26px 38px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 40px; }
.hupu-summary-names, .hupu-summary-scores { display: flex; flex-direction: column; gap: 6px; }
.hupu-summary-names { align-items: flex-start; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.hupu-summary-names.away { align-items: flex-end; text-align: right; }
.hupu-summary-scores { align-items: center; }
.hupu-score-badge, .combined-score-badge { display: grid; place-items: center; width: 36px; height: 23px; border-radius: 2px; color: #fff; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hupu-score-badge.score-high, .combined-score-badge.score-high { background: #e52f33; }
.hupu-score-badge.score-low, .combined-score-badge.score-low { background: #4168e7; }
.hupu-score-badge.score-neutral, .combined-score-badge.score-neutral { background: #e7e9ee; color: #59616e; }
.hupu-score-badge.score-unrated, .combined-score-badge.score-unrated { background: #f0f1f4; color: #959ba7; }
.hupu-summary-role { position: relative; display: grid; place-items: center; padding: 3px; background: #fff; color: #b5aa76; }
.hupu-summary-role .line-role-icon { width: 20px; height: 20px; }
.hupu-set-tabs { display: flex; gap: 9px; overflow-x: auto; padding: 14px 0; margin: 8px 0 0; border-top: 1px solid #eceef2; }
.hupu-set-tabs button { flex: 0 0 auto; min-width: 63px; min-height: 32px; padding: 5px 13px; border: 0; border-radius: 3px; background: #f5f6f8; color: #969ba8; cursor: pointer; font-size: 13px; font-weight: 650; }
.hupu-set-tabs button[aria-pressed="true"] { color: #141619; font-weight: 800; }
.hupu-team-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 0 13px; padding: 4px; background: #f5f6f8; }
.hupu-team-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 3px; border: 0; border-radius: 1px; background: transparent; color: #969ba8; cursor: pointer; font-size: 14px; font-weight: 650; }
.hupu-team-tabs button[aria-pressed="true"] { color: #141619; background: #fff; }
.hupu-team-tabs .team-logo { width: 25px; height: 25px; padding: 0; background: transparent; box-shadow: none; }
.hupu-team-tabs button[aria-pressed="false"] .team-logo { opacity: .5; }
.hupu-player-list { display: flex; flex-direction: column; gap: 13px; }
.hupu-player-card { min-width: 0; padding: 15px 16px 10px; border: 1px solid #eceef3; border-radius: 5px; background: #fff; }
.hupu-card-main { display: grid; grid-template-columns: 76px minmax(0, 1fr) 116px; align-items: center; gap: 14px; }
.hupu-card-photo { display: block; align-self: end; width: 76px; height: 86px; object-fit: cover; object-position: center top; border-radius: 2px; background: #fafafa; }
.hupu-card-identity { min-width: 0; }
.hupu-card-identity h3 { margin: 0 0 7px; font-size: 19px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.hupu-card-game { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: #9197a4; font-size: 14px; line-height: 1.45; }
.hupu-card-champion { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hupu-card-champion > span { min-width: 0; overflow-wrap: anywhere; }
.hupu-card-kda { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hupu-champion-image { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; }
.hupu-card-score { min-width: 0; text-align: right; }
.hupu-card-stars { color: #c8cdd7; font-size: 22px; letter-spacing: 0; line-height: 1.15; white-space: nowrap; }
.hupu-card-score > strong { display: block; margin: 1px 0 4px; color: #52a2e8; font-size: 28px; line-height: 1.1; font-weight: 650; font-variant-numeric: tabular-nums; }
.hupu-card-score > span { display: block; color: #9298a7; font-size: 11px; white-space: nowrap; }
.hupu-comment { margin-top: 13px; }
.hupu-comment-translation { display: inline-block; max-width: 100%; margin: 0; padding: 6px 8px; border-radius: 2px; color: #b67754; background: #fff7f0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.hupu-loading, .hupu-empty { padding: 50px 20px; text-align: center; color: #bfc2ca; }
.hupu-empty strong { color: #fff; }
.hupu-empty p { font-size: 13px; line-height: 1.7; }
.hupu-retry { padding: 11px 20px; border: 0; border-radius: 5px; background: #e52f33; color: white; cursor: pointer; }
.hupu-dialog button:focus-visible, .hupu-entry-button:focus-visible { outline: 2px solid #f19e8c; outline-offset: 2px; }
@media (max-width: 600px) {
  .hupu-dialog { width: 100%; max-height: 100dvh; height: 100dvh; max-width: 100%; margin: 0; border-radius: 0; }
  .hupu-dialog-head { padding: 7px 13px; }
  .hupu-hero { padding: 7px 24px 23px; }
  .hupu-hero-team .team-logo { width: 48px; height: 48px; }
  .hupu-hero-meta strong { font-size: 16px; }
  .hupu-hero-team { font-size: 13px; }
  .hupu-versus { grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr); }
  .hupu-match-score { font-size: 26px; margin-top: 10px; }
  .hupu-section-tab { min-height: 46px; padding: 0 16px; }
  .hupu-rating-content { padding: 16px; }
  .hupu-comparison-row { gap: 6px; min-height: 39px; }
  .hupu-summary-names { font-size: 13px; }
  .hupu-overall-heading h3 { font-size: 14px; }
  .hupu-overall-heading > span { font-size: 10px; }
  .hupu-player-card { padding: 13px 11px 9px; }
  .hupu-card-main { grid-template-columns: 64px minmax(0, 1fr) 96px; gap: 9px; }
  .hupu-card-photo { width: 64px; height: 80px; }
  .hupu-card-identity h3 { font-size: 17px; }
  .hupu-card-game { font-size: 13px; }
  .hupu-card-stars { font-size: 19px; }
  .hupu-card-score > strong { font-size: 26px; }
  .hupu-card-score > span { font-size: 10px; }
}
@media (max-width: 350px) {
  .hupu-rating-content { padding: 13px; }
  .hupu-card-main { grid-template-columns: 52px minmax(0, 1fr) 80px; gap: 7px; }
  .hupu-card-photo { width: 52px; height: 74px; }
  .hupu-card-stars { font-size: 16px; }
  .hupu-card-identity h3 { font-size: 16px; }
}

/* Combined reading and rating flow, enabled only in the local Hupu preview. */
.hupu-content-page .match-hero { color: #f3f4f6; background: #24272a; padding-bottom: 28px; }
.hupu-content-page .hero-meta { color: #c7cad1; }
.hupu-content-page .hero-score strong { color: #fff; }
.hupu-content-page .hero-score > span { color: #b7bbc5; }
.hupu-content-page .hero-team .team-logo { background: transparent; box-shadow: none; }
.hupu-hero-overall { margin-top: 22px; padding-top: 17px; border-top: 1px solid #ffffff20; }
.hupu-hero-overall-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hupu-hero-overall-heading h2 { margin: 0; color: #eceef2; font-size: 14px; font-weight: 700; }
.hupu-hero-overall-heading > span { color: #a6acb7; font-size: 10px; }
.hupu-hero-overall-row { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 38px; }
.hupu-hero-overall-row > div { display: grid; gap: 7px; min-width: 0; padding: 4px 0; }
.hupu-hero-overall-player { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.hupu-hero-overall-name { min-width: 0; color: #e3e5ea; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.hupu-hero-overall-player .hupu-score-badge { flex: 0 0 36px; height: 24px; font-size: 14px; }
.hupu-hero-overall-player .score-unrated { background: #ffffff12; color: #9fa6b2; }
.hupu-hero-overall-player .score-neutral { background: #ffffff1f; color: #d1d5db; }
.hupu-hero-overall-row > div:last-child .hupu-hero-overall-player { flex-direction: row-reverse; text-align: right; }
.hupu-hero-overall-row .hupu-summary-role { background: transparent; color: #bfb17a; }
.hupu-hero-overall-row .hupu-summary-role .line-role-icon { width: 16px; height: 16px; }
.hupu-hero-overall .combined-source-status { margin: 12px 0 0; padding: 9px 11px; background: #ffffff0a; color: #bac1cb; font-size: 11px; }
.hupu-hero-overall .hupu-retry:focus-visible { outline: 2px solid #ed9a8a; outline-offset: 3px; }
.hupu-content-page .match-body { margin-top: -12px; border-radius: 20px 20px 0 0; background: #fff; }
.hupu-content-page .tabs-wrap { border-radius: 20px 20px 0 0; background: #fff; }
.combined-match-panel { padding: 20px 22px 32px; }
.combined-overall-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.combined-overall-heading h2 { margin: 0; font-size: 17px; }
.combined-overall-team-head { display: grid; grid-template-columns: 1fr 26px 1fr; column-gap: 14px; align-items: center; justify-items: center; padding-bottom: 10px; border-bottom: 1px solid #eceef2; }
.combined-overall-team-head > :last-child { grid-column: 3; }
.combined-overall-team-head .team-logo { width: 35px; height: 35px; padding: 0; box-shadow: none; background: transparent; }
.combined-match-panel .team-logo:has(img[src$="/hle.png"]) { padding: 4px; background: #33383e; border-radius: 5px; }
.combined-overall-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f1f4; }
.combined-overall-row > div { min-width: 0; display: grid; gap: 12px; }
.combined-overall-player { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 10px; align-items: center; min-height: 24px; }
.combined-overall-name { min-width: 0; overflow-wrap: anywhere; font-size: 16px; }
.combined-overall-own { display: grid; place-items: center; min-height: 24px; }
.combined-overall-own .combined-score-badge { height: 24px; font-size: 14px; }
.combined-overall-row > div:last-child .combined-overall-player { text-align: right; }
.combined-overall-row > div:last-child .combined-overall-player { grid-template-columns: 36px minmax(0, 1fr); }
.combined-overall-row > div:last-child .combined-overall-name { grid-column: 2; grid-row: 1; }
.combined-overall-row > div:last-child .combined-overall-own { grid-column: 1; grid-row: 1; }
.combined-source-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; padding: 11px 13px; border-radius: 7px; background: #f6f7f9; color: #7d8492; font-size: 12px; line-height: 1.6; }
.combined-source-status .hupu-retry { padding: 6px 12px; font-size: 12px; }
.combined-player-card { border-radius: 10px; }
.combined-player-card .hupu-card-main { grid-template-columns: 76px minmax(0, 1fr) minmax(88px, .65fr); }
.combined-set-own-score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; align-self: stretch; min-width: 0; }
.combined-set-own-score > .combined-score-badge { width: max-content; min-width: 64px; height: auto; min-height: 40px; padding: 6px 10px; box-sizing: border-box; font-size: 26px; line-height: 1.1; font-weight: 700; white-space: nowrap; color: #fff; }
.combined-set-own-score > .combined-score-badge.score-unrated { background: #f0f1f4; color: #959ba7; }
.combined-set-comment { margin-top: 13px; }
.combined-set-comment-label { color: #9c8074; font-size: 10px; }
.combined-set-comment .hupu-comment { margin-top: 5px; }
.combined-source-score { text-align: right; }
.combined-source-label { display: block; color: #b47b68; font-size: 11px; font-weight: 650; margin-bottom: 3px; }
.combined-source-score > strong { display: block; color: #52a2e8; font-size: 32px; line-height: 1.2; font-weight: 750; font-variant-numeric: tabular-nums; }
.combined-source-score > span:last-child { display: block; color: #949ba8; font-size: 11px; margin-top: 3px; }
.combined-own-row { margin-top: 14px; padding-top: 13px; padding-bottom: 3px; border-top: 1px solid #edf0f4; }
.combined-own-score { min-width: 0; }
.combined-own-score .combined-source-label { color: #727c8f; }
.combined-own-score > strong { color: #4f596b; font-size: 23px; line-height: 1.2; font-weight: 750; font-variant-numeric: tabular-nums; }
.combined-own-score > span:last-child { display: block; font-size: 11px; color: #939ba8; margin-top: 3px; }
.combined-set-own-score > span.combined-set-rating-count { margin: 0; line-height: 1.4; text-align: center; }
.combined-own-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.combined-rate-button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 7px; background: #f46a58; color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.combined-rate-button.has-rating { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #d2a548; }
.combined-my-label { color: #88909f; white-space: nowrap; }
.combined-my-stars { display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; }
.combined-rate-button:disabled { background: #eef0f4; color: #9ca2ae; cursor: default; }
.combined-detail-button { min-height: 30px; border: 0; padding: 2px 0; color: #88909f; background: transparent; font-size: 11px; cursor: pointer; }
.combined-player-page { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.combined-player-page .comment-toolbar { justify-content: flex-end; padding: 16px 0 10px; }
.combined-comments-empty { color: #939ba8; text-align: center; font-size: 13px; padding: 16px 0; }
.combined-rating-sheet { position: fixed; inset: auto 0 0; width: min(100%, 600px); max-width: 100%; max-height: calc(100dvh - 20px); margin: auto auto 0; padding: 22px 24px max(24px, env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; background: #fff; color: #20232a; overflow-y: auto; }
.combined-rating-sheet::backdrop { background: #18212c8c; }
body:has(.combined-rating-sheet[open]) { overflow: hidden; }
.combined-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.combined-sheet-heading span { color: #8e96a5; font-size: 12px; }
.combined-sheet-heading h2 { margin: 5px 0 0; font-size: 21px; }
.combined-sheet-close { width: 38px; height: 38px; border: 0; background: #f4f5f7; border-radius: 50%; color: #8b94a4; font-size: 25px; cursor: pointer; }
.combined-sheet-stars { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 24px 0 4px; }
.combined-sheet-stars { --rating-star-color: #f46a58; }
.combined-sheet-stars .star-input-slot { font-size: 39px; }
.combined-my-stars { --rating-star-color: #f5aa19; }
.combined-selected-score { text-align: center; color: #8e96a5; font-size: 13px; margin: 9px 0 22px; }
.combined-comment-label { display: block; font-size: 13px; margin-bottom: 8px; }
.combined-comment-label span { color: #9ca3af; font-size: 11px; margin-left: 4px; }
.combined-rating-form textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid #e1e5ec; border-radius: 9px; padding: 12px; background: #fcfcfd; color: #394252; font: inherit; font-size: 14px; }
.combined-sheet-error { color: #b73c3c; font-size: 12px; line-height: 1.5; margin: 9px 0; }
.combined-submit { width: 100%; min-height: 48px; border: 0; border-radius: 9px; background: #f46a58; color: #fff; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.combined-submit:disabled { background: #e9ecf2; color: #9ca3af; cursor: default; }
.combined-match-panel button:focus-visible, .combined-rating-sheet button:focus-visible { outline: 2px solid #ed9a8a; outline-offset: 3px; }
@media (max-width: 600px) {
  .combined-player-card .hupu-card-main { grid-template-columns: 64px minmax(0, 1fr) minmax(80px, .65fr); }
  .combined-set-own-score > .combined-score-badge { font-size: 24px; }
  .combined-match-panel { padding: 18px 16px 26px; }
  .combined-overall-row { gap: 10px; }
  .combined-overall-name { font-size: 15px; }
  .combined-overall-heading h2 { font-size: 16px; }
  .combined-own-score > strong { font-size: 22px; }
}
@media (max-width: 350px) {
  .combined-player-card .hupu-card-main { grid-template-columns: 52px minmax(0, 1fr) minmax(76px, .65fr); }
  .hupu-hero-overall-row { gap: 8px; }
  .hupu-hero-overall-player { gap: 6px; }
  .hupu-hero-overall-name { font-size: 12px; }
  .combined-overall-player { gap: 6px; }
  .combined-overall-name { font-size: 12px; }
  .combined-match-panel { padding: 15px 12px 24px; }
  .combined-rate-button { padding: 4px 8px; font-size: 11px; }
  .combined-source-score > strong { font-size: 27px; }
  .combined-source-score > span:last-child { font-size: 10px; }
  .combined-rating-sheet { padding: 20px 16px 24px; }
}
.hupu-source-list { display: grid; gap: 12px; margin-bottom: 24px; }
.hupu-source-card { padding: 14px; border: 1px solid #edf0f4; border-radius: 10px; background: #fff; }
.hupu-source-card-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) max-content; align-items: center; gap: 12px; }
.hupu-source-photo { display: block; width: 64px; height: 80px; object-fit: cover; object-position: center top; border-radius: 2px; background: #fafafa; }
.hupu-source-card-head h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 19px; }
.hupu-source-card-score { flex-shrink: 0; display: grid; justify-items: center; gap: 5px; }
.hupu-source-card-score .hupu-score-badge { width: auto; min-width: 64px; height: auto; min-height: 40px; padding: 6px 10px; text-align: center; font-size: 23px; line-height: 1.2; }
.hupu-source-card-score > span { font-size: 11px; color: #939ba8; }
@media (max-width: 350px) {
  .hupu-source-card-head { grid-template-columns: 52px minmax(0, 1fr) max-content; gap: 9px; }
  .hupu-source-photo { width: 52px; height: 72px; }
  .hupu-source-card-head h3 { font-size: 17px; }
}
