/* Lucky Current: an Atlantean ruin under electric-blue water. Deep abyss navy to aqua glow, polished gold, pearl
   nacre, rising bubbles, caustic light and god-rays from above. Text is live (no words in art), min 12px, wraps
   anywhere. System fonts only. Motion is transform/opacity; [data-lite] and prefers-reduced-motion switch the
   expensive parts off. Result effects hang off [data-celebrate] only, which the view sets for prizes above the stake. */
:root {
  --dl-night: #020a1c; --dl-indigo: #06265a; --dl-teal: #27d9ff; --dl-coral: #5ee9ff; --dl-amber: #ffb52e;
  --dl-gold: #ffd979; --dl-text: #f4f7ff; --dl-muted: #a6c8e8; --dl-foam: #e8fdff; --dl-pearl: #f3f0ff;
  --dl-display: "Avenir Next Condensed", "Arial Rounded MT Bold", "Trebuchet MS", "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dl-glass: linear-gradient(160deg, rgba(80,200,255,.2), rgba(3,26,66,.58));
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--dl-night); color: var(--dl-text); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
.dl { position: fixed; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px 4px; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; background: var(--dl-night); }
.dl > .dl-head, .dl > .dl-stage { position: relative; z-index: 1; }

/* scene: art, water fog, caustics, god-rays from above, rising bubbles. Pointer / tilt parallax through --px / --py. */
.dl-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dl-sky { position: absolute; inset: -6%; background:
  linear-gradient(180deg, rgba(2,10,30,.5) 0%, rgba(2,10,30,.05) 38%, rgba(2,10,30,.7) 100%),
  radial-gradient(120% 70% at 50% 100%, rgba(39,217,255,.3), transparent 60%),
  var(--dl-bg, none) center / cover no-repeat,
  linear-gradient(#020a1c, #04306a 55%, #0a5a9a);
  translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -8px); }
.dl-fog { position: absolute; width: 140%; height: 46%; left: -20%; opacity: .5; }
.dl-fog-a { top: 8%; background: radial-gradient(50% 50% at 30% 50%, rgba(39,217,255,.24), transparent 70%), radial-gradient(40% 40% at 78% 40%, rgba(60,120,255,.24), transparent 70%); animation: dl-drift 34s ease-in-out infinite alternate; translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 12px); }
.dl-fog-b { bottom: 4%; background: radial-gradient(45% 50% at 62% 55%, rgba(30,160,255,.22), transparent 70%), radial-gradient(40% 45% at 18% 40%, rgba(255,200,90,.1), transparent 70%); animation: dl-drift 46s ease-in-out -12s infinite alternate-reverse; translate: calc(var(--px, 0) * 38px) calc(var(--py, 0) * 20px); }
.dl-god { position: absolute; left: 50%; top: 0; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; opacity: .34; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(150,245,255,.55) 0 2.5deg, transparent 2.5deg 11deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, transparent 56%); mask-image: radial-gradient(closest-side, #000 0%, transparent 56%);
  animation: dl-sway 16s ease-in-out infinite alternate; }
.dl-caustics { position: absolute; inset: -10%; opacity: .3; mix-blend-mode: screen;
  background: repeating-radial-gradient(circle at 28% 22%, transparent 0 20px, rgba(150,240,255,.28) 24px, transparent 30px),
    repeating-radial-gradient(circle at 72% 58%, transparent 0 26px, rgba(120,220,255,.24) 30px, transparent 38px);
  animation: dl-caustic 11s ease-in-out infinite alternate; translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 10px); }
.dl-ambient { position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; }

