/* v0.9.29 (CrazyGames round 11): reward notice, rewarded-ad cooldown state, layout fixes */
.rw-toast { position: fixed; left: 50%; top: 74px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 18px 12px 14px; border-radius: 14px; background: linear-gradient(180deg, #1c2130, #11151f); border: 1px solid rgba(255, 204, 0, 0.7); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4); color: #fff; font-family: Inter, system-ui, sans-serif; transform: translate(-50%, 0); pointer-events: none; animation: rw-in .4s cubic-bezier(.2, .9, .3, 1.2) both; }
.rw-toast.out { animation: rw-out .45s ease-in both; }
@keyframes rw-in { from { transform: translate(-50%, -14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes rw-out { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -10px); opacity: 0; } }
.rw-toast i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, #ffcc00 45%, #c98a00); box-shadow: inset 0 0 0 3px rgba(150, 95, 0, 0.55); animation: rw-coin .9s ease-out; }
.rw-toast span { display: grid; gap: 2px; min-width: 0; }
.rw-toast b { font-size: 15px; font-weight: 800; color: #ffcc00; }
.rw-toast small { font-size: 12.5px; color: #dfe4ec; }
@keyframes rw-coin { 0% { transform: scale(.4) rotateY(0); } 60% { transform: scale(1.15) rotateY(360deg); } 100% { transform: scale(1) rotateY(360deg); } }
@media (max-height: 520px) { .rw-toast { top: 52px; padding: 8px 12px; } .rw-toast b { font-size: 13.5px; } .rw-toast small { font-size: 11.5px; } .rw-toast i { width: 24px; height: 24px; } }
button.rw-wait, button.rw-wait:hover { opacity: 1; color: #aab3c2 !important; border-color: rgba(170, 179, 194, 0.35) !important; background: rgba(255, 255, 255, 0.04) !important; cursor: default; font-variant-numeric: tabular-nums; }
button.rw-wait svg { flex: none; margin-right: 6px; }

/* race HUD: the weather card wraps its lines instead of running under the Settings button (QA: "Rain stopping in ~4 min" cut) */
.hud .wx-now > div { min-width: 0; }
.hud .wx-now b, .hud .wx-now small, .hud.compact .wx-now b, .hud.compact .wx-now small { white-space: normal; overflow-wrap: anywhere; }
.hud .wx-now small.wx-out { line-height: 1.2; }
/* garage panel: the "pick your tyres" line wraps inside the panel */
.hud .garagepanel .gp-go { white-space: normal; }
/* the pit limiter bar sat under the keys strip at the bottom: lift the dash clear of it */
.hud:not(.compact) .dash { bottom: calc(var(--dash-b) + 2px); }
/* race messages: with the garage / pit panel open the feed moved over it; centre it above the dash instead */
.hud:not(.compact):has(.rcol.pp) .strip { left: calc(var(--lcol-w) + 2 * var(--g) + (100vw - var(--lcol-w) - var(--rcol-w) - 4 * var(--g)) / 2); right: auto; transform: translateX(-50%); width: min(420px, calc(100vw - var(--lcol-w) - var(--rcol-w) - 6 * var(--g))); bottom: calc(var(--dash-b) + 178px); }
/* style shop cards (QA: name "Team colours" pushed out of its card): the button row spans the card under icon + name,
   so a wide button row never squeezes the name column to nothing */
.item > .it-btns { grid-column: 1 / -1; }
.item > .it-btns > button { flex: 1 1 auto; justify-content: center; }
.item .it-t b, .item .it-t small { overflow-wrap: anywhere; }
/* leaderboards: a driver's title chip was cut to "RAIN MAS..."; it now drops under the name when the row is narrow */
.lb li b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
.lb li b .ttl { margin-left: 0; overflow: visible; text-overflow: clip; max-width: 100%; white-space: normal; line-height: 1.25; }
/* hub, short windows: the Events count badge sat on the Clubs icon; it now rides the tile's corner */
@media (max-height: 520px) {
  .hub-tile { letter-spacing: 0.05em; }
  .hub-tile .hb-badge { position: absolute; top: -7px; right: -5px; margin: 0; z-index: 1; }
}
/* hub events: no "Neon Harbour · Under th..." - the circuit line wraps */
.hb-ev .he-t small { white-space: normal; overflow: visible; text-overflow: clip; }
/* season track: prize names were cut to "Aurora bronze..." in narrow tiers; they get the lines they need */
.sc small { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: normal; hyphens: manual; }
/* slow-load notice (after 75 s): it sat over the save/privacy paragraph at the bottom; it now takes the empty top-right corner */
.loading-screen .ld-slow, .loading-screen.has-stills > .ld-slow { position: absolute; z-index: 5; left: auto; right: 16px; top: 16px; bottom: auto; transform: none; max-width: min(380px, calc(100vw - 32px)); justify-content: flex-start; text-align: left; }
