html.source-page #lb-stage {
  --ink: #25263e;
  --yellow: #ffd43b;
  --paper: #fff8e8;
  --daub: #fe765e;
  --blue: #99d9e2;
  position: absolute;
  left: 50%; top: 50%;
  width: 1080px; height: 1920px;
  transform: translate(-50%, -50%) scale(var(--lb-scale, 1));
  display: flex; flex-direction: column;
  gap: 22px; padding: 34px 46px 24px;
  color: var(--ink);
  font: 900 26px/1.12 Inter, "Segoe UI", Arial, sans-serif;
  paint-order: stroke fill;
}
#lb-stage, #lb-stage *, #lb-stage *::before, #lb-stage *::after { box-sizing: border-box; }
#lb-stage :is(h1,h2,p) { margin: 0; }
#lb-stage [hidden] { display: none !important; }
#lb-header, #lb-ticket, #lb-floater {
  background: var(--paper); border: 4px solid var(--ink); border-radius: 20px;
  box-shadow: 5px 7px 0 var(--ink);
}
#lb-header { flex: none; position: relative; overflow: hidden; padding: 20px 38px 24px; background: var(--yellow); }
#lb-header::after {
  content: ""; position: absolute; width: 46%; inset-block: 0; right: 0;
  background-image: radial-gradient(#25263e33 1.6px, transparent 2px);
  background-size: 10px 10px; mask-image: linear-gradient(90deg,transparent,#000);
}
.lb-brand, .lb-card-head, .lb-rule { display: flex; align-items: center; }
.lb-brand, .lb-card-head h2, .lb-rule h2, #lb-receipt-label {
  text-transform: uppercase; font-size: 22px; font-weight: 900; letter-spacing: 2.6px;
}
.lb-brand { gap: 10px; }
.lb-brand i { position: relative; width: 36px; height: 27px; }
.lb-brand i::before, .lb-brand i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 19px;
  border-top: 6px solid var(--ink); border-right: 6px solid var(--ink); transform: rotate(35deg) skew(-10deg);
}
.lb-brand i::after { left: 17px; }
#lb-header h1 { position: relative; z-index: 1; font-size: 113px; line-height: 1; letter-spacing: -9px; }
#lb-header h1 em { font-style: italic; }
#lb-header p { margin-top: 9px; font-size: 28px; font-weight: 740; letter-spacing: -.7px; }
#lb-dauber { position: absolute; z-index: 1; right: 8px; top: 0; height: 100%; width: 33%; object-fit: contain; }
#lb-ticket { position: relative; display: flex; flex-flow: column; flex: 1 1 0; min-height: 0; }
.lb-card-head {
  flex: none; padding: 17px 24px 15px; gap: 18px;
  background: #c3e9e3; border-radius: 16px 16px 0 0; border-bottom: 3px dashed var(--ink);
}
.lb-card-head h2 { font-size: 29px; letter-spacing: 2px; }
#lb-count { font-size: 26px; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.lb-perforation { height: 12px; flex: 1; background: radial-gradient(circle,var(--ink) 2px,transparent 2.5px) left center / 12px 12px repeat-x; opacity: .45; }
.lb-grid-wrap { flex: 1 1 0; position: relative; min-height: 0; margin: 16px; }
#lb-card { display: grid; height: 100%; grid-template: repeat(var(--size,4), minmax(0,1fr)) / repeat(var(--size,4), minmax(0,1fr)); gap: 7px; }
.lb-cell {
  position: relative; isolation: isolate; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  container-type: size; padding: 11px 6px; overflow: hidden;
  border: 2px solid #827e7d; border-radius: 11px; background: #fffcf2; text-align: center;
}
.lb-cell:nth-child(3n+1) { background: #fff8e9; }
.lb-cell[data-marked=false]::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(115deg,transparent 35%,#ffe59d5e 50%,transparent 65%);
  transform: translateX(-110%); animation: lb-shimmer 8s ease-in-out infinite; animation-delay: var(--lag);
}
.lb-symbol { position: relative; min-height: 0; width: min(53%,46cqh); aspect-ratio: 1; flex: 0 1 auto; }
.lb-symbol canvas { width: 100%; height: 100%; object-fit: contain; }
.lb-label { max-width: 100%; font-weight: 830; font-size: 34px; line-height: 1.04; letter-spacing: -1.3px; text-wrap: balance; overflow-wrap: anywhere; }
#lb-stage[data-size="3"] .lb-label { font-size: 41px; }
#lb-stage[data-size="5"] .lb-label { font-size: 28px; }
.lb-cell[data-long=true] .lb-label { font-size: 26px; }
#lb-stage[data-size="5"] .lb-cell[data-long=true] .lb-label { font-size: 23px; }
.lb-name { max-width: 97%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 29px; line-height: 1.2; letter-spacing: -1px; }
#lb-stage[data-size="5"] .lb-name { font-size: 23px; }
.lb-cell[data-marked=true] { background: color-mix(in srgb,var(--daub) 21%,var(--paper)); border-color: var(--ink); }
.lb-cell[data-marked=true] .lb-label { font-size: 24px; letter-spacing: -.7px; }
#lb-stage[data-size="5"] .lb-cell[data-marked=true] .lb-label { font-size: 20px; }
.lb-cell[data-line=true] { border: 4px solid var(--ink); box-shadow: inset 0 0 0 5px var(--yellow),inset 0 0 26px #ffd43b; }
.lb-cell.lb-hit { animation: lb-pop .48s both cubic-bezier(.18,.85,.3,1); }
.lb-cell.lb-hit .lb-symbol { animation: lb-ink .6s both; }
@keyframes lb-shimmer { 0%,65% { transform: translateX(-110%); } 85%,100% { transform: translateX(110%); } }
@keyframes lb-pop { 0% { transform: scale(.86); } 40% { transform: scale(1.035); } 100% { transform: none; } }
@keyframes lb-ink { 0% { transform: scale(1.5) rotate(-16deg); opacity: .4; } 42% { transform: scale(.93) rotate(3deg); opacity: 1; } 100% { transform: none; } }
#lb-lines, #lb-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#lb-lines { z-index: 1; }
#lb-confetti { z-index: 3; }
.lb-flight {
  position: absolute; z-index: 4; transform: translateX(-50%); pointer-events: none;
  max-width: 224px; border: 3px solid var(--ink); border-radius: 8px; padding: 5px 9px;
  color: var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink);
  font-size: 22px; letter-spacing: -.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: lb-float 1.55s both;
}
.lb-flight[data-gold=true] { background: var(--yellow); }
@keyframes lb-float {
  0% { opacity: .4; transform: translate(-50%,9px) scale(.85); }
  13%,78% { opacity: 1; transform: translate(-50%,0) rotate(-2deg); }
  100% { opacity: 0; transform: translate(-50%,-12px); }
}
#lb-banner {
  flex: none; display: flex; align-items: center; gap: 18px; min-height: 102px; padding: 14px 25px;
  border-top: 3px dashed var(--ink); border-radius: 0 0 16px 16px; background: #f3ead4;
}
#lb-banner-symbol { display: block; position: relative; width: 58px; height: 58px; flex: none; }
#lb-banner-symbol canvas { width: 100%; height: 100%; }
#lb-banner > div { min-width: 0; }
#lb-banner-title, #lb-banner-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lb-banner-title { display: block; font-size: 35px; letter-spacing: -1.5px; }
#lb-banner-detail { margin-top: 4px; font-size: 22px; font-weight: 710; }
#lb-banner[data-kind=bingo], #lb-banner[data-kind=blackout] { background: var(--yellow); }
#lb-banner[data-kind=blackout] { box-shadow: inset 0 0 0 5px #fff0a0; }
#lb-banner[data-kind=blackout] #lb-banner-title { font-size: 46px; }
#lb-floater { flex: none; position: relative; display: flex; gap: 18px; align-items: center; padding: 16px 24px; min-height: 123px; background: #c3e9e3; }
#lb-floater::before { content: ""; position: absolute; top: 13px; bottom: 13px; left: 119px; border-left: 3px dashed #25263e60; }
#lb-floater[data-effect=true] { background: color-mix(in srgb,var(--daub) 38%,var(--paper)); }
#lb-floater[data-gold=true] { background: var(--yellow); }
#lb-imprint { width: 78px; height: 78px; margin-right: 18px; flex: none; }
#lb-imprint > :is(canvas,span) { width: 100%; height: 100%; }
#lb-imprint .tt-core-avatar { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); }
.lb-receipt-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
#lb-receipt-label { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lb-receipt-name { font-size: 38px; letter-spacing: -1.55px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#lb-impact { margin-left: auto; padding: 3px 11px; border: 3px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: 42px; transform: rotate(-4deg); }
#lb-gifts { flex: none; border: 3px solid var(--ink); border-radius: 16px; background: #fff8e8; padding: 15px 22px 18px; box-shadow: 4px 5px 0 var(--ink); }
.lb-rule { gap: 13px; }
.lb-rule h2 { font-size: 20px; line-height: 1; letter-spacing: 2.3px; }
.lb-rule i { flex: 1; height: 3px; background: repeating-linear-gradient(90deg,var(--ink) 0 4px,transparent 4px 10px); opacity: .5; }
#lb-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 25px; margin-top: 13px; }
.lb-gift { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; min-width: 0; }
.lb-gift > canvas { width: 59px; height: 59px; }
.lb-gift > div { min-width: 0; }
.lb-gift :is(b,span) { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-gift b { font-size: 26px; letter-spacing: -.9px; }
.lb-gift span { margin-top: 2px; font-size: 22px; font-weight: 730; letter-spacing: -.35px; }
[data-tt-gift-icons=off] .lb-gift { grid-template-columns: 1fr; }
[data-tt-gift-icons=off] .lb-gift > canvas { display: none; }
#lb-connection:not(:has(.tt-core-notice:not([hidden]))) { display: none; }
#lb-connection { flex: none; }
#lb-connection .tt-core-overlay-status { position: static; width: 100%; transform: none; z-index: auto; margin: 0; text-align: left; }
#lb-connection .tt-core-pill { display: none !important; }
#lb-connection .tt-core-notice {
  margin: 0; padding: 12px 20px; border: 3px solid var(--ink); border-radius: 13px;
  color: #25263e; background: #fff8e8; box-shadow: none; font: 700 20px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}
#lb-connection .tt-core-notice :is(strong,a) { color: #25263e; font-size: inherit; font-weight: 900; }
#lb-connection .tt-game-page-link { display: block; margin-top: .24em; }
#lb-stage footer {
  flex: none; text-align: center; color: #fff; font-size: 21px; font-weight: 900;
  -webkit-text-stroke: 4px #25263e; paint-order: stroke fill;
}
[data-reduced-motion="1"] :is(.lb-cell,.lb-symbol,.lb-flight), [data-reduced-motion="1"] .lb-cell::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .lb-cell, .lb-cell .lb-symbol, .lb-flight, .lb-cell[data-marked=false]::after { animation: none !important; }
}
