:root {
  color-scheme: light;
  --ink: #291b1c;
  --subtle: #634f4a;
  --paper: #f6f0e7;
  --card: #fffbf5;
  --wine: #641c2b;
  --wine-dark: #41131d;
  --gold: #efc77a;
  --border: #e0d1bf;
  --display: "Baskerville", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #bd741d; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 10; top: .6rem; left: .6rem; padding: .65rem 1rem; background: white; border-radius: .4rem; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
h1, h2, h3, h4, p { margin: 0; }
.masthead { background: #1b0b10; color: #ffebc5; border-bottom: 1px solid #583627; }
.mast-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: bold 1.1rem/1.12 var(--display); }
.brand img { width: 38px; height: auto; flex: 0 0 auto; }
.brand small { display: block; color: #e1bb80; font: 600 .64rem/1.3 var(--body); letter-spacing: .12em; margin-top: .25rem; }
.cart-link { display: inline-flex; flex: 0 0 auto; gap: .55rem; align-items: center; font-size: .88rem; font-weight: 650; padding: .3rem .4rem; }
#cart-count {
  display: grid; place-items: center; border-radius: 50%; min-width: 1.65rem; min-height: 1.65rem;
  padding-inline: .25rem; background: #482228; color: #ffdf9f; font-variant-numeric: tabular-nums;
}
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 332px;
  margin-block: 28px 26px; padding: 2.8rem clamp(2.25rem, 6vw, 5rem);
  border: 1px solid #855639; border-radius: 17px; color: #fff1d9;
  background:
    radial-gradient(ellipse at 72% 44%, #78332570 0%, transparent 47%),
    radial-gradient(ellipse at 20% 124%, #68352285 0%, transparent 47%),
    linear-gradient(118deg, #240e15 0%, #2d1218 57%, #15090e 100%);
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/chips.webp") left bottom / min(340px, 36%) auto no-repeat,
              url("assets/ornaments.webp") right bottom / min(400px, 42%) auto no-repeat,
              url("assets/lights.webp") left top / 190px auto no-repeat;
  opacity: .62; mix-blend-mode: screen; 
  mask-image: linear-gradient(90deg, #000 0%, transparent 33%, transparent 60%, #000 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 10px; z-index: -1; pointer-events: none;
  border: 1px solid #eec57b4d; border-radius: 10px;
  background: linear-gradient(90deg, #19090e6e 0%, transparent 60%); 
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { color: #f9d89d; font-weight: 650; font-size: .76rem; letter-spacing: .16em; margin-bottom: .65rem; }
.hero h1 { font: 500 clamp(3rem, 7.3vw, 6rem)/.99 var(--display); letter-spacing: -.061em; margin-bottom: 1rem; }
.hero h1 em { color: #f3c776; font-weight: 400; }
.hero-copy > p:last-child { color: #ffe8c7; line-height: 1.55; font-size: 1.06rem; max-width: 32ch; }
.hero-crest {
  position: relative; justify-self: center; width: min(100%, 252px); height: auto; 
  filter: drop-shadow(0 7px 22px #180807a6);
}
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(273px, 310px); align-items: start; gap: 24px; }
.shop-main { min-width: 0; }
.balance {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 260px); align-items: center;
  column-gap: 12px; row-gap: 10px;
  padding: 1.2rem; border-radius: 12px; background: #efe2ce; border: 1px solid #ddc8a5;
  min-height: 118px;
}
.balance-title { display: flex; align-items: center; gap: .75rem; }
.balance-title label { display: block; color: #5c483e; font-size: .88rem; }
.balance h2, .cart h2, .catalogue-heading h2 { font: 700 1.75rem/1.13 var(--display); letter-spacing: -.025em; }
.coin-icon {
  --chip-rim: repeating-conic-gradient(from -9deg, #f7eedb 0deg 7deg, #6c4caf 7deg 11deg, #f7eedb 11deg 18deg, #543791 18deg 60deg);
  position: relative; isolation: isolate; display: grid; place-items: center; flex: 0 0 auto;
  width: 3.12rem; height: 3.12rem; transform: rotate(-13deg) scaleY(.91);
}
.coin-icon::before, .coin-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.coin-icon::before {
  background: var(--chip-rim); transform: translateY(.25rem); filter: brightness(.62);
  box-shadow: 0 2px 0 #261241, 0 4px 7px #301a4e67;
}
.coin-icon::after {
  background: linear-gradient(135deg, #fff4 5%, transparent 40%, #2c135222 84%), var(--chip-rim);
  box-shadow: inset 0 0 0 1px #37215a58, inset 0 1px 2px #fff8, inset 0 -1px 2px #25114377;
}
.coin-medallion {
  position: relative; z-index: 1; width: 79%; height: 79%; overflow: hidden;
  border: 1px solid #9276b8; border-radius: 50%; background: #47339c;
}
.coin-medallion img { display: block; width: 100%; height: 100%; transform: scale(1.5); }
.balance-controls { display: grid; grid-template-columns: minmax(70px, 1fr) auto; gap: .55rem; }
.balance input {
  height: 46px; min-width: 0; width: 100%; padding: .45rem .65rem;
  border: 1px solid #ad947f; border-radius: 7px; color: var(--ink); background: #fffaf4;
  font-size: 1.14rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.balance input:disabled { opacity: .72; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .55rem .8rem; border: 1px solid transparent; border-radius: 7px;
  font-size: .91rem; line-height: 1.2; font-weight: 750; text-align: center;
}
.button-primary { background: var(--wine); color: #fff4e3; }
.button-primary:hover:not(:disabled) { background: var(--wine-dark); }
.button-primary:disabled { background: #e5d9cf; color: #624c48; border-color: #d9c9bc; }
.button-text { color: var(--wine); background: none; text-decoration: underline; text-underline-offset: 3px; }
.form-message { font-size: .84rem; margin-top: .35rem; color: #59392a; }
.form-message:empty { display: none; }
.is-error { color: #912336; }
.catalogue-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-block: 1.75rem .9rem; }
.catalogue-heading h2 { font-size: 2.18rem; }
#catalogue-count { color: var(--subtle); font-size: .88rem; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: .42rem; padding-bottom: .15rem; }
.filter-button {
  border: 1px solid #cdbbac; background: #fbf5ed; color: #483032;
  padding: .48rem .7rem; border-radius: 99px; min-height: 41px; line-height: 1.13; font-size: .86rem; font-weight: 650;
}
.filter-button[aria-pressed="true"] { background: #392028; color: #fff1db; border-color: #392028; }
.filter-button:hover:not([aria-pressed="true"]) { background: #eee0d0; }
.gift-group { margin-top: 1.25rem; }
.gift-group h3 {
  display: flex; align-items: center; gap: .7rem;
  font: 700 1.25rem/1.2 var(--display); color: #48212a; margin-bottom: .65rem;
}
.gift-group h3::after { content: ""; flex: 1; background: #dac7b3; height: 1px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.offer {
  display: grid; grid-template-columns: 2.55rem minmax(0, 1fr); align-items: start; gap: .65rem;
  padding: .85rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 2px 4px #381b1410;
  min-width: 0;
}
.offer.is-selected { border-color: #a56e3c; background: #fff6e6; }
.offer-icon {
  height: 2.55rem; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(145deg, #f6ead5, #ecd9b6);
  color: #7b4d2a; font-size: 1.25rem;
}
.offer-body { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.offer h4 { font: 700 1.14rem/1.18 var(--display); color: #30191d; overflow-wrap: anywhere; }
.offer p { font-size: .86rem; line-height: 1.4; color: var(--subtle); margin-top: .27rem; }
.offer-bottom {
  display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap;
  gap: .3rem .55rem; padding-top: .75rem; margin-top: auto;
}
.offer-price { padding-bottom: .22rem; color: var(--wine-dark); font-size: .87rem; font-variant-numeric: tabular-nums; }
.offer-price del { display: block; color: #78605b; font-size: .79rem; }
.offer-button {
  min-height: 42px; padding: .38rem .58rem; background: #fff9f0; border: 1px solid #b88d78;
  border-radius: 7px; color: var(--wine); font-size: .8rem; font-weight: 750;
}
.offer-button:hover:not(:disabled) { background: #f3e3d2; border-color: #97684f; }
.offer-button:disabled { background: #f0e8e0; color: #624f49; border-color: #e0d0c4; }
.gift-flash h3, .gift-jackpots h3 { color: var(--wine); }
.gift-flash .offer { background: #fcf0dd; border-color: #dfc6a4; }
.gift-flash .offer-icon { background: #efd5a6; }
.gift-jackpots .offer { background: #3d1d28; border-color: #724652; color: #fff3df; }
.gift-jackpots .offer h4, .gift-jackpots .offer-price { color: #ffdeaa; }
.gift-jackpots .offer p { color: #f0d8c6; }
.gift-jackpots .offer-icon { color: #ffdc8d; background: #60333d; }
.gift-jackpots .offer.is-selected { border-color: #e2b878; }
.cart {
  position: sticky; top: 1rem; border: 1px solid #d9c4ae; border-radius: 12px;
  padding: 1.14rem; background: #fffbf6;
  box-shadow: 0 5px 12px #4a1f110c;
}
.cart-heading { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.cart-symbol { color: #87523b; font-size: 1.2rem; }
.empty-cart { color: var(--subtle); padding-block: .75rem; font-size: .92rem; }
.cart-items { padding: 0; list-style: none; margin: .36rem 0; }
.cart-items li { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .45rem 0; }
.cart-items li + li { border-top: 1px solid #ecdfd2; }
.cart-items li div { min-width: 0; font-size: .88rem; line-height: 1.33; }
.cart-items li span { display: block; color: var(--subtle); margin-top: .16rem; }
.remove { background: #f5e9e3; color: #672332; border: 1px solid #e2c9bf; border-radius: 6px; min-width: 38px; min-height: 38px; font-size: 1.18rem; }
.remove:hover { background: #ebd6ce; }
.cart-totals { border-top: 1px solid var(--border); }
.cart-totals dl { margin: .62rem 0 .8rem; }
.cart-totals dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .89rem; }
.cart-totals dl > div + div { margin-top: .26rem; }
.cart-totals dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.cart-totals .remainder { background: #f3e6d3; color: #56222b; font-weight: 750; padding: .4rem .6rem; border-radius: 5px; }
.cart-actions { display: grid; gap: .36rem; }
.mobile-cart { display: none; }
.footer { padding-block: 1.8rem; margin-block: 1.9rem 0; border-top: 1px solid #d7c7b5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; color: #644b4b; font-size: .84rem; }
@media (max-width: 920px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr) minmax(235px, 265px); gap: 14px; }
  .offer { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .5rem; }
  .offer-icon { height: 2.25rem; }
  .balance { grid-template-columns: minmax(0, 1fr); }
  .balance-controls { max-width: 265px; }
}
@media (max-width: 730px) {
  .shell { width: min(100% - 28px, 570px); }
  .mast-inner { min-height: 62px; }
  .hero { margin-block: 14px 16px; min-height: 216px; padding: 1.25rem 1.25rem; grid-template-columns: 1.25fr .75fr; }
  .hero::after { inset: 6px; }
  .hero h1 { font-size: clamp(2rem, 7.3vw, 3.7rem); margin-bottom: .6rem; }
  .hero-kicker { font-size: .64rem; letter-spacing: .08em; line-height: 1.28; }
  .hero-copy > p:last-child { font-size: .88rem; }
  .wide-only { display: none; }
  .hero-crest { width: min(110%, 166px); }
  .shop-layout { display: block; }
  .balance { padding: .8rem .9rem; min-height: 0; }
  .balance h2 { font-size: 1.54rem; }
  .balance-controls { max-width: none; }
  .catalogue-heading { margin-top: 1.35rem; }
  .catalogue-heading h2 { font-size: 1.9rem; }
  .cart { position: static; margin-top: 1.3rem; }
  .mobile-cart {
    position: fixed; z-index: 3; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center; gap: .6rem;
    padding: .55rem max(14px, env(safe-area-inset-right)) max(.55rem, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: #210e15; color: #ffead0; border-top: 1px solid #986051;
    box-shadow: 0 -5px 14px #230e1430; font-size: .88rem;
  }
  .mobile-cart strong, .mobile-cart span { display: block; overflow-wrap: anywhere; }
  .mobile-cart span { color: #edceb5; font-size: .8rem; }
  .mobile-cart a { flex: 0 0 auto; background: #e9bb73; color: #321820; }
  .mobile-cart a:hover { background: #ffdaa1; }
  body.has-mobile-cart { padding-bottom: 72px; }
}
@media (max-width: 445px) {
  .brand { font-size: .98rem; gap: 7px; }
  .brand img { width: 31px; }
  .brand small { font-size: .57rem; letter-spacing: .065em; }
  .cart-link { font-size: .80rem; gap: .35rem; }
  .hero { min-height: 190px; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .offer { grid-template-columns: 2.55rem minmax(0, 1fr); gap: .65rem; }
  .offer-icon { height: 2.55rem; }
  .offer-bottom { align-items: center; padding-top: .45rem; }
  .offer-button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.offer { grid-template-columns: 4.45rem minmax(0, 1fr); }
.offer-visual {
  width: 100%; height: auto; aspect-ratio: 1; overflow: hidden;
  border: 1px solid #44291a20; padding: 0;
}
.offer-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-visual:hover { border-color: #a66734; }
.offer-title {
  padding: 0; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; text-underline-offset: .18em;
}
.offer-title:hover { text-decoration: underline; }
.detail-dialog {
  width: min(34rem, calc(100% - 1.5rem)); max-height: min(92dvh, 52rem);
  padding: 0; border: 1px solid #b68b5b; border-radius: 1rem; color: var(--ink);
  background: var(--card); box-shadow: 0 1rem 4rem #210e1580; overflow: auto; overscroll-behavior: contain;
}
.detail-dialog::backdrop { background: #1b0b10bb; }
body:has(.detail-dialog[open]) { overflow: hidden; }
.detail-panel { padding: 1rem; }
.detail-header { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.detail-header h2 { font: 700 clamp(1.3rem, 4vw, 1.84rem)/1.15 var(--display); color: var(--wine-dark); }
.detail-close {
  flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%;
  background: #f5e9dc; color: var(--wine-dark); font-size: 1.55rem; line-height: 1;
}
.detail-photo {
  display: block; width: 100%; height: auto; max-height: min(51dvh, 440px);
  object-fit: contain; border-radius: .65rem; margin-bottom: .75rem; background: #f0e6da;
}
.detail-techniques {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .85rem;
  margin: .6rem 0 0; padding-inline-start: 1.2rem; color: var(--wine-dark);
  font-size: .9rem; font-weight: 650;
}
.detail-credit { margin-top: .45rem; color: var(--subtle); font-size: .77rem; }
.detail-credit a { text-decoration: underline; }
.detail-actions {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .45rem; padding-top: .8rem; margin-top: .8rem; border-top: 1px solid var(--border);
}
.detail-actions .offer-price { font-size: 1rem; padding-bottom: 0; }
@media (max-width: 920px) and (min-width: 446px) {
  .offer { grid-template-columns: 3.45rem minmax(0, 1fr); }
}
@media (max-width: 445px) {
  .offer { grid-template-columns: 4.65rem minmax(0, 1fr); }
  .detail-panel { padding: .8rem; }
}