/* header */
.dl-head { width: min(100%, 460px); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; }
.dl-title { margin: 0; flex: 1 1 auto; white-space: nowrap; font: 900 27px/1.1 var(--dl-display); letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff7d1 0%, #ffd262 48%, #ff8f2a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(39,217,255,.7)) drop-shadow(0 2px 0 rgba(60,25,0,.75)); }
.dl-badge { order: 3; flex: 1 1 100%; text-align: center; padding: 3px 10px; border-radius: 999px; background: rgba(2,14,40,.6); border: 1px solid var(--dl-teal); font-size: 13px; }

/* buttons: glass for the quiet ones, a bevelled metal pill for the main action */
.dl-btn { position: relative; white-space: nowrap; min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(130,220,255,.4); background: var(--dl-glass); cursor: pointer; font-weight: 700; font-size: 15px; letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 10px rgba(0,0,10,.4); transition: transform .08s ease, filter .15s; }
.dl-btn:disabled { opacity: .45; cursor: default; }
.dl-btn:active:not(:disabled) { transform: translateY(2px) scale(.98); }
.dl-btn-quiet { background: rgba(2,14,40,.5); }
.dl-btn-main, #gm-play { min-height: 52px; min-width: 200px; padding: 0 28px; border-radius: 999px; border: 1px solid #fff0b0; color: #3a1800; font-weight: 900; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.55);
  background: linear-gradient(180deg, #fff3bd 0%, #ffd25a 20%, #ffa51f 55%, #d9700a 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -4px 8px rgba(130,50,0,.55), inset 0 0 14px rgba(255,255,255,.25), 0 4px 0 #8a4308, 0 10px 22px rgba(255,140,30,.35); }
.dl-btn-main:active:not(:disabled), #gm-play:active:not(:disabled) { transform: translateY(3px) scale(.985); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -2px 6px rgba(130,50,0,.5), 0 1px 0 #8a4308, 0 4px 10px rgba(255,140,30,.3); }
.dl-btn-main:disabled, #gm-play:disabled { filter: saturate(.45) brightness(.8); }
.dl-btn-main::before, #gm-play::before { content: ""; position: absolute; inset: -7px; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgba(255,190,60,.55), transparent 80%); }
.dl-btn-main::after, #gm-play::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.65) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat; }
.dl-btn-main:not(:disabled)::before, #gm-play:not(:disabled)::before { animation: dl-halo 2.4s ease-in-out infinite; }
.dl-btn-main:not(:disabled)::after, #gm-play:not(:disabled)::after { animation: dl-btnsheen 3.4s ease-in-out infinite; }
.dl-btn:focus-visible, .dl-cellbtn:focus-visible { outline: 3px solid var(--dl-teal); outline-offset: 2px; }
.dl-stage { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* the card: perspective tilt wrapper, a soft glow behind, a gloss that follows the light */
.dl-tilt { --card: 300px; position: relative; width: var(--card); height: var(--card); flex: 0 0 auto; perspective: 900px; }
.dl-glow { position: absolute; inset: -14%; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(39,217,255,.6), rgba(30,120,255,.32) 50%, rgba(120,240,255,.12) 72%, transparent 100%);
  animation: dl-glowing 5.5s ease-in-out infinite alternate; translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -6px); }
.dl-card { position: relative; width: var(--card); height: var(--card); border-radius: 20px; background: linear-gradient(145deg, #0b3a7a, #02122e); transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  box-shadow: 0 14px 36px rgba(0,6,24,.7), 0 0 0 1px rgba(255,217,121,.4), 0 0 28px rgba(39,217,255,.45), inset 0 0 0 2px rgba(255,255,255,.1); overflow: hidden; animation: dl-breathe 5.5s ease-in-out infinite alternate; }
.dl-card::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 28%), rgba(255,255,255,.2), transparent 46%); }
.dl-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.dl-cells { position: absolute; inset: 0; pointer-events: none; }
.dl-cell { position: absolute; border-radius: 12%; }
.dl-sym-holder { position: absolute; inset: 7%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.dl-sym { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.dl-cell--open .dl-sym { animation: dl-pop .46s cubic-bezier(.2, 1.7, .4, 1); }
.dl-cell--open::before { content: ""; position: absolute; inset: -6%; border-radius: 16%; pointer-events: none; z-index: 2; box-shadow: 0 0 22px 5px rgba(120,235,255,.8), inset 0 0 18px rgba(255,255,255,.5); opacity: 0; animation: dl-flash .55s ease-out; }
.dl-cellbtn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; pointer-events: none; border-radius: 12%; }
/* a prize cell at rest: gold outline; at or below the stake the same cells get a plain neutral outline, nothing warm */
.dl-cell--match { box-shadow: inset 0 0 0 3px var(--dl-amber), 0 0 12px rgba(255,181,46,.55); background: rgba(255,181,46,.14); }
.dl[data-tier="push"] .dl-cell--match, .dl[data-tier="none"] .dl-cell--match { box-shadow: inset 0 0 0 2px rgba(220,230,255,.55); background: none; }
.dl-cell--shine { animation: dl-glow 1s ease-in-out infinite alternate; }
.dl-cell--shine .dl-sym { animation: dl-symglow 1s ease-in-out infinite alternate; }
.dl-cell--shine::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: linear-gradient(100deg, transparent 38%, rgba(255,250,220,.75) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat; animation: dl-cellsweep 1.3s ease-in-out infinite; }
/* the bright outline that runs around a winning cell */
.dl-ring { position: absolute; inset: -4px; border-radius: 15%; padding: 5px; overflow: hidden; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .25s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.dl-ring i { position: absolute; inset: -70%; background: conic-gradient(from 0deg, transparent 0 50%, rgba(255,214,90,.5) 66%, #fffbe0 82%, #ffd25a 90%, transparent 100%); animation: dl-spin 1.5s linear infinite; }
.dl-cell--shine .dl-ring { opacity: 1; }
.dl[data-celebrate="max"] .dl-ring i { animation-duration: .9s; }
/* foil life: a sheen sweeping the covered cells in a diagonal wave (the same on every cell) */
.dl-sheens, .dl-glints { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dl-sheen { position: absolute; overflow: hidden; border-radius: 12%; }
.dl-sheen i { position: absolute; top: -20%; bottom: -20%; left: 0; width: 42%; background: linear-gradient(100deg, transparent, rgba(200,250,255,.55) 40%, rgba(255,225,250,.55) 60%, transparent); transform: translateX(-170%) skewX(-18deg); animation: dl-foil 4s ease-in-out calc(var(--d, 0) * .24s) infinite; }
.dl-sheen--off { display: none; }
.dl-sand { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.dl[data-phase="open"] .dl-sand { cursor: crosshair; }
.dl-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dl-tide { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(39,217,255,.2) 0%, rgba(4,60,150,.65) 55%, rgba(232,253,255,.9) 100%); }
.dl-tide::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: radial-gradient(circle at 10px 0, transparent 9px, rgba(232,253,255,.9) 10px) 0 0 / 20px 10px repeat-x; }
.dl-intro .dl-tide { opacity: 1; animation: dl-tide-out 1.7s ease-in-out forwards; }

/* result plate: dark glass; colour and glow only for prizes above the stake */
.dl-result, .dl-rules-panel { background: var(--dl-glass); border: 1px solid rgba(130,220,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 24px rgba(0,8,30,.5); }
.dl-result { width: min(100%, 440px); min-height: 84px; padding: 8px 14px; border-radius: 18px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 2px; position: relative; transition: border-color .3s, box-shadow .3s; }
/* idle: no line (8 Nov 2026), so no empty plate either; it keeps its place */
.dl-result:not(:has(.dl-result-head:not(:empty), .dl-result-sub:not(:empty))) { visibility: hidden; }
.dl-result-head { font: 800 18px/1.2 var(--dl-display); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.dl-result-sub { font-size: 14px; color: var(--dl-muted); font-variant-numeric: tabular-nums; }
.dl-skip { font-size: 13px; color: var(--dl-muted); }
.dl-skip[hidden] { display: block; visibility: hidden; }
.dl-error[hidden], .dl-rules[hidden], .dl-badge[hidden], .dl-btn[hidden] { display: none; }
.dl-result[data-tier="push"] .dl-result-head, .dl-result[data-tier="none"] .dl-result-head { font-weight: 600; color: var(--dl-muted); }
.dl-result[data-tier="small"] { border-color: var(--dl-amber); }
.dl-result[data-tier="small"] .dl-result-head { color: var(--dl-gold); text-shadow: 0 0 10px rgba(255,181,46,.6); }
.dl-result[data-tier="medium"] { border-color: var(--dl-amber); box-shadow: 0 0 22px rgba(255,181,46,.5), inset 0 0 18px rgba(255,181,46,.14); }
.dl-result[data-tier="medium"] .dl-result-head { font-size: 21px; color: var(--dl-gold); text-shadow: 0 0 14px rgba(255,181,46,.85); }
.dl-result[data-tier="big"] { border-color: #8ff3ff; box-shadow: 0 0 30px rgba(60,220,255,.7), inset 0 0 22px rgba(60,220,255,.2); }
.dl-result[data-tier="big"] .dl-result-head { font-size: 24px; color: #ffe2b0; text-shadow: 0 0 18px rgba(80,225,255,.95), 0 2px 0 rgba(0,30,70,.7); }
.dl-result[data-tier="max"] { border-color: #fff1bf; background: linear-gradient(160deg, rgba(255,200,90,.3), rgba(60,30,10,.7)); box-shadow: 0 0 44px rgba(255,214,120,.9), inset 0 0 26px rgba(255,230,160,.3); }
.dl-result[data-tier="max"] .dl-result-head { font-size: 28px; color: #fff6cf; text-shadow: 0 0 22px rgba(255,200,80,1), 0 0 4px #fff, 0 3px 0 rgba(110,50,0,.7); }
.dl-error { width: min(100%, 440px); padding: 8px 12px; border-radius: 12px; background: #3a1230; border: 1px solid #ff8aa0; font-size: 14px; text-align: center; }

/* win layers: full-screen bloom, edge light rays, coin and gem canvas. Dark unless a prize above the stake is playing. */
.dl-winfx { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.dl-burst { position: absolute; left: 0; top: 0; }
.dl-bloom { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; transition: opacity .9s ease-out; background: radial-gradient(circle at 50% 38%, rgba(255,226,140,.7), rgba(255,150,40,.3) 35%, transparent 65%); }
.dl-rays { position: absolute; left: 50%; top: 40%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; opacity: 0; mix-blend-mode: screen; transition: opacity .9s ease-out;
  background: repeating-conic-gradient(from 0deg, rgba(255,226,150,.7) 0 3.5deg, transparent 3.5deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 24%, #000 62%, #000 100%); mask-image: radial-gradient(closest-side, transparent 24%, #000 62%, #000 100%); animation: dl-spin 26s linear infinite; }
.dl[data-celebrate="small"] .dl-bloom { opacity: .15; }
.dl[data-celebrate="medium"] .dl-bloom { opacity: .26; animation: dl-bpulse 1.4s ease-in-out infinite alternate; }
.dl[data-celebrate="big"] .dl-bloom { opacity: .4; animation: dl-bpulse 1.1s ease-in-out infinite alternate; }
.dl[data-celebrate="big"] .dl-rays { opacity: .5; }
.dl[data-celebrate="max"] .dl-bloom { opacity: .55; animation: dl-flash-in .7s ease-out, dl-bpulse 1.2s .7s ease-in-out infinite alternate; }
.dl[data-celebrate="max"] .dl-rays { opacity: .65; animation-duration: 14s; }
.dl[data-celebrate="big"] .dl-glow, .dl[data-celebrate="max"] .dl-glow { background: radial-gradient(closest-side, rgba(255,200,80,.75), rgba(60,220,255,.45) 55%, transparent 100%); }

/* rules */
.dl-rules { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(1,6,22,.8); }
.dl-rules-panel { width: min(100%, 460px); max-height: 100%; overflow-y: auto; padding: 16px 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(8,70,140,.96), rgba(2,18,52,.98)); border-color: rgba(255,217,121,.45); }
.dl-rules-panel h2 { margin: 0 0 6px; font: 900 22px/1.2 var(--dl-display); letter-spacing: .08em; text-transform: uppercase; color: var(--dl-gold); text-shadow: 0 0 12px rgba(255,170,50,.5); }
.dl-rules-panel h3 { margin: 12px 0 6px; font-size: 15px; }
.dl-rules-steps { margin: 0; padding-left: 20px; font-size: 14px; }
.dl-rules-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dl-fact { padding: 4px 12px; border-radius: 999px; background: rgba(255,181,46,.14); border: 1px solid rgba(255,181,46,.55); font-weight: 800; font-size: 14px; }
.dl-note { margin: 8px 0 0; font-size: 13px; color: var(--dl-muted); }
.dl-prizes { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dl-prizes th, .dl-prizes td { padding: 5px 6px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }
.dl-prizes th { color: var(--dl-muted); font-weight: 600; }
.dl-rules-panel .dl-btn-main { margin-top: 12px; width: 100%; }

/* the stand-in bar of the local demo (the real RGS bar is the platform's own): same night glass */
.gm-bar { background: linear-gradient(180deg, rgba(4,40,90,.96), rgba(1,10,34,.98)) !important; border-top: 1px solid rgba(255,217,121,.4) !important; }
.gm-btn:not(#gm-play) { background: rgba(40,150,230,.26) !important; border-color: rgba(130,220,255,.4) !important; color: var(--dl-text) !important; border-radius: 12px !important; }
#gm-play { min-width: 0; flex: 1 1 40%; padding: 0 12px; }
/* a phone on its side: PLAY its own width, so the bar stays one row and the card above it (Gate B, 667×375, 9 Nov 2026:
   the bar wrapped to 190 px and the card's foot went under it) */
@media (min-width: 601px) and (max-height: 500px) { #gm-play { flex: 0 0 auto; padding: 0 22px; } }

@keyframes dl-drift { from { transform: translateX(-4%) scale(1); } to { transform: translateX(5%) scale(1.08); } }
@keyframes dl-spin { to { transform: rotate(360deg); } }
@keyframes dl-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes dl-caustic { from { transform: translate(-3%, -2%) scale(1); } to { transform: translate(3%, 2%) scale(1.12); } }
@keyframes dl-glowing { from { opacity: .6; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
@keyframes dl-breathe { from { scale: 1; } to { scale: 1.012; } }
@keyframes dl-halo { 0%, 100% { opacity: 0; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes dl-btnsheen { 0%, 40% { opacity: 1; background-position: 160% 0; } 80%, 100% { opacity: 1; background-position: -60% 0; } }
@keyframes dl-foil { 0% { transform: translateX(-170%) skewX(-18deg); } 38%, 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes dl-pop { 0% { transform: scale(.7); filter: brightness(2); } 60% { transform: scale(1.1); filter: brightness(1.3); } 100% { transform: scale(1); filter: none; } }
@keyframes dl-flash { 0% { opacity: .95; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.14); } }
@keyframes dl-glow { from { box-shadow: inset 0 0 0 3px var(--dl-amber), 0 0 8px rgba(255,181,46,.4); } to { box-shadow: inset 0 0 0 3px #fff0b0, 0 0 30px 6px rgba(255,214,110,.95); } }
@keyframes dl-symglow { from { filter: drop-shadow(0 0 4px rgba(255,200,90,.6)); } to { filter: drop-shadow(0 0 14px rgba(255,230,140,1)) brightness(1.15); } }
@keyframes dl-cellsweep { 0% { background-position: 160% 0; } 70%, 100% { background-position: -60% 0; } }
@keyframes dl-tide-out { 0% { transform: translateY(0); } 100% { transform: translateY(104%); } }
@keyframes dl-bpulse { from { filter: brightness(.75); } to { filter: brightness(1.1); } }
@keyframes dl-flash-in { from { opacity: .95; } to { opacity: .55; } }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .dl:not([data-lite]) .dl-result, .dl:not([data-lite]) .dl-btn:not(.dl-btn-main), .dl:not([data-lite]) .dl-badge { -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
}
/* low-end: still, flat, cheap */
.dl[data-lite] .dl-god, .dl[data-lite] .dl-caustics, .dl[data-lite] .dl-fog, .dl[data-lite] .dl-rays, .dl[data-lite] .dl-glow, .dl[data-lite] .dl-card { animation: none; }
.dl[data-lite] .dl-sheen i { animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) {
  .dl *, .dl *::before, .dl *::after { animation: none !important; transition: none !important; }
  .dl-tide, .dl-sheens, .dl-glints, .dl-ring, .dl-god, .dl-rays { display: none; }
  .dl-sky, .dl-fog, .dl-caustics, .dl-glow, .dl-card { translate: none; }
}
@media (max-height: 560px) { .dl-title { font-size: 21px; } .dl-result { min-height: 56px; } }

/* landscape (view.js fit sets .dl-wide): the card left at full height; title and result to its right */
.dl.dl-wide { display: grid; grid-template-columns: auto minmax(220px, 420px); grid-template-rows: auto 1fr; grid-template-areas: "card head" "card side";
  justify-content: center; align-items: center; column-gap: 20px; padding: 10px 16px; }
.dl.dl-wide > .dl-head { grid-area: head; width: 100%; align-self: end; }
.dl.dl-wide > .dl-stage { display: contents; }
.dl.dl-wide > .dl-stage > .dl-tilt { grid-area: card; align-self: center; }
.dl.dl-wide > .dl-stage > .dl-error, .dl.dl-wide > .dl-stage > .dl-result { grid-column: 2; }
.dl.dl-wide > .dl-stage > .dl-result { grid-row: 2; align-self: start; width: 100%; }
