/* Paydirt Solitaire's page: the card room of its store frame. Woven claret
   baize under a lamp with a double brass rail round the edge, captions in
   DM Serif Display between brass rules, the phone in a brass picture frame,
   and the four points dealt as cream cards on the baize. Barlow for reading.
   The baize stays in both themes; the paper between follows the device. */

@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-serif-display/dm-serif-display-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow/barlow-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow/barlow-600-latin.woff2) format("woff2"); }

.app-paydirt {
  --body: "Barlow", var(--sys);
  --display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --body-size: 18px;
  --page: #f6eee1;
  --surface: #fffaf0;
  --ink: #2e0c13;
  --dim: #6a4840;
  --rule: #e0d0b4;
  --link: #8e1f30;
  --focus: #8e1f30;
  --brass-line: #a87a2a;

  --baize:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px),
    radial-gradient(70% 55% at 50% 38%, rgba(255, 196, 130, 0.16), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.36) 100%),
    radial-gradient(120% 75% at 50% 0%, #7a1d2c 0%, #4a1019 50%, #2a070e 100%);
  --stage-bg: var(--baize);
  --stage-ink: #fbf1e3;
  --stage-dim: #e6c9b8;
  --stage-focus: #f3d27a;
  --store-bg: rgba(30, 5, 11, 0.45);
  --store-ink: #f3d27a;
  --store-border: 1px solid rgba(243, 210, 122, 0.55);
  --store-radius: 10px;
  --device-fill: #4a1019;
}

@media (prefers-color-scheme: dark) {
  .app-paydirt {
    --page: #24070d;
    --surface: #34101a;
    --ink: #fbf1e3;
    --dim: #d8b7a6;
    --rule: rgba(243, 210, 122, 0.2);
    --link: #f3d27a;
    --focus: #f3d27a;
    --brass-line: #d9a441;
  }
}

.app-paydirt h2 { font-weight: 400; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: 0; }
.app-paydirt h3 { font-family: var(--display); font-weight: 400; }

/* ---- the stage: baize, lamp and the double brass rail ---- */

.app-paydirt .stage::after {
  content: ""; position: absolute; inset: 10px; z-index: -1; pointer-events: none;
  border: 1.5px solid rgba(217, 164, 65, 0.7); border-radius: 12px;
  outline: 1px solid rgba(217, 164, 65, 0.4); outline-offset: -7px;
}
@media (min-width: 700px) { .app-paydirt .stage::after { inset: 16px; } }
.app-paydirt .stage .wrap { padding-left: 30px; padding-right: 30px; }
@media (min-width: 700px) { .app-paydirt .stage .wrap { padding-left: 48px; padding-right: 48px; } }
.app-paydirt .site-head .wrap { min-height: 76px; padding-top: 10px; }

.app-paydirt .hero { padding-bottom: 72px; }
.app-paydirt .hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.app-paydirt .app-icon { width: 84px; height: 84px; box-shadow: 0 0 0 1.5px rgba(217, 164, 65, 0.8), 0 14px 30px rgba(10, 0, 3, 0.45); }
.app-paydirt .hero h1 {
  margin-top: 26px; font-weight: 400; font-size: clamp(46px, 7.4vw, 84px); line-height: 1.02;
  color: #f3d27a; text-shadow: 0 2px 0 rgba(42, 7, 14, 0.6);
}
.app-paydirt .kind { margin-top: 10px; font-size: 18px; }
.app-paydirt .promise { margin-top: 22px; font-family: var(--display); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; color: #fbf1e3; }
.app-paydirt .lede { margin: 14px auto 0; font-size: 18px; }
.app-paydirt .stores { justify-content: center; }
.app-paydirt .store b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0; }

/* Brass rules with a diamond, above and below a caption. */
.app-paydirt .rule {
  display: block; position: relative; width: 168px; max-width: 60%; height: 1px; margin: 12px auto;
  background: linear-gradient(90deg, transparent, var(--rule-c, #d9a441) 22%, var(--rule-c, #d9a441) 78%, transparent);
}
.app-paydirt .rule::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  background: var(--rule-c, #d9a441); transform: translate(-50%, -50%) rotate(45deg);
}

/* The phone in a brass picture frame. */
.app-paydirt .device {
  width: min(292px, 72vw); padding: 8px; border-radius: 40px;
  background: linear-gradient(150deg, #f3d27a 0%, #d9a441 30%, #9a6a1c 62%, #e7bb5c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, 0.5), 0 30px 60px rgba(10, 0, 3, 0.55);
}
.app-paydirt .device video, .app-paydirt .device .still { border-radius: 32px; box-shadow: 0 0 0 2px #2a070e; }

/* ---- the four points, dealt on the baize ---- */

.app-paydirt .good { background: var(--baize); color: #fbf1e3; padding-bottom: 88px; margin-top: 0; }
.app-paydirt .good .section-head { text-align: center; }
.app-paydirt .good .section-head p { margin-left: auto; margin-right: auto; color: #e6c9b8; }
.app-paydirt .good h2 { color: #f3d27a; }
.app-paydirt .good :focus-visible { outline-color: #f3d27a; }

.app-paydirt .hand { display: grid; gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .app-paydirt .hand { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) {
  .app-paydirt .hand { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .app-paydirt .card:nth-child(1) { transform: rotate(-4deg) translateY(14px); }
  .app-paydirt .card:nth-child(2) { transform: rotate(-1.3deg); }
  .app-paydirt .card:nth-child(3) { transform: rotate(1.3deg); }
  .app-paydirt .card:nth-child(4) { transform: rotate(4deg) translateY(14px); }
}
.app-paydirt .card {
  position: relative; padding: 52px 24px 56px; border-radius: 14px;
  background: #fbf6ea; color: #17151c; border: 1px solid #cdbf9f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 14px 30px rgba(10, 0, 3, 0.4);
}
.app-paydirt .card h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.15; }
.app-paydirt .card p { margin: 0; color: #4a3a36; font-size: 17px; line-height: 1.5; }
.app-paydirt .idx {
  position: absolute; left: 14px; top: 10px; display: flex; flex-direction: column; align-items: center;
  font-weight: 600; font-size: 24px; line-height: 1; color: #17151c;
}
.app-paydirt .idx i { font-style: normal; font-size: 20px; margin-top: 2px; }
.app-paydirt .idx.end { left: auto; top: auto; right: 14px; bottom: 10px; transform: rotate(180deg); }
.app-paydirt .card.red .idx { color: #c01d31; }

/* ---- today's deal: a panel inside a double brass rule ---- */

.app-paydirt .baize-band {
  --rule-c: var(--brass-line);
  max-width: 46rem; margin: 0 auto; padding: 44px 28px 40px; text-align: center;
  border: 1.5px solid var(--brass-line); border-radius: 12px;
  outline: 1px solid var(--brass-line); outline-offset: -8px;
}
@media (min-width: 700px) { .app-paydirt .baize-band { padding: 56px 64px 52px; } }
.app-paydirt .baize-band h2 { display: flex; flex-direction: column; align-items: center; }
.app-paydirt .baize-band p { margin: 18px auto 0; max-width: 54ch; color: var(--dim); }
.app-paydirt .baize-band .rule { margin: 14px auto; }

.app-paydirt .shots-row img { box-shadow: 0 10px 24px rgba(42, 7, 14, 0.18); }
.app-paydirt .faq summary { font-family: var(--display); font-weight: 400; font-size: 22px; }
