/* 토끼카지노 실연동 덧붙임 스타일(2026-11-15) — 시안 site.css 색 변수(--bg·--panel·--tile·--carrot·--moon·--violet)를 그대로 쓴다.
   회원 노치 칸 · 휴대폰 회원 메뉴 · 알림 띠 · 로그인 보안 확인 칸 · 실제 게임 카드(.tk-real) · 로비 카드 제목 크기 · 더 보기 · 게임 창 · 솔루션 안내 창 */

/* ---- 머리줄 회원 칸(노치 안) ---- */
.tk-member { display: flex; align-items: center; gap: 8px; }
.tk-member[hidden] { display: none; }
.auth [data-auth][hidden] { display: none; }
.tk-bal {
  display: inline-flex; align-items: baseline; gap: 3px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--tile); color: var(--moon);
  font-weight: 800; font-size: 14px; line-height: 34px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tk-bal small { font-size: 12px; color: var(--text-2); font-weight: 700; }
.tk-nick { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--text); }
.tk-logout { height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.tk-logout:hover { background: var(--tile); color: var(--text); }
.tk-menu {
  display: none; position: fixed; z-index: 60; top: 64px; right: 12px; width: min(260px, calc(100vw - 24px));
  padding: 16px; border-radius: 16px; background: var(--panel); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.tk-menu p { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.tk-menu p b { color: var(--text); }
.tk-menu .tk-menu-bal b { color: var(--moon); font-variant-numeric: tabular-nums; }
.tk-menu .btn-carrot { width: 100%; height: 44px; margin-top: 6px; }
@media (max-width: 899px) {
  .tk-nick, .tk-member .tk-logout { display: none; }
  .tk-bal { height: 32px; padding: 0 12px; font-size: 13px; line-height: 32px; }
  html.tk-member-open .tk-menu { display: block; }
}

/* ---- 알림 띠 ---- */
#tkToast {
  position: fixed; z-index: 400; left: 50%; bottom: 96px; transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--moon); color: #1b1524; font-size: 14px; font-weight: 800; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
}
#tkToast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---- 로그인 보안 확인(Turnstile) ---- */
.tk-cap { display: block; min-height: 65px; margin: 4px 0 2px; }
.tk-cap[hidden] { display: none; }
.tk-cap-box { min-height: 65px; }

/* ---- 실제 게임 카드: 게임사 썸네일을 꽉 채우고 이름은 아래 ---- */
.card.tk-real img {
  transform: none; object-position: center center;
  -webkit-mask-image: none; mask-image: none;
}
.card.tk-real::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(16, 9, 26, .9));
}
.card.tk-real .card-title {
  top: auto; bottom: 7%; z-index: 1;
  font-family: var(--f-ui); font-weight: 800; font-size: 9.6cqw; line-height: 1.2;
  -webkit-text-stroke: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card.tk-real .card-tag { z-index: 1; }
.card.tk-lobby .card-title { font-size: var(--tk-fs, 16.4cqw); }

/* ---- 전체보기: 더 보기 · 실데이터 화면에선 시안의 정렬·필터 단추를 숨긴다 ---- */
.tk-more { display: flex; justify-content: center; margin: 28px 0 8px; }
.tk-more[hidden] { display: none; }
.tk-more .btn-carrot { min-width: 180px; height: 46px; }
html.tk-real-grid .toolbar .pill-btn { display: none; }

/* ---- 게임 창 ---- */
.tk-gl { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.tk-gl[hidden] { display: none; }
.tk-gl-back { position: absolute; inset: 0; background: rgba(10, 6, 16, .82); }
.tk-gl-box {
  position: relative; display: flex; flex-direction: column;
  width: min(1280px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px));
  border-radius: 18px; overflow: hidden; background: #120c1a; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.tk-gl-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 18px; background: var(--panel); }
.tk-gl-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; color: var(--text); }
.tk-gl-st { font-size: 12px; font-weight: 700; color: var(--muted); }
.tk-gl-st[data-st="ok"] { color: var(--leaf); }
.tk-gl-st[data-st="err"] { color: #ff7a8a; }
.tk-gl-bar button { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; color: var(--text-2); }
.tk-gl-bar button:hover { background: var(--tile); color: var(--text); }
.tk-gl-stage { position: relative; flex: 1; }
.tk-gl-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tk-gl-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; padding: 24px; text-align: center; }
.tk-gl-msg[hidden] { display: none; }
.tk-gl-msg p { margin: 0; font-size: 15px; color: var(--text-2); }
.tk-gl-act { display: flex; gap: 10px; justify-content: center; }
.tk-gl-act button { height: 44px; padding: 0 20px; }
.tk-gl-sub { border-radius: 999px; background: var(--tile); color: var(--text); font-weight: 700; }
html.tk-gl-open body { overflow: hidden; }
@media (max-width: 899px) {
  .tk-gl-box { width: 100vw; height: 100dvh; border-radius: 0; }
}

/* ---- 솔루션 안내 창(tk-api.js dialog .sbapi-dlg: 서버 응답 없음·이용 제한 등) ---- */
dialog.sbapi-dlg {
  width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px;
  background: var(--panel); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
dialog.sbapi-dlg::backdrop { background: rgba(10, 6, 16, .78); }
dialog.sbapi-dlg h2 { font-family: var(--f-ui); font-size: 18px; font-weight: 800; color: var(--text); }
dialog.sbapi-dlg .sbapi-d { color: var(--text-2); }
dialog.sbapi-dlg .sbapi-s { color: var(--muted); }
dialog.sbapi-dlg .btn { border-radius: 999px; font-weight: 800; }
dialog.sbapi-dlg .btn-gold { border: 0; background: var(--carrot); color: var(--carrot-ink); }
dialog.sbapi-dlg .btn-line { border: 1px solid var(--tile-hover); background: var(--tile); color: var(--text); }
