/* 울트라포커투어 화면 (A 로비)
   색 · 버튼 · 고르는 칸은 로로레인지랩 gg.css 값 그대로. 금색 = 나 · 고른 것, 벽돌색 = 누르는 행동, 빨간 막대 = 지금 탭
   PC는 위 막대, 휴대폰은 아래 탭 (760px 기준) */

/* ================= 1. 값 ================= */
:root {
  --bg: #101115; --bar: #14161a; --panel: #1a1c21; --panel-2: #22252b; --panel-3: #2a2d34;
  --line: #2c3037; --line-2: #3a3e46; --line-3: #4a4f59; --hover: rgba(255, 255, 255, 0.04);
  --tx: #f2f3f5; --tx-2: #b4b9c2; --tx-3: #949aa4;
  --red: #e0434b; --red-tx: #ff6a6f; --btn-top: #9c272c; --btn-bot: #6c1418; --btn-line: #a23338;
  --gold: #e8b94a; --gold-ink: #f0cf7c; --gold-line: #d9a83e; --gold-soft: rgba(232, 185, 74, 0.14); --gg-gold: #e8b94a;
  --sel: #3b3f48;
  --ok: #6ad795; --ok-bg: #15291c; --ok-line: #25563a;
  --bad: #ff8e93; --bad-bg: #33171a; --bad-line: #5c2b30;
  --apx: #f1c96b; --apx-bg: #29231a; --apx-line: #6b5626;
  --int: #a9c4e0; --int-bg: #1a2330; --int-line: #34506b;
  --r: 8px; --r2: 12px;
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23949aa4'/%3E%3C/svg%3E");
  --f: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --fn: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Noto Sans KR", sans-serif;
  --top-h: 58px; --tab-h: 64px;
}

/* ================= 2. 바탕 ================= */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--tx); font: 15px/1.45 var(--f); font-variant-numeric: tabular-nums; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(232, 185, 74, 0.35); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.num { font-family: var(--fn); }
.dim { color: var(--tx-3); }
.mid { color: var(--tx-2); }
.small { font-size: 13px; }
.gold { color: var(--gold-ink); }
.right { text-align: right; }
.mt { margin-top: 12px; }
.mt2 { margin-top: 20px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.word { display: block; flex: none; justify-self: start; }
.word img { width: auto; height: 28px; }

/* 효과용 임시 조각 (레인지랩 gg-motion.css) */
.rlm-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 60; pointer-events: none; }
.rlm-layer > * { position: absolute; display: block; margin: 0; pointer-events: none; }
.rlm-chip { border-radius: 50%; }
.rlm-ring { position: absolute; inset: -5px; z-index: 2; border-radius: 50%; border: 3px solid var(--gold); pointer-events: none; }
.rlm-back { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; }

