:root{
  --ink:#1a1410;
  --mute:#6f675f;
  --line:#e8dfd4;
  --bg:#130f0c;
  --paper:#f3ece3;
  --card:#1c1612;
  --acc:#e53e4c;
  --yes:#e53e4c;
  --pass:#6a645e;
  --star:#e0b354;
  --forest:#2f5d50;
  --warm:#f7efe6;
  --gold:#e0b354;
  --r:22px;
  --safe:env(safe-area-inset-bottom,0px);
  --safe-top:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;-webkit-text-size-adjust:100%}
body{
  font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Roboto,Arial,sans-serif;
  color:var(--ink);background:var(--paper);
}
.serif{font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif}

a{color:var(--forest)}
img{max-width:100%;display:block}
button,.btn{
  font:inherit;border:1px solid var(--line);background:#fff;border-radius:999px;
  padding:10px 16px;cursor:pointer;color:var(--ink);text-decoration:none;display:inline-block
}
button.primary,.btn.primary{background:var(--acc);border-color:var(--acc);color:#fff;font-weight:700}
button.link{border:0;background:none;color:var(--forest);text-decoration:underline;padding:8px}
button.ghost,.btn.ghost{background:transparent;border:1.5px solid currentColor}

/* disclosure + preview — required on every page */
.disclosure{
  margin:0;padding:6px 16px;font-size:11px;line-height:1.35;
  background:#efe9df;color:#5a554e;text-align:center;cursor:pointer
}
.disclosure.collapse{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-bar{background:#8a5a00;color:#fff;text-align:center;font-size:11px;padding:3px 8px}

/* header */
.top{
  height:34px;flex:0 0 34px;display:flex;align-items:center;gap:2px;
  padding:0 6px 0 12px;position:relative;z-index:20
}
.brand{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-weight:700;text-decoration:none;color:var(--ink);font-size:16px;
  letter-spacing:-.03em;margin-right:auto
}
.iconbtn{
  width:32px;height:32px;border:0;background:none;border-radius:50%;padding:0;
  color:inherit;display:inline-flex;align-items:center;justify-content:center;position:relative;
  opacity:.7
}
.iconbtn svg{width:17px;height:17px;display:block}
.iconbtn .count{
  position:absolute;top:4px;right:2px;min-width:16px;height:16px;padding:0 4px;
  border-radius:8px;background:var(--acc);color:#fff;font-size:10px;font-weight:700;
  line-height:16px;text-align:center
}
.iconbtn .dot{
  position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;
  background:var(--acc);box-shadow:0 0 0 2px var(--bg)
}

/* deck shell: full viewport, dark, no browse chrome */
body.deck-page{background:var(--bg);color:#fff}
body.deck-page,body.deck-page #app{
  height:100dvh;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column
}
body.deck-page .disclosure{background:#1c1612;color:#b9a99a;padding:4px 12px;font-size:10px}
body.deck-page .disclosure a{color:#eadccb}
body.deck-page .top{background:transparent;color:#fff}
body.deck-page .brand{color:#f7efe6}
body.deck-page .iconbtn{color:rgba(247,239,230,.75)}
body.deck-page .iconbtn .count,body.deck-page .iconbtn .dot{opacity:1}
body.deck-page main{flex:1;min-height:0;display:flex;flex-direction:column;padding:0}
.finder{flex:1;display:flex;flex-direction:column;min-height:0}
.finder.hide-ctrl .d-ctrl{display:none}

.deckwrap{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 8px 4px;position:relative}
.deck{position:relative;flex:1;min-height:0;touch-action:none;margin:0}
.scard{
  position:absolute;inset:0;border-radius:var(--r);overflow:hidden;
  background:var(--card);box-shadow:0 18px 50px rgba(0,0,0,.5);
  user-select:none;-webkit-user-select:none;cursor:grab;color:#fff;
  z-index:3;transform-origin:top center
}
.scard.behind{transform:scale(.94) translateY(10px);opacity:.98;pointer-events:none;box-shadow:0 10px 28px rgba(0,0,0,.32);z-index:2}
.scard.behind2{transform:scale(.88) translateY(10px);opacity:.92;z-index:1}
.scard.drag{transition:none;cursor:grabbing;will-change:transform}
.scard.anim{transition:transform .42s cubic-bezier(.2,.85,.25,1),opacity .36s ease}
.scard.fly{transition:transform .48s cubic-bezier(.15,.8,.2,1),opacity .4s ease;opacity:0;pointer-events:none}
.scard.bounce{animation:bounce .28s ease}
@keyframes bounce{0%,100%{transform:translateX(0) rotate(0)}40%{transform:translateX(-16px) rotate(-2deg)}70%{transform:translateX(8px) rotate(1deg)}}
@media (prefers-reduced-motion:reduce){
  .scard.anim,.scard.fly{transition-duration:.01s}
  .scard.bounce{animation:none}
  .round.pop{animation:none}
  .burst i{animation:none;opacity:0}
}

.frame{position:absolute;inset:0;background:#1c1612;overflow:hidden}
.frame .fill{position:absolute;inset:-28px;background-size:cover;background-position:center;filter:blur(28px) saturate(1.15);transform:scale(1.12)}
.frame img,.frame .ph{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;pointer-events:none}
.frame.cover .fill{display:none}
.frame.cover img{object-fit:cover}
.frame.studio .fill{display:none}
.frame.studio{background:var(--edge,#f5f5f3)}
.frame.studio img{
  object-fit:contain;object-position:center 18%;
  width:85%;height:82%;max-height:none;padding:0;
  position:absolute;left:50%;top:0;transform:translateX(-50%);
  filter:none
}
.typecard{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-start;
  padding:28px 20px 120px;color:#fff
}
.typecard.t-heirloom{background:linear-gradient(165deg,#14261f 0%,#1e3d33 45%,#0f1a16 100%)}
.typecard.t-bifl{background:linear-gradient(165deg,#1a2c28 0%,#243f38 48%,#121c1a 100%)}
.typecard.t-built-to-last{background:linear-gradient(165deg,#2a2418 0%,#4a3d28 50%,#1a1712 100%)}
.typecard.t-pending{background:#2a2a2c}
.typecard .illust{
  position:absolute;left:0;right:0;top:18%;display:flex;justify-content:center;
  pointer-events:none;z-index:1
}
.typecard .illust svg{width:44%;max-width:200px;height:auto;opacity:.9}
.typecard .illust-label{
  position:absolute;top:16px;left:18px;margin:0;z-index:1;
  font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;opacity:.55
}
.typecard .yr{
  position:absolute;right:4px;bottom:28%;font-size:clamp(80px,28vw,140px);
  font-weight:800;opacity:.16;letter-spacing:-.07em;line-height:.8;pointer-events:none
}

.overlay{
  position:absolute;left:0;right:0;bottom:0;
  padding:72px 20px 16px;
  background:linear-gradient(to top,rgba(16,10,8,.96) 0%,rgba(16,10,8,.82) 42%,rgba(16,10,8,.28) 72%,rgba(16,10,8,0) 100%);
  color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.55);pointer-events:none
}
.frame.studio ~ .overlay{
  padding:64px 20px 16px;
  background:linear-gradient(to top,rgba(16,10,8,.94) 0%,rgba(16,10,8,.78) 38%,rgba(16,10,8,.2) 68%,rgba(16,10,8,0) 100%);
}
.overlay h2{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-size:24px;line-height:1.12;margin:8px 0 6px;font-weight:700;letter-spacing:-.03em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.hot{
  margin:0 0 8px;font-size:15px;font-weight:500;line-height:1.32;opacity:.95;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.price{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em}
.life{
  display:inline-block;font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;
  background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.28);letter-spacing:.02em
}
.morebtn{
  pointer-events:auto;margin-top:10px;border:0;background:rgba(255,255,255,.14);
  color:#fff;font-size:12px;font-weight:700;padding:6px 12px;border-radius:999px
}

.credit-i{
  position:absolute;right:12px;bottom:12px;width:26px;height:26px;border-radius:50%;
  border:0;background:rgba(255,255,255,.18);color:#fff;font-size:13px;padding:0;z-index:3
}
.segments{position:absolute;top:10px;left:12px;right:12px;display:flex;gap:4px;z-index:3}
.segments i{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.32)}
.segments i.on{background:#fff}
.zones{position:absolute;inset:0;z-index:2;display:flex}
.zones .z{flex:1}

.stamp{
  position:absolute;top:16%;z-index:4;padding:8px 16px;border:5px solid;border-radius:12px;
  background:rgba(255,253,248,.96);font-weight:900;font-size:42px;letter-spacing:.08em;
  font-style:italic;opacity:0;pointer-events:none;text-shadow:none;line-height:1
}
.stamp.yes{left:16px;color:var(--yes);border-color:var(--yes);transform:rotate(-18deg)}
.stamp.no{right:16px;color:#3a3530;border-color:#3a3530;transform:rotate(16deg)}
.stamp.star{top:11%;left:50%;transform:translateX(-50%) rotate(-10deg);color:#b8861a;border-color:var(--star)}

/* action bar — Tinder-style round buttons */
.d-ctrl{
  display:flex;justify-content:center;align-items:center;gap:14px;
  padding:8px 0 calc(10px + var(--safe));flex:0 0 auto
}
.round{
  width:54px;height:54px;min-width:54px;border-radius:50%;padding:0;
  border:0;background:#fffaf4;color:#1a1410;display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.08)
}
.round svg{width:22px;height:22px;display:block}
.round.no{width:64px;height:64px;min-width:64px;color:#4a453f;box-shadow:0 8px 20px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.1)}
.round.no svg{width:26px;height:26px}
.round.yes{
  width:68px;height:68px;min-width:68px;background:var(--yes);color:#fff;
  box-shadow:0 8px 22px rgba(229,62,76,.45), 0 0 24px rgba(229,62,76,.35)
}
.round.yes svg{width:30px;height:30px}
.round.star{color:#c99612;box-shadow:0 8px 20px rgba(0,0,0,.32),0 0 18px rgba(224,179,84,.35)}
.round.undo,.round.share{width:46px;height:46px;min-width:46px;background:#2a221c;color:#f0e6da;box-shadow:0 2px 10px rgba(0,0,0,.4)}
.round.undo svg,.round.share svg{width:18px;height:18px}
.round:disabled{opacity:.3}
.round.pop{animation:pop .32s ease}
@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}

.burst{position:absolute;inset:0;pointer-events:none;z-index:25;overflow:hidden}
.burst i{
  position:absolute;left:50%;top:58%;width:22px;height:22px;margin:-11px 0 0 -11px;
  color:var(--yes);opacity:0;animation:heartburst .7s ease-out forwards;
  offset:none
}
.burst i svg{width:100%;height:100%;display:block;filter:drop-shadow(0 4px 8px rgba(229,62,76,.35))}
.burst.freeze i{
  animation:none!important;opacity:1;
  transform:translate(calc(var(--dx) * .62),calc(var(--dy) * .62)) scale(.95) rotate(var(--rot));
}
@keyframes heartburst{
  0%{transform:translate(0,0) scale(.25) rotate(0deg);opacity:1}
  75%{opacity:1}
  100%{transform:translate(var(--dx),var(--dy)) scale(1.15) rotate(var(--rot));opacity:0}
}

/* end + match */
.end,.match{
  position:absolute;inset:0;border-radius:var(--r);background:#1c1612;color:#fff;
  padding:28px 22px;display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.45);overflow:auto
}
.end h2,.match h2{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-size:36px;letter-spacing:-.04em;margin:8px 0 10px;font-weight:700
}
.match h2{color:#f7efe6}
.match .sub{color:#d4c6b6;margin:0 0 18px}
.match .pic{
  width:180px;height:220px;object-fit:contain;margin:0 auto 16px;border-radius:16px;
  background:radial-gradient(120% 85% at 50% 40%, #fffdf8 0%, #f4ece2 70%);
  box-shadow:0 12px 28px rgba(0,0,0,.4)
}
.match .type-mini{
  width:168px;height:210px;border-radius:14px;margin:0 auto 14px;display:flex;
  flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:14px;font-weight:800;text-align:left;position:relative;overflow:hidden
}
.match .type-mini.t-heirloom{background:linear-gradient(165deg,#14261f,#1e3d33 55%,#0f1a16)}
.match .type-mini.t-bifl{background:linear-gradient(165deg,#1a2c28,#243f38 55%,#121c1a)}
.match .type-mini.t-built-to-last{background:linear-gradient(165deg,#2a2418,#4a3d28 55%,#1a1712)}
.match .type-mini .illust{width:70%;margin:0 auto 8px}
.match .type-mini .illust svg{width:100%;height:auto}
.match .type-mini .illust-label{font-size:9px;letter-spacing:.14em;text-transform:uppercase;opacity:.55;font-weight:700;margin:0 0 6px}
.match .actions,.end .actions{display:flex;flex-direction:column;gap:10px;width:100%;max-width:280px;margin-top:8px}
.match .actions .btn,.end .actions .btn{width:100%;text-align:center;padding:12px 16px;font-weight:700}
.match .actions .ghost,.end .actions .ghost{color:#fff;border-color:rgba(255,255,255,.35)}

/* sheets */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:40}
.sheet{
  position:fixed;left:0;right:0;bottom:0;max-height:90dvh;overflow:auto;
  background:#fff;color:var(--ink);border-radius:18px 18px 0 0;
  padding:12px 16px calc(20px + var(--safe));z-index:50;box-shadow:0 -8px 30px rgba(0,0,0,.25)
}
.sheet .grab{width:36px;height:4px;border-radius:2px;background:#ddd;margin:4px auto 10px}
.sheet h2,.sheet h3{margin:8px 0}
.sheet-head{display:flex;justify-content:space-between;align-items:center}
.credit-pop{font-size:13px;color:var(--mute);padding:8px 0}

/* filters */
.profiles{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}
.profile{
  display:block;width:100%;text-align:left;border-radius:14px;padding:14px 16px;
  border:1.5px solid var(--line);background:#fff;font-weight:800;font-size:16px
}
.profile small{display:block;font-weight:500;color:var(--mute);font-size:13px;margin-top:2px}
.profile[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.profile[aria-pressed=true] small{color:#c9c4be}
.fgroup{margin:0 0 14px}
.fgroup h3{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--mute);margin:0 0 8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:999px;
  padding:7px 12px;font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap
}
.chip small{margin-left:6px;color:var(--mute);font-weight:500}
.chip[aria-pressed=true],.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.chip[aria-pressed=true] small,.chip.on small{color:#c9c4be}
.chip.static{cursor:default}
#filter-apply{width:100%;margin:0}
.filter-foot{position:sticky;bottom:0;background:#fff;padding:12px 16px calc(12px + var(--safe));margin:8px -16px 0;border-top:1px solid var(--line);z-index:2}

/* offers / details */
.offers{list-style:none;padding:0;margin:8px 0}
.offers li{margin:10px 0;padding-bottom:8px;border-bottom:1px solid var(--line)}
.offers li:last-child{border-bottom:0}
.buy{
  display:inline-block;background:var(--forest);color:#fff;text-decoration:none;
  font-weight:700;padding:8px 12px;border-radius:10px;font-size:14px
}
.offers li+li .buy{background:#fff;color:var(--forest);border:1px solid var(--forest)}
.paid,.chk,.fine{font-size:11px;color:var(--mute)}
.fine{font-size:12px}
.paid{font-weight:700;margin-left:0}
.offer-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:4px}
.offers .chk{display:block;margin:2px 0}
blockquote{margin:8px 0;padding-left:10px;border-left:3px solid var(--line);color:#3a362f}
.details h2{font-size:22px;letter-spacing:-.03em;margin:4px 0 6px}
.details .hot{color:var(--ink);text-shadow:none;-webkit-line-clamp:3;font-weight:600}
.d-actions{display:flex;gap:8px;margin:12px 0}

/* list / boards */
.page{max-width:720px;margin:0 auto;padding:16px 16px 80px}
.boards h1{font-size:28px;letter-spacing:-.03em;margin:8px 0}
.tabs-inline{display:flex;gap:8px;overflow-x:auto;padding:6px 0;scrollbar-width:none}
.bgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bcard{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;position:relative}
.bcard .pic,.bcard .type{aspect-ratio:4/5;background:#1a1a1c;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:10px;position:relative;overflow:hidden}
.bcard .type.t-heirloom{background:linear-gradient(165deg,#14261f 0%,#1e3d33 55%,#0f1a16 100%)}
.bcard .type.t-bifl{background:linear-gradient(165deg,#1a2c28 0%,#243f38 55%,#121c1a 100%)}
.bcard .type.t-built-to-last{background:linear-gradient(165deg,#2a2418 0%,#4a3d28 55%,#1a1712 100%)}
.bcard .type .yrs{font-weight:800;font-size:13px}
.bcard .type .yrbg{position:absolute;right:4px;top:18px;font-size:56px;font-weight:800;opacity:.16;letter-spacing:-.06em;line-height:1}
.bcard img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}
.bcard h3{margin:8px 8px 2px;font-size:14px}
.bcard .meta{margin:0 8px 10px;font-size:12px;color:var(--mute)}
.star-mark{position:absolute;top:8px;right:8px;z-index:2;color:var(--star);font-size:18px}
.f-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.total{color:var(--mute)}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compare article{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}

/* product pages (Google / share targets) */
.product .hero{
  aspect-ratio:4/5;max-height:62vh;background:#111;border-radius:16px;overflow:hidden;position:relative
}
.product .hero img{width:100%;height:100%;object-fit:contain}
.stickybar{
  position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);
  padding:10px 12px calc(10px + var(--safe));display:flex;gap:8px;align-items:center;z-index:15
}
.stickybar .buy{flex:1;text-align:center}
.ribbon{background:var(--forest);color:#fff;padding:8px 12px;border-radius:10px;margin:0 0 12px;font-weight:700}
.product h1{font-size:24px;margin:8px 0 2px;letter-spacing:-.03em}
.meta,.crumbs,.score{color:var(--mute);font-size:14px}
.product section{border-top:1px solid var(--line);margin-top:14px;padding-top:8px}
.evidence li.con{color:#7a3b2b}
.badges{display:flex;flex-wrap:wrap;gap:6px}
.tier,.badge{
  display:inline-block;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px;letter-spacing:.02em
}
.tier,.t-bifl,.t-heirloom{background:var(--forest);color:#fff}
.t-built-to-last{background:#6b5a3e;color:#fff7e6}
.t-pending{background:#eee;color:#666}
.badge.warn{background:#fff3e0;color:#7a4a00}

footer{border-top:1px solid var(--line);padding:16px;text-align:center;color:var(--mute);font-size:14px}
.prose{max-width:680px}

.sharesheet a,.sharesheet button{display:block;width:100%;text-align:left;margin:6px 0;border-radius:12px}
#settings-sheet label{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.note{background:#fff7e6;border:1px solid #f0d9a8;padding:10px;border-radius:10px}
.hidden,[hidden]{display:none !important}
.toast{
  position:fixed;left:50%;bottom:calc(88px + var(--safe));transform:translateX(-50%);
  background:#111;color:#fff;padding:8px 14px;border-radius:999px;font-size:13px;z-index:70;white-space:nowrap
}

@media (min-width:900px){
  body.deck-page #app{max-width:430px;margin:0 auto;border-left:1px solid #222;border-right:1px solid #222}
  body.deck-page{background:#000}
  .page{max-width:900px}
  .bgrid{grid-template-columns:repeat(3,1fr)}
}
