/* 스퀘어 카지노 허브 로비. 스퀘어 슬롯 모바일 로비(lobby/mobile.html)의 색·버튼·배지를 그대로 가져옴.
   갤럭시 탭 세로(10:16, 800×1280 CSS px)가 기준. 화면 폭 = 50rem.
   휴대폰 세로는 같은 배치가 비율대로 줄어들고, 가로 화면에서는 가운데 세로 틀로 보인다(스퀘어 슬롯과 같음). */
:root {
  --ink: #12030a; --panel: #2a0811; --gold: #e6bd6a; --gold-hi: #fff0c4; --fg: #fbeedd; --muted: #d8b896;
  --red: #e5332a; --green: #2fa35a; --line: #e6bd6a66;
  --display: "Black Han Sans", "Noto Sans KR", system-ui, sans-serif;
  --body: "Noto Sans KR", system-ui, sans-serif;
  --top-h: 5rem; --tab-h: 6.2rem; --frame-w: min(100vw, 62.5vh); --gap: 1rem;
  color-scheme: dark;
}
html { font-size: calc(min(100vw, 62.5vh) / 50); }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ink); color: var(--fg); font-family: var(--body); overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:focus-visible { outline: .2rem solid var(--gold-hi); outline-offset: .2rem; }
img { display: block; -webkit-user-drag: none; }
[hidden] { display: none !important; }