/* ================= 3. 버튼 · 입력 ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid var(--btn-line); background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 8px rgba(4, 5, 7, 0.5); }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; filter: none; }
.btn.wide { width: 100%; }
.btn.line { border-color: var(--line-3); background: transparent; box-shadow: none; color: var(--tx); font-weight: 700; }
.btn.line:hover { border-color: var(--tx-3); background: var(--hover); filter: none; }
.btn.sm { min-height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; }
.btn.md { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn.kakao { min-height: 54px; border: 0; border-radius: var(--r2); background: #fee500; color: rgba(0, 0, 0, 0.85); font-size: 16px; font-weight: 700; box-shadow: none; }
.btn.kakao svg { width: 20px; height: 20px; flex: none; }
.textbtn { padding: 8px 0; border: 0; background: none; color: var(--tx-3); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grow { flex: 1; min-width: 0; }

.in, .sel { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--tx); font-size: 16px; }
.in::placeholder { color: var(--tx-3); opacity: 1; }
.in:focus, .sel:focus { outline: 0; border-color: var(--gold); }
.in[readonly] { background: transparent; color: var(--tx-2); }
textarea.in { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.sel { appearance: none; padding-right: 34px; background-image: var(--caret); background-repeat: no-repeat; background-position: right 14px center; font-weight: 700; }
.sel.auto { width: auto; }
.sel.s { height: 36px; font-size: 14px; padding-left: 12px; }
.in.s { height: 36px; font-size: 14px; padding: 0 10px; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--tx-2); }
.field small { display: block; margin-top: 6px; font-size: 13px; color: var(--tx-3); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold); flex: none; }
.err { margin-top: 12px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--bad-line); background: var(--bad-bg); color: var(--bad); font-size: 14px; font-weight: 600; }
.note { padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--apx-line); background: var(--apx-bg); color: var(--apx); font-size: 14px; font-weight: 600; }
.note.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.note.int { border-color: var(--int-line); background: var(--int-bg); color: var(--int); }
.note.flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.seg { display: flex; padding: 4px; gap: 2px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.seg button, .seg a { flex: 1 1 0; height: 40px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--tx-2); font-size: 15px; font-weight: 700; white-space: nowrap; display: grid; place-items: center; text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current] { background: var(--sel); color: #fff; }
.seg.in-panel { background: var(--bg); }
.under { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.under button, .under a { position: relative; flex: none; padding: 0 0 11px; border: 0; background: none; color: var(--tx-3); font-weight: 700; font-size: 15px; text-decoration: none; }
.under [aria-pressed="true"], .under [aria-current] { color: var(--tx); }
.under [aria-pressed="true"]::after, .under [aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); }
.under i { font-style: normal; margin-left: 5px; color: var(--gold-ink); }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; }
.stepper button { height: 56px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--tx); font-size: 24px; line-height: 1; }
.stepper button:first-child { border-radius: var(--r) 0 0 var(--r); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--r) var(--r) 0; border-left: 0; }
.stepper button:hover { background: var(--panel-3); }
.stepper .n { position: relative; height: 56px; border: 1px solid var(--line-2); background: var(--panel); }
.stepper .n input { width: 100%; height: 100%; padding: 0 30px; border: 0; background: none; text-align: center; font: 800 28px/1 var(--fn); appearance: textfield; -moz-appearance: textfield; }
.stepper .n input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.stepper .n input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.stepper .n small { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--tx-3); font-size: 14px; }
.reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.reason { height: 34px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: none; color: var(--tx-2); font-size: 14px; font-weight: 600; }
.reason[aria-pressed="true"] { color: var(--gold-ink); border-color: rgba(232, 185, 74, 0.55); background: var(--gold-soft); }
.search { display: block; }
.search .in { background: var(--panel-2); }
.search .in::-webkit-search-cancel-button { appearance: none; }

/* ================= 4. 조각 ================= */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--tx-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.r-admin, .chip.me, .chip.gold { border-color: rgba(232, 185, 74, 0.5); background: var(--gold-soft); color: var(--gold-ink); }
.chip.r-staff { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.chip.r-floor, .chip.s-hold { border-color: var(--int-line); background: var(--int-bg); color: var(--int); }
.chip.r-dd, .chip.s-ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.chip.s-pay { border-color: var(--apx-line); background: var(--apx-bg); color: var(--apx); }
.chip.s-bad { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.av { position: relative; display: block; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.av img { width: 100%; height: 100%; border-radius: 50%; background: var(--panel-3); }
.av.s { width: 32px; height: 32px; }
.av.l { width: 58px; height: 58px; }
.av.gold img { border: 2px solid var(--gold); }
.av.off img { filter: grayscale(1) brightness(0.6); }
.panel { border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.panel + .panel { margin-top: 12px; }
.panel.gold { border-color: rgba(232, 185, 74, 0.5); }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin-bottom: 10px; }
.ph h2, .ph h3 { font-size: 16px; }
h3.sec { margin: 24px 0 10px; font-size: 16px; }

.plate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.plate.gold { border-color: rgba(232, 185, 74, 0.5); }
.who { min-width: 0; }
.who b { display: block; font-size: 17px; line-height: 1.3; }
.who span { display: block; color: var(--tx-3); font-size: 13px; }
.bal { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.bal img { width: 40px; height: 40px; }
.bal span { display: block; font-size: 12px; color: var(--tx-3); }
.bal b { font: 800 26px/1 var(--fn); color: var(--gold-ink); }
.bal small { font-size: 13px; color: var(--tx-2); margin-left: 1px; }

.banner { position: relative; display: block; min-height: 212px; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); background: #17100f; color: inherit; text-decoration: none; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 17, 21, 0) 26%, rgba(16, 17, 21, 0.8) 56%); }
.banner .t { position: absolute; z-index: 1; right: 14px; top: 16px; bottom: 14px; width: 172px; display: flex; flex-direction: column; }
.banner .kind { font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.banner .t > b { margin-top: 2px; font-size: 18px; line-height: 1.3; }
.banner .when { margin-top: 6px; font-size: 13px; color: var(--tx-2); }
.banner .seats { margin-top: auto; margin-bottom: 8px; font-size: 13px; color: var(--tx-2); }
.banner .seats b { margin: 0 2px 0 4px; font-size: 20px; color: var(--tx); }
.banner .btn { min-height: 40px; font-size: 14px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.q { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); color: var(--tx); text-decoration: none; }
.q:hover { border-color: var(--line-3); }
.q img { width: 44px; height: 44px; flex: none; }
.q b { display: block; font-size: 15px; }
.q span { font-size: 13px; color: var(--tx-3); }
.q.wide { grid-column: 1 / -1; }
.q.wide img { width: 56px; height: 56px; }

.nums { display: grid; overflow: hidden; grid-template-columns: 1fr 1fr; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); }
.nums > * { padding: 12px 14px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }
.nums span { display: block; font-size: 13px; color: var(--tx-3); }
.nums b { font: 800 26px/1.2 var(--fn); }
.nums small { margin-left: 2px; font-size: 13px; color: var(--tx-3); }
.nums .gold b { color: var(--gold-ink); }

.hist li { display: grid; grid-template-columns: 4px 1fr auto; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.hist li:has(> .btn) { grid-template-columns: 4px 1fr auto auto; }
.hist li:last-child { border-bottom: 0; }
.hist i { align-self: stretch; border-radius: 2px; background: var(--line-3); }
.hist .k-issue i { background: var(--gold); }
.hist .k-revoke i { background: var(--red); }
.hist .b { min-width: 0; }
.hist .b b, .hist .b a { display: block; font-size: 15px; font-weight: 600; color: inherit; text-decoration: none; }
.hist .b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hist .b span, .pick .s { white-space: pre-wrap; }
.hist .b span { font-size: 13px; color: var(--tx-3); }
.hist em { font: 800 17px/1 var(--fn); color: var(--tx-2); }
.hist .k-issue em { color: var(--gold-ink); }
.hist .undone em, .hist .undone .b b, .hist .undone .b a { color: var(--tx-3); text-decoration: line-through; }

.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list.rows { border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); }
.list.rows li { padding: 12px 14px; }
.list.rows li > a { display: flex; align-items: center; gap: 12px; flex: 1; margin: -12px -14px; padding: 12px 14px; color: inherit; text-decoration: none; }
.list.rows li > a:hover { background: var(--hover); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.kv > * { padding: 11px 0; border-top: 1px solid var(--line); }
.kv > :nth-child(1), .kv > :nth-child(2) { border-top: 0; }
.kv dt { color: var(--tx-3); padding-right: 16px; white-space: nowrap; }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
dl { margin: 0; }

.empty { padding: 34px 16px; text-align: center; color: var(--tx-3); }
.empty img { width: 96px; height: 96px; margin: 0 auto 12px; }
.empty b { display: block; margin-bottom: 4px; font-size: 17px; color: var(--tx); }
.sk { border-radius: var(--r); background: var(--panel-2); }
.sk.a { height: 86px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); }
.sk.b { height: 200px; margin-top: 12px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); }
.sk.c { height: 46px; margin-top: 8px; }

.toast { width: max-content; position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 80; max-width: min(420px, calc(100% - 32px)); translate: -50% 0; padding: 12px 18px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-3); color: var(--tx); font-weight: 700; box-shadow: 0 12px 30px rgba(4, 5, 7, 0.5); opacity: 0; visibility: hidden; }
.toast.show { opacity: 1; visibility: visible; }
.shade { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(6, 7, 9, 0.64); }
.sheet { width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); overflow: auto; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; background: var(--panel); border-top: 1px solid var(--line-2); box-shadow: 0 -18px 50px rgba(4, 5, 7, 0.6); }
.sheet h2 { font-size: 19px; line-height: 1.35; }
.sheet p { margin-top: 8px; color: var(--tx-2); }
.sheet .two { margin-top: 20px; }
.sheet .kv { margin-top: 12px; }

/* ================= 5. 휴대폰 틀 ================= */
.app { position: relative; width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--bar); border-bottom: 1px solid var(--line); }
.top > :last-child { justify-self: end; }
.top .title { font-weight: 700; font-size: 17px; }
.top .back { justify-self: start; display: block; width: 36px; height: 36px; padding: 0; border: 0; background: none; }
.top .back img { width: 36px; height: 36px; }
.pad { padding: 16px 16px calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 28px); }
.pad.notab { padding-bottom: 32px; }
.tab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--bar); border-top: 1px solid var(--line); }
.tab nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; max-width: 480px; height: var(--tab-h); }
.tab a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--tx-3); font-size: 12px; font-weight: 700; text-decoration: none; }
.tab img { width: 30px; height: 30px; opacity: 0.5; filter: saturate(0.5); }
.tab [aria-current] { color: var(--tx); }
.tab [aria-current] img { opacity: 1; filter: none; }
.tab [aria-current]::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }

