:root {
  color-scheme: dark;
  --bg: #0d1017;
  --panel: #151a24;
  --panel-2: #1b2130;
  --line: #27304260;
  --text: #e7ecf5;
  --muted: #94a0b8;
  --gold: #f0c770;
  --gem: #7cc4ff;
  --accent: #ffb547;
  /* Offer types.  Kept clear of the gem blue and gold so a type pill is
     never mistaken for a price. */
  --card: #7ddca4;
  --card-bg: #173326;
  --style: #c9a6ff;
  --style-bg: #2a2142;
  --pack: #ffab5e;
  --pack-bg: #3a2614;
  --avatar: #ff94c2;
  --avatar-bg: #3b1a2c;
  --sleeve: #63d5e6;
  --sleeve-bg: #11313a;
  --pet: #ff8a7a;
  --pet-bg: #3a1c19;
  --gold-kind: #f3d36a;
  --gold-kind-bg: #352d10;
  --bundle: #b6c0d4;
  --bundle-bg: #262c38;
  --radius: 12px;
  --no: #ff8a84;
  --no-bg: #3d1a1a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--gem); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Read aloud, never shown. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 64px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: #0d1017f2;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex; gap: 12px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 11px 16px;
}
.brand { font-weight: 700; letter-spacing: .2px; color: var(--text);
         min-width: 0; overflow: hidden; text-overflow: ellipsis;
         white-space: nowrap; }
.brand span { color: var(--accent); }

nav.links { display: flex; gap: 14px; margin-left: auto; font-size: 14px;
            flex: 0 0 auto; }
nav.links a { color: var(--muted); white-space: nowrap; }
nav.links a[aria-current="page"] { color: var(--accent); }

