:root{color-scheme:dark;--bg:#17151e;--card:#221f2c;--line:#383141;--ink:#eeeaf3;--muted:#a49bab;--accent:#c2a1ed;--red:#eda4ae;--blue:#9fbce6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 '맑은 고딕','Malgun Gothic',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,.button,.file-button{border:1px solid #4a3e58;border-radius:9px;padding:8px 13px;background:#302838;color:var(--ink);cursor:pointer;text-decoration:none;display:inline-block;transition:.15s}button:hover,.button:hover{background:#43344e;border-color:var(--accent)}button:disabled{opacity:.45;cursor:wait}button.primary{background:var(--accent);color:#271b35;font-weight:800;border-color:var(--accent)}button.primary:hover{background:#d4b8f8}button.help{border-radius:50%;width:24px;height:24px;padding:0;margin-left:auto}input,select,textarea{background:#1a1721;border:1px solid #494052;color:var(--ink);border-radius:7px;padding:8px;max-width:100%}input[type=checkbox]{accent-color:#bc9be5;width:16px;height:16px;cursor:pointer}input:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}textarea{width:100%}h1,h2,h3,p{margin:0}h1{font-size:26px;margin-top:6px;letter-spacing:-1px}h3{font-size:18px}p{margin:10px 0;color:#b9afc3}small,.muted{color:var(--muted);font-size:12px}.eyebrow{font-size:10px;letter-spacing:2px;color:#b69bcf;font-weight:800}.rail{width:212px;position:fixed;inset:0 auto 0 0;background:#1d1925;border-right:1px solid var(--line);padding:35px 20px;display:flex;flex-direction:column}.brand{color:#e4d4f7;text-decoration:none;font:26px/1 Georgia,serif;letter-spacing:3px;padding:0 12px}.brand>span{float:left;font-size:50px;margin-right:8px}.brand small{font:9px/3 system-ui;letter-spacing:2px}nav{margin-top:65px;display:grid;gap:12px}nav button{background:transparent;border:0;text-align:left;padding:13px 16px;color:#ac9cbb}nav button span{margin-left:10px}nav button.active{background:#382b46;color:#dfc5fc;border-left:3px solid #c2a1ed}.rail-bottom{margin-top:auto;font-size:11px;color:#b8aac4}.dot{display:inline-block;width:6px;height:6px;background:#a0c4b0;border-radius:50%;margin-right:5px}main{margin-left:212px;padding:32px 36px;max-width:1920px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.sync{display:flex;gap:12px;align-items:center;font-size:11px;color:#b5a5c2}.hero{position:relative;overflow:hidden;min-height:232px;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(ellipse at 70% 20%,#453055 0%,#2c2339 38%,#292130 80%);border:1px solid #594065;border-radius:16px;padding:30px 40px;margin-bottom:24px}.pill{display:inline-block;font-size:10px;border:1px solid #5a4469;border-radius:20px;padding:4px 10px;color:#d3b6ed;letter-spacing:1px}h2{font-size:29px;line-height:1.45;letter-spacing:-1px;margin-top:15px}h2 em{font-style:normal;color:#cfb2eb}.hero p{font-size:12px}.moon{position:absolute;left:51%;top:-95px;font:360px/1 Georgia;color:#b695c829;transform:rotate(-20deg);pointer-events:none}.moon i{position:absolute;font-size:55px;left:90px;top:160px;color:#d8b4ef50}.hero-count{position:relative;text-align:center;min-width:185px}.hero-count strong{font:64px/1 Georgia;color:#e9d6fa}.hero-count strong span{font:22px Georgia;color:#a38caf}.hero-count button{margin-top:8px}.workspace{display:grid;grid-template-columns:1.05fr 1fr;gap:24px}.card{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:22px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.card-head small{margin-left:8px}.toolbar{display:flex;gap:8px}.toolbar input{flex:1;min-width:50px}.legend{display:flex;align-items:center;gap:8px;margin:14px 0}.kind{display:inline-block;font-size:10px;border-radius:5px;padding:3px 6px}.k0{background:#4d3d62;color:#e3c5ff}.k1{background:#294845;color:#add9ca}.k2{background:#4c3f2d;color:#e2c399}.k3{background:#35313b;color:#b7aebd}.k4{background:#482a36;color:#e29caa;text-decoration:line-through}.table-scroll{overflow:auto;max-height:520px;scrollbar-color:#6d567f #211c29}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}th{color:#a99ab7;font-weight:500;font-size:11px;background:#221f2c;position:sticky;top:0;text-align:left}td,th{padding:12px 8px;border-bottom:1px solid #352e3d}td .kind{margin:1px;cursor:pointer;border:1px solid transparent;padding:4px 5px}td .kind.disabled{opacity:.3;border-style:dashed;border-color:#8b6b8c}td select{padding:3px;font-size:11px;max-width:60px}.selected-row{background:#2d2538}.name{font-weight:700}.group1{color:#f499a4}.group2{color:#8cd5ab}.group3{color:#90b7f5}.empty{padding:45px 12px;text-align:center;color:#ad9cbb}.empty strong{font-weight:500;font-size:16px;color:#d0c1db}.empty button{margin:8px}.result-empty{padding:65px 10px}.sigil{font:70px Georgia;color:#9f7cbd;margin-bottom:20px}.wide{width:100%}#choices{width:100%;margin-bottom:15px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.metric{background:#1b1823;border-radius:8px;text-align:center;padding:10px;font-size:11px;color:#ab98bd}.metric strong{font-size:19px;display:block;color:#e5d8ef}.teams-head{display:flex;justify-content:space-around;margin:20px 0 8px;font:11px system-ui;letter-spacing:2px}.teams-head span:first-child{color:var(--blue)}.teams-head span:last-child{color:var(--red)}.team-row{display:grid;grid-template-columns:1fr 35px 1fr;align-items:center;gap:7px;margin:8px 0}.team-player{text-align:left;display:flex;justify-content:space-between;align-items:center;padding:10px;background:#252631;border-color:#3c4254}.team-player.red{background:#30242c;border-color:#503943}.team-player b{display:block;font-size:13px}.team-player small{font-size:10px}.team-player.pick{outline:2px solid #dec4fd}.role-label{font-size:10px;text-align:center;color:#a697b3}.bad{color:#ff8eaa!important}.bad-border{border-color:#e37390!important}.totals{display:flex;justify-content:space-between;padding:14px;background:#191721;border-radius:8px;margin-top:14px;font-size:13px}.confirmed{margin-top:20px;border:1px solid #6c5179;border-radius:10px;padding:15px;background:#302538}.confirmed input{width:60px}.confirmed button{margin:5px}.record{padding:18px 0;border-bottom:1px solid var(--line)}.record-head{display:flex;justify-content:space-between;align-items:center}.record.cancelled{opacity:.45}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid label{display:block;margin:13px 0}.settings-grid label input:not([type=checkbox]){display:block;width:100%;margin-top:5px}.settings-grid button,.settings-grid .button{margin:6px 4px 0 0}.settings-grid p{font-size:12px}.vote{display:flex;align-items:center;justify-content:space-between;padding:15px;border-bottom:1px solid var(--line)}footer{display:flex;justify-content:space-between;margin-top:30px;font-size:10px;color:#857590;letter-spacing:1px}#notice:not(:empty){padding:12px 16px;background:#37283f;border:1px solid #705280;border-radius:9px;margin-bottom:18px}dialog{background:#241e2e;color:var(--ink);border:1px solid #705280;border-radius:14px;width:min(700px,95vw);max-height:90vh;padding:25px}dialog::backdrop{background:#09060fc9}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}dialog label{display:block;margin:12px 0}dialog input{width:100%}dialog .edit-row{display:grid;grid-template-columns:70px 100px 1fr;gap:10px;align-items:center;margin:10px 0}dialog button{margin-top:12px}[hidden]{display:none!important}@media(min-width:1600px){main{padding:40px 55px}.hero{min-height:255px}.table-scroll{max-height:650px}}@media(max-width:1150px){.rail{width:175px;padding:25px 10px}main{margin-left:175px;padding:25px 20px}.workspace{grid-template-columns:1fr}.hero{padding:25px}.sync{display:block;text-align:right}}@media(max-width:650px){.rail{position:static;width:100%;padding:15px}.brand{font-size:20px}.brand>span{font-size:35px}.brand small{font-size:8px}nav{display:flex;overflow:auto;margin-top:18px;gap:4px}nav button{white-space:nowrap;padding:8px;font-size:11px}nav button span{margin:3px}.rail-bottom{display:none}main{margin:0;padding:20px 12px}header{align-items:start}h1{font-size:20px}.sync{font-size:9px}.sync button{font-size:10px}.hero{padding:20px;min-height:215px}h2{font-size:22px}.hero-count{min-width:120px}.hero-count strong{font-size:44px}.hero-count button{font-size:11px}.hero p{font-size:10px}.moon{left:40%;opacity:.5}.settings-grid{grid-template-columns:1fr}.card{padding:16px}.card-head button{font-size:11px}.metrics{gap:4px}.metric{font-size:10px}.metric strong{font-size:17px}footer{display:block}.table-scroll{max-height:470px}}

.vote-badge{display:inline-block;white-space:nowrap;padding:4px 9px;border:1px solid;border-radius:7px;font-weight:700;font-size:12px}.vote-yes{color:#b0f1cf;background:#193b30;border-color:#438e6e}.vote-no{color:#ffc0ca;background:#43242d;border-color:#9d5262}.vote-late{color:#ffe0a3;background:#44371f;border-color:#9b8046}.vote-none{color:#c6bfce;background:#302b37;border-color:#645c70}#roster input[type=checkbox]{width:20px;height:20px}#roster .selected-row{background:#352c43}

.profile-link{background:transparent;border:0;padding:2px;color:#dfc5fc;text-decoration:underline;text-underline-offset:4px}.profile-hero{padding:18px 0}.title-chips{display:flex;flex-wrap:wrap;gap:8px}.title-chip{background:#463459;color:#f0d9ff;border:1px solid #806092;border-radius:20px;padding:5px 12px}.profile-stats{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.profile-stats>div{flex:1;min-width:65px;background:#2e2638;border-radius:10px;padding:12px}.profile-stats strong{display:block;font-size:18px}.profile-notes{max-height:240px;overflow:auto}.profile-notes article{border-bottom:1px solid var(--line);padding:8px 0}.note-form{margin-top:16px}.note-form label{display:block;margin:8px 0}.note-form input{display:block;width:100%}#publicProfile{width:min(660px,94vw);max-height:90vh;overflow:auto}#titlesList .record-head{gap:12px;flex-wrap:wrap}
/* WEB 0.8: consistent archive layout and readable controls */
:root{color-scheme:dark}body{font-size:15px;line-height:1.65}p{line-height:1.75}main{min-width:0}section>.card{margin-bottom:20px}.rail nav{overflow-y:auto;max-height:calc(100dvh - 210px)}.rail nav button{min-height:42px}th{white-space:nowrap;font-size:13px}td{font-size:14px}th button{font-weight:700}button,a.button,input,select{min-height:40px}.toolbar{flex-wrap:wrap;align-items:end;gap:12px}.toolbar label{display:flex;flex-direction:column;gap:4px;font-size:13px}.toolbar input[type=checkbox]{min-height:auto}.toolbar label:has(input[type=checkbox]){flex-direction:row;align-items:center}.toolbar input[type=number]{width:90px}.toolbar input[name=patch]{width:160px}.dashboard-links{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.dashboard-links a{flex:1;min-width:140px;text-align:center}.table-scroll{overscroll-behavior-x:contain}dialog{max-width:min(1240px,94vw);max-height:90dvh;width:fit-content;min-width:min(500px,94vw)}dialog td input{width:90px}dialog td select{max-width:170px}dialog td label{display:inline-flex;flex-direction:column;font-size:11px}.profile-stats>div{min-width:110px}.profile-stats strong{display:block}.title-chip small{font-weight:400;color:#d9cbed}#tab-replays .card>p{overflow-wrap:anywhere}.bad{color:#ff9ba4}button:focus-visible,a:focus-visible{outline:2px solid #e4bbff;outline-offset:3px}@media(max-width:800px){.rail nav{display:flex;flex-wrap:wrap;max-height:none;gap:4px}.rail nav button{flex:1 0 100px;padding:7px;font-size:13px}.rail nav a{flex:1 0 100px}.rail{position:static;width:auto}.rail-bottom{display:none}main{margin-left:0;padding:16px}header{flex-wrap:wrap}h1{font-size:25px}.hero h2{font-size:30px}.toolbar>input{width:100%}.card{padding:16px}.profile-stats{display:flex;flex-wrap:wrap}dialog{min-width:0;width:94vw;padding:16px}}

.tier-badge{display:inline-block;vertical-align:middle;flex-shrink:0;margin-left:4px;filter:drop-shadow(0 1px 3px #0006)}.profile-hero .tier-badge{width:38px;height:43px}.tier-badge:focus{outline:2px solid #c4afff;border-radius:5px}

.rank-crown{display:inline-block;vertical-align:middle;font-size:1.25em;line-height:1.2;margin-right:3px;filter:drop-shadow(0 0 4px #e9b94966)}

.streak{display:inline-block;color:#ffb779;font-size:.8em;margin-left:5px}.equipped-title{color:#d2b6ed;font-size:.8em}.frame-moon{border:2px solid #c2b9ff!important;box-shadow:0 0 18px #b5a1ff33}.frame-pumpkin{border:2px solid #e9a250!important;box-shadow:0 0 18px #ff9a3533}#profileCommunity .card{margin:12px 0}#profileCommunity table{min-width:460px}

/* WEB 0.24: consistent navigation and personal shortcut */
.rail{width:240px;padding-left:16px;padding-right:16px}main{margin-left:240px}
.rail nav{gap:6px;margin-top:28px;max-height:none;min-height:0;flex:1;overflow:auto}
.rail nav button{display:flex;align-items:center;gap:10px;padding:11px 10px;border-left:3px solid transparent;white-space:nowrap;flex-shrink:0;font-size:14px}
.rail nav button.active{border-left-color:var(--accent)}
.rail nav button span{margin:0}.nav-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-label{white-space:nowrap}
.rail-bottom{padding-top:12px;flex-shrink:0}
.my-info.card{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:16px 20px;margin-bottom:24px}
.my-picker{display:flex;align-items:center;gap:12px;font-weight:700}.my-picker select{max-width:260px;font-weight:400}
.my-profile{display:flex;align-items:center;justify-content:space-between;flex:1;flex-wrap:wrap;gap:12px;text-align:left;padding:10px 14px}
.my-numbers{display:flex;align-items:center;flex-wrap:wrap;gap:18px}.my-numbers strong{color:var(--accent)}.my-profile-open{font-size:12px;color:var(--muted)}
@media(max-width:1150px) and (min-width:801px){.rail{width:220px}main{margin-left:220px}}
@media(max-width:800px){.rail{width:auto}.rail nav{overflow:visible;flex-wrap:wrap}.rail nav button{flex:1 0 170px}.rail nav a{flex:1 0 170px}main{margin-left:0}.my-info.card{gap:12px}.my-picker{width:100%}.my-picker select{flex:1;min-width:0}.my-profile{width:100%}}

/* WEB 0.25: matching summary */
.team-slot{min-width:0;display:flex;flex-direction:column;gap:5px}.team-slot .team-player{width:100%;height:100%;margin:0;gap:8px}.team-slot .group-label{overflow-wrap:anywhere}.player-mmr{display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap}.player-mmr small{font-size:10px}.team-slot .kind{margin-top:5px}.offrole-help{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;padding:3px 8px;font-size:11px;color:#e2c399;background:#352c23;border-color:#665037}.offrole-help span{border:1px solid currentColor;border-radius:50%;width:14px;height:14px;line-height:12px;text-align:center}.balance-summary{margin-top:16px;border:1px solid var(--line);border-radius:10px;padding:12px;background:#1d1925}.balance-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.balance-table-wrap{overflow-x:auto}.balance-table{font-variant-numeric:tabular-nums}.balance-table th{position:static;background:transparent}.balance-table td{text-align:right}.balance-table thead th:not(:first-child){text-align:right}.balance-table th,.balance-table td{padding:8px 6px}.adjusted-row{background:#302638;color:#e4cbff;font-weight:700}.balance-table .bad{color:#ff9aa9;background:#45252f}.team-role-counts{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:10px;font-size:11px}.team-role-counts>div{display:flex;gap:8px}.team-role-counts b{color:var(--blue)}.team-role-counts>div:last-child b{color:var(--red)}.match-actions{display:flex;flex-wrap:wrap;gap:8px}.match-actions button{flex:1;white-space:nowrap}#teamCopyText{font-size:13px}.team-slot .team-player>span:first-child{min-width:0}

/* WEB 0.27: equipped frame also surrounds displayed names */
.name-frame{display:inline-block;vertical-align:middle;padding:1px 7px;border-radius:7px;line-height:1.5;overflow-wrap:anywhere}.name-frame.frame-moon{box-shadow:0 0 8px #b5a1ff22}.name-frame.frame-pumpkin{box-shadow:0 0 8px #ff9a3522}

/* WEB 0.28: clean participant links, including framed names and tier icons */
.profile-link,.profile-link:hover,.profile-link:focus-visible{ text-decoration:none; }
.profile-link:hover .name-frame{filter:brightness(1.12)}

/* Compact home/admin shortcuts, including narrow screens. */
.portal-links{display:flex;gap:8px;grid-column:1 / -1;width:100%;flex:0 0 100%}.rail nav .portal-links a{display:flex;align-items:center;justify-content:center;gap:6px;flex:1 1 0;min-width:0;white-space:nowrap;padding:8px 5px;font-size:13px}.portal-links .nav-icon{width:17px;height:17px;flex-basis:17px}

.lane-gap-control{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;margin:12px 0}.lane-gap-control input{width:110px;text-align:center}

.lane-gap-control input[type=checkbox]{width:16px;min-height:auto;vertical-align:middle}.lane-gap-control input:disabled{opacity:.5}

.matching-method-control{display:grid;grid-template-columns:1fr auto;gap:6px;text-align:left;margin:12px 0;max-width:290px}.matching-method-control label{font-size:12px}.matching-method-control select{grid-column:1 / -1;width:100%;font-size:13px}.matching-method-control .help{min-height:24px}.hero-count{position:relative;z-index:1}@media(max-width:650px){.hero{flex-wrap:wrap;gap:18px}.hero-count{max-width:100%}}
