/* A new player's first days (firstday.js) and 今晚的鬼 (daily.js). Pixel skin tokens from skin.css; .pf-bar from profile.css. */

/* ---------- hall: what the next level unlocks ---------- */
/* Quiet on purpose: one line and a thin bar over the Play button, not another framed panel. */
.fd-strip { all: unset; cursor: pointer; box-sizing: border-box; display: grid; gap: 4px; width: 100%; max-width: 360px; margin: 0 auto 6px; padding: 2px 4px; text-align: center; }
.fd-strip:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.fd-next { font-size: 13px; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-bar { height: 6px; }
/* Picks waiting take the strip's place: the same one line, in gold with a pixel underline, so it reads as a tap. */
.fd-picks .fd-next { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- locked entries: still there, with a lock and the level ---------- */
.fd-locked { display: inline-flex; align-items: center; gap: 5px; opacity: .72; }
.fd-locked .px-lock { flex: none; color: var(--dim); }
.fd-locked small { font-size: 11px; color: var(--dim); white-space: nowrap; }
/* In the hall's chip row (ranked next to decks, Lv5-6): name over "Lv6 解锁", like the chips beside it. Not .lg-btn,
   whose small (the rank) the hall hides (lobby.css). */
.hm-chips > .fd-locked { justify-content: flex-start; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-content: center; }
.hm-chips > .fd-locked .px-lock { grid-row: span 2; }
.hm-chips > .fd-locked span { font-size: 14px; color: var(--cream); }
.hm-chips > .fd-locked small { font-size: 12px; }
/* 「新」 on a mode just unlocked, until it is opened once (firstday.js newTags): a small gold tag on the corner. */
.fd-new { position: absolute; top: -7px; right: -6px; z-index: 2; font-style: normal; font-size: 12px; line-height: 1; padding: 2px 4px;
  background: var(--gold); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
#title [data-act="daily"], #title [data-act="ladder"], #title [data-act="patrol"] { position: relative; }
/* Deckbuilding reached but its Lv5 guide not done yet (it came late): the entry opens the guide. */
.fd-ready { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; }
.fd-ready small { font-size: 11px; color: var(--gold); white-space: nowrap; }

/* ---------- results: one prompt ---------- */
.fd-prompt { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; margin: 6px 0; padding: 6px 8px; text-align: left;
  background: var(--panel); box-shadow: inset 0 0 0 2px var(--rimlo); }
.fd-pic { width: 44px; height: 44px; background: center 30% / cover; box-shadow: var(--frame); }
.fd-txt { display: grid; gap: 2px; min-width: 0; }
.fd-txt b { font-weight: 400; color: var(--gold); font-size: 15px; }
.fd-txt small { font-size: 12px; color: var(--cream); line-height: 1.45; }
.fd-try { font-size: 13px; padding: 6px 10px; white-space: nowrap; }
/* "Come back tomorrow": a quiet fixed line, not a panel (the one prompt a screen is the unlock or another ask). */
.fd-backline { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0; font-size: 13px; color: var(--cream); }
/* A face-down card: the silhouette of what tomorrow brings. */
.fd-cardback { flex: none; display: block; width: 14px; height: 20px; background: repeating-linear-gradient(45deg, #2a2f55 0 3px, #232848 3px 6px);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 1px var(--ink); }
@media (max-width: 420px) {
  .fd-prompt { grid-template-columns: 40px 1fr; }
  .fd-prompt .fd-try { grid-column: 1 / -1; justify-self: stretch; }
}

/* ---------- 今晚的鬼 ---------- */
#daily { padding-inline: max(12px, calc((100% - 560px) / 2)); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); gap: 10px; text-align: center; }
.dl-date { margin: 0; color: var(--gold); font-size: 15px; }
.dl-card { display: flex; justify-content: center; }
.dl-card .c2.big { width: min(230px, 62vw); }
.dl-rule { margin: 0; font-size: 13px; color: var(--cream); line-height: 1.55; }
.dl-mine { margin: 0; font-size: 14px; color: var(--dim); }
.dl-mine.win { color: var(--teal); }
.dl-past { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.dl-past li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 4px 8px; background: var(--panel); }
.dl-past b { font-weight: 400; font-size: 14px; color: var(--cream); }
.dl-past small { font-size: 12px; color: var(--dim); }
.dl-pic { width: 32px; height: 32px; background: center 30% / cover; box-shadow: var(--frame); }
.dl-res { display: grid; gap: 2px; margin: 4px 0; }
.dl-res b { font-weight: 400; font-size: 16px; color: var(--gold); }
.dl-res.lose b { color: var(--cream); }
.dl-res small { font-size: 12px; color: var(--dim); }
/* the streak (daily.js): on the results, and under the hall entry's name; a gold dot when tonight keeps it alive */
.dl-res .dl-streak { font-size: 13px; color: var(--gold); }
.dl-res .dl-prize { font-size: 14px; color: var(--gold); }
.dl-res .dl-toprize { font-size: 12px; opacity: .8; }
/* tonight's card (daily.js, backlog #73): what a win gives, on the ghost's screen and the results */
.dl-win { margin: 0; font-size: 14px; color: var(--gold); }
.dl-win.got { color: var(--teal); }
.dl-win:not(.open):not(.got) { font-size: 12px; color: var(--dim); }
.dl-res .dl-got { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0; font-size: 15px; color: var(--gold); }
.dl-res .dl-got i { width: 32px; height: 32px; flex: none; background: center 30% / cover; box-shadow: var(--frame); }
.hm-modes .dl-entry { position: relative; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; }
.hm-modes .dl-entry small { font-size: 11px; color: var(--gold); white-space: nowrap; }
/* the reminder: the button's own pixel frame turns gold (a border colour is hidden under the border image) */
.hm-modes .dl-entry.remind, .hm-list .dl-entry.remind { border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' shape-rendering='crispEdges'%3E%3Crect x='1' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='2' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='3' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='4' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='5' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='6' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%230b0a14'/%3E%3C/svg%3E"); }
.hm-modes .dl-entry.remind:active, .hm-list .dl-entry.remind:active { border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' shape-rendering='crispEdges'%3E%3Crect x='1' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='2' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='3' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='4' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='5' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='6' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23273063'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23273063'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23a8761e'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23273063'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23f2c14e'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%230b0a14'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%230b0a14'/%3E%3C/svg%3E"); }
.dl-badge { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.dl-share:empty { display: none; }
