/* Composite page only; neither original application's styles are changed. */
[hidden]{display:none!important}
.topbar{padding:12px 20px;min-height:66px;padding-top:calc(12px + env(safe-area-inset-top))}
.brand-icon{width:25px;height:25px;color:#fb923c;flex-shrink:0}
.site-meta{font-size:12px;color:var(--fg-mute);text-align:right;line-height:1.5}
.event-nav{max-width:1460px;margin:0 auto;display:flex;gap:12px;padding:14px 20px 0}
.event-tab{flex:1;min-height:52px;padding:8px 16px;border:1px solid var(--bd);border-radius:12px;color:var(--fg-mute);background:var(--surface);font:600 16px var(--txt);cursor:pointer;transition:background .18s,border-color .18s,color .18s;display:flex;align-items:center;justify-content:center;gap:10px}
.event-tab svg{width:20px;height:20px;flex:0 0 auto}
.event-tab small{font:500 12px var(--txt);color:var(--fg-mute)}
.event-tab[aria-selected="true"]{color:var(--gold);background:#211b13;border-color:#9a7326}
.event-tab.shooting[aria-selected="true"]{color:#fdba74;background:#23170f;border-color:#b16a31}
.event-tab:hover{background:var(--surface-2)}
button:focus-visible,.event-panel:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.event-tab:focus-visible{outline-offset:3px}
.event-info{max-width:1460px;margin:0 auto;padding:12px 20px 0;display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--fg-mute)}
.event-info b{color:var(--fg);font-family:var(--num);font-size:18px}
.site-footer{margin:0;text-align:center;color:var(--fg-mute);font-size:12px;padding:12px 16px 16px}
.shooting-layout{max-width:1460px;margin:0 auto;padding:20px;display:flex;flex-direction:column;gap:16px;min-height:0}
.shooting-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.shooting-heading h1{font-size:20px;margin:0;line-height:1.3}
.shooting-heading p{color:var(--fg-mute);font-size:13px;margin:4px 0 0}
.shooting-summary{text-align:right;font-size:13px;color:var(--fg-mute);white-space:nowrap}
.shooting-summary strong{color:#fdba74;font:700 25px var(--num);padding:0 3px}
.shooting-summary span{display:block;font-size:12px}
.shooting-boards{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;min-height:0}
.shooting-board{border:1px solid var(--bd);border-radius:16px;padding:18px;background:var(--surface);min-width:0;display:flex;flex-direction:column;min-height:0}
.shooting-board h2{display:flex;align-items:center;justify-content:space-between;font-size:18px;gap:8px;margin:0 0 16px}
.shooting-board h2 span{font-size:12px;color:var(--fg-mute);font-weight:400}
.shooting-board.male h2{color:#93c5fd}
.shooting-board.female h2{color:#f9a8d4}
.shooting-rows{list-style:none;padding:0;margin:0;display:grid;grid-template-rows:repeat(8,minmax(0,1fr));gap:8px;flex:1;min-height:0}
.shooting-row{display:flex;align-items:center;gap:14px;min-width:0;padding:10px 12px;min-height:66px;border:1px solid var(--bd);border-radius:10px;background:#111a2b}
.shooting-rank{display:flex;justify-content:center;align-items:center;width:30px;height:30px;flex:0 0 auto;background:var(--surface-2);border-radius:8px;color:var(--fg-mute);font:600 20px var(--num)}
.shooting-person{flex:1;min-width:0}
.shooting-name{display:block;font-size:18px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shooting-dept{display:block;color:var(--fg-mute);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shooting-score{font:700 32px var(--num);line-height:1;flex:0 0 auto;white-space:nowrap}
.shooting-score small{font:400 12px var(--txt);margin-left:3px;color:var(--fg-mute)}
.shooting-row.first{border-color:#8a691f;background:linear-gradient(90deg,#302711,#151b27)}
.shooting-row.first .shooting-rank{background:var(--gold);color:#271e09}
.shooting-row.first .shooting-score{color:var(--gold)}
.shooting-row.second .shooting-rank{background:#cbd5e1;color:#172033}
.shooting-row.third .shooting-rank{background:#e0a477;color:#28170b}
.shooting-row.empty .shooting-name{color:var(--fg-mute);font-weight:400}
.shooting-note{margin:0;color:var(--fg-mute);font-size:12px;text-align:center}
.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}
@media(min-width:1024px){.shooting-layout{height:calc(100dvh - 182px - env(safe-area-inset-top));min-height:0}.shooting-boards{flex:1}.shooting-row{min-height:0}}
@media(min-width:901px) and (max-height:800px){.shooting-board{padding:12px}.shooting-board h2{font-size:16px;margin-bottom:8px}.shooting-rows{gap:5px}.shooting-row{padding:4px 10px}.shooting-name{font-size:16px}.shooting-dept{font-size:11px;line-height:1.15}.shooting-score{font-size:26px}}
@media(max-width:900px){
 .topbar{padding:10px 12px;padding-top:calc(10px + env(safe-area-inset-top));min-height:60px}.brand{font-size:16px;gap:6px}.brand-icon{width:21px;height:21px}.site-meta{font-size:11px}
 .event-nav{padding:10px 12px 0;gap:8px}.event-tab{min-height:46px;font-size:14px;padding:8px;gap:6px}.event-tab svg{width:17px;height:17px}.event-tab small{display:none}
 .event-info{padding:10px 16px 0;font-size:12px}
 .shooting-layout{padding:12px 10px 0;gap:8px;height:calc(100dvh - 154px - env(safe-area-inset-top));min-height:410px}
 .shooting-heading{gap:8px}.shooting-heading h1{font-size:16px}.shooting-heading p{font-size:11px;margin-top:2px}.shooting-summary{font-size:11px}.shooting-summary strong{font-size:22px}.shooting-summary span{font-size:10px}
 .shooting-boards{gap:8px;flex:1}.shooting-board{padding:8px 6px;border-radius:12px}.shooting-board h2{font-size:14px;margin-bottom:8px;gap:3px}.shooting-board h2 span{font-size:10px}
 .shooting-rows{gap:4px}.shooting-row{gap:5px;padding:4px 5px;border-radius:8px;min-height:0}.shooting-rank{width:20px;height:23px;font-size:15px;border-radius:6px}.shooting-name{font-size:15px}.shooting-dept{font-size:10px;line-height:1.3}.shooting-score{font-size:24px}.shooting-score small{font-size:10px;margin-left:1px}
 .shooting-note{font-size:10px;line-height:1.3}.site-footer{font-size:10px;padding:8px 12px}
}
@media(max-width:360px){.shooting-score{font-size:20px}.shooting-rank{width:18px;font-size:13px}.shooting-name{font-size:14px}.shooting-score small{display:none}.brand{font-size:14px}.site-meta{font-size:10px}}
@media(max-width:900px) and (max-height:600px){.shooting-dept{display:none}.shooting-layout{height:auto;min-height:0}.shooting-row{min-height:36px}.shooting-heading p{display:none}}
@media(prefers-reduced-motion:reduce){.event-tab{transition:none}}
/* Three bottom entries, horizontal tournament waterfall and match drawer. */
body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
.event-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;max-width:none;margin:0;padding:8px max(12px,calc((100vw - 960px)/2)) calc(8px + env(safe-area-inset-bottom));gap:8px;background:rgba(11,18,32,.97);border-top:1px solid var(--bd);backdrop-filter:blur(16px)}
.event-tab{flex-direction:column;gap:3px;min-height:54px;padding:4px 12px;font-size:13px;border-color:transparent;border-radius:10px}
.event-tab svg{width:22px;height:22px}.event-tab[aria-selected=true]{border-color:#9a7326}.event-tab.shooting[aria-selected=true]{border-color:#b16a31}
.bracket-layout{max-width:1460px;margin:auto;padding:16px 20px 0}
.bracket-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.bracket-toolbar h1,.players-heading h1{font-size:22px;margin:0}.bracket-toolbar p,.players-heading p{font-size:12px;color:var(--fg-mute);margin:4px 0 0}
#zoom-toggle{min-height:44px;padding:8px 16px;border-radius:10px;border:1px solid #9a7326;background:#211b13;color:var(--gold);font:600 14px var(--txt);cursor:pointer}
.waterfall-help{font-size:12px;color:var(--fg-mute);margin:8px 0 12px}
.waterfall-viewport{height:calc(100dvh - 264px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:250px;width:100%;overflow:auto;background:#080d17;border:1px solid var(--bd);border-radius:16px;touch-action:none;overscroll-behavior:contain;cursor:grab;scrollbar-width:thin;scrollbar-color:#64748b #080d17}
.waterfall-viewport.dragging{cursor:grabbing;user-select:none}.waterfall-viewport.is-overview{cursor:zoom-in}
#waterfall-space{position:relative}#waterfall{position:absolute;transform-origin:top left}
.waterfall-wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.waterfall-wires path{fill:none;stroke:#826931;stroke-width:2}
.waterfall-column-title{position:absolute;top:0;margin:0;width:240px;font-size:18px;text-align:center;color:var(--gold)}
.waterfall-match{position:absolute;z-index:1;width:240px;height:108px;display:flex;flex-direction:column;padding:0;border:1px solid #3b4d6b;border-radius:10px;background:var(--surface);color:var(--fg);font-family:var(--txt);overflow:hidden;cursor:pointer;text-align:left;box-shadow:0 4px 16px #0003}
.waterfall-match:hover{border-color:var(--gold)}.waterfall-match:active{background:var(--surface-2)}
.waterfall-match-head{display:flex;justify-content:space-between;padding:5px 10px;background:var(--surface-2);color:var(--fg-mute);font-size:11px}
.waterfall-team{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 10px;flex:1;min-height:0;font-size:15px}.waterfall-team>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.waterfall-team b{font:700 25px var(--num)}.waterfall-team.winner{color:var(--gold);background:#fbbf2410}
.waterfall-champion{position:absolute;top:200px;width:240px;padding:18px;border:1px solid #9a7326;border-radius:14px;color:var(--gold);text-align:center;font-size:13px;background:#211b13}.waterfall-champion b{display:block;font-size:22px;margin-top:8px}.waterfall-medal-label{position:absolute;color:var(--fg-mute);font-size:14px;width:240px;text-align:center}
.players-layout{max-width:900px;margin:auto;padding:24px 20px}.players-heading{margin-bottom:20px}.players-layout .stat-tabs{gap:8px;margin-bottom:20px}.players-layout .stat-tabs button{min-height:44px}.players-layout .leader-list{gap:12px}.players-layout .leader-row{min-height:92px}.players-layout .stat-sub{font-size:12px;line-height:1.6;white-space:normal}
#match-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,94vw);height:100dvh;max-height:100dvh;max-width:none;padding:0;color:var(--fg);background:var(--surface);border:0;border-left:1px solid var(--bd);box-shadow:-12px 0 60px #0006;overflow-y:auto;overscroll-behavior:contain;z-index:50}
#match-drawer[open]{animation:drawer-in .2s ease-out}#match-drawer::backdrop{background:#020617b8;backdrop-filter:blur(3px)}
.drawer-open{overflow:hidden}.drawer-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(20px + env(safe-area-inset-top)) 20px 16px;background:var(--surface);border-bottom:1px solid var(--bd)}
.eyebrow{font-size:12px;color:var(--gold)}.drawer-header h2{font-size:20px;margin:4px 0 0}#drawer-close{flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--bd);border-radius:10px;color:var(--fg);background:var(--surface-2);font-size:28px;cursor:pointer}
#match-content{padding:16px 20px calc(24px + env(safe-area-inset-bottom))}.drawer-match-status{font-size:12px;color:var(--fg-mute);margin:0 0 16px}.drawer-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--bd);text-align:center;font-size:15px}.drawer-score b{font:700 32px var(--num);color:var(--gold)}.drawer-team{margin-top:24px}.drawer-team h3{font-size:16px;color:var(--gold);margin:0 0 12px}.drawer-team p{font-size:13px;color:var(--fg-mute)}.stats-table-wrap{overflow-x:auto}.drawer-team table{border-collapse:collapse;width:100%;font-size:13px;table-layout:fixed}.drawer-team th,.drawer-team td{padding:12px 4px;text-align:center;border-bottom:1px solid var(--bd)}.drawer-team th:first-child{width:30%;text-align:left}.drawer-team thead{color:var(--fg-mute);font-size:12px}.drawer-team tbody td{font:600 20px var(--num)}.drawer-team small{display:block;color:var(--fg-mute);font-size:10px;font-weight:400}
.shooting-layout{height:calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
@keyframes drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-width:900px){
 body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}.event-nav{padding-top:7px}.event-tab{font-size:12px;min-height:52px;padding:4px;gap:2px}.event-tab svg{width:21px;height:21px}
 .bracket-layout{padding:12px 12px 0}.bracket-toolbar h1,.players-heading h1{font-size:20px}.waterfall-viewport{height:calc(100dvh - 252px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:12px}.waterfall-help{font-size:11px}
 .players-layout{padding:16px 12px}.players-layout .leader-row{padding:12px 10px;gap:10px;min-height:84px}.players-layout .stat-tabs{gap:4px}.players-layout .stat-tabs button{padding:6px 12px}.players-layout .stat-sub{max-width:142px;font-size:11px}
 .shooting-layout{height:calc(100dvh - 158px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:410px}
 .drawer-header{padding-left:14px;padding-right:12px}.drawer-header h2{font-size:18px}#match-content{padding-left:14px;padding-right:14px}.drawer-score{font-size:13px;gap:8px}.drawer-team th:first-child{width:30%}
}
@media(max-height:600px){.shooting-layout{height:auto;min-height:0}.waterfall-viewport{height:55dvh;min-height:230px}}
@media(prefers-reduced-motion:reduce){#match-drawer[open]{animation:none}}

.bracket-actions{display:flex;gap:8px;flex-shrink:0}#carousel-toggle{min-height:44px;padding:8px 12px;border:1px solid var(--bd);border-radius:10px;background:var(--surface-2);color:var(--fg);font:500 13px var(--txt);cursor:pointer}
.waterfall-viewport{height:calc(100dvh - 280px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.shooting-layout{height:calc(100dvh - 196px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
@media(max-width:900px){.waterfall-viewport{height:calc(100dvh - 268px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.shooting-layout{height:calc(100dvh - 174px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.bracket-actions{gap:5px}#zoom-toggle,#carousel-toggle{font-size:12px;padding:8px}.bracket-toolbar h1{font-size:18px}}
@media(max-width:360px){.bracket-toolbar p{font-size:10px}}
@media(max-height:600px){.shooting-layout{height:auto;min-height:0}.waterfall-viewport{height:55dvh;min-height:230px}}

.waterfall-team small{display:block;font-size:10px;color:var(--fg-mute);line-height:1.1}.waterfall-team>span{line-height:1.2}
@media(max-width:900px) and (max-height:600px){
 .bracket-layout{padding:8px 12px 0}.bracket-toolbar p{display:none}.waterfall-help{margin:4px 0 8px}.waterfall-viewport{height:calc(100dvh - 240px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:110px}
}
