/* ==========================================================================
   Paper & pigment layer — hand-painted watercolour + paper collage.
   Loaded last so it wins over the flat blocks it replaces.
   Nothing here introduces new markup: every rule restyles an existing class.
   ========================================================================== */

:root {
  /* paper stocks */
  --pp-paper: #fbf5e6;
  --pp-paper-hi: #fffaf0;
  --pp-paper-2: #f6ecd6;
  --pp-paper-3: #eddfc0;
  --pp-kraft: #cbab7c;
  --pp-kraft-d: #a5824f;

  /* pigment */
  --pp-ink: #2b3a30;
  --pp-ink-2: #5c6656;
  --pp-ink-3: #8b8b76;
  --pp-pine: #2c5a47;
  --pp-pine-deep: #14342a;
  --pp-berry: #a63a4a;
  --pp-gold: #b8892c;

  /* cold-press grain, tiled */
  --pp-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");

  /* torn deckle edge, used as a mask so the shadow follows the tear */
  --pp-tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.028' numOctaves='4' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='18' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='14' y='14' width='872' height='872' fill='%23fff' filter='url(%23t)'/%3E%3C/svg%3E");

  /* scissor-cut edge: 16 points, deliberately uneven */
  --pp-cut: polygon(0.35% 0.7%, 23% 0.1%, 51% 0.75%, 77% 0.05%, 99.6% 0.9%, 100% 24%, 99.45% 52%,
    100% 78%, 99.6% 99.2%, 74% 99.95%, 49% 99.3%, 23% 99.9%, 0.35% 99.1%, 0% 74%, 0.55% 49%, 0% 22%);
}

/* ---------- 1. the wall the collage hangs on ---------- */

body {
  background: linear-gradient(178deg, #16402f 0%, #123a2d 46%, #0f332a 100%);
  background-attachment: fixed;
}

/* replaces the photographic emerald wallpaper: soft pigment blooms on damp paper */
body:before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 40% at 10% -4%, rgba(58, 122, 96, 0.55) 0%, rgba(58, 122, 96, 0) 68%),
    radial-gradient(48% 34% at 92% 6%, rgba(46, 108, 86, 0.42) 0%, rgba(46, 108, 86, 0) 70%),
    radial-gradient(40% 30% at 78% 54%, rgba(30, 88, 72, 0.5) 0%, rgba(30, 88, 72, 0) 72%),
    radial-gradient(54% 38% at 22% 78%, rgba(24, 76, 60, 0.42) 0%, rgba(24, 76, 60, 0) 70%),
    radial-gradient(90% 60% at 50% 108%, rgba(8, 32, 26, 0.72) 0%, rgba(8, 32, 26, 0) 74%),
    linear-gradient(178deg, #163f31 0%, #123a2d 52%, #0e3129 100%);
}

/* cold-press grain over everything, dimmer so it reads as paper not noise */
body:after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--pp-grain);
  background-size: 180px 180px;
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

/* ---------- 2. paper primitives ---------- */

/* a sheet torn from a pad: organic deckle edge, shadow follows the tear */
.pp-torn {
  position: relative;
  isolation: isolate;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 0 rgba(120, 92, 48, 0.13)) drop-shadow(0 16px 26px rgba(4, 22, 18, 0.34));
}

.pp-torn:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--pp-paper);
  background-image: var(--pp-grain), linear-gradient(178deg, #fdf7e9 0%, #f8efd9 58%, #f3e7cc 100%);
  background-size: 180px 180px, 100% 100%;
  background-blend-mode: multiply, normal;
  -webkit-mask-image: var(--pp-tear);
  mask-image: var(--pp-tear);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* a piece cut out with scissors: crisper, still never square */
.pp-cut {
  position: relative;
  isolation: isolate;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-clip-path: var(--pp-cut);
  clip-path: var(--pp-cut);
  filter: drop-shadow(0 1px 0 rgba(120, 92, 48, 0.16)) drop-shadow(0 7px 11px rgba(60, 42, 12, 0.16));
}

.pp-cut:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--pp-paper-hi);
  background-image: var(--pp-grain), linear-gradient(160deg, #fefbf2 0%, #f9f1de 100%);
  background-size: 180px 180px, 100% 100%;
  background-blend-mode: multiply, normal;
}

