/* v1.41 original RaceLab interface, visually inspired by the bright cobalt,
   white-space, lavender backgrounds, character cards and playful color rails
   of the Umamusume official character portal. Independent, unofficial UI. */
:root{--bg:#f5f5ff;--panel:#fff;--panel2:#fcfbff;--text:#303456;--muted:#737d9d;
 --line:#dde4fa;--line2:#e8ecfc;--mint:#23ad94;--mint2:#70d8b7;--red:#f15098;
 --gold:#ffc85a;--radius:20px;--portal-blue:#425ddc;--portal-pink:#f453a0;--portal-green:#59c987;
}
html{font-size:16px}
body{color:var(--text);font-family:'Noto Sans KR','Pretendard','Apple SD Gothic Neo',system-ui,sans-serif;
 background:radial-gradient(circle at 88% 12%,#fce6f8 0,transparent 24%),
 radial-gradient(circle at 3% 42%,#e2f2ff 0,transparent 26%),
 repeating-linear-gradient(128deg,transparent 0 85px,#e6e9fc61 85px 87px,transparent 87px 190px),
 linear-gradient(125deg,#f6f7ff,#fffbfd 55%,#f0fff6);
 line-height:1.58}
button,input,select,textarea{font-family:inherit;font-size:14px}
button{font-weight:800}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #5975ff;outline-offset:2px}
.rail{background:linear-gradient(100deg,#3e52d4,#5366ea 60%,#6576ee)!important;border-bottom:4px solid #ffd75e!important;
 box-shadow:0 7px 22px #2932aa28!important;min-height:82px;height:82px}
.brand{min-width:248px}.brand-mark{width:51px;height:51px;border-radius:17px;background:linear-gradient(140deg,#ffdb78,#f366ae 66%,#ec4990);box-shadow:0 4px 0 #d53d82,0 7px 20px #10166855}
.brand-text b{font-size:23px;color:#fff!important;letter-spacing:-.7px}.brand-text b span{color:#fff9ab!important}
.brand-text small{font-size:11px;color:#dae4ff!important;letter-spacing:.9px}
.nav-item{font-size:14px!important;font-weight:850;color:#eaf0ff!important;padding:12px 19px;min-height:44px}
.nav-item:hover{background:#ffffff2c!important;color:#fff!important}
.nav-item.active{background:#fff!important;color:#4056cc!important;border-color:#fff!important;box-shadow:0 4px 0 #ffca6e,0 7px 13px #26358b44!important}
.nav-item.active .nav-icon{color:#e85ba0!important}
.rail-bottom{background:#ffffff22;border:1px solid #ffffff4a;color:#fff;font-size:11px}
.rail-bottom strong{color:#fff2a0;font-size:13px}
.tiny-orbit{color:#ffe59c}
.topbar{height:43px;background:#fff;border-bottom:1px solid #e1e7ff;padding-left:clamp(17px,4vw,60px)}
.breadcrumb{font-size:11px;font-weight:900;color:#6573a1}.breadcrumb strong{color:#e04d91}
.topbar-right{font-size:12px;color:#587495}
.page{max-width:1660px;padding:28px clamp(18px,3vw,48px) 52px}
.page-heading h1{letter-spacing:-1.2px}
#page-skills .page-heading,#page-advanced .page-heading,#page-research .page-heading{padding:26px 30px;background:#fff;border:2px solid #e8e8fa;border-left:8px solid var(--portal-blue);border-radius:22px;box-shadow:0 4px 0 #e4e6fd}
#page-skills .page-heading p,#page-advanced .page-heading p,#page-research .page-heading p{font-size:15px!important;line-height:1.7;color:#616b85}
.twinkle-hero{min-height:224px;padding:27px 40px!important;background:linear-gradient(111deg,#4c67ea 0%,#596cf0 32%,#df6bae 82%,#fa8ab6 100%)!important;border:4px solid #fff!important;border-radius:30px;
 box-shadow:0 7px 0 #c4bdf8,0 20px 34px #4955ca3a!important}
.twinkle-hero::before{inset:auto -44px -156px auto;width:570px;height:410px;content:'';display:block;border:27px solid #ffffff22;border-radius:50%;transform:rotate(-22deg);mask-image:none}
.twinkle-hero::after{content:'✦   ◇   ✧';font-size:37px;right:30px;top:10px;color:#ffffffa6;transform:rotate(-8deg)}
.twinkle-hero .eyebrow{color:#fff5b8;font-size:12px!important;letter-spacing:2.2px}
.twinkle-hero h1{font-size:clamp(29px,2.9vw,45px)!important;text-shadow:0 3px 0 #313eabc4}
.twinkle-hero p{font-size:15px!important;line-height:1.8;max-width:760px;color:#fbfaff!important}
.hero-model-status{display:inline-block;border-radius:99px;background:#ffffffed;padding:3px 12px;color:#5758c7;font-weight:850;font-size:12px}
.hero-horseshoe{background:#ffffff1b;border:2px solid #ffffff90;border-radius:22px}
.heading-actions .primary-btn{font-size:16px!important;min-height:52px;padding:12px 22px!important}
.heading-actions .ghost-btn{font-size:14px!important;min-height:49px}
.metric-strip>div{border:2px solid #e5e8fc!important;box-shadow:0 6px 0 #e0e4fa!important;padding:16px 20px!important;border-radius:19px}
.metric-strip small{font-size:12px!important;color:#69729a;font-weight:900}
.metric-strip b{font-size:26px}.metric-strip em{font-size:12px;color:#7a8197}
.metric-strip>div:nth-child(1){border-top:6px solid #f37dac!important}.metric-strip>div:nth-child(2){border-top:6px solid #68c7af!important}.metric-strip>div:nth-child(3){border-top:6px solid #f4c468!important}.metric-strip>div:nth-child(4){border-top:6px solid #719ce6!important}
.panel{background:#fff;border:2px solid #e5eafa;border-radius:23px;box-shadow:0 5px 0 #e2e7fc,0 12px 24px #4d55bb0d;overflow:hidden}
.panel-head{background:linear-gradient(95deg,#fbfbff,#f2f6ff);border-bottom:1px solid #e5e9f8;padding:15px 18px!important}
.panel-head h2{font-size:20px!important;color:#38436d;font-weight:950}
.panel-head p{font-size:12px!important;letter-spacing:.65px;color:#737c9b}
.step-tag,.advanced-step,.details-step{background:#4b61d9!important;color:#fff!important;border-radius:10px!important;font-size:14px!important;font-weight:950}
.setup-box{background:#fff!important;border:1px solid #e2e7f8;border-radius:17px}
.field-label{font-size:13px!important;letter-spacing:0!important;color:#5c6b91!important;font-weight:900}
.config-hint,.physics-note,.core-rule-summary small,.drawer-help,.info-note{font-size:13px!important;line-height:1.75}
.core-rule-summary span,.config-hint{color:#52668f}
#page-simulation select,#page-simulation input,#page-advanced select,#page-advanced input{min-height:42px}
.stamina-contest-choice{border-color:#cfdff8!important;background:#f9fbff!important;padding:11px 13px!important}
.stamina-contest-choice b{font-size:14px!important}.stamina-contest-choice small{font-size:12px!important;line-height:1.5}
.roster-name strong{font-size:14px!important;color:#354873}.roster-name small{font-size:11px!important;color:#6d8097}
.style-chip{font-size:13px!important;padding:6px 10px!important;border-radius:99px!important}
.roster-row{min-height:74px;gap:12px}
.roster-section-heading{font-size:11px!important;letter-spacing:.7px}
.race-telemetry small,.race-rank-label{font-size:11px!important}.race-telemetry strong{font-size:15px!important}
.event-peek,.runner-inspector,.selected-course{font-size:14px}
.event-row{font-size:12px!important}.inspector-grid small{font-size:12px!important}.inspector-grid strong{font-size:13px!important}
.runner-skill-main strong{font-size:15px!important}.runner-skill-main small{font-size:12px!important}
.results-content .result-name{font-size:13px!important}.results-content .result-name small{font-size:11px!important}
.library-grid .skill-list-item b{font-size:14px!important}.library-grid .skill-list-item small{font-size:12px!important}
.library-actions input,.library-actions label{font-size:14px!important}
.skill-info h2{font-size:22px!important}.skill-info .info-code{font-size:13px!important;line-height:1.8}
/* Drawer is a large character profile rather than a tiny form */
.runner-drawer{width:min(820px,94vw)!important;border-left:5px solid #6175e9!important;background:linear-gradient(120deg,#fff,#f9f9ff 55%,#fff7fc)!important;box-shadow:-25px 0 75px #34469b55!important}
.drawer-shade{background:#25377e93!important}
.drawer-head{padding:23px 30px!important;background:linear-gradient(110deg,#edf0ff,#fff6fd)!important;border-bottom:2px solid #e0e5ff}
.drawer-head h2{font-size:25px!important;color:#3c50ab!important}
.drawer-body{padding:12px 30px 40px!important;font-size:15px}
.drawer-footer{padding:17px 30px!important;border-top:2px solid #e4e9ff!important}
.drawer-footer button{min-height:49px;font-size:16px!important}
.drawer-group{margin-top:20px}.drawer-group h3{font-size:18px!important;color:#4555b5!important;border-bottom:1px solid #dfe5fa;padding:10px 0 7px;margin:16px 0 13px}
.drawer-group input,.drawer-group select{min-height:43px;font-size:15px!important;color:#34435d!important}
.drawer-stats label,.drawer-apt label{font-size:13px!important;color:#6b7299!important;font-weight:800}
.drawer-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.drawer-stats>div:last-child{grid-column:auto}
.drawer-apt{grid-template-columns:repeat(3,minmax(0,1fr))}
.drawer-help{color:#62728b!important}
.costume-skills-hub{padding:19px!important;margin-top:18px!important;background:linear-gradient(120deg,#f1f3ff,#fff8fd 48%,#f5fff9)!important;border:2px solid #dce3fc!important;border-radius:22px!important}
.hub-heading{padding-bottom:11px;border-bottom:1px dashed #d6d9ed}.hub-heading b{font-size:18px!important;color:#4356ad!important}.hub-heading b span{color:#e74d91!important}
.hub-heading small{font-size:12px!important}
.hub-label{font-size:16px!important;color:#4154ae!important;font-weight:950;display:flex;flex-wrap:wrap;margin:18px 0 11px!important}
.hub-label span{font-size:12px!important;color:#8a80ad!important}
.costume-card{min-height:70px;border:2px solid #e3dcf6!important;border-radius:15px!important;padding:12px 14px!important}
.costume-card strong{font-size:15px!important;color:#394c85!important;white-space:normal!important}
.costume-card small{font-size:12px!important;color:#687c96!important}
.costume-card em{font-size:12px!important}
.costume-card-mark{width:38px;height:38px;font-size:18px}
/* Two / three choice button selection, with rare skill ABOVE evolved skill */
.evolution-choice-group{background:#fff;border:2px solid #dde2f8;border-radius:20px;padding:17px 19px 14px;box-shadow:0 5px 0 #e5e8f9;display:grid;gap:14px;margin:10px 0 18px;position:relative;overflow:hidden}
.evolution-choice-group::before{content:'';position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(#6f80ea,#e88ebf 70%,#72d9a4)}
.choice-slot-heading{display:flex;gap:12px;align-items:center;border-bottom:1px solid #e7e9f8;padding-bottom:13px}
.choice-slot-number{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#5265d6;color:#fff;font-weight:900;font-size:17px;box-shadow:0 3px 0 #293fa7}
.choice-slot-heading strong{display:block;font-size:17px;color:#3d4d95;font-weight:950}
.choice-slot-heading small{display:block;font-size:12px;color:#7b839e;margin-top:2px}
.choice-skill-stack{display:grid;gap:8px}
.choice-skill-card{border:2px solid #e2e5f4;border-radius:15px;padding:12px 15px 13px;background:#fbfcff;position:relative;overflow:hidden}
.choice-skill-card.choice-base{border-left:7px solid #efa950;background:linear-gradient(110deg,#fffaf2,#fff 68%)}
.choice-skill-card.choice-evolved{border-left:7px solid #d464bb;background:linear-gradient(110deg,#fff5fb,#f9f8ff 72%)}
.choice-skill-card.is-current{border-color:#62c5a1;border-left-color:#22b885!important;box-shadow:0 0 0 2px #cff6e2 inset}
.choice-skill-card.is-uncertain{background:#fbfbff;color:#6c7896}
.choice-card-header{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px;align-items:center}
.choice-rank{font-size:11px;letter-spacing:1.15px;font-weight:950;color:#9a718a}
.choice-state{font-size:11px;color:#817d9a;font-weight:800}
.choice-skill-card.is-current .choice-state{color:#108c72}
.choice-skill-name{font-size:18px;font-weight:950;letter-spacing:-.5px;color:#3b4269;line-height:1.4}
.choice-skill-effect{font-size:14px;line-height:1.7;color:#65718b;margin-top:4px;overflow-wrap:anywhere;white-space:normal}
.choice-evidence{font-size:12px;color:#b76477;margin-top:7px;line-height:1.5}
.choice-actions{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
.choice-button{flex:1 1 140px;min-height:47px;padding:10px 12px;border-radius:14px;border:2px solid #cdd8f2;background:#f4f6ff;color:#4b5c93;font-size:14px!important;font-weight:900;box-shadow:0 3px 0 #e2e6f8;cursor:pointer}
.choice-button.evolution-choice{border-color:#efc7e6;background:#fff3fa;color:#a54588;box-shadow:0 3px 0 #f7def1}
.choice-button.chosen{border-color:#36b68d;background:#defbed;color:#168a68;box-shadow:0 3px 0 #99dfc1}
.choice-button:hover:not(:disabled){filter:brightness(.98);transform:translateY(-1px)}
.choice-button:disabled,.choice-clear:disabled{opacity:.46;cursor:not-allowed}
.choice-clear{border:0;background:transparent;color:#8d92a9;text-decoration:underline;padding:8px 5px;font-size:12px!important;cursor:pointer}
.choice-slot-note{font-size:12px;line-height:1.55;color:#777d9c;padding:3px 0}
.selected-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.selected-skill-card{padding:14px!important;border-radius:16px!important;min-height:96px}
.selected-skill-card b{font-size:15px!important}.selected-skill-card small{font-size:12px!important}.selected-skill-card em{font-size:11px!important}
.open-skill-picker{min-height:48px!important;font-size:15px!important}
.drawer-skill-choice b{font-size:14px!important}.drawer-skill-choice small{font-size:12px!important}
.scenario-evolution-panel{margin-top:19px}
.scenario-choices .slot-group-title{font-size:15px!important}
.evo-option-actions button,.rare-base-editor button{font-size:13px!important;min-height:43px}
.picker-panel{width:min(1140px,calc(100vw - 28px));height:min(92vh,990px);border-radius:25px}
.picker-head h2{font-size:24px!important}.picker-item-body strong{font-size:15px!important}.picker-effect{font-size:13px!important}.picker-item-body small{font-size:12px!important}.picker-action{font-size:12px!important}
.picker-skill-item{min-height:72px}
/* Mobile remains functional and readable without collapsing the actual race canvas */
@media(max-width:1200px){.rail{padding:0 15px;gap:3px}.brand{margin-right:14px;min-width:205px}.brand-text b{font-size:19px}.nav-item{font-size:12px!important;padding:11px 12px}.rail-bottom{display:none}}
@media(max-width:800px){.page{padding:18px 12px 30px}.rail{height:auto;min-height:70px;flex-wrap:wrap;padding:9px 12px}.brand{margin-right:auto;min-width:0}.nav-item{min-height:35px;padding:7px 10px;font-size:12px!important}.topbar{padding:0 12px}.twinkle-hero{padding:20px!important;min-height:225px}.twinkle-hero h1{font-size:28px!important}.twinkle-hero p{font-size:13px!important}.metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.runner-drawer{width:100vw!important}.drawer-body{padding:12px 17px 30px!important}.drawer-head,.drawer-footer{padding:16px 19px!important}.drawer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.drawer-stats>div:last-child{grid-column:span 2}.selected-skill-grid{grid-template-columns:1fr}.evolution-choice-group{padding:13px}.choice-button{flex:1 1 42%}.choice-skill-name{font-size:16px}.choice-skill-effect{font-size:13px}}
@media(max-width:480px){.choice-button{flex-basis:100%}.choice-clear{margin-left:auto}.hub-label span{width:100%}.page-heading{padding:18px}.panel-head h2{font-size:17px!important}.metric-strip b{font-size:21px}}
@media(prefers-reduced-motion:reduce){.choice-button:hover:not(:disabled){transform:none}}
/* Compact legacy hero used !important font/color rules. Explicitly supersede
   them so the redesigned header remains legible on its blue banner. */
.compact-race-hero{border:4px solid #fff!important;border-radius:28px!important;border-left:6px solid #ffe58e!important;min-height:205px!important;box-shadow:0 7px 0 #a7b1f1,0 15px 30px #394bb02e!important}
.compact-race-hero::before,.compact-race-hero::after{display:block!important}
.compact-race-hero h1{font-size:clamp(29px,3vw,43px)!important;color:#fff!important;text-shadow:0 3px 0 #3447a7!important}
.compact-race-hero .hero-copy .eyebrow{font-size:12px!important;color:#ffecac!important;letter-spacing:1.7px!important}
.compact-race-hero p{font-size:15px!important;color:#fffaf7!important;line-height:1.7!important}
.compact-race-hero .hero-horseshoe{color:#fce5a3!important;background:#ffffff25!important;border:2px solid #ffffff70!important;box-shadow:inset 0 0 22px #ffffff18!important}
.compact-race-hero .hero-model-status{font-size:12px!important;color:#4e59b7!important;border:1px solid #fff!important;background:#fffefa!important;border-radius:999px!important}
.compact-race-hero .heading-actions .primary-btn{font-size:16px!important;min-height:53px!important;border-radius:14px!important;padding:12px 19px!important}
.compact-race-hero .heading-actions .ghost-btn{font-size:14px!important;min-height:48px!important;padding:11px 16px!important;border-radius:14px!important}
#page-simulation .track-overlay-note{font-size:12px!important}
#page-simulation .race-rank-chip{font-size:12px!important;min-height:34px}
#page-simulation .live-details-head h3{font-size:18px!important;color:#455bb6}
#page-simulation .live-details-head p{font-size:12px!important}
#page-simulation .course-meter-caption{font-size:13px!important}
#page-simulation .course-meta{font-size:12px!important}
#page-simulation .core-rule-summary strong{font-size:15px!important}
#page-simulation .core-rule-summary span{font-size:13px!important}
#page-simulation .race-stage .stage-top{font-size:13px!important}
.source-note{font-size:12px!important;line-height:1.65}
@media(max-width:640px){.compact-race-hero h1{font-size:25px!important}.compact-race-hero .heading-actions{margin-left:0!important}.compact-race-hero{gap:12px}}
