/* New pages share the established palette, typography and controls. */
.local-video-notice{font-size:13px}.local-video-notice a{color:#ff9ad2;font-weight:700;text-underline-offset:3px}.youtube-mount{height:100%;min-height:200px}.video-unavailable{min-height:240px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:18px;background:#201c20}.video-unavailable[hidden],.youtube-mount[hidden],.video-retry[hidden]{display:none!important}.video-unavailable img{width:112px;height:112px;object-fit:contain;border-radius:8px}.video-unavailable strong{font-size:15px;color:#ded5da}.video-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.video-retry{font:inherit;font-size:13px;min-height:44px;background:transparent;border:0;color:#c8bdc3;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px}.video-retry:focus-visible{outline:2px solid #ff9ad2;outline-offset:3px}
.hub-intro h1{word-break:keep-all;overflow-wrap:anywhere}
.hub-masthead .masthead-inner{gap:24px}.hub-nav{gap:16px;flex-wrap:wrap;white-space:normal}.hub-nav a{white-space:nowrap}.hub-nav .account-link{margin-left:auto}
.hub-intro{padding:44px 0 32px}.hub-intro h1{font-size:clamp(28px,4vw,42px);line-height:1.3;letter-spacing:-1px;margin:8px 0 12px}.hub-intro>p:last-child{color:#c4bcc1;font-size:16px;margin:0;word-break:keep-all;overflow-wrap:anywhere}.hub-eyebrow,.feature-kicker{color:var(--accent);font-size:12px;font-weight:800;letter-spacing:1.5px;margin:0}.hub-intro.compact{padding-bottom:24px}.hub-muted{color:#c4bcc1;font-size:14px;line-height:1.65}.hub-fine{color:#b5b5b5;font-size:13px;line-height:1.65}.hub-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hub-actions.vertical{align-items:stretch;flex-direction:column;margin-top:24px}.hub-page .primary-button,.hub-page .outline-button{min-height:48px;text-align:center;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;padding:12px 20px;width:auto;line-height:1.5}.hub-page .primary-button:disabled{opacity:.5}.hub-notice,.hub-error{background:#30232b;border:1px solid #745565;border-radius:10px;padding:12px 16px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.hub-error{color:#ffc5cf;border-color:#a34c61}.hub-features{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}.feature-card{border:1px solid #4b4147;border-radius:16px;background:#252124;overflow:hidden;position:relative;padding:24px;display:flex;flex-direction:column;min-width:0}.feature-card h2{font-size:25px;margin:22px 0 8px;letter-spacing:-.5px}.feature-card>p{color:#c9c1c6;font-size:15px;line-height:1.75;margin:0 0 22px;word-break:keep-all}.feature-card>a{margin-top:auto}.feature-portraits{height:220px;display:flex;justify-content:center;overflow:hidden;border-bottom:1px solid #856773;margin-top:16px}.feature-portraits img{width:50%;height:240px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 4px 10px #0003)}.feature-profile{background:#34232b}.feature-records{height:220px;display:flex;align-items:center;justify-content:center;gap:0;margin-top:16px}.feature-records img{width:46%;height:auto;aspect-ratio:1;border-radius:8px}.feature-records img:first-child{transform:rotate(-6deg)}.feature-records img:last-child{transform:rotate(6deg)}.feature-records span{z-index:1;background:#bf0068;padding:7px;border-radius:100%;font-weight:900;font-size:16px;margin:0 -12px}.feature-wallpaper{height:220px;width:100%;object-fit:cover;border-radius:8px;margin-top:16px}.hub-link-strip{margin-top:26px;padding:24px 0;border-top:1px solid #484148;display:flex;align-items:center;justify-content:space-between;gap:20px}.hub-link-strip h2{font-size:18px;margin:0 0 5px}.hub-link-strip p{margin:0;font-size:14px;color:#bdb5ba}.hub-link-strip a{flex:none;color:var(--accent);font-weight:700;text-decoration:none;min-height:44px;display:flex;align-items:center}.hub-footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;max-width:1156px;margin:0 auto;padding:25px 0;border-top:1px solid #444}.hub-footer strong{font-size:17px}.hub-footer p{flex:1;min-width:220px;margin:0;font-size:13px;line-height:1.6}.hub-footer a{font-size:13px;min-height:44px;display:flex;align-items:center}
.worldcup-start{max-width:700px;margin:0 auto;display:grid;gap:24px}.new-game-settings,.saved-game{padding:28px;border:1px solid #51414b;border-radius:16px;background:#252124}.saved-game{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#30232b;border-color:#896377}.saved-game[hidden]{display:none}.saved-game>div{min-width:0}.saved-game .hub-muted{margin:0;overflow-wrap:anywhere}.saved-game .primary-button{flex-shrink:0}.worldcup-start h2{font-size:25px;line-height:1.4;margin:0 0 12px}.round-choice{display:flex;gap:16px;margin:24px 0}.round-choice label{flex:1;position:relative}.round-choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.round-choice span{display:flex;flex-direction:column;border:1px solid #6d5a65;border-radius:12px;padding:18px 20px}.round-choice b{font-size:27px}.round-choice small{font-size:13px;color:#c4bcc1}.round-choice input:checked+span{border:2px solid var(--accent);padding:17px 19px;background:#482c3c}.round-choice input:focus-visible+span{outline:3px solid white;outline-offset:4px}.round-choice input:disabled+span{opacity:.45}.match-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.match-toolbar h2{font-size:25px;margin:4px 0 0}.match-toolbar button{flex:none;font-size:13px}#match-progress{display:block;appearance:none;width:100%;height:5px;margin-top:20px;border:0;border-radius:8px;background:#454045}#match-progress::-webkit-progress-bar{background:#454045;border-radius:8px}#match-progress::-webkit-progress-value{background:var(--accent);border-radius:8px}#match-progress::-moz-progress-bar{background:var(--accent)}.match-instruction{margin:12px 0 22px}.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.match-card{min-width:0;background:#242124;border:1px solid #51424c;border-radius:16px;padding:20px;display:flex;flex-direction:column}.match-song-head{display:grid;grid-template-columns:62px minmax(0,1fr);gap:14px;margin-bottom:12px;align-items:start}.match-song-head img{width:62px;height:62px;object-fit:contain;border-radius:6px}.match-card h3{font-family:Pretendard,'Noto Sans JP',sans-serif;font-size:22px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 4px}.match-card .song-english{font-size:15px;color:#ded5da;line-height:1.5;overflow-wrap:anywhere;margin:4px 0}.match-card .song-korean{font-size:13px;color:#bcb3b8;line-height:1.5;margin:4px 0}.video-kind{display:inline-block;color:#ffc1e3;font-size:12px;margin-bottom:8px}.youtube-frame{width:100%;aspect-ratio:16/9;min-height:200px;background:#101010;border-radius:8px;overflow:hidden}.youtube-frame iframe{display:block;width:100%;height:100%;min-height:200px;border:0}.video-note{font-size:13px;color:#c8bdc3;margin:8px 0;min-height:21px}.video-fallback{font-size:13px;color:var(--accent);min-height:44px;display:inline-flex;align-items:center;align-self:start}.match-card .choose-song{width:100%;margin-top:10px}.result-heading{margin-bottom:24px}.result-heading h2{font-size:32px;margin:8px 0}.result-layout{display:grid;grid-template-columns:minmax(0,430px) minmax(0,1fr);gap:40px;align-items:start;max-width:950px}.result-layout>img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:12px}.winner-copy{min-width:0}.winner-copy h3{font-size:clamp(24px,3vw,36px);line-height:1.45;overflow-wrap:anywhere;margin:4px 0 8px}.winner-copy>p{margin:8px 0}.winner-copy>a{display:inline-flex;min-height:44px;align-items:center;color:var(--accent)}#winner-english{font-size:20px;overflow-wrap:anywhere}.result-bottom{display:flex;gap:24px;align-items:center;margin:30px 0}.result-preview{max-width:360px;margin-top:28px}.result-preview summary{padding:10px 0;color:#c4bcc1;cursor:pointer}.result-preview img{display:block;width:100%;height:auto}.hub-dialog{border:1px solid #66535e;border-radius:16px;background:#242124;color:#fff;max-width:min(520px,calc(100vw - 32px));padding:26px}.hub-dialog h2{font-size:22px;margin:0 0 12px}.hub-dialog p{font-size:15px;line-height:1.65}.hub-dialog::backdrop{background:#000b}.hub-export-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0}.hub-export-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;position:sticky;top:0;background:#242124;z-index:1;border-bottom:1px solid #51424c}.hub-export-head h2{font-size:20px;margin:0}.hub-export-body{padding:18px 20px}.hub-export-body>img{display:block;width:100%;height:auto;border-radius:6px;-webkit-touch-callout:default;user-select:auto}.hub-export-body details{margin:16px 0}.hub-export-body summary{cursor:pointer;color:var(--accent);min-height:44px;display:flex;align-items:center}.hub-export-body .hub-actions>*{flex:1;min-width:150px}.hub-export-body .public-address{overflow-wrap:anywhere}.hub-export-body .export-note{font-size:13px;line-height:1.6;color:#c4bcc1}.hub-export-head button{min-height:44px;padding:8px 16px}
@media(max-width:1050px){.hub-masthead .masthead-inner{gap:8px 20px}.hub-nav{gap:20px}.hub-features{gap:14px}.feature-card{padding:20px}.feature-portraits,.feature-records,.feature-wallpaper{height:180px}.feature-portraits img{height:200px}.feature-card h2{font-size:22px}.hub-footer{margin:0 32px}}
@media(max-width:760px){.hub-features{grid-template-columns:1fr}.feature-card{display:grid;grid-template-columns:minmax(0,1fr) 130px;column-gap:12px;padding:20px}.feature-kicker{grid-column:1}.feature-card h2{grid-column:1;margin:12px 0 6px}.feature-card>p{grid-column:1;margin:0 0 14px;font-size:14px}.feature-card>a{grid-column:1/-1;margin:0}.feature-portraits,.feature-records,.feature-wallpaper{grid-column:2;grid-row:1/4;width:130px;height:150px;margin:0;align-self:center}.feature-portraits img{height:165px;width:65px}.feature-records img{width:59px}.feature-records span{font-size:11px;margin:0 -10px}.feature-wallpaper{object-position:70%}.hub-intro{padding:28px 0 24px}.hub-intro>p:last-child{font-size:14px;max-width:24em}.hub-link-strip{flex-direction:column;align-items:start;gap:10px}.match-grid{grid-template-columns:1fr;gap:18px}.match-song-head{min-height:0}.match-card{padding:16px}.match-card h3{font-size:21px}.new-game-settings,.saved-game{padding:22px 20px}.saved-game{align-items:stretch;flex-direction:column;gap:14px}.saved-game .primary-button{align-self:start}.result-layout{grid-template-columns:1fr;gap:22px}.result-layout>img{max-width:340px}.result-heading h2{font-size:28px}.hub-dialog{padding:20px}.hub-export-dialog{padding:0}.hub-export-body{padding:14px}.hub-export-head{padding:14px}.hub-footer{margin:0 20px}.hub-footer p{flex-basis:100%;min-width:0}.hub-nav{gap:16px}.hub-nav a{font-size:14px}.hub-intro.compact{padding:24px 0 20px}.match-toolbar h2{font-size:23px}}
@media(max-width:400px){.hub-nav{gap:12px}.hub-nav a{font-size:13px}.feature-card{grid-template-columns:minmax(0,1fr) 105px;padding:16px}.feature-portraits,.feature-records,.feature-wallpaper{width:105px}.feature-portraits img{width:57px}.feature-records img{width:50px}.feature-card h2{font-size:21px}.feature-card>p{font-size:13px}.round-choice{gap:10px}.round-choice span{padding:16px}.round-choice input:checked+span{padding:15px}.hub-actions{gap:10px}.worldcup-start h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Keep the full catalog option prominent without squeezing mobile choices. */
.round-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.round-choice label{min-width:0}.round-choice .all-songs-choice{grid-column:1/-1}.round-choice .all-songs-choice span{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.round-choice .all-songs-choice small{font-size:14px;text-align:right}.round-choice .all-songs-choice b{font-size:25px}.round-choice span{height:100%}#round-description{min-height:3.3em;word-break:keep-all;overflow-wrap:anywhere}
@media(max-width:400px){.round-choice .all-songs-choice span{flex-wrap:wrap;gap:4px 12px}.round-choice .all-songs-choice small{text-align:left}}

/* Home shortcut to the existing official-links directory. */
.new-game-settings .new-game-note{margin:0 0 10px}.new-game-settings #candidate-count{margin:0}.new-game-settings .round-choice{margin:18px 0 12px}.new-game-settings #round-setup-note{margin:0 0 16px;font-size:14px}.round-details{margin-top:16px;border-top:1px solid #51414b}.round-details summary{padding:10px 0;min-height:44px;cursor:pointer;font-size:14px;color:#dfcbd6}.round-details summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.round-details .hub-fine{margin:4px 0 10px;font-size:14px}.round-details #round-description{min-height:0;margin:0 0 12px}.new-game-settings .worldcup-save-note{margin:14px 0 0;font-size:14px}
.hub-official-shortcut{margin-top:26px;padding:24px 0;border-top:1px solid #484148}.hub-page .hub-official-shortcut>.outline-button{width:100%;justify-content:space-between;gap:16px;white-space:normal;text-align:left;word-break:keep-all;overflow-wrap:anywhere}.hub-official-shortcut>a>span:last-child{flex:none}

/* Empty player status should not reserve an extra line above the source link. */
.video-note:empty{display:none}.match-card .song-korean{overflow-wrap:anywhere}.youtube-frame{flex-shrink:0}
.official-info-page .hub-footer{width:auto;max-width:1156px}

/* Share only the space needed by this match's content, not a fixed title height. */
@supports(grid-template-rows:subgrid){
  @media(min-width:761px){
    .match-grid{grid-template-rows:repeat(6,auto);row-gap:0}
    .match-card{display:grid;grid-template-rows:subgrid;grid-row:1 / span 6;row-gap:0}
    .match-card:first-child{grid-column:1}
    .match-card:nth-child(2){grid-column:2}
    .match-song-head{grid-row:1}
    .video-kind{grid-row:2}
    .youtube-frame{grid-row:3}
    .video-note{grid-row:4}
    .video-actions{grid-row:5}
    .match-card .choose-song{grid-row:6}
  }
}
