/* First Touch — compact, high-contrast sports editorial UI. No domain logic. */
:root{--bg:#101d19;--bg2:#14251f;--card:#1c3028;--card2:#253b31;--line:#41574a;--tx:#f4f6eb;--gold:#c8f36d;--gold2:#e1f8b0;--r:10px}
#app{background:radial-gradient(ellipse at 95% 0,#354d33 0,transparent 360px),var(--bg)}
.main{padding-top:12px}.card,.b5-match,.b5-section{border-radius:11px}.b5-identity{border-radius:11px;border-color:#617b59}.b5-statline{padding-block:13px}.b5-player h1{font-weight:900}.b5-match{border-top:3px solid #c8f36d;background:linear-gradient(155deg,#2d4938,#172d24 68%)}.b5-match-meta{font-weight:650}.b5-versus .crest{filter:drop-shadow(0 3px 3px #09170d70)}.b5-main-cta{font-weight:850;letter-spacing:-.02em;box-shadow:0 4px 0 #779b39}.b5-main-cta:active{box-shadow:0 1px 0 #779b39;transform:translateY(2px)}
.b5-quick button{position:relative;border-radius:9px;border-left:3px solid #82a96b;min-height:83px}.b5-quick button:nth-child(2){border-left-color:#e8bd7c}.b5-quick button:nth-child(3){border-left-color:#8bc9b6}.b5-quick button:nth-child(4){border-left-color:#c5a3df}.b5-quick button:after{content:'›';position:absolute;right:9px;top:9px;color:#b9d3a2;font-size:18px}.b5-quick button b{padding-right:10px}.b5-pace button{min-height:44px}.b5-time-grid button{min-height:48px}
.nav button.on{background:#c8f36d16}.nav button.on svg{stroke-width:2.5}.nav button{font-size:11px}.btn:not(.sm){min-height:44px}.btn:active,.rl-choice:active,.lw-card:active,.studio-hair-grid button:active{transform:scale(.98)}.sheet{border-top:1px solid #78936b}.rl-choice{border-left:3px solid #6c9671;gap:10px;min-height:50px}.rl-choice.danger{border-left-color:#ff9292}.rl-person{border-radius:12px}.rl-profile .rl-portrait{outline:1px solid #98b37e;outline-offset:2px}.rl-event-hero{background:radial-gradient(ellipse at 50% 25%,#627b44,#17342a 75%)}.lw-card{border-bottom:2px solid #5c805d}.tabs button{min-height:39px}.tabs button.on,.seg button.on{box-shadow:inset 0 -3px #749a37}.rl-meter i,.lw-item{border-radius:5px}
.studio-stage{background:radial-gradient(ellipse at 45% 30%,#749267 0%,#305342 43%,#132d25 80%)}.studio-preview{border-color:#779268;background:#162c24}.studio-stage-grid{opacity:.25}.studio-id{padding:14px 10px}.studio-id b{color:#f5f8e8}.studio-section-label{color:#b4cc95;letter-spacing:.14em}.studio-hair-grid{gap:7px}.studio-hair-grid button{border-color:#48614e;background:#1b3027;position:relative;padding:5px 3px 9px}.studio-hair-grid button.on{background:#365038;border:2px solid var(--gold);padding:4px 2px 8px;color:#e6ffb8}.studio-hair-grid button.on:after{content:'✓';position:absolute;right:4px;top:4px;background:var(--gold);color:#18301d;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900}.studio-hair-grid .avatar{max-height:90px}.studio-form .swatch.on{outline:2px solid var(--gold);outline-offset:2px}.studio-form .opts button:not(.swatch){min-height:44px}.studio-clubs button.on{background:#385439;color:#e5ffc1;border-color:var(--gold)}.studio-creator .studio-footer{background:#11251fef;border-top:1px solid #65805a;backdrop-filter:blur(8px)}
/* Match: less chrome, more pitch. Settings are accessible but collapsed by default. */
.pg-official .sheet{background:#11241d}.pg-official .pg-wrap{padding-inline:10px}.pg-official .pg-head{margin-bottom:5px;gap:8px}.pg-official .pg-head h2{font-size:20px;line-height:1.05}.pg-official .pg-kicker{font-size:9px;letter-spacing:.07em}.pg-official .pg-close{width:37px;height:37px;flex:none;border-radius:8px;background:#203b31;border-color:#53785f}.pg-live-score{background:#0a1a16;border-radius:8px;border-color:#6c885e;min-height:42px}.pg-live-score strong{font-size:26px;color:#ecf9d7}.pg-situation b{font-size:13px}.pg-situation span{font-size:11px;line-height:1.25}.pg-official .pg-field,.pg-official.pg-build .pg-field{max-width:min(100%,410px,max(204px,calc((100dvh - 278px)*.818)));border:1px solid #8caf76;outline:0;border-radius:10px;box-shadow:0 6px 14px #04120c55}.pg-tools{margin-top:7px;gap:5px}.pg-kind button,.pg-styles button{background:#21382f;border-color:#496957;border-radius:7px;min-height:38px;font-size:12px}.pg-kind button.active,.pg-styles button.active{background:#c8f36d;border-color:#c8f36d;color:#132719;box-shadow:inset 0 -3px #7ea63f}.pg-styles button{min-height:33px;font-size:11px}.pg-chain{color:#c9dfb8;font-size:11px;font-weight:700;margin-top:6px}.pg-settings{margin-top:5px}.pg-settings summary{font-size:11px;color:#b6cdb6;cursor:pointer;padding:5px 2px;min-height:28px;list-style:none;display:flex;justify-content:space-between;align-items:center}.pg-settings summary::-webkit-details-marker{display:none}.pg-settings summary span{font-size:16px;color:#d6ecbf}.pg-settings[open] summary{color:#e6f7d4}.pg-control{margin-top:0}.pg-control button{min-height:36px}.pg-official .pg-feedback{min-height:27px;font-size:11px;line-height:1.25}.pg-actions .btn{min-height:43px;font-size:12px}.pg-official #pgReset{background:transparent;border-color:#496957}.pg-banner{border-radius:8px}.pg-banner.success{border:2px solid #c8f36d;background:#12291df2}.pg-banner.success strong{font-size:clamp(24px,8vw,38px);letter-spacing:-.035em}.pg-banner.b5-celebrate:before{content:'MATCH DAY';letter-spacing:.19em;color:#d9f49f}.pg-banner[data-event=assist].success strong{color:#a5efd5}
@media(max-height:740px) and (max-width:699px){.pg-official .pg-field,.pg-official.pg-build .pg-field{max-width:min(100%,360px,max(180px,calc((100dvh - 292px)*.818)))}.pg-official .pg-wrap{padding-top:calc(5px + env(safe-area-inset-top,0px))}.pg-official .pg-feedback{min-height:23px}.pg-official .pg-head h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.btn:active,.rl-choice:active,.lw-card:active,.studio-hair-grid button:active{transform:none}.b5-main-cta:active{transform:none}}
/* Physical profile: distinct groups, with a compact persistent player preview. */
.studio-look-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0 2px;background:#142720;border:1px solid #496651;border-radius:10px;padding:5px}.studio-look-tabs button{padding:9px 4px;min-height:42px;font:750 12px system-ui;color:#c3d5c4;border-radius:6px;border:1px solid transparent}.studio-look-tabs button.on{color:#12271a;background:var(--gold);border-color:#d6f89e}.studio-look-panel[hidden]{display:none!important}.studio-look-panel .studio-section-label{margin:12px 0 10px;padding:2px 0 8px}.studio-look-panel .field{margin-top:12px}.studio-preview:has(.ink-player){grid-template-columns:1.06fr .94fr}.studio-stage:has(.ink-player){min-height:245px;background:radial-gradient(ellipse at 40% 25%,#7b9b67,#355845 48%,#142e25 85%)}.studio-stage .studio-player.identity-player{height:238px;max-width:100%}.studio-id .creator-kicker{font-size:9px}.studio-id .creator-measures{flex-wrap:wrap}.studio-creator .studio-form .opts button.on:not(.swatch){background:#355537;color:#e5ffc0;border-color:var(--gold)}.studio-creator .studio-steps>div.active{border-color:var(--gold);color:var(--gold2);background:#c8f36d12}.studio-creator .studio-steps>div.active b{color:var(--gold)}.studio-creator .studio-steps>div.active small{color:var(--gold2)}.studio-preview .studio-player{transition:filter .2s ease}.studio-hair-grid button.on{border-color:var(--gold)!important;background:#355237!important;box-shadow:0 0 0 1px var(--gold)}.studio-hair-grid button.on span{color:#dcffae}.studio-creator .studio-footer{background:#13291fed!important}
@media(min-width:700px){.studio-stage:has(.ink-player){min-height:300px}.studio-stage .studio-player.identity-player{height:292px}}@media(max-width:350px){.studio-stage:has(.ink-player){min-height:218px}.studio-stage .studio-player.identity-player{height:212px}.studio-look-tabs button{font-size:11px}}
/* Gentle idle motion only on the large studio preview, never on thumbnails. */
@media(prefers-reduced-motion:no-preference){.studio-stage .studio-player{transform-origin:50% 94%;animation:fl51Idle 3.8s ease-in-out infinite}@keyframes fl51Idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.6px)}}}
