/* WolfPrime daily games. Shared chrome is neutral; color identifies the game and outcome. */
.daily-games-page {
  --dg-gold: #d4a35e;
  --dg-safe: #82bea0;
  --dg-red: #e47776;
  --dg-line: var(--wp-border);
}
.dg-main {
  inline-size: min(var(--wp-max), calc(100% - 64px));
  margin-inline: auto;
  padding-block: 36px 48px;
}
.dg-main [hidden] { display: none !important; }
.dg-masthead {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(190px,250px);
  align-items: center;
  gap: 24px;
  min-block-size: 238px;
  padding: clamp(20px,4vw,48px);
  border: 1px solid #594b46;
  border-radius: 16px;
  background: #1d1818;
  color: #fff;
}
.dg-masthead > img,.dg-masthead::before {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border-radius: inherit;
}
.dg-masthead > img { object-fit: cover; object-position: center 42%; z-index: -2; }
.dg-masthead::before { content: ""; background: linear-gradient(90deg,#141214fa 0%,#141214d9 42%,#1412147a 100%); z-index: -1; }
body.wp-next .dg-masthead h1 { margin: 0; color: #fff; font-size: clamp(32px,5vw,60px); line-height: 1.07; }
body.wp-next .dg-masthead p { color: #e7dedb; max-inline-size: 53ch; margin: 14px 0 0; }
.dg-masthead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
html body.wp-next .dg-masthead-actions > a { color: #fff; font-size: 14px; }
html body.wp-next .dg-masthead-actions > .button { color: #161416; background: #f3eeeb; }
.dg-masthead-quota {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid #e0c0af3d;
  border-radius: 12px;
  background: #161318dc;
}
html body.wp-next .dg-masthead-quota > strong { color: #fff; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.dg-masthead-quota > strong > small { color: #bdafae; font-size: 18px; }
.dg-masthead-quota > span { color: #f2ebe9; font-size: 14px; }
.dg-masthead-quota > small { color: #d7cbc9; font-size: 12px; }
.dg-masthead-quota meter { inline-size: 100%; block-size: 8px; appearance: none; margin-block: 5px 2px; background: #4b4141; border-radius: 4px; }
.dg-masthead-quota meter::-webkit-meter-bar { background: #4b4141; border: 0; border-radius: 4px; }
.dg-masthead-quota meter::-webkit-meter-optimum-value { background: #e0a671; border-radius: 4px; }
.dg-masthead-quota meter::-moz-meter-bar { background: #e0a671; border-radius: 4px; }
.dg-games,.dg-results-layout,.dg-public-details { margin-block-start: 32px; }
html body.wp-next .dg-main :is(.dg-games,.dg-results-layout,.dg-public-details) h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.2; }
.dg-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
html body.wp-next.daily-games-page .dg-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  min-inline-size: 0;
  border: 1px solid var(--wp-border);
  border-radius: 14px;
  background: var(--wp-panel);
  overflow: clip;
  transition: border-color .18s, translate .18s;
}
.dg-card:hover,.dg-card:focus-within { border-color: var(--wp-muted); translate: 0 -2px; }
.dg-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  min-block-size: 140px;
  padding: 12px;
  background: radial-gradient(ellipse at 50% 65%,#5b3c24 0%,#2d231e 60%,#1f1a19 100%);
}
.dg-mines .dg-card-media { background: radial-gradient(ellipse at 50% 65%,#344d40,#202d27 65%,#192320); }
.dg-wheel .dg-card-media { background: radial-gradient(ellipse at 50% 65%,#613d36,#342521 65%,#231b1b); }
.dg-preview-reel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  align-items: center;
  inline-size: min(80%,245px);
  padding: 10px;
  border: 1px solid #987855;
  border-radius: 10px;
  background: #201b19;
  box-shadow: 0 10px 24px #0005;
}
.dg-preview-reel > span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #66513e;
  border-radius: 6px;
  color: #c5a579;
  background: #2c231e;
}
.dg-preview-reel > span:nth-child(2) { color: #ffe0a7; border-color: #e0ac66; background: #4d3423; }
.dg-preview-reel > span > svg { inline-size: 48%; block-size: 48%; }
.dg-preview-reel::after { content: ""; position: absolute; inset: -5px auto auto calc(50% - 4px); border-inline: 4px solid transparent; border-top: 8px solid #f5ca8e; }
.dg-preview-mines {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 4px;
  inline-size: min(34%,132px);
  min-inline-size: 96px;
  padding: 7px;
  border: 1px solid #648373;
  border-radius: 8px;
  background: #1a2420;
  box-shadow: 0 10px 24px #0005;
}
.dg-preview-mines > span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 3px; background: #334b41; color: #c0ebcf; }
.dg-preview-mines > span.is-safe { background: #4f7e62; }
.dg-preview-mines > span svg { inline-size: 72%; block-size: 72%; }
.dg-preview-wheel,.dg-wheel-disc {
  --wheel-faces: conic-gradient(#735132 0deg 45deg,#3b5b63 45deg 90deg,#465e4f 90deg 135deg,#723e42 135deg 180deg,#735132 180deg 225deg,#3b5b63 225deg 270deg,#465e4f 270deg 315deg,#723e42 315deg 360deg);
}
.dg-preview-wheel {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  inline-size: min(36%,142px);
  min-inline-size: 104px;
  border: 5px solid #c89e78;
  border-radius: 50%;
  background: repeating-conic-gradient(#ffffff35 0 1deg,transparent 1deg 45deg),var(--wheel-faces);
  box-shadow: 0 0 0 4px #372a27,0 10px 24px #0007;
}
.dg-preview-wheel::before { content: ""; position: absolute; top: -11px; border-inline: 8px solid transparent; border-top: 14px solid #f7c896; }
html body.wp-next .dg-preview-wheel > span { display: grid; place-items: center; inline-size: 36%; aspect-ratio: 1; border: 2px solid #b98d6e; border-radius: 50%; background: #251e1e; color: #fff1e5; font-size: 13px; font-weight: 600; }
.dg-card-content { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
html body.wp-next .dg-card-content h3 { margin: 0; font-size: 21px; }
html body.wp-next .dg-card-content p { margin: 0 0 10px; color: var(--wp-secondary); font-size: 14px; line-height: 1.55; }
html body.wp-next .dg-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-block-size: 44px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--wp-border);
  border-radius: 8px;
  background: var(--wp-raised);
  color: var(--wp-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.dg-card-action:hover:not(:disabled) { border-color: var(--wp-muted); }
.dg-main :is(button,a,summary):focus-visible { outline: 2px solid var(--wp-accent); outline-offset: 3px; }
.dg-main button:disabled { opacity: .58; cursor: not-allowed; }

.dg-results-layout,.dg-public-details { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 20px; align-items: start; }
html body.wp-next.daily-games-page :is(.dg-history,.dg-leaders,.dg-info,.dg-faq) {
  min-inline-size: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--wp-border);
  border-radius: 12px;
  background: var(--wp-panel);
}
.dg-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--wp-border); }
html body.wp-next .dg-section-heading h2 { margin: 0 !important; }
.dg-section-heading > :not(h2) { font-size: 12px; color: var(--wp-muted); }
.dg-history-grid { display: grid; }
.dg-reward-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--wp-border); }
.dg-reward-card:last-child { border-bottom: 0; padding-bottom: 0; }
.dg-reward-art { grid-row: span 2; display: grid; place-items: center; inline-size: 48px; aspect-ratio: 1; background: var(--wp-raised); border-radius: 8px; color: var(--wp-secondary); }
.dg-reward-art svg { width: 32px !important; height: 32px !important; }
.dg-reward-art img { width: 100%; height: 100%; object-fit: contain; }
html body.wp-next .dg-reward-card h3 { margin: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.dg-reward-game { grid-column: 2; align-self: end; font-size: 12px; }
.dg-delivery { font-size: 12px; color: var(--wp-secondary); }
.dg-delivery::before { content: ""; display: inline-block; inline-size: 6px; block-size: 6px; margin-inline-end: 6px; border-radius: 50%; background: #579f7a; vertical-align: 2px; }
.dg-delivery.is-pending::before { background: #be9150; }
.dg-reward-card .dg-delivery { grid-column: 3; grid-row: 1 / span 2; max-inline-size: 17ch; }
.dg-resume { grid-column: 2/-1; justify-self: start; padding: 7px 10px; border: 1px solid var(--wp-border); border-radius: 7px; background: var(--wp-raised); color: var(--wp-text); }
.dg-empty { padding: 16px 0 0; margin: 0; color: var(--wp-muted); font-size: 14px; }
.dg-leaders-grid { display: grid; }
html body.wp-next.daily-games-page .dg-leader-group { border: 0; border-bottom: 1px solid var(--wp-border); border-radius: 0; padding: 12px 0; background: transparent; }
html body.wp-next.daily-games-page .dg-leader-group:last-child { border: 0; padding-bottom: 0; }
.dg-leader-group h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 14px; }
.dg-mini-icon { inline-size: 18px; block-size: 18px; flex: none; }
.dg-leader-group ol { margin: 0; padding: 0; list-style: none; }
.dg-leader-group li { display: grid; grid-template-columns: 24px minmax(0,1fr) minmax(0,auto); gap: 8px; padding: 4px 0; font-size: 13px; overflow-wrap: anywhere; }
.dg-winner-reward { color: var(--wp-secondary); text-align: end; }
html body.wp-next .dg-leader-group p { margin: 0; color: var(--wp-muted); font-size: 12px; }
.dg-help-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; font-size: 14px; }
.dg-info dl { display: grid; gap: 12px; margin: 0 0 16px; }
.dg-info dt { font-size: 14px; font-weight: 600; }
.dg-info dd,.dg-faq p { margin: 4px 0 0; font-size: 14px; color: var(--wp-secondary); }
.dg-faq details { border-top: 1px solid var(--wp-border); padding: 11px 0; }
.dg-faq summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.dg-faq > a { margin-top: 10px; }
.dg-message { border: 1px solid var(--wp-border); padding: 12px 16px; border-radius: 8px; background: var(--wp-panel); }
.dg-message.is-error { border-color: var(--wp-accent); }

html body.wp-next.daily-games-page .dg-dialog {
  inline-size: min(720px, calc(100% - 24px));
  max-block-size: calc(100dvh - 24px);
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--wp-border);
  border-radius: 16px;
  background: var(--wp-panel);
  color: var(--wp-text);
  box-shadow: 0 18px 70px #0008;
}
.dg-dialog::backdrop { background: #080709c9; backdrop-filter: blur(4px); overflow: hidden; overscroll-behavior: contain; }
.dg-dialog-head,.dg-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html body.wp-next .dg-dialog-head h2 { margin: 0; font-size: clamp(20px,4vw,28px); line-height: 1.14; }
.dg-dialog-tools { display: flex; gap: 6px; }
html body.wp-next .dg-dialog :is(.dg-sound,.dg-close) { position: relative; display: grid; place-items: center; inline-size: 40px; block-size: 40px; padding: 0; border: 1px solid var(--wp-border); border-radius: 8px; cursor: pointer; }
.dg-sound svg,.dg-close svg { width: 20px !important; height: 20px !important; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.dg-sound.is-muted::after { content: ""; position: absolute; inline-size: 20px; block-size: 2px; background: currentColor; rotate: -45deg; }
html body.wp-next .dg-dialog #dg-dialog-hint { margin: 8px 0 14px; color: var(--wp-secondary); font-size: 14px; line-height: 1.55; }
html body.wp-next.daily-games-page .dg-dialog .dg-game-visual { position: relative; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; min-block-size: 0; overflow: clip; border: 1px solid var(--wp-border); border-radius: 12px; background: var(--wp-bg); margin: 0; }
.dg-dialog-actions { flex-wrap: wrap; margin: 14px 0 0; }
.dg-dialog[data-result=true] .dg-dialog-actions { justify-content: end; }
.dg-modal-message { margin: 10px 0 0; font-size: 13px; }
.dg-modal-message:empty { display: none; }
.dg-subtle { color: var(--wp-secondary); font-size: 12px; }
.dg-dialog[data-result=true] [data-modal-rights] { display: none; }
.dg-dialog .dg-primary { padding: 9px 14px; border: 0; border-radius: 8px; font: inherit; cursor: pointer; }
.dg-chest { margin: 16px; }
.dg-chest.is-spinning { animation: dg-crate-ready .8s ease-in-out infinite alternate; }
@keyframes dg-crate-ready { to { translate: 0 -5px; rotate: -2deg; } }
.dg-case-display { display: grid; place-items: center; width: 100%; background: radial-gradient(ellipse at center,#513c2b,#24201f 70%); color: #eed1aa; }
.dg-case-display > small { padding: 0 12px 16px; font-size: 12px; }
.dg-main svg:is(.dg-game-visual svg,.dg-result-art svg,.dg-mini-icon svg,.dg-reward-art svg) { display: block; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.dg-reel-window { position: relative; display: flex; align-items: center; inline-size: 100%; block-size: 180px; overflow: hidden; }
.dg-reel-window::after { content: ""; position: absolute; inset: 6px auto 6px calc(50% - 1px); inline-size: 2px; background: #d8a763; pointer-events: none; }
.dg-reel { display: flex; gap: 8px; padding-inline-start: 8px; will-change: transform; }
html body.wp-next.daily-games-page .dg-dialog .dg-reel-card { display: grid; justify-items: center; align-content: center; gap: 8px; inline-size: 116px; min-block-size: 138px; padding: 8px; border: 1px solid var(--wp-border); border-radius: 8px; background: var(--wp-panel); color: var(--wp-text); text-align: center; overflow-wrap: anywhere; font-size: 12px; }
html body.wp-next.daily-games-page .dg-dialog .dg-reel-card.is-winner { border-color: #c99454; }
.dg-reel-card svg { inline-size: 48px !important; block-size: 48px !important; color: #c39361; }
.dg-reel-card img { inline-size: 96px; block-size: 54px; object-fit: contain; }

html body.wp-next.daily-games-page .dg-dialog .dg-wheel-wrap { position: relative; inline-size: min(320px,calc(100% - 40px),max(180px,calc(100dvh - 265px))); aspect-ratio: 1; margin: 20px 20px 12px; }
html body.wp-next.daily-games-page .dg-wheel-disc { position: relative; inline-size: 100%; block-size: 100%; border: 6px solid #b28b71; border-radius: 50%; background: repeating-conic-gradient(#ffffff3a 0 1deg,transparent 1deg 45deg),var(--wheel-faces); box-shadow: 0 0 0 4px #342927; }
.dg-wheel-pointer { position: absolute; z-index: 2; top: -9px; left: calc(50% - 9px); border-inline: 9px solid transparent; border-top: 17px solid #f1bd8d; }
html body.wp-next.daily-games-page .dg-dialog .dg-wheel-center { position: absolute; z-index: 1; inset: 50% auto auto 50%; translate: -50% -50%; inline-size: 25%; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #c99d7f; border-radius: 50%; background: #211a1b; color: #fff1e5; }
.dg-wheel-center strong { color: #fff1e5; font-size: clamp(13px,3vw,21px); }
.dg-wheel-label { position: absolute; display: grid; justify-items: center; gap: 2px; inline-size: 24%; color: #fff6eb; text-align: center; }
.dg-wheel-label svg { width: clamp(16px,5vw,26px) !important; height: clamp(16px,5vw,26px) !important; }
.dg-wheel-label img { width: 100%; height: 26px; object-fit: contain; }
html body.wp-next .dg-wheel-label strong { font-size: clamp(7px,1.9vw,10px); line-height: 1.1; color: inherit; overflow-wrap: anywhere; }
.dg-wheel-label small { font-size: 8px; line-height: 1; color: inherit; }
.dg-preview-note { margin: 0 12px 12px; text-align: center; font-size: 11px; }
.dg-mine-area { display: grid; gap: 8px; inline-size: min(100%,380px,max(240px,calc(100dvh - 260px))); padding: 12px; }
.dg-safe-count { font-size: 12px; color: var(--wp-secondary); }
.dg-mines-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
html body.wp-next.daily-games-page .dg-mines-grid button { display: grid; place-items: center; inline-size: 100%; aspect-ratio: 1; min-inline-size: 0; padding: 0; border: 1px solid var(--wp-border); border-radius: 7px; background: var(--wp-raised); color: var(--wp-text); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
html body.wp-next.daily-games-page .dg-mines-grid button:not(:disabled):hover { border-color: #579c7b; }
html body.wp-next.daily-games-page .dg-mines-grid button[aria-pressed=true] { background: #234737; border-color: #467a61; color: #d7f7e3; opacity: 1; }
html body.wp-next.daily-games-page .dg-mines-grid button.is-hit { background: #602d35; border-color: #c27479; color: #ffdddd; opacity: 1; }
.dg-mines-grid button svg { inline-size: 55% !important; block-size: 55% !important; }
.dg-flip { animation: dg-cell-flip .24s ease-out; }
@keyframes dg-cell-flip { from { scale: .85; opacity: .5; } }
.dg-mine-blast { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; background: #321a20f2; color: #ffdce0; text-align: center; }
.dg-blast-icon { inline-size: 54px; block-size: 54px; }
.dg-blast-icon svg { inline-size: 100% !important; block-size: 100% !important; }
html body.wp-next.daily-games-page .dg-dialog .dg-result-screen { display: grid; justify-items: center; gap: 10px; padding: 20px 16px; border: 1px solid var(--wp-border); border-radius: 12px; background: var(--wp-bg); text-align: center; }
.dg-result-screen.is-high { border-color: #b5905f !important; }
.dg-result-screen.is-loss { border-color: #a75461 !important; }
.dg-result-art { display: grid; place-items: center; inline-size: min(100%,132px); block-size: 84px; border-radius: 10px; background: var(--wp-raised); color: #c18d59; }
.dg-result-art svg { inline-size: 58px !important; block-size: 58px !important; }
.dg-result-art img { inline-size: 100%; block-size: 84px; object-fit: contain; }
.dg-result-screen.is-loss .dg-result-art { color: #d4777d; }
html body.wp-next .dg-result-screen h3 { margin: 0; font-size: clamp(20px,4vw,32px); overflow-wrap: anywhere; }
html body.wp-next .dg-result-screen :is(p,small) { margin: 0; color: var(--wp-secondary); font-size: 13px; }

@media(max-width: 900px) {
  .dg-main { inline-size: calc(100% - 40px); }
  .dg-card-content { padding: 14px 16px 16px; }
}
@media(max-width: 690px) {
  .dg-main { padding-block: 20px 28px; }
  .dg-masthead,.dg-grid,.dg-results-layout,.dg-public-details { grid-template-columns: minmax(0,1fr); }
  .dg-masthead { gap: 16px; }
  .dg-masthead-quota { padding: 12px 14px; }
  .dg-masthead-quota > strong { font-size: 32px !important; }
  .dg-card-media { aspect-ratio: 2.3/1; }
  html body.wp-next.daily-games-page .dg-dialog { padding: 12px 14px; }
}
@media(max-width: 440px) {
  .dg-reward-card { grid-template-columns: 38px minmax(0,1fr); }
  .dg-reward-art { inline-size: 38px; }
  .dg-reward-card .dg-delivery { grid-column: 2; grid-row: auto; max-inline-size: none; }
  .dg-dialog-actions { align-items: start; flex-direction: column; }
  .dg-dialog-actions .dg-primary { inline-size: 100%; }
  .dg-mine-area { padding: 10px; }
}
@media(prefers-reduced-motion: reduce) {
  .dg-main * { animation: none !important; transition: none !important; }
  .dg-card:hover,.dg-card:focus-within { translate: none; }
}
