.scratch-icon{
  background:linear-gradient(145deg,#fb866b,#ed5642 56%,#b72d32);
}
.scratch-icon>span{
  display:flex;align-items:center;justify-content:center;gap:12%;width:70%;height:49%;
  border:1px solid #8f392b35;border-radius:18%;transform:rotate(-13deg);
  background:linear-gradient(160deg,#fff5cf,#ffc67b);box-shadow:0 3px 7px #78151f51;
  mask:radial-gradient(circle at left,transparent 9%,#000 10%) left/51% 100% no-repeat,
       radial-gradient(circle at right,transparent 9%,#000 10%) right/51% 100% no-repeat;
}
.scratch-icon i{width:13%;aspect-ratio:1;background:#bd473a;border-radius:50%;box-shadow:inset 0 1px 1px #861e2b60}
#app.scratch-app{background:#fafaf9;color:#171717;--blue:#202020}
.scratch-app .nav-back{background:transparent;box-shadow:none;color:#171717}
.scratch-balance{
  color:#555;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.scratch-content{padding:8px clamp(13px,4.4cqw,22px) 26px}
.scratch-counter,.scratch-pool,.scratch-card-copy,.scratch-stage,.scratch-actions,.scratch-rule{
  max-width:500px;margin-inline:auto;
}
.scratch-resume{
  width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;
  gap:10px;text-align:start;padding:7px 0;margin-bottom:18px;border-bottom:1px solid #dddedb;
  color:#171717;font-size:14px;
}
.scratch-resume strong{font-weight:650}
.scratch-resume>span,.scratch-display-caption>span:last-child{display:flex;align-items:center;gap:5px;color:#60605d}
.scratch-series+.scratch-series{margin-top:19px;padding-top:15px;border-top:1px solid #dddedb}
.scratch-series-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.scratch-series-head h2,.scratch-card-copy h1{font-size:21px;font-weight:700;letter-spacing:-.025em;line-height:1.15}
.scratch-series-head>span{font-size:15px;font-variant-numeric:tabular-nums}
.scratch-card-copy p{margin:5px 0 12px;font-size:13px;color:#60605d;line-height:1.35}
.scratch-display{display:block;width:100%;text-align:start;color:#171717}
.scratch-display .scratch-ticket,.scratch-stage .scratch-ticket{box-shadow:0 2px 5px #0002}
.scratch-display-caption{
  min-height:34px;display:flex;justify-content:space-between;align-items:center;
  gap:8px;font-size:13px;
}
.scratch-styles{
  display:grid;grid-template-columns:repeat(var(--scratch-style-count),minmax(0,1fr));
  gap:6px;
}
.scratch-style{display:grid;align-content:start;min-width:0;min-height:44px;padding:2px 0;border-bottom:2px solid transparent}
.scratch-style[aria-pressed="true"]{border-color:#202020}
.scratch-style:active,.scratch-display:active{opacity:.8}
.scratch-play-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.scratch-sound{
  display:grid;place-items:center;width:42px;height:42px;flex:none;margin-bottom:10px;
  color:#171717;background:transparent;border:1px solid #dddedb;border-radius:50%;
}
.scratch-stage{
  position:relative;
}
.scratch-ticket{position:relative;width:100%;aspect-ratio:8/5;isolation:isolate;background:#527759}
.scratch-art-frame{position:absolute;inset:0;overflow:hidden}
.scratch-ticket-art{position:absolute;left:0;width:100%;height:auto;display:block;user-select:none;pointer-events:none}
.scratch-ticket-sample{
  position:absolute;left:72.9%;top:81.1%;width:24.6%;height:12.5%;
  display:grid;place-items:center;background:#fff;color:#281f28;
  font-family:ui-monospace,monospace;font-size:clamp(9px,2.45cqw,13px);font-weight:750;letter-spacing:.12em;
}
.scratch-eights .scratch-ticket-sample{left:72.4%;top:90%;width:24.5%;height:6.5%}
.scratch-board{
  position:absolute;background:#d29bc4;color:#31222f;
  touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:grab;
}
.scratch-board:active{cursor:grabbing}
.scratch-eights .scratch-board{background:#f3c5d9;color:#28202a}
.scratch-board:not([data-ready]){visibility:hidden}
.scratch-board canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.scratch-board[data-complete]{cursor:default}
.scratch-luck .scratch-board[data-complete]::before{
  content:"";position:absolute;right:0;bottom:0;width:135%;height:12%;background:inherit;
}
.scratch-print-title,.scratch-print-footer,.scratch-cell small{
  font-family:ui-monospace,monospace;font-weight:700;font-size:clamp(5px,1.5cqw,9px);letter-spacing:.075em;
}
.scratch-print-title,.scratch-print-footer{position:absolute;width:100%;text-align:center;line-height:1}
.scratch-print-title{top:8%}
.scratch-print-footer{bottom:5%;letter-spacing:.24em}
.scratch-luck .scratch-board[data-complete] .scratch-print-footer::after{
  content:"";position:absolute;top:150%;right:4%;width:124%;height:1px;background:currentColor;
}
.scratch-printed-grid{
  position:absolute;left:35%;right:3%;top:9%;height:77%;background:
    repeating-linear-gradient(0deg,currentColor 0 2px,transparent 2px 4px) 34% 0 / 1px 100% no-repeat,
    repeating-linear-gradient(0deg,currentColor 0 2px,transparent 2px 4px) 67% 0 / 1px 100% no-repeat,
    repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px) 0 33% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px) 0 68% / 100% 1px no-repeat;
  opacity:.69;
}
.scratch-cell{
  position:absolute;display:grid;justify-items:center;align-content:center;gap:1px;
  line-height:1;color:inherit;white-space:nowrap;cursor:inherit;
}
.scratch-cell-box{border:1px solid currentColor}
.scratch-cell:focus-visible{outline:none}
.scratch-cell:focus-visible::after{
  content:"";position:absolute;inset:1px;border:2px solid #005cb8;border-radius:3px;z-index:1;
}
.scratch-cell b{
  font-family:"Arial Narrow",Arial,sans-serif;font-size:clamp(11px,4.1cqw,21px);
  font-weight:900;letter-spacing:-.065em;text-shadow:.25px 0 currentColor;
}
.scratch-eights .scratch-cell b{font-size:clamp(14px,5.75cqw,28px)}
.scratch-eights .scratch-cell-box b{font-size:clamp(10px,3.75cqw,17px)}
.scratch-eights .scratch-cell b.scratch-eight{color:transparent;-webkit-text-stroke:1px #28202a;text-shadow:none}
.scratch-cell sup{vertical-align:super;font-size:.54em;letter-spacing:0;margin-inline-start:1px}
.scratch-actions{margin-top:14px;display:grid;gap:9px;text-align:center}
.scratch-actions .primary{background:#202020;color:#fff;min-height:47px}
.scratch-actions .primary:disabled{opacity:.54}
.scratch-status{color:#4c564b;font-size:14px;line-height:1.36;font-weight:580}
.scratch-status strong,.scratch-status span{display:block}
.scratch-status strong{font-size:17px;color:#284437}
.scratch-status-win strong{font-size:23px;color:#14573f;margin-bottom:3px}
.scratch-rule{font-size:13px;line-height:1.42;color:#525e51;margin-top:13px;text-align:center}
.scratch-pool{margin-top:15px;padding:0 13px 2px;border:1px solid #e2e5da;border-radius:12px;background:#fff;font-size:13px}
.scratch-pool summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;padding:12px 0;color:#214837}
.scratch-pool summary::-webkit-details-marker{display:none}
.scratch-pool summary>span::before{content:"▸";display:inline-block;margin-inline-end:7px}
.scratch-pool[open] summary>span::before{transform:rotate(90deg)}
.scratch-pool-stats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:0 0 8px;color:#50594e}
.scratch-pool table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.scratch-pool :is(th,td){padding:7px 0;border-top:1px solid #eeeee8;text-align:start;font-weight:500}
.scratch-pool :is(td,th:last-child){text-align:end}
.scratch-scanning{overflow:hidden}
.scratch-scanning::after{
  position:absolute;content:"";left:2%;right:2%;top:0;height:2px;background:#a0f4cd;
  box-shadow:0 0 13px 3px #74f3ad99;pointer-events:none;animation:scratch-scan .7s ease-in-out both;
}
@keyframes scratch-scan{from{top:5%;opacity:0}15%,85%{opacity:1}to{top:95%;opacity:0}}
@media (prefers-reduced-motion:reduce){.scratch-scanning::after{animation:none;display:none}}
/* UIKit-style price menu; variable amounts are typeset on every ticket face. */
.scratch-price-row{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 0 12px;margin-bottom:16px;border-bottom:1px solid #e6e6e8;font-size:15px;z-index:5}.scratch-price-row>span{color:#77777d}.scratch-price-trigger{display:flex;align-items:center;gap:6px;color:#007aff;font-size:17px;font-weight:500;min-height:32px;padding:0 2px}.scratch-price-menu{position:absolute;right:-2px;top:35px;width:178px;border-radius:13px;background:#f9f9fbeF;box-shadow:0 8px 30px #0003;overflow:hidden;z-index:7;backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px)}.scratch-price-menu>button{display:flex;align-items:center;justify-content:space-between;min-height:44px;width:100%;padding:10px 17px;font-size:17px;font-weight:400;background:#fafafae6;border-bottom:1px solid #dadadd;color:#17171b}.scratch-price-menu>button:last-child{border-bottom:0}.scratch-price-menu>button:active{background:#e5e5ea}.scratch-price-menu>button>svg{color:#007aff}.scratch-price-scrim{position:absolute;inset:0;background:none;z-index:4}.scratch-face-value{position:absolute;left:1.5%;top:9.7%;width:7%;height:7.8%;z-index:2;overflow:visible;pointer-events:none}.scratch-eights .scratch-face-value{top:10.5%}.scratch-face-prize{position:absolute;left:51.4%;top:7%;width:42%;height:13.8%;z-index:2;pointer-events:none}.scratch-eights .scratch-face-prize{left:60.3%;top:67.2%;width:37.1%;height:18.3%}.scratch-ticket-stake,.scratch-denominations{display:none}
.scratch-cell b{font-size:clamp(9px,calc(4.1cqw * var(--scratch-number-scale,1)),21px)}.scratch-eights .scratch-cell-box b{font-size:clamp(9px,calc(3.75cqw * var(--scratch-number-scale,1)),17px)}
