.ready { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; background: var(--ink); color: #fff; padding: 40px 44px; }
.ready h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.ready .say { font-size: 14.5px; color: #c9c9c4; margin-top: 6px; font-weight: 500; }
.ready .openrow { margin-top: 22px; }
.ready .btn.line { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.ready .tk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; font-size: 13.5px; color: #c9c9c4; font-weight: 600; }
.ready .tk b { color: #fff; font-weight: 800; }
.step { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px #4a4a47; }
.step button { width: 32px; height: 32px; color: #fff; font-size: 16px; font-weight: 700; }
.step span { min-width: 36px; text-align: center; color: #fff; font-weight: 800; font-size: 14px; }
.tog { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.tog input { appearance: none; width: 16px; height: 16px; box-shadow: inset 0 0 0 1.5px #8a8a85; margin: 0; }
.tog input:checked { background: var(--acc); box-shadow: none; }
.minibtn { height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 800; color: #fff; box-shadow: inset 0 0 0 1px #4a4a47; }
.minibtn:disabled { color: #5c5c58; cursor: default; }

.box { --g: #4a4a47; position: relative; width: 190px; height: 150px; margin: 0 auto; }
.box .lid { position: absolute; left: -8px; right: -8px; top: 0; height: 40px; background: #2e2e2c; box-shadow: inset 0 0 0 2px #55554f; }
.box .seam { position: absolute; left: 0; right: 0; top: 40px; height: 5px; background: var(--g); transition: background .45s, box-shadow .45s; }
.box .body { position: absolute; left: 0; right: 0; top: 45px; bottom: 0; background: repeating-linear-gradient(90deg, #1e1e1d 0 17px, #262624 17px 19px); box-shadow: inset 0 0 0 2px #55554f; }
.box .strap { position: absolute; left: 50%; top: 0; bottom: 0; width: 34px; margin-left: -17px; background: var(--acc); }
.box .strap::after { content: ""; position: absolute; left: 7px; right: 7px; top: 62px; height: 20px; background: var(--ink); }
.box.leak .seam { box-shadow: 0 0 34px 10px var(--g); }

.stage { position: fixed; inset: 0; z-index: 100; background: #060606; color: #fff; display: none; flex-direction: column; }
.stage.on { display: flex; }
.stage .bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; font-size: 14px; font-weight: 700; color: #8a8a85; }
.stage .bar b { color: #fff; font-weight: 800; }
.stage .bar button { color: #c9c9c4; font-weight: 700; font-size: 14px; padding: 6px 4px; }
.stage .mid { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 18px; min-height: 0; }
.stage .mid.shake { animation: shake .36s; }
.stage .base { min-height: 132px; padding: 14px 24px 26px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; text-align: center; }
.stage .tip { font-size: 14px; color: #8a8a85; font-weight: 600; }
.stage .sum { font-size: 15px; font-weight: 700; line-height: 1.6; }
.stage .sum small { display: block; font-size: 13px; color: #c9c9c4; font-weight: 500; }
.stage .sum .cost { color: var(--acc); }
.stage .btn.line { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.stage .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.dropbox { position: absolute; left: 50%; top: 50%; margin: -75px 0 0 -95px; }
.dropbox.fall { animation: fall var(--t1, .9s) cubic-bezier(.5, 0, .9, .6) both; }
.dropbox.rumble { animation: rumble .16s linear infinite; }
.dropbox.out { transition: transform .28s ease-in, opacity .28s; transform: scale(.4); opacity: 0; }
.dust { position: absolute; left: 50%; top: 50%; width: 150px; height: 46px; margin: 52px 0 0 -75px; border-radius: 50%; background: #3a3a37; opacity: 0; }
.dust.go { animation: puff .9s ease-out both; }
.dust.l.go { animation-name: puffl; }
.dust.r.go { animation-name: puffr; }

@keyframes fall { 0% { transform: translateY(-120vh) rotate(-5deg); } 76% { transform: translateY(0) rotate(0) scale(1, 1); } 82% { transform: translateY(7px) scale(1.06, .88); } 91% { transform: translateY(-11px) scale(.98, 1.04); } 100% { transform: translateY(0) scale(1); } }

.stage .lights { position: absolute; inset: 0; pointer-events: none; }
.stage .lights i { position: absolute; height: 3px; background: #e8e8e4; opacity: 0; }
.stage .lights i:nth-child(1) { left: 9%; top: 13%; width: 10%; }
.stage .lights i:nth-child(2) { left: 27%; top: 21%; width: 7%; }
.stage .lights i:nth-child(3) { left: 46%; top: 9%; width: 11%; }
.stage .lights i:nth-child(4) { left: 67%; top: 18%; width: 8%; }
.stage .lights i:nth-child(5) { left: 84%; top: 11%; width: 9%; }
.stage.lit .lights i { animation: flick 1.3s ease-out both; }
.stage.lit .lights i:nth-child(2n) { animation-delay: .12s; }
.stage.dim .lights i { opacity: .12; animation: none; transition: opacity .4s; }
.spot { position: absolute; left: 50%; top: 50%; width: 460px; height: 76px; margin: 58px 0 0 -230px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .17), transparent); opacity: 0; pointer-events: none; }
.spot.go { animation: spot .55s ease-out both; }
.spot.gold { background: radial-gradient(closest-side, rgba(246, 191, 0, .5), transparent); transition: background .4s; }
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -30px 0 0 -3px; background: #f6bf00; opacity: 0; pointer-events: none; animation: spark .75s ease-out both; }
@keyframes flick { 0% { opacity: 0; } 18% { opacity: .75; } 27% { opacity: .12; } 42%, 100% { opacity: .42; } }
@keyframes spot { 0% { opacity: 0; transform: scaleX(.5); } 60% { opacity: 1; transform: scaleX(1.12); } 100% { opacity: .85; transform: scaleX(1); } }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }
@keyframes sheen { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-9px, 6px); } 40% { transform: translate(8px, -5px); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(3px, -2px); } }
@keyframes rumble { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2px, 1px); } 75% { transform: translate(2px, -1px); } }
@keyframes puff { 0% { opacity: .75; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.4) translateY(-8px); } }
@keyframes puffl { 0% { opacity: .6; transform: translateX(-30px) scale(.4); } 100% { opacity: 0; transform: translateX(-190px) scale(2.6) translateY(-14px); } }
@keyframes puffr { 0% { opacity: .6; transform: translateX(30px) scale(.4); } 100% { opacity: 0; transform: translateX(190px) scale(2.6) translateY(-14px); } }

.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 166px)); gap: 16px; justify-content: center; width: 100%; max-width: 900px; }
.cards.one { grid-template-columns: minmax(0, 230px); }
.card { position: relative; aspect-ratio: 3 / 4; perspective: 900px; cursor: pointer; opacity: 0; transform: translateY(-34px) scale(.88); }
.card.in { opacity: 1; transform: none; transition: opacity .16s, transform .24s cubic-bezier(.2, 1.5, .4, 1); }
.card .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .46s cubic-bezier(.3, 1.25, .5, 1); }
.card.open { cursor: default; }
.card.open .inner { transform: rotateY(180deg); }
.card .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card .back { --f: #7a5230; background: #141413; box-shadow: inset 0 0 0 3px var(--f); display: grid; place-items: center; }
.card .back svg { width: 34%; opacity: .5; }
.card .back.gold { --f: #f6bf00; box-shadow: inset 0 0 0 3px var(--f), 0 0 16px rgba(246, 191, 0, .32); }
.card .back.silver { --f: #c9c9c4; }
.card .back.bronze { --f: #8a5a34; }
.card .back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .13) 50%, transparent 58%); background-size: 260% 100%; animation: sheen 2.6s linear infinite; pointer-events: none; }
.card .back.gold::after { background-image: linear-gradient(115deg, transparent 40%, rgba(246, 191, 0, .3) 50%, transparent 60%); animation-duration: 2s; }
.card .back.bronze::after { display: none; }
.card:not(.open):hover .back { background: #1e1e1c; }

.card.in:not(.open):not(.hold) .back.gold { animation: hint 1.5s ease-in-out infinite; }

.card.hold { animation: holdshake var(--h, .9s) ease-in-out both; }
.card.hold .back.gold { box-shadow: inset 0 0 0 3px var(--f), 0 0 44px 8px rgba(246, 191, 0, .75); }
.card.hold .back.silver { box-shadow: inset 0 0 0 3px var(--f), 0 0 22px 2px rgba(255, 255, 255, .35); }
.card .veil { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.card.hold .veil { animation: veil var(--h, .9s) ease-in-out both; }

.card.pop { animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.card.pop .veil { animation: flashout .8s ease-out both; }
.card .ct { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); background: rgba(11, 11, 11, .9); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .04em; padding: 9px 16px; white-space: nowrap; pointer-events: none; animation: toast 1s ease-out both; }
@keyframes hint { 0%, 100% { box-shadow: inset 0 0 0 3px var(--f), 0 0 0 0 rgba(246, 191, 0, .55); } 50% { box-shadow: inset 0 0 0 3px var(--f), 0 0 0 10px rgba(246, 191, 0, 0); } }
@keyframes holdshake { 0% { transform: translateX(0); } 10% { transform: translateX(-9px); } 20% { transform: translateX(8px); } 30% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 50% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 70% { transform: translateX(-3px); } 80% { transform: translateX(2px); } 90% { transform: translateX(-1px); } 100% { transform: translateX(0); } }
@keyframes veil { 0% { opacity: 0; } 15% { opacity: .55; } 50% { opacity: .22; } 85% { opacity: .5; } 100% { opacity: .1; } }
@keyframes flashout { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.13); } 60% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 28% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rays { 0% { transform: rotate(0deg); } 100% { transform: rotate(70deg); } }
.card .front { transform: rotateY(180deg); background: var(--g); color: #fff; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; }
.card .front .pc { flex: 1; min-height: 0; display: grid; place-items: center; }
.card .front .pc svg { width: 54%; height: auto; max-height: 100%; }
.card .front .tx { display: flex; flex-direction: column; }
.card .front .cb { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; background: rgba(11, 11, 11, .42); padding: 2px 6px; }
.lastgrid .t .pc { margin-bottom: auto; padding-bottom: 10px; color: var(--g); }
.lastgrid .t .pc svg { display: block; width: 30px; height: 30px; }
.lastgrid .t.hi .pc { color: #fff; }
.bigwin .bp svg { width: 96px; height: 96px; margin-bottom: 18px; }
.card .front .gr { font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .88; }
.card .front .nm { font-size: 14px; font-weight: 800; line-height: 1.32; letter-spacing: -.01em; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .front .tk { font-size: 11px; font-weight: 600; opacity: .8; margin-top: 6px; }
.card.burst::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; animation: ring .7s ease-out both; pointer-events: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); } 100% { box-shadow: 0 0 0 90px rgba(255, 255, 255, 0); } }

.bigwin { position: absolute; inset: 0; z-index: 5; background: var(--g); display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: pointer; }
.bigwin { overflow: hidden; }
.bigwin.on { display: flex; animation: flash .55s ease-out both; }
.bigwin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .13) 0 5deg, transparent 5deg 15deg); animation: rays 7s linear infinite; }
.bigwin p { position: relative; }
.bigwin .gr { font-size: 14px; font-weight: 800; letter-spacing: .24em; }
.bigwin .nm { font-size: 58px; font-weight: 900; letter-spacing: -.03em; line-height: 1.18; margin-top: 16px; min-height: 1.2em; }
.bigwin .sub { font-size: 14px; font-weight: 600; opacity: .85; margin-top: 20px; }
.stage .bar .live { color: var(--acc); font-weight: 800; margin-right: 16px; }
.oplog { margin-top: 34px; }
.oplog h3 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.oplog .tbl td { height: 46px; font-size: 13.5px; }
.oplog .tbl td.r, .oplog .tbl th.r { text-align: right; }
@keyframes flash { 0% { background: #fff; } 100% { background: var(--g); } }

.costbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; background: var(--ink); color: #fff; padding: 20px 24px; margin-top: 22px; }
.costbar .k { font-size: 13px; font-weight: 700; color: #8a8a85; }
.costbar .v { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--acc); line-height: 1.1; }
.costbar .w { font-size: 14px; font-weight: 600; color: #c9c9c4; }
.lastgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.lastgrid .t { min-height: 112px; padding: 12px; background: var(--mist); border-top: 5px solid var(--g); display: flex; flex-direction: column; justify-content: flex-end; }
.lastgrid .t .gr { font-size: 11px; font-weight: 800; color: var(--g); letter-spacing: .04em; }
.lastgrid .t .nm { font-size: 13.5px; font-weight: 800; line-height: 1.32; margin-top: 2px; }
.lastgrid .t.hi { background: var(--g); color: #fff; }
.lastgrid .t.hi .gr { color: #fff; opacity: .88; }
.empty { background: var(--mist); padding: 34px 20px; text-align: center; font-size: 14px; color: var(--gray); font-weight: 600; margin-top: 22px; }
.wins { margin-top: 28px; }
.wins h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.wins div { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 700; }
.wins div i { font-style: normal; flex: none; width: 74px; font-size: 12.5px; color: var(--gray); font-weight: 600; }
.wins div b { flex: none; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--g); padding: 2px 7px; }
.grades { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; font-size: 12.5px; font-weight: 700; }
.grades span i { display: inline-block; width: 8px; height: 8px; background: var(--g); margin-right: 5px; }
.track .fill { box-shadow: inset 0 -4px 0 var(--acc); }
.craft .mk.go { cursor: pointer; }

@media (max-width: 900px) {
  .ready { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px 22px; margin: 0 -18px; }
  .box { transform: scale(.82); margin-bottom: -14px; }
  .ready h2 { font-size: 22px; }
  .stage .bar { padding: 14px 18px; }
  .stage .mid { padding: 0 12px; }
  .cards { gap: 7px; }
  .card .front { padding: 6px; }
  .card .front .pc svg { width: 62%; }
  .card .front .cb { left: 4px; top: 4px; font-size: 8px; padding: 1px 4px; }
  .card .front .nm { -webkit-line-clamp: 2 !important; }
  .bigwin .bp svg { width: 72px; height: 72px; }
  .lastgrid .t .pc svg { width: 26px; height: 26px; }
  .card .front .gr { font-size: 9px; letter-spacing: 0; }
  .card .front .nm { font-size: 10px; line-height: 1.25; -webkit-line-clamp: 4; margin-top: 2px; }
  .card .front .tk { display: none; }
  .card .back { box-shadow: inset 0 0 0 2px var(--f); }
  .bigwin .nm { font-size: 34px; }
  .stage .base { padding: 12px 18px 22px; min-height: 150px; }
  .costbar { margin: 22px -18px 0; padding: 18px; }
  .costbar .v { font-size: 28px; }
  .oplog { overflow-x: auto; margin-right: -18px; padding-right: 18px; }
  .oplog .tbl { min-width: 540px; }
  .oplog .tbl td, .oplog .tbl th { white-space: nowrap; }
  .wins div { flex-wrap: wrap; }
  .lastgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lastgrid .t { min-height: 84px; padding: 10px; }
}