/* 첫 화면 */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.login .hero { position: absolute; inset: 0 0 auto 0; height: 64%; overflow: hidden; }
.login .hero img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.login .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 17, 21, 0) 40%, rgba(16, 17, 21, 0.85) 80%, #101115 99%); }
.login .body { position: relative; padding: 0 24px calc(40px + env(safe-area-inset-bottom, 0px)); }
.login .word img { height: 92px; margin-left: -2px; }
.login h1 { margin-top: 18px; font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; }
.login .lead { margin-top: 10px; color: var(--tx-2); }
.login .btn { margin-top: 28px; }
.login .btn + .btn { margin-top: 8px; }
.login .fine { margin-top: 14px; text-align: center; color: var(--tx-3); font-size: 13px; }

/* 시트권 */
.tk-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); }
.tk-hero img { width: 112px; height: 112px; }
.tk-hero span { font-size: 14px; color: var(--tx-3); }
.tk-hero .big b { font: 800 56px/1 var(--fn); color: var(--gold-ink); }
.tk-hero .big small { margin-left: 4px; font-size: 17px; color: var(--tx-2); }
.tk-hero p { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); color: var(--tx-2); font-size: 14px; }

/* 회원증 */
.pass { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid rgba(232, 185, 74, 0.5); }
.pass .art { position: relative; height: 236px; overflow: hidden; }
.pass .art > img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.pass .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 28, 33, 0) 45%, #1a1c21 100%); }
.pass .art .word { position: absolute; z-index: 1; right: 16px; top: 16px; }
.pass .art .word img { height: 52px; }
.pass .in2 { position: relative; z-index: 1; margin-top: -54px; padding: 0 20px 22px; }
.pass .av { width: 96px; height: 96px; }
.pass h2 { margin-top: 12px; font-size: 26px; line-height: 1.25; }
.pass .no { margin-top: 2px; font: 800 34px/1.2 var(--fn); letter-spacing: 0.04em; color: var(--gold-ink); }
.pass .kv { margin-top: 12px; }