.gold-btn { font: 400 1.4rem var(--display); letter-spacing: .04em; color: #3a1404; padding: .7rem 2.4rem; border-radius: 99px; background: linear-gradient(#fff3c0, #f0c050 50%, #b8761a); box-shadow: 0 .25rem 0 #6a3a08, 0 0 1.2rem #ffd06a99; }
.gold-btn:active { translate: 0 .15rem; box-shadow: 0 .1rem 0 #6a3a08; }
a.gold-btn { display: inline-block; text-decoration: none; }
.green-btn { background: linear-gradient(#7ee0a0, #1d8a45); color: #fff; box-shadow: 0 .25rem 0 #0c4a22, 0 0 1rem #5fd48666; }

/* ── 화면 틀 ── */
.app { position: fixed; top: 0; bottom: 0; left: 50%; width: var(--frame-w); translate: -50% 0; overflow: hidden; display: grid; grid-template-rows: var(--top-h) 1fr var(--tab-h); padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) 0 env(safe-area-inset-left, 0); }
.bg { position: fixed; inset: 0; z-index: -1; background-attachment: fixed; background: radial-gradient(90% 70% at 50% 0%, #4a0a1255 0%, #12030aaa 75%), url(../assets/ui/lobby_bg.webp) center / cover no-repeat, var(--ink); }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, #ffb02022, #0000 70%); }

/* ── 상단 바 ── */
.top { position: relative; z-index: 4; display: flex; align-items: center; gap: 1.2rem; padding: 0 1.6rem; background: linear-gradient(#3a0a12f2, #1a0306f2); border-bottom: .18rem solid #c8902a; box-shadow: 0 .2rem 0 #6a3a08, 0 .6rem 1.6rem #000a; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.2rem; height: .06rem; background: linear-gradient(90deg, #0000, #fff0c4, #0000); }
.me { display: flex; align-items: center; gap: .8rem; flex: none; }
.avatar { width: 3.4rem; aspect-ratio: 1; border-radius: 50%; border: .18rem solid var(--gold); box-shadow: 0 0 .8rem #ffb02066; overflow: hidden; background: #000; }
.avatar img { width: 100%; height: 100%; }
.lv { display: grid; gap: .3rem; }
.lv b { font: 400 1.15rem var(--display); color: var(--gold-hi); text-shadow: 0 .12rem 0 #3a0a04; white-space: nowrap; }
.lv b small { font: 700 .85rem var(--body); color: var(--muted); margin-left: .4rem; }
.lv .bar { width: 9rem; height: .6rem; border-radius: 99px; background: #0009; border: .08rem solid var(--line); overflow: hidden; }
.lv .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe08a, #e09a2b); transition: width .5s; }

.spacer { flex: 1; min-width: 0; display: flex; justify-content: center; }
.spacer .brand { height: 3.8rem; max-width: 100%; object-fit: contain; filter: drop-shadow(0 .2rem .4rem #000c); }
.ticker { height: 3.4rem; margin: -.2rem 0 -.2rem; position: relative; background: url(../assets/ui/ticker_frame.webp) center / 100% 100% no-repeat; }
.ticker .lane { position: absolute; left: 15%; right: 15%; top: 18%; bottom: 18%; overflow: hidden; display: flex; align-items: center; -webkit-mask: linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000); mask: linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000); }
.ticker .run { display: inline-block; white-space: nowrap; font: 700 1.1rem var(--body); color: #ffcf5a; text-shadow: 0 0 .4rem #ff9a2a88; padding-left: 100%; animation: marquee var(--t, 30s) linear infinite; }
.ticker .run em { font-style: normal; color: #fff; }
@keyframes marquee { to { transform: translateX(-100%); } }

.bal { flex: none; display: flex; align-items: center; gap: .6rem; padding: .3rem .3rem .3rem .4rem; border-radius: 99px; background: #000c; border: .14rem solid #e6bd6a99; box-shadow: inset 0 0 .8rem #000; }
.coin { width: 2.2rem; aspect-ratio: 1; flex: none; background: url(../assets/ui/coin_spin.webp) 0 0 / 800% 100%; animation: coinspin 1s steps(8) infinite; }
@keyframes coinspin { to { background-position: 114.2857% 0; } }
.bal output { font: 400 1.5rem var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; min-width: 9rem; text-align: right; }
.bal .plus { width: 2.3rem; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(#5fd486, #1d8a45); color: #fff; font: 900 1.7rem/1 var(--body); display: grid; place-items: center; box-shadow: inset 0 -.15rem 0 #0005, 0 0 .8rem #5fd48688; }
.bal.bump output { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.12); color: #fff; } }
.icon-btn { width: 2.8rem; aspect-ratio: 1; border-radius: 50%; border: .12rem solid #e6bd6a99; background: #000b; font-size: 1.3rem; display: grid; place-items: center; flex: none; }

/* ── 로비 본문 ── */
.lobby { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding: 1.2rem 1.4rem 3rem; }
.lobby::-webkit-scrollbar { display: none; }
.side { display: flex; flex-direction: column; gap: 1rem; }
.side > * { flex: none; }

/* 추천 배너 */
.hero { position: relative; aspect-ratio: 2 / 1; border-radius: 1.2rem; overflow: hidden; border: .22rem solid #f0c050; box-shadow: 0 .6rem 1.4rem #000c, 0 0 1.4rem #ffb02055; touch-action: pan-y; background: #2a060c; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; cursor: pointer; pointer-events: none; }
.hero .slide.on { opacity: 1; pointer-events: auto; }
.hero .slide img.art { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; animation: kb 9s ease-in-out infinite alternate; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 40%, #000d); }
.hero .slide img.logo { position: absolute; left: 1.4rem; bottom: 2.8rem; width: 42%; max-height: 50%; object-fit: contain; object-position: left bottom; z-index: 1; filter: drop-shadow(0 .2rem .5rem #000c); }
.hero .slide .title { position: absolute; left: 1.4rem; bottom: 2.9rem; z-index: 1; font: 400 3rem var(--display); color: #fff0c4; letter-spacing: .02em; text-shadow: 0 .2rem 0 #6a3a08, 0 0 1.2rem #ffb020aa, 0 .3rem .6rem #000; }
.hero .slide .line { position: absolute; left: 1.4rem; bottom: 1.1rem; z-index: 1; font: 700 1rem var(--body); color: #fff1d6; text-shadow: 0 .1rem .3rem #000; }
.hero .slide .go { position: absolute; right: 1.4rem; bottom: 1.2rem; z-index: 1; font-size: 1.3rem; padding: .45rem 1.8rem; }
.hero .dots { position: absolute; left: 0; right: 0; top: .9rem; display: flex; justify-content: center; gap: .4rem; z-index: 2; pointer-events: none; }
.hero .dots i { width: .6rem; height: .6rem; border-radius: 99px; background: #fff6; transition: width .3s; }
.hero .dots i.on { width: 1.8rem; background: var(--gold-hi); }
@keyframes kb { to { transform: scale(1.06) translate(-1%, 0); } }

/* 잭팟 */
.jps { container-type: inline-size; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem .5rem; }
.jp { background: center / 100% 100% no-repeat; display: flex; align-items: center; justify-content: center; white-space: nowrap; filter: drop-shadow(0 .2rem .4rem #000c); }
.jp b { font-family: var(--display); font-weight: 400; letter-spacing: .12em; }
.jp output { font-family: var(--display); font-weight: 400; font-variant-numeric: tabular-nums; color: #fff8e0; text-shadow: 0 .1rem 0 #3a0a04, 0 0 .5rem #ffcf4a99; }
.jp.grand { grid-column: 1 / -1; aspect-ratio: 1340 / 230; background-image: url(../assets/jp/jp_grand.webp); padding: 0 26%; gap: .9rem; }
.jp.grand b { font-size: 2.3cqw; color: #ffd76a; } .jp.grand output { font-size: 4.8cqw; color: #fff4c0; }
.jp:not(.grand) { aspect-ratio: 3.1 / 1; padding: .2rem 13% 0; flex-direction: column; gap: .15rem; }
.jp:not(.grand) b { font-size: 1.6cqw; line-height: 1; } .jp:not(.grand) output { font-size: 2.9cqw; line-height: 1; }
.jp.major { background-image: url(../assets/jp/jp_major.webp); } .jp.major b { color: #e6d0ff; }
.jp.minor { background-image: url(../assets/jp/jp_minor.webp); } .jp.minor b { color: #cfe6ff; }
.jp.mini { background-image: url(../assets/jp/jp_mini.webp); } .jp.mini b { color: #d6ffd8; }

/* 왼쪽 아래: 시간 보너스·피기뱅크 카드 */
.perks { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-content: start; }
.perk { position: relative; display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: .6rem; padding: .6rem .9rem .6rem .5rem; border-radius: 1rem; background: linear-gradient(#3a0a14e6, #22060ce6); border: .14rem solid var(--line); text-align: left; box-shadow: 0 .3rem .8rem #0008; }
.perk img { width: 100%; filter: drop-shadow(0 .3rem .4rem #000a); }
.perk span { min-width: 0; }
.perk b { display: block; white-space: nowrap; font: 400 1.15rem var(--display); color: var(--gold-hi); }
.perk small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem; font: 700 .85rem var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.perk.ready { border-color: #c8ffd8; box-shadow: 0 0 1.2rem #5fd48666; }
.perk.ready img { animation: bounce 1.2s ease-in-out infinite; }
.perk.ready small { color: #7effa8; }
@keyframes bounce { 50% { translate: 0 -.5rem; } }

/* 오른쪽: 분류 탭 + 게임 목록 */
.games { margin-top: .4rem; }
.cats { position: sticky; top: -1.2rem; z-index: 3; display: flex; gap: .6rem; padding: 1.2rem 1.4rem .9rem; margin: 0 -1.4rem; overflow-x: auto; scrollbar-width: none; background: linear-gradient(#1a0306f2 75%, #1a030600); }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; align-items: center; gap: .4rem; padding: .35rem 1.3rem .35rem .5rem; border-radius: 99px; border: .12rem solid var(--line); background: #000b; font: 700 1.05rem var(--body); color: var(--muted); }
.cat img { width: 2.2rem; height: 2.2rem; filter: drop-shadow(0 .1rem .2rem #0008); }
.cat small { font-size: .8rem; opacity: .8; }
.cat[aria-pressed="true"] { color: #3a1404; border-color: #fff0c4; background: linear-gradient(#fff3c0, #f0c050 55%, #c08020); box-shadow: 0 0 .8rem #ffb02088; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem var(--gap); }
.section-title { grid-column: 1 / -1; display: flex; align-items: center; gap: .7rem; margin: .4rem 0 -.3rem; font: 400 1.3rem var(--display); color: var(--gold-hi); text-shadow: 0 .12rem 0 #3a0a04; }
.section-title::after { content: ""; flex: 1; height: .12rem; background: linear-gradient(90deg, #e6bd6a88, #0000); }
.section-title small { font: 700 .85rem var(--body); color: var(--muted); }

/* 게임 타일 */
.tile { position: relative; display: block; text-align: left; transition: transform .15s; }
.tile:active { transform: scale(.96); }
.tile.wide { grid-column: span 2; }
.tile .pic { position: relative; aspect-ratio: 1; border-radius: 1.1rem; overflow: hidden; border: .2rem solid #f0c050; background: #2a060c; box-shadow: 0 .4rem .9rem #000b, inset 0 0 0 .12rem #6a3a08; }
.tile.wide .pic { aspect-ratio: 2.07 / 1; }
.tile .pic img.art { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 50%, #000d); pointer-events: none; }
.tile .pic img.logo { position: absolute; left: 50%; bottom: 4%; width: 84%; max-height: 42%; object-fit: contain; translate: -50% 0; z-index: 1; filter: drop-shadow(0 .15rem .3rem #000); }
.tile.wide .pic img.logo { width: 46%; max-height: 62%; bottom: 8%; }
.tile .pic .label { position: absolute; left: 0; right: 0; bottom: 7%; z-index: 1; text-align: center; font: 400 1.45rem var(--display); color: #fff3d0; letter-spacing: .02em; text-shadow: 0 .15rem 0 #3a0a04, 0 0 .8rem #000; padding: 0 .4rem; }
.tile .pic .shine { position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, #0000 40%, #fff5 50%, #0000 60%) -150% 0 / 250% 100% no-repeat; animation: shine 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.tile .badges { position: absolute; top: .5rem; left: .5rem; z-index: 3; display: flex; gap: .3rem; }
.badge-t { font: 900 .72rem var(--body); letter-spacing: .06em; padding: .15rem .55rem; border-radius: .4rem; color: #fff; box-shadow: 0 .1rem .3rem #0008; }
.badge-t.b-new { background: linear-gradient(#39d05a, #138a2c); }
.badge-t.b-hot { background: linear-gradient(#ff6a3a, #c8141e); }
.badge-t.b-jp { background: linear-gradient(#fff3c0, #e0a030); color: #3a1404; }
.badge-t.b-soon { background: #3a2a1a; color: #e6c890; }
.tile .name { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; margin: .45rem .2rem 0; }
.tile .name b { font: 900 .98rem var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 .1rem .2rem #000; }
.tile .name small { flex: none; font: 700 .72rem var(--body); color: var(--muted); }
.tile.going { transform: scale(1.06); transition: transform .3s ease-in; z-index: 5; }

/* 그림 없는 게임(홀덤): 카드·칩을 CSS 로 */
.felt { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, #1f8a4c, #0b4a26 70%, #062a16); }
.felt::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: .14rem solid #e6bd6a55; }
.felt .cards { position: absolute; left: 50%; top: 40%; width: 60%; translate: -50% -50%; display: flex; justify-content: center; }
.felt .card { width: 42%; flex: none; aspect-ratio: 5 / 7; border-radius: .45rem; background: linear-gradient(#fff, #efe6d6); box-shadow: 0 .3rem .6rem #0009; display: grid; place-items: center; font: 900 1.5rem/1 var(--body); color: #1a1a1a; container-type: inline-size; }
.felt .card.r { color: #c8141e; }
.felt .card:first-child { rotate: -10deg; translate: .6rem .2rem; }
.felt .card:last-child { rotate: 9deg; translate: -.4rem 0; }
.felt .chips { position: absolute; right: 16%; bottom: 30%; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: repeating-conic-gradient(#c8141e 0 30deg, #fff 30deg 45deg); box-shadow: 0 .25rem 0 #6a0a0a, 0 .5rem .6rem #0008; }
.felt .chips::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: #c8141e; border: .1rem dashed #fff8; }

/* ── 하단 탭바 ── */
.tabbar { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr 1fr; align-items: center; padding: 0 4%; background: linear-gradient(#22060cf5, #12030af8); border-top: .18rem solid #c8902a; box-shadow: 0 -.2rem 0 #6a3a08 inset, 0 -.6rem 1.6rem #000a; }
.tab { position: relative; display: grid; justify-items: center; gap: .05rem; font: 700 .85rem var(--body); color: #c8a878; }
.tab img { width: 3.2rem; aspect-ratio: 1; }
.tab[aria-current="page"] { color: var(--gold-hi); }
.tab i { position: absolute; top: .1rem; right: 24%; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 99px; background: var(--red); color: #fff; font: 900 .75rem/1.3rem var(--body); font-style: normal; box-shadow: 0 0 0 .12rem #2a060c; }
.tab.cashier { align-self: start; margin-top: -2.8rem; }
.tab.cashier img { width: 6.6rem; filter: drop-shadow(0 0 .9rem #ffb020aa); animation: glowpulse 2.4s ease-in-out infinite; }
.tab.cashier b { margin-top: -.6rem; font: 400 1.1rem var(--display); letter-spacing: .08em; color: var(--gold-hi); text-shadow: 0 .12rem 0 #3a0a04; }
@keyframes glowpulse { 50% { filter: drop-shadow(0 0 1.6rem #ffd06a) brightness(1.08); } }

/* ── 시트(캐셔) ── */
.sheet { position: fixed; top: 0; bottom: 0; left: 50%; width: var(--frame-w); translate: -50% 0; z-index: 8; background: #000b; display: grid; place-items: center; padding: 2rem; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet .box { position: relative; width: min(64rem, 100%); max-height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; border-radius: 1.6rem; background: radial-gradient(120% 60% at 50% 0%, #5a0e1a, #22060c 60%), #22060c; border: .25rem solid #f0c050; box-shadow: 0 0 0 .3rem #6a3a08, 0 0 3rem #ffb02055, 0 2rem 4rem #000; padding: 1.4rem 1.8rem 1.4rem; animation: pop .25s ease-out; overflow: hidden; }
@keyframes pop { from { scale: .92; opacity: 0; } }
.sheet h2 { margin: 0 0 .8rem; display: flex; align-items: center; justify-content: center; gap: .8rem; font: 400 2.2rem var(--display); color: var(--gold-hi); text-shadow: 0 .18rem 0 #3a0a04, 0 0 1.2rem #ffb02066; }
.sheet h2 .coin { width: 2.6rem; }
.sheet .x { position: absolute; right: 1.2rem; top: 1.2rem; width: 2.8rem; aspect-ratio: 1; border-radius: 50%; background: #000a; border: .12rem solid #e6bd6a88; font: 900 1.3rem/1 var(--body); color: var(--gold-hi); }
.seg { justify-self: center; display: flex; gap: .3rem; padding: .3rem; border-radius: 99px; background: #0009; border: .12rem solid var(--line); margin-bottom: 1rem; }
.seg button { padding: .4rem 1.6rem; border-radius: 99px; font: 700 1rem var(--body); color: var(--muted); }
.seg button[aria-pressed="true"] { background: linear-gradient(#fff3c0, #f0c050 55%, #c08020); color: #3a1404; }
.sheet .body { min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 1.6rem .4rem .6rem; margin: -1.2rem -.4rem 0; }
.sheet .body::-webkit-scrollbar { display: none; }
.sheet .foot { margin-top: .8rem; text-align: center; font: 500 .82rem var(--body); color: var(--muted); }

.shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
.prod { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1rem .8rem .9rem; border-radius: 1.2rem; background: linear-gradient(#3a0a14, #1e050b); border: .14rem solid var(--line); box-shadow: inset 0 0 1.4rem #000a, 0 .4rem 1rem #0008; }
.prod .pic { height: 6.4rem; width: 100%; object-fit: contain; filter: drop-shadow(0 .4rem .6rem #000a); }
.prod .amt { font: 400 1.7rem var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; text-shadow: 0 .14rem 0 #3a0a04; }
.prod .was { font: 700 .82rem var(--body); color: var(--muted); min-height: 1.1rem; }
.prod .was s { opacity: .8; }
.prod .was em { font-style: normal; color: #7effa8; margin-left: .3rem; }
.prod .price { margin-top: .3rem; width: 100%; font: 400 1.35rem var(--display); color: #3a1404; padding: .55rem 0; border-radius: .8rem; background: linear-gradient(#fff3c0, #f0c050 55%, #b8761a); box-shadow: 0 .22rem 0 #6a3a08; }
.prod .price:active { translate: 0 .12rem; box-shadow: 0 .1rem 0 #6a3a08; }
.prod .price[disabled] { filter: grayscale(1) brightness(.7); cursor: default; }
.prod.best { border-color: #fff0c4; box-shadow: 0 0 1.4rem #ffb02066, inset 0 0 1.4rem #000a; }
.prod .medal { position: absolute; right: -.6rem; top: -1.2rem; width: 4.4rem; aspect-ratio: 1; background: url(../assets/ui/badge_best.webp) center / contain no-repeat; display: grid; place-items: center; font: 900 .78rem/1.1 var(--body); color: #4a1a04; text-align: center; white-space: pre-line; padding-top: .2rem; }
.prod.offer { grid-column: 1 / -1; grid-template-columns: 8rem 1fr 12rem; justify-items: start; align-items: center; gap: 1.4rem; padding: 1.4rem 1.6rem 1.1rem; border-color: #fff0c4; background: linear-gradient(100deg, #6a1020, #2a060c 70%); box-shadow: 0 0 1.6rem #ff8a1a66, inset 0 0 1.4rem #000a; }
.prod.offer .pic { height: 7.4rem; }
.prod.offer .amt { font-size: 2.3rem; }
.prod.offer .ribbon { position: absolute; left: 1rem; top: -1.4rem; width: 15rem; height: 2.7rem; background: url(../assets/ui/offer_ribbon.webp) center / 100% 100% no-repeat; display: grid; place-items: center; font: 900 1rem var(--body); color: #fff; padding-bottom: .35rem; text-shadow: 0 .1rem .1rem #6a0a00; }
.prod.offer .price { font-size: 1.6rem; padding: .8rem 0; }

.free { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: .8rem 1.2rem; border-radius: 1rem; background: #0007; border: .12rem dashed var(--line); }
.free img { width: 3.6rem; }
.free div { flex: 1; }
.free b { display: block; font: 400 1.2rem var(--display); color: var(--gold-hi); }
.free small { font: 700 .85rem var(--body); color: var(--muted); }
.free .gold-btn { font-size: 1.1rem; padding: .5rem 1.6rem; }
.free .gold-btn[disabled] { filter: grayscale(1) brightness(.7); cursor: default; }

/* 코인 내역 */
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger th { position: sticky; top: 0; background: #22060c; color: var(--muted); font-weight: 700; text-align: left; padding: .5rem .6rem; border-bottom: .1rem solid var(--line); }
.ledger td { padding: .55rem .6rem; border-bottom: .06rem solid #e6bd6a22; font-variant-numeric: tabular-nums; }
.ledger td.n { text-align: right; font-weight: 700; }
.ledger td.plus { color: #7effa8; } .ledger td.minus { color: #ff8a7a; }
.ledger .empty { text-align: center; color: var(--muted); padding: 2rem; }

/* ── 게임 화면(iframe) / 준비 중 ── */
.play { position: fixed; top: 0; bottom: 0; left: 50%; width: var(--frame-w); translate: -50% 0; z-index: 7; background: #000; display: grid; grid-template-rows: 3.6rem 1fr; animation: fade .25s; }
.play .bar { display: flex; align-items: center; gap: 1rem; padding: 0 1rem; background: linear-gradient(#3a0a12, #1a0306); border-bottom: .14rem solid #c8902a; }
.play .bar .back { font: 700 1rem var(--body); color: var(--gold-hi); padding: .4rem 1.1rem; border-radius: 99px; border: .12rem solid var(--line); background: #000a; }
.play .bar .title { flex: 1; font: 400 1.3rem var(--display); color: var(--gold-hi); }
.play .bar .bal output { font-size: 1.2rem; min-width: 7rem; }
.play .bar .bal .coin { width: 1.8rem; }
.play iframe { width: 100%; height: 100%; border: 0; background: #000; }
.soon { position: relative; display: grid; place-items: center; overflow: hidden; }
.soon .backdrop { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(1.4rem) brightness(.45); scale: 1.1; }
.soon .card { position: relative; display: grid; justify-items: center; gap: 1rem; padding: 2rem 3rem; border-radius: 1.6rem; background: #1a0306e6; border: .2rem solid #f0c050; box-shadow: 0 0 2rem #ffb02055; text-align: center; max-width: 34rem; }
.soon .card img { max-width: 18rem; max-height: 9rem; object-fit: contain; }
.soon .card b { font: 400 1.8rem var(--display); color: var(--gold-hi); }
.soon .card p { margin: 0; font: 500 1rem/1.6 var(--body); color: var(--fg); }

/* 알림 */
.toast { position: fixed; left: 50%; top: 18%; translate: -50% 0; z-index: 20; max-width: 86%; padding: .9rem 2rem; border-radius: 1rem; background: #000e; border: .14rem solid #e6bd6a99; color: var(--gold-hi); font: 700 1.15rem var(--body); text-align: center; pointer-events: none; animation: toast 2.4s forwards; }
@keyframes toast { 0% { opacity: 0; translate: -50% .6rem; } 10%, 85% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; } }
.fly { position: fixed; z-index: 30; width: 2.2rem; aspect-ratio: 1; background: url(../assets/ui/coin_spin.webp) 0 0 / 800% 100%; animation: coinspin .6s steps(8) infinite; pointer-events: none; transition: left .8s cubic-bezier(.5, 0, .7, 1), top .8s cubic-bezier(.3, -.6, .7, 1), opacity .2s .75s; }

/* 가로 화면: 가운데 세로 틀 */
@media (min-aspect-ratio: 11/16) {
  .app, .sheet, .play { box-shadow: 0 0 0 .2rem #ffb020, 0 0 2rem #ff8a1acc, 0 0 6rem #000; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01s !important; } }
/* 카드 게임: 위 테이블 화면 + 아래 손님 화면 */
.play .card-split { display: grid; grid-template-rows: 42% 1fr; gap: .2rem; height: 100%; background: #000; }
.play .card-split.solo { grid-template-rows: 1fr; }
.play .card-split iframe { width: 100%; height: 100%; border: 0; background: #000; }
