/* dayfell.com — player dashboard (signed-in account page): tabs, news feed, notification switches.
   Builds on site.css + account.css tokens: charcoal panels, bone text, amber accent, notched corners. */
.dash-on .sec-head { margin-bottom: 26px; }
.dash-on .sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); word-break: break-word; }
.dash-panel[hidden], #newsBadge[hidden], #nudge[hidden], .reader[hidden] { display: none !important; }

/* ---------- identity strip ---------- */
.dash-top { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dash-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar { flex: none; width: 72px; height: 88px; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 60%, rgba(212, 162, 60, .22), transparent), rgba(0, 0, 0, .45); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line-2); }
.avatar img { width: 48px; height: 68px; image-rendering: pixelated; }
.dash-id .who-name { margin: 0; }
.who-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: 8px; }
.dash-stats div { background: rgba(0, 0, 0, .35); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line); padding: 12px 12px 10px; text-align: center; min-width: 0; }
.dash-stats b { display: block; font: 700 26px/1 var(--pix); color: var(--gold); font-variant-numeric: tabular-nums; }
.dash-stats span { display: block; margin-top: 6px; font: 700 10px/1.2 var(--hud); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- tabs ---------- */
.dash-tabs { position: sticky; top: 64px; z-index: 20; display: flex; gap: 4px; margin: 0 0 20px; padding: 6px; background: rgba(22, 21, 19, .9); backdrop-filter: blur(8px); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line); overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs a { position: relative; flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px 13px; font: 700 12px/1 var(--hud); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; clip-path: var(--notch); white-space: nowrap; }
.dash-tabs a:hover { color: var(--bone); background: rgba(255, 255, 255, .04); }
.dash-tabs a.on { color: #1b1616; background: linear-gradient(180deg, var(--gold), var(--amber)); }
.tbadge { min-width: 20px; height: 18px; padding: 3px 5px 0; font: 700 10px/1 var(--hud); color: #1b1616; background: var(--gold); clip-path: var(--notch); text-align: center; }
.dash-tabs a.on .tbadge { background: #1b1616; color: var(--gold); }

/* ---------- panels ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.card-eyebrow { margin: 0 0 12px; font: 700 11px/1 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dash-sec .more { margin: 0; font: 700 11px/1 var(--hud); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.latest-v { margin: 0 0 4px; }
.latest-list { margin: 12px 0 0; padding-left: 20px; color: #ddd2b8; }
.latest-list li { margin: 6px 0; }
.latest-list li::marker { color: var(--added); }
.save-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; color: var(--muted); }
.save-line b { color: var(--bone); font-weight: 700; }

.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-list a { display: grid; gap: 4px; padding: 12px; margin: 0 -12px; text-decoration: none; color: inherit; clip-path: var(--notch); }
.mini-list a:hover { background: rgba(255, 255, 255, .04); }
.mini-list b { color: var(--bone); font-weight: 700; font-size: 16px; line-height: 1.3; }
.mini-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.mini-sum { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-top .dot { width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 0 3px rgba(234, 196, 106, .18); }

.alert-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alert-sum li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.sum-k { font: 700 11px/1.2 var(--hud); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sum-v { color: var(--bone); }
.sum-v.off { color: var(--dim); }
.nudge { margin-top: 18px; padding: 14px 16px; background: rgba(212, 162, 60, .1); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line-2); }
.nudge p { margin: 0 0 10px; color: var(--bone); }

/* overview: latest update on the left, save + alerts stacked on the right, news across the bottom */
.dash-grid.ov { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "latest save" "latest alerts" "news news"; }
.ov .latest-card { grid-area: latest; align-self: stretch; } .ov .save-card { grid-area: save; } .ov .alerts-card { grid-area: alerts; } .ov .news-card { grid-area: news; }
.ov .mini-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
.ov .mini-list a { margin: 0; }

/* ---------- news feed ---------- */
.feed-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 700 11px/1 var(--hud); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(0, 0, 0, .35); border: 0; padding: 10px 12px 11px; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.chip:hover { color: var(--bone); }
.chip.on { color: var(--bone); box-shadow: inset 0 0 0 2px var(--amber); background: rgba(212, 162, 60, .12); }
.feed { display: grid; gap: 16px; max-width: 820px; }
.nitem { padding: 0; overflow: hidden; scroll-margin-top: 140px; }
.nitem.unread { box-shadow: inset 0 0 0 2px var(--line-2), inset 4px 0 0 var(--gold); }
.nitem.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: inset 0 0 0 2px var(--gold); } 100% { box-shadow: inset 0 0 0 2px var(--line); } }
.nimg { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: rgba(0, 0, 0, .4); }
.ninner { padding: clamp(18px, 3vw, 28px); }
.nitem h3 { margin: 10px 0 8px; font-size: clamp(22px, 2.4vw, 28px); }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--dim); }
.ntag { font: 700 10px/1 var(--hud); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px 6px; clip-path: var(--notch); color: #1b1616; background: var(--amber); }
.ntag.t-update { background: var(--added); }
.ntag.t-devlog { background: var(--changed); }
.ntag.t-platform { background: var(--bone); }
.ntag.t-event { background: var(--gold); }
.nnew, .npin { font: 700 10px/1 var(--hud); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px 6px; clip-path: var(--notch); }
.nnew { color: var(--gold); box-shadow: inset 0 0 0 2px rgba(234, 196, 106, .5); }
.npin { color: var(--muted); box-shadow: inset 0 0 0 2px var(--line-2); }
.prose { color: #ddd2b8; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--amber); }
.prose b { color: var(--bone); }
.prose > :last-child { margin-bottom: 0; }
.nitem .chg h4:first-child { margin-top: 8px; }
.nact { margin-top: 18px; }
.nmore summary { cursor: pointer; font: 700 11px/1 var(--hud); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); padding: 8px 0; list-style: none; }
.nmore summary::-webkit-details-marker { display: none; }
.nmore summary::before { content: "+ "; }
.nmore[open] summary::before { content: "− "; }

/* ---------- notification switches ---------- */
.set-head { display: flex; gap: 14px; align-items: flex-start; }
.set-head h3 { margin: 2px 0 6px; }
.set-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--gold); background: rgba(0, 0, 0, .4); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line-2); }
.set-ico .ico { width: 20px; height: 20px; }
.toggles { display: grid; gap: 2px; margin-top: 12px; }
.tog { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 12px; margin: 0 -12px; cursor: pointer; clip-path: var(--notch); }
.tog:hover { background: rgba(255, 255, 255, .035); }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog-ui { position: relative; width: 52px; height: 28px; background: rgba(0, 0, 0, .55); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line-2); transition: background .15s; }
.tog-ui::after { content: ""; position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; background: var(--dim); transition: transform .15s, background .15s; }
.tog input:checked + .tog-ui { background: linear-gradient(180deg, var(--gold), var(--amber)); box-shadow: none; }
.tog input:checked + .tog-ui::after { transform: translateX(24px); background: #1b1616; }
.tog input:focus-visible + .tog-ui { outline: 2px solid var(--gold); outline-offset: 3px; }
.tog input:disabled + .tog-ui { opacity: .45; }
.tog-txt b { display: block; color: var(--bone); font-weight: 700; }
.tog-txt small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
#panel-alerts .form-msg { min-height: 1.2em; margin-top: 6px; font-size: 14px; }

/* sign-up opt-in */
.acheck { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.45; cursor: pointer; }
.acheck input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--amber); }