/* strip of washi tape */
.pp-tape {
  position: absolute;
  z-index: 3;
  width: 82px;
  height: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(104deg, #e7d6ae 0%, #f4e7c6 42%, #e3d0a4 100%);
  opacity: 0.92;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.22);
  -webkit-clip-path: polygon(2% 0, 98% 4%, 100% 96%, 0 100%);
  clip-path: polygon(2% 0, 98% 4%, 100% 96%, 0 100%);
  pointer-events: none;
}

.pp-tape--tl { top: -11px; left: 16px; transform: rotate(-5deg); }
.pp-tape--tr { top: -11px; right: 16px; transform: rotate(4.5deg); }
.pp-tape--ctr { top: -12px; left: 50%; transform: translateX(-50%) rotate(-2.5deg); }

/* hand-ruled rule */
.pp-rule {
  height: 3px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--pp-kraft-d) 12%, var(--pp-kraft-d) 88%, transparent);
  -webkit-mask-image: var(--pp-grain);
  mask-image: var(--pp-grain);
  -webkit-mask-size: 60px 60px;
  opacity: 0.5;
}

/* the two big sheets the page is built on */
.visual-guide,
.why-play {
  position: relative;
  isolation: isolate;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 0 rgba(120, 92, 48, 0.12)) drop-shadow(0 18px 28px rgba(4, 22, 18, 0.36));
}