/* 게임 목록 */
.games { border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.games li { border-top: 1px solid var(--line); }
.games li:first-child { border-top: 0; }
.games a { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; color: inherit; text-decoration: none; }
.games a:hover { background: var(--hover); }
.games .d { text-align: center; line-height: 1.15; }
.games .d b { display: block; font: 800 20px/1.1 var(--fn); }
.games .d span { font-size: 12px; color: var(--tx-3); }
.games .n b { display: block; font-size: 15px; }
.games .n span { font-size: 13px; color: var(--tx-3); }
.games .left { font-size: 13px; color: var(--tx-2); text-align: right; }
.games .left b { color: var(--tx); font-size: 16px; }
.games .few b { color: var(--red-tx); }

/* ================= 6. 직원 · 관리 틀 ================= */
.gtop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 24px 0; background: var(--bar); border-bottom: 1px solid var(--line); }
.gtop .word { margin-right: 30px; }
/* 좁으면 심볼만 남김 */
@media (max-width: 386px), (min-width: 761px) and (max-width: 1060px) { .gtop .word img { width: 28px; object-fit: cover; object-position: left center; } .gtop .word { margin-right: 14px; } }
.gtop .gnav { display: flex; height: 100%; }
.gtop .gnav a { position: relative; display: flex; align-items: center; padding: 0 15px; color: var(--tx-2); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gtop .gnav a:hover { color: var(--tx); }
.gtop .gnav a[aria-current] { color: var(--tx); font-weight: 800; }
.gtop .gnav a[aria-current]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); }
.gtop .meb { display: flex; flex: none; white-space: nowrap; align-items: center; gap: 10px; margin-left: auto; padding: 4px 4px 4px 10px; border: 0; background: none; text-align: right; }
.gtop .meb b { display: block; font-size: 14px; line-height: 1.25; }
.gtop .meb b { max-width: 96px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .gtop .word { margin-right: 12px; } .gtop .meb b { max-width: 58px; } }
@media (min-width: 761px) and (max-width: 900px) { .gtop .gnav a { padding: 0 11px; } }
.gtop .meb span { font-size: 12px; color: var(--gold-ink); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 20px 24px 56px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 42px; }
.pagehead h1 { font-size: 22px; line-height: 1.3; }
.only-m { display: none !important; }

