/* Nối Từ Việt Online 3.9.46 — Verified per-game Cup Races, Top 20.
   Loaded after VIP display layers; never alters frame sizing or user inventory. */
#ntv-game-root .ntv-leaderboard-v3924 .ntv-lb-heading{margin-bottom:10px}
#ntv-game-root .ntv-race-choices{display:flex;align-items:stretch;flex-wrap:wrap;gap:7px;margin:8px 2px 12px;padding:9px;border:1px solid #b6e3d5;border-radius:15px;background:linear-gradient(110deg,#e7fff5,#fdf9e4)}
#ntv-game-root .ntv-race-choices button{flex:1 1 135px;min-width:0;min-height:42px;padding:8px 10px;border-radius:12px;border:1.5px solid #c4dace;background:#fffef7;color:#135b4e;font-size:13px;line-height:1.25;font-weight:850;cursor:pointer;box-shadow:0 2px 0 #c9d9d2;white-space:normal}
#ntv-game-root .ntv-race-choices button.active{background:linear-gradient(135deg,#006c5b,#009c80);border-color:#ffe494;color:#fff8cf;box-shadow:0 3px 0 #07574a,inset 0 0 0 1px #51ceb1}
#ntv-game-root .ntv-race-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 10px;padding:14px 18px;border:2px solid #e5bf63;border-radius:17px;color:#ffedbd;background:linear-gradient(115deg,#044c48 0%,#057d69 65%,#18a88b 100%);box-shadow:0 4px 0 #b6d6b5}
#ntv-game-root .ntv-race-overview-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
#ntv-game-root .ntv-race-overview-copy small{color:#c8f8e5;font-size:10px;letter-spacing:1.2px;font-weight:900}
#ntv-game-root .ntv-race-overview-copy strong{font-size:clamp(18px,2.3vw,25px);line-height:1.25;font-weight:950;overflow-wrap:anywhere;color:#fff3ba}
#ntv-game-root .ntv-race-overview-copy span{color:#dbfff3;font-size:12px;line-height:1.4}
#ntv-game-root .ntv-race-top20-tag{flex:0 0 auto;display:grid;place-items:center;width:95px;min-height:67px;border-radius:15px;border:2px solid #fff0bd;background:linear-gradient(#ffef9a,#ffc34c);color:#87410c;box-shadow:0 3px 0 #a66c18;font-size:19px;font-weight:950;letter-spacing:.7px}
#ntv-game-root .ntv-race-my-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 14px}
#ntv-game-root .ntv-race-my-stats>div{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;min-height:80px;border:1.5px solid #c4dec6;border-radius:14px;background:#fffdf2;padding:10px 12px;box-shadow:0 3px 0 #dce5d0}
#ntv-game-root .ntv-race-my-stats>div:first-child{background:linear-gradient(125deg,#fff4ce,#ffe3a2);border-color:#f4c260}
#ntv-game-root .ntv-race-my-stats small{display:block;color:#587566;font-weight:700;font-size:12px;line-height:1.25}
#ntv-game-root .ntv-race-my-stats b{color:#086b58;font-size:clamp(16px,1.9vw,21px);font-weight:950;line-height:1.2;overflow-wrap:anywhere;white-space:normal}
#ntv-game-root .ntv-race-my-stats>div:first-child b{color:#7a4c06}
#ntv-game-root .ntv-race-count{font-size:12px;font-weight:750;margin:12px 5px;color:#386957}
#ntv-game-root .ntv-race-count b{color:#8f6007;font-size:14px}
#ntv-game-root .ntv-lb-tabs{row-gap:7px}
#ntv-game-root .ntv-lb-podium-card .ntv-lb-score{font-variant-numeric:tabular-nums}
#ntv-game-root .ntv-lb-entry-score{font-variant-numeric:tabular-nums}
#ntv-game-root .ntv-lb-podium-card .ntv-vip-title img{object-fit:contain!important}
#ntv-game-root .ntv-race-choices button:focus-visible{outline:3px solid #f6bd42;outline-offset:2px}
@media(max-width:720px){
 #ntv-game-root .ntv-race-choices{gap:6px;padding:7px}
 #ntv-game-root .ntv-race-choices button{flex:1 1 calc(50% - 6px);font-size:12px;min-height:42px}
 #ntv-game-root .ntv-race-my-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #ntv-game-root .ntv-race-my-stats>div{min-height:67px;padding:9px 10px}
 #ntv-game-root .ntv-race-overview{padding:12px;gap:7px}
 #ntv-game-root .ntv-race-top20-tag{width:71px;min-height:58px;font-size:15px}
 #ntv-game-root .ntv-race-overview-copy strong{font-size:19px}
 #ntv-game-root .ntv-race-overview-copy span{font-size:11px}
}
@media(max-width:365px){
 #ntv-game-root .ntv-race-choices button{font-size:11px;min-height:39px;padding:7px 4px}
 #ntv-game-root .ntv-race-my-stats b{font-size:15px}
 #ntv-game-root .ntv-race-top20-tag{width:61px;font-size:13px}
 #ntv-game-root .ntv-race-overview-copy strong{font-size:17px}
}

#ntv-game-root .ntv-race-earnings{color:#4e755f;font-size:11px;font-weight:750;line-height:1.2;margin:0 0 2px}
#ntv-game-root .ntv-lb-person .ntv-race-earnings{font-size:10px;color:#40775f;white-space:normal}

/* v3.9.47 — Two unified game boards; room type is deliberately not a ranking filter. */
#ntv-game-root .ntv-race-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#ntv-game-root .ntv-race-choices button{width:100%;min-width:0;min-height:45px;font-size:clamp(12px,1.6vw,15px)}
#ntv-game-root .ntv-race-unified-note{margin:0 3px 10px;font-size:12px;line-height:1.45;color:#28685a;font-weight:700}
@media(max-width:370px){#ntv-game-root .ntv-race-choices button{font-size:11px;padding:8px 4px}}
