/* ──────────────────────────────────────────────────────────────────────────
   1950s DINER, "Run the soda fountain" (ages/diner50.js). Everything is in em of one root unit (--u, set by the script):
   wide stage 1em = 1% of the width, upright phone 1em = 2% (and the stage is taller, see #stage.df-on.tall).
   Pastel pink + mint enamel, chrome trim, a paper guest check per customer, enamel tiles on the counter.
   ────────────────────────────────────────────────────────────────────────── */
#stage.df-on.tall { aspect-ratio: 1000 / 1700; width: min(100%, calc((100dvh - 16px) * 1000 / 1700)); }
.df-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.df-root { position: absolute; inset: 0; overflow: hidden; font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-size: var(--u, 8px); color: #3b2418; --t: 56px;
  -webkit-user-select: none; user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
.df-root *, .df-root *::before, .df-root *::after { box-sizing: border-box; }
.df-root svg { display: block; overflow: visible; }
.df-ic { width: 100%; height: 100%; }
.df-root button { font-family: inherit; }
.df-paused .df-seat, .df-paused .df-tiles, .df-paused .df-side { pointer-events: none; }

/* ── the room ── */
.df-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #f9c4d2 0%, #f7a6bd 100%); overflow: hidden; }
.df-bgimg { position: absolute; left: 0; top: -4%; width: 100%; height: auto; max-width: none; pointer-events: none; }
.df-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 14, 44, .22) 0%, rgba(40, 14, 44, 0) 14%, rgba(40, 14, 44, 0) 40%, rgba(70, 24, 60, .32) 48%); }
.df-jglow { position: absolute; transform: translate(-50%, -50%); border-radius: 40% 40% 30% 30%; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, .55), var(--sg, #ffcf5a) 35%, transparent 70%); mix-blend-mode: screen; z-index: 1; }
.df-jglow.on { opacity: .95; animation: dfGlow 1.1s ease-in-out infinite; }
@keyframes dfGlow { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.12); } }

