
/* Number Rivals v2.00: real-question history, personal-best records, and animated prize chests. */
.nr200-board{margin:22px 0 26px;padding:22px;border:1px solid #365979;border-radius:22px;background:linear-gradient(155deg,#153149,#0c1d34 64%,#112742);box-shadow:0 18px 42px rgba(0,5,17,.25);color:#f3f9ff}
.nr200-kicker{display:block;color:#80c8ee;font-size:10px;font-weight:900;letter-spacing:.15em;margin-bottom:7px}
.nr200-title{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.nr200-title h3{margin:0;font-size:clamp(21px,2.3vw,29px);font-weight:1000;letter-spacing:.025em}
.nr200-title p{color:#b2c7d9;max-width:560px;margin:6px 0 0;font-size:13px;line-height:1.5}
.nr200-range-tabs{display:flex;flex-wrap:wrap;gap:6px}
.nr200-range-tabs button,.nr200-week-nav button{background:#183850;border:1px solid #396181;color:#c7e1f6;border-radius:9px;font-weight:900;font-size:11px;min-height:38px;padding:8px 11px;cursor:pointer}
.nr200-range-tabs button[aria-pressed="true"]{background:linear-gradient(135deg,#58bbee,#2376bd);border-color:#9cdeff;color:#031d31}
.nr200-range-tabs button:hover,.nr200-week-nav button:hover:not(:disabled){border-color:#f6cb70}
.nr200-week-nav button:disabled{opacity:.36;cursor:default}
.nr200-range-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px}
.nr200-week-nav{display:flex;align-items:center;gap:10px}
.nr200-week-nav strong{font-size:12px;color:#e6f5ff;min-width:190px;text-align:center}
.nr200-custom-dates{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.nr200-custom-dates label{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:11px;color:#c8def0;font-weight:800}
.nr200-custom-dates input{background:#12273f;border:1px solid #466a89;color:#e8f5ff;border-radius:7px;padding:8px;min-height:38px;color-scheme:dark}
.nr200-chart-shell{background:linear-gradient(180deg,#0c2137 0%,#0b1a30 100%);border:1px solid #355472;border-radius:14px;padding:16px 15px 12px;overflow:hidden}
.nr200-chart-info{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-bottom:13px;color:#9cbad1;font-size:11px;font-weight:800}
.nr200-chart-info strong{color:#ecf7ff;font-size:18px;margin-right:4px}
.nr200-bars-viewport{overflow-x:auto;overflow-y:hidden;padding-bottom:4px}
.nr200-bars{display:grid;grid-template-columns:repeat(var(--nr200-columns,7),minmax(43px,1fr));align-items:end;gap:clamp(5px,1vw,14px);min-width:var(--nr200-minwidth,0px);height:210px;border-bottom:1px solid #3a5871;position:relative;padding-top:9px}
.nr200-bars::before{content:"";position:absolute;inset:9px 0 0;pointer-events:none;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,rgba(149,199,230,.10) 50px);background-size:100% 50px}
.nr200-bar-cell{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;position:relative;z-index:1}
.nr200-bar-value{font-size:12px;font-weight:900;color:#ddf3ff;line-height:1.2;margin-bottom:6px;white-space:nowrap}
.nr200-bar-fill{width:min(100%,48px);min-height:3px;background:linear-gradient(180deg,#94e8ff,#3e9bd9 64%,#176393);border:1px solid rgba(210,246,255,.34);border-radius:6px 6px 0 0;box-shadow:0 0 16px rgba(61,190,255,.18);transition:height .65s cubic-bezier(.2,.8,.2,1)}
.nr200-bar-cell.is-today .nr200-bar-fill{background:linear-gradient(180deg,#fff3bf,#f2bf54 70%,#b77724);box-shadow:0 0 16px rgba(238,187,89,.3)}
.nr200-bar-cell.is-today .nr200-bar-value{color:#ffe49c}
.nr200-bar-label{font-size:10px;font-weight:900;color:#a2bfd8;text-align:center;margin-top:9px;white-space:nowrap}
.nr200-bar-cell.is-today .nr200-bar-label{color:#ffe49c}
.nr200-graph-note{font-size:11px;line-height:1.5;color:#84a6c2;margin:9px 0 0}
.nr200-best-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 14px}
.nr200-best{background:#112b43;border:1px solid #355e7c;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:4px}
.nr200-best .nr200-best-label{color:#93cdec;font-size:10px;letter-spacing:.10em;font-weight:900}
.nr200-best strong{font-size:clamp(18px,2.5vw,27px);color:#f2faff}
.nr200-best small{color:#aac5d9;font-size:11px}
.nr200-best:nth-child(1){border-top:3px solid #55c8f5}.nr200-best:nth-child(2){border-top:3px solid #a98dec}.nr200-best:nth-child(3){border-top:3px solid #e7b659}
.nr200-chest-zone{background:linear-gradient(155deg,#192f48,#0c2039);border:1px solid #4e7090;border-radius:17px;padding:18px;margin-top:16px}
.nr200-chest-zone-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:15px}
.nr200-chest-zone h4{font-weight:1000;font-size:19px;margin:0 0 6px;color:#fff3cc}
.nr200-chest-zone p{margin:0;color:#b3c7d6;font-size:12px;line-height:1.5}
.nr200-cooldown{color:#f3da99;background:#2c3142;border:1px solid #645a4d;border-radius:11px;padding:12px 14px;font-size:12px;font-weight:900;min-width:175px;text-align:center}
.nr200-cooldown.is-ready{color:#91f0c7;border-color:#518f78;background:#1a463f}
.nr200-chest-lineup{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.nr200-chest-preview{min-width:0;padding:17px 10px 14px;border:1px solid #46607b;border-radius:13px;background:linear-gradient(170deg,#1a3750,#132539);text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.nr200-chest-preview h5{font-size:12px;font-weight:1000;letter-spacing:.035em;color:#e8f3ff;margin:0}
.nr200-chest-preview small{font-size:11px;color:#a2bdd2}
.nr200-chest-preview.tier3{background:radial-gradient(ellipse at 50% 24%,#3b4353 0,#152c48 72%);border-color:#d6b25e;box-shadow:inset 0 0 20px rgba(252,203,93,.1)}
.nr200-chest-art{--chest-base:#95562b;--chest-top:#d59352;--chest-trim:#e1b575;width:98px;height:94px;position:relative;margin:4px auto 7px;flex-shrink:0;filter:drop-shadow(0 9px 9px rgba(0,0,0,.35))}
.nr200-chest-art.tier2{--chest-base:#3f6f9a;--chest-top:#94c4df;--chest-trim:#b5e1fb}
.nr200-chest-art.tier3{--chest-base:#5c438f;--chest-top:#d4aafd;--chest-trim:#ffe292;filter:drop-shadow(0 0 19px rgba(239,205,117,.5)) drop-shadow(0 9px 9px rgba(0,0,0,.4))}
.nr200-chest-body{position:absolute;left:8%;right:8%;bottom:8%;height:48%;background:linear-gradient(110deg,#19273e,var(--chest-base),#162036);border:4px solid var(--chest-trim);border-radius:5px 5px 15px 15px;box-shadow:inset 0 -9px 0 rgba(0,0,0,.25)}
.nr200-chest-body::before{content:"";position:absolute;top:-4px;bottom:-4px;left:24%;width:8px;background:var(--chest-trim);opacity:.65}
.nr200-chest-body::after{content:"";position:absolute;top:-4px;bottom:-4px;right:24%;width:8px;background:var(--chest-trim);opacity:.65}
.nr200-chest-lock{position:absolute;z-index:3;left:43%;top:53%;height:18%;width:15%;border:2px solid #fff0ad;background:#bd8b39;border-radius:3px;box-shadow:0 0 9px #ffdd7c}
.nr200-chest-lid{position:absolute;left:3%;right:3%;top:17%;height:38%;z-index:2;background:linear-gradient(180deg,var(--chest-top),var(--chest-base));border:4px solid var(--chest-trim);border-radius:26px 26px 6px 6px;box-shadow:inset 0 8px 0 rgba(255,255,255,.18);transform-origin:50% 100%}
.nr200-chest-lid::after{content:"";position:absolute;left:42%;top:0;bottom:0;width:11%;background:var(--chest-trim)}
.nr200-chest-art.tier3::before{content:"✦";position:absolute;top:-26px;left:0;right:0;text-align:center;font-size:22px;color:#ffe697;animation:nr200CrownFloat 2.2s ease-in-out infinite}
.nr200-chest-art.tier3::after{content:"";position:absolute;inset:-17px;border:2px solid rgba(255,222,129,.55);border-radius:50%;animation:nr200Halo 2.8s linear infinite;z-index:-1}
@keyframes nr200CrownFloat{50%{transform:translateY(-7px);opacity:.72}}
@keyframes nr200Halo{50%{transform:rotate(180deg) scale(1.14);opacity:.4}100%{transform:rotate(360deg)}}
.nr200-chest-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between}
.nr200-chest-cta button{min-width:200px;min-height:45px}
.nr200-chest-cta small{font-size:11px;color:#bbcedd}
.nr200-chest-overlay{position:fixed;inset:0;z-index:2500;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(3,10,24,.88);backdrop-filter:blur(9px)}
.nr200-chest-dialog{width:min(100%,520px);max-height:96vh;overflow-y:auto;border:1px solid #bda06a;border-radius:23px;background:radial-gradient(ellipse at 50% 25%,#2b3e56,#0f2038 66%);color:#fff;text-align:center;padding:24px 22px 28px;position:relative;box-shadow:0 24px 90px #000c}
.nr200-chest-dialog.tier3{border-color:#ffe5a0;box-shadow:0 0 50px rgba(248,213,105,.2),0 24px 90px #000d}
.nr200-chest-dialog h2{font-size:clamp(22px,5vw,33px);font-weight:1000;margin:10px 0 5px;color:#fff1cb}
.nr200-chest-dialog p{font-size:13px;color:#c4d9e7;margin:5px 0 12px}
.nr200-chest-dialog .nr200-chest-art{transform:scale(1.6);margin:44px auto 45px}
.nr200-chest-dialog.is-opening .nr200-chest-lid{animation:nr200OpenLid .85s cubic-bezier(.17,.75,.3,1.35) forwards}
.nr200-chest-dialog.is-opening .nr200-chest-art{animation:nr200Shake .5s ease-in-out 2}
@keyframes nr200OpenLid{0%{transform:translateY(0) rotateX(0)}80%,100%{transform:translateY(-34px) rotate(-12deg)}}
@keyframes nr200Shake{20%{transform:scale(1.63) rotate(-3deg)}50%{transform:scale(1.62) rotate(3deg)}80%{transform:scale(1.62) rotate(-2deg)}}
.nr200-chest-dialog.is-revealed .nr200-chest-lid{transform:translateY(-34px) rotate(-12deg)}
.nr200-prize{font-size:clamp(32px,8vw,55px);font-weight:1000;color:#ffe38e;text-shadow:0 0 23px #d79539;animation:nr200Prize 1s both}
@keyframes nr200Prize{from{opacity:0;transform:scale(.3) translateY(15px)}70%{transform:scale(1.12)}to{opacity:1;transform:scale(1)}}
.nr200-coin-rain{pointer-events:none;position:absolute;inset:10% 0;overflow:hidden}
.nr200-coin-rain i{position:absolute;left:var(--x);top:35%;height:10px;width:10px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff1b5,#efb94d 65%,#8f621e);animation:nr200Rain var(--dur) ease-in both;animation-delay:var(--delay)}
@keyframes nr200Rain{0%{opacity:0;transform:translate(0,-70px) scale(.2)}30%{opacity:1}100%{opacity:0;transform:translate(var(--dx),250px) scale(.65)}}
.nr200-dialog-close{position:absolute;top:8px;right:10px;border:0;background:transparent;color:#bfd0de;font-size:29px;cursor:pointer}
@media(max-width:690px){.nr200-board{padding:13px;margin:13px 0 20px}.nr200-title{gap:10px}.nr200-best-grid{grid-template-columns:1fr 1fr}.nr200-best:last-child{grid-column:1/-1}.nr200-chest-lineup{gap:7px}.nr200-chest-preview{padding:14px 5px}.nr200-chest-art{transform:scale(.79);margin:-3px auto}.nr200-chest-preview h5{font-size:10px}.nr200-chest-zone{padding:12px}.nr200-week-nav strong{min-width:auto}.nr200-range-tabs button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.nr200-chest-art.tier3::before,.nr200-chest-art.tier3::after,.nr200-chest-dialog.is-opening .nr200-chest-lid,.nr200-chest-dialog.is-opening .nr200-chest-art,.nr200-prize,.nr200-coin-rain i{animation:none!important}.nr200-bar-fill{transition:none!important}}
