/* Resource icons occupy a fixed grid column; the text never flows beneath them. */
#topbar .res{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:8px;align-items:center;justify-content:normal;flex:1 1 0;min-width:0;padding:4px 10px;white-space:normal}
#topbar .resource-emblem{display:grid;place-items:center;width:30px;height:34px;min-width:30px;margin:0;padding:3px;border:1px solid #b9a88c4d;border-radius:8px;background:linear-gradient(145deg,#62533c66,#1c2429);color:#dfc79e;font-size:0;line-height:0;text-shadow:none;filter:none;box-sizing:border-box}
#topbar .resource-emblem.water{color:#a0dbef;border-color:#8bcbdd50;background:linear-gradient(145deg,#31566b99,#16252f)}
#topbar .resource-emblem.food{color:#dbce99;border-color:#c4b67b45;background:linear-gradient(145deg,#4d503a88,#202920)}
#topbar .resource-emblem svg{display:block;width:24px;height:24px;overflow:hidden}
#topbar .resource-copy{display:grid;gap:1px;min-width:0;max-width:100%;text-align:left}
#topbar .resource-copy b,#topbar .resource-copy small,#topbar .resource-copy .resource-name{margin:0;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#topbar .resource-copy b{font-variant-numeric:tabular-nums;line-height:1.2}
#topbar .resource-copy .resource-name{line-height:1.25}
#topbar .resource-copy small{line-height:1.25}
@media(max-width:899px){
 #topbar .res{grid-template-columns:26px minmax(0,1fr);column-gap:6px;padding:3px 5px}
 #topbar .resource-emblem{width:26px;min-width:26px;height:30px;padding:2px;border-radius:7px}
 #topbar .resource-emblem svg{width:21px;height:21px}
 #topbar .resource-copy b{font-size:14px}
 #topbar .resource-copy small{font-size:9px}
}
@media(max-width:359px){
 #topbar .res{grid-template-columns:24px minmax(0,1fr);column-gap:5px;padding:3px 4px}
 #topbar .resource-emblem{width:24px;min-width:24px;height:28px}
 #topbar .resource-emblem svg{width:20px;height:20px}
 #topbar .resource-copy b{font-size:13px}
}

/* Znacznik wersji testowej w pasku gornym (nota-tempa.v1). Widoczny caly czas, gdy tempo swiata
   nie jest rzeczywiste; przy predkosci x1 element pozostaje ukryty i nie zajmuje miejsca. */
#topbar .znacznik-testu{align-self:center;flex:0 0 auto;margin-left:8px;padding:3px 8px;border:1px solid #d9a85c66;border-radius:999px;background:#4a361a66;color:#f0c98a;font-size:10px;font-weight:700;letter-spacing:.08em;white-space:nowrap}
@media(max-width:899px){#topbar{flex-wrap:wrap}
 #topbar .znacznik-testu{order:-1;flex:1 0 100%;margin:0 0 3px;padding:2px 7px;font-size:9px;letter-spacing:.06em;text-align:center}}
