.title-screen { align-items: stretch; overflow: hidden; background: linear-gradient(90deg, rgba(14,22,17,.88) 0%, rgba(14,22,17,.72) 48%, rgba(14,22,17,.24) 100%); color: var(--paper-light); }

.title-copy { position: relative; display: flex; width: 53%; justify-content: center; flex-direction: column; padding: 5vh 5vw 11vh; }
.title-kicker { display: flex; width: min(540px, 100%); justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.35); color: #becac2; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.title-copy h1 { margin: 2vh 0 0; color: var(--paper-light); font-size: clamp(86px, 10vw, 150px); line-height: .72; letter-spacing: -.095em; text-shadow: 8px 9px 0 rgba(13,20,16,.4); }
.title-copy p { margin: 25px 0 0 6px; color: var(--dispatch); font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.title-stamp { position: absolute; right: 5vw; bottom: 13vh; padding: 8px 11px; transform: rotate(-6deg); border: 3px double var(--route); color: #f06a5c; font: 900 11px/1.25 ui-monospace, monospace; text-align: center; }

.title-menu { position: absolute; top: 50%; right: 4.5vw; display: flex; width: min(395px, 33vw); transform: translateY(-52%); flex-direction: column; gap: 7px; }
.menu-action { position: relative; display: grid; min-height: 69px; grid-template-columns: 42px 1fr; grid-template-rows: 1fr 1fr; padding: 11px 14px; overflow: hidden; border-left: 3px solid rgba(255,255,255,.28); background: rgba(24,35,29,.82); color: var(--paper-light); text-align: left; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.menu-action::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--dispatch); transition: width .2s ease; }
.menu-action > span { grid-row: 1 / span 2; color: #88958d; font-size: 10px; font-weight: 800; align-self: center; }
.menu-action b { align-self: end; font-size: 15px; letter-spacing: .01em; }
.menu-action small { color: #aeb9b1; font-size: 9px; }
.menu-action:hover { transform: translateX(-7px); border-color: var(--dispatch); background: rgba(24,35,29,.97); }
.menu-action:hover::after { width: 100%; }
.menu-action.primary { color: var(--ink); border-color: var(--dispatch); background: var(--dispatch); }
.menu-action.primary > span, .menu-action.primary small { color: rgba(23,34,30,.65); }
.menu-action.primary::after { background: var(--ink); }

.title-controls { position: absolute; right: 4.5vw; bottom: 27px; display: flex; gap: 16px; color: #b7c2ba; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.title-controls span { display: flex; align-items: center; gap: 6px; }

.title-route { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: repeating-linear-gradient(to bottom, transparent 0 14px, rgba(231,177,60,.7) 14px 23px); transform: rotate(19deg); opacity: .5; }
.title-route i { position: absolute; width: 13px; height: 13px; transform: translate(-4px,-50%); border: 3px solid var(--dispatch); border-radius: 50%; background: var(--ink); }
.title-route i:nth-child(1) { top: 9%; }.title-route i:nth-child(2) { top: 29%; }.title-route i:nth-child(3) { top: 50%; }.title-route i:nth-child(4) { top: 71%; }.title-route i:nth-child(5) { top: 91%; }

.slot-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px 24px 8px; }
.slot-card { min-height: 210px; padding: 16px; border: 1px solid var(--ink); background: rgba(255,253,243,.56); text-align: left; }
.slot-card.empty { border-style: dashed; color: var(--muted-ink); }
.slot-card .slot-no { display: block; margin-bottom: 24px; color: var(--route); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.slot-card h3 { margin-bottom: 4px; font-size: 22px; letter-spacing: -.04em; }
.slot-card p { min-height: 35px; color: var(--muted-ink); font-size: 11px; line-height: 1.45; }
.slot-card .slot-actions { display: flex; gap: 6px; margin-top: 15px; }

.intro-sheet { position: relative; width: min(590px, calc(100vw - 80px)); padding: 42px 48px 46px; border-top: 8px solid var(--dispatch); background: var(--paper-light); box-shadow: 15px 18px 0 rgba(12,18,15,.35); }
.intro-sheet::after { content: ""; position: absolute; inset: 11px; pointer-events: none; border: 1px solid rgba(23,34,30,.16); }
.form-code { position: relative; z-index: 1; color: var(--route); font: 900 10px ui-monospace, monospace; letter-spacing: .12em; }
.intro-sheet h2 { position: relative; z-index: 1; margin: 14px 0 16px; font-size: 58px; line-height: .9; letter-spacing: -.065em; }
.intro-sheet p, .intro-sheet blockquote, .intro-sheet label, .intro-sheet button { position: relative; z-index: 1; }
.intro-sheet p { color: #424b46; font-size: 15px; line-height: 1.55; }
.intro-sheet blockquote { margin: 20px 0; padding: 10px 0 10px 16px; border-left: 4px solid var(--dispatch); font-size: 13px; font-weight: 700; }
.intro-sheet label { display: block; margin-bottom: 16px; color: var(--muted-ink); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.intro-sheet input { display: block; width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; }

.board-sheet { display: grid; grid-template-rows: auto auto 1fr; }
.board-header { padding-right: 18px; }
.district-tabs { display: flex; min-height: 49px; overflow-x: auto; border-bottom: 1px solid var(--ink); background: var(--paper-dark); }
.district-tab { flex: 1 0 auto; min-width: 105px; padding: 8px 13px; border-right: 1px solid rgba(23,34,30,.2); background: transparent; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.district-tab:hover { background: rgba(255,255,255,.35); }
.district-tab.active { color: var(--paper-light); background: var(--ink); }
.district-tab.locked { color: #8c887d; cursor: not-allowed; }
.board-body { display: grid; min-height: 0; grid-template-columns: 57% 43%; }
.job-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-content: start; padding: 16px; overflow-y: auto; border-right: 2px solid var(--ink); }
.job-card { position: relative; min-height: 150px; padding: 12px 13px 13px 17px; overflow: hidden; border: 1px solid var(--ink); background: rgba(255,253,243,.72); text-align: left; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.job-card::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 1px dashed rgba(23,34,30,.22); }
.job-card:hover { transform: translateY(-3px); background: var(--paper-light); box-shadow: 5px 6px 0 rgba(23,34,30,.19); }
.job-card.selected { color: var(--paper-light); background: var(--ink); }
.job-card.locked { opacity: .48; cursor: not-allowed; }
.job-card .job-code { display: flex; justify-content: space-between; color: var(--muted-ink); font: 800 8px ui-monospace, monospace; letter-spacing: .08em; }
.job-card.selected .job-code { color: #aebbb2; }
.job-card h3 { margin: 12px 0 5px; font-size: 17px; letter-spacing: -.025em; }
.job-card p { margin-bottom: 10px; color: var(--muted-ink); font-size: 10px; line-height: 1.35; }
.job-card.selected p { color: #bdc8c0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.job-tags span { padding: 3px 5px; border: 1px solid currentColor; font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.job-pay { position: absolute; right: 11px; bottom: 11px; font-size: 16px; font-weight: 900; }

.job-detail { position: relative; padding: 24px; overflow-y: auto; background: rgba(224,215,192,.5); }
.job-detail.empty { display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted-ink); text-align: center; }
.empty-route { display: flex; width: 180px; align-items: center; justify-content: space-between; margin-bottom: 18px; border-top: 2px dashed #a49e8f; }
.empty-route i { width: 13px; height: 13px; margin-top: -8px; border: 3px solid #a49e8f; border-radius: 50%; background: var(--paper-dark); }
.job-detail h3 { margin: 8px 0 5px; font-size: 32px; letter-spacing: -.055em; }
.job-detail .detail-desc { color: var(--muted-ink); line-height: 1.48; }
.route-preview { position: relative; height: 150px; margin: 18px 0; overflow: hidden; border: 1px solid var(--ink); background-color: #d8d2bc; background-image: linear-gradient(30deg, rgba(23,34,30,.11) 12%, transparent 12.5%, transparent 87%, rgba(23,34,30,.11) 87.5%), linear-gradient(120deg, rgba(23,34,30,.1) 12%, transparent 12.5%, transparent 87%, rgba(23,34,30,.1) 87.5%); background-size: 65px 65px; }
.route-line { position: absolute; left: 14%; top: 62%; width: 72%; height: 3px; transform: rotate(-13deg); transform-origin: left; background: var(--route); }
.route-line::before, .route-line::after { content: ""; position: absolute; top: -6px; width: 14px; height: 14px; border: 3px solid var(--route); border-radius: 50%; background: var(--paper-light); }
.route-line::before { left: 0; }.route-line::after { right: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ink); }
.detail-grid div { padding: 9px; border-right: 1px solid var(--ink); }
.detail-grid div:last-child { border-right: 0; }
.detail-grid span { display: block; color: var(--muted-ink); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.detail-grid strong { display: block; margin-top: 3px; font-size: 15px; }
.objective-list { padding: 12px 0 0; list-style: none; }
.objective-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 11px; font-weight: 700; }
.accept-job { margin-top: 15px; }

.map-screen { z-index: 25; align-items: center; justify-content: center; padding: 22px; background: rgba(15,23,19,.77); }
.map-paper { display: grid; width: min(1240px, calc(100vw - 44px)); height: min(790px, calc(100vh - 44px)); grid-template-rows: 78px 1fr 40px; background: var(--paper); box-shadow: 14px 18px 0 rgba(9,14,11,.35); }
.map-paper header { display: flex; align-items: center; gap: 20px; padding: 12px 17px; border-bottom: 2px solid var(--ink); }
.map-paper h2 { margin: 0; font-size: 32px; letter-spacing: -.05em; }
.map-paper .eyebrow { margin: 0 0 3px; }
.map-legend { display: flex; gap: 12px; margin-left: auto; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.map-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 4px; background: var(--ink); vertical-align: -1px; }
.map-legend .pickup::before { background: var(--dispatch); }.map-legend .drop::before { background: var(--route); }.map-legend .secret::before { background: var(--green); }
#map-canvas { width: 100%; height: 100%; min-height: 0; }
.map-paper footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 14px; border-top: 1px solid var(--ink); color: var(--muted-ink); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.map-paper footer kbd { margin-left: auto; }

.stats-sheet { padding-bottom: 15px; overflow-y: auto; }
.career-summary { display: grid; grid-template-columns: repeat(5,1fr); border-bottom: 1px solid var(--ink); }
.career-summary div { padding: 14px 18px; border-right: 1px solid var(--ink); }
.career-summary span { display: block; color: var(--muted-ink); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.career-summary strong { font-size: 26px; }
.stats-columns { display: grid; grid-template-columns: .8fr 1.15fr 1.35fr; gap: 24px; padding: 22px 24px; }
.stats-columns h3 { padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 14px; text-transform: uppercase; }
.stats-list div, .district-progress div { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 10px; }
.achievement-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.achievement-item { min-height: 66px; padding: 9px; border: 1px solid var(--ink); }
.achievement-item.locked { opacity: .43; }
.achievement-item b { display: block; font-size: 10px; }.achievement-item small { color: var(--muted-ink); font-size: 8px; line-height: 1.3; }

.screen-lead { padding: 18px 24px 0; color: var(--muted-ink); font-size: 12px; }
.skills-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 14px 24px 24px; overflow-y: auto; }
.skill-card { min-height: 120px; padding: 13px; border: 1px solid var(--ink); background: rgba(255,253,243,.55); text-align: left; }
.skill-card.locked { opacity: .43; cursor: not-allowed; }.skill-card.equipped { color: var(--paper-light); background: var(--green); }.skill-card b { display: block; margin-bottom: 6px; }.skill-card small { font-size: 9px; line-height: 1.4; }

.pause-screen { z-index: 30; align-items: center; justify-content: center; background: rgba(16,24,20,.75); }
.pause-sheet { width: 390px; padding: 30px; border-top: 7px solid var(--dispatch); background: var(--paper); box-shadow: 12px 15px 0 rgba(8,13,10,.4); }
.pause-sheet h2 { margin: 5px 0 24px; font-size: 58px; letter-spacing: -.07em; }
.pause-sheet .paper-button { margin-top: 7px; }

.results-screen { z-index: 35; align-items: center; justify-content: center; background: rgba(15,22,18,.73); }
.receipt { position: relative; width: 460px; min-height: 610px; padding: 26px 30px 30px; background: var(--paper-light); box-shadow: 13px 17px 0 rgba(8,13,10,.38); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 16px; background: linear-gradient(135deg, transparent 8px, var(--paper-light) 0) 0 0/16px 16px, linear-gradient(45deg, transparent 8px, var(--paper-light) 0) 8px 0/16px 16px; }
.receipt header { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 2px solid var(--ink); font: 800 8px ui-monospace, monospace; letter-spacing: .08em; }
.receipt-route { padding: 20px 0 15px; border-bottom: 1px dashed var(--line); }
.receipt-route small { color: var(--route); font: 900 9px ui-monospace, monospace; }.receipt-route h2 { margin: 6px 0 4px; font-size: 33px; letter-spacing: -.055em; }.receipt-route p { margin: 0; color: var(--muted-ink); font-size: 11px; }
.result-breakdown { padding: 14px 0; }
.result-line { display: grid; grid-template-columns: 1fr auto 32px; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line); font: 700 11px ui-monospace, monospace; }
.result-line b { color: var(--route); font-size: 14px; text-align: right; }
.receipt-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }.receipt-total span { font-size: 10px; font-weight: 900; letter-spacing: .12em; }.receipt-total strong { font-size: 30px; }
.result-unlocks { min-height: 44px; padding: 10px 0; color: var(--green); font-size: 10px; font-weight: 800; }
.rank-stamp { position: absolute; right: 28px; top: 137px; display: grid; width: 92px; height: 92px; place-items: center; transform: rotate(-9deg); border: 6px double var(--route); border-radius: 50%; color: var(--route); font: 900 59px/1 ui-monospace, monospace; opacity: .92; }
