.traffic { width: min(1120px,calc(100% - 36px)); max-width: 1120px; font: 14px/1.5 "Segoe UI",Arial,sans-serif; text-align: left; margin: 40px auto 32px; border: 1px solid #756447; border-radius: 6px; padding: clamp(18px,3vw,30px); background: #171d1b; color: #f4edde; box-shadow: 0 15px 35px #0003; }
.traffic-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 0 0 22px; position: relative; isolation: isolate; }
.traffic-heading::before { content: ""; position: absolute; z-index: -1; inset: -1px 0 0 45%; opacity: .17; background: linear-gradient(90deg,#171d1b,transparent 40%),url('/media/cover.png') right 46%/cover no-repeat; border-radius: 3px; pointer-events: none; }
.traffic-heading h2 { font: 500 clamp(23px,3vw,30px)/1.2 Arial,Helvetica,sans-serif; letter-spacing: -.8px; margin: 0; }
.traffic-heading p:last-child { margin: 9px 0 0; font-size: 12px; color: #b8c0cd; line-height: 1.6; }
.traffic-live { padding: 7px 10px; border: 1px solid #84714f; border-radius: 3px; color: #edbc65; background: #25281fe8; font-size: 10px; white-space: nowrap; }
.traffic-summary { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; margin: 26px 0; }
.traffic-summary>div { border-left: 2px solid #303e53; padding-left: 14px; min-width: 0; }
.traffic-summary span { display: block; font-size: 11px; color: #b8c0cd; }
.traffic-summary strong { display: block; margin: 6px 0 5px; font: 600 35px/1.15 Arial,Helvetica,sans-serif; letter-spacing: -1px; }
.traffic-summary small { display: block; font-size: 10px; line-height: 1.5; color: #9aaabd; }
.traffic-updated time { display: block; margin: 10px 0 8px; font-size: 12px; line-height: 1.6; }
.traffic-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #303e53; }
.traffic button { border: 1px solid #44536c; border-radius: 7px; color: #f7f0df; background: #182333; padding: 8px 11px; font-size: 11px; }
.traffic button:hover:not(:disabled) { background: #263951; }
.traffic button:disabled { opacity: .55; }
.traffic-ranges { display: flex; gap: 4px; margin-right: auto; }
.traffic-ranges button[aria-pressed="true"] { color: #0c111c; background: #ffcc46; border-color: #ffcc46; }
.traffic-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #b8c0cd; }
.traffic-toolbar input { max-width: 150px; min-height: 33px; border: 1px solid #44536c; border-radius: 7px; padding: 5px 8px; font-size: 11px; background: #0c111c; color: #f7f0df; }
.traffic-window { display: flex; align-items: center; gap: 8px; }
.traffic-window p { margin: 0; flex: 1; text-align: center; font-size: 12px; color: #b8c0cd; }
.traffic-window button { white-space: nowrap; }
.traffic-instruction { font-size: 10px; line-height: 1.6; color: #9aaabd; margin: 18px 0 8px; }
.traffic-chart { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 7px; }
.traffic-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; height: 174px; padding: 5px 0 0; font-size: 10px; color: #9aaabd; }
.traffic-scroll { min-width: 0; overflow-x: auto; padding: 4px 4px 9px; scrollbar-color: #62738b #0c111c; }
.traffic-bars { display: grid; grid-template-columns: repeat(var(--traffic-days,7),minmax(36px,1fr)); min-width: calc(var(--traffic-days,7)*41px - 5px); column-gap: 5px; padding-top: 6px; background: repeating-linear-gradient(to top,transparent 0,transparent 38px,#334258 39px,transparent 40px); background-size: 100% 160px; background-position: top 10px left; background-repeat: no-repeat; }
.traffic-bars .traffic-bar { display: grid; grid-template-rows: 160px 27px; padding: 0; border: 0; border-radius: 5px; background: transparent; min-width: 0; color: #b8c0cd; opacity: 1; }
.traffic-bars .traffic-bar:hover:not(:disabled),.traffic-bars .traffic-bar[aria-pressed="true"] { background: #ffffff0e; }
.traffic-bar-track { height: 160px; display: flex; justify-content: center; align-items: end; position: relative; }
.traffic-bar-fill { height: var(--traffic-height,0%); min-height: 3px; width: min(62%,52px); border-radius: 5px 5px 1px 1px; background: #80e5ec; border: 1px solid #5b9eae; }
.traffic-bar[aria-pressed="true"] .traffic-bar-fill { background: #ffcc46; border-color: #ddb044; }
.traffic-bar[data-zero="true"] .traffic-bar-fill { background: #182333; border-color: #80e5ec; }
.traffic-bar[data-unrecorded="true"] .traffic-bar-fill { background: #344258; border-color: #344258; }
.traffic-bar-value { position: absolute; bottom: calc(var(--traffic-height,0%) + 5px); font-size: 10px; line-height: 1; color: #f7f0df; }
.traffic-bar-label { align-self: center; font-size: 9px; white-space: nowrap; }
.traffic-selection { margin: 14px 0 0; padding: 13px 15px; background: #172437; border: 1px solid #39465b; border-radius: 9px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.traffic-selection strong { display: block; font-size: 12px; font-weight: 600; }
.traffic-selection span { display: block; margin-top: 4px; font-size: 10px; color: #9aaabd; line-height: 1.6; }
.traffic-selection p { margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.traffic-note,.traffic-status,.traffic-empty,.traffic-explanation { font-size: 10px; line-height: 1.7; color: #9aaabd; }
.traffic-empty { padding: 24px 10px; text-align: center; }
.traffic-status:empty { display: none; }
.traffic-status { color: #ffcc46; }
.traffic-note { margin: 16px 0 8px; }
.traffic-explanation summary { cursor: pointer; color: #80e5ec; padding: 4px 0; }
.traffic-explanation p { max-width: 800px; }
@media(max-width:650px) { .traffic-heading { flex-direction: column; gap: 12px; } .traffic-summary { grid-template-columns: 1fr 1fr; gap: 18px; } .traffic-updated { grid-column: 1/-1; } .traffic-updated time { margin: 5px 0; } .traffic-window { flex-wrap: wrap; } .traffic-window p { order: -1; flex-basis: 100%; text-align: left; margin-bottom: 4px; } .traffic-window #traffic-next { margin-left: auto; } .traffic-toolbar { gap: 10px; } .traffic-ranges { width: 100%; } }
@media(max-width:380px) { .traffic-toolbar label { flex-direction: column; align-items: start; gap: 4px; } .traffic-selection { flex-direction: column; align-items: start; gap: 8px; } }

#traffic,#traffic *{box-sizing:border-box}#traffic [hidden]{display:none!important}#traffic button{font-family:inherit;cursor:pointer}#traffic button:disabled{cursor:default}#traffic button:focus-visible,#traffic input:focus-visible{outline:3px solid #80e5ec;outline-offset:3px}#traffic .traffic-eyebrow{font-size:10px;letter-spacing:.15em;color:#ffcc46;margin:0 0 10px;text-transform:uppercase;font-weight:700}#traffic .traffic-explanation p{font-size:11px;line-height:1.8}#traffic{flex:none;align-self:center;overflow:visible}

/* Gruge palette; bars and axes are functional data marks. Existing painted
   cover art provides the header texture without adding illustration assets. */
#traffic .traffic-eyebrow,#traffic .traffic-status { color:#edbc65; }
#traffic button,#traffic input { border-color:#756447; border-radius:3px; background:#252c28; color:#f4edde; }
#traffic button:hover:not(:disabled) { background:#374037; }
#traffic button:focus-visible,#traffic input:focus-visible,#traffic summary:focus-visible { outline:3px solid #edbc65; outline-offset:3px; }
#traffic .traffic-ranges button[aria-pressed="true"] { color:#161b18; background:#edbc65; border-color:#edbc65; }
#traffic .traffic-summary>div,#traffic .traffic-toolbar { border-color:#534d3c; }
#traffic .traffic-bar-fill { background:#96bdab; border-color:#719a86; border-radius:3px 3px 0 0; }
#traffic .traffic-bar[aria-pressed="true"] .traffic-bar-fill { background:#edbc65; border-color:#d5a454; }
#traffic .traffic-bar[data-zero="true"] .traffic-bar-fill { background:#252c28; border-color:#96bdab; }
#traffic .traffic-bar[data-unrecorded="true"] .traffic-bar-fill { background:#545d55; border-color:#545d55; }
#traffic .traffic-bars .traffic-bar { background:transparent; border:0; padding:0; }
#traffic .traffic-bars .traffic-bar:hover:not(:disabled),#traffic .traffic-bars .traffic-bar[aria-pressed="true"] { background:#edbc650c; }
#traffic .traffic-bars { background-image:repeating-linear-gradient(to top,transparent 0,transparent 38px,#414b42 39px,transparent 40px); }
#traffic .traffic-scroll { scrollbar-color:#817253 #171d1b; }
#traffic .traffic-selection { background:#252d25; border-color:#756447; border-radius:3px; }
#traffic .traffic-explanation summary { color:#96bdab; }

/* Public game page only: the first viewport keeps the normal game frame, and
   the statistics remain below it in the scrolling page, outside every menu. */
html:has(body[data-public-game-page]) { height:auto; min-height:100%; }
body[data-public-game-page] { display:block; height:auto; min-height:100dvh; overflow-y:auto; overflow-x:hidden; padding:16px; }
.public-game-viewport { width:100%; min-width:0; min-height:calc(100dvh - 32px); display:grid; grid-template-columns:minmax(0,1fr); place-items:center; }
body[data-public-game-page] .game-shell { margin:0 auto; min-width:0; max-width:100%; }
body[data-public-game-page] #traffic { width:min(1120px,100%); margin:40px auto 32px; }