/* Search on the left, day picker pinned right, on its own row. */
.toolbar {
  display: flex; gap: 12px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 0 16px 11px;
}
.search { flex: 1 1 auto; min-width: 0; }
.search input {
  width: 100%; padding: 9px 14px; border-radius: 999px;
  border: 1px solid #2c3648; background: var(--panel-2); color: var(--text);
  font-size: 16px; min-width: 0;
}
.search input::placeholder { color: #707d94; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.picker { flex: 0 0 auto; margin-left: auto; min-width: 0; }
.picker { position: relative; }
.picker-btn {
  max-width: 100%; padding: 9px 34px 9px 14px; border-radius: 999px;
  border: 1px solid #2c3648; background: var(--panel-2); color: var(--text);
  font: inherit; font-size: 16px; cursor: pointer; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a0b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.picker-btn:disabled { cursor: default; opacity: .7; }
.picker-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The calendar: days, then months, then years - zoomed between. */
.cal { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
       width: min(310px, calc(100vw - 24px)); padding: 10px;
       background: var(--panel); border: 1px solid #2c3648; border-radius: 14px;
       box-shadow: 0 14px 40px #000b; }
.cal[hidden] { display: none; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cal-head .title { flex: 1; text-align: center; font: inherit; font-weight: 700;
                   font-size: 15px; color: var(--text); background: none; border: 0;
                   padding: 6px; border-radius: 8px; }
.cal-head button.title { cursor: zoom-out; }
.cal-head button.title:hover { background: var(--panel-2); }
.cal-head .nav { width: 34px; height: 34px; border-radius: 8px; border: 0;
                 background: var(--panel-2); color: var(--text); font-size: 20px;
                 line-height: 1; cursor: pointer; }
.cal-head .nav:disabled { opacity: .3; cursor: default; }
.cal .grid { display: grid; gap: 4px; }
.cal .grid.days { grid-template-columns: repeat(7, 1fr); }
.cal .grid.months { grid-template-columns: repeat(3, 1fr); }
.cal .grid.years { grid-template-columns: repeat(3, 1fr); }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted);
            padding: 2px 0; }
.cal .c { font: inherit; font-size: 14px; padding: 8px 0; border-radius: 8px; border: 0;
          background: var(--panel-2); color: var(--text); cursor: pointer;
          font-variant-numeric: tabular-nums; }
.cal .grid.months .c, .cal .grid.years .c { padding: 14px 0; font-weight: 600; }
.cal .c:hover { background: #2a3347; }
.cal .c.off { background: none; color: #4a5468; cursor: default; }
.cal .c[data-mark~="newest"] { color: var(--accent); font-weight: 700; }
.cal .c[data-mark~="here"] { background: var(--accent); color: #1d1600; font-weight: 700; }
.cal-foot { margin-top: 8px; text-align: center; }
.cal-foot .link { font: inherit; font-size: 13px; background: none; border: 0;
                  color: var(--gem); cursor: pointer; padding: 4px 8px; }
.cal.zoom-out .cal-head, .cal.zoom-out .grid { animation: cal-out .18s ease-out; }
.cal.zoom-in .cal-head, .cal.zoom-in .grid { animation: cal-in .18s ease-out; }
@keyframes cal-out { from { transform: scale(1.12); opacity: 0; } }
@keyframes cal-in { from { transform: scale(.88); opacity: 0; } }

/* Previous and next day, under the deals. */
.day-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
           margin: 16px 0 0; }
/* Outlined in blue, not filled like the tiles above, so they stand out
   as the way to another day. */
.day-nav a { display: flex; flex-direction: column; justify-content: center;
             padding: 8px 16px; border-radius: 10px; background: #12233a;
             border: 1px solid #2f5f8f; font-weight: 700; font-size: 14px;
             color: var(--gem); }
.day-nav a:hover { background: #183050; border-color: var(--gem); text-decoration: none; }
.day-nav a span { font-weight: 400; font-size: 12.5px; color: #a9c9e8; }
.day-nav .latest { margin: 0 auto; align-self: center; background: #2e220c;
                   border-color: #7a5a1f; color: var(--accent); }
.day-nav .latest:hover { background: #3d2d10; border-color: var(--accent); }
.day-nav .next { margin-left: auto; text-align: right; }
.day-nav .latest + .next { margin-left: 0; }

#results { display: none; margin: 16px 0 0; }
#results.show { display: block; }
#results h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.hit { display: flex; gap: 10px; align-items: center; padding: 9px 12px;
       border-radius: 10px; background: var(--panel); margin-bottom: 6px; }
.hit .nm { font-weight: 600; min-width: 0; }
.hit .meta { margin-left: auto; color: var(--muted); font-size: 13px;
             white-space: nowrap; display: flex; gap: 8px; align-items: center; }

h1 { font-size: clamp(22px, 4vw, 30px); line-height: 1.2; margin: 20px 0 4px; }
.sub { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
/* A day's heading and its date share one line where there is room, so the
   deals start higher up the page. */
@media (min-width: 721px) {
  .page-head { display: flex; align-items: baseline; justify-content: space-between;
               gap: 6px 20px; flex-wrap: wrap; margin: 16px 0 12px; }
  .page-head h1, .page-head .sub { margin: 0; }
}
.sub.split { display: flex; flex-wrap: wrap; gap: 8px 12px;
             align-items: center; justify-content: space-between; }

figure { margin: 0 0 14px; }
/* Only there to choose which file a screen downloads; lays out as if absent. */
figure picture { display: contents; }
/* Full width on a phone; on a big screen capped in height, so the list of
   deals still starts above the fold. */
.shot { display: block; width: auto; height: auto; max-width: 100%;
        max-height: min(70vh, 760px); margin: 0 auto; border-radius: var(--radius);
        border: 1px solid var(--line); background: var(--panel); }

/* -- pills ------------------------------------------------------------- */

.pill { display: inline-flex; align-items: center; flex: none;
        padding: 1px 9px; border-radius: 999px; font-size: 12.5px;
        font-weight: 600; line-height: 1.6; white-space: nowrap;
        background: var(--panel-2); color: var(--muted); }
a.pill:hover { text-decoration: none; filter: brightness(1.18); }
.pill.k-card { background: var(--card-bg); color: var(--card); }
.pill.k-style { background: var(--style-bg); color: var(--style); }
.pill.k-pack { background: var(--pack-bg); color: var(--pack); }
.pill.k-bundle { background: var(--bundle-bg); color: var(--bundle); }
.pill.k-avatar { background: var(--avatar-bg); color: var(--avatar); }
.pill.k-sleeve { background: var(--sleeve-bg); color: var(--sleeve); }
.pill.k-pet { background: var(--pet-bg); color: var(--pet); }
.pill.k-gold, .pill.k-gems { background: var(--gold-kind-bg); color: var(--gold-kind); }
.pill.times, .pill.count { color: var(--text); background: #262e40;
                           font-variant-numeric: tabular-nums; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pill.year { font-size: 13.5px; padding: 3px 12px; }
.pill.year[aria-current="page"] { background: var(--accent); color: #1a1205; }

/* -- tiles: every list on the site ------------------------------------ */

/* One column on a phone, two on a tablet, three on a desktop. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
         grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tiles.list { grid-template-columns: 1fr; }

.tile { background: var(--panel); border-radius: 10px; padding: 9px 12px;
        min-width: 0; position: relative; transition: background .12s, box-shadow .12s; }
/* The whole tile is its main link: the link's box is stretched over it, so
   a click or a hover anywhere on the tile is on the link (and its preview).
   Other links in the tile - an archive day's cards - sit above it. */
.tile a.stretch::after { content: ""; position: absolute; inset: 0;
                         border-radius: inherit; }
.tile a:not(.stretch) { position: relative; z-index: 1; }
.tile:has(a.stretch):hover { background: var(--panel-2);
                             box-shadow: inset 0 0 0 1px #ffffff1f; }
.tile:has(a.stretch:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
.tile a.stretch:focus-visible { outline: none; }
.tile .line { display: flex; align-items: center; gap: 10px;
              justify-content: space-between; min-width: 0; }
.tile .line + .line, .tile .chips { margin-top: 4px; }
.tile .nm { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
a.nm { color: var(--text); }
.tile .nm a { color: var(--text); }
.tile .nm a:hover, a.nm:hover { color: var(--gem); text-decoration: none; }

.cost { display: flex; flex-wrap: wrap; align-items: center;
        gap: 2px 12px; min-width: 0; font-size: 15px; }
.price { display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
         font-variant-numeric: tabular-nums; }
.price::before { content: ""; flex: none; width: 9px; height: 9px; }
.gems { color: var(--gem); }
.gems::before { background: var(--gem); width: 8px; height: 8px;
                transform: rotate(45deg); border-radius: 2px; }
.gold { color: var(--gold); }
.gold::before { background: var(--gold); border-radius: 50%; }
.was { color: #6f7b91; font-size: 13.5px; margin-left: -6px;
       font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }

/* The card preview: Scryfall's image, beside the pointer or mid-screen. */
.card-preview { position: fixed; z-index: 50; display: flex; flex-direction: column; gap: 8px;
                padding: 8px; border-radius: 16px;
                pointer-events: none; opacity: 0; transition: opacity .12s;
                background: var(--panel); border: 1px solid var(--line);
                box-shadow: 0 12px 40px #000a; }
.card-preview.show { opacity: 1; }
.card-preview .body { display: flex; gap: 14px; align-items: flex-start; }
.card-preview .pic { flex: none; border-radius: 10px; overflow: hidden;
                     background: var(--panel-2) no-repeat; }
.card-preview .pic img { display: block; width: 100%; height: 100%; }
.card-preview .facts { display: none; width: 186px; padding: 4px 6px 4px 0;
                       font-size: 13px; line-height: 1.45; }
.card-preview.has-facts .facts { display: block; }
.facts .nm { font-weight: 700; font-size: 15px; line-height: 1.25; }
.facts .kind { color: var(--muted); margin: 2px 0 8px; }
.facts .printing { font-weight: 700; letter-spacing: .3px; margin-bottom: 8px; }
.facts .printing span { display: block; font-weight: 400; letter-spacing: 0;
                        color: var(--muted); }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.facts .gem { color: var(--gem); }
.facts .gold { color: var(--gold); }
/* No room beside it on a phone: the stats go underneath. */
@media (max-width: 520px) {
  .card-preview .body { flex-direction: column; gap: 8px; }
  .card-preview .facts { width: auto; padding: 0 4px 2px; }
}
/* A long press shows the preview, not the phone's link menu. */
[data-card], [data-crop] { -webkit-touch-callout: none; }

/* The printing: set code and collector number, quiet beside the name. */
.set { margin-left: 7px; font-size: 12px; font-weight: 600; color: var(--muted);
       letter-spacing: .3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill .set { margin-left: 5px; color: inherit; opacity: .62; font-size: 11px; }
.ranked .meta .set { margin-left: 2px; }

.ranked { display: flex; gap: 10px; align-items: flex-start; }
.ranked .rank { color: var(--muted); font-variant-numeric: tabular-nums;
                font-size: 14px; min-width: 1.4em; padding-top: 1px; }
.ranked .body { flex: 1 1 auto; min-width: 0; }
.ranked .meta { color: var(--muted); font-size: 13px; }
.ranked .kinds { display: inline-flex; gap: 5px; }

.empty { background: var(--panel); border-radius: var(--radius);
         padding: 28px; color: var(--muted); text-align: center; }

/* Where to follow along: just above the footer's rule. */
.follow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
          gap: 8px 12px; margin-top: 4px; }
.follow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
               border-radius: 999px; background: var(--panel-2); border: 1px solid #2c3648;
               color: var(--text); font-size: 14px; font-weight: 600; }
.follow-pill:hover { text-decoration: none; border-color: var(--muted); background: #222a3b; }
.follow-pill b { font-weight: 700; }
/* Each in its platform's colours: X a quiet grey, Instagram pink. */
.follow-pill.x { background: #343b48; border-color: #4b5466; color: #f2f4f8; }
.follow-pill.x:hover { background: #3e4656; border-color: #6b7486; }
.follow-pill.ig { background: #3b1a2c; border-color: #6b2a4c; color: #ff94c2; }
.follow-pill.ig:hover { background: #4a2138; border-color: #ff94c2; }
.follow-pill.th { background: #161616; border-color: #3d3d3d; color: #f5f5f5; }
.follow-pill.th:hover { background: #222; border-color: #8a8a8a; }
.follow-pill.bsky { background: #10284a; border-color: #1f4f8a; color: #7fbcff; }
.follow-pill.bsky:hover { background: #143260; border-color: #7fbcff; }
.follow-pill.tt { background: #12313a; border-color: #1f5864; color: #6ff0f0; }
.follow-pill.tt:hover { background: #173d48; border-color: #6ff0f0; }
.follow-pill.dc { background: #23264a; border-color: #3d4385; color: #aab2ff; }
.follow-pill.dc:hover { background: #2a2e5a; border-color: #aab2ff; }
.follow-pill.rss { background: #3a2614; border-color: #6e4520; color: #ffab5e; }
.follow-pill.rss:hover { background: #46301a; border-color: #ffab5e; }
/* Lime, not the green of Buy on Paper. */
.follow-pill.bell { background: #27331a; border-color: #4f6a2a; color: #c6ef8e;
                    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.follow-pill.bell:hover { background: #2f3e1f; border-color: #c6ef8e; }
.follow-pill.bell[aria-pressed="true"] { background: #2f3e1f; border-color: #c6ef8e; }
.follow-pill[hidden] { display: none; }
.push-note { max-width: 520px; margin: 10px auto 0; text-align: center; color: var(--muted);
             font-size: 13.5px; line-height: 1.5; }
.follow-along + footer.site { margin-top: 20px; }
footer.site { color: var(--muted); font-size: 13px; margin-top: 36px; text-align: center;
              border-top: 1px solid var(--line); padding-top: 16px; }
footer.site .fine { font-size: 11.5px; margin: 8px 0 0; opacity: .8; }
footer.site a { color: var(--muted); }
/* A coffee for the maker: one muted line, the link in Tapps Tracker's pink. */
.support { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.support a { color: #f07ab4; font-weight: 700; white-space: nowrap; }
.support + .studio { margin-top: 12px; }
/* The studio behind the site: TappsAI's matrix green on near-black. */
.studio { margin: 18px 0 0; text-align: center; }
a.studio-pill { display: inline-flex; align-items: center; gap: 11px; padding: 9px 20px;
  border-radius: 999px; background: #050806; border: 1.5px solid rgba(61, 255, 154, .55);
  box-shadow: 0 0 14px rgba(61, 255, 154, .14); color: #ededed; font-size: 15px;
  font-weight: 600; text-decoration: none; }
a.studio-pill b { color: #3dff9a; font-weight: 700; }
a.studio-pill .arrow { color: #3dff9a; margin-left: 2px; transition: transform .15s; }
a.studio-pill:hover { text-decoration: none; border-color: #3dff9a; box-shadow: 0 0 18px rgba(61, 255, 154, .26); }
a.studio-pill:hover .arrow { transform: translateX(3px); }
a.studio-pill svg { flex: none; }

.prose { line-height: 1.6; }
.prose h2 { font-size: 17px; margin: 22px 0 6px; }
.prose p { margin: 0 0 10px; color: var(--text); }

/* A long strip, on a wider screen: two rows, cut between two cards, so
   every card is twice the size.  On a phone the strip scrolls instead. */
figure.split .rows { display: none; }
@media (min-width: 721px) {
  figure.split .shot { display: none; }
  figure.split .rows { display: grid; gap: 8px; margin: 0 auto; }
  figure.split .row { display: block; height: auto; max-width: none;
                      border-radius: var(--radius); border: 1px solid var(--line);
                      background-color: var(--panel); }
}

@media (max-width: 720px) {
  .bar { padding: 9px 12px; gap: 8px; }
  .toolbar { padding: 0 12px 9px; gap: 8px; }
  .brand { font-size: 15px; }
  nav.links { gap: 11px; font-size: 13px; }
  .picker-btn { padding: 8px 30px 8px 11px; }
  .search input { padding: 8px 13px; }
  .wrap { padding: 0 12px 48px; }
  h1 { margin-top: 16px; }
  .shot { border-radius: 8px; }
  figure.wide { overflow-x: auto; border-radius: 8px;
                -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  figure.wide .shot { height: 210px; width: auto; max-width: none;
                      max-height: none; }
}

@media (max-width: 420px) {
  /* Below this the brand and the links cannot share a line honestly. */
  .bar { flex-wrap: wrap; }
  .brand { flex: 1 1 100%; }
  nav.links { margin-left: 0; }
}

/* -- ads ----------------------------------------------------------------
   Placed by hand under the content, never above the deals.  The display
   unit has an exact size per screen - the most-bid standard sizes - so the
   space is held before it loads and nothing below jumps. */
.ad { margin: 18px auto 0; text-align: center; }
.ad-label { display: block; font-size: 10.5px; letter-spacing: .06em;
            text-transform: uppercase; color: var(--muted); opacity: .7;
            margin-bottom: 4px; }
.ad-display ins.adsbygoogle { display: inline-block; width: 300px; height: 250px; }
@media (min-width: 768px) {
  .ad-display ins.adsbygoogle { width: 728px; height: 90px; }
}
/* In a list it is one more tile, across the whole row of a grid. */
.tiles .ad-infeed { grid-column: 1 / -1; margin: 0; padding: 8px 12px 10px; }
/* An ad Google cannot fill (and every ad before the site is approved)
   folds away rather than leaving a hole. */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
/* #ads in the address shows where the ads will go, for checking layout. */
body.ads-preview ins.adsbygoogle { outline: 1px dashed var(--muted);
                                   background: var(--panel-2); min-height: 90px; }

/* -- a card's page: its picture beside what a search for it wants -------- */
.card-head { display: flex; gap: 24px; align-items: flex-start; margin: 18px 0 18px; }
.card-pic { flex: none; display: block; width: 260px; height: auto;
            border-radius: 13px; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); background-color: var(--panel-2);
            background-repeat: no-repeat; }
.card-sum h1 { margin-top: 0; }
.card-sum .lead { margin: 4px 0 10px; line-height: 1.5; max-width: 62ch; }
.card-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px;
              margin: 0; font-size: 14px; }
.card-facts dt { color: var(--muted); }
.card-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.card-facts .muted { color: var(--muted); }
@media (max-width: 720px) {
  .card-head { gap: 12px; }
  .card-pic { width: 150px; border-radius: 8px; }
  .card-sum .lead { font-size: 14px; }
}
/* The paper card on Mana Pool: green, outlined, a cart on the left.  On a
   card's page under its facts; on a tile, along its foot (see .tile). */
.buy-paper { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px;
             font-weight: 700; background: #1a2f23; color: #86dca0; border: 2px solid #5fae78; }
.buy-paper svg { flex: none; width: 1.3em; height: 1.3em; }
.buy-paper:hover { background: #21402f; border-color: #86dca0; text-decoration: none; }
.card-sum .buy-paper { margin-top: 14px; padding: 7px 20px 7px 16px; font-size: 15px; }
/* A printing with a picture behind it says so. */
.card-facts .printing[data-card], .card-facts .printing[data-crop] {
  border-bottom: 1px dotted var(--muted); cursor: default; }

/* -- Worth buying? Yes / No ------------------------------------------------
   In the heading row, on the right; green yes, red no. */
.vote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
.vote-q { font-weight: 700; font-size: 14.5px; margin-right: 2px; }
/* The same look as the type pills below (Card, Style), a size up. */
.vote-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 15px;
            border-radius: 999px; border: 0; font: inherit; font-size: 14px;
            font-weight: 600; line-height: 1.5; cursor: pointer;
            transition: filter .12s, box-shadow .12s; }
.vote-btn b { font-variant-numeric: tabular-nums; font-weight: 700; }
.vote-btn.buying { background: var(--card-bg); color: var(--card); }
.vote-btn.skipping { background: var(--no-bg); color: var(--no); }
.vote-btn:not(:disabled):hover { filter: brightness(1.25); }
/* Your vote: an outline in its own colour. */
.vote-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px currentColor; }
.vote-btn:disabled { cursor: default; }
.vote-note { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
/* The heading, its date beside it (smaller), the question on the right. */
@media (min-width: 721px) {
  .page-head { justify-content: flex-start; align-items: baseline; }
  .page-head .sub { font-size: 14px; }
  .page-head .vote { margin: 0 0 0 auto; align-self: center; }
  .page-head .vote-note { text-align: right; }
}
.pill.vote-buying { background: var(--card-bg); color: var(--card); }
.pill.vote-skipping { background: var(--no-bg); color: var(--no); }
/* An archive day's Yes / No, at the end of its chips: the bottom-right
   corner of the tile. */
.chips .verdict { display: inline-flex; gap: 5px; margin-left: auto;
                  position: relative; z-index: 1; }

/* A preview deployment (*.pages.dev) has a maroon header bar, so it is
   never mistaken for the live site. */
html.is-preview header.site { background: #4a1426; border-bottom-color: #6e2238; }
/* On a phone: previous and next side by side, the way back to the newest
   centred under them. */
@media (max-width: 720px) {
  .day-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .day-nav .prev { grid-column: 1; }
  .day-nav .next { grid-column: 2; margin: 0; }
  .day-nav .latest { grid-column: 1 / -1; grid-row: 2; margin: 0; justify-self: center; }
}
footer.site .about { margin: 0 0 6px; }

/* The About page: a hero, the numbers, three steps, the thank-you and
   the questions as cards that open. */
.prose .lead { font-size: 17px; line-height: 1.55; }
.prose h3 { font-size: 15.5px; margin: 16px 0 4px; }
.about-page { max-width: 980px; margin: 0 auto; line-height: 1.6; }
.about-page section { margin-top: 40px; }
.about-page h2 { font-size: 21px; margin: 0 0 14px; letter-spacing: -.01em; }
.about-page p { margin: 0 0 10px; }
.about-page .about-hero { display: flex; gap: 22px; align-items: center; margin-top: 28px;
                     padding: 26px; border-radius: 18px; border: 1px solid #2c3648;
                     background: radial-gradient(120% 140% at 0% 0%, #2a2140 0%, #171c28 55%, #12161f 100%); }
.about-hero img { flex: none; width: 96px; height: 96px;
                  filter: drop-shadow(0 6px 18px rgba(240, 199, 112, .25)); }
.about-hero h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; }
.about-hero h1 span { color: var(--gold); }
.about-hero .lead { margin: 0; color: #c9d2e3; font-size: 17px; max-width: 62ch; }
.about-stats { list-style: none; margin: 14px 0 0; padding: 0; display: grid;
               grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.about-stats li { background: var(--panel); border: 1px solid #232b3b; border-radius: 14px;
                  padding: 14px 16px; }
.about-stats b { display: block; font-size: 24px; line-height: 1.2; color: var(--gold);
                 font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.about-stats span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.about-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid;
               grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-steps li { counter-increment: step; background: var(--panel); border: 1px solid #232b3b;
                  border-radius: 14px; padding: 18px; }
.about-steps li::before { content: counter(step); display: grid; place-items: center;
                          width: 32px; height: 32px; border-radius: 50%; margin-bottom: 12px;
                          background: #3a2d12; border: 1px solid #7a5a1f; color: var(--gold);
                          font-weight: 800; font-size: 15px; }
.about-steps h3 { font-size: 16px; margin: 0 0 6px; }
.about-steps p { color: var(--muted); font-size: 14.5px; margin: 0; }
.about-why p { font-size: 16px; color: #c9d2e3; max-width: 70ch; padding-left: 16px;
               border-left: 3px solid #3a4560; }
.about-page .thanks { padding: 20px 22px; border-radius: 16px; border: 1px solid #5c4519;
                 background: linear-gradient(135deg, #2b2210 0%, #1a1710 60%, #15161a 100%); }
.about-page .thanks h2 { color: var(--gold); margin-bottom: 8px; }
.about-page .thanks p { color: #e2dccb; }
.about-page .thanks .links { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.chip-link { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px;
             background: #3a2d12; border: 1px solid #7a5a1f; color: var(--gold);
             font-size: 13.5px; font-weight: 600; }
.chip-link:hover { text-decoration: none; background: #46361a; border-color: var(--gold); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid #232b3b; border-radius: 12px; }
.faq details[open] { border-color: #35405a; background: var(--panel-2); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative;
               font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
                      border: solid var(--muted); border-width: 0 2px 2px 0;
                      transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--gold); }
.faq summary:hover { color: #fff; }
.faq details p { margin: 0; padding: 0 16px 16px; color: #c9d2e3; font-size: 15px; }
@media (max-width: 720px) {
  .about-page .about-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .about-hero img { width: 72px; height: 72px; }
  .about-hero .lead { font-size: 16px; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-steps { grid-template-columns: 1fr; }
  .about-page section { margin-top: 32px; }
}

/* The RSS page: the feed's address, ready to copy. */
.copy-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px;
            background: var(--panel); border: 1px solid #2c3648; border-radius: 12px;
            max-width: 620px; }
.copy-box code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--gem);
                 font-size: 15px; }
.copy-btn { flex: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
            padding: 7px 16px; border-radius: 999px; color: #ffab5e; background: #3a2614;
            border: 1px solid #6e4520; }
.copy-btn:hover { border-color: #ffab5e; }
.about-page .rss-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.about-page .note { color: var(--muted); font-size: 14px; }

/* Follow along: above the footer on every page. */
.follow-along { text-align: center; margin-top: 48px; }
.follow-along h2 { font-size: 21px; margin: 0 0 6px; letter-spacing: -.01em; }
.follow-along > p { color: #c9d2e3; margin: 0 auto 14px; max-width: 60ch; line-height: 1.5; }

/* A page's title block (Archive, Most Offered): the About hero's look,
   without the logo. */
.page-intro { margin: 22px 0 14px; padding: 20px 22px; border-radius: 16px; border: 1px solid #2c3648;
              background: radial-gradient(120% 160% at 0% 0%, #2a2140 0%, #171c28 55%, #12161f 100%); }
.page-intro h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; }
.page-intro .sub { margin: 0; color: #c9d2e3; max-width: 75ch; }
.page-intro .years { margin: 14px 0 0; }
.page-intro .key { margin: 12px 0 0; }

/* Archive: each day a calendar leaf beside its offers, grouped by type
   under a label each, and a footer line with the vote and the count. */
.tiles.days { gap: 10px; }
.day-tile { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px;
            padding: 14px 16px; border: 1px solid #222a39; border-radius: 14px; }
.day-tile .when { grid-row: 1 / span 2; align-self: center;
                  display: flex; flex-direction: column; align-items: center; justify-content: center;
                  color: inherit; text-decoration: none; border-radius: 12px; overflow: hidden;
                  background: #1f2636; border: 1px solid #2f3a52; text-align: center; line-height: 1;
                  padding-bottom: 7px; }
.day-tile .mon { display: block; width: 100%; padding: 4px 0; background: #6a2433; color: #ffd9de;
                 font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.day-tile .dd { font-size: 24px; font-weight: 800; margin-top: 6px; color: var(--text);
                font-variant-numeric: tabular-nums; }
.day-tile .wd { font-size: 11px; color: var(--muted); margin-top: 3px; text-transform: uppercase;
                letter-spacing: .06em; }
.day-tile .groups { display: grid; gap: 8px; min-width: 0; }
.day-tile .group { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: start; }
.day-tile .glabel { padding-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
                    text-transform: uppercase; color: var(--muted); }
.glabel.k-card { color: var(--card); } .glabel.k-style { color: var(--style); }
.glabel.k-pack { color: var(--pack); } .glabel.k-bundle { color: var(--bundle); }
.glabel.k-avatar { color: var(--avatar); } .glabel.k-sleeve { color: var(--sleeve); }
.glabel.k-pet { color: var(--pet); } .glabel.k-gold, .glabel.k-gems { color: var(--gold-kind); }
.day-tile .chips { gap: 6px; margin: 0; }
.day-tile .foot { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
                  margin-top: 10px; padding-top: 9px; border-top: 1px solid #232b3b;
                  font-size: 13px; color: var(--muted); }
.day-tile .foot .meta { margin-left: auto; white-space: nowrap; }
.day-tile .verdict { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.day-tile .meter { display: block; width: 90px; height: 6px; border-radius: 999px; overflow: hidden;
                   background: var(--no); opacity: .9; }
.day-tile .meter span { display: block; height: 100%; background: var(--card); }
.day-tile .v-yes { color: var(--card); font-weight: 600; }
.day-tile .v-no { color: var(--no); font-weight: 600; }
.tile.day-tile:has(a.stretch):hover { border-color: #3a4766; }
.tile.day-tile:has(a.stretch):hover .when { border-color: var(--gold); }
.day-tile .when:hover { text-decoration: none; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px;
         flex-wrap: wrap; margin: 18px 0 0; }
.pager .nums { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a, .pager span.step, .pager .gap { display: inline-flex; align-items: center; justify-content: center;
         min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px; font-weight: 600;
         font-size: 14px; }
.pager a { background: var(--panel); border: 1px solid #2c3648; color: var(--text); }
.pager a:hover { text-decoration: none; border-color: var(--gem); color: var(--gem); }
.pager a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #1a1205; }
.pager .step { color: var(--gem); border-color: #2a4a66; }
.pager span.step.off { color: #4c5670; border: 1px solid #222a39; }
.pager .gap { min-width: 20px; padding: 0; color: var(--muted); }
@media (max-width: 720px) {
  .day-tile { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; padding: 12px; }
  .day-tile .dd { font-size: 20px; }
  .day-tile .group { grid-template-columns: 1fr; gap: 4px; }
  .day-tile .glabel { padding-top: 0; }
  .day-tile .meter { width: 60px; }
  .pager { justify-content: center; }
  .pager .nums { order: -1; width: 100%; }
  .page-intro { padding: 16px; }
}

/* Most Offered: the top three on a podium, then the rest with a bar for
   how often each comes up. */
.tiles.podiums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.podium { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px;
          border-radius: 16px; border: 1px solid #2c3648; }
.podium .medal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
                 font-weight: 800; font-size: 18px; color: #1a1205; }
.podium.p1 { background: linear-gradient(160deg, #3a2d12 0%, #1a1710 70%); border-color: #7a5a1f; }
.podium.p1 .medal { background: linear-gradient(145deg, #ffe08a, #d9a531); box-shadow: 0 4px 16px rgba(240,199,112,.35); }
.podium.p2 .medal { background: linear-gradient(145deg, #eef2f8, #9aa6b8); }
.podium.p3 .medal { background: linear-gradient(145deg, #f2b98a, #b06a3a); }
.podium.p2 { background: linear-gradient(160deg, #262c38 0%, #171b24 70%); }
.podium.p3 { background: linear-gradient(160deg, #33231a 0%, #191612 70%); border-color: #5a3e2a; }
.podium .nm { font-size: 19px; line-height: 1.25; }
.podium .kinds { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.podium .big { color: var(--muted); font-size: 14px; }
.podium .big b { color: var(--gold); font-size: 30px; font-weight: 800; margin-right: 4px;
                 font-variant-numeric: tabular-nums; }
.podium .meta { color: var(--muted); font-size: 13px; }
.freq { display: block; width: 100%; height: 6px; border-radius: 999px; background: #232b3b; overflow: hidden; }
.freq span { display: block; height: 100%; border-radius: inherit;
            background: linear-gradient(90deg, #d9a531, var(--gold)); }
.tiles.top-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.top-list .ranked { padding: 12px 14px; border: 1px solid #222a39; border-radius: 12px; align-items: center; }
.top-list .rank { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
                  background: #232b3b; color: var(--text); font-weight: 700; font-size: 14px; }
.top-list .body { display: grid; gap: 7px; }
.top-list .line { margin: 0; }
.top-list .nm { font-size: 15.5px; }
.top-list .times { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.top-list .times b { color: var(--gold); font-size: 17px; margin-right: 1px; font-variant-numeric: tabular-nums; }
.top-list .meta { justify-content: space-between; }
@media (max-width: 900px) {
  .tiles.podiums { grid-template-columns: 1fr; }
  .podium { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center;
            column-gap: 12px; row-gap: 6px; padding: 14px; }
  .podium .medal { grid-row: 1 / span 2; }
  .podium .nm { grid-column: 2; font-size: 17px; }
  .podium .kinds { grid-column: 2; }
  .podium .big { grid-column: 3; grid-row: 1 / span 2; text-align: right; line-height: 1.1; }
  .podium .big b { display: block; font-size: 26px; margin: 0; }
  .podium .freq { grid-column: 1 / -1; }
  .podium .meta { grid-column: 1 / -1; }
  .tiles.top-list { grid-template-columns: 1fr; }
}

/* A vote shows at once; the chosen pill pulses until the count is back. */
.vote.sending .vote-btn[aria-pressed="true"] { animation: vote-pulse 0.9s ease-in-out infinite; }
@keyframes vote-pulse { 50% { opacity: .55; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .vote.sending .vote-btn[aria-pressed="true"] { animation: none; opacity: .7; } }

/* A day's heading: a slim panel like the other pages' title blocks. */
.page-head.panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
                   gap: 6px 16px; margin: 14px 0 12px; padding: 10px 16px; border-radius: 14px;
                   border: 1px solid #2c3648;
                   background: radial-gradient(120% 220% at 0% 0%, #2a2140 0%, #171c28 55%, #12161f 100%); }
.page-head.panel h1 { margin: 0; font-size: clamp(20px, 3.2vw, 26px); }
.page-head.panel .vote { margin: 0; }
.when-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
             white-space: nowrap;
             font-variant-numeric: tabular-nums; }
.countdown::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--card);
                     box-shadow: 0 0 0 3px rgba(125, 220, 164, .18); }
.countdown b { color: var(--text); font-weight: 600; }
.countdown.soon::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 181, 71, .2); }
@media (max-width: 720px) {
  .page-head.panel { padding: 10px 12px; }
  .page-head.panel .vote { width: 100%; }
}

/* Under each offer: how today's price compares, and when it last came up. */
.tile .line.note { margin-top: 6px; gap: 8px; justify-content: flex-start; font-size: 12.5px;
                   color: var(--muted); flex-wrap: wrap; }
.tile .line.note .last { margin-left: auto; text-align: right; }
/* The paper card on Mana Pool: a button along the foot of the tile, level
   with its neighbours' however many lines sit above it. */
.tile:has(> .buy-paper) { display: flex; flex-direction: column; }
.tile > .buy-paper { display: flex; justify-content: center; gap: 7px; margin-top: auto;
                     padding: 1px 12px; font-size: 13px; font-weight: 600;
                     border-width: 1.5px; }
.tile > .buy-paper svg { width: 1.15em; height: 1.15em; }
/* The gap above it is the line's, so the button's own auto margin can push
   it to the foot of a tile stretched taller by its neighbour. */
.tile > .line:has(+ .buy-paper) { margin-bottom: 8px; }
.pill.badge { font-size: 11.5px; padding: 2px 9px; font-weight: 700; }
.pill.badge.best { background: #3a2d12; color: var(--gold); box-shadow: inset 0 0 0 1px #7a5a1f; }
.pill.badge.good { background: var(--card-bg); color: var(--card); }
.pill.badge.high { background: var(--no-bg); color: var(--no); }
.pill.badge.new { background: #13304a; color: var(--gem); }

/* The countdown sits in the header, just left of the links. */
.bar .countdown { margin-left: auto; }
.bar .countdown:not([hidden]) + nav.links { margin-left: 4px; }
.countdown[hidden] { display: none; }
.countdown .cd-short { display: none; }
@media (max-width: 720px) {
  .countdown .cd-long { display: none; }
  .countdown .cd-short { display: inline; }
  .bar .countdown { font-size: 12px; }
}
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; }
  .brand { flex: 1 1 100%; }
  .bar .countdown { margin-left: auto; order: 2; }
  nav.links { order: 1; margin-left: 0; }
  .bar .countdown:not([hidden]) + nav.links { margin-left: 0; }
}
/* An empty note under the vote buttons takes no room. */
.vote-note:empty { display: none; }

/* From the maker: one quiet card for Tapps Tracker, under Follow along. */
.promo { margin: 28px auto 0; max-width: 640px; }
.promo-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px;
              border-radius: 14px; border: 1px solid #3a3322; color: var(--text);
              background: linear-gradient(135deg, #1b1913 0%, #151a24 70%); text-align: left; }
.promo-card:hover { text-decoration: none; border-color: #8a6d2e; }
.promo-card img { flex: none; width: 48px; height: 48px; border-radius: 11px; }
.promo-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.promo-kicker { color: var(--muted); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.promo-body b { font-size: 16px; }
.promo-text { color: #c9d2e3; font-size: 13.5px; line-height: 1.4; }
.promo-cta { flex: none; color: var(--gold); font-size: 14px; font-weight: 600; white-space: nowrap; }
.promo-card:hover .promo-cta { text-decoration: underline; }
@media (max-width: 520px) {
  .promo-card { flex-wrap: wrap; align-items: flex-start; }
  .promo-body { flex-basis: calc(100% - 62px); }
  .promo-cta { margin-left: 62px; }
}
