/* Rookie Week, Starter Supply and the 7-day sign-in calendar (client/panels-rookie.js) */
.rk-root .pn-title { margin-bottom: 10px; }
.rk-help { width: 36px; height: 36px; padding: 0 !important; border-radius: 50%; border: 2px solid var(--pn-gold2); background: rgba(0,0,0,.35); color: var(--pn-gold); font: 900 17px/1 system-ui !important; }
.rk-tabs button { flex: 1 1 0; min-height: 44px; font-size: 14px; font-weight: 700; }
.rk-tabs .pn-bdg { top: -5px; right: -2px; }
.rk-body { display: grid; gap: 10px; min-width: 0; }

/* banner: day and time left, points, the grand-prize hero, the bar with its chests */
.rk-banner { padding: 12px 12px 10px; border-radius: 14px; border: 1px solid #8a6fd0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(181,110,224,.3), transparent 55%), linear-gradient(135deg, #2c2548, #17201a 80%);
  box-shadow: inset 0 1px 0 rgba(220,200,255,.15), 0 4px 12px rgba(0,0,0,.35); }
.rk-banner .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.rk-banner small { display: block; font-size: 11px; color: #c9c0e6; text-transform: uppercase; letter-spacing: .05em; }
.rk-banner .cd b { display: block; font: 900 20px/1.15 ui-monospace, Menlo, Consolas, monospace; color: #fff; }
.rk-banner .cd i { font-style: normal; font-size: 11px; color: #c9c0e6; }
.rk-banner .pts { text-align: right; }
.rk-banner .pts b { font: 900 30px/1 system-ui; color: var(--c-amber-hi); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.rk-banner .pts b span { font-size: 15px; color: #d9c48c; }
.rk-prize { width: 100%; margin-top: 10px; padding: 8px; display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; text-align: left; color: #fff; border-radius: 12px;
  border: 1px solid var(--rc); background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.15)); box-shadow: inset 0 0 18px color-mix(in srgb, var(--rc) 35%, transparent); }
.rk-prize .pic { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px var(--rc), 0 0 12px var(--rc); display: block; }
.rk-face { display: block; border-radius: 12px; }
.rk-prize .tx { min-width: 0; display: grid; gap: 1px; }
.rk-prize .tx small { text-transform: uppercase; letter-spacing: .05em; font-size: 10px; color: var(--c-amber-pale); }
.rk-prize .tx b { font: 900 18px/1.15 system-ui; }
.rk-prize .tx b em { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font: 800 10px/1.5 system-ui; font-style: normal; vertical-align: 3px; background: var(--rc); color: #150a22; text-transform: uppercase; }
.rk-prize .tx i { font-style: normal; font-size: 12px; line-height: 1.3; color: #d8d0ee; }
.rk-prize.ready { animation: rk-glow 1.4s ease-in-out infinite; }
.rk-prize.done { opacity: .75; }
@keyframes rk-glow { 50% { box-shadow: inset 0 0 18px color-mix(in srgb, var(--rc) 35%, transparent), 0 0 16px var(--c-amber-hi); border-color: var(--c-amber-hi); } }
.rk-track { position: relative; height: 74px; margin: 6px 22px 0 6px; }
.rk-bar { position: absolute; left: 0; right: 0; bottom: 22px; height: 12px; border-radius: 6px; background: var(--c-ink); box-shadow: inset 0 0 0 1px #4f4670; overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8a5fd0, var(--c-amber-hi)); transition: width .4s; }
.rk-chest { position: absolute; bottom: 0; width: 44px; margin-left: -22px; padding: 0; border: 0; background: none; color: #fff; display: grid; justify-items: center; gap: 12px; }
.rk-chest .ic { width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; border-radius: 12px; background: linear-gradient(#3d3a52, #24222f); box-shadow: 0 0 0 2px #5d5880, 0 3px 0 #0d0c13; filter: grayscale(.6) brightness(.85); }
.rk-chest b { min-width: 30px; padding: 1px 5px; border-radius: 999px; background: var(--c-ink); border: 1px solid #4f4670; font: 800 11px/1.3 system-ui; color: #d8d0ee; }
.rk-chest.grand .ic { box-shadow: 0 0 0 2px var(--c-amber-lo), 0 3px 0 #0d0c13; }
.rk-chest.ready .ic { filter: none; background: linear-gradient(var(--c-amber-hi), #e3a03a); box-shadow: 0 0 0 2px #fff3c8, 0 3px 0 #8a5a10, 0 0 14px rgba(255,215,106,.7); animation: rk-bob 1.2s ease-in-out var(--ph, 0s) infinite; }
.rk-chest.ready b { background: var(--pn-gold); border-color: #fff3c8; color: var(--c-amber-ink); }
.rk-chest.done .ic { filter: none; background: #1f3a1c; box-shadow: 0 0 0 2px #3f7a3a; font-size: 17px; }
.rk-chest.done b { color: var(--good); border-color: #3f7a3a; }
@keyframes rk-bob { 50% { transform: translateY(-3px); } }

/* starter supply */
.rk-starter { padding: 10px; border-radius: 12px; border: 1px solid var(--pn-gold2); background: linear-gradient(135deg, #3a2f12, var(--panel) 70%); display: grid; gap: 8px; box-shadow: 0 0 10px rgba(240,180,60,.18); }
.rk-starter .hd { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.rk-starter .ic, .rk-bhead .ic, .rk-shead .ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 10px; background: var(--c-ink); border: 1px solid var(--line); }
.rk-starter .tx { min-width: 0; display: grid; gap: 2px; }
.rk-starter .tx b { font-size: 15px; color: var(--c-amber-hi); }
.rk-starter .tx b em { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--good); color: #06210a; font: 900 10px/1.5 system-ui; font-style: normal; vertical-align: 2px; }
.rk-starter .tx small { font-size: 12px; line-height: 1.3; color: #cfd8c9; }

/* day tabs */
.rk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rk-day { position: relative; min-height: 62px; padding: 5px 1px 4px; border-radius: 10px; display: grid; justify-items: center; align-content: center; gap: 1px; background: var(--panel); border: 1px solid var(--line); color: var(--text); min-width: 0; }
.rk-day .ic { font-size: 18px; line-height: 1.1; }
.rk-day b { font: 800 11px/1.1 system-ui; white-space: nowrap; }
.rk-day small { max-width: 100%; font: 600 9px/1.1 system-ui; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-day.locked { opacity: .6; } .rk-day.locked .ic { font-size: 15px; }
.rk-day.today { border-color: #8a6fd0; }
.rk-day.fin b { color: var(--good); }
.rk-day.active { background: linear-gradient(#ffd97a, #e3a12f); border-color: #ffe7a6; color: var(--c-amber-ink); opacity: 1; }
.rk-day.active small { color: #5a3d08; } .rk-day.active.fin b { color: #1f4a14; }
.rk-day .pn-bdg { top: -5px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; font-style: normal; }

/* board head, sign-in head */
.rk-bhead, .rk-shead { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.rk-bhead .tx, .rk-shead .tx { min-width: 0; display: grid; gap: 1px; }
.rk-bhead .tx b, .rk-shead .tx b { font-size: 16px; color: var(--c-amber-hi); }
.rk-bhead .tx small, .rk-shead .tx small { font-size: 12px; line-height: 1.3; color: #cfd8c9; }
.rk-bhead .ct, .rk-shead .ct { padding: 3px 9px; border-radius: 999px; background: var(--c-ink); border: 1px solid var(--line); font: 800 12px/1.3 system-ui; white-space: nowrap; }
.rk-bhead .ct.lock { border-color: #8a6fd0; color: #d8d0ee; }
.rk-hint { font-size: 12px; color: #d9c48c; padding: 0 2px; }

/* goal rows */
.rk-list { display: grid; gap: 8px; }
.rk-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.rk-row .tx { min-width: 0; display: grid; gap: 5px; }
.rk-row .ds { font-size: 14px; font-weight: 600; line-height: 1.25; }
.rk-row.ready { border-color: var(--pn-gold2); background: linear-gradient(135deg, #2e2a14, var(--panel) 70%); box-shadow: 0 0 10px rgba(240,180,60,.18); }
.rk-row.done { opacity: .55; }
.rk-row.locked { opacity: .7; }
.rk-tag { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #2b2a40; border: 1px solid #55527a; color: #c9c6ff; font-size: 10px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.rk-prog { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.rk-prog .pn-bar { margin-top: 0; } .rk-prog small { font: 700 11px/1 system-ui; color: var(--muted); white-space: nowrap; }
.rk-rws { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.rk-rw { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); font-size: 12px; white-space: nowrap; }
.rk-rw.pts { background: #2c2548; border-color: #8a6fd0; color: #e6dcff; }
.rk-rw.hero { background: #3a2452; border-color: var(--c-r-epic); color: #f1ddff; }
.rk-btn { min-width: 64px; min-height: 44px; padding: 6px 10px; border-radius: 10px; font: 800 14px/1 system-ui; }
.rk-btn.go { background: linear-gradient(#3f7fc0, #24558a); border: 1px solid #8fbdf0; color: #fff; box-shadow: 0 2px 0 #12304f; }
.rk-btn.claim { background: linear-gradient(#ffd97a, #e3a12f 55%, #b8761a); border: 1px solid #ffe7a6; color: #2a1a03; box-shadow: 0 2px 0 var(--c-amber-deep); animation: rk-pulse 1.4s ease-in-out infinite; }
@keyframes rk-pulse { 50% { filter: brightness(1.15); transform: scale(1.04); } }
.rk-tick { width: 64px; text-align: center; font: 900 22px/1 system-ui; color: var(--good); }
.rk-tick.lock { font-size: 16px; }

/* sign-in calendar: four squares, then two and the big seventh */
.rk-cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rk-sq { position: relative; min-height: 104px; padding: 6px 3px; border-radius: 12px; display: grid; justify-items: center; align-content: start; gap: 3px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.rk-sq .dn { font: 800 10px/1.2 system-ui; letter-spacing: .04em; color: var(--muted); }
.rk-sq .ic { font-size: 26px; line-height: 1.2; }
.rk-sq .pic { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px var(--c-r-epic); }
.rk-sq .rk-rws.tiny { justify-content: center; gap: 2px; } .rk-sq .rk-rw { font-size: 11px; padding: 0 5px; }
.rk-sq.big { grid-column: span 2; border-color: var(--pn-gold2); background: radial-gradient(120% 120% at 50% 0%, rgba(240,180,60,.22), transparent 60%), var(--panel); }
.rk-sq.today { border-color: var(--pn-gold); box-shadow: 0 0 10px rgba(240,180,60,.45); }
.rk-sq.today .dn { color: var(--pn-gold); }
.rk-sq.done { opacity: .6; }
.rk-sq .ck { position: absolute; top: 3px; right: 5px; font: 900 15px/1 system-ui; color: var(--good); }
.rk-claimed { padding: 12px; border-radius: 12px; text-align: center; background: var(--panel); border: 1px solid #3f7a3a; color: var(--good); font-weight: 700; }
.rk-claimed b { color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; }
.rk-body > .ec-btn.wide { margin-top: 0; }

/* sticky Claim all */
.rk-foot { position: sticky; bottom: 0; margin: 10px -12px 0; padding: 8px 12px calc(8px + var(--safe-bottom)); background: linear-gradient(transparent, rgba(15,23,17,.95) 30%); }
#panel .pn-wrap.rk-root:has(.rk-foot) { padding-bottom: 0; }
.rk-quick { position: relative; width: 100%; min-height: 50px; font-size: 17px; }
.rk-quick .hud-bdg { top: -6px; right: -4px; }

/* popups */
.rk-note { font-size: 13px; margin: 6px 0 0; }
.rk-rules { margin: 4px 0 4px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
#sheet .rk-rws { margin-top: 6px; gap: 6px; } #sheet .rk-rw { font-size: 14px; padding: 3px 10px; }
.rk-rws.named { display: grid; grid-template-columns: 1fr 1fr; } .rk-rws.named .rk-rw { gap: 5px; border-radius: 10px; min-width: 0; }
.rk-rws.named small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.rk-pop .ec-pop-card { display: grid; gap: 10px; }
.rk-pop .ec-pop-it small { white-space: normal; overflow: visible; line-height: 1.2; text-align: center; }
.rk-pop .ec-pop-items { align-items: stretch; }