/* ── the HUD ── */
.df-hud { position: absolute; z-index: 6; top: 1.1%; right: 1.4%; left: 36%; height: 6.8%; display: flex; gap: .6em; align-items: stretch; justify-content: flex-end; }
.df-hud > div { display: flex; align-items: center; gap: .6em; padding: 0 .9em; border-radius: 1.1em; background: linear-gradient(180deg, #fffaf3, #ffdfe9); box-shadow: 0 .3em 0 #c9718f, 0 .5em .9em rgba(80, 20, 60, .35), inset 0 0 0 .2em #fff; }
.df-round { flex-direction: row; }
.df-rk { font: 700 max(12px, 1.2em)/1 Fredoka; letter-spacing: .05em; color: #8f2f52; white-space: nowrap; }
.df-rk b { font: 400 max(15px, 1.4em)/1 'Lilita One'; color: #3b2418; }
.df-rname { display: none; font: 400 max(14px, 1.6em)/1 'Lilita One'; color: #c42b46; white-space: nowrap; }
.df-pips { display: flex; gap: .35em; }
.df-pips i { width: 1.1em; height: 1.1em; border-radius: 50%; background: rgba(120, 60, 90, .22); box-shadow: inset 0 0 0 .13em rgba(120, 60, 90, .45); }
.df-pips i.now { background: #ffd24a; box-shadow: inset 0 0 0 .13em #b88a12; }
.df-pips i.ok { background: #4fcf8a; box-shadow: inset 0 0 0 .13em #1f8a52; }
.df-pips i.no { background: #ff6b6b; box-shadow: inset 0 0 0 .13em #a82a2a; }
.df-score { gap: .6em; }
.df-sl { font: 700 max(12.3px, 1.05em)/1 Fredoka; letter-spacing: .06em; color: #8f2f52; }
.df-sv { font: 400 max(19px, 2.1em)/1 'Lilita One'; color: #3b2418; min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }
.df-nick { gap: .4em; }
.df-nick[hidden] { display: none; }
.df-nick svg { width: max(16px, 2em); height: max(16px, 2em); }
.df-nick b { font: 400 max(17px, 1.9em)/1 'Lilita One'; }
.df-nick span { display: none; }                                   /* the coin and the number say it; the jukebox card says what a nickel is for */
.df-nick.hit { animation: dfHit .5s; }
.df-open { background: linear-gradient(180deg, #2c1b45, #1b0f30) !important; box-shadow: 0 .3em 0 #0e0820, 0 .5em .9em rgba(30, 5, 50, .5), inset 0 0 0 .22em #3fe8cf, inset 0 0 1.2em rgba(63, 232, 207, .45) !important; }
.df-neon { font: 400 max(17px, 2em)/1 'Lilita One'; letter-spacing: .06em; color: #ff7cb5; text-shadow: 0 0 .25em #ff3b94, 0 0 .7em #ff3b94, 0 0 1.4em rgba(255, 59, 148, .7); animation: dfNeon 4.2s infinite; }
.df-open.closed .df-neon { color: #c9b8e6; text-shadow: none; animation: none; }
.df-open.fin .df-neon { color: #7dffe6; text-shadow: 0 0 .25em #1be8c0, 0 0 .8em #1be8c0; }
@keyframes dfNeon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
.df-rep { display: flex; gap: .2em; }
.df-rep i { width: 1.8em; height: 1.8em; opacity: .35; filter: grayscale(.9); transition: .2s; }
.df-rep i.on { opacity: 1; filter: none; }
.df-rep i svg { width: 100%; height: 100%; }
.df-open.hit { animation: dfHit .6s; }

/* ── the counter top and the seats ── */
.df-counter { position: absolute; left: 0; right: 0; top: 52%; height: 15%; z-index: 2; background:
  radial-gradient(ellipse 14% 80% at 18% 55%, rgba(255, 255, 255, .34), transparent 70%), radial-gradient(ellipse 10% 70% at 46% 55%, rgba(255, 255, 255, .28), transparent 70%), radial-gradient(ellipse 12% 80% at 78% 55%, rgba(255, 255, 255, .3), transparent 70%),
  linear-gradient(180deg, #ffd7e1 0%, #fbb8cb 55%, #f08fae 100%); box-shadow: 0 .4em 1em rgba(70, 20, 60, .4); }
.df-cedge { position: absolute; left: 0; right: 0; top: -.9em; height: 1.3em; background: linear-gradient(180deg, #ffffff 0, #dfe6ee 22%, #8f9baa 46%, #eef2f6 62%, #9aa6b3 82%, #cdd6df 100%); box-shadow: 0 .15em .3em rgba(60, 20, 60, .35); }
.df-cedge2 { position: absolute; left: 0; right: 0; bottom: -.5em; height: 1em; background: linear-gradient(180deg, #ffffff 0, #d6dee7 25%, #7f8c9b 55%, #e6ecf1 100%); box-shadow: 0 .25em .5em rgba(60, 20, 60, .35); z-index: 1; }
.df-dining { position: absolute; left: 0; right: 0; top: 8%; height: 59%; z-index: 3; pointer-events: none; }
.df-seat { position: absolute; top: 0; height: 100%; width: 15.2%; transform: translateX(-50%); pointer-events: auto; cursor: pointer; }
.df-seat.df-off { opacity: .28; pointer-events: none; }
.df-stool { position: absolute; left: 50%; bottom: 25%; width: 78%; transform: translateX(-50%); display: none; overflow: hidden; z-index: 0; filter: drop-shadow(0 .3em .3em rgba(60, 20, 50, .3)); }
.df-empty .df-stool { display: block; }
.df-stoolart { width: 100%; height: auto; overflow: hidden !important; }
.df-guest { position: absolute; inset: 0 0 25% 0; }
.df-person { position: absolute; left: 50%; top: 5.2%; height: 28%; aspect-ratio: 1 / 1; transform: translateX(-50%); transform-origin: 50% 100%; z-index: 1; }
.df-bust { width: 100%; height: 100%; filter: drop-shadow(0 .25em .2em rgba(60, 20, 50, .35)); }
.df-f { display: none; }
.df-seat[data-mood="0"] .df-f0, .df-seat[data-mood="1"] .df-f2, .df-seat.df-angry .df-f3 { display: block; } .df-seat.df-angry .df-f2 { display: none; }
.df-seat.df-angry .df-person::before, .df-seat.df-angry .df-person::after { content: ''; position: absolute; top: 6%; width: 22%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: dfSteam 1s ease-out infinite; }
.df-seat.df-angry .df-person::before { left: -6%; } .df-seat.df-angry .df-person::after { right: -6%; animation-delay: .4s; }
@keyframes dfSteam { 0% { transform: translateY(0) scale(.5); opacity: .9; } 100% { transform: translateY(-1.6em) scale(1.3); opacity: 0; } }
.df-quip { position: absolute; left: 50%; bottom: calc(100% + 2em); transform: translateX(-50%) scale(0); transform-origin: 50% 100%; white-space: nowrap; opacity: 0; z-index: 8; pointer-events: none;
  background: #fff; border: .22em solid #3b2418; border-radius: 1em; padding: .3em .8em; font: 700 max(12.5px, 1.3em)/1.1 Fredoka; color: #3b2418; box-shadow: 0 .25em 0 rgba(60, 20, 50, .3); }
.df-quip::after { content: ''; position: absolute; left: 50%; top: 100%; width: .8em; height: .8em; background: #fff; border: solid #3b2418; border-width: 0 .22em .22em 0; transform: translate(-50%, -55%) rotate(45deg); }
.df-quip.on { animation: dfQuip 2s forwards; }
@keyframes dfQuip { 0% { transform: translateX(-50%) scale(0); opacity: 0; } 12% { transform: translateX(-50%) scale(1.1); opacity: 1; } 20%, 80% { transform: translateX(-50%) scale(1); opacity: 1; } 100% { transform: translateX(-50%) scale(.9); opacity: 0; } }

/* the paper guest check */
.df-ticket { position: absolute; left: 1.5%; right: 1.5%; top: 28%; z-index: 2; padding: .5em .5em .55em; border-radius: .5em; border-top: .7em solid var(--sc, #ff8fb0);
  background: linear-gradient(180deg, #fffef7, #fbf0d8); box-shadow: 0 .35em .9em rgba(60, 20, 50, .38), inset 0 0 0 .14em rgba(255, 255, 255, .8); transform: rotate(-.8deg); transition: box-shadow .2s, transform .2s; }
.df-seat:nth-child(even) .df-ticket { transform: rotate(.9deg); }
.df-ticket::before { content: ''; position: absolute; left: 50%; top: -1.15em; width: 1.5em; height: 1.5em; margin-left: -.75em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--sc, #ff8fb0) 45%, #7a2c4a); box-shadow: 0 .15em .2em rgba(0, 0, 0, .35); }
.df-empty .df-ticket { display: none; }
.df-tk-h { display: flex; align-items: center; justify-content: space-between; gap: .3em; margin-bottom: .1em; }
.df-tk-n { font: 400 max(13px, 1.55em)/1 'Lilita One'; color: #3b2418; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-vip { display: inline-flex; align-items: center; gap: .15em; background: linear-gradient(180deg, #ffe27a, #f4b52a); border-radius: .8em; padding: .12em .5em .12em .3em; box-shadow: inset 0 0 0 .13em #b9801a; }
.df-vip svg { width: 1.2em; height: 1.2em; } .df-vip i { font: 700 max(12.3px, .9em)/1 Fredoka; font-style: normal; color: #6a3d00; letter-spacing: .05em; }
.df-hbar { position: absolute; left: 50%; bottom: 100%; width: 9.4em; transform: translateX(-50%); margin-bottom: .2em; z-index: 3; filter: drop-shadow(0 .15em .15em rgba(60, 20, 50, .45)); }
.df-hearts { width: 100%; height: auto; }
.df-it { margin-top: .25em; padding-top: .25em; border-top: .13em dashed rgba(120, 70, 50, .35); }
.df-it:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.df-it-h { display: flex; align-items: center; gap: .4em; margin-bottom: .2em; }
.df-spr { height: 2.5em; width: 2.9em; object-fit: contain; filter: drop-shadow(0 .15em .1em rgba(60, 20, 40, .35)); flex: none; }
.df-it-n { font: 700 max(12.3px, 1.2em)/1.05 Fredoka; color: #9a3558; }
.df-mods { display: flex; flex-wrap: wrap; gap: .25em; margin: .1em 0 .25em; }
.df-mod { background: #c92338; color: #fff; font: 700 max(11.8px, .95em)/1.05 Fredoka; letter-spacing: .03em; border-radius: .4em; padding: .22em .45em; box-shadow: 0 .12em 0 #9c1f2e; animation: dfPulse 1.6s ease-in-out infinite; }
.df-ln { list-style: none; margin: 0; padding: 0; }
.df-ln li { position: relative; display: flex; align-items: center; gap: .35em; height: max(15px, 1.55em); font: 700 max(12.3px, 1.18em)/1 Fredoka; color: #3b2418; white-space: nowrap; }
.df-ln li em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: clip; }
.df-lic { width: max(13px, 1.5em); height: max(13px, 1.5em); flex: none; position: relative; }
.df-ck { position: absolute; left: -.1em; top: 50%; width: max(13px, 1.5em); height: max(13px, 1.5em); margin-top: calc(max(13px, 1.5em) / -2); z-index: 1; opacity: 0; pointer-events: none;
  background: #35b86b; border-radius: 50%; box-shadow: 0 0 0 .13em #fff; }
.df-ck::after { content: ''; position: absolute; left: 32%; top: 14%; width: 28%; height: 52%; border: solid #fff; border-width: 0 .22em .22em 0; transform: rotate(45deg); }
.df-ln li.done { opacity: .62; } .df-ln li.done em { text-decoration: line-through; text-decoration-thickness: .13em; } .df-ln li.done .df-ck { opacity: 1; }
.df-ln li.next { background: linear-gradient(90deg, rgba(255, 210, 74, .55), rgba(255, 210, 74, 0)); border-radius: .4em; margin-left: -.3em; padding-left: .3em; }
.df-ln li.busy { background: linear-gradient(90deg, rgba(95, 200, 255, .45), rgba(95, 200, 255, 0)); border-radius: .4em; margin-left: -.3em; padding-left: .3em; }
.df-clk { width: 1.1em; height: 1.1em; flex: none; opacity: .75; } .df-clk svg { width: 100%; height: 100%; }
.df-it.fin .df-ln { display: none; }
.df-seat.df-long .df-ln li { height: max(13.2px, 1.42em); font-size: max(11.5px, 1.12em); } .df-seat.df-long .df-ticket { top: 26%; }
.df-seat.df-sel .df-ticket { box-shadow: 0 0 0 .4em #ffd24a, 0 0 1.6em .6em rgba(255, 210, 74, .65), 0 .35em .9em rgba(60, 20, 50, .38); transform: rotate(0deg) translateY(-.2em); }
.df-seat.df-sel .df-ticket::after { content: 'MAKING'; position: absolute; right: .4em; top: -1.5em; font: 700 max(11.4px, .95em)/1 Fredoka; letter-spacing: .08em; color: #6a3d00; background: #ffd24a; border-radius: .6em; padding: .2em .55em; box-shadow: 0 .15em 0 #b9801a; }
.df-seat.df-up-on .df-ticket { box-shadow: 0 0 0 .4em #4fe39a, 0 0 1.6em .6em rgba(79, 227, 154, .7), 0 .35em .9em rgba(60, 20, 50, .38); }
.df-seat.df-low .df-ticket { animation: dfWorry 1.3s ease-in-out infinite; }
@keyframes dfWorry { 50% { transform: rotate(.8deg) translateX(.12em); } }

/* the slot on the counter: where this customer's order is built */
.df-slot { position: absolute; left: 0; right: 0; top: 76.5%; bottom: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; }
.df-slot::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 2%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); box-shadow: 0 0 0 .2em color-mix(in srgb, var(--sc) 55%, transparent); opacity: .85; }
.df-empty .df-slot::before { opacity: .35; box-shadow: none; }
.df-seat.df-sel .df-slot::before { box-shadow: 0 0 0 .3em #ffd24a, 0 0 1.4em .4em rgba(255, 210, 74, .75); opacity: 1; }
.df-cells { position: relative; display: flex; gap: .2em; align-items: flex-end; justify-content: center; height: 126%; width: 100%; margin-bottom: 1%; }
.df-cell { position: relative; height: 100%; aspect-ratio: 1 / 1; max-width: 100%; }
.df-two .df-cell { height: auto; width: 49%; }
.df-glassart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; filter: drop-shadow(0 .3em .25em rgba(60, 20, 50, .35)); }
.df-cell.busy .df-glassart { opacity: .4; filter: saturate(.4) drop-shadow(0 .3em .25em rgba(60, 20, 50, .35)); }
.df-spr-big { position: absolute; left: 0; bottom: 4%; width: 100%; height: 94%; object-fit: contain; filter: drop-shadow(0 .35em .3em rgba(60, 20, 50, .45)); }
.df-cell.df-reveal .df-spr-big { animation: dfReveal .6s cubic-bezier(.2, 1.6, .4, 1); }
.df-cell.df-drop .df-glassart { animation: dfDrop .35s ease-out; transform-origin: 50% 100%; }
.df-cell.df-gone { opacity: 0; transition: opacity .2s; }
.df-cell.df-poof { animation: dfPoof .8s forwards; }
@keyframes dfReveal { 0% { transform: scale(.4) translateY(30%); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes dfDrop { 0% { transform: scale(1, 1); } 35% { transform: scale(1.1, .88); } 70% { transform: scale(.96, 1.06); } 100% { transform: scale(1, 1); } }
@keyframes dfPoof { to { opacity: 0; transform: scale(.4) rotate(20deg); filter: blur(.4em); } }
.df-cb { position: absolute; left: 50%; top: 12%; width: 3.1em; height: 3.1em; margin-left: -1.55em; border-radius: 50%; z-index: 2; --p: 0; padding: .28em;
  background: conic-gradient(#ffd24a calc(var(--p) * 1%), rgba(40, 20, 50, .45) 0); box-shadow: 0 .2em .3em rgba(0, 0, 0, .35); }
.df-cb svg { width: 100%; height: 100%; background: #fff; border-radius: 50%; padding: .2em; }
.df-cb i { display: none; }
.df-up { position: absolute; right: -.4em; top: -.4em; z-index: 5; display: none; align-items: center; gap: .15em; background: linear-gradient(180deg, #7dffbd, #2fcf86); border-radius: 1em; padding: .15em .6em .15em .3em; box-shadow: 0 .2em 0 #158a56, 0 0 1em rgba(79, 227, 154, .8); animation: dfBob .7s ease-in-out infinite; pointer-events: none; }
.df-up svg { width: 1.7em; height: 1.7em; } .df-up b { font: 400 max(13px, 1.5em)/1 'Lilita One'; color: #0d4f31; letter-spacing: .05em; }
.df-up-on .df-up { display: flex; }
@keyframes dfBob { 50% { transform: translateY(-.35em) rotate(4deg); } }

/* seat animations */
.df-in .df-guest { animation: dfIn .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes dfIn { 0% { transform: translateY(35%) scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.df-served .df-person { animation: dfHappy .9s ease-in-out; }
@keyframes dfHappy { 20% { transform: translateX(-50%) translateY(-.8em) scale(1.06, .96); } 40% { transform: translateX(-50%) scale(.98, 1.04); } 60% { transform: translateX(-50%) translateY(-.5em); } 100% { transform: translateX(-50%); } }
.df-served .df-guest { animation: dfLeave 1.2s ease-in .55s forwards; }
.df-served .df-ticket { animation: dfFade .45s ease-in forwards; }
@keyframes dfLeave { to { transform: translateY(18%) scale(.9); opacity: 0; } }
@keyframes dfFade { to { opacity: 0; transform: translateY(-.5em) rotate(4deg); } }
.df-angry .df-guest { animation: dfStomp 1.2s ease-in forwards; }
.df-angry .df-ticket { animation: dfFade .6s .2s ease-in forwards; }
@keyframes dfStomp { 0%, 24% { transform: translateX(0); } 6%, 18% { transform: translateX(-.5em); } 12%, 24% { transform: translateX(.5em); } 100% { transform: translateX(-120%) rotate(-8deg); opacity: 0; } }

/* ── the counter's tiles ── */
.df-stations { position: absolute; left: 0; right: 0; top: 67.6%; bottom: 0; z-index: 4; padding: .8em 1.2em 1.9em; display: flex; align-items: center; justify-content: center; background:
  repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 9.8em, rgba(40, 110, 90, .14) 9.8em 10em), linear-gradient(180deg, #a6e8d5 0%, #7fd0b8 100%); box-shadow: inset 0 .5em 1em rgba(30, 90, 80, .25); }
.df-tiles { display: flex; flex-wrap: wrap; gap: .6em 1em; justify-content: center; align-items: flex-start; align-content: center; width: 100%; }
.df-grp { display: flex; gap: .55em; padding: .75em .75em; border-radius: 1.1em; background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 .15em rgba(255, 255, 255, .55), 0 .2em 0 rgba(30, 110, 90, .25); }
.df-g-glass { --gc: #3f64b0; } .df-g-cream { --gc: #bf3f6e; } .df-g-pour { --gc: #1c8068; } .df-g-top { --gc: #955a06; } .df-g-hot { --gc: #b83a24; }   /* dark enough for the white label text (about 5:1) */
.df-tile { position: relative; flex: none; width: var(--t); height: calc(var(--t) * 1.16); border: 0; padding: 0; border-radius: calc(var(--t) * .2); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; align-items: center; color: #3b2418;
  background: linear-gradient(180deg, #fffefa 0%, #fdeee2 100%); box-shadow: 0 .35em 0 #b86f8b, 0 .6em .8em rgba(60, 20, 50, .35), inset 0 0 0 .2em #fff; transition: transform .08s, box-shadow .08s; }
.df-tile:active, .df-tile.df-hit { transform: translateY(.3em); box-shadow: 0 .08em 0 #b86f8b, 0 .2em .4em rgba(60, 20, 50, .3), inset 0 0 0 .2em #fff; }
.df-tile.df-hit { animation: dfTap .25s ease-out; }
@keyframes dfTap { 0% { filter: brightness(1.25); } 100% { filter: none; } }
.df-tic { flex: 1; width: 100%; min-height: 0; padding: calc(var(--t) * .05) calc(var(--t) * .08) 0; display: flex; align-items: center; justify-content: center; }
.df-tic svg { width: 100%; height: 100%; }
.df-tlb { width: 100%; text-align: center; background: var(--gc, #d6523a); color: #fff; font: 700 max(calc(var(--t) * .17), 12.3px)/1 Fredoka; letter-spacing: -.01em; padding: calc(var(--t) * .06) 0 calc(var(--t) * .08); overflow: hidden; text-shadow: 0 .08em 0 rgba(0, 0, 0, .25); white-space: nowrap; }
.df-tcl { position: absolute; right: calc(var(--t) * .06); top: calc(var(--t) * .06); width: calc(var(--t) * .24); height: calc(var(--t) * .24); }
.df-tcl svg { width: 100%; height: 100%; }
.df-dots { position: absolute; left: calc(var(--t) * .07); top: calc(var(--t) * .07); display: flex; gap: calc(var(--t) * .04); }
.df-dots i { width: calc(var(--t) * .2); height: calc(var(--t) * .2); border-radius: 50%; --p: 0; background: rgba(60, 30, 70, .16); box-shadow: inset 0 0 0 calc(var(--t) * .03) rgba(60, 30, 70, .45); }
.df-dots i.on { background: conic-gradient(var(--c, #ffd24a) calc(var(--p) * 1%), rgba(60, 30, 70, .35) 0); box-shadow: 0 0 0 calc(var(--t) * .03) #fff, 0 0 calc(var(--t) * .12) var(--c, #ffd24a); }
.df-tile.working::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%) -150% 0 / 250% 100%; animation: dfShim 1.2s linear infinite; }
@keyframes dfShim { to { background-position: 150% 0; } }
.df-new { display: none; position: absolute; left: 50%; top: calc(var(--t) * -.04); transform: translateX(-50%); background: #c92338; color: #fff; font: 700 max(calc(var(--t) * .15), 12.3px)/1 Fredoka; letter-spacing: .08em; padding: .2em .55em; border-radius: 0 0 .6em .6em; box-shadow: 0 .1em 0 #8f1e2c; z-index: 2; }
.df-tile.isnew .df-new { display: block; animation: dfNew 1s ease-in-out infinite; }
@keyframes dfNew { 50% { transform: translateX(-50%) scale(1.12); } }
.df-tile.isnew { box-shadow: 0 .35em 0 #b86f8b, 0 0 1em .3em rgba(255, 210, 74, .85), inset 0 0 0 .2em #ffe27a; }
.df-tile.df-no { animation: dfNo .4s; }
@keyframes dfNo { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-.5em); } 40% { transform: translateX(.5em); } 60% { transform: translateX(-.35em); } 80% { transform: translateX(.3em); } }
.df-no::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 70, 80, .45); animation: dfFlash .5s forwards; pointer-events: none; z-index: 3; }
@keyframes dfFlash { to { opacity: 0; } }
.df-hint { animation: dfHintA 1s ease-in-out infinite !important; }
@keyframes dfHintA { 0%, 100% { filter: none; } 50% { filter: brightness(1.18) drop-shadow(0 0 .9em #ffd24a); transform: translateY(-.3em) scale(1.05); } }
.df-seat.df-hint { animation: dfHintS 1s ease-in-out infinite !important; transform-origin: 50% 80%; }
@keyframes dfHintS { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 1em #ffd24a); } }
@keyframes dfPulse { 50% { transform: scale(1.07); } }
@keyframes dfHit { 30% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ── the side card: how it works / the jukebox ── */
.df-side { position: absolute; z-index: 5; right: 1.4%; top: 9.4%; width: 22%; height: 40%; display: flex; flex-direction: column; gap: .6em; }
.df-rule { background: linear-gradient(180deg, #fffaf0, #ffe9d4); border-radius: 1em; padding: .7em .9em .8em; box-shadow: 0 .3em 0 #c9718f, 0 .5em .9em rgba(80, 20, 60, .35), inset 0 0 0 .2em #fff; border-top: .9em solid #4fd1b5; }
.df-rule h4, .df-juke h4 { margin: 0 0 .4em; font: 400 max(13px, 1.35em)/1 'Lilita One'; letter-spacing: .05em; color: #9a3558; display: flex; align-items: center; gap: .4em; }
.df-juke h4 small { font: 700 max(12.3px, .72em)/1 Fredoka; letter-spacing: .02em; color: #d9c8ee; margin-left: auto; }
.df-juke h4 svg { width: 1.5em; height: 1.5em; color: #e0475f; }
.df-rule p { margin: 0 0 .35em; font: 700 max(12px, 1.12em)/1.25 Fredoka; color: #3b2418; }
.df-rule p b { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-right: .3em; border-radius: 50%; background: #e0475f; color: #fff; font: 400 1em/1 'Lilita One'; vertical-align: -.1em; }
.df-rule2 { border-top-color: #ffcf5a; }
.df-juke { background: linear-gradient(180deg, #2b1a45, #170c2a); border-radius: 1em; padding: .7em .8em .8em; box-shadow: 0 .3em 0 #0c0618, 0 .5em .9em rgba(30, 5, 50, .5), inset 0 0 0 .22em #3fe8cf; color: #fff; }
.df-juke h4 { color: #ff9ac9; text-shadow: 0 0 .6em rgba(255, 59, 148, .7); }
.df-songs { display: flex; flex-direction: column; gap: .4em; }
.df-song { flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: .5em; padding: .25em .5em .3em; border: 0; border-radius: .8em; cursor: pointer; color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 .15em var(--sg), 0 .2em 0 rgba(0, 0, 0, .4); transition: transform .08s; }
.df-song:active { transform: translateY(.2em); }
.df-song .df-rec { flex: none; width: max(24px, 3em); height: max(24px, 3em); } .df-song .df-rec svg { width: 100%; height: 100%; }
.df-st { display: flex; flex-direction: column; gap: .12em; min-width: 0; }
.df-song b { font: 700 max(12px, 1em)/1.05 Fredoka; } .df-song small { font: 600 max(12.3px, .78em)/1.1 Fredoka; opacity: 1; color: #e4d8f5; }
.df-song.poor { opacity: .55; }
.df-song.playing { box-shadow: inset 0 0 0 .2em var(--sg), 0 0 1em .2em var(--sg); }
.df-song.playing .df-rec { animation: dfSpin 2s linear infinite; }
@keyframes dfSpin { to { transform: rotate(360deg); } }
.df-now { margin-top: .5em; position: relative; border-radius: .6em; padding: .35em .6em; background: rgba(255, 255, 255, .1); font: 700 max(12.3px, 1em)/1 Fredoka; text-align: center; overflow: hidden; color: #e4d8f5; }
.df-now i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 1%); background: rgba(63, 232, 207, .35); opacity: 0; }
.df-now.on { color: #fff; } .df-now.on i { opacity: 1; }
.df-now span { position: relative; }
.df-trash { position: absolute; z-index: 4; right: 1.6%; top: 54.6%; width: 5em; height: 5.6em; pointer-events: none; filter: drop-shadow(0 .3em .3em rgba(60, 20, 50, .35)); }
.df-trash svg { width: 100%; height: 100%; }
.df-trash.lid { animation: dfHit .45s; }

/* ── effects ── */
.df-fx { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.df-pop { position: absolute; transform: translate(-50%, -50%); font: 400 2.5em/1 'Lilita One'; color: #ffe27a; text-shadow: 0 .08em 0 #8a5a10, 0 0 .5em rgba(255, 210, 74, .8); -webkit-text-stroke: .04em #7a4a08; animation: dfPop 1.2s ease-out forwards; white-space: nowrap; }
.df-pop.bad { color: #ff6b6b; text-shadow: 0 .08em 0 #7a1020; -webkit-text-stroke-color: #6a0c1a; font-size: 2.1em; }
.df-pop.good { color: #7dffbd; text-shadow: 0 .08em 0 #0d5a38; -webkit-text-stroke-color: #0d4f31; font-size: 2em; }
.df-pop.tip { font-size: 3em; } .df-pop.tipsm { font-size: 2.2em; color: #ffe9b0; }
@keyframes dfPop { 0% { transform: translate(-50%, -30%) scale(.3); opacity: 0; } 18% { transform: translate(-50%, -80%) scale(1.25); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(-50%, -220%) scale(1); opacity: 0; } }
.df-fly { position: absolute; width: 5.2em; height: 5.2em; z-index: 2; pointer-events: none; transform: translate(-50%, -50%); }
.df-fly svg, .df-fly img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .3em .3em rgba(60, 20, 50, .4)); }
.df-fly-dish { width: 6em; height: 6em; }
.df-fly-bad svg { filter: grayscale(.5) drop-shadow(0 .3em .3em rgba(60, 20, 50, .4)); }
.df-spk { position: absolute; width: 2em; height: 2em; transform: translate(-50%, -50%); animation: dfSpk .95s ease-out forwards; }
.df-spk svg { width: 100%; height: 100%; }
@keyframes dfSpk { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); opacity: 0; } }
.df-fiz { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .9); animation: dfFiz 1s ease-out forwards; }
@keyframes dfFiz { 0% { transform: translateY(0) scale(.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-4em) scale(1.2); opacity: 0; } }
.df-banner { position: absolute; left: 50%; top: 31%; z-index: 14; transform: translate(-50%, -50%); text-align: center; pointer-events: none; animation: dfBanner 1.7s ease-out forwards; display: flex; flex-direction: column; align-items: center; gap: .3em; }
.df-banner b { font: 400 4.4em/1 'Lilita One'; color: #fff; letter-spacing: .04em; padding: .1em .55em; border-radius: .3em; background: linear-gradient(180deg, #ff7aa8, #e0245e); -webkit-text-stroke: .05em #7a0f34; text-shadow: 0 .06em 0 #7a0f34; box-shadow: 0 .12em 0 #7a0f34, 0 0 1.4em rgba(255, 59, 148, .8), inset 0 0 0 .08em rgba(255, 255, 255, .6); }
.df-banner span { font: 700 max(13px, 1.7em)/1 Fredoka; color: #fff; background: rgba(60, 20, 70, .78); border-radius: 1em; padding: .25em .9em; }
@keyframes dfBanner { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-6deg); opacity: 0; } 14% { transform: translate(-50%, -50%) scale(1.15) rotate(2deg); opacity: 1; } 24% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -62%) scale(1); opacity: 0; } }
.df-toast { position: absolute; left: 50%; top: 61.4%; z-index: 9; transform: translate(-50%, 0); opacity: 0; pointer-events: none; background: rgba(48, 20, 56, .92); color: #fff; font: 700 max(12.5px, 1.5em)/1 Fredoka; padding: .45em 1em; border-radius: 1em; white-space: nowrap; box-shadow: 0 .25em 0 rgba(0, 0, 0, .3); max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.df-toast.on { animation: dfToast 1.8s forwards; }
@keyframes dfToast { 0% { opacity: 0; transform: translate(-50%, .6em); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ── cards: welcome, between rounds, closed early ── */
.df-card { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 3%; background: radial-gradient(ellipse at 50% 40%, rgba(70, 28, 80, .55), rgba(30, 10, 40, .82)); backdrop-filter: blur(2px); }
.df-card[hidden] { display: none; }
.df-cardin { width: min(60em, 96%); max-height: 96%; overflow: visible; text-align: center; padding: 1.8em 2.4em 2em; border-radius: 2em; background: linear-gradient(180deg, #fffaf2, #ffe6d6); box-shadow: 0 .6em 0 #c9718f, 0 1.2em 2.4em rgba(20, 0, 30, .55), inset 0 0 0 .35em #fff, inset 0 0 0 .6em #ffd0dc; border-top: 1.2em solid #4fd1b5; animation: dfCard .5s cubic-bezier(.2, 1.4, .4, 1); position: relative; }
@keyframes dfCard { 0% { transform: translateY(8%) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.df-kick { font: 700 max(12.5px, 1.5em)/1 Fredoka; letter-spacing: .2em; color: #b72440; margin-bottom: .3em; }
.df-closed-k { color: #5a4870; }
.df-cardin h2 { margin: 0; font: 400 4em/1 'Lilita One'; color: #3b2418; -webkit-text-stroke: .02em #fff; text-shadow: 0 .06em 0 #ffb5c8; }
.df-sub { margin: .25em 0 .7em; font: 700 max(14px, 1.9em)/1.1 Fredoka; color: #12755f; }
.df-lead { margin: 0 0 .6em; font: 700 max(13px, 1.75em)/1.3 Fredoka; color: #3b2418; }
.df-lead b { color: #bd2a47; }
.df-small { margin: .6em 0 0; font: 600 max(12.5px, 1.4em)/1.3 Fredoka; color: #6a4a5a; }
.df-how { list-style: none; margin: .6em auto .2em; padding: 0; display: grid; gap: .5em; text-align: left; max-width: 44em; }
.df-how li { display: flex; align-items: center; gap: .8em; background: rgba(255, 255, 255, .7); border-radius: 1em; padding: .55em .9em; font: 700 max(13px, 1.7em)/1.2 Fredoka; box-shadow: inset 0 0 0 .13em #ffd0dc; }
.df-how li i { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; background: #e0475f; color: #fff; font: 400 1.1em/1 'Lilita One'; font-style: normal; }
.df-how b { color: #bd2a47; }
.df-new-l { list-style: none; margin: .5em auto 0; padding: 0; display: grid; gap: .5em; text-align: left; max-width: 46em; }
.df-new-l li { display: flex; align-items: center; gap: .8em; background: rgba(255, 255, 255, .7); border-radius: 1em; padding: .5em .9em; font: 700 max(13px, 1.6em)/1.2 Fredoka; box-shadow: inset 0 0 0 .13em #ffd0dc; }
.df-new-l li svg { flex: none; width: 2.4em; height: 2.4em; } .df-new-l li b { color: #bd2a47; }
.df-go { margin-top: .9em; border: 0; cursor: pointer; font: 400 max(20px, 2.6em)/1 'Lilita One'; letter-spacing: .06em; color: #fff; padding: .35em 1.5em; border-radius: 1em; -webkit-text-stroke: .04em #7a0f34;
  background: linear-gradient(180deg, #e8366f, #b80f45); box-shadow: 0 .22em 0 #7a0a2c, 0 .5em .9em rgba(120, 10, 50, .5), inset 0 0 0 .08em rgba(255, 255, 255, .5); text-shadow: 0 .06em 0 #7a0f34; animation: dfPulse 1.4s ease-in-out infinite; }
.df-go:active { transform: translateY(.18em); box-shadow: 0 .04em 0 #8f1038; }
.df-done { margin: -.4em 0 .9em; padding: .55em 1em; border-radius: 1em; background: linear-gradient(180deg, #dffbee, #b8f0d8); box-shadow: inset 0 0 0 .15em #4fcf8a; }
.df-donetag { font: 400 2em/1 'Lilita One'; color: #1f8a52; letter-spacing: .08em; }
.df-done p { margin: .2em 0 0; font: 700 max(12.5px, 1.5em)/1.2 Fredoka; color: #1a4d33; } .df-done b { color: #bd2a47; }
.df-between .df-cardin h2 { font-size: 3.4em; } .df-between .df-lead { font-size: max(12.5px, 1.55em); }
.df-fail .df-cardin { border-top-color: #9c8cb0; }

/* ══ upright phone: a taller stage and a different arrangement (1em = 2% of the width) ══ */
.df-tall .df-hud { left: 1.5%; right: 1.5%; top: .7%; height: 4.2%; gap: .5em; }
.df-tall .df-hud > div { padding: 0 .6em; gap: .4em; border-radius: .9em; }
.df-tall .df-rk { display: none; } .df-tall .df-rname { display: inline; font-size: max(13px, 1.25em); }
.df-tall .df-rk b { display: none; }
.df-tall .df-round { flex: 1; min-width: 0; } .df-tall .df-pips { margin-left: auto; } .df-tall .df-pips i { width: .9em; height: .9em; }
.df-tall .df-sl { display: none; } .df-tall .df-sv { font-size: max(17px, 1.5em); min-width: 2em; }
.df-tall .df-nick b { font-size: max(16px, 1.5em); } .df-tall .df-nick svg { width: max(16px, 1.4em); height: max(16px, 1.4em); }
.df-tall .df-neon { font-size: max(16px, 1.3em); } .df-tall .df-rep i { width: max(13px, 1.2em); height: max(13px, 1.2em); }
.df-tall .df-bg .df-bgimg { height: 50%; width: auto; left: -34%; }
.df-tall .df-shade { background: linear-gradient(180deg, rgba(40, 14, 44, .2) 0%, rgba(40, 14, 44, 0) 8%, rgba(40, 14, 44, 0) 22%, rgba(70, 24, 60, .35) 29%, #f7a6bd 33%); }
.df-tall .df-dining { top: 5.4%; height: 50.6%; }
.df-tall .df-seat { width: 24.2%; }
.df-tall .df-seat:nth-child(1) { left: 12.6% !important; } .df-tall .df-seat:nth-child(2) { left: 37.5% !important; } .df-tall .df-seat:nth-child(3) { left: 62.5% !important; } .df-tall .df-seat:nth-child(4) { left: 87.4% !important; }
.df-tall .df-person { top: 7%; height: 24%; }
.df-tall .df-ticket { top: 24.5%; padding: .4em .35em .45em; border-top-width: .55em; }
.df-tall .df-seat.df-long .df-ticket { top: 24.5%; }
.df-tall .df-hbar { width: 8.6em; }
.df-tall .df-tk-n { font-size: max(13px, 1.35em); } .df-tall .df-vip { padding: .1em .3em; } .df-tall .df-vip i { display: none; }
.df-tall .df-spr { height: 2.2em; width: 2.4em; }
.df-tall .df-it-n { font-size: max(12.3px, 1.15em); }
.df-tall .df-ln li { height: max(14.8px, 1.42em); font-size: max(12px, 1.12em); gap: .25em; }
.df-tall .df-lic { width: 1.3em; height: 1.3em; } .df-tall .df-ck { width: 1.3em; height: 1.3em; margin-top: -.65em; }
.df-tall .df-clk { width: .9em; height: .9em; }
.df-tall .df-mod { font-size: max(11.4px, .85em); }
.df-tall .df-counter { top: 43.6%; height: 12.4%; }
.df-tall .df-slot { top: 74%; }
.df-tall .df-cells { height: 112%; }
.df-tall .df-stations { top: 56.6%; bottom: 12.4%; padding: .5em .6em 1.3em; }
.df-tall .df-tiles { gap: .5em; justify-content: center; }
.df-tall .df-grp { display: contents; }
.df-tall .df-side { right: 11%; left: 1.5%; width: auto; top: auto; bottom: .8%; height: 10.6%; flex-direction: row; }
.df-tall .df-rule { flex: 1; padding: .45em .6em; border-top-width: .55em; display: flex; flex-direction: column; justify-content: center; }
.df-tall .df-rule h4 { display: none; } .df-tall .df-rule p { font-size: max(11.8px, 1em); margin-bottom: .2em; }
.df-tall .df-rule2 { display: none; }
.df-tall .df-juke { flex: 1; padding: .45em .5em; } .df-tall .df-juke h4 { font-size: max(12px, 1.05em); margin-bottom: .25em; } .df-tall .df-juke h4 small { display: none; }
.df-tall .df-song .df-rec { width: max(20px, 2.3em); height: max(20px, 2.3em); } .df-tall .df-song small { display: none; } .df-tall .df-songs { flex-direction: row; } .df-tall .df-song b { font-size: max(12px, .88em); }
.df-tall .df-now { display: none; }
.df-tall .df-trash { right: 1.5%; top: auto; bottom: 1.2%; width: 7%; height: 8.6%; }
.df-tall .df-toast { top: 52.8%; font-size: max(12.5px, 1.25em); }
.df-tall .df-banner { top: 24%; } .df-tall .df-banner b { font-size: 3em; } .df-tall .df-banner span { font-size: max(13px, 1.3em); }
.df-tall .df-cardin { padding: 1.2em 1.2em 1.4em; border-radius: 1.4em; max-height: 98%; }
.df-tall .df-cardin h2 { font-size: 2.6em; } .df-tall .df-sub { font-size: max(14px, 1.4em); } .df-tall .df-lead { font-size: max(13px, 1.35em); } .df-tall .df-kick { font-size: max(12.5px, 1.15em); } .df-tall .df-small { font-size: max(12.5px, 1.1em); }
.df-tall .df-how li { font-size: max(13px, 1.3em); padding: .4em .6em; } .df-tall .df-new-l li { font-size: max(12.5px, 1.2em); padding: .4em .6em; } .df-tall .df-go { font-size: max(20px, 2em); }
.df-tall .df-done p { font-size: max(12.5px, 1.2em); } .df-tall .df-donetag { font-size: max(15px, 1.5em); }
.df-tall .df-pop { font-size: 2em; } .df-tall .df-pop.tip { font-size: 2.4em; }
.df-tall .df-quip { font-size: max(12px, 1.1em); }
.df-tall .df-seat.df-sel .df-ticket::after { font-size: max(11.4px, .8em); top: -1.4em; }
.df-tall .df-up b { font-size: max(12px, 1.2em); } .df-tall .df-up svg { width: 1.4em; height: 1.4em; }

@media (prefers-reduced-motion: reduce) { .df-root *, .df-root *::before, .df-root *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* the DALL-E float is root beer; the other sodas are the same picture re-tinted */
.df-fl-or { filter: hue-rotate(8deg) saturate(2.8) brightness(1.4) contrast(1.08); }
.df-fl-cc { filter: hue-rotate(-22deg) saturate(2.4) brightness(1.15) contrast(1.05); }

/* Rocko peeks over the top of every card */
.df-rocko { position: absolute; right: 2.2em; top: -7.2em; width: 8.6em; pointer-events: none; filter: drop-shadow(0 .4em .4em rgba(20, 0, 30, .45)); z-index: 2; }
.df-tall .df-rocko { right: .6em; top: -5.8em; width: 6.6em; }
.df-tall .df-between .df-rocko { display: none; }

/* props on the counter, chrome shine, a checker strip, and the idle life of the room */
.df-props { position: absolute; left: 69%; top: 20%; width: 18%; pointer-events: none; z-index: 2; }
.df-props svg { width: 100%; height: auto; }
.df-tall .df-props { display: none; }
.df-cedge { overflow: hidden; }
.df-cedge::after { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent); animation: dfShine 6.5s ease-in-out infinite; }
@keyframes dfShine { 0%, 55% { left: -30%; } 100% { left: 130%; } }
.df-stations::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.1em; background: conic-gradient(#1e1624 25%, #fff 0 50%, #1e1624 0 75%, #fff 0) 0 0 / 2.2em 2.2em; opacity: .9; }
.df-whow { animation: dfIdle 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.df-seat:nth-child(2) .df-whow { animation-delay: -.9s; } .df-seat:nth-child(3) .df-whow { animation-delay: -1.8s; } .df-seat:nth-child(4) .df-whow { animation-delay: -2.6s; }
@keyframes dfIdle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-.25em) rotate(.6deg); } }
.df-low .df-hbar { animation: dfHbar .7s ease-in-out infinite; }
@keyframes dfHbar { 50% { transform: translateX(-50%) scale(1.12); } }
.df-tile.working[data-ing="blend"] .df-tic svg { animation: dfMix .22s linear infinite; }
@keyframes dfMix { 0% { transform: translateX(-.12em) rotate(-1.5deg); } 50% { transform: translateX(.12em) rotate(1.5deg); } 100% { transform: translateX(-.12em) rotate(-1.5deg); } }
.df-tile.working[data-ing="patty"] .df-tic svg, .df-tile.working[data-ing="sausage"] .df-tic svg, .df-tile.working[data-ing="fries"] .df-tic svg { animation: dfSizzle .35s ease-in-out infinite; }
@keyframes dfSizzle { 50% { transform: translateY(-.1em) scale(1.04); } }
.df-sel .df-hbar { filter: drop-shadow(0 0 .5em #ffd24a); }

.df-streak { display: inline-flex; align-items: center; gap: .15em; background: linear-gradient(180deg, #ffe27a, #f4b52a); border-radius: .8em; padding: .12em .5em .12em .3em; box-shadow: inset 0 0 0 .13em #b9801a; }
.df-streak[hidden] { display: none; }
.df-streak svg { width: max(14px, 1.3em); height: max(14px, 1.3em); } .df-streak b { font: 400 max(14px, 1.3em)/1 'Lilita One'; color: #6a3d00; }
.df-streak.hit { animation: dfHit .5s; }

.df-sbar { position: absolute; left: 0; bottom: 0; height: .35em; width: 0; border-radius: 0 .2em .2em 0; background: var(--sg); box-shadow: 0 0 .6em var(--sg); }
.df-song { position: relative; overflow: hidden; }
.df-tall .df-juke h4 { display: none; } .df-tall .df-juke { display: flex; align-items: stretch; } .df-tall .df-songs { flex: 1; } .df-tall .df-song { flex-direction: row; gap: .4em; align-items: center; justify-content: center; padding: .3em .3em .5em; }
.df-tall .df-song b { font-size: max(12px, .95em); text-align: left; }
.df-tlb b { font: inherit; letter-spacing: inherit; } .df-ls { display: none; }
.df-shortlbl .df-lw { display: none; } .df-shortlbl .df-ls { display: inline; }
.df-lt { display: none; }
.df-tall .df-lw, .df-tall .df-ls { display: none; } .df-tall .df-lt { display: inline; } .df-tall .df-tlb { letter-spacing: -.07em; }
.df-inl { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.2em; } .df-inl svg { width: 100%; height: 100%; }

/* pouring: milk, soda and syrup fall into the glass; the jukebox sends up notes while a tune plays */
.df-pour { position: absolute; width: 1.2em; margin-left: -.6em; border-radius: .6em; transform-origin: 50% 0; z-index: 3; pointer-events: none; animation: dfPour .6s ease-in forwards;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--pc) 28%, var(--pc)); box-shadow: 0 0 .4em rgba(255, 255, 255, .5); }
.df-pour-whip { width: 1.8em; margin-left: -.9em; border-radius: 50% 50% 40% 40%; animation-duration: .45s; }
@keyframes dfPour { 0% { transform: scaleY(0); opacity: 1; } 45% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(34%); opacity: 0; } }
.df-jnotes { position: absolute; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; z-index: 2; color: var(--sg, #ffcf5a); transition: opacity .3s; }
.df-song-on .df-jnotes { opacity: 1; }
.df-jnotes svg { position: absolute; bottom: 20%; width: 2.2em; height: 2.2em; animation: dfNoteUp 2.4s ease-out infinite; opacity: 0; filter: drop-shadow(0 0 .4em currentColor); }
.df-jnotes svg:nth-child(1) { left: 10%; } .df-jnotes svg:nth-child(2) { left: 45%; animation-delay: .8s; } .df-jnotes svg:nth-child(3) { left: 75%; animation-delay: 1.6s; }
@keyframes dfNoteUp { 0% { transform: translateY(0) rotate(-12deg) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-9em) rotate(14deg) scale(1.1); opacity: 0; } }

/* ══ Ron's art: sprites sit on top of the drawn fallback until they have loaded ══ */
.df-icw { position: relative; display: block; }
.df-icw > svg, .df-icw > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.df-icw > img { object-fit: contain; opacity: 0; filter: drop-shadow(0 .12em .1em rgba(60, 20, 50, .28)); pointer-events: none; }
.df-icw.ok > img { opacity: 1; } .df-icw.ok > svg { visibility: hidden; }
.df-tile .df-tic .df-icw > img { transform: scale(1.1); }
.df-ln .df-icw > img { filter: drop-shadow(0 .06em .05em rgba(60, 20, 50, .3)); }
.df-cb .df-icw { background: #fff; border-radius: 50%; }
.df-cb .df-icw > img, .df-cb .df-icw > svg { left: .22em; top: .22em; width: calc(100% - .44em); height: calc(100% - .44em); background: none; padding: 0; }
.df-new-l li .df-icw { flex: none; width: 2.4em; height: 2.4em; }
.df-sprart { overflow: visible; }

/* the five regulars: a calm face, and an impatient one once the hearts are down to two */
.df-whow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.df-whow > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.df-whow.ok > svg { visibility: hidden; }
.df-whow .df-who { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); display: none; pointer-events: none; filter: drop-shadow(0 .3em .3em rgba(60, 20, 50, .35)); }
.df-whow.ok .df-who.calm { display: block; }
.df-seat[data-mood="1"] .df-whow:not(.noimp) .df-who.imp { display: block; }
.df-seat[data-mood="1"] .df-whow:not(.noimp) .df-who.calm { display: none; }

/* Rocko in his paper hat: wiping a glass on the cards, holding up a shake when a round is cleared */
.df-rkw { position: relative; display: block; aspect-ratio: 254 / 332; }
.df-rkw > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.df-rkw > .df-rki { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.df-rkw.ok > .df-rki { opacity: 1; } .df-rkw.ok > svg { visibility: hidden; }
.df-proud { position: absolute; right: 3%; bottom: 14%; width: 17em; z-index: 15; pointer-events: none; filter: drop-shadow(0 .5em .5em rgba(20, 0, 30, .45)); animation: dfProud 2.5s ease-out forwards; }
@keyframes dfProud { 0% { transform: translateY(60%) rotate(6deg); opacity: 0; } 18% { transform: translateY(-4%) rotate(-3deg); opacity: 1; } 28%, 82% { transform: none; opacity: 1; } 100% { transform: translateY(20%); opacity: 0; } }
.df-tall .df-proud { width: 11em; bottom: 16%; right: 2%; }

/* readability: a hair tighter letters on the narrow upright-phone checks so "Whip cream" is never clipped */
.df-tall .df-ln li em { letter-spacing: -.02em; }
.df-tall .df-new { padding: .1em .35em; top: 0; border-radius: 0 0 .5em .5em; }

/* ══ landscape phone (a short, wide window): the stage fills the width, the em unit follows the height, checks are compact (no dish picture row),
      the tiles wrap one by one and the jukebox is trimmed. Every word stays at 11px or more. ══ */
#stage.df-on.df-land { aspect-ratio: auto; width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: none; }
.df-land .df-hud { left: 30%; }
.df-land .df-it-h { display: none; }
.df-land .df-ticket { top: 22%; padding: .35em .45em .4em; border-top-width: .5em; }
.df-land .df-seat.df-long .df-ticket { top: 20%; }
.df-land .df-tk-h { margin-bottom: .15em; }
.df-land .df-ln li { height: max(13.2px, 1.42em); font-size: max(11.4px, 1.12em); }
.df-land .df-seat.df-long .df-ln li { height: max(12.4px, 1.3em); font-size: max(11.2px, 1.1em); }
.df-land .df-mods { margin: 0 0 .15em; }
.df-land .df-grp { display: contents; }
.df-land .df-tiles { gap: .5em; }
.df-land .df-stations { padding: .4em 125px 1.3em 1em; }                /* the shared pause / sound / full-screen buttons sit bottom-right: keep the tiles clear of them */
.df-land .df-lw, .df-land .df-ls { display: none; } .df-land .df-lt { display: inline; } .df-land .df-tlb { letter-spacing: -.07em; }
.df-land .df-song { padding: .12em .4em .18em; } .df-land .df-song .df-rec { width: max(20px, 2.6em); height: max(20px, 2.6em); }
.df-land .df-juke h4 small, .df-land .df-now, .df-land .df-rule2 { display: none; }
.df-land .df-juke { padding: .5em .6em .55em; } .df-land .df-juke h4 { margin-bottom: .3em; }
.df-land .df-rule { padding: .5em .7em .5em; } .df-land .df-rule p { margin-bottom: .25em; } .df-land .df-rule h4 { margin-bottom: .3em; }
.df-land .df-side { height: 44%; }
.df-land .df-cardin { width: min(94%, 125em); padding: .9em 1.4em 1.1em; border-top-width: .8em; }
.df-land .df-cardin h2, .df-land .df-between .df-cardin h2 { font-size: 2.7em; }
.df-land .df-sub { margin: .1em 0 .4em; } .df-land .df-lead { margin-bottom: .35em; } .df-land .df-small { margin-top: .35em; }
.df-land .df-how, .df-land .df-new-l { max-width: 90em; gap: .35em; } .df-land .df-how li, .df-land .df-new-l li { padding: .3em .8em; }
.df-land .df-done { margin: -.2em 0 .5em; padding: .35em .8em; }
.df-land .df-go { margin-top: .5em; font-size: max(20px, 2.2em); }
.df-land .df-rocko { top: -5.8em; width: 7.4em; }
