:root{color-scheme:dark;--bg:#070e1c;--card:#101d32;--line:#304565;--ink:#f3f6ff;--muted:#aebed6;--gold:#ffd05e;--blue:#8cbfff}
.avatar-preview{position:relative;width:96px;height:96px;border-radius:50%;overflow:hidden;background:#243d67;display:grid;place-items:center;color:#ffd05e;font-size:2rem;margin-bottom:16px}.avatar-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.avatar-preview img[hidden]{display:none}
.avatar-crop canvas{display:block;width:min(256px,100%);aspect-ratio:1;border-radius:50%;border:3px solid var(--gold);touch-action:none;cursor:grab}.avatar-crop canvas:active{cursor:grabbing}.avatar-crop input[type=range]{width:min(320px,100%)}
.admin-heading{padding:28px;border-left:5px solid var(--gold);background:linear-gradient(115deg,#173866,#0d1b33);margin-bottom:18px}.admin-heading p{margin:0;color:#c5d9f8}.admin-heading h1{margin:6px 0}.admin-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 32px}.admin-dashboard section{scroll-margin-top:20px}.album-placeholder{min-height:150px;display:grid;place-items:center;background:#17335c;color:#c7d8f0;font-weight:700}
.scoring-help{padding:16px 20px;border-left:4px solid var(--gold);background:#183661;margin:20px 0}.scoring-help p{margin:6px 0 0}.editor summary{display:inline-block;cursor:pointer;color:#10213d;background:#ffd05e;font-weight:700;padding:9px 15px;border-radius:4px;margin:10px 0}.editor summary:focus-visible{outline:3px solid white;outline-offset:3px}
.event-back{display:flex;gap:12px 24px;flex-wrap:wrap;margin:-8px 0 24px}.event-back a{color:#c3d9ff;font-weight:700;text-decoration:underline;text-underline-offset:5px}.score-groups{display:grid;gap:12px}.score-group{background:#101d32;border:1px solid #304565;border-radius:9px;overflow:hidden}.score-group>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 20px;background:#192e50;font-size:1.2rem;font-weight:800}.score-group>summary::-webkit-details-marker{display:none}.score-group>summary:after{content:'＋';color:#ffd05e}.score-group[open]>summary:after{content:'−'}.score-group>summary small{font-size:.8rem;color:#c1d0e6;font-weight:500;margin-left:auto}.group-content{padding:20px}.group-content h3{margin:8px 0 12px}.group-content h3:not(:first-child){margin-top:28px}.score-table{overflow-x:auto}.score-match{border:1px solid #304565;border-radius:7px;background:#0b172a;padding:14px 16px;margin:10px 0}.match-top{display:flex;justify-content:space-between;color:#aabdd8;font-size:.8rem}.match-versus{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:9px 0}.match-versus strong:last-child{text-align:right}.match-versus strong{overflow-wrap:anywhere}.match-score{color:#ffd05e;font-size:1.25rem;font-weight:800;white-space:nowrap}.score-match .editor summary{display:flex;align-items:center;justify-content:space-between;background:#20385d;border:1px solid #5676a3;color:white;margin:8px 0 0;padding:10px 14px}.score-match .editor[open] summary{border-color:#ffd05e}.score-panel{padding:14px 0 0}.score-panel>p{color:#aabdd8;margin:0 0 14px;font-size:.9rem}.score-player{margin:12px 0 18px}.score-player strong{display:block;margin-bottom:8px}.score-match .points{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.score-match .points button{padding:9px 0;min-width:0}.score-save{background:#ffd05e;color:#101c30;border-color:#ffd05e;width:100%}.score-save:hover{background:#ffe095}@media(max-width:480px){.group-content{padding:14px}.score-match{padding:12px}.match-versus{gap:6px;font-size:.9rem}.score-group>summary{padding:14px}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 "Microsoft JhengHei","Noto Sans TC",sans-serif}a{color:inherit;text-decoration:none}header,footer{padding:18px max(5vw,18px);display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}header{min-height:75px}.brand{font-weight:900;white-space:nowrap;font-size:1.2rem}nav,.actions,.points{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}nav a:hover{color:var(--gold)}main{min-height:70vh}[data-enter]{animation:enter .65s ease-out both}@keyframes enter{from{opacity:0;translate:0 12px}}
.button,button{display:inline-block;border:1px solid #50678c;padding:9px 15px;border-radius:5px;background:#152540;color:var(--ink);font:inherit;font-weight:700;cursor:pointer;transition:translate .16s,background .16s}.button:hover,button:hover{translate:0 -2px;background:#253e65}.button:active,button:active{translate:0 1px}.gold,button.selected{background:var(--gold);color:#111b2a;border-color:var(--gold)}.gold:hover,button.selected:hover{background:#ffe095}button:disabled{opacity:.5;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:4px}.page{max-width:1220px;margin:auto;padding:50px 5vw 80px}.page h1{font-size:clamp(32px,6vw,65px);margin:0 0 24px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:18px}.card{background:var(--card);border:1px solid var(--line);padding:22px;border-radius:8px;margin-bottom:16px}.card h2,.card h3{margin:0 0 10px}.muted{color:var(--muted)}.status{color:var(--gold);font-weight:750}.form{display:grid;gap:14px;max-width:680px}label{display:grid;gap:4px}input,select{width:100%;min-width:0;padding:9px;border:1px solid var(--line);border-radius:5px;background:#091426;color:var(--ink);font:inherit}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:7px;border-bottom:1px solid var(--line)}.match{border-top:1px solid var(--line);padding:12px 0}.points{gap:5px}.points button{padding:6px 10px}.notice{position:sticky;bottom:0;background:#262e46;padding:12px;border-radius:6px}.notice:empty{display:none}footer{border-top:1px solid var(--line);border-bottom:0}footer img{width:min(180px,42vw);height:auto;background:#fff;padding:5px}
@media(max-width:760px){header{flex-wrap:wrap}nav{order:3;width:100%;gap:8px 14px;font-size:.9rem}.page{padding-top:30px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}


header {
  position:relative;
  z-index:1;
  background:#081222;
  border-bottom:2px solid #327fff;
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
}
.brand::before {
  content:"";
  width:16px;
  height:23px;
  background:#ffd05e;
  clip-path:polygon(37% 0,100% 0,64% 40%,99% 40%,14% 100%,35% 55%,0 55%);
}
.hero {
  background:#0a1830;
  border-bottom:1px solid #263d61;
  overflow:hidden;
}
.hero-art {
  position:relative;
  display:grid;
  place-items:center;
  background:#0d1b35;
}
.hero-art img {
  display:block;
  width:100%;
  max-height:calc(100svh - 230px);
  object-fit:contain;
}
.hero-copy {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:24px max(5vw,18px) 30px;
  background:linear-gradient(120deg,#0d1d36 35%,#172f5c 100%);
  border-top:3px solid #ffd05e;
}
.hero-copy h1 {
  margin:0;
  font-size:clamp(31px,4.5vw,59px);
  font-weight:950;
  line-height:1.12;
  letter-spacing:.02em;
}
.hero-copy p {
  margin:8px 0 0;
  color:#c4d7f6;
  font-weight:700;
}
.hero-copy .button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:48px;
  padding-inline:21px;
  border-radius:0;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);
}
.hero-copy .button:focus-visible {
  outline-offset:-4px;
  outline-color:#fff;
}
.home-events {
  padding-top:44px;
}
.home-events h2 {
  margin:0 0 23px;
  font-size:clamp(27px,4vw,41px);
  line-height:1.1;
  padding-left:15px;
  border-left:5px solid var(--gold);
}
.home-events .card {
  border-top:3px solid #4c93ff;
}
@media(max-width:600px){
  .hero-art img {
    width:100%;
    height:auto;
    max-height:none;
  }
  .hero-copy {
    align-items:flex-start;
    flex-direction:column;
    padding-block:21px 26px;
    gap:17px;
  }
  .hero-copy .actions {gap:8px}
  .hero-copy .button {padding-inline:13px}
  .home-events {padding-top:32px}
}

/* 首頁以現有道館主視覺及真實賽事資料建立比賽版面。 */
.hero {position:relative; display:grid; background:#07142b; border:0; overflow:hidden}
.hero-art {grid-area:1/1; min-height:560px; overflow:hidden}
.hero-art::after {content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(2,10,27,.82),rgba(3,14,38,.28) 49%,rgba(3,14,38,.08)),linear-gradient(0deg,#061126 0%,transparent 58%); pointer-events:none}
.hero-art img {width:100%; height:100%; min-height:560px; max-height:none; object-fit:cover; object-position:center}
.hero-copy {grid-area:1/1; z-index:1; align-self:end; display:block; width:100%; padding:90px max(5vw,24px) 52px; background:transparent; border:0}
.hero-copy h1 {font-size:clamp(48px,7.8vw,112px); line-height:.97; letter-spacing:-.05em; text-shadow:0 4px 22px #020b1c; font-weight:950}
.hero-copy .hero-kicker {display:inline-block; margin:0 0 17px; padding:5px 12px; background:#ffcf4b; color:#101c32; font-size:13px; font-weight:900; letter-spacing:.1em}
.hero-copy .hero-description {margin:20px 0 25px; color:#f0f6ff; font-size:clamp(16px,1.5vw,20px); text-shadow:0 2px 10px #000}
.hero-copy .button {border-radius:2px; min-height:51px; padding:12px 22px}
.hero-copy .button:not(.gold) {background:rgba(9,23,48,.8); border-color:#a4c4f5}
.home-inner {width:min(1180px,90%); margin:auto}
.home-events,.home-history {padding:78px 0 85px}
.home-events {background:linear-gradient(135deg,#f3f7ff,#daeafa); color:#0b2042}
.home-history {background:#0b1932; color:#fff}
.section-heading {display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:28px}
.section-kicker {margin:0 0 8px; font-size:13px; font-weight:850; letter-spacing:.13em; color:#1766ad}
.home-history .section-kicker {color:#8cbbff}
.section-heading h2 {margin:0; font-size:clamp(38px,6vw,66px); line-height:1.05; letter-spacing:-.04em; border:0; padding:0}
.section-heading h2 span {color:#167cf2}
.home-history h2 span {color:#ffd05e}
.section-link {font-weight:800; white-space:nowrap; border-bottom:2px solid #3788df; padding-bottom:5px}
.home-card-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:18px}
.event-card {position:relative; display:flex; flex-direction:column; justify-content:space-between; min-height:310px; overflow:hidden; padding:26px; color:#fff; background:linear-gradient(140deg,#112b56,#071327); border-bottom:4px solid #37a2ff; clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,0 100%); transition:transform .2s}
.event-card:hover {transform:translateY(-3px)}
.event-card::before {content:""; position:absolute; right:-40px; top:-45px; width:200px; height:200px; border:25px solid rgba(80,164,255,.08); transform:rotate(45deg); pointer-events:none}
.event-card-top {display:flex; justify-content:space-between; align-items:start}
.event-tag {background:#ffd05e; color:#0a1b36; padding:5px 10px; font-size:13px; font-weight:900}
.event-mark {color:#79bcff; font-size:28px}
.event-card h3 {font-size:clamp(24px,2.4vw,34px); line-height:1.2; margin:28px 0 8px}
.event-card p {color:#d0e1f8; margin:0}
.event-meta {display:flex; gap:25px; border-top:1px solid #3c577a; margin-top:20px; padding-top:13px; font-size:13px; color:#a6bddc}
.event-meta strong {display:block; font-size:16px; color:white}
.event-action {display:flex; justify-content:space-between; align-items:center; margin-top:20px; font-weight:800; color:#ffe18a}
.empty-panel {padding:32px; border:1px solid #a9c7e7; border-left:5px solid #1783e7; background:rgba(255,255,255,.56)}
.empty-panel strong {font-size:23px}
.empty-panel p {margin:8px 0 15px; color:#47607c}
.empty-panel a {font-weight:800; text-decoration:underline; text-underline-offset:4px}
.history-empty {border-color:#324d70; border-left-color:#ffd05e; background:#132744}
.history-empty p {color:#b4c5dd}
.history-list a {display:grid; grid-template-columns:180px 1fr auto; gap:16px; align-items:center; border-top:1px solid #435674; padding:20px 4px}
.history-list a:last-child {border-bottom:1px solid #435674}
.history-list a:hover strong {color:#ffd05e}
.history-list span:first-child {color:#b2c5e0}
.history-list strong {font-size:21px}
.home-join {padding:65px 0 75px; background:#173f85; background-image:linear-gradient(115deg,#155bb5,#0d2e68 65%,#0b2048); color:white}
.home-join h2 {font-size:clamp(32px,5vw,56px); line-height:1.15; margin:0 0 10px}
.home-join p {margin:0 0 24px; color:#d6eaff}
.home-join .button {padding:12px 20px}
@media(max-width:760px) {
 .hero-art,.hero-art img {min-height:500px}
 .hero-art img {object-position:32% center}
 .hero-art::after {background:linear-gradient(0deg,#061126 3%,rgba(3,12,30,.78) 32%,rgba(3,12,30,.08) 83%)}
 .hero-copy {padding:230px 5vw 32px}
 .hero-copy h1 {font-size:clamp(44px,11vw,76px)}
 .home-events,.home-history {padding:54px 0}
 .section-heading {align-items:flex-start; flex-direction:column; gap:15px}
 .history-list a {grid-template-columns:1fr auto}
 .history-list span:first-child {grid-column:1/-1; font-size:13px}
}
@media(min-width:761px){
 .hero-art::after {background:linear-gradient(90deg,rgba(2,10,27,.83) 0%,rgba(3,14,38,.48) 32%,rgba(3,14,38,.04) 72%),linear-gradient(0deg,rgba(6,17,38,.65),transparent 55%)}
}
@media(max-width:760px){
 .hero-art::after {background:linear-gradient(0deg,#061126 3%,rgba(3,12,30,.76) 30%,rgba(3,12,30,.03) 75%)}
}
/* Keep the entire supplied banner visible on every screen size. */
.brand::before {content:none}
.brand {gap:5px}
.brand-emblem {display:block; width:62px; height:48px; overflow:hidden; flex:none}
.brand-emblem img {display:block; max-width:none; width:140px; height:auto}
.brand-name {font-size:1.08rem; font-weight:950; color:#fff; letter-spacing:.04em; text-shadow:0 1px 0 #357dff}
.hero {display:block}
.hero-art {display:block; min-height:0; background:#0a1d3c}
.hero-art img {width:100%; height:auto; min-height:0; max-height:none; object-fit:contain}
.hero-art::after {display:none}
.hero-copy {display:flex; align-items:center; justify-content:space-between; gap:24px; padding:30px max(5vw,24px) 36px; background:linear-gradient(110deg,#08162b,#15356d); border-top:3px solid #ffd05e}
.hero-copy h1 {font-size:clamp(32px,5vw,64px); letter-spacing:-.02em}
.hero-copy h1 br {display:none}
.hero-copy .hero-kicker {margin:0 0 10px}
.hero-copy .hero-description {margin:12px 0 0}
.hero-copy .actions {justify-content:flex-end}
.home-visuals {padding:72px 0; background:#ecf3fc; color:#0b2042}
.home-visuals p:not(.section-kicker) {color:#53687d}
.visual-grid {display:grid; grid-template-columns:minmax(0, 700px); gap:16px}
.visual-grid img {display:block; width:100%; height:clamp(220px,28vw,360px); object-fit:cover; background:#112647}
.photo-credit {font-size:12px; color:#b2c5df; max-width:660px}
.photo-credit a {text-decoration:underline}
.home-albums {padding:78px 0 85px; background:#ecf3fc; color:#0b2042}
.album-grid, .photo-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:16px}
.album-card {display:block; overflow:hidden; background:#102747; color:white; border-bottom:3px solid #278bea; transition:transform .2s}
.album-card:hover {transform:translateY(-3px)}
.album-card img, .photo-grid img {display:block; width:100%; height:auto; background:#142540}
.album-card div {display:grid; gap:5px; padding:16px}
.album-card span {font-size:13px; color:#c0d1e7}
.photo-grid {margin-top:20px}
.admin-photos button {margin-top:8px}
.album-manager summary {font-size:18px; font-weight:800; cursor:pointer}
.album-upload {margin:20px 0}
.album-upload .muted {margin:0}
@media(max-width:760px){
 header {padding-block:10px}
 .brand-emblem {width:52px; height:40px}
 .brand-emblem img {width:117px}
 .hero-art,.hero-art img {min-height:0}
 .hero-copy {display:block; padding:23px 5vw 30px}
 .hero-copy h1 {font-size:clamp(32px,7vw,52px)}
 .hero-copy .actions {justify-content:flex-start; margin-top:20px}
 .visual-grid {grid-template-columns:1fr}
 .visual-grid img {height:260px}
 .home-visuals {padding:54px 0}
 .home-albums {padding:54px 0}
}

/* 隆亨道館：賽場藍、勝利金與清晰的操作層次 */
:root{--bg:#071327;--card:#101f39;--line:#34547c;--ink:#f7faff;--muted:#b7c9e3;--gold:#ffd35d;--blue:#7ec3ff}
body{font-family:"Noto Sans TC","Microsoft JhengHei","PingFang TC",sans-serif;background:radial-gradient(ellipse at 85% 3%,#163869 0,transparent 34rem),var(--bg)}
header{position:relative;z-index:2;background:#07152b;border-bottom:2px solid #286cb3;box-shadow:0 8px 30px #020a1890}
header nav a{font-weight:700;color:#d6e6fb;transition:color .2s}header nav a:hover{color:#ffd35d}
.brand-name{font-weight:900;letter-spacing:.08em;font-size:1.2rem;text-shadow:2px 2px 0 #1a579d}
.button,button{border-radius:4px;font-weight:800}.button.gold,.gold{box-shadow:0 4px 0 #bd8124}
.hero{background:#08172d}.hero-art{position:relative;overflow:hidden}.hero-art img{animation:arena-reveal .8s ease-out both}.hero-art:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(115deg,transparent 47%,#bde9ff24 49%,transparent 51%);pointer-events:none;animation:arena-flash 1.2s ease-out both}
.hero-copy{border-top:4px solid #ffd35d;background:linear-gradient(110deg,#08172d,#123e78);padding-block:36px 42px}.hero-copy h1{font-weight:950;letter-spacing:.02em;text-shadow:3px 4px 0 #174b87}.hero-kicker{box-shadow:4px 4px 0 #2469af}
.home-events,.home-albums{background:#e9f2fc}.home-events,.home-history,.home-albums{padding-block:86px}.home-inner{max-width:1280px}.section-heading h2{font-weight:950;letter-spacing:.02em}.section-kicker{font-weight:800}
.event-card{position:relative;overflow:hidden;border:1px solid #3966a1;border-bottom:5px solid #339cf7;box-shadow:8px 8px 0 #a9c6ea}.event-card:before{content:"";position:absolute;width:250px;height:250px;right:-75px;top:-100px;border:30px double #75b8ff18;border-radius:50%;pointer-events:none}.event-card h3{font-size:clamp(1.4rem,2.6vw,2rem)}
.history-list a{transition:background .2s,padding .2s}.history-list a:hover{background:#18365c;padding-inline:12px}.album-card{border:1px solid #365987;border-bottom:4px solid #ffcf51;box-shadow:6px 6px 0 #b9cee8}
.home-join{border-top:4px solid #ffd35d;background:linear-gradient(110deg,#1755a5,#0b1d40)}
.page{max-width:1220px}.page>h1{font-weight:950;letter-spacing:.025em;line-height:1.15;text-shadow:3px 3px 0 #1e5089}.page>h1:after{content:"";display:block;width:72px;height:5px;background:#ffd35d;margin-top:14px;transform:skewX(-22deg)}
.card{background:linear-gradient(145deg,#142946,#0d1b32);border:1px solid #355980;box-shadow:0 8px 24px #020a1738}.card h2,.card h3{letter-spacing:.015em}.card summary{cursor:pointer}.grid>.card{border-top:3px solid #ffcf51}
.status{display:inline-block;color:#ffdc78}.form input:focus,.form select:focus{border-color:#85c6ff}.form button,.form .button{min-height:44px}.notice:not(:empty){border-left:4px solid #ffd35d}
.admin-heading{border-left:6px solid #ffd35d;background:linear-gradient(110deg,#123d72,#0c1c36);box-shadow:7px 7px 0 #28578b}.admin-shortcuts button{background:#17365e;border-color:#5585ba}.admin-shortcuts button:hover{background:#245185}
.score-group>summary{background:linear-gradient(100deg,#1d4778,#172d4c)}.score-match{border-left:3px solid #4da6ef}.score-match .editor summary:hover{background:#2a4e7e}.score-match .points button{min-height:44px}.referee-entry{padding:17px 20px;border:1px solid #416b99;border-left:4px solid #ffd35d;background:#122a49;margin:22px 0}.referee-entry a{color:#ffdc78;text-decoration:underline;text-underline-offset:4px}
@keyframes arena-reveal{from{opacity:.4;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}@keyframes arena-flash{from{opacity:1;transform:translateX(-50%)}to{opacity:0;transform:translateX(50%)}}
@media(max-width:760px){header nav{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;padding:4px 0 9px;gap:18px}header nav a{flex:none}header nav:focus-within{outline:1px solid #7ec3ff}.hero-copy{padding-block:26px 32px}.hero-copy .actions{gap:10px}.hero-copy .actions .button{flex:1;text-align:center;min-width:140px}.home-events,.home-history,.home-albums{padding-block:58px}.page{padding-inline:18px}.admin-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.admin-shortcuts button{padding:10px 5px;font-size:.9rem}.score-match .points{gap:4px}.score-match .points button{min-height:44px;font-size:1rem}}
@media(prefers-reduced-motion:reduce){.hero-art img,.hero-art:before{animation:none!important}.album-card img{transition:none!important}}
@media(max-width:760px){.hero-copy .actions .button{font-size:.88rem;padding:12px 8px;white-space:nowrap}}
.form textarea{width:100%;resize:vertical;min-width:0;padding:10px;border:1px solid var(--line);border-radius:5px;background:#091426;color:var(--ink);font:inherit}.form textarea:focus-visible{outline:2px solid var(--blue);outline-offset:4px}.event-poster{display:block;max-width:min(100%,540px);max-height:700px;object-fit:contain;border-radius:8px;margin:20px 0}.event-card-poster{display:block;width:100%;max-height:320px;object-fit:contain;background:#08162a;border-radius:5px;margin-bottom:14px}.event-info{max-width:760px;background:#122745;border-left:4px solid var(--gold);padding:14px 20px;margin:18px 0}.event-info h2{font-size:1.2rem;margin:0 0 6px}.event-info p{white-space:pre-wrap;margin:0}
.profile-check{display:flex;align-items:flex-start;gap:10px}.profile-check input{width:auto;margin-top:7px}.player-card{display:flex;gap:18px;align-items:center}.player-card .avatar-preview{width:72px;height:72px;flex:none;margin:0}.player-card h2{font-size:1.25rem}.player-card p{margin:4px 0;color:var(--muted)}
.brand-logo{display:block;width:clamp(150px,17vw,210px);height:auto;max-width:100%;object-fit:contain}.brand{flex:none}@media(max-width:760px){.brand-logo{width:165px;max-width:48vw}}

.admin-roster{max-width:760px}
.admin-roster [data-roster-count]{margin:12px 0}
.roster-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.roster-list>li{border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.roster-list>li>strong{display:block;padding:8px 10px}
.roster-list>li>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:6px 10px;cursor:pointer;list-style:none}
.roster-list>li>details>summary::-webkit-details-marker{display:none}
.roster-list summary>span{color:var(--blue);font-size:.875rem;white-space:nowrap}
.roster-list summary>span::after{content:' ▾'}
.roster-list details[open]>summary>span::after{content:' ▴'}
.roster-list summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.roster-row-actions{padding:0 10px 12px}
.roster-pagination{margin-top:14px}
.roster-pagination[hidden]{display:none}

.event-apply{width:min(100%,420px);margin:18px 0 26px}
.event-apply .event-apply-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;padding:12px 20px;font-size:1.35rem;font-weight:900;text-align:center}
.event-apply .event-apply-button:hover{background:#ffe095}
.event-apply p{margin:10px 0 0;font-size:.9rem}

.roster-group-tag{display:inline-block;min-width:3.2em;margin-inline-end:6px;padding:1px 7px;border-radius:4px;background:#223b62;color:#e0edff;font-size:.85rem;text-align:center;white-space:nowrap}

.podium-decks{display:grid;gap:12px;list-style:none;padding:0}
.podium-decks>li{padding:14px 18px;border:1px solid var(--line);background:var(--card);border-radius:5px}
.podium-decks summary{cursor:pointer;padding-block:8px;color:var(--blue);font-weight:700}
.podium-decks form{margin-top:10px}
.deck-editor fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--line);display:grid;gap:8px}
.deck-editor [hidden]{display:none}
.deck-editor p{margin:0}
.deck-combos li{margin-block:10px}
.deck-part-pictures{display:flex;flex-wrap:wrap;gap:10px}
.deck-part-picture{display:inline-grid;justify-items:center;gap:4px;margin-block:5px;padding:6px;border:1px solid var(--line);border-radius:4px;font-size:.8rem}
.deck-part-picture img{display:block;width:84px;height:84px;object-fit:contain}
.deck-part-picture img[hidden]{display:none}
.deck-part-picture a{color:var(--blue);text-decoration:underline}

.podium-player{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.podium-player .podium-avatar{flex:none;width:36px;height:36px}
.race-places .podium-avatar{width:25px;height:25px;font-size:.75rem}

.blade-rank summary { cursor: pointer; padding-block: 6px; }
.blade-rank summary > span { display: inline-block; vertical-align: middle; }
.blade-rank summary .deck-part-picture { margin-inline-end: 12px; }
.blade-rank summary img { width: 56px; height: 56px; object-fit: contain; }
.blade-rank summary small { display: block; }
.blade-rank li + li { margin-top: 12px; }

.deck-part-field > button { margin-block: 6px; min-height: 44px; }
.deck-picker { box-sizing: border-box; width: min(560px, calc(100% - 24px)); max-height: 90dvh; padding: 16px; color: var(--ink); background: #0e1b30; border: 1px solid var(--line); border-radius: 8px; }
.deck-picker::backdrop { background: #050a14cc; }
.deck-picker header { position: static; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; margin-bottom: 12px; background: none; border: 0; }
.deck-picker h2 { margin: 0; font-size: 1.15rem; }
.deck-picker input { font-size: 16px; }
.deck-picker-list { display: grid; gap: 8px; max-height: min(52dvh, 420px); overflow-y: auto; overscroll-behavior: contain; margin-top: 12px; padding: 4px; }
.deck-picker button, .score-shortcuts button { min-height: 44px; }
.deck-picker-list button { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; text-align: left; }
.deck-picker-list button small { display: block; font-weight: 400; overflow-wrap: anywhere; }
.deck-picker-thumbnail { display: grid; place-items: center; width: 64px; height: 64px; }
.deck-picker-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.score-shortcuts { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; background: #0e1b30; border-block: 1px solid var(--line); padding: 8px; margin-block: 16px; }
.score-shortcuts:empty { display: none; }
.score-shortcuts button { flex: none; }
.score-jump-target { scroll-margin-top: 128px; }

.favorite-deck{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;list-style:none}
.favorite-deck > li{min-width:0;padding:clamp(8px,2vw,18px);overflow-wrap:anywhere}
.favorite-deck ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,64px),1fr));gap:8px;padding:0;list-style:none}
.favorite-deck ul li{display:grid;justify-items:center;text-align:center;font-size:.8rem}
.favorite-deck .deck-part-picture img{width:min(100%,64px);height:auto;aspect-ratio:1}
.deck-card-preview img{display:block;width:auto;max-width:100%;max-height:65dvh;margin:0 auto 12px}
.registration-success{padding:16px 20px;margin:16px 0;background:#123c3a;border-left:4px solid #7de1a8}.registration-success strong{font-size:1.25rem;color:#a7f4c4}.registration-success p{margin:5px 0}.account-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.account-tabs button[aria-pressed="true"]{background:#ffdc5c;color:#091426;border-color:#ffdc5c}.admin-settings{border-top:1px solid #395984;padding:12px 0}.admin-settings>summary{font-weight:700;color:#ffdc5c}.admin-settings details{margin:10px 0 10px 12px}.pending-matches{margin:24px 0}.pending-matches .card{margin-bottom:10px}[hidden]{display:none!important}