.lobby { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.lobby .banner { min-height: 250px; }
.lobby .banner .t { width: 46%; right: 20px; top: 22px; bottom: 20px; }
.lobby .banner .t > b { font-size: 22px; }
.lobby .banner .seats b { font-size: 26px; }
.lobby .banner .btn { align-self: flex-start; min-width: 108px; }
.nums.four { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.nums.four > * { padding: 14px 18px; }
.cols { display: grid; gap: 14px; margin-top: 14px; align-items: start; }
.cols.c2 { grid-template-columns: 1fr 1fr; }
.cols.c21 { grid-template-columns: minmax(0, 1fr) 380px; }
.cols.c12 { grid-template-columns: 340px minmax(0, 1fr); }
.cols.c3 { grid-template-columns: 330px minmax(0, 1fr) 440px; }
.cols > .panel + .panel, .cols > * + .panel { margin-top: 0; }
.stack { display: grid; gap: 14px; align-content: start; min-width: 0; }
.stack > .panel + .panel { margin-top: 0; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.toolbar .search { flex: 1; max-width: 420px; }
.toolbar .search .in, .toolbar .sel { height: 42px; font-size: 15px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 9px 10px; border-bottom: 1px solid var(--line-2); color: var(--tx-3); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .n, .tbl th.n { text-align: right; font-family: var(--fn); }
.tbl .nm { display: flex; align-items: center; gap: 10px; }
.tbl .nm b { font-weight: 700; }
.tbl .on td { background: var(--gold-soft); }
.tklink { display: inline-flex; align-items: center; gap: 4px; font: 800 16px/1 var(--fn); color: var(--gold-ink); text-decoration: none; }
.tklink:hover { text-decoration: underline; text-underline-offset: 3px; }
.perm li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--tx-2); }
.perm li:first-child { border-top: 0; }
.perm .chip { justify-self: start; }

/* 시트권 처리 */
.work .after { margin: 16px 0 10px; font-size: 16px; color: var(--tx-2); }
.work .after b { font-family: var(--fn); color: var(--tx); }
.work .after .neg { color: var(--red-tx); }
.work .blk { margin-top: 14px; }
.confirm { padding: 16px; border-radius: var(--r2); background: var(--panel-2); border: 1px solid rgba(232, 185, 74, 0.5); }
.confirm p { font-size: 17px; font-weight: 700; }
.confirm p + p { margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--tx-2); }
.confirm .two { margin-top: 14px; }
.pick li { border-top: 1px solid var(--line); }
.pick li:first-child { border-top: 0; }
.pick a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--r); color: inherit; text-decoration: none; }
.pick a:hover { background: var(--hover); }
.pick a[aria-current] { background: var(--gold-soft); }
.pick b { display: block; }
.pick .s { font-size: 13px; color: var(--tx-3); }
.pick .c { font: 800 17px/1 var(--fn); color: var(--gold-ink); }

