@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#f2f1e9;--ink:#153b32;--green:#1a604c;--lime:#d8ee81;--line:#d9ded2;--muted:#738079}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Noto Sans JP',system-ui,sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:0;background:var(--green);color:white;padding:12px 19px;border-radius:6px;font-weight:700;transition:filter .15s,transform .15s}button:hover{filter:brightness(1.12)}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed}button.outline{background:transparent;border:1px solid #a1b8aa;color:inherit}button.light{background:var(--lime);color:var(--ink)}button.ghost{background:#e6eae0;color:var(--ink)}a{color:inherit}header{min-height:92px;padding:18px 5%;display:flex;gap:25px;align-items:center;border-bottom:1px solid var(--line);background:#fafaf3}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:900;font-size:20px;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:3px;font-weight:600;margin-top:4px}.crest{width:40px;height:48px;background:var(--green);color:var(--lime);clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);text-align:center;line-height:29px;font-size:25px}.crest span{font-size:9px;display:block;line-height:8px}nav{display:flex;gap:6px;margin:auto}nav button{color:#576c60;background:none;font-size:12px;padding:12px}nav button.active{background:#e4e9dc;color:var(--green)}#account{font-size:12px;white-space:nowrap}main{max-width:1440px;margin:auto;padding:34px 5%;min-height:76vh}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,4vw,54px);line-height:1.35;letter-spacing:-1px}h2{font-size:25px;letter-spacing:-.5px}h3{font-size:16px}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:800;color:#7c946f;margin-bottom:15px}.muted{color:var(--muted);font-size:12px;line-height:1.9}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spread{justify-content:space-between}.hero{display:grid;grid-template-columns:.9fr 1.3fr;background:#123e32;color:#f8faed;border-radius:12px;overflow:hidden;min-height:430px}.hero-copy{padding:45px 36px;position:relative;z-index:1}.hero p{color:#bfd0b9;line-height:2;font-size:13px;max-width:380px}.hero .eyebrow{color:var(--lime)}.hero-art{position:relative;min-height:370px;overflow:hidden;background:#427958}.hero-art canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.art-caption{position:absolute;bottom:22px;left:25px;font-size:10px;letter-spacing:2px;background:#123e32b0;padding:9px 15px;border-radius:30px}.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fbfcf6;border:1px solid var(--line);border-radius:8px;margin:24px 0 32px}.stats-strip div{padding:18px 24px;border-right:1px solid var(--line)}.stats-strip div:last-child{border:0}.stats-strip small{color:var(--muted);font-size:10px;display:block;margin-bottom:6px}.stats-strip strong{font-size:21px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.panel{background:#fcfcf6;border:1px solid var(--line);border-radius:9px;padding:25px}.card .num{font-size:10px;letter-spacing:2px;color:#849578}.card h3{font-size:21px;margin:18px 0 10px}.card p{font-size:12px;line-height:1.9;color:#738079;min-height:45px}.card button{margin-top:14px}.card.feature{background:#dfe8cd}.section-head{margin:28px 0 18px}.section-head .eyebrow{margin-bottom:5px}.grid2{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.chip{display:inline-block;border-radius:4px;padding:5px 9px;font-size:10px;background:#e8ecdf;color:#4f6d50}.chip.gold{background:#f3e5ad;color:#81692b}.stat{display:grid;grid-template-columns:90px 1fr 28px;gap:10px;align-items:center;font-size:11px;margin:12px 0}.bar{height:6px;border-radius:10px;background:#e0e6d9;overflow:hidden}.bar i{display:block;height:100%;background:#74a675;border-radius:10px}.stat strong{text-align:right}.stat button{padding:2px 8px}.ability-row{display:grid;grid-template-columns:1fr 32px;gap:10px}.player-badge{width:62px;height:72px;display:grid;place-content:center;background:#d8e8cb;clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%);font-size:28px;font-weight:900}.player-badge small{font-size:10px;text-align:center}.portrait{background:linear-gradient(140deg,#e6ecdb,#c4d2b7);border-radius:8px;padding:30px;text-align:center}.shirt{font-size:75px;line-height:1.2}.portrait h2{margin:18px 0 6px}.training{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.training button{background:#eff2e6;color:var(--ink);text-align:left;min-height:88px;padding:16px;border:1px solid var(--line)}.training button small{font-size:10px;color:var(--muted);display:block;margin-top:7px}.log{max-height:230px;overflow:auto}.log p{font-size:12px;border-bottom:1px solid var(--line);padding:11px 0;margin:0;line-height:1.8}.pitch-map{background:repeating-linear-gradient(0deg,#3d7755 0,#3d7755 12.5%,#46805c 12.5%,#46805c 25%);aspect-ratio: .95;position:relative;border:9px solid #21503d;border-radius:7px;min-height:330px}.pitch-map:before{content:'';position:absolute;inset:5%;border:1px solid #c6debb8a}.pitch-map:after{content:'';position:absolute;top:50%;left:5%;right:5%;border-top:1px solid #c6debb8a}.pitch-map .circle{position:absolute;left:39%;top:40%;width:22%;height:20%;border:1px solid #c6debb8a;border-radius:50%}.position{position:absolute;transform:translate(-50%,-50%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:4px;background:none;padding:0;min-width:60px}.position b{display:grid;place-content:center;width:34px;height:34px;border:2px solid #d6e99d;background:#f5f7dd;color:#204e3d;border-radius:50%;font-size:12px;box-shadow:0 3px 7px #1235}.position span{font-size:9px;color:white;text-shadow:0 1px 3px #000;background:#143c3299;border-radius:4px;padding:2px 4px}.position.selected b{background:var(--lime);box-shadow:0 0 0 4px #e5f2b33c}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px 9px}th{font-size:10px;color:var(--muted)}tr.mine{background:#eaf0dc;font-weight:700}tr[data-player]{cursor:pointer}tr[data-player]:hover{background:#eff2e6}.page-title{margin-bottom:27px}.page-title h1{font-size:34px;margin-bottom:8px}label{display:block;font-size:12px;font-weight:700;margin:16px 0 7px}input,select{padding:12px;border:1px solid #c6d2c1;background:#fffef9;border-radius:5px;min-width:0;color:var(--ink);width:100%}input[type=range]{padding:0}input[type=checkbox]{width:auto}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:15px}.error{color:#b44d37;font-size:12px;line-height:1.8}.success-text{color:#377b50}dialog{border:0;border-radius:12px;background:#fafbf3;color:var(--ink);padding:35px;width:min(530px,92vw);max-height:90vh;box-shadow:0 24px 80px #102c2940}dialog::backdrop{background:#0c292bd0;backdrop-filter:blur(4px)}.close{position:absolute;right:12px;top:9px;background:transparent;color:var(--ink);padding:4px 10px;font-size:25px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(100px);transition:.2s;background:#102f29;color:#f3f6df;padding:14px 24px;border-radius:7px;z-index:40;font-size:12px;max-width:90vw;box-shadow:0 4px 18px #0003}#toast.show{transform:translateX(-50%) translateY(0)}footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px 5%;font-size:9px;color:var(--muted);border-top:1px solid var(--line);flex-wrap:wrap}footer button{background:transparent;color:var(--muted);font-size:10px;padding:6px}#saveStatus{margin-left:auto}.match-wrap{background:#12392f;border-radius:10px;overflow:hidden;position:relative}.scoreboard{display:flex;align-items:center;justify-content:center;gap:22px;padding:15px;color:#eef5dc;background:#12392f}.scoreboard .score{font-size:28px;letter-spacing:7px;font-weight:900}.scoreboard .teamname{font-size:12px}.clock{font-size:11px;background:#d7e98e;color:#143b2d;padding:7px 12px;border-radius:4px}.field-view{position:relative;aspect-ratio:16/9;background:#6b9b77;max-height:68vh;min-height:280px}.field-view canvas{width:100%;height:100%;display:block;touch-action:none}.match-msg{position:absolute;top:12px;left:50%;transform:translateX(-50%);background:#12392fbb;color:white;font-size:12px;padding:9px 20px;border-radius:5px;pointer-events:none;text-align:center;min-width:200px}.match-controls{display:flex;gap:8px;padding:12px;align-items:center;justify-content:space-between;background:#183e32;color:#d3e2c8;font-size:10px}.match-controls select{width:auto;padding:7px;font-size:11px;background:#285342;border:1px solid #4b7459;color:white}.match-controls button{font-size:10px;padding:9px 12px;background:#345b46}.touch-ui{display:flex;position:absolute;bottom:16px;left:16px;right:16px;justify-content:space-between;pointer-events:none}.pad{display:grid;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(3,33px);gap:2px}.pad button,.actions button{pointer-events:auto;touch-action:none;user-select:none;background:#133b32a8;color:#ecf7d9;border:1px solid #a8c3a052;padding:0;font-size:15px}.pad button:nth-child(1){grid-column:2}.pad button:nth-child(2){grid-column:1;grid-row:2}.pad button:nth-child(3){grid-column:3;grid-row:2}.pad button:nth-child(4){grid-column:2;grid-row:3}.actions{display:flex;align-items:end;gap:7px}.actions button{border-radius:50%;width:48px;height:48px;font-size:10px}.actions button.shoot{background:#d2e883d9;color:#193d2e;width:58px;height:58px}.mini-status{padding:12px 18px;font-size:11px;color:#d2dfbf;background:#244a38}.kbd{padding:2px 6px;border:1px solid #bfccbb;border-radius:4px;background:#eef1e6;font-size:11px}.help-copy{line-height:2.1;font-size:13px}.empty{text-align:center;padding:35px;color:var(--muted)}progress{width:100%;height:7px;accent-color:#50794c}.tabs{display:flex;gap:8px;margin-bottom:20px}.tabs button{background:#e2e9da;color:#4c6b50}.tabs button.active{background:var(--green);color:white}.tiny{font-size:10px}.notice{padding:14px 18px;background:#e9eddc;border-left:3px solid #8da965;font-size:12px;line-height:1.9;margin:15px 0}.pill{font-size:11px;padding:8px 12px;border-radius:20px;background:#e1e8d6}.match-banner{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#163f31bb;color:white;backdrop-filter:blur(4px);z-index:5}.match-banner h2{font-size:35px;margin-bottom:12px}.match-banner button{margin:6px}.divider{height:1px;background:var(--line);margin:24px 0}#loginError{min-height:20px}.small-btn{padding:7px 10px;font-size:11px}button:focus-visible,a:focus-visible{outline:3px solid #c5a955;outline-offset:3px}@media(min-width:1100px){.touch-ui{opacity:.65}.touch-ui:hover{opacity:1}}@media(max-width:850px){header{padding:14px 4%;gap:12px;flex-wrap:wrap}.brand{font-size:16px}nav{order:3;width:100%;justify-content:center;margin:0}nav button{flex:1;padding:9px 3px;font-size:11px}#account{margin-left:auto}main{padding:22px 4%}.hero{grid-template-columns:1fr 1fr;min-height:350px}.hero-copy{padding:28px 22px}.hero h1{font-size:32px}.hero-art{min-height:320px}.grid2{grid-template-columns:1fr}.cards{gap:10px}.card{padding:18px}.card h3{font-size:17px}.stats-strip div{padding:14px}.stats-strip strong{font-size:16px}.training{grid-template-columns:repeat(3,1fr)}.field-view{min-height:300px}.match-controls{flex-wrap:wrap}}@media(max-width:550px){.hero{grid-template-columns:1fr}.hero-copy{padding:28px}.hero-art{min-height:260px}.hero h1{font-size:36px}.cards{grid-template-columns:1fr}.card p{min-height:0}.card button{margin-top:5px}.stats-strip{grid-template-columns:repeat(2,1fr)}.stats-strip div:nth-child(2){border-right:0}.stats-strip div:nth-child(-n+2){border-bottom:1px solid var(--line)}.grid3{grid-template-columns:1fr}.panel{padding:19px}.formrow{grid-template-columns:1fr}.training{grid-template-columns:repeat(2,1fr)}.scoreboard{gap:12px;padding:10px}.scoreboard .teamname{font-size:10px;max-width:90px}.scoreboard .score{font-size:23px}.clock{font-size:10px;padding:5px}.field-view{aspect-ratio:1.25;min-height:300px}.match-controls .pc-help{display:none}.pad{grid-template-columns:repeat(3,32px);grid-template-rows:repeat(3,30px)}.touch-ui{left:8px;right:8px;bottom:8px}.actions{gap:4px}.actions button{width:39px;height:39px}.actions button.shoot{width:47px;height:47px}.page-title h1{font-size:29px}footer>span:first-child{width:100%}.position span{font-size:8px}.pitch-map{min-height:350px}td,th{padding:10px 5px;font-size:11px}}

