/* The house look, loaded last on every page: dark, low saturation, quiet gradients, thin bronze rules.
   Original design; Faustina (SIL OFL, fonts/Faustina-OFL.txt; Nathan's pick 2026-11-15, closest free match to WoW's Friz Quadrata)
   for all text. It is a variable font (400-700), so text sits at 500 and bold is a real bold. */
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/faustina-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/faustina-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, :root:is(*) {
  color-scheme: dark;
  --bg: #07090d; --bg-2: #0c0e12;
  --panel: #15171b; --panel-hi: #1c1e22; --panel-lo: #101216;
  --ink: #e2e4e9; --muted: #8f949d; --faint: #626771;
  --line: #282a30; --line-hi: #3d414b;
  --accent: #b8c0cc; --accent-dim: #6e7684; --accent-ink: #12141a;
  --warn: #c8705e; --ok: #8fae7a; --new: #8fae7a; --gone: #c8705e; --move: #7d9fbe;
  --page: #121418; --pocket: rgba(230, 236, 248, .045);
  --violet: #7d5a9e; --violet-deep: #1d1424; --violet-glow: rgba(125, 80, 165, .16);
  --rule: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent) 20%, color-mix(in srgb, var(--accent) 55%, transparent) 80%, transparent);
  --display: 'Faustina', 'Georgia', serif;
  --barH: 54px;
}
html { background: var(--bg); }
body {
  /* faint star dust behind everything, two layers drifting at different speeds as you scroll (nav.js sets --sy) */
  background:
    var(--stars-big) 0 calc(var(--sy, 0) * -0.10px) / 560px 560px,
    var(--stars-small) 0 calc(var(--sy, 0) * -0.04px) / 320px 320px,
    radial-gradient(1100px 520px at 50% -160px, rgba(200, 208, 220, .10), transparent 70%),
    radial-gradient(900px 640px at -10% 110%, rgba(110, 85, 145, .16), transparent 70%),
    radial-gradient(700px 500px at 110% 60%, rgba(110, 85, 145, .08), transparent 70%),
    linear-gradient(180deg, #101216, #080a0e 55%, #08080a);
  background-attachment: fixed;
  color: var(--ink);
}
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- the app bar (nav.js draws it) ---------- */
.appbar { position: sticky; top: 0; z-index: 30; height: var(--barH); display: flex; align-items: center; gap: 22px; padding: 0 18px;
  background: linear-gradient(180deg, #1b1d21 0%, #111317 55%, #151316 100%), linear-gradient(90deg, rgba(200, 208, 220, .08), transparent 40%, rgba(110, 85, 145, .07));
  background-blend-mode: screen; }
.appbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); opacity: .8; }
.appbar .mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 17px/1 var(--display); letter-spacing: .22em; white-space: nowrap; }
.appbar .mark svg { width: 22px; height: 22px; color: var(--accent); }
.appbar nav { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.appbar nav a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); text-decoration: none;
  font: 400 12.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.appbar nav a svg { width: 17px; height: 17px; }
.appbar nav a:hover { color: var(--ink); }
.appbar nav a.on { color: var(--ink); }
.appbar nav a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.appbar nav a.on::before { content: ''; position: absolute; bottom: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg);
  background: var(--accent); box-shadow: 0 0 8px rgba(184, 192, 204, .6); z-index: 1; }