@media (max-width: 900px) {
  .dash-grid, .dash-grid.ov { grid-template-columns: 1fr; grid-template-areas: none; }
  .ov .latest-card, .ov .save-card, .ov .alerts-card, .ov .news-card { grid-area: auto; }
  .ov .mini-list { grid-template-columns: 1fr; }
  .ov .mini-list a { margin: 0 -12px; }
  .dash-stats { width: 100%; }
}
@media (max-width: 560px) {
  .dash-tabs { top: 58px; margin-inline: calc(var(--gut) * -1); clip-path: none; box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line); padding: 6px var(--gut); }
  .dash-tabs a { padding: 11px 12px 12px; font-size: 11px; }
  .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dash-stats div { padding: 10px 4px 8px; }
  .dash-stats b { font-size: 20px; }
  .dash-stats span { font-size: 9px; }
  .alert-sum li { grid-template-columns: 1fr; gap: 2px; }
  .avatar { width: 60px; height: 74px; }
  .avatar img { width: 36px; height: 51px; }
}

/* ---------- banners: always inside the card, scaled to its width (16:7, never cropped wider than the box) ---------- */
.banner { display: block; width: 100%; max-width: 100%; margin: 14px 0; overflow: hidden; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line); background: rgba(0, 0, 0, .4); line-height: 0; }
.banner img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
a.banner:hover img { filter: brightness(1.08); }
.latest-card .banner { margin-top: 0; }
.nitem h3 a { color: inherit; text-decoration: none; }
.nitem h3 a:hover { color: var(--gold); }
.nsum { margin: 0; color: #ddd2b8; }
.nact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.latest-v a { color: inherit; text-decoration: none; }
.latest-v a:hover { color: var(--gold); }
.mini-list a.with-img .banner { margin: 0 0 10px; }
.mini-txt { display: grid; gap: 4px; min-width: 0; }
.r-in .banner { margin: 0 0 20px; }
.r-in .r-title { padding-right: 44px; }

.reader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: clamp(12px, 5vh, 56px) 16px; overflow-y: auto; background: rgba(8, 8, 7, .82); backdrop-filter: blur(4px); }
body.reading { overflow: hidden; }
.reader-box { position: relative; width: 100%; max-width: 860px; background: #2a2724; clip-path: var(--notch-lg); box-shadow: inset 0 0 0 2px var(--line-2); animation: rin .18s ease-out; }
@keyframes rin { from { transform: translateY(12px); opacity: 0; } }
.reader-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; cursor: pointer; font: 700 24px/1 var(--body); color: var(--bone); background: rgba(12, 11, 10, .75); clip-path: var(--notch); }
.reader-x:hover { color: var(--gold); }
.r-in { padding: clamp(20px, 4vw, 40px); }
.r-title { margin: 12px 0 16px; font-size: clamp(26px, 4vw, 44px); text-transform: uppercase; }
.r-text { font-size: 17px; }
.r-text .chg h4:first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .reader-box { animation: none; } }