/* Saturated primary-colour football identity requested by the player. */
:root{--bg:#f0f6ff;--ink:#092f6c;--green:#0054ec;--lime:#ffe800;--line:#c7d8f4;--muted:#506b96}header{background:#fff;border-bottom:4px solid #0054ec}.crest{background:#0054ec;color:#ffe800}.hero{background:#0046d5;color:#fff}.hero .eyebrow{color:#ffe800}.hero p{color:#e5f0ff}.hero-art{background:#00aeec}nav button{color:#234e93}nav button.active{background:#0054ec;color:white}.card.feature{background:#ffea00}.card,.panel,.stats-strip{background:#fff}.card.feature p{color:#385789}.chip{background:#dceaff;color:#0050c9}.chip.gold{background:#ffe800;color:#7a3800}.eyebrow{color:#0054ec}.bar i{background:#005bff}.bar{background:#dbe7f9}.training button{background:#e8f0ff;color:#0c3d8b;border-color:#b1cdff}.pill{background:#dceaff}.notice{background:#edf4ff;border-color:#005bff}.pitch-map{background:repeating-linear-gradient(0deg,#00a839 0,#00a839 12.5%,#00be41 12.5%,#00be41 25%);border-color:#006b32}.position b{background:#005bff;color:white;border-color:#ffe800}.position.selected b{background:#ffe800;color:#003e9f}button.ghost{background:#dfeaff;color:#004dcc}tr.mine{background:#fff49a}.scoreboard{background:#003599}.match-wrap{background:#0042bd}.match-controls{background:#003ca6}.match-controls select{background:#004ecf;border-color:#447deb}.mini-status{background:#002b7d;color:#fff}.clock{background:#ffea00;color:#00317e}.match-banner{background:#003291ba}.match-msg{background:#003b9bcd}.touch-ui .pad button,.touch-ui .actions button{background:#004ccfbb;color:#fff;border-color:#9cbdff}.touch-ui .actions button.shoot{background:#ffe600e8;color:#00389a}.portrait{background:linear-gradient(135deg,#0064ff,#00c4ff)}footer{background:#fff}dialog{background:#f6f9ff;color:#103d81}.player-badge{background:#0054ec;color:#ffe800}.art-caption{background:#003599c9}#toast{background:#00399f}.hero button.outline{border-color:#9fc2ff;color:white}

.field-view{width:100%}

/* Action camera and a continuous, multi-touch-friendly analog stick. */
main:has(.match-wrap){max-width:1680px;padding:16px 2%}.field-view{aspect-ratio:16/9;min-height:360px;max-height:72vh}.match-msg{max-width:70%;font-weight:800;background:#072b68d9}.analog-stick{width:116px;height:116px;border:3px solid #e4f5ffaa;border-radius:50%;background:radial-gradient(circle,#123b7bcc 0 28%,#08264899 30% 63%,#27569a99 65%);position:relative;touch-action:none;user-select:none;pointer-events:auto;box-shadow:0 4px 16px #001a4466}.stick-knob{position:absolute;left:50%;top:50%;width:49px;height:49px;border:3px solid white;border-radius:50%;background:#0876ff;transform:translate(-50%,-50%);box-shadow:0 3px 10px #001b5c99}.stick-cross{position:absolute;inset:0;display:grid;place-content:center;color:#fff8;font-size:30px;pointer-events:none}.stick-area small{display:block;text-align:center;color:white;font:bold 9px system-ui;letter-spacing:2px;margin-top:5px}.touch-ui{align-items:end;opacity:1!important}.actions{display:grid;grid-template-columns:repeat(3,52px);gap:8px}.actions button{width:52px;height:47px;border:2px solid #fff9;background:#07387ddd;font-size:11px}.actions button.shoot{width:56px;height:56px;background:#ffdf00;color:#092649;grid-column:3;grid-row:1 / span 2;align-self:center}.actions button[data-act="switch"]{background:#ed2548}.match-wrap.is-expanded{position:fixed;inset:0;z-index:100;border-radius:0;display:flex;flex-direction:column}.is-expanded .field-view{flex:1;min-height:0;max-height:none;aspect-ratio:auto}.is-expanded .scoreboard{padding:8px}.is-expanded .mini-status{padding:5px 14px}.is-expanded .match-controls{padding:6px 12px}.is-expanded .match-controls select{max-width:145px}.match-controls .row{gap:6px}.match-controls label{color:white}.player-hud{font-weight:700}
@media(max-width:600px){.field-view{min-height:420px;max-height:none;aspect-ratio:4/5}.touch-ui{left:10px;right:10px;bottom:12px}.analog-stick{width:102px;height:102px}.actions{grid-template-columns:repeat(3,46px);gap:5px}.actions button{width:46px;height:44px;font-size:10px}.actions button.shoot{width:49px;height:55px}.scoreboard{gap:9px;padding:10px 6px}.scoreboard .teamname{font-size:10px}.match-controls .pc-help{display:none}.match-controls .row{flex-wrap:wrap}.match-controls select{max-width:125px}.match-msg{font-size:10px;min-width:140px;padding:6px 9px;left:10px;transform:none;max-width:58%}.is-expanded .player-hud{font-size:10px}.is-expanded .hud-face{height:28px;width:28px}}
@media(max-height:550px) and (orientation:landscape){.is-expanded .field-view{min-height:150px}.is-expanded .mini-status{display:none}.is-expanded .scoreboard .score{font-size:21px}.is-expanded .touch-ui{bottom:6px}.is-expanded .analog-stick{width:85px;height:85px}.is-expanded .actions button{height:39px}.is-expanded .actions button.shoot{height:47px}}

body:has(.match-wrap.is-expanded){overflow:hidden}

.match-stamina{position:relative;height:17px;background:#102a43;border:1px solid #ffffff9c;margin-top:5px;overflow:hidden;border-radius:3px;min-width:120px}.match-stamina i{display:block;height:100%;background:#21c983;transition:width .2s linear}.match-stamina[data-level=medium] i{background:#efb829}.match-stamina[data-level=low] i{background:#ed5b4e}.match-stamina strong{position:absolute;inset:0;text-align:center;font:700 11px/15px system-ui;color:white;text-shadow:0 1px 3px #001b38}.match-player-card{min-height:92px}

.appearance-editor{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:24px;margin:18px 0 28px;padding:22px;background:#eef5ff;border:1px solid #c9d9ef;border-radius:16px}.appearance-preview{display:flex;flex-direction:column;align-items:center;gap:12px}.appearance-preview img{width:100%;max-width:240px;height:280px;object-fit:contain;border-radius:20px;background:#dce9fb}.appearance-preview small{color:#526580;font-size:12px}.appearance-toggle{display:flex;align-items:center;gap:8px;font-weight:700}.appearance-toggle input{width:20px;min-height:20px;margin:0}.appearance-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-content:start}.appearance-options label{margin:0}.appearance-options select{width:100%}.appearance-options input[type=color]{width:100%;height:44px;padding:4px}.appearance-options button{align-self:end;min-height:44px}.profile-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.editor-team-options{border:1px solid #ccd8ec;border-radius:12px;padding:16px;margin:24px 0}.editor-team-options summary{font-weight:700;cursor:pointer}.editor-save-row{display:flex;align-items:center;gap:16px;padding-top:20px;border-top:1px solid #d3dff0}.editor-save-row p{font-size:13px;margin:0}@media(max-width:650px){.appearance-editor{grid-template-columns:1fr;padding:14px;gap:18px}.appearance-preview img{height:240px;max-width:206px}.profile-edit-grid{grid-template-columns:1fr}.editor-save-row{align-items:stretch;flex-direction:column;gap:10px}}

/* Player studio: persistent portrait and categorized controls. */
main:has(.player-studio){max-width:1460px;padding:28px 3%}.player-studio{background:#0d182b;color:#e9f1ff;border:1px solid #263950;padding:28px;border-radius:18px;box-shadow:0 20px 60px #10254b20}.player-studio .eyebrow{color:#82a9de;letter-spacing:.23em}.player-studio h1{font-size:clamp(25px,3vw,40px);letter-spacing:.05em;margin:8px 0 24px}.studio-selector{display:flex;align-items:center;gap:18px;margin-bottom:20px}.studio-selector label{margin:0;white-space:nowrap;color:#a9bdd7;font-size:12px}.player-studio select,.player-studio input{background:#17253b;border:1px solid #3a4d68;color:#f1f6ff;border-radius:7px}.studio-selector select{max-width:360px;margin:0}.studio-tabs{display:flex;border-bottom:1px solid #2a3d56;gap:28px;margin-bottom:24px;overflow-x:auto}.studio-tab{background:transparent;color:#a1b3ca;border:0;border-radius:0;padding:14px 4px;white-space:nowrap;min-height:48px;border-bottom:3px solid transparent}.studio-tab[aria-selected=true]{color:#fff;border-bottom-color:#dfff64;background:transparent}.studio-tab:hover{color:#dfff64;background:#192c43}.studio-workspace{display:grid;grid-template-columns:minmax(280px,38%) minmax(0,1fr);gap:30px;align-items:start}.studio-stage{position:sticky;top:20px;isolation:isolate;overflow:hidden;min-height:580px;padding:24px;border:1px solid #345274;border-radius:12px;background:radial-gradient(ellipse at 50% 32%,#294e70,transparent 65%),linear-gradient(155deg,#142a43,#0a1526);gap:10px}.studio-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(transparent 96%,#aacfff0b 96%),linear-gradient(90deg,transparent 96%,#aacfff0b 96%);background-size:40px 40px;z-index:-1}.studio-stage-caption{align-self:start;font:10px system-ui;letter-spacing:.23em;color:#9ab9da}.studio-player-name{font-size:26px;margin:12px 0 0;letter-spacing:.04em}.studio-badge{font:10px system-ui;letter-spacing:.18em;color:#dfff64}.studio-stage img{width:100%;max-width:290px;height:320px;object-fit:contain;border-radius:8px;background:transparent;filter:drop-shadow(0 15px 22px #0005);transition:transform .22s;transform-origin:50% 35%}.studio-stage.close-up img{transform:scale(1.24);clip-path:inset(0 0 12% 0 round 8px)}.studio-stage small{color:#9eb2ce}.studio-stage .appearance-toggle{font-size:12px;font-weight:400;color:#dbe6f5;margin-top:8px}.studio-stage .appearance-toggle input{accent-color:#ccf258}.studio-zoom{display:flex;gap:3px;background:#071222;padding:4px;border-radius:6px}.studio-zoom button{font-size:11px;background:transparent;color:#91a8c4;padding:8px 16px;border:0}.studio-zoom button[aria-pressed=true]{background:#304765;color:#fff}.studio-metrics{width:100%;display:grid;grid-template-columns:repeat(3,1fr);text-align:center;border-top:1px solid #3a5069;padding-top:17px;margin-top:12px}.studio-metrics small{display:block;font-size:10px;margin-bottom:6px}.studio-metrics strong{font-size:16px;color:white}.studio-section[hidden]{display:none!important}.studio-section>h2{font-size:19px;margin:0 0 20px;color:white}.studio-controls{min-width:0}.studio-controls .appearance-options{display:block}.studio-controls .appearance-options>label{display:block;color:#bbcbe0;font-size:12px;margin:0 0 20px}.studio-native-select{display:none}.studio-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.studio-choice{display:flex;align-items:center;flex-direction:column;padding:7px 3px 9px;border:1px solid #334761;background:#15243a;border-radius:8px;color:#b9c9de;font-size:10px;gap:5px;min-height:96px}.studio-choice img{height:64px;width:60px;object-fit:cover;object-position:top;border-radius:5px}.studio-choice[aria-pressed=true]{border-color:#dfff64;box-shadow:inset 0 0 0 1px #dfff64;background:#263c43;color:#edffba}.studio-choice:hover{background:#2c425b;border-color:#94b8e2}.studio-controls .appearance-options input[type=color]{height:40px}.player-studio .profile-edit-grid{gap:12px}.player-studio .muted{color:#8fa4bf;font-size:12px;line-height:1.8}.player-studio label{color:#b4c6dd}.player-studio .editor-team-options{margin:0;border-color:#364861}.player-studio .editor-save-row{position:sticky;bottom:0;z-index:3;background:#0d182bf5;border-top:1px solid #344760;margin-top:24px;padding:18px 0 0}.player-studio .editor-save-row button{background:#dfff64;color:#172327;border:0;min-width:170px;font-weight:800}.player-studio .editor-save-row p{color:#a6b9d1}.player-studio button:focus-visible,.player-studio input:focus-visible,.player-studio select:focus-visible{outline:3px solid #a6d6ff;outline-offset:3px}
@media(max-width:850px){.player-studio{padding:18px}.studio-workspace{grid-template-columns:minmax(225px,35%) minmax(0,1fr);gap:18px}.studio-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-stage{padding:16px}.studio-stage img{height:270px}.studio-tabs{gap:18px}.player-studio .profile-edit-grid{grid-template-columns:1fr}}
@media(max-width:600px){main:has(.player-studio){padding:14px 10px}.studio-workspace{display:block}.studio-stage{position:relative;top:auto;min-height:0;margin-bottom:24px;padding:14px}.studio-stage img{height:210px;max-width:180px}.studio-player-name{font-size:21px;margin:0}.studio-stage>small{display:none}.studio-stage-caption{position:absolute;top:16px;font-size:8px}.studio-metrics{padding-top:10px;margin-top:4px}.studio-tabs{gap:18px}.studio-tab{font-size:12px}.studio-selector{display:block}.studio-selector select{max-width:none;margin-top:8px}.studio-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-choice{font-size:9px}.studio-choice img{width:48px;height:57px}.player-studio .editor-save-row{align-items:stretch;gap:8px;padding:12px 0}.player-studio .editor-save-row p{font-size:11px}}

/* Quiet match HUD, shared by touch and desktop. */
.compact-play .match-controls{position:relative;display:flex;justify-content:flex-end;gap:8px;padding:6px 12px;background:#10233bd9;z-index:8}.compact-play .match-controls>.pc-help{display:none}.compact-play .match-controls>.row{display:none;position:absolute;right:10px;bottom:100%;max-width:350px;padding:16px;background:#10233bf5;border:1px solid #6c8ba7;border-radius:12px;box-shadow:0 4px 24px #0007;flex-wrap:wrap;max-height:65vh;overflow:auto}.compact-play.menu-open .match-controls>.row{display:flex}.compact-play .match-controls>button{padding:7px 12px;font-size:11px;min-height:36px}.compact-play .match-player-cards{display:none}.compact-play .mini-status{font-size:11px;padding:4px 12px;min-height:30px}.compact-play .mini-status .hud-face{width:25px;height:25px}.compact-play .match-msg:empty{display:none}.compact-play .touch-ui{bottom:max(16px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));pointer-events:none}.compact-play .actions{pointer-events:auto;display:grid!important;grid-template-columns:repeat(2,58px);gap:10px;transform:none}.compact-play .actions button{display:none!important;width:58px!important;height:58px!important;border-radius:50%;padding:4px;font-size:11px;background:#143c66a8;border:1px solid #d3eaff99;box-shadow:0 2px 8px #001b3940;touch-action:none;grid-column:auto!important;grid-row:auto!important;color:white}.compact-play .actions [data-act=pass],.compact-play .actions [data-act=through],.compact-play .actions [data-hold=shoot],.compact-play .actions #dashToggle{display:block!important}.compact-play .actions [data-hold=shoot]{background:#e4df659e;color:#fff;border-color:#fff4a9}.compact-play.is-defending .actions [data-act=through]{display:none!important}.compact-play.is-defending .actions [data-act=switch]{display:block!important}.compact-play.all-controls .actions{grid-template-columns:repeat(3,54px)}.compact-play.all-controls .actions button{display:block!important;width:54px!important;height:54px!important}.compact-play .analog-stick{width:100px;height:100px;border:1px solid #e4f5ff77;background:radial-gradient(circle,#8fb4dc20,#11345355);box-shadow:none}.compact-play .stick-knob{width:42px;height:42px;border:1px solid #e9f4ff99;background:#b5d9ff55;box-shadow:none}.compact-play .stick-cross,.compact-play .stick-area small{display:none}.compact-play .touch-ui:has(.dragging){opacity:1}.compact-play .scoreboard{padding:6px 12px}.compact-play .scoreboard .score{font-size:24px}.compact-play .match-msg{top:50px;left:50%;transform:translateX(-50%);bottom:auto;font-size:11px;max-width:60%;padding:6px 12px;pointer-events:none}
@media(max-height:550px) and (orientation:landscape){.compact-play .mini-status{display:none}.compact-play .actions{grid-template-columns:repeat(2,48px);gap:7px}.compact-play .actions button{width:48px!important;height:48px!important;font-size:10px}.compact-play .analog-stick{width:86px;height:86px}.compact-play .match-controls{padding:3px 10px}.compact-play .match-controls>button{min-height:30px;padding:4px 10px}.compact-play .scoreboard{padding:3px 10px}}

/* Override legacy touch layout without affecting training screens. */
.match-wrap.compact-play .touch-ui .actions{width:auto!important;grid-template-columns:repeat(2,58px)!important;gap:10px!important}.match-wrap.compact-play:not(.all-controls) .touch-ui .actions [data-act=lob],.match-wrap.compact-play:not(.all-controls) .touch-ui .actions [data-hold=curve],.match-wrap.compact-play:not(.all-controls) .touch-ui .actions #precisionHold{display:none!important}.match-wrap.compact-play .touch-ui .actions button{width:58px!important;border-width:1px!important}.match-wrap.compact-play.all-controls .touch-ui .actions{grid-template-columns:repeat(3,54px)!important}.match-wrap.compact-play.all-controls .touch-ui .actions button{width:54px!important}
@media(max-height:550px) and (orientation:landscape){.match-wrap.compact-play .touch-ui .actions{grid-template-columns:repeat(2,48px)!important;gap:7px!important}.match-wrap.compact-play .touch-ui .actions button{width:48px!important}}
@media(max-width:360px){.match-wrap.compact-play .touch-ui{display:flex!important;height:auto!important;padding:0!important}.match-wrap.compact-play .touch-ui .stick-area{position:static!important;width:76px!important}.match-wrap.compact-play .touch-ui .actions{position:static!important;width:auto!important;grid-template-columns:repeat(2,52px)!important}.match-wrap.compact-play .touch-ui .actions button{width:52px!important;height:52px!important}}

.match-wrap.compact-play .touch-ui .actions button{font-size:10px!important;white-space:normal!important;line-height:1.2!important}

.match-wrap.compact-play .touch-ui .actions [data-gesture-hint]:after{content:attr(data-gesture-hint);display:block;font-size:7px;line-height:1.4;opacity:.85}.match-wrap.compact-play .touch-ui .actions .flick-ready{background:#2679b6dd!important;border-color:#fff!important;box-shadow:0 0 0 3px #9edcff70}.match-wrap.compact-play .touch-ui .actions [data-flick]:before{content:attr(data-flick);position:absolute;right:0;bottom:115%;background:#092d50ed;color:white;padding:7px;border-radius:6px;white-space:nowrap;font-size:11px}.match-wrap.compact-play .touch-ui .actions button{position:relative}