@media (min-width: 761px) {
  .app.login { max-width: none; display: grid; grid-template-columns: 1fr minmax(420px, 34%); align-items: center; }
  .login .hero { inset: 0; height: auto; }
  .login .hero img { object-position: left center; }
  .login .hero::after { background: linear-gradient(90deg, rgba(16, 17, 21, 0) 34%, rgba(16, 17, 21, 0.9) 66%); }
  .login .body { grid-column: 2; padding: 0 60px 0 0; }
  .shade { align-items: center; }
  .sheet { border-radius: 14px; border: 1px solid var(--line-2); padding: 26px; box-shadow: 0 24px 60px rgba(4, 5, 7, 0.6); }
  .toast { bottom: 32px; }
  .admin .tab { display: none; }
  .work.panel { padding: 20px; }
}
@media (max-width: 1180px) {
  .cols.c3 { grid-template-columns: 300px minmax(0, 1fr); }
  .cols.c3 > :last-child { grid-column: 1 / -1; }
  .cols.c21 { grid-template-columns: 1fr; }
  .lobby { grid-template-columns: 1fr 1fr; }
  .lobby .banner:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .only-pc { display: none !important; }
  .only-m { display: revert !important; }
  .ph.only-m { display: flex !important; }
  .gtop { padding-left: 16px; padding-right: 10px; }
  .gtop .gnav { display: none; }
  .wrap { max-width: 480px; padding: 16px 16px calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 28px); }
  .pagehead h1 { font-size: 20px; }
  .lobby { grid-template-columns: 1fr; gap: 10px; }
  .lobby .banner { min-height: 184px; }
  .lobby .banner .t { width: 48%; right: 14px; top: 14px; bottom: 14px; }
  .lobby .banner .t > b { font-size: 20px; }
  .lobby .banner .when { margin-top: 2px; }
  .lobby .banner::after { background: linear-gradient(90deg, rgba(16, 17, 21, 0) 22%, rgba(16, 17, 21, 0.82) 54%); }
  .cols.c2, .cols.c21, .cols.c12, .cols.c3 { grid-template-columns: minmax(0, 1fr); }
  .nums.four { grid-template-columns: 1fr 1fr; }
  .hist li { gap: 10px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex: 1 0 100%; max-width: none; }
  .work.panel { padding: 0; border: 0; background: none; }
  .perm li { grid-template-columns: 88px 1fr; }
}
h1.h { font-size: 21px; line-height: 1.3; }
h1.title { font-size: 17px; line-height: 1; }
.list .ic { width: 34px; height: 34px; }
.mt-s { margin-top: 6px; }
.cols.flush, .nums.nomt { margin-top: 0; }
.narrow { max-width: 480px; margin: 0 auto; }
.work .seg { background: var(--panel-2); }
.work .hist { border-top: 1px solid var(--line); }
