:root{color-scheme:dark;--bg:#14141c;--panel:#1f1f27;--head:#29292e;--text:#f7f7f9;--muted:#9c9ba6;--red:#f0151f;--line:#3a3a43;--safeT:env(safe-area-inset-top,0px);--safeB:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,'Arial',system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #f34a50;outline-offset:2px}button:disabled{opacity:.4;cursor:not-allowed}#app{min-height:100dvh;padding-bottom:calc(110px + var(--safeB))}.loading{height:95vh;display:grid;place-items:center;letter-spacing:.1em;font-weight:900;font-size:26px}.masthead{background:var(--head);padding:calc(var(--safeT) + 28px) 24px 0;min-height:160px}.masthead.home-head{min-height:122px;padding-top:calc(var(--safeT) + 34px)}.headline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:28px}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-logo{font-size:44px;font-weight:1000;letter-spacing:-.18em;padding-right:8px;font-style:italic;line-height:1;color:var(--red);transform:skewX(-8deg)}.brand-sub{font-size:12px;letter-spacing:.15em;font-weight:800;color:#ccc}.page-title,.big-title{font-size:44px;line-height:.91;font-weight:1000;letter-spacing:-.07em;font-style:italic;text-transform:uppercase}.big-title{font-size:35px}.year-pill{background:linear-gradient(150deg,#626167,#343439);border:1px solid #64646a;border-radius:50px;padding:10px 24px;font-size:23px;font-weight:600;box-shadow:inset 0 1px 0 #7776}.iconbtn{background:#18181c;border:1px solid #414147;border-radius:50%;height:48px;width:48px;color:white;display:grid;place-items:center;font-size:24px}.header-tools{display:flex;gap:8px;align-items:center}.subtabs{display:flex;align-items:stretch;justify-content:space-around;gap:8px;margin:1px -24px 0}.subtab{background:transparent;border:0;color:#a1a0a7;font-weight:750;padding:8px 5px 19px;min-width:0;flex:1;position:relative;font-size:17px}.subtab.active{color:#fafafa}.subtab.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background:var(--red)}.content{padding:25px 24px 0;max-width:700px;margin:0 auto}.home-content{padding-top:26px}.hero-topline{background:#080808;padding:13px 22px;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 -24px;color:white}.hero-topline .r{font-size:12px;color:#aaa}.hero-topline .gp{font-size:23px;line-height:1.2;font-weight:850}.chip{display:inline-block;font-size:11px;font-weight:850;letter-spacing:.1em;color:#fff;background:var(--red);padding:4px 7px;border-radius:3px}.quick-links{display:flex;overflow:auto;gap:9px;scrollbar-width:none;padding:2px 0 22px}.quick-links button{border:0;white-space:nowrap;border-radius:24px;padding:11px 18px;font-size:15px;background:#2e2e38;color:white;font-weight:700}.home-hero{height:330px;border-radius:14px;overflow:hidden;position:relative;background:radial-gradient(ellipse at 75% 32%,#d0252a 0,transparent 29%),linear-gradient(145deg,#290b13,#15151c 55%,#610e17);border:1px solid #36343b;display:flex;align-items:flex-end;padding:22px}.home-hero:before{content:"";position:absolute;inset:-20% -20%;background:repeating-linear-gradient(155deg,transparent 0 58px,rgba(255,255,255,.04) 58px 60px),linear-gradient(30deg,transparent 38%,rgba(255,20,36,.2) 39% 44%,transparent 45%);transform:skew(-8deg)}.home-hero:after{content:"";position:absolute;top:55px;right:15px;width:64%;height:105px;border:18px solid rgba(255,255,255,.18);border-radius:20% 55% 15% 20%;transform:rotate(-13deg);filter:blur(1px)}.hero-words{position:relative;z-index:1}.hero-words h2{font-weight:950;font-size:34px;line-height:1.03;letter-spacing:-.045em;margin:8px 0}.hero-words p{color:#dad5d6;font-size:15px;margin:0}.small-kicker{font-weight:850;text-transform:uppercase;letter-spacing:.12em;font-size:12px;color:#bdbbc0}.section-heading{font-size:26px;letter-spacing:-.06em;font-weight:950;margin:27px 0 12px;text-transform:uppercase}.quickcard{padding:15px 16px;background:#23232d;border:1px solid #373741;border-radius:15px;display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.quickcard .n{font-weight:800;font-size:17px}.quickcard .sub{color:#aaa;font-size:13px;padding-top:4px}.arrow{color:#f0151f;font-size:25px;font-weight:800}.notice{background:#25252f;border:1px solid #363641;padding:13px 16px;border-radius:12px;color:#d2d1d7;font-size:13px;line-height:1.5;margin:6px 0 17px}.notice strong{color:white}.schedule-wrap{display:flex;flex-direction:column;gap:16px}.schedule-info{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#999aa4;margin-bottom:1px}.round-card{width:100%;display:block;text-align:left;border:0;border-radius:13px;background:#202028;color:white;padding:23px 21px 18px;position:relative;overflow:hidden;min-height:195px}.round-card .round-no{font-size:12px;font-weight:850;letter-spacing:.04em;color:#f2f2f4}.round-card h2{font-size:26px;letter-spacing:-.05em;line-height:1.12;margin:13px 0 9px;font-weight:900}.round-card .full-gp{color:#a7a7b2;font-size:13px;text-transform:uppercase;max-width:86%;font-weight:600;line-height:1.42;min-height:38px}.race-bottom{display:flex;align-items:end;justify-content:space-between;margin-top:25px;gap:12px}.dates{font-weight:750;letter-spacing:.13em;font-size:18px;font-family:ui-monospace,'Courier New',monospace}.circuit-outline{width:86px;height:52px;opacity:.75}.circuit-outline path{stroke:#f5f5f6;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill:none}.round-card.featured{min-height:308px;background:linear-gradient(0deg,rgba(9,9,17,.7),rgba(10,10,14,.15)),radial-gradient(ellipse at 80% 50%,#92353d 0,transparent 35%),linear-gradient(110deg,#54545d,#292b37 75%);border:1px solid #59515a;padding:25px 22px}.round-card.featured:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(164deg,transparent 0 22px,rgba(255,255,255,.055) 22px 32px,transparent 32px 72px);opacity:.7}.round-card.featured .card-inner{position:relative;z-index:1;display:flex;flex-direction:column;min-height:257px}.round-card.featured h2{font-size:35px;margin:15px 0}.round-card.featured .race-bottom{margin-top:auto}.round-card.featured .dates{font-size:21px}.next-tag{position:absolute;right:0;top:0;background:#fff;color:#de1520;padding:8px 10px;font-weight:900;font-size:13px;border-radius:5px}.status-dot{font-size:11px;color:#bcbcc5;margin:0 0 4px}.results-wrap{padding-top:25px}.filter-row{display:flex;gap:10px;margin-bottom:29px}.select-wrap{position:relative;min-width:0;flex:1}.filter-select{appearance:none;-webkit-appearance:none;background:transparent;border:2px solid #ececf0;border-radius:50px;padding:12px 34px 12px 16px;color:white;font-size:15px;font-weight:800;width:100%;height:52px;text-overflow:ellipsis;outline:none}.filter-select option{background:#292932;color:#fff}.select-wrap:after{content:"";position:absolute;border-right:2px solid white;border-bottom:2px solid white;right:17px;top:20px;height:8px;width:8px;transform:rotate(45deg);pointer-events:none}.race-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:155px;margin-bottom:16px}.race-result-head .big-title{max-width:75%;overflow-wrap:break-word}.badge-symbol{font-size:46px;line-height:1;text-align:center;filter:saturate(.85);opacity:.95}.reshead-small{color:#a5a5ae;font-size:13px;margin-top:11px}.table-head{display:grid;grid-template-columns:28px 1fr 88px 28px;gap:9px;color:#aaa9b2;font-size:11px;font-weight:700;padding:10px 0 16px;border-bottom:2px solid #575660;text-transform:uppercase}.table-head span:nth-child(3),.table-head span:nth-child(4){text-align:right}.result-row{display:grid;grid-template-columns:28px minmax(0,1fr) 88px 28px;gap:9px;align-items:center;padding:13px 0;border-bottom:1px solid #3a3943;min-height:77px}.position{font-weight:750;font-size:17px}.driver-cell{display:flex;align-items:center;min-width:0;gap:10px}.driver-avatar{height:50px;width:40px;flex-shrink:0;display:grid;place-items:end center;border-radius:6px 6px 3px 3px;overflow:hidden;position:relative;background:linear-gradient(150deg,#393a45,#15151d)}.driver-avatar:before{content:"";position:absolute;width:25px;height:25px;border-radius:50% 50% 42% 42%;background:#d2bcae;top:5px;left:7px}.driver-avatar:after{content:"";width:44px;height:26px;background:var(--team,#888);position:relative;border-radius:45% 45% 3px 3px}.driver-avatar em{font-style:normal;font-size:10px;font-weight:850;position:absolute;bottom:8px;z-index:2}.driver-info{min-width:0}.driver-name{font-size:17px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-name{font-size:13px;color:#a4a3ac;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time-cell,.pts-cell{text-align:right;font-size:13px;white-space:nowrap;font-weight:700}.empty{padding:30px 19px 25px;text-align:center;border:1px dashed #585863;border-radius:15px;margin:14px 0 20px;background:#212129}.empty-flag{font-size:36px;color:#f12d35;margin-bottom:12px}.empty h3{font-size:21px;margin:0 0 9px}.empty p{font-size:14px;line-height:1.5;color:#b6b6c0;margin:0 0 17px}.red-btn,.secondary-btn{border:none;background:var(--red);color:#fff;padding:13px 17px;border-radius:9px;font-size:14px;font-weight:850}.secondary-btn{background:#373742;border:1px solid #555460}.classification-title{font-size:29px;font-weight:1000;line-height:1;letter-spacing:-.07em;font-style:italic;text-transform:uppercase;margin:5px 0 18px}.leader-row{display:flex;align-items:center;gap:12px;background:#22222a;border:1px solid #3b3942;border-radius:12px;padding:13px;margin-bottom:10px}.leader-rank{width:25px;color:#f0f0f0;font-size:19px;font-weight:750}.leader-teamstripe{width:5px;align-self:stretch;background:var(--team,#888);border-radius:5px}.leader-driver{flex:1;min-width:0}.leader-driver strong{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leader-driver span{color:#a7a6ae;font-size:12px;display:block;margin-top:3px}.leader-pts{font-size:18px;font-weight:850}.leader-pts span{font-size:11px;color:#aaa}.bottom-nav{position:fixed;z-index:30;bottom:calc(13px + var(--safeB));left:clamp(12px,5vw,36px);right:clamp(12px,5vw,36px);height:79px;border-radius:45px;background:rgba(60,60,70,.96);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(175,175,190,.4);box-shadow:0 9px 38px #05050ad0, inset 0 1px 0 #676774;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:5px}.nav-btn{border:0;background:none;border-radius:40px;color:#fff;height:70px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0}.nav-btn .nav-icon{width:29px;height:29px;display:block}.nav-btn span{font-size:10px;font-weight:650;white-space:nowrap}.nav-btn.active{background:rgba(21,21,33,.75);color:var(--red)}.nav-btn.is-disabled{opacity:.55}.form-section{border:1px solid #373742;background:#21212a;border-radius:14px;padding:16px;margin:0 0 18px}.form-section h2{font-size:20px;margin:0 0 8px}.form-section p{font-size:13px;color:#b8b8c2;line-height:1.5;margin:0 0 14px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.field label{font-size:12px;font-weight:850;color:#c5c4cd}.field input,.field select,.field textarea{background:#14141d;color:#fff;border:1px solid #5c5b66;border-radius:9px;padding:12px 13px;width:100%;min-height:45px}.field textarea{min-height:115px;resize:vertical;line-height:1.6}.form-actions{display:flex;flex-wrap:wrap;gap:9px}.settings-title{font-size:30px;font-style:italic;letter-spacing:-.04em;font-weight:950;margin:0 0 12px}.hint{font-size:12px;color:#a7a7b2;line-height:1.5;margin-top:8px}.toast{position:fixed;z-index:40;bottom:calc(108px + var(--safeB));left:50%;transform:translateX(-50%);max-width:90%;text-align:center;background:#f0f0f4;color:#19191f;font-size:13px;font-weight:850;padding:12px 16px;border-radius:10px;box-shadow:0 7px 26px #0008}.chip-red{color:#ef333b}.detail-summary{font-size:14px;color:#aaa;margin:13px 0 24px}.detail-item{padding:14px;border:1px solid #3b3a45;border-radius:12px;background:#22222b;margin-bottom:10px}.detail-item strong{font-size:15px}.detail-item p{margin:5px 0 0;color:#a5a5b0;font-size:12px}.minor-btn{display:inline-flex;align-items:center;gap:8px;background:transparent;border:1px solid #60606b;border-radius:10px;color:#eee;padding:9px 13px;font-size:13px;font-weight:750}.sticky-back{margin-bottom:18px}.muted{color:var(--muted)}.footer-note{color:#74747f;text-align:center;font-size:11px;line-height:1.5;margin:23px 10px 0}.offscreen{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media(min-width:700px){.masthead{padding-left:max(24px,calc((100vw - 660px)/2));padding-right:max(24px,calc((100vw - 660px)/2))}.subtabs{margin-left:0;margin-right:0}.hero-topline{margin:0}.content{padding-left:24px;padding-right:24px}.bottom-nav{left:50%;transform:translateX(-50%);width:610px}.home-hero{height:370px}}@media(max-width:370px){.content{padding-left:18px;padding-right:18px}.masthead{padding-left:18px;padding-right:18px}.subtabs{margin-left:-18px;margin-right:-18px}.subtab{font-size:15px}.page-title{font-size:37px}.filter-select{font-size:13px;padding-left:10px}.select-wrap:after{right:12px}.driver-name{font-size:15px}.driver-avatar{width:32px}.table-head,.result-row{grid-template-columns:23px minmax(0,1fr) 76px 23px;gap:5px}.nav-btn span{font-size:9px}}

/* F1 Career Hub 1.1 — reference-driven mobile layout. */
:root{--bg:#14141c;--panel:#202026;--head:#29292d;--red:#ed161f;--muted:#9f9fa7;--line:#44434b;color-scheme:dark}
html,body{width:100%;max-width:100%;overflow-x:hidden;background:var(--bg)}
#app{min-height:100dvh;padding-bottom:calc(106px + env(safe-area-inset-bottom,0px));overflow-x:clip}
.masthead{background:var(--head);padding:calc(var(--safeT) + 28px) 16px 0;min-height:114px;height:114px;position:relative}
.masthead.home-head{padding:calc(var(--safeT) + 35px) 19px 0;min-height:115px;height:115px}
.masthead.results-head{padding-top:calc(var(--safeT) + 28px);min-height:160px;height:160px}
.headline{padding-bottom:0;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.official-mark{display:block;width:98px;height:auto;object-fit:contain}
.page-title{display:block;font-family:'Arial Black',Arial,system-ui,sans-serif;font-style:normal;font-size:29px;font-weight:1000;line-height:1;letter-spacing:-.085em;text-transform:uppercase;transform:scaleX(1.03);transform-origin:left center}
.home-tool-row{display:flex;gap:10px}.round-tool{width:47px;height:47px;border-radius:50%;display:grid;place-items:center;background:#141419;color:#fff;border:1px solid #383841;box-shadow:0 4px 10px #10101455;padding:0}.round-tool .head-icon{width:27px;height:27px}.pin-tool{font-size:28px;font-weight:800}
.year-pill{border-radius:28px;height:44px;padding:4px 16px;background:linear-gradient(160deg,#525254,#333335);border:1px solid #5c5c60;font-weight:500;font-size:17px;box-shadow:inset 0 1px 1px #8a8a8a44}
.spoiler-pill{display:block;height:44px;min-width:159px;border:1px solid #ef3534;background:#e71414;color:white;border-radius:25px;font-size:15px;font-weight:750;padding:8px 13px;white-space:nowrap}
.spoiler-pill strong{font-weight:850}
.subtabs{margin:12px -16px 0;height:46px;display:flex;align-items:stretch;gap:0;justify-content:space-between}
.subtab{font-family:Arial,system-ui,sans-serif;font-size:15px;font-weight:700;color:#98989e;min-width:0;flex:1;padding:9px 0 15px}
.subtab.active{color:#f9f9fa}.subtab.active:after{bottom:0;height:3px;left:12px;right:12px}
.content{width:100%;max-width:480px;margin:0 auto;padding:18px 24px 0}
/* HOME */
.hero-topline{margin:0;background:#050505;min-height:50px;padding:10px 23px;display:flex;align-items:center;justify-content:space-between}
.hero-topline .r{font-size:12px;color:#e1e1e1;line-height:1.15;font-family:ui-monospace,monospace;letter-spacing:.02em}
.hero-topline .r i{display:inline-block;border-left:1px solid #bbb;height:11px;vertical-align:middle;margin:0 6px}
.hero-topline .gp{font-size:17px;letter-spacing:-.03em;font-weight:900;line-height:1.25;margin-top:3px}
.hero-topline .gp b{font-size:27px;vertical-align:-1px;font-weight:500}
.topline-right{display:flex;gap:13px;align-items:center}.topline-tag{border:2px solid #fff;background:linear-gradient(#235b42 50%,#b92130 50%);color:white;font-size:10px;font-weight:950;padding:5px 3px}.topline-stamp{border:4px solid #ad222d;background:#bdbdbd;color:#ac303c;border-radius:50%;width:30px;height:30px;display:grid;place-items:center}
.home-content{padding-top:24px}.quick-links{gap:9px;overflow-x:auto;padding:0 0 15px;scrollbar-width:none;margin-right:-24px}.quick-links button{background:#303038;border:0;border-radius:21px;padding:8px 13px;font-size:12px;font-weight:800;white-space:nowrap;color:#f2f2f3}
.editorial-card{display:block;width:100%;aspect-ratio:623/521;border-radius:8px;overflow:hidden;background:#1c1c25}.editorial-card img{display:block;width:100%;height:100%;object-fit:cover}
.story-list{display:flex;gap:10px;justify-content:space-between;margin:16px -3px 0;overflow:hidden;min-width:0}.story-item{width:calc((100% - 30px)/4);min-width:0;flex:0 0 calc((100% - 30px)/4);text-align:center}.story-item img{display:block;width:100%;aspect-ratio:1;border-radius:50%;object-fit:cover;border:2px solid #e21c2b}.story-item span{font-size:10px;line-height:1.35;font-weight:750;display:block;margin-top:5px}
.home-divider{display:flex;align-items:center;justify-content:space-between;margin-top:28px;gap:10px}.home-divider span{font-size:21px;letter-spacing:-.06em;font-weight:1000}.home-divider small{font-size:12px}.career-preview{margin:16px 0 0;padding:18px;border:1px solid #3d3d46;border-radius:9px;background:#202029}.career-preview h2{font-size:18px;margin:0 0 4px}.career-preview p{color:#b1b1b9;font-size:12px;margin:6px 0 14px}.career-preview p span{opacity:.5}
/* SCHEDULE */
.schedule-content{padding-top:0}.schedule-wrap{display:flex;flex-direction:column;gap:16px}.round-card{border:0;background:#1e1e25;color:#fff;min-height:148px;height:148px;border-radius:8px;padding:15px 13px 12px;position:relative;display:block;width:100%;text-align:left;overflow:hidden}
.round-card .card-inner{position:relative;z-index:1;height:100%;min-height:0;display:flex;flex-direction:column}
.round-card .round-no{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:850;line-height:1.2;letter-spacing:0;color:#ededf0}.round-card .flag-icon{font-size:15px;line-height:1.1}
.round-card h2{font-weight:900;font-size:24px;line-height:1.1;letter-spacing:-.035em;margin:6px 0 6px}.round-card .full-gp{font-size:11px;font-weight:700;color:#a4a4aa;line-height:1.32;text-transform:uppercase;margin:2px 0;max-width:96%;min-height:0}
.round-card .race-bottom{display:flex;align-items:end;justify-content:space-between;gap:8px;margin-top:auto;min-height:40px}.round-card .dates{white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px;font-weight:750;letter-spacing:.035em;color:#fff}
.circuit-png{display:block;width:69px;height:57px;object-fit:contain;object-position:center bottom;opacity:.97;margin:0 -1px -9px 0}.circuit-outline{width:64px;height:41px;opacity:.87;margin:0 0 -6px}.round-card .circuit-outline path{stroke-width:4}
.round-card.featured{height:260px;min-height:260px;border-radius:8px;background:linear-gradient(180deg,#55555d,#12121b);border:0;padding:17px 15px 15px}
.round-card.featured:before{content:"";position:absolute;inset:0;background:none}.round-card.featured .card-inner{min-height:0;height:100%}.round-card.featured h2{font-size:26px;line-height:1.05;letter-spacing:-.035em;margin:7px 0}.round-card.featured .race-bottom{margin-top:auto}.round-card.featured .dates{font-size:18px}.round-card.featured .next-tag{right:-1px;top:0;background:#fff;color:#e21925;font-size:12px;font-weight:900;padding:11px 10px;border-radius:5px}
/* Realistic first-round photo card from the screenshot supplied for this demo. */
.round-card.usa-reference{background:#29272b url('./usa-reference-card.jpg') center / 100% 100% no-repeat}
.round-card.usa-reference .card-inner{opacity:0}
.footer-note{font-size:10px;margin:18px 0 0;color:#757580;text-align:center}
/* RESULTS */
.results-wrap{padding-top:16px}.filter-row{margin:0;display:flex;gap:8px}
.select-wrap{flex:1;min-width:0}.filter-select{height:43px;border-radius:25px;border:2px solid #f4f4f6;background:transparent;color:#f5f5f6;font-size:13px;font-weight:850;padding:6px 27px 6px 12px;line-height:1.1;overflow:hidden;text-overflow:ellipsis}
.select-wrap:after{top:15px;right:14px;width:7px;height:7px;border-width:2px}
.race-result-head{min-height:0;margin-top:32px;margin-bottom:26px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.race-result-head .big-title{display:block;font-family:'Arial Black',Arial,system-ui,sans-serif;max-width:74%;margin:0;font-weight:1000;font-size:24px;line-height:.90;font-style:italic;letter-spacing:-.087em;overflow-wrap:normal;word-break:normal;text-transform:uppercase}
.partner-logo{width:75px;max-height:110px;object-fit:contain;align-self:center}.race-country-symbol{font-size:48px;flex-shrink:0;filter:saturate(.8)}
.table-head,.result-row{display:grid;grid-template-columns:45px minmax(0,1fr) 82px 25px;column-gap:8px;align-items:center}
.table-head{font-size:11px;font-weight:500;color:#97979e;min-height:38px;border-bottom:2px solid #575761;padding:0 0 12px;text-transform:none}.table-head span:nth-child(3),.table-head span:nth-child(4){text-align:right;white-space:nowrap}
.result-row{border-bottom:1px solid #42424a;padding:8px 0;min-height:59px}.position{font-weight:600;font-size:15px}.driver-cell{display:flex;gap:8px;min-width:0;align-items:center}.driver-avatar{width:41px;height:46px;flex:0 0 41px;border-radius:0;background:#14141c;position:relative;overflow:hidden;display:flex;align-items:end;justify-content:center}
.driver-avatar img{width:100%;height:100%;object-fit:cover;object-position:center top}.driver-avatar:before,.driver-avatar:after{display:none}.driver-avatar>span{width:32px;height:36px;font-size:11px;display:grid;place-items:center;font-weight:800;border-bottom:4px solid var(--team,#999);background:linear-gradient(160deg,#3b3b44,#16161c)}
.driver-name{font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-name{font-size:12px;color:#96969d;margin-top:4px;line-height:1.25}
.time-cell,.pts-cell{font-size:11px;font-weight:650;color:#f1f1f5;text-align:right;white-space:nowrap}.pts-cell{font-weight:550}
.empty-result{min-height:130px;padding:27px 7px 20px;text-align:center;color:#c1c1c9}.empty-result p{font-size:13px;margin:0 0 12px}.add-results-link{font-size:12px;border:1px solid #696972;color:#fff;background:#292931;border-radius:25px;padding:9px 13px;font-weight:700}
.classification-title{font-style:normal;font-size:25px}
/* FLOATING NAV — fits safely within the actual iPhone viewport */
.bottom-nav{position:fixed;z-index:100;bottom:max(13px,env(safe-area-inset-bottom,0px));left:20px;right:20px;width:auto;height:64px;padding:4px;border-radius:38px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;background:rgba(58,58,68,.94);backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);border:1px solid rgba(165,165,178,.46);box-shadow:0 6px 30px #0009,inset 0 1px 1px #ffffff26;transform:none}
.nav-btn{height:56px;min-width:0;border-radius:33px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#fff;background:none}
.nav-btn .nav-icon{width:25px;height:25px;stroke-width:1.9px}.nav-btn span{font-size:9px;line-height:1.1;font-weight:550;white-space:nowrap;letter-spacing:-.015em}.nav-btn.active{background:rgba(19,19,30,.72);color:var(--red)}.nav-btn.is-disabled{opacity:.67}
.toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
/* Existing settings UI keeps its logic and remains readable. */
.settings-title{font-style:normal;font-size:27px}.notice{padding:12px;font-size:12px}.form-section{border-radius:10px}
@media(min-width:700px){.masthead{padding-left:max(16px,calc((100vw - 480px)/2 + 16px));padding-right:max(16px,calc((100vw - 480px)/2 + 16px))}.subtabs{margin-left:0;margin-right:0}.bottom-nav{left:50%;right:auto;width:440px;transform:translateX(-50%)}.hero-topline{max-width:480px;margin:auto}.content{padding-left:24px;padding-right:24px}}
@media(max-width:360px){.page-title{font-size:27px}.spoiler-pill{min-width:144px;font-size:13px}.filter-select{font-size:11.5px;padding-left:10px;padding-right:20px}.select-wrap:after{right:9px}.table-head,.result-row{grid-template-columns:29px minmax(0,1fr) 72px 24px;gap:5px}.driver-avatar{width:31px;flex-basis:31px}.driver-name{font-size:12px}.team-name{font-size:11px}.time-cell{font-size:10px}.round-card .dates{font-size:14px}.nav-btn span{font-size:8px}}

/* v1.2 · iPhone PWA polish — frosted safe-area, controls, density, typography */
:root{--head:#29292d;--bg:#14141c;--glass:rgba(55,55,64,.77)}
html{background:var(--head)}
body{background:var(--bg);min-height:100dvh;-webkit-tap-highlight-color:transparent}
/* Native iOS top status area stays clear; blur is the webpage below native white indicators. */
body::before{content:"";position:fixed;z-index:75;top:0;left:0;right:0;height:calc(env(safe-area-inset-top, 0px) + 18px);pointer-events:none;background:linear-gradient(180deg,rgba(22,22,29,.70) 0%,rgba(32,32,38,.24) 66%,rgba(38,38,43,0) 100%);-webkit-backdrop-filter:blur(18px) saturate(110%);backdrop-filter:blur(18px) saturate(110%);-webkit-mask-image:linear-gradient(black 0%,black 62%,transparent 100%);mask-image:linear-gradient(black 0%,black 62%,transparent 100%)}
/* Header stays frosted while cards scroll beneath, like the reference application. */
.masthead{position:sticky;top:0;z-index:60;background:rgba(42,42,46,.92);-webkit-backdrop-filter:blur(22px) saturate(115%);backdrop-filter:blur(22px) saturate(115%);isolation:isolate}
.masthead.home-head{position:relative;background:rgba(42,42,46,.97)}
.masthead .headline,.masthead .subtabs{position:relative;z-index:2}
.masthead::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(34,34,39,.24),transparent 72%);pointer-events:none}
.page-title{font-family:'Arial Black','Helvetica Neue',system-ui,sans-serif;font-style:normal;letter-spacing:-.082em;font-weight:950;font-size:30px}
.year-pill{appearance:none;-webkit-appearance:none;color:#f5f5f6;line-height:1;background:linear-gradient(150deg,#565658,#3b3b3f);border-color:#66666a;font-weight:500}
.spoiler-pill{color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18);border-color:#f3413b}
.pin-tool .head-icon{width:27px;height:27px;stroke-width:2.5px}
.official-mark{width:100px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.08))}
.hero-topline{border-top:1px solid rgba(255,255,255,.045);border-bottom:1px solid rgba(255,255,255,.08)}
.hero-topline .gp{letter-spacing:-.025em}
.hero-topline .r{font-size:12px}
.topline-stamp{width:36px;height:36px;border-width:4px;border-radius:50%;background:radial-gradient(circle,#ccc 0 27%,#8a202a 31% 42%,#bbb 45% 62%,#831822 64%);font-size:0;box-shadow:inset 0 0 0 1px #e7dad8}
.topline-tag{border-color:#eee;padding:5px 4px;line-height:.78;font-size:9px;text-shadow:0 1px 0 #171717}
.quick-links button{display:inline-flex;align-items:center;gap:6px;justify-content:center;background:#303039;border-radius:25px;font-weight:700;min-height:30px;padding:7px 12px}
.quick-links button[aria-disabled="true"]{cursor:default}
.quick-icon{height:16px;width:16px;stroke-width:1.8px;flex-shrink:0}
.story-item img{box-shadow:0 0 0 1px rgba(240,29,38,.3);border:2px solid #e21b2b}
.story-item span{font-size:10px;line-height:1.35}
/* completed weekends have the same distinct white date chip visible in the provided reference */
.round-card.completed .dates{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:#fff;color:#17171b;border-radius:5px;padding:6px 10px;margin-left:-1px;margin-bottom:1px;font-weight:800;font-size:13px;letter-spacing:.025em}
.round-card .round-no{font-weight:850}.round-card .flag-icon{display:inline-grid;place-items:center;width:17px;height:17px;flex:0 0 17px;font-size:17px;background:#eee;overflow:hidden;border-radius:50%;line-height:1}
.round-card .full-gp{font-size:11.5px;max-width:98%;line-height:1.35}
.round-card:not(.featured){background:#1d1d24}
.round-card:not(.featured) .circuit-png{width:74px;height:57px;margin-right:2px;margin-bottom:-6px}
.round-card:not(.featured) .race-bottom{align-items:flex-end;min-height:42px}
.round-card:active{filter:brightness(1.08)}
/* Actual titles from the user's career stay dynamic; no fictional position rows are inserted. */
.race-result-head{margin-top:31px;margin-bottom:26px;align-items:center}
.race-result-head .big-title{font-family:'Arial Black',Impact,system-ui,sans-serif;font-style:normal;font-weight:1000;letter-spacing:-.075em;line-height:.855;font-size:27px;max-width:75%;text-wrap:balance}
.race-result-head .big-title span{display:block;white-space:nowrap}
.race-result-head .big-title span:last-child{letter-spacing:-.08em;font-size:.89em}
.partner-logo{width:81px;max-height:104px}
.filter-select{font-weight:750}.table-head{color:#9d9da6}
.result-row{min-height:60px}.driver-name{font-weight:600}
.spoiler-active .result-row{filter:blur(7px);pointer-events:none;user-select:none}
.bottom-nav{background:var(--glass);-webkit-backdrop-filter:blur(34px) saturate(130%);backdrop-filter:blur(34px) saturate(130%);border-color:rgba(172,172,184,.42);box-shadow:0 4px 24px rgba(0,0,0,.29),inset 0 1px 1px #ffffff2a}
.nav-btn.active{background:rgba(20,20,31,.67)}
.nav-btn{touch-action:manipulation}
/* Native bottom home-indicator needs breathing room, even if the device has a zero safe inset. */
#app{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
@media(max-width:380px){.race-result-head .big-title{font-size:24px}.race-result-head .big-title span:last-child{font-size:.87em}.partner-logo{width:74px}.round-card.completed .dates{font-size:12px;padding:5px 8px}}
@media(prefers-reduced-transparency:reduce){.masthead{background:#29292d}.bottom-nav{background:#373741}body::before{-webkit-backdrop-filter:none;backdrop-filter:none}}


/* v1.3 — native PWA safe-area and typography corrections */
/* The old fixed 114/115/160px header sizes were smaller than safe-area + children.
   Use content-driven heights so no tab, heading or logo can spill into the next panel. */
.masthead,.masthead.home-head,.masthead.results-head{
  height:auto;min-height:0;
  padding-top:calc(env(safe-area-inset-top, 0px) + 10px);
  padding-bottom:10px;
  box-sizing:border-box;
}
.masthead{padding-left:24px;padding-right:24px}
.masthead.home-head{padding-left:21px;padding-right:21px;padding-bottom:13px}
.masthead.results-head{padding-bottom:0}
.headline{min-height:43px;height:auto;padding:0;align-items:center}
.official-mark{width:98px;height:auto;max-height:43px;object-fit:contain;display:block}
.masthead .page-title{font-size:30px;line-height:1.05;letter-spacing:-.074em;transform:none}
.masthead .subtabs{height:46px;flex-shrink:0;margin:12px -24px 0;align-items:stretch}
.subtab{height:46px;padding:10px 2px 13px;font-size:15px;line-height:1.1}
.subtab.active:after{bottom:0;height:3px;left:13px;right:13px}
.spoiler-pill{max-width:57%;font-size:15px;min-width:0;white-space:nowrap;padding:8px 12px}
.year-pill{height:44px;min-width:72px;font-size:17px}
/* Under a translucent sticky header, every piece of content must start below it. */
.schedule-content{padding-top:0}
.results-wrap{padding-top:17px}
.filter-row{position:relative;z-index:1;gap:9px;margin:0 0 0}
.filter-select{height:43px;font-size:12.8px;padding-left:12px;padding-right:26px;font-weight:760;border-width:2px}
/* Avoid the extreme compression caused by negative tracking + very short line-height. */
.race-result-head{min-height:0;margin-top:34px;margin-bottom:30px;gap:12px;align-items:center}
.race-result-head .big-title{
  font-family:'Arial Black','Arial',system-ui,sans-serif;
  font-size:clamp(21px,5.9vw,27px);
  font-weight:950;line-height:.99;letter-spacing:-.045em;
  max-width:none;min-width:0;flex:1;
  text-transform:uppercase;overflow-wrap:normal;word-break:normal;
  font-style:normal;text-wrap:initial;
}
.race-result-head .big-title span{display:block;white-space:nowrap}
.race-result-head .big-title span:last-child{font-size:.87em;letter-spacing:-.065em}
.partner-logo{display:block;flex:0 0 78px;width:78px;max-width:78px;max-height:105px;object-fit:contain}
.table-head{padding-bottom:13px;min-height:39px;align-items:end;grid-template-columns:43px minmax(0,1fr) 83px 25px;column-gap:6px;font-size:11px}
.result-row{grid-template-columns:43px minmax(0,1fr) 83px 25px;column-gap:6px}
.round-card{isolation:isolate}
.round-card.completed .dates{letter-spacing:.03em}
/* Keep content accessible behind the floating navbar and home indicator. */
#app{padding-bottom:calc(124px + env(safe-area-inset-bottom, 0px));}
.bottom-nav{bottom:max(16px, env(safe-area-inset-bottom, 0px));height:63px;padding:4px}
.nav-btn{height:55px}
/* Tablet/desktop header is still constrained to the app column. */
@media(min-width:700px){
 .masthead,.masthead.home-head,.masthead.results-head{
 padding-left:max(24px,calc((100vw - 480px)/2 + 24px));
 padding-right:max(24px,calc((100vw - 480px)/2 + 24px));}
 .masthead .subtabs{margin-left:0;margin-right:0}
}
@media(max-width:380px){
 .masthead .page-title{font-size:27px}
 .spoiler-pill{font-size:13.5px;padding:8px 11px}
 .race-result-head .big-title{font-size:clamp(19px,5.5vw,23px)}
 .partner-logo{flex-basis:70px;width:70px;max-width:70px}
 .table-head,.result-row{grid-template-columns:36px minmax(0,1fr) 74px 24px;column-gap:5px}
}
/* Honor reduced transparency while keeping text legible on all iPhones. */
@media(prefers-reduced-transparency:reduce){.masthead{background:#29292d}}

/* v1.3 refinement: match the wider, heavier five-line GP lockup. */
.race-result-head .big-title{font-size:clamp(27px,7.55vw,31px);line-height:.86;letter-spacing:-.055em}
.race-result-head .big-title span:last-child{font-size:.85em;letter-spacing:-.072em}
@media(max-width:380px){.race-result-head .big-title{font-size:clamp(26px,7.5vw,29px)}}


/* v1.4 — type-specific GP headline matching the supplied reference proportions.
   The official F1 custom font is proprietary. Saira Stencil One (OFL) is loaded
   from Google Fonts at runtime; no proprietary or font files are packaged. */
.race-result-head{gap:15px;align-items:center;justify-content:space-between}
.race-result-head .big-title{font-style:normal;margin:0;letter-spacing:0;line-height:1;overflow:visible;font-family:'Saira Stencil One','Inter Display','Arial Black',sans-serif}
.race-result-head .big-title.gp-special{min-width:0;flex:1 1 auto;width:auto;max-width:calc(100% - 92px);}
.race-result-head .gp-title-svg{width:100%;max-width:100%;height:auto;display:block;overflow:visible;filter:drop-shadow(0 0 .14px currentColor)}
.race-result-head .big-title.gp-generic{font-family:'Saira Stencil One','Inter Display','Arial Black',sans-serif;font-weight:900;font-size:clamp(24px,6vw,29px);line-height:.99;letter-spacing:-.025em;overflow-wrap:break-word}
.race-result-head .partner-logo{width:81px;max-width:81px;flex:0 0 81px;max-height:104px;object-fit:contain;align-self:center}
@media (max-width:380px){.race-result-head{gap:10px}.race-result-head .partner-logo{width:70px;max-width:70px;flex-basis:70px}.race-result-head .big-title.gp-special{max-width:calc(100% - 80px)}}

/* v1.4: coordinated F1-inspired stencil headings. */
.masthead .page-title{font-family:'Saira Stencil One','Inter Display','Arial Black',sans-serif;font-weight:400;letter-spacing:-.025em;-webkit-text-stroke:.4px currentColor;}