.appbar .sp { flex: 1; }
.appbar .ibtn { display: inline-flex; align-items: center; width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; background: transparent; border: 1px solid transparent; color: var(--muted); }
.appbar .ibtn:hover, .appbar .ibtn.on { color: var(--ink); border-color: var(--line-hi); background: rgba(255, 255, 255, .03); }
.appbar .ibtn svg { width: 19px; height: 19px; }
.appbar .who { position: relative; }
.appbar .who > button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; color: var(--ink); font-size: 13.5px; gap: 8px; }
.appbar .who > button:hover { border-color: var(--line-hi); }
.appbar .who .av { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #2f3135, #1b1d21); border: 1px solid var(--accent-dim); color: var(--accent); font: 400 11px/1 var(--display); }
.appbar .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 10px; z-index: 50;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 1px solid var(--line-hi); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.appbar .menu a, .appbar .menu button { display: flex; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); text-decoration: none; font-size: 14px; }
.appbar .menu a:hover, .appbar .menu button:hover { background: rgba(255, 255, 255, .05); }
.appbar .menu .mh { padding: 8px 10px 6px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.appbar .signin { font: 400 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }

/* phone: a slim top bar, the sections move to a bar along the bottom with Scan in the middle */
.tabbar { display: none; }
@media (max-width: 700px) {
  :root { --barH: 50px; }
  .appbar { gap: 10px; padding: 0 10px 0 14px; }
  .appbar nav { display: none; }
  .appbar .mark { font-size: 15px; }
  .appbar .who > button { padding: 4px; border-color: transparent; }
  .appbar .who .nm { display: none; }
  body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 88px 1fr; align-items: end;
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, #16181c, #0f0e10), radial-gradient(400px 80px at 50% 0, rgba(200, 208, 220, .12), transparent); background-blend-mode: screen; }
  .tabbar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); opacity: .7; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 60px; color: var(--muted); text-decoration: none;
    font: 400 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg { color: var(--accent); }
  .tabbar a.scan { position: relative; top: -14px; height: auto; }
  .tabbar a.scan i { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent);
    background: radial-gradient(circle at 50% 35%, #232529, #0f1115 75%); border: 1px solid var(--accent-dim);
    box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(184, 192, 204, .25); }
  .tabbar a.scan svg { width: 26px; height: 26px; }
  /* the toast and fixed bottom bars sit above the tab bar */
  body.has-tabbar .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-tabbar .xbar { bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---------- page heading: title in the display face over a thin rule ---------- */
.phead { max-width: var(--pw, 1100px); margin: 0 auto; padding: 26px 16px 0; }
.phead .crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font: 400 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.phead .crumb:hover { color: var(--accent); }
.phead .tl { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.phead h1 { margin: 0; font: 400 26px/1.15 var(--display); letter-spacing: .08em; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.phead .sub { color: var(--muted); font-size: 13px; padding-bottom: 4px; }
.phead .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phead .rule { height: 1px; margin-top: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), rgba(150, 125, 190, .32) 55%, transparent); }
.phead h1:not(:has(*)), .phead h1 > span { background: linear-gradient(180deg, #ffffff 20%, #c3cad5 75%, #8b93a1); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 2px; }
@media (max-width: 700px) { .phead { padding-top: 18px; } .phead h1 { font-size: 21px; } }

/* section headings */
h2.sec { font: 400 13px/1 var(--display) !important; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
h2.sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent-dim), rgba(150, 125, 190, .35) 50%, transparent); order: 1; }
h2.sec > * { order: 2; }

/* ---------- controls ---------- */
button, .btn {
  background: linear-gradient(180deg, #24262a 0%, #17191d 55%, #181a1e 100%); border: 1px solid var(--line-hi); color: var(--ink); border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(225, 232, 245, .05); transition: border-color .15s, color .15s, background .15s; }
button:hover:not(:disabled), .btn:hover { border-color: var(--accent-dim); }
button.primary, .btn.primary { background: linear-gradient(180deg, #eef1f5, #b4bcc8 55%, #7f8794); color: var(--accent-ink); border-color: #a9b1bd; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
button.primary:hover:not(:disabled) { border-color: #f4f6f9; filter: brightness(1.05); }
button.danger { color: var(--warn); }
button.danger.sure { background: linear-gradient(180deg, #b0604f, #8c4a3c); color: #fff; border-color: #b0604f; }
button.on { background: linear-gradient(180deg, #36383c, #212327 60%, #25272b); color: var(--ink); border-color: var(--accent-dim); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], select, textarea {
  background: linear-gradient(180deg, #0d0c0e, #161417); border: 1px solid var(--line-hi); color: var(--ink); border-radius: 7px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(184, 192, 204, .12); }
.seg { background: linear-gradient(180deg, #17191d, #101216); border-color: var(--line-hi); border-radius: 8px; }
.seg button { background: transparent; box-shadow: none; color: var(--muted); }
.seg button + button { border-left-color: var(--line); }
.seg button:hover:not(.on) { color: var(--ink); }
.seg button.on { background: linear-gradient(180deg, #393b3f, #222428 60%, #27292d); color: var(--ink); border-color: var(--line); box-shadow: inset 0 -2px 0 var(--accent-dim); }
.chk input { accent-color: var(--accent); }
a { color: var(--accent); }

/* ---------- surfaces ---------- */
.panel, .place, .tablewrap, .tile {
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(200, 208, 220, .10), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(110, 85, 145, .10), transparent 60%),
    linear-gradient(180deg, #1d1f23, #15171b 55%, #15171b);
  border-color: var(--line); box-shadow: inset 0 1px 0 rgba(225, 232, 245, .05), 0 6px 18px rgba(0, 0, 0, .25); }
.place:hover, .place.on, .tile:hover { border-color: var(--accent-dim); }
.sheet { background: rgba(5, 4, 3, .66); backdrop-filter: blur(2px); }
.sheet .box { background: radial-gradient(120% 50% at 50% 0%, rgba(200, 208, 220, .10), transparent 70%), linear-gradient(180deg, #1c1e22, #15171b 60%, #171518); border: 1px solid var(--line-hi); box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.sheet h2 { font-family: var(--display); font-weight: 400; letter-spacing: .06em; }
.toast { background: linear-gradient(180deg, #222428, #17191d); color: var(--ink); border: 1px solid var(--accent-dim); }
.xbar { background: linear-gradient(180deg, #17191d, #0d0f13); border-top-color: var(--line-hi); }
.blist th { background: linear-gradient(180deg, #1f2125, #16181c 70%, #191b1f); color: var(--muted); font-family: var(--display); letter-spacing: .12em; font-size: 11px; }
.blist td { border-bottom-color: var(--line); }
.blist tbody tr.row:nth-child(even) td:not(.band) { background-color: rgba(255, 255, 255, .025); }
.blist tbody tr.row:hover td:not(.band) { background-color: rgba(225, 232, 245, .055); }
/* sort strip above card grids: one quiet row of words, the active one lit with a gold underline (view only) */
.sortbar { position: relative; font-family: var(--display); flex-wrap: nowrap; gap: 0; align-items: stretch; margin-bottom: 14px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar .muted { display: flex; align-items: center; margin: 0 6px 0 0; padding-right: 12px; font-size: 10.5px; letter-spacing: .16em; color: var(--faint); border-right: 1px solid var(--line); }
.sortbar button { flex: none; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 9px 11px 8px; font: 400 10.5px/1 var(--display); letter-spacing: .14em; color: var(--muted); }
.sortbar button:hover:not(:disabled) { color: var(--ink); }
.sortbar button.asc, .sortbar button.desc { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.sortbar button.asc::after, .sortbar button.desc::after { font-size: 8px; }
@media (max-width: 700px) {
  .sortbar { margin-inline: -16px; padding-inline: 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.stack .qty { background: linear-gradient(180deg, #e6eaf0, #a2aab6); color: var(--accent-ink); }
.cardimg { background: #1e2024; }

/* ---------- card tiles: a plate under the picture, tinted toward the card's percentile colour ---------- */
.cgrid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
@media (max-width: 480px) { .cgrid { grid-template-columns: repeat(2, 1fr); } }
.ctile { --rk: #6f6553; gap: 0; padding: 8px 8px 0; margin: -8px -8px 0; border-radius: 12px; transition: background .25s, box-shadow .25s; }
.ctile .stack { margin-bottom: 0; z-index: 1; }
.ctile .plate { position: relative; display: flex; flex-direction: column; gap: 5px; margin: -12px 4px 0; padding: 20px 9px 10px; border-radius: 0 0 9px 9px; border-top: 0 !important; min-width: 0;
  border: 1px solid color-mix(in srgb, var(--rk) 30%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rk) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #1c1e22, #15171b);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--rk) 35%, transparent); }
.ctile .plate b { font: 400 13.5px/1.2 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile .sub { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.ctile .tl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ctile .tset { color: var(--muted); min-width: 0; line-height: 1.25; }
.ctile .tfin { flex: none; font-size: 10.5px; padding: 0 6px; border-radius: 4px; color: var(--muted); border: 1px solid var(--line-hi); line-height: 1.5; }
.ctile .tfin.foil { color: #15171b; border-color: transparent; font-weight: 600;
  background: linear-gradient(110deg, #c7ccd4, #f1f3f6 30%, #9d88c2 55%, #e2d6ef 75%, #c7ccd4); }
.ctile .tpr { margin-left: auto; flex: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.ctile .tloc { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.ctile .rarity-badge { flex: none; margin-left: auto; font-size: 11px; cursor: inherit; }
/* hover: the tile glows in its percentile colour */
.ctile:hover { background: radial-gradient(90% 70% at 50% 40%, color-mix(in srgb, var(--rk) 26%, transparent), transparent 75%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rk) 30%, transparent), 0 10px 30px color-mix(in srgb, var(--rk) 18%, transparent); }
.ctile:hover .front { filter: brightness(1.06); box-shadow: 0 0 22px color-mix(in srgb, var(--rk) 45%, transparent), 0 2px 6px rgba(0,0,0,.4); }
.ctile:hover .plate { border-color: color-mix(in srgb, var(--rk) 55%, var(--line)); }
@media (hover: none) { .ctile:hover { background: none; box-shadow: none; } }

/* ---------- grit: fine grain over everything, plus soft mottling on the background, so the gradients don't look machine-clean ---------- */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .38  0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23m%29'/%3E%3C/svg%3E"); }
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; }
body::before { background: var(--mottle); background-size: 600px; opacity: .3; mix-blend-mode: multiply; z-index: -1; }
body::after { background: var(--grain); background-size: 220px; opacity: .09; mix-blend-mode: overlay; }
.panel, .place, .tile, .ctile .plate, .sheet .box, .appbar, .tabbar, button, .btn { background-blend-mode: normal; }
.panel::after, .place::after, .sheet .box::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--grain); background-size: 220px; opacity: .14; mix-blend-mode: overlay; }
.panel, .sheet .box { position: relative; }

/* star dust (no clouds) and a whisper of brushed fibre */
:root { --stars-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .86  0 0 0 0 .87  0 0 0 0 .95  0 0 0 8 -6.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23s%29'/%3E%3C/svg%3E"); --stars-big: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='1' seed='17' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9  0 0 0 0 .88  0 0 0 0 1  0 0 0 10 -8.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23b%29'/%3E%3C/svg%3E"); --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .22' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6  0 0 0 0 .62  0 0 0 0 .68  0 0 0 1.4 -.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E"); }
html::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 101; background: var(--fibre); background-size: 420px; opacity: .035; }

/* ---- Edges (Nathan 2026-11-15, draft "D1"): framed slots instead of soft pills. Small corners, a lit metal edge (light
   top/left, dark bottom/right), a dark outer line, and a faint inner frame line 3px in, like an old game's item slot.
   No scratches: the panels keep only the fine grain. Cards keep their real shape. ---- */
:root { --edge-hi: #6a717d; --edge-lo: #17191d; --edge-mid: #3a3e46;
  --frame: 0 0 0 1px #040506, inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(10, 11, 13, .6), inset 0 0 0 4px rgba(150, 158, 170, .14), 0 6px 18px rgba(0, 0, 0, .35); }
.panel, .place, .tile:not(.ctile), .sheet .box, dialog, .tablewrap, .rules, .toast, .versions .v, .banner div, .cam, .fillpg, .appbar .menu {
  border-radius: 6px !important;
  border: 1px solid var(--edge-mid) !important; border-top-color: var(--edge-hi) !important; border-left-color: #4a4f58 !important; border-bottom-color: var(--edge-lo) !important; border-right-color: #23262b !important;
  box-shadow: var(--frame) !important; }
.place:hover, .place.on, .tile:not(.ctile):hover { border-top-color: #9aa2ae !important; border-left-color: #6a717d !important;
  box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(10, 11, 13, .6), inset 0 0 0 4px rgba(200, 206, 216, .35), inset 0 0 22px rgba(184, 192, 204, .12) !important; }
.ctile { border-radius: 6px !important; }
.ctile .plate { border-radius: 0 0 6px 6px !important; }
.midtab { border-radius: 5px 5px 0 0 !important; }
.turn, .page { border-radius: 5px !important; }
button:not(.ctile):not(.place):not(.stage button), .btn, input[type=text], input[type=search], .filters input, .filters select, select, textarea, .appbar .who > button { border-radius: 4px !important; }
button:not(.stage button):not(.seg button):not(.sortbar button):not(.appbar button):not(.menu button):not(.ctile):not(.place):not(.tile), .btn {
  border-top-color: #5c626d !important; border-bottom-color: #121418 !important;
  box-shadow: 0 0 0 1px #040506, inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .4) !important; }
input[type=text], input[type=search], .filters input, .filters select, select, textarea {
  border-top-color: #0b0c0e !important; border-bottom-color: #3a3e46 !important; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5) !important; }
.appbar .menu a, .appbar .menu button { border-radius: 3px !important; }
.pill, .epill, .chip, .gchip, .rib, .badge, .tag-miss, .ctile .tfin, .src, .stack .qty { border-radius: 4px !important; }
td img { border-radius: 3px !important; }
.pocket, .bmk { border-radius: 2px !important; }
/* the All / Loose / In binders and Cards / List toggles: square and flat */
.seg, .seg button { border-radius: 0 !important; }
.seg { background: #0f1114 !important; box-shadow: 0 0 0 1px #040506 !important; }
.seg button.on { background: #24262b !important; box-shadow: inset 0 -2px 0 var(--accent-dim) !important; }
/* progress bars: a framed dark trough, a lit silver fill with a bright leading edge */
.place .prog .pb, .pbar { height: 9px !important; border-radius: 2px !important; background: linear-gradient(180deg, #050607, #121417) !important;
  border: 1px solid #2c2f35; border-top-color: #0a0b0d; border-bottom-color: #3a3e46; box-shadow: 0 0 0 1px #040506, inset 0 1px 2px rgba(0, 0, 0, .8) !important; overflow: hidden; }
.setsum .big .pbar { height: 12px !important; }
.place .prog .pb i, .pbar i { position: relative; border-radius: 0 !important; min-width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .25)), linear-gradient(90deg, #4e5562, #9aa2ae 70%, #d9dee6) !important;
  box-shadow: inset -2px 0 0 #f4f6fa, 2px 0 6px rgba(230, 234, 240, .45) !important; }
/* keep the true circles */
.appbar .ibtn, .appbar .who .av, .tabbar a.scan i, .pip, .swatches button, .setlist .addbtn, .poptop button, .pocket .wtag, .chip.loose i { border-radius: 50% !important; }
.appbar .ibtn { box-shadow: none !important; border-color: transparent !important; }

/* ---- Loot-frame pieces (Nathan 2026-11-15, after a game loot window): a header band with the title on it, square
   framed slots for the corner buttons, and a dark-red close slot. ---- */
.sheet .box > h2:first-child, .sheet .box.hastop > .poptop + h2 { margin: -18px -16px 14px; padding: 13px 16px 12px; text-align: center;
  background: linear-gradient(180deg, #24272d, #15171b 60%, #111316); border-bottom: 1px solid #040506; box-shadow: inset 0 -1px 0 rgba(184, 192, 204, .14), 0 1px 0 rgba(184, 192, 204, .06);
  font: 400 19px/1.2 var(--display); letter-spacing: .06em; color: #dde1e7; border-radius: 6px 6px 0 0; }
.cardsheet > div > h2 { margin: 0 -2px 8px; padding: 8px 12px 9px; border-radius: 4px; text-align: left;
  background: linear-gradient(180deg, #23262c, #14161a); border: 1px solid #2c2f35; border-top-color: #4e545e; border-bottom-color: #0b0c0e;
  box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px rgba(0, 0, 0, .5); }
.sheet .box.hastop .cardsheet > div > h2 { margin-right: 76px; }
@media (max-width: 640px) { .cardsheet > div { width: 100%; } .sheet .box.hastop .cardsheet > div > h2 { margin-right: -2px; text-align: center; font-size: 20px; } }
.poptop { top: 12px; right: 12px; }
.poptop button { width: 32px !important; height: 32px !important; border-radius: 4px !important; background: linear-gradient(180deg, #2a2d33, #15171a) !important;
  border: 1px solid #3a3e46 !important; border-top-color: #6a717d !important; border-bottom-color: #0b0c0e !important;
  box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px rgba(0, 0, 0, .5) !important; }
.poptop .px { color: #f0d6cf !important; font: 400 20px/1 var(--display) !important; background: linear-gradient(180deg, #8a3a30, #5a2018 60%, #4a1a14) !important;
  border-color: #6a2a22 !important; border-top-color: #b0605a !important; border-bottom-color: #2a0e0a !important; }
.poptop .px:hover { filter: brightness(1.15); }
.appbar .menu { padding-top: 0 !important; overflow: hidden; }
.appbar .menu .mh { margin: 0 -6px 6px; padding: 10px 12px 9px; text-align: center; background: linear-gradient(180deg, #24272d, #14161a); border-bottom: 1px solid #040506;
  box-shadow: inset 0 -1px 0 rgba(184, 192, 204, .12); font: 400 12px/1.3 var(--display); letter-spacing: .06em; }

/* ---- The lit bar (after a game skill bar): framed trough, glossy fill in a colour, bright leading edge, label under it.
   Used for set binder progress (shelf tile + binder page), the card popup's rarity percentile, and the scanner's status. ---- */
.rkbar { --c: #9aa2ae; margin: 12px 0 2px; max-width: 320px; }
.rkbar .tr { position: relative; height: 12px; border-radius: 2px; background: linear-gradient(180deg, #050607, #121417);
  border: 1px solid #2c2f35; border-top-color: #0a0b0d; border-bottom-color: #3a3e46; box-shadow: 0 0 0 1px #040506, inset 0 1px 2px rgba(0, 0, 0, .8); overflow: hidden; }
.rkbar .tr i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .3)),
    linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, #000), var(--c) 75%, color-mix(in srgb, var(--c) 60%, #fff));
  box-shadow: inset -2px 0 0 color-mix(in srgb, var(--c) 30%, #fff), 2px 0 7px color-mix(in srgb, var(--c) 70%, transparent); }
.rkbar .tr i::after { content: ''; position: absolute; inset: 0; background: var(--fibre); background-size: 160px; opacity: .5; mix-blend-mode: overlay; }
.rkbar .lb { display: block; margin-top: 5px; text-align: center; font: 400 11.5px/1.2 var(--display); letter-spacing: .1em; color: var(--muted); }
@media (max-width: 640px) { .rkbar { margin-left: auto; margin-right: auto; width: 100%; } }
.place .prog .pb i::after, .pbar i::after { content: ''; position: absolute; inset: 0; background: var(--fibre); background-size: 160px; opacity: .5; mix-blend-mode: overlay; }

/* ---- Item-tooltip popup, inventory pockets and ornament dividers (Nathan 2026-11-15: "between WoW and PoE"). The popup's
   name band takes the card's percentile colour (--rkc, set in collection.js popRank). ---- */
:root { --orn: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2722%27%20height%3D%279%27%3E%3Cpath%20d%3D%27M0%204.5h7M15%204.5h7%27%20stroke%3D%27%238d95a2%27%20stroke-width%3D%27.8%27/%3E%3Cpath%20d%3D%27M11%20.6l3.9%203.9L11%208.4%207.1%204.5z%27%20fill%3D%27%231a1c20%27%20stroke%3D%27%23aab2be%27%20stroke-width%3D%27.9%27/%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%274.5%27%20r%3D%271.1%27%20fill%3D%27%23cfd5de%27/%3E%3C/svg%3E"); }
/* 1 popup as an item tooltip */
.cardsheet > div { text-align: center; }
.cardsheet .pricerk { justify-content: center; }
.cardsheet .rkbar { margin-left: auto; margin-right: auto; }
.cardsheet > div > h2 { text-align: center !important; font-size: 24px !important; letter-spacing: .07em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rkc, #9aa2ae) 34%, #17181c), color-mix(in srgb, var(--rkc, #9aa2ae) 12%, #0d0e11)) !important;
  border-color: color-mix(in srgb, var(--rkc, #9aa2ae) 45%, #2c2f35) !important; border-top-color: color-mix(in srgb, var(--rkc, #9aa2ae) 65%, #e6e9ee) !important;
  color: color-mix(in srgb, var(--rkc, #9aa2ae) 22%, #fff) !important; text-shadow: 0 1px 2px #000, 0 0 12px color-mix(in srgb, var(--rkc, #9aa2ae) 40%, transparent); }
.orn { height: 9px; margin: 12px auto; max-width: 340px; background: var(--orn) center/22px 9px no-repeat, linear-gradient(90deg, transparent, rgba(150, 158, 170, .45) 30%, rgba(150, 158, 170, .45) 70%, transparent) center/100% 1px no-repeat; }
.cardsheet .places, .cardsheet .cEdit { justify-content: center; }
/* 2 binder pockets as inventory cells */
.page { background: linear-gradient(180deg, #121316, #0c0d0f) !important; }
.pocket { border-radius: 2px !important; background: radial-gradient(ellipse at 50% 35%, #17191d, #0a0b0d 75%) !important;
  box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px #2a2d33, inset 0 3px 8px rgba(0, 0, 0, .85) !important; }
.pocket.has { --g: 160, 168, 180; box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px rgba(var(--g), .55), inset 0 0 16px rgba(var(--g), .22), 0 0 10px rgba(var(--g), .12) !important; }
.pocket.has.r-Exceptional { --g: 110, 160, 240; }
.pocket.has.r-Elite { --g: 205, 170, 95; }
.pocket.has.r-Unique { --g: 175, 120, 230; }
/* 5 ornament dividers */
h2.sec::after { background: var(--orn) left center/22px 9px no-repeat, linear-gradient(90deg, rgba(150, 158, 170, .5), rgba(150, 125, 190, .25) 50%, transparent) 26px center/calc(100% - 26px) 1px no-repeat !important; height: 9px !important; }
.cardsheet .cEdit { display: flex; flex-direction: column; align-items: center; }
.cardsheet .places { align-items: center !important; justify-content: center !important; }

/* ---- One font everywhere (Nathan 2026-11-15: "ensure all the fonts match the one I chose"): Faustina for every bit of
   text, data included, at weight 500; bold text is a real 650 and a little brighter. ---- */
html *:not(svg):not(svg *) { font-family: var(--display) !important; font-weight: 500 !important; font-synthesis: none; }
html *:not(svg):not(svg *):is(b, strong, th, .price, .pricerk b) { color: #f1f3f6; font-weight: 650 !important; }
input, select, textarea, button { font-size-adjust: none; }
/* the fan-made note under the wordmark (Nathan 2026-11-15) */
.appbar .mark .wm { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; }
.appbar .mark .wm small { font-size: 9.5px !important; letter-spacing: .08em; color: var(--muted); text-transform: none; white-space: nowrap; }
@media (max-width: 700px) { .appbar .mark .wm small { font-size: 8.5px !important; letter-spacing: .04em; } }
/* no brushed-metal streaks anywhere (Nathan 2026-11-15): the page-wide fibre layer and the streaks in bar fills are off */
html::after { content: none !important; background: none !important; }
.rkbar .tr i::after, .place .prog .pb i::after, .pbar i::after { content: none !important; }

/* ---- 2026-11-15 (Nathan): wolf-and-moon logo, a forged account coin with more room before the name, more violet in the background ---- */
.appbar .mark .logo { width: 36px; height: 36px; flex: none; display: block;
  -webkit-mask: url(/img/moonsong-mark.png) center / contain no-repeat; mask: url(/img/moonsong-mark.png) center / contain no-repeat;
  background: linear-gradient(160deg, #f2f4f8 0%, #c3c9d3 45%, #8e95a1 100%); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
@media (max-width: 700px) { .appbar .mark .logo { width: 30px; height: 30px; } }
.appbar .who > button { display: inline-flex !important; align-items: center; gap: 11px !important; padding-left: 4px !important; }
.appbar .who .av { width: 28px !important; height: 28px !important; font-size: 13px !important; color: #eef1f5 !important;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(200, 208, 220, .35);
  background: radial-gradient(circle at 50% 38%, #2b2533 0%, #141218 62%, #07070a 100%) !important;
  border: 1px solid #0a0a0c !important;
  box-shadow: 0 0 0 1.5px #8e95a1, 0 0 0 2.5px #2a2d33, 0 0 0 3.5px #050506,
    inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 3px rgba(0, 0, 0, .7), 0 2px 5px rgba(0, 0, 0, .6) !important;
  position: relative; }
.appbar .who .av::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 200deg, #4f5560, #e6eaf0 18%, #7b828e 35%, #3a3e46 55%, #a9b0bb 75%, #4f5560); 
  -webkit-mask: radial-gradient(circle, transparent 14.5px, #000 15px); mask: radial-gradient(circle, transparent 14.5px, #000 15px); }
.appbar .who > button:hover .av::before { filter: brightness(1.25); }
body {
  background:
    var(--stars-big) 0 calc(var(--sy, 0) * -0.10px) / 560px 560px,
    var(--stars-small) 0 calc(var(--sy, 0) * -0.04px) / 320px 320px,
    radial-gradient(1100px 520px at 50% -160px, rgba(200, 208, 220, .09), transparent 70%),
    radial-gradient(160% 90% at 0% 100%, rgba(100, 74, 138, .13), transparent 75%),
    radial-gradient(140% 100% at 100% 45%, rgba(100, 74, 138, .08), transparent 75%),
    radial-gradient(120% 70% at 70% -10%, rgba(100, 74, 138, .06), transparent 75%),
    linear-gradient(180deg, #111017, #09090f 55%, #08080b) !important;
  background-attachment: fixed !important; }
/* no blotchy mottling on the page background (Nathan 2026-11-15): only the fine grain stays */
body::before { content: none !important; background: none !important; }
body { min-height: 100vh; min-height: 100dvh; } /* short pages (Settings) keep the gradient to the bottom */

/* ---- Colour back + volume (Nathan approved 2026-11-15; red toned down to a muted oxblood). Warm WoW casting-bar gold for fills and active states, deep red main buttons,
   thicker lit bevels on the thin flat areas. Silver + violet stay the base. ---- */
:root { --gold: #d9a441; --gold-hi: #ffe39a; --gold-lo: #7a4f14; --gold-dim: #8c6a35; }

/* main buttons: WoW red with a gold edge and gold text */
button.primary:not(.stage button), .btn.primary, #newBinder {
  background: linear-gradient(180deg, #5e2a27 0%, #47201d 48%, #331715 100%) !important; color: #e6d3a8 !important;
  border: 1px solid #6f5638 !important; border-top-color: #93774f !important; border-bottom-color: #3a2a17 !important;
  text-shadow: 0 1px 1px #000 !important;
  box-shadow: 0 0 0 1px #040506, inset 0 1px 0 rgba(255, 220, 170, .18), inset 0 -3px 6px rgba(0, 0, 0, .45), 0 3px 8px rgba(0, 0, 0, .5) !important; }
button.primary:hover:not(:disabled), #newBinder:hover { filter: brightness(1.18); }

/* every other button: more body (top-lit gradient, bevel) */
button:not(.stage button):not(.seg button):not(.sortbar button):not(.appbar button):not(.menu button):not(.ctile):not(.place):not(.tile):not(.primary):not(#newBinder):not(.swatches button):not(.pocket), .btn:not(.primary) {
  background: linear-gradient(180deg, #34363c 0%, #23252a 45%, #17191d 100%) !important;
  box-shadow: 0 0 0 1px #040506, inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4) !important; }

/* progress bars: casting-bar gold */
.place .prog .pb i, .pbar i {
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .3)), linear-gradient(90deg, var(--gold-lo), var(--gold) 70%, var(--gold-hi)) !important;
  box-shadow: inset -2px 0 0 #fff4cc, 2px 0 8px rgba(255, 200, 90, .55) !important; }
.place .prog .pb, .pbar { height: 11px !important; }

/* toggles: raised buttons in a sunken track, the on one lit gold */
.seg { background: linear-gradient(180deg, #08090b, #121418) !important; box-shadow: 0 0 0 1px #040506, inset 0 2px 4px rgba(0, 0, 0, .7) !important; padding: 2px !important; }
.seg button.on { background: linear-gradient(180deg, #3a3c42, #24262b 55%, #1a1c20) !important; color: var(--gold-hi) !important;
  box-shadow: 0 0 0 1px #040506, inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 var(--gold) !important; }

/* nav + sort: active state in gold */
.appbar nav a.on { color: #f3e2b8 !important; }
.appbar nav a.on::after { background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold-hi) 50%, var(--gold) 75%, transparent) !important; height: 2px !important; box-shadow: 0 0 8px rgba(255, 200, 90, .5); }
.appbar nav a.on::before { background: var(--gold-hi) !important; border-color: var(--gold) !important; box-shadow: 0 0 6px rgba(255, 200, 90, .7) !important; }
.sortbar button.on { color: var(--gold-hi) !important; border-bottom-color: var(--gold) !important; box-shadow: inset 0 -2px 0 var(--gold) !important; }

/* section headings: warm label, thicker etched rule */
h2.sec { color: #d8c49a !important; }
h2.sec::after { height: 3px !important; background: var(--orn) left center/22px 9px no-repeat,
  linear-gradient(180deg, rgba(0, 0, 0, .7) 0 1px, rgba(200, 170, 110, .55) 1px 2px, rgba(0, 0, 0, .5) 2px 3px) 26px center/calc(100% - 26px) 3px no-repeat !important;
  -webkit-mask: linear-gradient(90deg, #000 60%, transparent); mask: linear-gradient(90deg, #000 60%, transparent); }
.phead .rule { height: 3px !important; background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0 1px, rgba(200, 170, 110, .5) 1px 2px, rgba(0, 0, 0, .5) 2px 3px) !important;
  -webkit-mask: linear-gradient(90deg, #000 50%, transparent); mask: linear-gradient(90deg, #000 50%, transparent); }

/* panels and shelf tiles: top-lit so they read as raised plates, not flat boxes */
.panel, .tablewrap, .rules { background-image: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, .25)) !important; }

/* inputs: deeper well */
input[type=text], input[type=search], .filters input, .filters select, select, textarea { background: linear-gradient(180deg, #060709, #0e1013) !important;
  box-shadow: 0 0 0 1px #040506, inset 0 3px 6px rgba(0, 0, 0, .7) !important; }

.chk input { accent-color: var(--gold) !important; }

/* ---- Collection stats as framed stat plates (Nathan 2026-11-15) ---- */
.phead .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 16px; max-width: 820px; }
.phead .stats .stat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 11px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .25)), linear-gradient(180deg, #1b1d22, #121418);
  border: 1px solid #3a3e46; border-top-color: #6a717d; border-left-color: #4a4f58; border-bottom-color: #17191d; border-right-color: #23262b;
  box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(10, 11, 13, .6), inset 0 0 0 4px rgba(150, 158, 170, .12), 0 6px 14px rgba(0, 0, 0, .35); }
.phead .stats .stat span { font-size: 10.5px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.phead .stats .stat b { font-size: 24px !important; line-height: 1; color: #eef0f4; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 1px 2px #000; }
.phead .stats .stat.gold b { color: #e9cf8e; }
.phead .stats .stat.gold { border-top-color: #8c6a35; }
.phead .stats .empty { margin: 0; color: var(--muted); grid-column: 1 / -1; }
@media (max-width: 700px) { .phead .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .phead .stats .stat { padding: 8px 10px; } .phead .stats .stat b { font-size: 19px !important; } }

/* ---- Binders, WoW-ish (Nathan 2026-11-15: "very flat"): a leather cover in the binder's colour with a stitched edge,
   pages as dark framed panels lit from the top with a shadow into the spine, pockets as bevelled slots. Kept quiet. ---- */
.open { position: relative; padding: 10px !important; gap: 4px !important; border-radius: 8px !important;
  background:
    var(--grain) 0 0 / 220px,
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #000), color-mix(in srgb, var(--c) 45%, #000)) !important;
  background-blend-mode: overlay, normal, normal !important;
  box-shadow: 0 0 0 1px #040506, inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .5), inset 0 0 30px rgba(0, 0, 0, .45), 0 14px 34px rgba(0, 0, 0, .55) !important; }
.open::before { content: ''; position: absolute; inset: 4px; border-radius: 6px; pointer-events: none; z-index: 0;
  border: 1px dashed color-mix(in srgb, var(--c) 40%, #e8dcc0); opacity: .35; }
.page { z-index: 1;
  background:
    radial-gradient(130% 55% at 50% 0%, rgba(200, 196, 188, .05), transparent 70%),
    linear-gradient(180deg, #151515, #0e0e0e 60%, #0a0a0a) !important;
  box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(12, 13, 15, .7), inset 0 0 0 4px rgba(176, 142, 88, .32) !important; }
.page.l { background:
    linear-gradient(270deg, rgba(0, 0, 0, .55), transparent 9%),
    radial-gradient(130% 55% at 50% 0%, rgba(200, 196, 188, .05), transparent 70%),
    linear-gradient(180deg, #151515, #0e0e0e 60%, #0a0a0a) !important; }
.page.r { background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 9%),
    radial-gradient(130% 55% at 50% 0%, rgba(200, 196, 188, .05), transparent 70%),
    linear-gradient(180deg, #151515, #0e0e0e 60%, #0a0a0a) !important; }
.page.blank { background: transparent !important; box-shadow: none !important; }
.page.cover { background:
    radial-gradient(120% 80% at 50% 20%, rgba(255, 255, 255, .06), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 32%, #121212), color-mix(in srgb, var(--c) 18%, #0a0a0a)) !important; }
.pocket { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, .12)) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(200, 206, 216, .07), inset 0 2px 5px rgba(0, 0, 0, .35) !important; }
.turn { background: linear-gradient(180deg, #34363c, #22242a 45%, #17191d) !important;
  box-shadow: 0 0 0 1px #040506, inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 3px 8px rgba(0, 0, 0, .45) !important; }
.turn:not(:disabled):hover { color: var(--gold-hi) !important; }
/* the wolf emblem only on the inside of the front cover (Nathan 2026-11-15: not behind the pockets, not on the back cover) */
.page.l.cover::before { content: ''; position: absolute; inset: 25% 20%; pointer-events: none; z-index: 0;
  background: url(/img/moonsong-mark.png) center / contain no-repeat; opacity: .09; }
.page .pockets { position: relative; z-index: 1; }

/* ---- Collection stats, option C (Nathan 2026-11-15): icon slots; the value is plain text beside the title ---- */
.phead .tl { align-items: baseline !important; gap: 16px !important; }
.phead .worth { font-size: 15px !important; color: var(--muted); padding-bottom: 2px; }
.phead .worth b { color: #e2c98c !important; font-weight: 650 !important; }
.phead .stats { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 12px !important; max-width: 860px !important; margin-top: 20px !important; }
.phead .stats .stat { flex-direction: row !important; align-items: center; gap: 12px !important; padding: 10px 12px !important; min-width: 0; }
.phead .stats .ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; color: #b8c0cc;
  background: radial-gradient(circle at 50% 35%, #24262b, #0d0e10 75%); box-shadow: 0 0 0 1px #040506, inset 0 0 0 1px #3a3e46, inset 0 2px 5px rgba(0, 0, 0, .7); }
.phead .stats .ic svg { width: 20px; height: 20px; }
.phead .stats .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.phead .stats .tx b { font-size: 22px !important; }
.phead .rule { margin-top: 26px !important; }
@media (max-width: 700px) {
  .phead .tl { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
  .phead .stats { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; margin-top: 14px !important; }
  .phead .stats .stat { flex-direction: column !important; align-items: center; gap: 5px !important; padding: 8px 2px 9px !important; text-align: center; }
  .phead .stats .tx { align-items: center; gap: 3px !important; }
  .phead .stats .ic { width: 28px; height: 28px; } .phead .stats .ic svg { width: 15px; height: 15px; }
  .phead .stats .tx b { font-size: 17px !important; order: 1; } .phead .stats .tx span { order: 2; }
  .phead .stats .stat span { font-size: 8.5px !important; letter-spacing: .06em; }
}
.phead .worth b { font-size: 18px !important; }
/* value beside the title: metallic bronze-gold (Nathan 2026-11-15: B, less saturated, more bronze) */
.phead .worth b { background: linear-gradient(180deg, #f1e2c4 8%, #c9a46a 52%, #8a6638 96%); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 1px 1px #000); }