.visual-guide:before,
.why-play:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--pp-paper);
  background-image: var(--pp-grain), linear-gradient(178deg, #fdf8ea 0%, #f8efd9 58%, #f2e6ca 100%);
  background-size: 180px 180px, 100% 100%;
  background-blend-mode: multiply, normal;
  -webkit-mask-image: var(--pp-tear);
  mask-image: var(--pp-tear);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.visual-guide { padding: 86px 62px 54px !important; }
.why-play { padding: 84px 62px 52px !important; }

/* a corner of washi tape, the way you'd stick a photo into an album */
.guide-screen-button:before {
  content: '';
  position: absolute;
  z-index: 3;
  top: -10px;
  left: 50%;
  width: 86px;
  height: 23px;
  transform: translateX(-50%) rotate(-2.6deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(104deg, #e6d4a9 0%, #f5e8c8 44%, #e2cfa2 100%);
  opacity: 0.9;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.2);
  -webkit-clip-path: polygon(2% 0, 98% 5%, 100% 95%, 0 100%);
  clip-path: polygon(2% 0, 98% 5%, 100% 95%, 0 100%);
  pointer-events: none;
}

.guide-step:nth-child(even) .guide-screen-button:before {
  transform: translateX(-50%) rotate(2.2deg);
}

.boutique-card:after {
  content: '';
  position: absolute;
  z-index: 3;
  top: 9px;
  right: -6px;
  width: 74px;
  height: 21px;
  transform: rotate(38deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(104deg, #e6d4a9, #f3e4c0);
  opacity: 0.88;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.18);
  pointer-events: none;
}

/* ---------- 3. chrome ---------- */

.topbar {
  background: linear-gradient(180deg, rgba(20, 58, 46, 0.92), rgba(20, 58, 46, 0)) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.site-footer {
  border-top: 1px solid rgba(201, 170, 123, 0.22) !important;
}

.site-footer,
.site-footer a,
.site-footer .text-button {
  color: #cbbf9c !important;
}

/* ---------- 4. the calendar board ---------- */

.gift-board,
.doors-panel.gift-board {
  background-color: #842735 !important;
  background-image: radial-gradient(100% 95% at 50% 10%, #ad4350 0%, #842735 62%, #611e2c 100%) !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow:
    0 0 0 7px #f4e7cd,
    0 0 0 8px rgba(150, 116, 66, 0.55),
    0 18px 34px rgba(4, 22, 18, 0.42) !important;
}

.gift-board:before {
  display: none !important;
}

/* ---------- 5. the create panel ---------- */

.create-panel {
  position: relative;
  isolation: isolate;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-clip-path: var(--pp-cut);
  clip-path: var(--pp-cut);
  filter: drop-shadow(0 1px 0 rgba(120, 92, 48, 0.2)) drop-shadow(0 10px 16px rgba(2, 18, 14, 0.34));
  padding: 26px 23px 20px !important;
}

.create-panel:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--pp-paper-hi);
  background-image: linear-gradient(158deg, #fffbf1 0%, #f8eeda 62%, #f2e5c9 100%);
}

.boutique-button,
.guide-action,
.benefit-action {
  color: var(--pp-berry) !important;
}

.create-panel .button-primary,
.create-panel .button-primary span {
  color: #fff7e7 !important;
}

/* ---------- 6. the four steps ---------- */

.visual-guide {
  margin: 62px 0 0 !important;
  padding: 64px 46px 42px !important;
  background: #faf3e5 !important;
  border: 1px solid #dfc99f !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 34px rgba(4, 22, 18, 0.28) !important;
  filter: none !important;
}

.visual-guide:before,
.guide-screen-button:before { display: none !important; }

.visual-guide .guide-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start !important;
}

.visual-guide .guide-step {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.guide-phone {
  display: block;
  position: relative;
  padding: 6px !important;
  border: 2px solid #55544d !important;
  border-radius: 29px !important;
  background: #252b28 !important;
  box-shadow: 0 8px 18px rgba(45, 35, 21, 0.24), 0 0 0 2px #e2d5ba !important;
  overflow: hidden;
}

.guide-phone:before {
  border: 1px solid #a8a095 !important;
  border-radius: 24px !important;
}

.guide-phone img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 2 !important;
  border-radius: 21px !important;
  background: #123b32 !important;
  object-fit: cover !important;
}

.phone-camera { display: block !important; }

.visual-guide .guide-screen-button {
  width: 100% !important;
  max-width: 240px !important;
  margin: 0 auto !important;
  color: #7b6a4c !important;
}

.guide-screen-button:hover .guide-phone,
.guide-screen-button:focus-visible .guide-phone {
  box-shadow: 0 11px 22px rgba(45, 35, 21, 0.32), 0 0 0 2px #cfaa65 !important;
}

.visual-guide .enlarge-hint { color: #856939 !important; }
.visual-guide .guide-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.visual-guide .guide-step-heading { gap: 8px !important; margin: 14px 0 8px !important; }
.visual-guide .guide-step h3 { font-size: 20px !important; line-height: 1.2 !important; }
.visual-guide .guide-copy > p { font-size: 14px !important; line-height: 1.6 !important; color: #46513f !important; padding: 0 !important; margin: 0 0 12px !important; }
.visual-guide .guide-action { margin: auto 0 0 !important; align-self: flex-start !important; font-size: 13px !important; color: #8d2636 !important; }

.guide-number {
  border: 0 !important;
  border-radius: 2px !important;
  background: #fdf2d6 !important;
  color: var(--pp-berry) !important;
  box-shadow: 0 1px 0 rgba(150, 116, 66, 0.5) !important;
}

.guide-step h3,
.why-play-heading h2,
.guide-heading h2 {
  color: var(--pp-ink) !important;
}

.guide-step > p,
.guide-heading > p,
.guide-heading small,
.why-play-heading > p:last-child {
  color: var(--pp-ink-2) !important;
}

.guide-finale {
  background-color: #17392d !important;
  background-image: var(--pp-grain), linear-gradient(150deg, #1d4536, #12362b) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: overlay, normal !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(186, 152, 84, 0.5);
}

/* ---------- 7. the six promises ---------- */

.why-play {
  margin: 32px 0 0;
}

.benefit-card {
  position: relative;
  isolation: isolate;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 26px 22px 20px !important;
  filter: drop-shadow(0 1px 0 rgba(120, 92, 48, 0.18)) drop-shadow(0 6px 10px rgba(60, 42, 12, 0.14));
}

.benefit-card:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--pp-paper-hi);
  background-image: var(--pp-grain), linear-gradient(152deg, #fffdf6 0%, #f8f0dd 100%);
  background-size: 180px 180px, 100% 100%;
  background-blend-mode: multiply, normal;
  -webkit-clip-path: var(--pp-cut);
  clip-path: var(--pp-cut);
}

.benefit-card:after {
  content: '';
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 62px;
  height: 24px;
  transform: translateX(-50%) rotate(-2.4deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    linear-gradient(104deg, #e7d5ab 0%, #f4e7c7 46%, #e2cfa2 100%);
  opacity: 0.9;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.18);
  -webkit-clip-path: polygon(2% 0, 98% 5%, 100% 95%, 0 100%);
  clip-path: polygon(2% 0, 98% 5%, 100% 95%, 0 100%);
  pointer-events: none;
}

.benefit-grid .benefit-card:nth-child(2n) { transform: rotate(0.5deg); }
.benefit-grid .benefit-card:nth-child(2n):after { transform: translateX(-50%) rotate(2.1deg); }
.benefit-grid .benefit-card:nth-child(3n) { transform: rotate(-0.45deg); }
.benefit-grid .benefit-card:nth-child(3n):after { left: 28%; }

.benefit-icon {
  border: 1px solid rgba(190, 154, 92, 0.6) !important;
  background: radial-gradient(circle at 36% 26%, #fffbee, #f0e0bb) !important;
  box-shadow: 0 1px 0 rgba(150, 116, 66, 0.3) !important;
}

.benefit-card h3 { color: var(--pp-ink) !important; }
.benefit-card > p { color: var(--pp-ink-2) !important; }
.benefit-action { border-bottom: 1px solid rgba(180, 138, 92, 0.45) !important; }

.why-play-footer { border-top: 0 !important; }

/* ---------- 8. the gift boutique ---------- */

.boutique-card {
  background-color: var(--pp-paper-hi) !important;
  background-image: var(--pp-grain), linear-gradient(150deg, #fffdf5, #f6ecd8) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: multiply, normal !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-clip-path: var(--pp-cut);
  clip-path: var(--pp-cut);
}

.boutique-art {
  background-image: url('/art/gilt-hero.webp') !important;
  background-size: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: rotate(-5deg);
}

.boutique-copy .eyebrow { color: #a5763b !important; }
.boutique-copy h3 { color: var(--pp-ink) !important; }
.boutique-copy p { color: var(--pp-ink-2) !important; }
.boutique-copy > small { color: var(--pp-ink-3) !important; }
.boutique-pricing-link { color: #8a6420 !important; text-decoration-color: rgba(138, 100, 32, 0.5) !important; }
.boutique-card .boutique-button span { color: var(--pp-berry) !important; }

/* ---------- 9. Velvet & Gold, repainted ---------- */

/* the gilt sheet is a 6x4 sprite; each door reads its own cell */
:is(.preview-velvet, .owned-gold) .gift-art { opacity: 0 !important; }

:is(.preview-velvet, .owned-gold) .festive-gift:before {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  background-image: url('/art/gilt-sheet.webp') !important;
  background-size: 600% 400% !important;
  background-position: calc(var(--gc, 0) * 20%) calc(var(--gr, 0) * 33.3333%) !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 3px rgba(110, 72, 16, 0.3));
}

:is(.preview-velvet, .owned-gold) .festive-gift:after {
  display: none !important;
}

/* the style-preview plate in the modal: a sheet of gilt paper, not a foil tile */
.boutique-preview-art {
  width: 178px !important;
  height: 186px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fffdf5 url('/art/gilt-hero.webp') center/108% no-repeat !important;
  box-shadow: 0 1px 0 rgba(150, 116, 66, 0.3), 0 8px 14px rgba(60, 42, 12, 0.18) !important;
  transform: rotate(-2.2deg);
  margin: 26px auto 22px !important;
}

.boutique-preview-art:before { display: none !important; }
.boutique-preview-art > span { display: none !important; }

:is(.preview-velvet, .owned-gold) .boutique-benefits span { color: #e6d3a4 !important; }

/* ---------- 10. buttons as cut paper ---------- */

.button,
.guide-finale .button,
.boutique-button {
  border-radius: 2px !important;
  letter-spacing: 0.01em;
}

.button-primary {
  background-image: var(--pp-grain), linear-gradient(178deg, #c2505f, #a23445) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: multiply, normal !important;
  border: 0 !important;
  box-shadow: 0 3px 0 #7d2231, 0 8px 14px rgba(90, 20, 34, 0.28) !important;
}
.button-primary,
.button-primary span { color: #fff7e7 !important; }

.button-light {
  background-image: var(--pp-grain), linear-gradient(178deg, #fffbef, #f4e8cf) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: multiply, normal !important;
  border: 0 !important;
  box-shadow: 0 2px 0 rgba(170, 134, 76, 0.6), 0 6px 12px rgba(60, 42, 12, 0.16) !important;
}

.button-primary:hover { filter: brightness(1.05); }
.button-light:hover { filter: brightness(1.03); }

/* ---------- 11. dialogs ---------- */

.modal-inner,
.dialog,
dialog > div {
  background-image: linear-gradient(168deg, #fffaf0, #f4e9d2) !important;
  border: 0 !important;
  border-radius: 3px !important;
  color: var(--pp-ink) !important;
  box-shadow: 0 0 0 1px rgba(170, 134, 76, 0.45), 0 24px 50px rgba(2, 16, 12, 0.55) !important;
}

.modal-inner h2,
.modal-inner h3 { color: var(--pp-ink) !important; }
.modal-inner .field-label { color: #334c3d !important; }
.modal-inner .character-count,
.modal-inner .check-label { color: #5a6959 !important; }
.modal-inner .button-primary,
.modal-inner .button-primary span { color: #fff7e7 !important; }
.modal-inner .eyebrow,
.modal-inner .modal-subtitle,
.modal-inner p { color: var(--pp-ink-2) !important; }
.modal-inner .modal-close { color: var(--pp-ink-2) !important; }

/* the velvet preview dialog keeps a dark stage but on paper stock */
.modal-inner .boutique-benefits { color: var(--pp-ink-2) !important; }
.modal-inner .boutique-benefits span { color: var(--pp-ink-2) !important; }
.modal-inner .boutique-disclosure { color: var(--pp-ink-3) !important; }

/* the dialogs used to be a dark stage; every block written for that stage
   needs ink now that it sits on paper */
.modal-inner .text-button,
.modal-inner .modal-close { color: #8a6420 !important; }

.modal-inner small,
.modal-inner .modal-subtitle,
.modal-inner .practice-note-hint,
.modal-inner .practice-read-caption,
.modal-inner .boutique-disclosure,
.modal-inner .plan-footnote { color: var(--pp-ink-3) !important; }

.modal-inner .boutique-benefits,
.modal-inner .boutique-benefits span,
.modal-inner .privacy-explainer span,
.modal-inner .promise-explainer p { color: var(--pp-ink-2) !important; }

.modal-inner .privacy-explainer strong,
.modal-inner .promise-explainer strong,
.modal-inner .invite-example strong { color: var(--pp-ink) !important; }

.modal-inner .privacy-explainer li,
.modal-inner .promise-explainer li { border-top: 1px solid rgba(180, 138, 92, 0.3) !important; }

.modal-inner .promise-explainer li:before {
  color: #7d5a1d !important;
  background: #f5e7c4 !important;
  border: 1px solid rgba(184, 137, 44, 0.6) !important;
}

.modal-inner .example-promise {
  background: #f8eed6 !important;
  color: #6b5836 !important;
  border-left: 3px solid rgba(184, 137, 44, 0.7) !important;
}

.modal-inner .sample-note { color: #6b5836 !important; border-color: rgba(180, 138, 92, 0.4) !important; }

.modal-inner .button-light {
  color: #5c4a2c !important;
  background-image: linear-gradient(178deg, #fffbef, #f3e6cd) !important;
}

.modal-inner .button-light[disabled],
.modal-inner .button-light:disabled {
  color: #a39274 !important;
  background: #f4ead4 !important;
  box-shadow: none !important;
}

.letter-paper,
.invite-example {
  background-color: #fffdf4 !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(178, 142, 82, 0.5), 0 6px 14px rgba(60, 42, 12, 0.14) !important;
}

/* ---------- 12. pricing ---------- */

.price-card {
  background-color: var(--pp-paper-hi) !important;
  background-image: var(--pp-grain), linear-gradient(158deg, #fffdf6, #f7edda) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: multiply, normal !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-clip-path: var(--pp-cut);
  clip-path: var(--pp-cut);
}

/* the paid tier is the same paper, only gilded: no black-label block */
.price-card-boutique {
  background-color: var(--pp-paper-hi) !important;
  background-image: var(--pp-grain), linear-gradient(156deg, #fffdf4 0%, #fbf1d8 58%, #f4e6c2 100%) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: multiply, normal !important;
  color: var(--pp-ink) !important;
}

.price-card-boutique h2,
.price-card-boutique h3 { color: var(--pp-ink) !important; }

.price-card-boutique .plan-availability { color: #8a6420 !important; }

.price-card-boutique .plan-summary,
.price-card-boutique .plan-features li,
.price-card-boutique .plan-footnote,
.price-card-boutique p { color: var(--pp-ink-2) !important; }

.price-card-boutique .plan-label { color: #9a7130 !important; }

.price-card-boutique .pricing-disclosure {
  background: rgba(184, 137, 44, 0.09) !important;
  border-left: 2px solid rgba(184, 137, 44, 0.55) !important;
}

.price-card-boutique .pricing-disclosure strong { color: var(--pp-ink) !important; }

.pricing-velvet-art .boutique-preview-art {
  width: 128px !important;
  height: 128px !important;
  margin: 0 !important;
  background: #fffdf5 url('/art/gilt-hero.webp') center/contain no-repeat !important;
}

/* the two long sheets on the pricing page */
.shop-catalog,
.pricing-faq {
  position: relative;
  isolation: isolate;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-clip-path: var(--pp-cut);
  clip-path: var(--pp-cut);
  filter: drop-shadow(0 1px 0 rgba(120, 92, 48, 0.16)) drop-shadow(0 8px 14px rgba(4, 22, 18, 0.28));
}

.shop-catalog:before,
.pricing-faq:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--pp-paper-hi);
  background-image: var(--pp-grain), linear-gradient(168deg, #fffdf5 0%, #f8efdb 62%, #f3e7cc 100%);
  background-size: 180px 180px, 100% 100%;
  background-blend-mode: multiply, normal;
}

/* the reassurance strip stays a dark sheet so its cream copy keeps its contrast */
.pricing-included {
  background-color: #17392d !important;
  background-image: var(--pp-grain), linear-gradient(150deg, #1e4637 0%, #14352b 62%, #1a4032 100%) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: overlay, normal !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: #ecdcae !important;
}

.pricing-included:before { display: none !important; }

.shop-catalog table,
.shop-catalog .shop-table,
.shop-catalog > div {
  border-radius: 0 !important;
}

.pricing-table,
.price-table,
table {
  background: none !important;
}

table th,
table td {
  border-color: rgba(170, 134, 76, 0.34) !important;
}

table thead th,
table tr:first-child th {
  background: rgba(201, 170, 123, 0.16) !important;
  color: #6f5528 !important;
}

/* ---------- 13. small screens ---------- */

@media (max-width: 820px) {
  .visual-guide .guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px 20px !important;
  }
}

@media (max-width: 700px) {
  .visual-guide .guide-steps {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 32px !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    margin: 0 !important;
  }
  .visual-guide .guide-step { scroll-snap-align: none !important; }
  .visual-guide .guide-screen-button { align-self: center !important; }
  .guide-swipe { display: none !important; }
  .visual-guide { padding: 40px 25px 34px !important; }
  .why-play { padding: 44px 28px 34px !important; }
}

@media (max-width: 560px) {
  .visual-guide .guide-steps { grid-template-columns: 1fr !important; gap: 38px !important; }
  .visual-guide .guide-screen-button { max-width: 260px !important; }
  .visual-guide .guide-copy { width: min(100%, 280px); margin: 0 auto; }
  .visual-guide .guide-step h3 { font-size: 21px !important; }
  .visual-guide .guide-copy > p { font-size: 14px !important; }
  .visual-guide { padding: 34px 20px 30px !important; }
  .pp-tape { width: 64px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-phone { transition: none !important; }
}

/* ---------- reactions: cream paper chips, not gold-on-forest ---------- */

.reaction-row { color: var(--pp-ink-2) !important; }

.reaction-row .button,
.reaction-row .button-light {
  gap: 8px !important;
  min-width: 104px !important;
  border: 0 !important;
  border-radius: 2px !important;
  color: var(--pp-ink-2) !important;
  background-color: var(--pp-paper-hi) !important;
  background-image: linear-gradient(178deg, #fffbef, #f3e6cd) !important;
  box-shadow: 0 0 0 1px rgba(170, 134, 76, 0.45), 0 2px 0 rgba(150, 116, 66, 0.22) !important;
}

.reaction-row .button[aria-pressed=true],
.reaction-row .button-light[aria-pressed=true] {
  background-image: linear-gradient(178deg, #f6e6c0, #eed7a4) !important;
  box-shadow: 0 0 0 2px rgba(168, 56, 74, 0.55), 0 2px 0 rgba(150, 116, 66, 0.22) !important;
  color: var(--pp-ink) !important;
}

.reaction-row .button .ui-icon { color: #a8384a !important; }

.reaction-received { color: var(--pp-ink-2) !important; }
.reaction-received .ui-icon { color: #a8384a !important; }
.modal-inner .christmas-wish .eyebrow { color: #e8cc8a !important; }

/* ---------- 14. 404 and the legal page ---------- */

.missing-card,
.legal-card,
.legal-summary {
  position: relative;
  isolation: isolate;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-clip-path: var(--pp-cut);
  clip-path: var(--pp-cut);
  filter: drop-shadow(0 1px 0 rgba(120, 92, 48, 0.18)) drop-shadow(0 10px 18px rgba(4, 22, 18, 0.34));
}

.missing-card:before,
.legal-card:before,
.legal-summary:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--pp-paper-hi);
  background-image: var(--pp-grain), linear-gradient(166deg, #fffdf5 0%, #f8efdb 60%, #f2e6ca 100%);
  background-size: 180px 180px, 100% 100%;
  background-blend-mode: multiply, normal;
}

.legal-card h1,
.legal-card h2,
.legal-card h3,
.missing-card h1 { color: var(--pp-ink) !important; }

.legal-card p,
.legal-card li,
.legal-summary p { color: var(--pp-ink-2) !important; }

.legal-summary { margin-top: 18px !important; }

.missing-shell { background: none !important; }
.missing-primary {
  background-image: var(--pp-grain), linear-gradient(178deg, #2b5a47, #17392d) !important;
  background-size: 180px 180px, 100% 100% !important;
  background-blend-mode: multiply, normal !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 0 rgba(8, 40, 30, 0.8) !important;
  color: #f6ecd2 !important;
}
.missing-secondary {
  background: #fffdf5 !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(170, 134, 76, 0.5) !important;
  color: var(--pp-ink-2) !important;
}
