/* 쇼부카지노 시안 - 리더보드(/leaderboard) 전용. 접두어 lb- */
/* site.css 의 --leaf·--gold-btn 은 상대 주소라 p/ 폴더에서는 그림 주소가 어긋난다. 같은 재질을 절대 주소로 둔다. */
:root {
  --lb-gold: linear-gradient(180deg, rgba(250, 233, 180, .9) 0%, rgba(229, 196, 124, .86) 42%, rgba(198, 154, 78, .88) 70%, rgba(160, 114, 44, .92) 100%), url(/assets/img/goldleaf-soft.webp) 50% 50% / 720px auto;
  --lb-silver: linear-gradient(180deg, #f6f2ea 0%, #cfc8b9 45%, #9a9384 100%);
  --lb-bronze: linear-gradient(180deg, #f3c9a0 0%, #c98a58 48%, #8a5532 100%);
}

.lb-tabs { margin: 0 0 22px; }
.lb-tabs button { padding: 16px 20px 14px; font-size: 16px; }
.lb-bar { margin-bottom: 22px; }
.lb-live { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; margin: 0; font-size: 14px; color: var(--ivory-2); }
.lb-live span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-live b { color: var(--ivory); font-weight: 600; }
.lb-live em { font-style: normal; font-weight: 700; color: var(--gold-hi); }
.lb-live span.lb-tick { animation: lbTick .7s var(--ease); }
@keyframes lbTick { from { opacity: 0; transform: translateY(8px); } }

/* 1~3위 카드: 게임 그림이 오른쪽에 깔린다 */
.lb-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.lb-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; min-width: 0; overflow: hidden; isolation: isolate; padding: 22px 22px 20px; border-radius: 16px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.lb-card.r1 { min-height: 250px; box-shadow: inset 0 0 0 1px var(--line-2), 0 0 70px -22px rgba(217, 177, 101, .6); }
.lb-card > img { position: absolute; top: 0; right: 0; bottom: 0; z-index: -2; width: 64%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .92; transition: transform 1.2s var(--ease); }
.lb-card:hover > img { transform: scale(1.04); }
.lb-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 10, 6, 1) 34%, rgba(14, 10, 6, .72) 58%, rgba(14, 10, 6, .1) 100%), linear-gradient(0deg, rgba(14, 10, 6, .75), rgba(14, 10, 6, 0) 60%); }
.lb-card.r1::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(246, 226, 164, .2), transparent 70%); pointer-events: none; }
.lb-card.flash { animation: lbCard 1.6s var(--ease); }
@keyframes lbCard { 0% { box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 80px -10px rgba(246, 226, 164, .8); } }
.lb-medal { position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 900 20px/1 var(--serif); color: #1d1408; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 10px 22px -10px rgba(0, 0, 0, .8); }
.r1 .lb-medal { width: 52px; height: 52px; font-size: 24px; background: var(--lb-gold); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .75), 0 0 0 6px rgba(217, 177, 101, .14); }
.r2 .lb-medal { background: var(--lb-silver); }
.r3 .lb-medal { background: var(--lb-bronze); }
.lb-card-nick { font: 700 20px/1.3 var(--serif); letter-spacing: -.03em; color: var(--ivory); }
.lb-card-game { margin-top: 3px; font-size: 13.5px; color: var(--ivory-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-card-amt { margin-top: 12px; font: 900 clamp(26px, 2.4vw, 34px)/1.05 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.r1 .lb-card-amt { font-size: clamp(30px, 3vw, 42px); }
.lb-card-sub { margin-top: 6px; font-size: 13.5px; color: var(--ivory-3); font-variant-numeric: tabular-nums; }
.lb-card-sub b { color: var(--champagne); font-weight: 700; }

/* 표 */
.lb-table td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.lb-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; font: 800 14px/1 var(--sans); color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.lb-rank.m1 { background: var(--lb-gold); color: #1d1408; }
.lb-rank.m2 { background: var(--lb-silver); color: #1d1408; }
.lb-rank.m3 { background: var(--lb-bronze); color: #1d1408; }
.lb-who { font-weight: 600; color: var(--ivory); }
.lb-who small { display: block; font-weight: 400; font-size: 12px; color: var(--ivory-3); }
.lb-game { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.lb-game img { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); }
.lb-game > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-game b { font-weight: 600; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-game small { font-size: 12px; color: var(--ivory-3); }
.lb-odds { font-weight: 700; color: var(--champagne); }
.lb-amt { font: 800 16px/1 var(--sans); color: var(--gold-hi); }
.lb-time { font-size: 13px; color: var(--ivory-3); }
.lb-table tr.lb-top3 td { background: rgba(217, 177, 101, .05); }
.lb-table tr.lb-top3 .lb-amt { font-family: var(--serif); font-size: 17.5px; }
.lb-table tr.lb-new td { animation: lbNew 2.2s var(--ease); }
@keyframes lbNew { 0% { background-color: rgba(246, 226, 164, .32); } 30% { background-color: rgba(246, 226, 164, .16); } 100% { background-color: transparent; } }
.lb-table tr.lb-new .lb-who::after { content: "NEW"; display: inline-flex; align-items: center; height: 18px; margin-left: 7px; padding: 0 6px; border-radius: 3px; background: var(--seal); font: 800 10px/1 var(--sans); letter-spacing: .04em; color: #fff; vertical-align: 2px; animation: blink 1.2s 3; }
.lb-foot { margin: 12px 2px 0; font-size: 13px; color: var(--ivory-3); }

/* 아래 띠 */
.lb-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 16px; background: radial-gradient(ellipse 70% 140% at 100% 50%, rgba(217, 177, 101, .2), transparent 60%), linear-gradient(120deg, #1d160e, #110d08 60%, #1a120a); box-shadow: inset 0 0 0 1px var(--line-2); }
.lb-cta-t { margin: 0; font: 700 clamp(22px, 2vw, 28px)/1.3 var(--serif); letter-spacing: -.035em; color: var(--ivory); }
.lb-cta-tx p { margin: 6px 0 0; font-size: 14.5px; color: var(--ivory-2); }
.lb-cta-act { flex: none; display: flex; gap: 10px; }

@media (max-width: 1100px) {
  .lb-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-card.r1 { grid-column: 1 / -1; }
  .lb-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .lb-tabs button { flex: 1 0 auto; justify-content: center; padding: 14px 8px 12px; font-size: 15px; }
  .lb-bar { gap: 12px; }
  .lb-live { font-size: 13px; }
  .lb-top { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lb-card, .lb-card.r1 { min-height: 0; padding: 70px 18px 18px; }
  .lb-card:not(.r1) { padding: 16px 16px 16px 76px; }
  .lb-card:not(.r1) .lb-medal { left: 16px; top: 50%; margin-top: -22px; }
  .lb-card:not(.r1) .lb-card-amt { margin-top: 6px; font-size: 24px; }
  .lb-card:not(.r1) .lb-card-sub { display: none; }
  .lb-card-nick { font-size: 18px; }
  .lb-medal { left: 18px; top: 16px; }
  .lb-card > img { width: 60%; }
  /* 휴대폰 표: 순위 | 회원·게임 | 당첨금·배당 */
  .lb-table thead { display: none; }
  .lb-table, .lb-table tbody { display: block; }
  .lb-table tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "rk gm amt" "rk gm odd"; align-items: center; column-gap: 10px; row-gap: 3px; padding: 11px 14px; border-bottom: 1px solid rgba(217, 177, 101, .08); }
  .lb-table tbody tr:last-child { border-bottom: 0; }
  .lb-table td { display: block; padding: 0; border: 0; white-space: nowrap; }
  .lb-table td.c-rk { grid-area: rk; }
  .lb-table td.c-who { display: none; }
  .lb-table td.c-gm { grid-area: gm; min-width: 0; overflow: hidden; }
  .lb-table td.c-amt { grid-area: amt; text-align: right; }
  .lb-table td.c-odd { grid-area: odd; text-align: right; font-size: 12.5px; }
  .lb-table td.c-tm { display: none; }
  .lb-table tr.lb-top3 { background: rgba(217, 177, 101, .05); }
  .lb-table tr.lb-top3 td { background: none; }
  .lb-table tr.lb-new { animation: lbNew 2.2s var(--ease); }
  .lb-table tr.lb-new td { animation: none; }
  .lb-game img { width: 38px; height: 38px; }
  .lb-game small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb-amt { font-size: 15px; }
  .lb-table tr.lb-new .lb-game b::after { content: "NEW"; display: inline-flex; align-items: center; height: 16px; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--seal); font: 800 9.5px/1 var(--sans); color: #fff; vertical-align: 1px; }
  .lb-cta { padding: 24px 20px; }
  .lb-cta-act { width: 100%; }
  .lb-cta-act .btn { flex: 1 1 0; padding: 0 10px; height: 50px; font-size: 15px; }
}
.lb-game .lb-m-nick { display: none; }
@media (max-width: 760px) { .lb-game .lb-m-nick { display: inline; color: var(--ivory-2); } }

/* 실연동: 솔루션이 폐지한 화면이라 첫 화면으로 보내기 전에 잠깐 보이는 안내(lb.js live) */
.lb-moved .empty { padding: 90px 20px; }
.lb-moved-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; }
