@font-face{font-family:Heatwave;src:url('/assets/fonts/racing-display.ttf') format('truetype');font-display:swap;font-weight:400 900}@font-face{font-family:Barlow;src:url('/assets/fonts/arcade-body.ttf') format('truetype');font-display:swap;font-weight:100 900}@font-face{font-family:Barlow Condensed;src:url('/assets/fonts/arcade-bold.ttf') format('truetype');font-display:swap;font-weight:100 900}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#0b1419;color:#f5efe5;font:15px/1.6 Barlow,Arial,sans-serif;--display:Heatwave,Impact,sans-serif}button,a,select{-webkit-tap-highlight-color:transparent}button{appearance:none;background:none;color:inherit;border:0;cursor:pointer}a{text-decoration:none;color:inherit}.codex-public-header{max-width:1180px;margin:24px auto 12px;padding:12px 24px;display:flex;align-items:center;gap:24px}.codex-public-header img{width:150px;display:block}.codex-public-header nav{display:flex;gap:5px;flex-wrap:wrap;margin-left:auto}.codex-public-header a{min-height:44px;display:flex;align-items:center;padding:7px 10px;border-radius:10px}.codex-public-header a[aria-current]{background:#ffffff0c}.codex-public-header>a:last-child{color:#ffbd8a;border:1px solid #ffffff20}.game-buy-htw{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:46px;padding:12px 17px;border:1px solid #ffffff22;border-radius:12px;color:#d8deda;font-weight:600}.codex-public-main{padding:12px 24px 40px}.codex-public-main>.game-codex{border:1px solid #66828b8a;border-radius:20px;overflow:hidden;box-shadow:0 24px 90px #0008}.codex-public-header a:focus-visible{outline:2px solid #ffc38e;outline-offset:3px}@media(max-width:600px){.codex-public-header{padding:8px 14px;gap:8px;flex-wrap:wrap;margin-top:8px}.codex-public-header img{width:115px}.codex-public-header nav{order:3;width:100%;justify-content:center}.codex-public-header>a:last-child{margin-left:auto;font-size:13px}.codex-public-main{padding:12px 14px 30px}}
@font-face {font-family:CodexBody;src:url('/assets/fonts/arcade-body.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face {font-family:CodexBody;src:url('/assets/fonts/arcade-bold.ttf') format('truetype');font-style:normal;font-weight:500 900;font-display:swap}
.game-codex {
  --codex-paper:#eef1f2;
  --codex-muted:#b2c5ce;
  --codex-line:#7893a52b;
  --codex-orange:#ff913e;
  display:flex;flex-direction:column;min-width:0;width:100%;max-width:none;min-height:100%;margin:0;padding:24px var(--game-shell-edge,28px) 28px;
  color:var(--codex-paper);background:#071115;font-synthesis:none;font:400 16px/1.5 CodexBody,Barlow,Arial,sans-serif;
}
.game-codex *, .game-codex *::before, .game-codex *::after {box-sizing:border-box}
.game-codex figure {margin:0}
.game-codex button,.game-codex a {-webkit-tap-highlight-color:transparent}
.codex-vector-icon {display:block;flex-shrink:0;object-fit:contain;color:inherit}
.codex-brand-header {flex-shrink:0;position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:96px;padding:0 8px 24px;border-bottom:1px solid var(--codex-line)}
.codex-brand-art {position:absolute;z-index:-1;inset:0 0 0 42%;overflow:hidden;pointer-events:none}
.codex-brand-art>img {width:100%;height:100%;object-fit:cover;object-position:55% 26%;opacity:.2}
.codex-brand-lockup {display:flex;flex-direction:column;gap:5px;min-width:0}

.codex-brand-title {font:800 41px/.95 var(--display,Heatwave,'Barlow Condensed'),sans-serif;font-style:italic;letter-spacing:-1px}
.codex-brand-title>span {color:var(--codex-orange)}
.codex-coast-brand {margin-right:102px;text-align:center;white-space:nowrap}
.codex-coast-brand>img {display:block;width:190px;height:57px;object-fit:contain}
.codex-coast-brand>small {display:block;margin-top:12px;color:#adbbc0;font-size:9px;font-weight:500;letter-spacing:5px}
.codex-intro {flex-shrink:0;display:grid;grid-template-columns:30% minmax(0,1fr);align-items:center;gap:26px;padding:14px 6px 23px}
.codex-intro>span {font-size:10px;font-weight:500;letter-spacing:4px;color:#d2d6d5}
.codex-intro>p {font-size:14px;color:var(--codex-muted);text-align:right;margin:0}
.codex-layout {flex:1;display:grid;grid-template-columns:clamp(220px,18vw,280px) minmax(0,1fr);gap:26px;align-items:stretch}
.codex-rail {display:flex;flex-direction:column;min-width:0}
.codex-tabs {display:flex;flex-direction:column;gap:0}
.codex-tabs>button {display:grid;grid-template-columns:29px 36px minmax(0,1fr) 20px;align-items:center;gap:12px;min-width:0;min-height:77px;padding:13px 14px;border:1px solid transparent;border-bottom-color:var(--codex-line);border-radius:0;color:#bdcdd4;background:transparent;text-align:left;font:400 15px/1.35 CodexBody,Barlow,Arial,sans-serif;cursor:pointer;transition:color .16s,border-color .16s,background-color .16s}
.codex-tab-number {font:500 15px/1 'Barlow Condensed',Barlow,sans-serif;color:#a7bbc4}
.codex-tab-icon {display:block}
.codex-tab-icon>.codex-vector-icon {width:29px;height:29px}
.codex-tab-label {min-width:0;overflow-wrap:break-word}
.codex-tab-arrow .codex-vector-icon {width:19px;height:19px}
.codex-tabs>button[aria-selected=true] {color:#f4f1e9;background:#211c15;border:1px solid #ff9a4b;border-radius:14px;box-shadow:inset 2px 0 0 #ffc178,0 0 16px #ff7b1c16;font-weight:600}
.codex-tabs>button[aria-selected=true] .codex-tab-number {color:var(--codex-orange)}
.codex-tabs>button[aria-selected=true] .codex-vector-icon,.codex-step-icon .codex-vector-icon {color:var(--codex-orange)}
.codex-tabs>button:hover {color:#fff;background-color:#152228}
.codex-tabs>button[aria-selected=true]:hover {background-color:#2a2118}






.codex-topic {min-width:0;outline-offset:5px}
.codex-topic-heading {position:relative;isolation:isolate;overflow:hidden;margin-bottom:24px}
.codex-topic-heading h2 {position:relative;margin:0 0 16px;font:800 italic clamp(32px,3.8vw,48px)/1.05 var(--display,Heatwave,'Barlow Condensed'),sans-serif;letter-spacing:-.4px;text-wrap:balance}
.codex-topic-heading>p {position:relative;margin:0;color:var(--codex-muted);font-size:16px;line-height:1.55}
.codex-topic-heading>p,.codex-recovery-basis{max-width:76ch}
.codex-topic-heading--start {min-height:280px;margin-bottom:10px;padding:22px 24px 18px;border:1px solid var(--codex-line);border-bottom-color:#7893a514;border-radius:18px 18px 0 0;background:#061014}
.codex-hero-art {position:absolute;z-index:-1;inset:0;overflow:hidden;pointer-events:none}
.codex-hero-art>img {width:100%;height:100%;object-fit:cover;object-position:62% 60%;opacity:.72}
.codex-start-title {max-width:100%;font-size:clamp(37px,4.4vw,53px)!important;line-height:1.04!important;text-shadow:0 2px 12px #000b}
.codex-start-title>span {display:block}
.codex-title-accent {color:var(--codex-orange)}
.codex-topic-heading--start>p {max-width:69%;font-size:17px;line-height:1.4;text-shadow:0 2px 12px #000}
.codex-start-steps {list-style:none;margin:0;padding:0;display:grid;gap:10px}
.codex-start-steps>li {display:grid;grid-template-columns:52px 61px minmax(0,1fr);align-items:center;gap:18px;min-height:128px;padding:16px 22px 16px 0;border:1px solid #50667161;border-radius:17px;background:#0c181e;box-shadow:inset 0 1px 0 #ffffff03}
.codex-step-number {align-self:stretch;display:flex;align-items:center;justify-content:center;border-right:1px solid #59717d4a;font:500 18px/1 'Barlow Condensed',Barlow,sans-serif;color:var(--codex-orange)}
.codex-step-icon {display:flex;align-items:center;justify-content:center;flex-shrink:0;width:61px;height:61px;border:1px solid #46616d55;border-radius:50%;background:#061116}
.codex-step-icon .codex-vector-icon {width:32px;height:32px}
.codex-start-steps h3 {margin:0 0 7px;font-size:18px;line-height:1.35;font-weight:600}
.codex-start-steps p {margin:0;color:#b6cad4;font-size:15px;line-height:1.55}
.codex-reassurance {display:flex;align-items:center;gap:18px;margin:16px 0 0;padding:18px 20px;min-height:85px;border:1px solid #23777b87;border-radius:15px;background:#062125;color:#a0d9da;font-size:15px;line-height:1.6}
.codex-note-icon {display:flex;align-items:center;justify-content:center;width:44px;height:48px;flex-shrink:0;border:1px solid #24606466;border-radius:11px;background:#0c363a}
.codex-note-icon .codex-vector-icon {width:27px;height:27px;color:inherit}
.codex-topic-footer {display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:27px;padding:9px 0}
.codex-action {display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-height:70px;min-width:240px;max-width:100%;padding:20px 27px;border:1px solid #ffad65;border-radius:14px;background:#ff8737;color:#17130f;font:600 18px/1.2 CodexBody,Barlow,Arial,sans-serif;text-align:left;cursor:pointer;box-shadow:inset 0 1px 0 #ffd5a96b,0 8px 22px #0003}
.codex-action .codex-vector-icon {width:22px;height:22px;color:inherit}
.codex-action:hover {background:#ff9b51}
.codex-topic-footer .game-buy-htw {display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-width:215px;min-height:70px;padding:20px 25px;border:1px solid #546c766e;border-radius:14px;background:#081319;color:#e0e7ea;font:500 18px/1.2 CodexBody,Barlow,Arial,sans-serif}
.codex-topic-footer .game-buy-htw .codex-vector-icon {width:27px;height:27px;color:inherit}
.codex-topic:not(.codex-topic--start) {padding:25px;border:1px solid var(--codex-line);border-radius:18px;background:#0b181e}
.codex-facts {margin:0;padding:0;list-style:none}
.codex-facts>li {padding:17px 0;border-top:1px solid var(--codex-line);font-size:15px;line-height:1.65;color:#b7cbd4}
.codex-subtitle {margin:26px 0 12px;font-size:20px;font-weight:600;color:#edf2ef}
.codex-rarities {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.codex-rarities>span {display:flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid currentColor;border-radius:8px;background:#ffffff03;font-size:13px;color:#bcc8cf}
.codex-rarities>[data-rarity-index='1'] {color:#91bc9b}.codex-rarities>[data-rarity-index='2'] {color:#7faee0}.codex-rarities>[data-rarity-index='3'] {color:#bc9ce4}.codex-rarities>[data-rarity-index='4'] {color:#edbd73}.codex-rarities>[data-rarity-index='5'] {color:#ee99b2}.codex-rarities>[data-rarity-index='6'] {color:#8ee4dc}
.codex-garage-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:24px}
.codex-garage-facts>article {display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px 14px;border:1px solid #7893a52b;border-radius:11px;background:#ffffff03}
.codex-garage-facts strong {font-size:17px;font-weight:600;color:#f0d1ad}.codex-garage-facts span {font-size:13px;color:#b4c8d2}.codex-garage-facts span:last-child {color:#a7dfd3;font-size:17px}.codex-garage-facts small {font-size:11px;color:#91b2bf}
.codex-box-packages {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:24px}
.codex-box-packages article {min-width:0;border:1px solid #bc997a40;border-radius:13px;padding:19px 16px;background:#191d1a}.codex-box-packages h3 {margin:0 0 10px;font-size:18px;line-height:1.3;font-weight:600;color:#f0d0ad}.codex-box-price {display:block;margin-bottom:8px;font-size:19px;line-height:1.4;font-weight:600;color:#ffad68;font-variant-numeric:tabular-nums}.codex-box-packages p {font-size:14px;line-height:1.6;color:#b6c9d0;margin:0}
.codex-box-odds-note {margin:0 0 18px;padding:14px 16px;border:1px solid #3f72735c;border-radius:10px;background:#0b2226;color:#b6d8da;font-size:14px;line-height:1.6}
.codex-box-odds {margin-top:19px;padding-top:15px;border-top:1px solid #bc997a35}
.codex-box-odds h4 {margin:0 0 10px;font-size:13px;font-weight:600;line-height:1.4;color:#d7e4e5}
.codex-box-odds dl {margin:0}
.codex-box-odds dl>div {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:7px 0;border-bottom:1px solid #7893a519;font-size:13px;line-height:1.4}
.codex-box-odds dt {min-width:0;color:#c1cbd0}
.codex-box-odds dd {margin:0;color:#e5eeef;text-align:right;white-space:nowrap;font-weight:500;font-variant-numeric:tabular-nums}
.codex-box-odds [data-odds-rarity=uncommon] dt {color:#91bc9b}.codex-box-odds [data-odds-rarity=rare] dt {color:#7faee0}.codex-box-odds [data-odds-rarity=epic] dt {color:#bc9ce4}.codex-box-odds [data-odds-rarity=legendary] dt {color:#edbd73}.codex-box-odds [data-odds-rarity=mythic] dt {color:#ee99b2}.codex-box-odds [data-odds-rarity=exotic] dt {color:#8ee4dc}
.codex-box-packages .codex-box-odds-total {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px;font-size:12px;color:#9db3bd}
.codex-box-odds-total strong {color:#d3e7df;font-weight:600;font-variant-numeric:tabular-nums}
.codex-balances {margin:0;padding:0}.codex-balances>div {padding:18px 0;border-top:1px solid var(--codex-line)}.codex-balances dt {font-size:17px;line-height:1.4;font-weight:600;color:#a0ded6;margin-bottom:7px}.codex-balances dd {font-size:15px;line-height:1.65;color:#b6cad3;margin:0}.codex-balances>div:nth-child(2) dt {color:#efbe7c}.codex-balances>div:nth-child(3) dt {color:#acc7e6}
.codex-reward-reference {margin:16px 0;border:1px solid #6d8d9c3d;border-radius:12px;background:#07151a;padding:0 16px}.codex-reward-reference>summary {min-height:48px;padding:13px 0;cursor:pointer;color:#f0d2ad;font-size:15px;font-weight:500}.codex-reward-reference>p {margin:0 0 16px;line-height:1.65;color:#b0c7d1;font-size:14px}.codex-reward-reference dl {margin:0 0 16px}.codex-reward-reference dl>div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:12px;padding:10px 0;border-top:1px solid #acc4cc20;font-size:14px}.codex-reward-reference dd {margin:0;text-align:right;font-variant-numeric:tabular-nums}.codex-reward-reference dd small {display:block;color:#98b5c1;font-size:12px}
.game-codex button:focus-visible,.game-codex a:focus-visible,.codex-topic:focus-visible {outline:2px solid #ffc38e;outline-offset:3px}
/* The existing dialog remains the accessible modal and owns its close action. */
dialog#drawer:has(.game-codex) {inset:0;margin:auto;width:min(1190px,calc(100vw - 48px));max-width:calc(100vw - 48px);height:min(1190px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);border:1px solid #66828b8a;border-radius:20px;background:#071115;box-shadow:0 24px 90px #000b;overflow:hidden}
dialog#drawer:has(.game-codex) .drawer-inner {position:relative;min-height:0}
dialog#drawer:has(.game-codex)>.drawer-inner>.drawer-header {position:absolute;top:16px;right:18px;z-index:2;min-height:0;padding:0;border:0;background:transparent}
dialog#drawer:has(.game-codex)>.drawer-inner>.drawer-header>div {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
dialog#drawer:has(.game-codex) .drawer-header .icon-button {display:flex;align-items:center;justify-content:center;width:49px;height:49px;min-width:49px;border:1px solid #7494a273;background:#15242bcc}
dialog#drawer:has(.game-codex) .drawer-header .icon {width:21px;height:21px}
dialog#drawer:has(.game-codex) #drawer-content {flex:1;min-height:0;padding:0;overflow:auto;scrollbar-color:#42616a #071115;scroll-padding-top:20px}
@media(max-width:1000px) {
 .game-codex {padding:22px}.codex-layout {grid-template-columns:220px minmax(0,1fr);gap:20px}.codex-intro {grid-template-columns:220px minmax(0,1fr);gap:20px}.codex-tabs>button {gap:9px;font-size:14px;padding:12px 10px;grid-template-columns:23px 29px minmax(0,1fr) 16px}.codex-tab-icon>.codex-vector-icon {width:26px;height:26px}.codex-topic-heading--start {padding:20px;min-height:262px}.codex-start-title {font-size:43px!important}.codex-topic-heading--start>p {max-width:82%;font-size:16px}.codex-start-steps>li {grid-template-columns:42px 52px minmax(0,1fr);gap:12px;padding-right:18px}.codex-step-icon {width:52px;height:52px}.codex-start-steps h3 {font-size:17px}.codex-start-steps p {font-size:14px}.codex-coast-brand {margin-right:65px}.codex-action {min-width:210px}.codex-topic-footer .game-buy-htw {min-width:190px}.codex-topic:not(.codex-topic--start) {padding:22px}.codex-box-packages {grid-template-columns:1fr}
}
@media(max-width:800px) {
 .game-codex {padding:18px}.codex-layout {grid-template-columns:185px minmax(0,1fr);gap:17px}.codex-intro {grid-template-columns:185px minmax(0,1fr);gap:17px}.codex-intro>span {font-size:8px;letter-spacing:2px}.codex-intro>p {font-size:12px}.codex-tabs>button {grid-template-columns:19px 25px minmax(0,1fr);gap:8px;font-size:12px;min-height:71px;padding:12px 8px}.codex-tab-number {font-size:13px}.codex-tab-arrow {display:none}.codex-tab-icon>.codex-vector-icon {width:24px;height:24px}.codex-coast-brand>img {width:150px;height:46px}.codex-coast-brand>small {font-size:7px;letter-spacing:3px}.codex-start-title {font-size:37px!important}.codex-topic-heading--start {padding:18px;min-height:252px}.codex-topic-heading--start>p {max-width:95%;font-size:14px}.codex-start-steps>li {grid-template-columns:32px 42px minmax(0,1fr);gap:10px;padding:15px 14px 15px 0}.codex-step-icon {width:42px;height:42px}.codex-step-icon .codex-vector-icon {width:27px;height:27px}.codex-start-steps h3 {font-size:16px}.codex-start-steps p {font-size:13px}.codex-reassurance {gap:12px;padding:16px;font-size:13px}.codex-topic-footer {gap:12px}.codex-action {min-width:190px;min-height:59px;font-size:16px;padding:16px 22px}.codex-topic-footer .game-buy-htw {min-width:175px;min-height:59px;font-size:16px;padding:16px 20px}.codex-garage-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px) {
 .game-codex {padding:16px}.codex-brand-header {min-height:76px;padding:0 54px 18px 2px}.codex-brand-title {font-size:35px}.codex-coast-brand {display:none}.codex-intro {display:block;padding:13px 2px 17px}.codex-intro>span {font-size:8px;letter-spacing:2.5px}.codex-intro>p {margin-top:8px;text-align:left;font-size:13px}.codex-layout {display:block}.codex-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:19px}.codex-tabs>button {grid-template-columns:19px 25px minmax(0,1fr);gap:7px;min-height:57px;padding:9px 10px;border:1px solid var(--codex-line);border-radius:10px;background:#0d1a20;font-size:12px;line-height:1.3}.codex-tabs>button:last-child {grid-column:1/-1}.codex-tabs>button[aria-selected=true] {border-radius:10px}.codex-tab-number {font-size:12px}.codex-tab-icon>.codex-vector-icon {width:23px;height:23px}.codex-topic-heading--start {min-height:243px;padding:19px 16px 17px}.codex-start-title {font-size:35px!important;line-height:1.06!important}.codex-hero-art>img {object-position:69% 61%;opacity:.56}.codex-topic-heading--start>p {max-width:95%;font-size:14px}.codex-start-steps>li {grid-template-columns:32px 41px minmax(0,1fr);gap:10px;min-height:118px;padding:15px 13px 15px 0;border-radius:13px}.codex-step-number {font-size:15px}.codex-step-icon {width:41px;height:41px}.codex-start-steps h3 {font-size:16px;margin-bottom:6px}.codex-start-steps p {font-size:13px;line-height:1.55}.codex-reassurance {padding:15px 13px;gap:12px;border-radius:12px;font-size:13px;line-height:1.6}.codex-note-icon {width:37px;height:43px}.codex-note-icon .codex-vector-icon {width:24px;height:24px}.codex-topic-footer {flex-direction:column;align-items:stretch;margin-top:21px;padding:0;gap:11px}.codex-action,.codex-topic-footer .game-buy-htw {width:100%;min-width:0;min-height:56px;padding:16px 20px;font-size:16px;border-radius:12px}.codex-topic-heading h2 {font-size:32px}.codex-topic-heading>p {font-size:14px}.codex-topic:not(.codex-topic--start) {padding:19px 16px;border-radius:14px}.codex-facts>li,.codex-balances dd {font-size:14px}.codex-rarities {gap:7px}.codex-rarities>span {font-size:12px;padding:6px 10px}.codex-garage-facts>article {padding:13px 10px}.codex-garage-facts strong {font-size:16px}.codex-garage-facts span {font-size:12px}.codex-reward-reference {padding:0 13px}.codex-reward-reference dl>div {font-size:13px}.codex-reward-reference dd small {font-size:11px}
 dialog#drawer:has(.game-codex) {width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);border-radius:16px}
 dialog#drawer:has(.game-codex)>.drawer-inner>.drawer-header {top:13px;right:13px}
 dialog#drawer:has(.game-codex) .drawer-header .icon-button {width:43px;height:43px;min-width:43px}
}
@media(prefers-reduced-motion:reduce) {
 .game-codex button,.game-codex a {transition:none}
 dialog#drawer:has(.game-codex)[open] {animation:none}
}

/* Productive reference stays readable alongside the actual per-car day estimate. */
.codex-rarity-comparison {margin:clamp(20px,2vw,24px) 0;min-width:0}
.codex-rarity-comparison>h3 {margin:0 0 10px;font-size:clamp(18px,1.7vw,20px);line-height:1.3;color:var(--codex-paper)}
.codex-rarity-comparison>p {margin:0 0 14px;font-size:14px;line-height:1.6;color:var(--codex-muted)}
.codex-rarity-table-scroll {max-width:100%;min-width:0;overflow-x:auto;scrollbar-color:#42616a #071115}
.codex-rarity-table-scroll table {width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.5;text-align:left;font-variant-numeric:tabular-nums}
.codex-rarity-table-scroll thead th {padding:12px 10px;background:#112129;color:#dce7e9;font-weight:600;vertical-align:bottom;overflow-wrap:break-word}
.codex-rarity-table-scroll thead th:first-child {width:34%}
.codex-rarity-table-scroll td,.codex-rarity-table-scroll tbody th {padding:13px 10px;border-bottom:1px solid var(--codex-line);color:#c7d7dd;vertical-align:top;overflow-wrap:anywhere}
.codex-rarity-table-scroll td:not(:first-child),.codex-rarity-table-scroll th:not(:first-child) {text-align:right}
.codex-rarity-table-scroll tbody th {font-weight:500;background:transparent}
.codex-rarity-table-scroll tr[data-comparison-rarity=uncommon]>th:first-child {color:#91bc9b}
.codex-rarity-table-scroll tr[data-comparison-rarity=rare]>th:first-child {color:#7faee0}
.codex-rarity-table-scroll tr[data-comparison-rarity=epic]>th:first-child {color:#bc9ce4}
.codex-rarity-table-scroll tr[data-comparison-rarity=legendary]>th:first-child {color:#edbd73}
.codex-rarity-table-scroll tr[data-comparison-rarity=mythic]>th:first-child {color:#ee99b2}
.codex-rarity-table-scroll tr[data-comparison-rarity=exotic]>th:first-child {color:#8ee4dc}
.codex-rarity-example {margin:14px 0 0;padding:14px 0;border-block:1px solid var(--codex-line);color:#c7d7dd;font-size:14px;line-height:1.65}
@media(max-width:640px) {
 .codex-rarity-comparison {margin-block:20px}
 .codex-rarity-comparison>h3 {font-size:19px}
 .codex-rarity-table-scroll table {font-size:13px}
 .codex-rarity-table-scroll th,.codex-rarity-table-scroll td,.codex-rarity-table-scroll tbody th {padding:11px 7px}
}

/* The guide starts with its title; repeated brand labels and promotional rail art are omitted. */
.codex-intro{display:block}.codex-intro>p{text-align:left}

/* A help page starts with the task, rather than a second promotional masthead. */
.codex-brand-header{min-height:58px;padding:0 64px 14px 0;gap:12px}
.codex-brand-title{font-size:clamp(26px,3vw,34px);line-height:1.1;letter-spacing:0;overflow-wrap:break-word}
.codex-brand-art,.codex-coast-brand{display:none}
.codex-intro{padding:10px 0 18px}.codex-intro>p{margin:0}
.codex-recovery-basis{margin:0 0 14px;color:var(--codex-muted);font-size:14px;line-height:1.6}
@media(min-width:1201px){
 .codex-start-steps,.codex-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:14px 24px}
 .codex-start-steps>li{grid-template-columns:32px 44px minmax(0,1fr);gap:12px;align-items:start;min-height:0;padding:20px 16px 20px 0}
 .codex-step-icon{width:44px;height:44px}.codex-step-icon .codex-vector-icon{width:27px;height:27px}
 .codex-start-steps p,.codex-facts>li{max-width:70ch}
 .codex-garage-facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
 .codex-box-packages{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
}
@media(max-width:640px){
 .game-codex{padding:14px}
 .codex-brand-header{min-height:46px;padding:0 48px 12px 0}
 .codex-brand-title{font-size:25px}
 .codex-intro{padding:9px 0 12px}.codex-intro>p{font-size:12px;line-height:1.5}
 .codex-tabs{display:flex;flex-direction:row;gap:7px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:none;scroll-padding-inline:2px;padding:2px 2px 9px;margin:0 0 14px;scrollbar-color:#42616a #071115}
 .codex-tabs>button{display:flex;flex:0 0 auto;gap:8px;min-height:44px;max-width:240px;padding:10px 12px;scroll-snap-align:none;white-space:nowrap;line-height:1.3}
 .codex-tab-number,.codex-tab-arrow{display:none}
 .codex-tab-icon>.codex-vector-icon{width:21px;height:21px}
 .codex-tab-label{overflow-wrap:normal}
 .codex-topic-heading--start{min-height:0;padding:18px 14px}
 .codex-start-title{font-size:clamp(26px,7vw,33px)!important;line-height:1.1!important}
 .codex-topic-heading--start>p{max-width:100%;font-size:14px}
 .codex-hero-art>img{opacity:.28}
 .codex-start-steps>li{grid-template-columns:28px minmax(0,1fr);gap:11px;min-height:0;padding:15px 13px 15px 0}
 .codex-step-icon{display:none}
 .codex-start-steps h3{font-size:16px}
 .codex-start-steps p{font-size:14px}
 dialog#drawer:has(.game-codex) .drawer-header .icon-button{width:44px;height:44px;min-width:44px}
}

.codex-public-footer{max-width:1180px;margin:0 auto 24px;padding:0 24px;color:#a7bbc1;font-size:12px}.codex-public-footer a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:3px}.codex-public-footer a:focus-visible{outline:2px solid #ffc38e;outline-offset:3px}@media(max-width:600px){.codex-public-footer{padding:0 14px}}