:root{--blue:#3870e1;--ink:#17233b;--muted:#647087;--line:#dce4ef;--paper:#fff;--wash:#f2f6fc;--green:#268f4e;--orange:#f97316;font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:var(--ink);background:var(--wash);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;background:white;color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 17px;font-weight:700;min-height:44px}button:hover{border-color:var(--blue)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #82a9f6;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}header{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:24px 28px}.brand{font-size:28px;font-weight:900;letter-spacing:-1px;color:var(--blue)}.brand span{display:inline-block;margin-left:16px;color:var(--ink);font-size:10px;letter-spacing:2px;vertical-align:middle}.pilot{font-size:12px;color:var(--muted)}main{max-width:1064px;margin:auto;padding:0 24px 40px}.hero{position:relative;overflow:hidden;padding:36px 0 42px;min-height:280px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--blue)}h1{font-size:clamp(32px,5vw,58px);letter-spacing:-2px;line-height:1.2;margin:15px 0}h1 em{font-style:normal;color:var(--blue)}p{line-height:1.7}h2{font-size:19px;letter-spacing:-.6px;margin:0 0 14px}.hero p{color:var(--muted);font-size:16px}.court-art{position:absolute;right:35px;top:48px;width:300px;height:196px;background:var(--blue);border:12px solid #bad0fc;transform:rotate(-9deg);box-shadow:20px 24px 0 #e0eafa;border-radius:14px}.court-art:before,.court-art:after{content:"";position:absolute;border:2px solid #ffffff80;inset:13px}.court-art:after{inset:13px 55px}.court-art i{position:absolute;left:50%;top:0;bottom:0;border-left:3px dashed white}.court-art b{position:absolute;left:28px;top:55px;background:var(--blue);color:white;font-size:34px}.lobby-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.panel{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:20px;margin-bottom:18px}label{display:block;font-size:13px;font-weight:700;margin:0 0 15px}input,textarea,select{display:block;width:100%;background:#fbfcff;border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:8px;color:var(--ink);font-size:16px}textarea{resize:vertical}.hint{font-size:12px;font-weight:400;color:var(--muted);margin:8px 0 15px}.primary{background:var(--blue);color:white;border-color:var(--blue)}.quiet{background:transparent}.danger{color:#b43b24}.session-list{display:grid;gap:10px}.session-list button{text-align:left;display:flex;justify-content:space-between;gap:12px}.session-list small{color:var(--muted);font-weight:400}.session-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:25px 0 16px}.session-heading h1{font-size:30px;word-break:break-word}.sync-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-bottom:20px}#connection{color:var(--green)}nav{display:flex;border-bottom:1px solid var(--line);gap:5px;margin-bottom:24px}nav button{border:0;border-radius:0;background:none;padding:14px 20px;color:var(--muted)}nav button.selected{color:var(--blue);border-bottom:3px solid var(--blue)}.setup{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.setup h2{margin-bottom:0}.setup .hint{margin-bottom:0}#court-options{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}#court-options label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px}input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--blue)}.section-title{display:flex;align-items:baseline;justify-content:space-between;margin:25px 0 12px}.section-title h2{margin:0}.section-title span{font-size:12px;color:var(--muted)}.court-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.court-card{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}.court-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--line);font-weight:800}.badge{font-size:11px;border-radius:30px;padding:5px 9px;background:#edf3ff;color:var(--blue)}.badge.running{background:#eaf6ed;color:var(--green)}.teams{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:22px 18px}.team{display:grid;gap:8px;text-align:center;min-width:0}.team span,.team button{font-weight:700;word-break:break-word;font-size:15px}.team button{padding:9px 6px;background:#f2f6fc}.vs{color:#98a4b8;font-size:11px;font-weight:900}.court-card .actions{padding:0 16px 16px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button{flex:1}.empty{padding:28px 16px;color:var(--muted);text-align:center;font-size:14px}.draft{padding:22px;border:2px solid var(--blue);background:#eaf1ff;border-radius:22px;margin-bottom:24px}.draft h2{color:var(--blue)}.draft .hint{color:#445b86}.bench{font-size:13px;line-height:1.8;word-break:break-word}.history summary{cursor:pointer;font-weight:700}.history-row{border-top:1px solid var(--line);padding:13px 0;font-size:13px;line-height:1.8}.history-row:first-child{margin-top:15px}.history-row span{display:block;color:var(--muted);font-size:11px}.player-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.player-row:last-child{border:0}.player-info{flex:1;min-width:0;word-break:break-word}.player-info strong{display:block;font-size:15px}.player-info small{font-size:11px;color:var(--muted)}.player-row select{width:116px;font-size:13px;margin:0;padding:9px}.inline-form{display:flex;align-items:end;gap:15px}.inline-form label{flex:1;margin:0}.inline-form button{flex-shrink:0}.my-card{background:var(--blue);color:white;padding:25px;border-radius:18px;margin-bottom:20px}.my-card h2{font-size:25px}.my-card p{margin-bottom:0}#notice{position:relative;top:auto;z-index:5;padding:15px 18px;background:#17233b;color:white;border-radius:12px;margin-bottom:16px;font-size:14px;box-shadow:0 4px 20px #17233b22}dialog{border:1px solid var(--line);border-radius:20px;padding:26px;width:min(420px,calc(100% - 32px));color:var(--ink)}dialog::backdrop{background:#17233b66}footer{max-width:1064px;margin:0 auto;padding:20px 24px 35px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}@media(max-width:700px){header{padding:18px 20px}.brand{font-size:24px}.brand span{font-size:9px;margin-left:10px}.pilot{font-size:10px}main{padding:0 18px 30px}.hero{padding:24px 0;min-height:240px}.hero h1{font-size:39px}.hero p{font-size:13px}.court-art{width:120px;height:95px;right:-15px;top:45px;border-width:7px;opacity:.2}.court-art b{font-size:22px;left:7px;top:26px}.lobby-grid,.court-grid{grid-template-columns:1fr}.panel{padding:19px;border-radius:16px}.session-heading h1{font-size:25px}nav button{flex:1;padding:12px 5px}.setup{gap:15px}.setup>div:first-child{width:100%}#court-options{margin-left:0}.setup>.primary{width:100%}.draft{padding:15px}.inline-form{align-items:stretch;flex-direction:column}.sync-line{font-size:11px}.section-title span{font-size:10px}}@media(prefers-reduced-motion:no-preference){.hero{animation:arrive .35s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
