/*
 * FL Frame - "Vegas Postcard" look for the Funny Las Vegas game screens.
 * The frame is one fixed-size box (1600x900 wide, 720x1280 tall) scaled as a
 * whole by fl-frame.js, so every size below is in design pixels.
 */
@font-face { font-family: 'Shrikhand'; src: url('fonts/shrikhand-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bowlby One'; src: url('fonts/bowlby-one-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --cream: #f6ead2;
  --paper: #fff8ea;
  --paper-2: #fbefd8;
  --ink: #2b1d1a;
  --ink-2: #6b5248;
  --red: #d7263d;
  --red-d: #a8172b;
  --teal: #13807e;
  --teal-d: #0b5a59;
  --mustard: #f2b134;
  --mustard-d: #d8901a;
  --suit-black: #26212b;
  --font-ui: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-num: 'Bowlby One', 'Arial Black', sans-serif;
  --font-brand: 'Shrikhand', Georgia, serif;
}

html, body { margin: 0; height: 100%; overflow: hidden; background: var(--cream); }
body { font-family: var(--font-ui); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

.fl { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }

/* Page backdrop: cream paper, soft sunburst and halftone dots */
.fl-backdrop {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(43, 29, 26, .07) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    radial-gradient(ellipse at 50% 40%, #fbf2df 0%, var(--cream) 70%);
}
.fl-rays {
  position: absolute; left: 50%; top: 45%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, rgba(242, 177, 52, .13) 0deg 7.5deg, transparent 7.5deg 15deg);
  animation: fl-spin 160s linear infinite;
}
@keyframes fl-spin { to { transform: rotate(360deg); } }

/* ---------- the box ---------- */
.fl-box {
  position: absolute; left: 50%; top: 50%;
  transform-origin: 50% 50%;
  display: grid; box-sizing: border-box;
}
.is-wide .fl-box { grid-template-columns: 1fr 392px; gap: 28px; padding: 30px; }
.is-tall .fl-box { grid-template-rows: 1fr 340px; gap: 20px; padding: 20px; }

/* ---------- stage (postcard) ---------- */
.fl-stage {
  position: relative; overflow: hidden; border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 10px var(--teal), 0 18px 40px rgba(43, 29, 26, .25);
  margin: 10px;
}
.fl-stage-bg { position: absolute; inset: 0; }
.fl-scene { position: absolute; inset: 0; }

/* Result stamp: a round rubber stamp pressed onto the postcard */
.fl-stamp {
  position: absolute; right: 44px; top: 250px; width: 250px; height: 250px; z-index: 20;
  pointer-events: none; opacity: 0; transform: scale(1.8) rotate(-30deg);
}
.is-tall .fl-stamp { right: 14px; top: auto; bottom: 14px; width: 210px; height: 210px; }
.fl-stamp.is-on { animation: fl-stamp 4.2s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes fl-stamp {
  0% { opacity: 0; transform: scale(1.8) rotate(-30deg); }
  10% { opacity: 1; transform: scale(.95) rotate(-12deg); }
  14% { transform: scale(1) rotate(-12deg); }
  85% { opacity: 1; transform: scale(1) rotate(-12deg); }
  100% { opacity: 0; transform: scale(1) rotate(-12deg); }
}
.fl-stamp-in {
  position: absolute; inset: 0; border-radius: 50%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: rgba(255, 248, 234, .94);
  border: 7px solid var(--side, var(--red));
  box-shadow: inset 0 0 0 5px rgba(255, 248, 234, .94), inset 0 0 0 8px var(--side, var(--red)), 0 10px 26px rgba(43, 29, 26, .3);
  color: var(--side, var(--red)); text-align: center;
}
.fl-stamp-in small { font: 800 15px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; }
.fl-stamp-in .ic { width: 70px; height: 70px; display: block; }
.fl-stamp-in .ic svg { width: 100%; height: 100%; display: block; }
.fl-stamp-in b { font: 400 44px/1 var(--font-num); letter-spacing: .02em; text-transform: uppercase; }
.fl-stamp-in em { font: 700 15px/1.1 var(--font-ui); font-style: normal; color: var(--ink-2); max-width: 170px; }

.fl-notice {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 700 18px/1 var(--font-ui); opacity: 0; transition: .3s; z-index: 21; white-space: nowrap;
}
.fl-notice.is-on { opacity: 1; transform: translateX(-50%); }

/* ---------- ticket ---------- */
.fl-ticket {
  position: relative; box-sizing: border-box; min-height: 0;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(43, 29, 26, .22), inset 0 0 0 2px rgba(43, 29, 26, .08);
  display: flex; flex-direction: column;
  margin: 10px 0;
}
/* punched notches on the long edges */
.fl-ticket::before, .fl-ticket::after {
  content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--cream);
  box-shadow: inset 0 3px 6px rgba(43, 29, 26, .15);
}
.is-wide .fl-ticket::before { left: -15px; top: 262px; }
.is-wide .fl-ticket::after { right: -15px; top: 262px; }
.is-tall .fl-ticket::before { left: -15px; top: 189px; }
.is-tall .fl-ticket::after { right: -15px; top: 189px; }

.fl-t-head { padding: 26px 28px 0; }
.fl-brand { display: flex; align-items: center; gap: 8px; color: var(--red); font: 400 22px/1 var(--font-brand); }
.fl-brand-star { width: 26px; height: 26px; color: var(--mustard); }
.fl-brand-star svg { width: 100%; height: 100%; fill: currentColor; display: block; animation: fl-twinkle 3s ease-in-out infinite; }
@keyframes fl-twinkle { 50% { transform: rotate(45deg) scale(.8); } }
.fl-t-title { margin: 8px 0 0; font: 400 42px/1 var(--font-brand); color: var(--ink); letter-spacing: .01em; }
.fl-t-title .red { color: var(--red); }
.fl-t-title { white-space: nowrap; }
.fl-t-title.is-long { font-size: 33px; }
.is-tall .fl-t-title.is-long { font-size: 29px; }
.fl-t-title .amp { color: var(--mustard-d); font-size: .7em; }

.fl-t-round { position: relative; padding: 14px 28px 14px; margin-top: 14px; border-top: 3px dashed rgba(43, 29, 26, .16); border-bottom: 3px dashed rgba(43, 29, 26, .16); display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
.fl-t-round small { font: 800 16px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.fl-t-round b { font: 400 54px/1 var(--font-num); color: var(--teal-d); justify-self: end; }
.fl-t-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 8px; font: 700 16px/1 var(--font-ui); color: var(--ink-2); }
.fl-status { padding: 6px 12px; border-radius: 999px; font: 800 14px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--teal); }
.fl-status.is-live::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #fff; vertical-align: 1px; animation: fl-blink 1.2s steps(2) infinite; }
@keyframes fl-blink { 50% { opacity: .2; } }
.fl-status.is-closing { background: var(--mustard-d); }
.fl-status.is-spin { background: var(--red); }
.fl-clock { font-variant-numeric: tabular-nums; }
.fl-demo { display: none; padding: 5px 9px; border-radius: 6px; background: var(--mustard); color: var(--ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.is-demo .fl-demo { display: inline-block; }

/* countdown dial */
.fl-dial { position: relative; width: 168px; height: 168px; margin: 18px auto 0; }
.fl-dial svg { width: 100%; height: 100%; display: block; }
.fl-dial .ticks line { stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; opacity: .35; }
.fl-dial .track { fill: var(--paper-2); stroke: rgba(43, 29, 26, .1); stroke-width: 7; }
.fl-dial .arc {
  fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: var(--p, 100) 100; transform: rotate(-90deg) scaleY(-1); transform-origin: 50% 50%;
  transition: stroke-dasharray .25s linear, stroke .3s;
}
.fl-dial.is-closing .arc { stroke: var(--red); }
.fl-dial-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fl-dial-num b { font: 400 48px/1 var(--font-num); margin-top: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fl-dial.is-closing .fl-dial-num b { color: var(--red); animation: fl-pulse 1s ease-in-out infinite; }
@keyframes fl-pulse { 50% { transform: scale(1.12); } }
.fl-dial-num small { margin-top: 4px; font: 800 13px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.fl-t-next { display: none; text-align: center; margin-top: 8px; font: 700 16px/1.2 var(--font-ui); color: var(--ink-2); }

/* history */
.fl-t-hist { padding: 16px 26px 0; margin-top: 16px; border-top: 3px dashed rgba(43, 29, 26, .16); flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fl-t-label { display: flex; justify-content: space-between; align-items: baseline; }
.fl-t-label b { font: 800 16px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; }
.fl-t-label small { font: 700 14px/1 var(--font-ui); color: var(--ink-2); }
.fl-h-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px 8px; margin-top: 14px; align-content: start; }
.fl-h-item {
  position: relative; border: 0; padding: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.fl-h-item .i {
  width: 46px; height: 46px; border-radius: 50%; box-sizing: border-box; padding: 10px;
  background: var(--paper-2); border: 3px solid var(--side); color: var(--side);
  box-shadow: inset 0 0 0 2px var(--paper);
}
.fl-h-item .i svg { width: 100%; height: 100%; display: block; }
.fl-h-item .n { font: 700 13px/1 var(--font-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fl-h-item:first-child .i { background: var(--side); color: var(--paper); }
.is-wide .fl-h-item:nth-child(n+16) { display: none; }
.fl-h-item.is-new { animation: fl-pop .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes fl-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.fl-h-empty { grid-column: 1 / -1; padding: 16px 0; color: var(--ink-2); font: 700 15px/1.3 var(--font-ui); }

.fl-ratio { margin-top: auto; padding: 10px 0 0; }
.fl-ratio-legend { display: flex; justify-content: space-between; font: 800 14px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.fl-ratio-legend span:first-child { color: var(--suit-black); }
.fl-ratio-legend span:last-child { color: var(--red); }
.fl-ratio-bar { display: flex; height: 12px; margin-top: 7px; border-radius: 99px; overflow: hidden; background: var(--paper-2); }
.fl-ratio-bar i { display: block; height: 100%; background: var(--c); transition: width .6s; }

/* tools */
.fl-tools { display: flex; gap: 8px; padding: 14px 22px 20px; }
.fl-tool {
  flex: 1; height: 56px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--teal); color: var(--paper);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 12px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase;
  flex-direction: column; gap: 5px;
  box-shadow: 0 4px 0 var(--teal-d); transition: transform .1s, box-shadow .1s, background .2s;
}
.fl-tool:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-d); }
.fl-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-tool svg .fill { fill: currentColor; }
.fl-tool svg .off { display: none; }
.fl-tool[aria-pressed="false"] { background: #b9a99a; box-shadow: 0 4px 0 #8f7f71; }
.fl-tool[aria-pressed="false"] svg .off { display: inline; }
.fl-tool.is-spin svg { animation: fl-spin .7s ease-out; }
.fl-tool:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ---------- share: the back of the postcard ---------- */
.fl-share {
  position: absolute; inset: 0; z-index: 30; display: none; box-sizing: border-box;
  grid-template-columns: 1.08fr 1fr; gap: 0; padding: 44px 44px 40px;
  background:
    radial-gradient(circle at 1px 1px, rgba(43, 29, 26, .05) 1px, transparent 1.4px) 0 0 / 10px 10px,
    #fffaf0;
  border-radius: inherit; user-select: text; -webkit-user-select: text;
  transform-origin: 50% 50%; backface-visibility: hidden;
}
.fl-share.is-on { display: grid; animation: fl-flip .55s cubic-bezier(.3, .9, .35, 1); }
@keyframes fl-flip { 0% { transform: perspective(1800px) rotateY(-90deg); } 100% { transform: perspective(1800px) rotateY(0); } }
.fl-share::before { content: ''; position: absolute; top: 44px; bottom: 70px; left: 52%; border-left: 3px solid rgba(43, 29, 26, .14); }
.fl-share-msg { padding-right: 46px; display: flex; flex-direction: column; min-height: 0; }
.fl-share-kicker { margin: 0; font: 400 26px/1 var(--font-brand); color: var(--teal); transform: rotate(-3deg); transform-origin: left; }
.fl-share h2 { margin: 12px 0 0; font: 400 38px/1.05 var(--font-num); text-transform: uppercase; color: var(--ink); }
.fl-share h2 .red { color: var(--red); }
.fl-share h2 .amp { font-family: var(--font-brand); color: var(--mustard-d); font-size: .7em; }
.fl-share-lead { margin: 12px 0 0; font: 500 17px/1.4 var(--font-ui); color: var(--ink-2); }
.fl-share-code {
  margin: 18px 0 0; padding: 4px 2px; min-height: 0; overflow: auto;
  font: 500 19px/36px ui-monospace, Menlo, Consolas, monospace; color: #1d3f8f; white-space: pre-wrap; word-break: break-all;
  background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(19, 128, 126, .28) 35px 36px);
}
.fl-share-big {
  align-self: flex-start; margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 14px; padding: 14px 22px; cursor: pointer;
  background: var(--mustard); color: var(--ink); font: 800 17px/1 var(--font-ui); letter-spacing: .04em;
  box-shadow: 0 5px 0 var(--mustard-d); transform: rotate(-1.5deg);
}
.fl-share-big svg, .fl-share-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fl-share-big.is-done { background: var(--teal); color: #fff; box-shadow: 0 5px 0 var(--teal-d); }
.fl-share-addr { padding-left: 46px; display: flex; flex-direction: column; min-height: 0; }
.fl-share-stampbox { position: relative; align-self: flex-end; width: 118px; height: 140px; }
.fl-share-stamp {
  position: absolute; inset: 0; box-sizing: border-box; padding: 12px 8px; text-align: center; color: #fff;
  background: var(--red); transform: rotate(4deg);
  outline: 8px dotted #fffaf0; outline-offset: -5px; box-shadow: 0 0 0 2px rgba(43, 29, 26, .08), 3px 4px 0 rgba(43, 29, 26, .12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.fl-share-stamp svg { width: 40px; height: 40px; fill: var(--mustard); }
.fl-share-stamp b { font: 400 30px/1 var(--font-num); }
.fl-share-stamp small { font: 400 13px/1.1 var(--font-brand); }
.fl-share-pm { position: absolute; right: 96px; top: 40px; width: 110px; height: 110px; border-radius: 50%; border: 3px solid rgba(11, 90, 89, .55); box-shadow: inset 0 0 0 7px #fffaf0, inset 0 0 0 9px rgba(11, 90, 89, .45); transform: rotate(-16deg); }
.fl-share-lines { margin-top: 12px; }
.fl-share-line { margin-top: 18px; }
.fl-share-line small { display: block; font: 800 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.fl-share-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 6px; border-bottom: 2px solid rgba(43, 29, 26, .3); padding-bottom: 5px; }
.fl-share-row .v { flex: 1; min-width: 0; font: 500 17px/1.35 ui-monospace, Menlo, Consolas, monospace; color: #1d3f8f; word-break: break-all; }
.fl-share-copy { flex: none; border: 2px solid var(--teal); border-radius: 8px; background: transparent; color: var(--teal-d); padding: 5px 10px; font: 800 13px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fl-share-copy.is-done { background: var(--teal); color: #fff; }
.fl-share-note { margin: auto 0 0; padding-top: 16px; font: 500 13px/1.4 var(--font-ui); color: var(--ink-2); }
.fl-share-note code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: var(--ink); }
.fl-share-back {
  position: absolute; left: 44px; bottom: 26px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; background: var(--ink); color: var(--paper);
  font: 800 14px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
}
.fl-share-msg { padding-bottom: 44px; }

.is-tall .fl-share { display: none; grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 30px 30px 80px; overflow: auto; }
.is-tall .fl-share.is-on { display: grid; }
.is-tall .fl-share::before { display: none; }
.is-tall .fl-share-msg { padding: 0 0 18px; border-bottom: 3px solid rgba(43, 29, 26, .14); }
.is-tall .fl-share h2 { font-size: 32px; padding-right: 110px; }
.is-tall .fl-share-lead { font-size: 16px; }
.is-tall .fl-share-code { font-size: 16px; line-height: 30px; background-size: 100% 30px; background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(19, 128, 126, .28) 29px 30px); }
.is-tall .fl-share-addr { padding: 0; }
.is-tall .fl-share-stampbox { position: absolute; right: 26px; top: 26px; width: 90px; height: 106px; }
.is-tall .fl-share-stamp svg { width: 28px; height: 28px; }
.is-tall .fl-share-stamp b { font-size: 22px; }
.is-tall .fl-share-stamp small { font-size: 10px; }
.is-tall .fl-share-pm { display: none; }
.is-tall .fl-share-lines { margin-top: 0; }
.is-tall .fl-share-line { margin-top: 14px; }
.is-tall .fl-share-row .v { font-size: 15px; }
.is-tall .fl-share-note { display: none; }
.is-tall .fl-share-back { left: 30px; bottom: 22px; }

/* ---------- tall (phone) ticket: two short rows ---------- */
.is-tall .fl-ticket { margin: 0 10px 10px; display: block; }
.is-tall .fl-t-head { padding: 24px 0 0 26px; width: 236px; box-sizing: border-box; }
.is-tall .fl-t-head .fl-t-title { display: none; }
.is-tall .fl-t-title { font-size: 36px; }
.is-tall .fl-brand { font-size: 18px; }
.is-tall .fl-t-round { width: 236px; box-sizing: border-box; margin: 0; padding: 18px 0 0 26px; border: 0; display: block; }
.is-tall .fl-t-round small { display: block; }
.is-tall .fl-t-round b { display: block; font-size: 52px; margin-top: 8px; }
.is-tall .fl-t-meta { flex-wrap: wrap; }
.is-tall .fl-dial { position: absolute; right: 24px; top: 14px; width: 172px; height: 172px; margin: 0; }
.is-tall .fl-dial-num b { font-size: 48px; }
.is-tall .fl-t-next { display: none; }
.is-tall .fl-tools { position: absolute; left: 258px; top: 22px; width: 180px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.is-tall .fl-tool { height: 70px; flex: none; }
.is-tall .fl-t-hist { position: absolute; left: 0; right: 0; bottom: 0; height: 136px; margin: 0; padding: 14px 22px 12px; box-sizing: border-box; }
.is-tall .fl-h-list {
  display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; margin-top: 10px; padding-bottom: 4px;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.is-tall .fl-h-list::-webkit-scrollbar { display: none; }
.is-tall .fl-h-item { flex: 0 0 auto; }
.is-tall .fl-ratio { display: none; }

/* ---------- tip (chip details) ---------- */
.fl-tip {
  position: fixed; z-index: 50; min-width: 170px; max-width: 240px; padding: 12px 14px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font: 500 14px/1.35 var(--font-ui);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .15s, transform .15s;
}
.fl-tip.is-on { opacity: 1; transform: none; }
.fl-tip::after { content: ''; position: absolute; left: var(--arrow, 50%); bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.fl-tip .hd { display: flex; align-items: center; gap: 10px; }
.fl-tip .ic { width: 34px; height: 34px; padding: 6px; box-sizing: border-box; border-radius: 50%; background: var(--paper); color: var(--side); }
.fl-tip .ic svg { width: 100%; height: 100%; display: block; }
.fl-tip small { display: block; font-size: 12px; opacity: .7; }
.fl-tip strong { font: 800 16px/1.1 var(--font-ui); }
.fl-tip p { margin: 8px 0 0; }
.fl-tip .row { display: flex; justify-content: space-between; gap: 14px; margin-top: 6px; }
.fl-tip .row span { opacity: .7; }

.fl-hint {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40;
  padding: 10px 18px; border-radius: 999px; background: rgba(43, 29, 26, .86); color: var(--paper);
  font: 700 13px/1 var(--font-ui); transition: opacity .4s; pointer-events: none; white-space: nowrap;
}
.fl-hint.is-off { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .fl-rays, .fl-brand-star svg { animation: none; }
}

/* ---------- scene kit: the parts every game scene shares ----------
 * Sunburst background, "Greetings from" title, round postmark and sparkles.
 * A scene sets --sun-a / --sun-b (ray colours) on .fl-sun and its own centrepiece. */
.fl-sun { position: absolute; inset: 0; overflow: hidden; background: var(--sun-b, #fde9b8); }
.fl-sun i {
  position: absolute; left: 50%; top: var(--sun-y, 56%); width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px;
  background: repeating-conic-gradient(from 0deg, var(--sun-a, #f6c858) 0deg 9deg, var(--sun-b, #fde9b8) 9deg 18deg);
  animation: fl-spin 90s linear infinite;
}
.fl-sc { position: absolute; inset: 0; }
.fl-head { position: absolute; left: 0; right: 0; top: 34px; text-align: center; z-index: 3; }
.is-tall .fl-head { top: 26px; }
.fl-greet { display: block; font: 400 30px/1 var(--font-brand); color: var(--greet, var(--teal-d)); }
.fl-title {
  margin: 4px 0 0; font: 400 76px/1 var(--font-num); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  color: var(--suit-black); text-shadow: 4px 4px 0 var(--paper), 8px 8px 0 rgba(43, 29, 26, .18);
}
.is-tall .fl-title { font-size: 64px; }
.fl-title .amp { font-family: var(--font-brand); color: var(--mustard-d); font-size: .62em; vertical-align: .18em; }
.fl-title .hl { display: inline-block; }
.fl-title .hl.is-hot { animation: fl-bounce .5s ease-in-out 4; }
@keyframes fl-bounce { 50% { transform: translateY(-10px) scale(1.06); } }

.fl-postmark { position: absolute; left: 34px; bottom: 34px; width: 150px; height: 150px; transform: rotate(-14deg); color: var(--pm, var(--teal-d)); opacity: .85; z-index: 1; }
.is-tall .fl-postmark { left: 18px; bottom: 18px; width: 118px; height: 118px; }
.fl-postmark .ring {
  position: absolute; inset: 0; border-radius: 50%; border: 4px solid currentColor; box-shadow: inset 0 0 0 6px var(--paper-2), inset 0 0 0 8px currentColor;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255, 248, 234, .5);
}
.fl-postmark span { font: 800 12px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.fl-postmark b { font: 400 30px/1.1 var(--font-num); }
.is-tall .fl-postmark b { font-size: 24px; }
.is-tall .fl-postmark span { font-size: 10px; }
.fl-postmark i {
  position: absolute; left: 100%; top: 50%; width: 150px; height: 48px; margin-top: -24px; margin-left: 6px;
  background: repeating-linear-gradient(180deg, transparent 0 8px, currentColor 8px 12px);
  -webkit-mask: radial-gradient(14px 10px at 50% 0, transparent 98%, #000) 0 0 / 28px 100%;
  opacity: .7;
}
.is-tall .fl-postmark i { width: 90px; }

.fl-spark { position: absolute; width: 46px; height: 46px; z-index: 3; background: var(--paper); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: fl-spark 2.4s ease-in-out infinite; }
.fl-spark.s1 { left: 15%; top: 36%; }
.fl-spark.s2 { right: 14%; top: 30%; width: 34px; height: 34px; animation-delay: .8s; }
.fl-spark.s3 { right: 17%; bottom: 18%; width: 54px; height: 54px; animation-delay: 1.4s; }
.fl-spark.s4 { left: 20%; bottom: 14%; width: 30px; height: 30px; animation-delay: 2s; }
.is-tall .fl-spark.s1 { left: 5%; top: 30%; }
.is-tall .fl-spark.s2 { right: 5%; top: 26%; }
.is-tall .fl-spark.s3 { right: 4%; bottom: 7%; }
.is-tall .fl-spark.s4 { display: none; }
@keyframes fl-spark { 50% { transform: scale(.45) rotate(45deg); opacity: .6; } }

@media (prefers-reduced-motion: reduce) { .fl-sun i, .fl-spark { animation: none; } }
