.legacy-setup{display:none!important}
.race-entry{height:100%;min-height:0;width:100%;max-width:1040px;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 18px env(safe-area-inset-bottom);color:#fff9ec}
.re-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;flex-shrink:0}
.re-brand{font-size:12px;color:#e6cc9f;font-weight:700}.re-top button,.re-back{min-width:44px;min-height:44px;background:transparent;border:1px solid #e6cc9f66;border-radius:50%;color:#fff9ec;font-size:20px}
.re-main{flex:1;min-height:0;overflow:auto;padding:8px 4px 18px;overscroll-behavior:contain}
.re-main h1{margin:0 0 10px;font-size:clamp(28px,5vw,42px);font-weight:900;line-height:1.15;letter-spacing:-1px;color:#fff9ec}.re-main h1:focus{outline:none}
.re-sub{margin:0 0 20px;color:#e4e8d7;line-height:1.6;font-size:15px}
.re-progress{display:flex;gap:6px;align-items:center;justify-content:center;max-width:420px;margin:0 auto 22px}.re-progress span{flex:1;text-align:center;font-size:11px;color:#c4d1bd;border-bottom:3px solid #537461;padding:0 0 8px}.re-progress span.current{color:#f4d5a7;border-color:#edbd83;font-weight:800}
.re-step{max-width:590px;margin:auto;text-align:center}
.re-welcome{height:100%;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.re-welcome h1{font-size:clamp(40px,7vw,74px);margin:0;line-height:1.05}.re-welcome h1 em{font-style:normal;color:#edbd83}.re-welcome .re-sub{margin:8px 0 12px}.re-welcome .race-scene{transform:none;margin:8px 0 14px;width:260px;height:175px}
.re-primary{min-height:54px;border:1px solid #b88654;border-radius:13px;background:linear-gradient(135deg,#f4d5a7,#dfad73);color:#183d32;box-shadow:0 4px 0 #91633b;font:800 20px 'Rubik',Arial,sans-serif;padding:12px 22px;cursor:pointer}
.re-primary:disabled{background:#d7cfbf;color:#5e695f;box-shadow:none;cursor:default}.re-welcome .re-primary{width:min(100%,330px)}
.re-text{min-height:44px;border:0;background:transparent;color:#f4d5a7;font-size:14px;font-weight:700;padding:8px 12px;text-decoration:underline;text-underline-offset:4px}
.re-footer{flex-shrink:0;padding:10px 0 14px;display:flex;gap:10px;align-items:center;background:#123c31;border-top:1px solid #e6cc9f33}.re-footer .re-primary{flex:1;min-width:0}.re-back{flex:0 0 46px;border-radius:12px}
.re-links{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;font-size:12px}.re-links button{background:transparent;color:#e4e8d7;border:0;font-size:12px;min-height:44px;padding:6px 12px}
.re-resume{max-width:420px;width:100%;border-top:1px solid #d4b58b66;padding-top:10px;margin-top:10px}.re-resume p{font-size:12px;color:#e4e8d7;margin:4px 0}.re-resume button{width:100%;border:1px solid #d4b58b66;background:#ffffff0a;color:#fff9ec;border-radius:12px;min-height:48px;font-size:16px;font-weight:700}
.re-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.re-choice{border:1px solid #d3c5a5;background:#fff9ec;border-radius:18px;min-width:0;min-height:150px;color:#183d32;padding:20px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;font-family:inherit;position:relative;box-shadow:0 5px 0 #092a23}.re-choice[aria-pressed="true"]{outline:3px solid #edbd83;outline-offset:3px}.re-choice[aria-pressed="true"]::after{content:'✓';position:absolute;top:9px;right:10px;background:#235441;color:#fff9ec;border-radius:50%;width:24px;height:24px;font-size:16px;line-height:24px}
.re-choice strong{font-size:24px}.re-choice small{font-size:13px;color:#53685a}.re-math{font-size:clamp(22px,4vw,32px);font-weight:900;direction:ltr;padding:16px 8px;border:1px solid #d3c5a5;border-radius:10px;background:#f2ebda}.re-choice .re-count{font-size:44px;line-height:1}.re-choice.re-solo strong{font-size:19px}
.re-player-hero{width:100px;height:100px;margin:12px auto;border:3px solid #edbd83;border-radius:50%;overflow:hidden;background:#fff9ec}.re-field{max-width:340px;margin:12px auto;text-align:right}.re-field label{display:block;font-size:13px;margin-bottom:6px;color:#e4e8d7}.re-field input{width:100%;font:700 20px 'Rubik',Arial,sans-serif;background:#fff9ec;border:2px solid #d3c5a5;border-radius:12px;color:#183d32;padding:12px;text-align:right;user-select:text;-webkit-user-select:text}
.re-avatars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:360px;margin:12px auto}.re-avatar{aspect-ratio:1;min-width:0;border:2px solid transparent;border-radius:14px;background:#fff9ec;padding:2px;overflow:hidden}.re-avatar[aria-pressed="true"]{border-color:#edbd83;box-shadow:0 0 0 2px #edbd83}.re-avatar:disabled{opacity:.35;cursor:default}
.re-saved{max-width:440px;margin:12px auto}.re-saved summary{color:#f4d5a7;cursor:pointer;font-size:14px;min-height:44px;padding:12px 0}.re-saved-list{display:flex;gap:8px;flex-wrap:wrap;max-height:130px;overflow:auto;padding:5px}.re-saved-list button{border:1px solid #d4b58b66;border-radius:12px;background:#ffffff0a;color:#fff9ec;font-size:14px;min-height:44px;padding:7px 12px}.re-saved-list button:disabled{opacity:.4}.re-saved-list button[aria-pressed="true"]{background:#fff9ec;color:#183d32}
.re-error{color:#ffe0a7;min-height:24px;font-size:14px;margin:8px 0}.re-footnote{font-size:12px;color:#c4d1bd;line-height:1.5;margin:10px auto;max-width:400px}
.re-team{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin:22px auto}.re-person{max-width:130px;min-width:88px;display:flex;flex-direction:column;gap:8px;align-items:center;overflow-wrap:anywhere}.re-person .av{width:76px;height:76px;border-width:3px}.re-person b{font-size:16px}.re-summary{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:16px auto}.re-summary span{padding:7px 12px;border:1px solid #d4b58b66;border-radius:12px;font-size:13px;color:#e4e8d7}.re-how{color:#fff9ec;font-size:17px;line-height:1.8;margin:24px 0 12px}
@media(min-width:780px){.race-entry{max-width:900px}.re-main{padding-top:22px}.re-welcome{min-height:480px}.re-welcome .race-scene{transform:scale(1.2);margin:28px 0}.re-step{padding-top:14px}.re-footer{width:590px;max-width:100%;align-self:center}.re-player-hero{width:120px;height:120px}}
@media(max-height:720px){.re-top{min-height:54px}.re-welcome{gap:2px;min-height:300px}.re-welcome h1{font-size:40px}.re-welcome .race-scene{transform:scale(.8);margin:-10px 0;height:145px}.re-welcome .re-sub{font-size:13px;margin:5px 0}.re-welcome .re-footnote{margin:3px 0}.re-options{margin:16px 0}.re-choice{min-height:126px}.re-player-hero{width:76px;height:76px}.re-avatars{max-width:280px}.re-progress{margin-bottom:14px}.re-sub{margin-bottom:12px}}
@media(orientation:landscape) and (max-height:500px){.re-welcome{min-height:240px;display:grid;grid-template-columns:1fr 1fr;align-content:center;column-gap:28px}.re-welcome h1,.re-welcome .re-sub,.re-welcome .re-primary,.re-welcome .re-text,.re-welcome .re-footnote,.re-resume{grid-column:1}.re-welcome .race-scene{grid-column:2;grid-row:1/6;margin:0;justify-self:center;transform:scale(.9)}.re-choice{min-height:115px}.re-main{padding-top:4px}.re-team{margin:12px auto}.re-person .av{width:56px;height:56px}.re-how{margin:10px 0}.re-top{min-height:50px}.re-footer{padding:6px 0 10px}.re-footer .re-primary{min-height:46px;padding:8px 16px;font-size:18px}}
