/* Doodle or Nothing — Casino widget (featured entrance + compact grid card).
   Self-contained: every class starts with .dw so it can sit inside the Casino hub without touching its styles.
   The artwork is G's illustration; every number, badge and button on top of it is live HTML. */
@font-face { font-family: "Bagel Fat One"; src: url("/bean-machine/doodle/fonts/bagel-fat-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/bean-machine/doodle/fonts/outfit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/bean-machine/doodle/fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.dw { --dw-gold: #e2b955; --dw-gold-2: #f6d98b; --dw-brass: #a8822f; --dw-ink: #2a1a05; --dw-plum: #1c0f33; --dw-plum-2: #2a1650; --dw-ivory: #f6eedf; --dw-muted: #bcaed6; --dw-ok: #5ee39b; --dw-neon: #c58bff;
  font-family: "Outfit", system-ui, sans-serif; color: var(--dw-ivory); box-sizing: border-box; }
.dw *, .dw *::before, .dw *::after { box-sizing: inherit; }
.dw .dw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dw a { color: inherit; text-decoration: none; }
.dw :focus-visible { outline: 2px solid var(--dw-gold-2); outline-offset: 3px; border-radius: 12px; }

/* live badge: the only status on the card (the artwork has no painted badge), so it can never claim LIVE when it isn't */
.dw-live { display: inline-flex; align-items: center; gap: .45em; padding: .35em .9em; border-radius: 999px; font-weight: 700; letter-spacing: .06em; font-size: clamp(11px, 1.35vw, 22px);
  background: #0b0614; border: 2px solid #5ee39b88; color: var(--dw-ok); box-shadow: 0 0 18px #5ee39b44, inset 0 0 10px #5ee39b22; white-space: nowrap; }
.dw-live i { width: .7em; height: .7em; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.dw-live[data-state="open"] { color: var(--dw-gold-2); border-color: #e2b95588; box-shadow: 0 0 18px #e2b95544; }
.dw-live[data-state="unknown"] { color: var(--dw-muted); border-color: #ffffff33; box-shadow: none; }
.dw-live[data-state="unknown"] i { box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .dw-live[data-state="live"] i { animation: dw-pulse 1.8s ease-in-out infinite; } }
@keyframes dw-pulse { 50% { opacity: .35; } }

/* ── featured ── */
.dw-featured { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; border-radius: clamp(16px, 2.4vw, 30px); overflow: hidden; background: #120a22;
  border: 3px solid var(--dw-brass); box-shadow: 0 0 0 1px #000, 0 0 0 6px #e2b9551f, 0 40px 80px -40px #000; }
.dw-scene { position: relative; display: block; aspect-ratio: 1536 / 606; container-type: inline-size; }
.dw-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* sits on the empty sign space under the marquee arch, top right of the scene */
.dw-scene .dw-live { position: absolute; left: 86.2%; top: 20.3%; transform: translate(-50%, -50%); padding: .45em 1.05em; font-size: max(10px, 1.75cqw); border-width: max(1.5px, .2cqw); background: #0b0614e0; backdrop-filter: blur(2px); }
.dw-scene .dw-live[data-state="unknown"] { font-size: max(9px, 1.15cqw); }
@container (max-width: 640px) { .dw-scene .dw-live { left: auto; right: 2.5%; top: 6%; transform: none; } }
.dw-panel { position: relative; padding: clamp(12px, 1.8vw, 22px); background: linear-gradient(180deg, #1d0f37, #120a22); border-top: 2px solid var(--dw-brass); }
.dw-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: repeating-linear-gradient(90deg, var(--dw-gold-2) 0 6px, transparent 6px 34px); filter: drop-shadow(0 0 4px var(--dw-gold-2)); }
.dw-stats { list-style: none; margin: 0 0 clamp(10px, 1.4vw, 16px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border: 1.5px solid #e2b95555; border-radius: 16px; background: #0b0614a8; }
.dw-stats li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; position: relative; }
.dw-stats li + li::before { content: ""; position: absolute; left: -4px; top: 18%; bottom: 18%; width: 1px; background: #ffffff1a; }
.dw-stats svg { grid-row: span 2; width: clamp(26px, 2.6vw, 40px); height: auto; color: var(--dw-neon); }
.dw-stats b { font-family: "Bagel Fat One", "Outfit", sans-serif; font-weight: 400; font-size: clamp(22px, 2.6vw, 40px); line-height: 1; color: var(--dw-gold-2); font-variant-numeric: tabular-nums; }
.dw-stats span { font-size: clamp(11px, 1vw, 14px); font-weight: 700; letter-spacing: .04em; color: var(--dw-muted); }
.dw-stats .dw-sim b { font-family: "Outfit", sans-serif; font-weight: 700; font-size: clamp(14px, 1.4vw, 20px); color: var(--dw-neon); }
.dw-stats .dw-sim svg { color: var(--dw-gold); }
.dw-actions { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(8px, 1.2vw, 14px); }
.dw-btn { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px; border-radius: 16px; border: 1.5px solid #c58bff88; background: linear-gradient(180deg, #3a1d6e, #26124a); transition: transform .12s ease, box-shadow .15s ease; }
.dw-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px #000, 0 0 0 1px #e2b95588; }
.dw-btn > svg:first-child { width: clamp(28px, 2.6vw, 40px); height: auto; flex: none; color: var(--dw-neon); }
.dw-btn > svg:last-child { width: 22px; height: 22px; margin-left: auto; flex: none; opacity: .8; }
.dw-btn b { display: block; font-size: clamp(16px, 1.7vw, 24px); font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.dw-btn small { display: block; font-size: clamp(12px, 1vw, 15px); color: var(--dw-muted); margin-top: 3px; }
.dw-btn.dw-gold { background: linear-gradient(180deg, var(--dw-gold-2), var(--dw-gold) 55%, var(--dw-brass)); border-color: #fff6; color: var(--dw-ink); }
.dw-btn.dw-gold > svg:first-child { color: var(--dw-ink); }
.dw-btn.dw-gold small { color: #5a3d0c; }
.dw-btn[aria-disabled="true"], .dw-c-actions a[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.dw-btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.dw-thumb[aria-disabled="true"] { cursor: default; }
.dw-note { margin: 10px 2px 0; font-size: 12px; color: var(--dw-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .dw-stats { grid-template-columns: repeat(2, 1fr); }
  .dw-stats li:nth-child(3)::before { display: none; }
  .dw-actions { grid-template-columns: 1fr; }
  .dw-btn { min-height: 62px; }

}

/* ── compact (Casino game grid) ── */
.dw-compact { display: flex; flex-direction: column; width: 100%; max-width: 340px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, var(--dw-plum-2), var(--dw-plum)); border: 1.5px solid #e2b95566; box-shadow: 0 24px 50px -28px #000; }
.dw-thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.dw-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dw-compact:hover .dw-thumb img { transform: scale(1.04); }
.dw-thumb .dw-live { position: absolute; left: 10px; top: 10px; font-size: 12px; }
.dw-c-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.dw-c-body h3 { margin: 0; font-family: "Bagel Fat One", "Outfit", sans-serif; font-weight: 400; font-size: 24px; line-height: 1; color: var(--dw-gold-2); }
.dw-c-tag { margin: 0; font-size: 14px; color: var(--dw-ivory); }
.dw-c-stats { margin: 0; font-size: 13px; color: var(--dw-muted); }
.dw-c-stats b { color: var(--dw-gold-2); font-variant-numeric: tabular-nums; }
.dw-c-actions { display: flex; gap: 8px; margin-top: 6px; }
.dw-c-actions a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid #c58bff88; background: #3a1d6e; }
.dw-c-actions a.dw-gold { background: linear-gradient(180deg, var(--dw-gold-2), var(--dw-gold) 55%, var(--dw-brass)); color: var(--dw-ink); border-color: #fff6; }
.dw-c-sim { font-size: 11px; color: var(--dw-neon); }
