@import url('vendor/fonts/fonts.css');

:root {
  --ink: #172522;
  --deep: #0e3029;
  --deep-2: #21493e;
  --moss: #567363;
  --lime: #c7e86d;
  --lime-2: #e4f8a6;
  --coral: #f18167;
  --amber: #e2ad52;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: #e8e3d9;
  --muted: #819087;
  --shadow: 0 18px 50px rgba(22, 37, 34, .12);
  --shadow-soft: 0 8px 24px rgba(22, 37, 34, .08);
  --radius: 22px;
  --radius-sm: 14px;
  --font: 'DM Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --display: 'Fraunces', 'Songti SC', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); font-family: var(--font); overflow-x: hidden; }
body { font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }

.page { min-height: 100vh; background: var(--cream); }
.page::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .22; z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Shared type and atoms */
.display { font-family: var(--display); letter-spacing: -.035em; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
.muted { color: var(--muted); }
.micro { font-size: 11px; line-height: 1.4; }
.tiny { font-size: 10px; }
.text-coral { color: var(--coral); }
.text-lime { color: var(--lime); }
.text-deep { color: var(--deep); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 16px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--deep); color: var(--lime-2); box-shadow: 0 8px 16px rgba(14, 48, 41, .18); }
.btn-lime { background: var(--lime); color: var(--deep); box-shadow: 0 8px 18px rgba(176, 211, 79, .24); }
.btn-ghost { background: rgba(255,255,255,.65); color: var(--ink); border: 1px solid var(--line); }
.btn-coral { background: var(--coral); color: white; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.65); border: 1px solid rgba(232,227,217,.9); }
.card { background: var(--paper); border: 1px solid rgba(232,227,217,.86); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.card-pad { padding: 18px; }
.divider { height: 1px; background: var(--line); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #eef5d9; color: #58722e; font-size: 11px; font-weight: 700; }
.tag-dark { background: rgba(23,37,34,.09); color: var(--moss); }
.tag-coral { background: #fff0eb; color: #c45b45; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #81b75a; box-shadow: 0 0 0 3px rgba(129,183,90,.14); }
.status-dot.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(226,173,82,.16); }
.status-dot.red { background: var(--coral); box-shadow: 0 0 0 3px rgba(241,129,103,.16); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 52px; height: 52px; }

/* Mobile / WeChat mini program */
.mobile-app { width: 100%; max-width: 430px; margin: 0 auto; min-height: 852px; background: var(--cream); overflow: hidden; position: relative; box-shadow: 0 0 24px rgba(22,37,34,.08); }
.mobile-screen { min-height: 852px; position: relative; padding-bottom: 92px; }
.mobile-top { padding: 11px 18px 7px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink); position: relative; z-index: 2; }
.mobile-top .system-icons { display: flex; gap: 6px; align-items: center; }
.mobile-header { padding: 8px 18px 14px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.mobile-header h1 { margin: 0; font-family: var(--display); font-size: 25px; letter-spacing: -.045em; }
.mobile-header .location { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.mobile-scroll { padding: 0 18px; }
.mobile-bottom { position: absolute; z-index: 12; bottom: 0; left: 0; right: 0; height: 77px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 12px 12px; background: rgba(255,253,248,.92); border-top: 1px solid rgba(232,227,217,.9); backdrop-filter: blur(16px); }
.mobile-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #98a49d; font-size: 10px; font-weight: 600; border-radius: 14px; }
.mobile-bottom a i { font-size: 16px; }
.mobile-bottom a.active { color: var(--deep); background: #f0f6d9; }
.mobile-bottom a.active i { color: #6e9436; }
.mobile-bottom .badge { position: absolute; margin: -20px 0 0 16px; background: var(--coral); color: white; min-width: 14px; height: 14px; display: grid; place-items: center; font-size: 8px; border-radius: 99px; }

.hero-tavern { position: relative; min-height: 248px; margin: 0 14px 18px; overflow: hidden; border-radius: 26px; color: white; background: linear-gradient(150deg, rgba(14,48,41,.95), rgba(31,78,64,.88)), url('vendor/img/hero-tavern.jpg') center/cover; box-shadow: 0 20px 36px rgba(14,48,41,.22); }
.hero-tavern::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 10%, rgba(199,232,109,.35), transparent 33%), linear-gradient(0deg, rgba(8,26,22,.35), transparent 60%); }
.hero-tavern-content { position: relative; z-index: 1; padding: 23px 20px; display: flex; flex-direction: column; height: 248px; justify-content: space-between; }
.hero-tavern h2 { margin: 8px 0 0; font-family: var(--display); font-size: 34px; line-height: .98; letter-spacing: -.055em; }
.hero-tavern p { color: rgba(255,255,255,.72); margin: 8px 0; font-size: 12px; }
.hero-tavern .hero-meta { display: flex; align-items: center; justify-content: space-between; }
.hero-tavern .hero-meta span { color: rgba(255,255,255,.82); font-size: 11px; }
.hero-tavern .hero-meta b { color: var(--lime); }

.section-head { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 11px; }
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.section-head a { font-size: 11px; color: var(--moss); font-weight: 700; }
.h-scroll { display: flex; gap: 10px; overflow: hidden; margin-right: -18px; padding-right: 18px; }
.h-scroll > * { flex: 0 0 auto; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.quick-item { padding: 12px 5px; border-radius: 17px; text-align: center; background: rgba(255,253,248,.74); border: 1px solid var(--line); }
.quick-item i { width: 31px; height: 31px; margin: 0 auto 7px; border-radius: 11px; display: grid; place-items: center; background: #edf5d4; color: #5c823b; }
.quick-item b { display: block; font-size: 10px; }

.package-card { width: 218px; overflow: hidden; }
.package-photo { height: 106px; position: relative; background: linear-gradient(0deg, rgba(14,48,41,.5), transparent), url('vendor/img/package-1.jpg') center/cover; }
.package-photo.alt { background-image: linear-gradient(0deg, rgba(14,48,41,.5), transparent), url('vendor/img/package-2.jpg'); }
.package-photo .tag { position: absolute; top: 10px; left: 10px; background: rgba(255,253,248,.9); }
.package-body { padding: 13px; }
.package-body h3 { margin: 0 0 6px; font-size: 14px; }
.package-body p { margin: 0 0 10px; font-size: 11px; color: var(--muted); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; }
.price { font-family: var(--display); font-size: 22px; color: var(--deep); }
.price small { font-family: var(--font); font-size: 10px; font-weight: 600; }

.event-card { min-width: 265px; padding: 15px; background: var(--deep); color: white; position: relative; overflow: hidden; }
.event-card::before { content: '♠'; position: absolute; font-size: 118px; line-height: 1; color: rgba(199,232,109,.07); right: -6px; bottom: -22px; font-family: Georgia, serif; }
.event-card .event-top { display: flex; justify-content: space-between; align-items: center; }
.event-card h3 { margin: 18px 0 4px; font-size: 16px; position: relative; }
.event-card p { margin: 0; font-size: 11px; color: rgba(255,255,255,.62); position: relative; }
.event-card .event-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: 23px; position: relative; }
.event-card .event-bottom strong { color: var(--lime); font-size: 17px; }

.balance-card { background: var(--deep); color: white; padding: 18px; border-radius: 23px; position: relative; overflow: hidden; }
.balance-card::before { content: '♣'; position: absolute; right: 14px; top: -25px; font-family: Georgia, serif; font-size: 120px; color: rgba(199,232,109,.08); }
.balance-card .balance-label { color: rgba(255,255,255,.64); font-size: 11px; }
.balance-card .balance-value { margin: 5px 0 14px; font-family: var(--display); font-size: 34px; letter-spacing: -.06em; position: relative; }
.balance-card .balance-value small { font-family: var(--font); font-size: 12px; letter-spacing: 0; color: var(--lime); }
.balance-card .balance-footer { display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: 11px; position: relative; }

.seat-layout { padding: 17px; background: #e8f0d3; border-radius: 24px; position: relative; min-height: 263px; }
.table-felt { width: 142px; height: 82px; border-radius: 50%; position: absolute; top: 91px; left: calc(50% - 71px); background: var(--deep-2); border: 7px solid #c5d59b; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 10px; letter-spacing: .08em; }
.seat { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #e8f0d3; box-shadow: 0 3px 9px rgba(34,56,44,.16); font-size: 10px; font-weight: 700; }
.seat.free { background: #f8fbef; color: #718a5b; }
.seat.taken { background: var(--deep); color: white; border-color: #d7e6ac; }
.seat.me { background: var(--coral); color: white; }
.seat.s1 { top: 13px; left: 28px; } .seat.s2 { top: 13px; left: calc(50% - 26px); } .seat.s3 { top: 13px; right: 28px; }
.seat.s4 { top: 106px; left: 12px; } .seat.s5 { top: 106px; right: 12px; }
.seat.s6 { bottom: 13px; left: 28px; } .seat.s7 { bottom: 13px; left: calc(50% - 26px); } .seat.s8 { bottom: 13px; right: 28px; }
.seat.s9 { top: 105px; left: calc(50% - 26px); }

.rank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-number { font-family: var(--display); font-size: 20px; color: var(--moss); }
.rank-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; }
.rank-score { font-family: var(--display); font-size: 18px; color: var(--deep); }

.tab-pills { display: flex; gap: 8px; overflow: hidden; }
.tab-pills button { padding: 8px 13px; border-radius: 99px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tab-pills button.active { color: var(--deep); background: var(--lime); border-color: var(--lime); }
.filter-row { display: flex; gap: 7px; overflow: hidden; margin: 0 -18px; padding: 0 18px; }
.filter-chip { padding: 8px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; white-space: nowrap; }
.filter-chip.active { background: var(--deep); border-color: var(--deep); color: white; }

.list-card { padding: 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.list-card .lead { display: flex; gap: 11px; align-items: center; }
.list-card h3 { margin: 0 0 4px; font-size: 13px; }
.list-card p { margin: 0; color: var(--muted); font-size: 11px; }
.list-card .right { text-align: right; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric-card { padding: 15px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.metric-card .metric-label { color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; font-family: var(--display); font-size: 25px; margin-top: 5px; }
.metric-card .delta { color: #71a047; font-size: 10px; margin-top: 5px; }

.modal-backdrop { display: none; position: absolute; z-index: 50; inset: 0; background: rgba(14,48,41,.52); backdrop-filter: blur(3px); align-items: flex-end; justify-content: center; }
.modal-backdrop.open { display: flex; }
.bottom-sheet { width: 100%; padding: 22px 18px 30px; border-radius: 27px 27px 0 0; background: var(--paper); box-shadow: 0 -15px 40px rgba(0,0,0,.18); animation: slide-up .25s ease both; }
.bottom-sheet .handle { width: 40px; height: 4px; border-radius: 99px; background: #d7d6cc; margin: -5px auto 18px; }
.bottom-sheet h3 { margin: 0 0 6px; font-family: var(--display); font-size: 23px; }
.bottom-sheet p { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sheet-summary { background: #f4f7e7; padding: 13px; border-radius: 15px; margin: 13px 0 17px; }
.sheet-summary div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 9px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(12px); background: var(--ink); color: white; border-radius: 99px; padding: 10px 15px; opacity: 0; pointer-events: none; transition: .25s; font-size: 11px; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Desktop management views */
.admin-app { min-height: 900px; background: #f3f0e8; display: flex; color: var(--ink); }
.admin-sidebar { width: 225px; flex: 0 0 225px; background: var(--deep); color: rgba(255,255,255,.76); padding: 24px 15px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 26px; color: white; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--deep); font-size: 17px; transform: rotate(-8deg); }
.brand strong { font-size: 15px; letter-spacing: -.035em; }
.brand small { display: block; color: rgba(255,255,255,.46); font-size: 9px; margin-top: 2px; }
.nav-group { margin: 12px 0 7px 10px; color: rgba(255,255,255,.34); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; margin-bottom: 3px; font-size: 12px; }
.admin-nav a i { width: 17px; color: rgba(255,255,255,.48); }
.admin-nav a.active { background: rgba(199,232,109,.14); color: var(--lime-2); }
.admin-nav a.active i { color: var(--lime); }
.sidebar-bottom { margin-top: auto; padding: 14px; background: rgba(255,255,255,.06); border-radius: 16px; }
.sidebar-bottom p { margin: 0 0 11px; color: rgba(255,255,255,.6); font-size: 10px; line-height: 1.5; }
.admin-main { flex: 1; min-width: 0; padding: 0 30px 40px; }
.admin-topbar { height: 75px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e0d5; }
.admin-topbar .crumb { color: var(--muted); font-size: 12px; }
.admin-topbar .crumb strong { color: var(--ink); }
.admin-top-actions { display: flex; align-items: center; gap: 12px; }
.store-switch { padding: 8px 11px; display: flex; align-items: center; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 11px; }
.user-mini { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.admin-content { max-width: 1320px; margin: 0 auto; padding-top: 28px; }
.page-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; }
.page-title h1 { margin: 0; font-family: var(--display); letter-spacing: -.05em; font-size: 35px; }
.page-title p { color: var(--muted); margin: 7px 0 0; font-size: 12px; }
.admin-actions { display: flex; gap: 8px; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 8px 18px rgba(22,37,34,.04); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.kpi { padding: 18px; min-height: 125px; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -20px; bottom: -28px; width: 95px; height: 95px; background: #f0f4db; border-radius: 50%; }
.kpi .label { color: var(--muted); font-size: 11px; }
.kpi .value { font-family: var(--display); font-size: 28px; margin: 10px 0 6px; position: relative; z-index: 1; }
.kpi .trend { font-size: 10px; color: #689e55; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 16px; margin-top: 16px; }
.dashboard-grid.two { grid-template-columns: 1fr 1fr; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.admin-card-header h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.admin-card-header a { color: var(--moss); font-size: 11px; font-weight: 700; }
.admin-card-body { padding: 18px; }
.chart { height: 220px; position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(240,245,218,.45), transparent); }
.chart svg { width: 100%; height: 100%; }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin-top: -2px; }
.table-wrap { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 11px 14px; background: #faf8f2; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .person { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.data-table .money { font-family: var(--display); font-size: 16px; }
.data-table .actions { text-align: right; }
.table-status { padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; background: #ecf5d9; color: #5c823b; }
.table-status.pending { background: #fff4df; color: #a16e1c; }
.table-status.danger { background: #fff0eb; color: #c45b45; }
.search-input { height: 35px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 0 12px; outline: none; color: var(--ink); }
.search-input:focus { border-color: var(--moss); }
.admin-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.admin-filter .filter-chip { background: var(--paper); }
.admin-filter .filter-chip.active { background: var(--deep); color: white; }
.alert-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff5de; border: 1px solid #f1d49c; color: #89601e; border-radius: 15px; padding: 12px 14px; font-size: 11px; margin-bottom: 16px; }
.alert-strip i { color: var(--amber); font-size: 16px; }
.progress { height: 7px; border-radius: 99px; background: #ecede2; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.admin-modal { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; background: rgba(14,48,41,.4); backdrop-filter: blur(4px); }
.admin-modal.open { display: flex; }
.admin-dialog { width: min(520px, calc(100vw - 40px)); background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 23px; animation: pop-in .22s ease both; }
.admin-dialog h2 { margin: 0; font-family: var(--display); font-size: 25px; }
.admin-dialog p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; margin: 14px 0; }
.form-field label { font-size: 11px; font-weight: 700; color: var(--moss); }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #fffefa; padding: 10px 11px; outline: none; }
.form-field textarea { min-height: 75px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }

/* Index prototype gallery */
.gallery-page { background: #0d2722; color: white; min-height: 100vh; }
.gallery-hero { padding: 58px 6vw 44px; display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: end; background: radial-gradient(circle at 80% 10%, rgba(199,232,109,.18), transparent 28%), linear-gradient(135deg, #0d2722, #173c32 62%, #214b3e); }
.gallery-hero .eyebrow { color: var(--lime); }
.gallery-hero h1 { font-family: var(--display); font-size: clamp(44px, 6vw, 84px); line-height: .91; letter-spacing: -.07em; margin: 14px 0 20px; max-width: 760px; }
.gallery-hero p { margin: 0; max-width: 610px; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.65; }
.gallery-meta { border: 1px solid rgba(255,255,255,.13); border-radius: 24px; padding: 22px; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.gallery-meta h3 { margin: 0 0 14px; font-size: 14px; }
.gallery-meta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gallery-meta li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.5; }
.gallery-meta li i { color: var(--lime); margin-top: 2px; }
.gallery-toolbar { padding: 20px 6vw; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.gallery-toolbar .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-toolbar button { padding: 9px 13px; border-radius: 99px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.09); font-size: 11px; }
.gallery-toolbar button.active { background: var(--lime); border-color: var(--lime); color: var(--deep); font-weight: 700; }
.gallery-toolbar .legend { display: flex; gap: 14px; color: rgba(255,255,255,.46); font-size: 10px; }
.gallery-toolbar .legend span { display: flex; gap: 5px; align-items: center; }
.gallery-toolbar .legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.gallery-grid { padding: 36px 6vw 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 30px; align-items: start; }
.proto-card { background: #f2eee5; border-radius: 24px; padding: 11px; box-shadow: 0 22px 50px rgba(0,0,0,.2); color: var(--ink); overflow: hidden; }
.proto-card.hidden { display: none; }
.proto-card .proto-label { display: flex; justify-content: space-between; padding: 10px 9px 12px; align-items: center; }
.proto-card .proto-label h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.proto-card .proto-label span { font-size: 10px; color: var(--muted); }
.proto-card iframe { width: 100%; border: 0; border-radius: 18px; display: block; background: var(--cream); }
.proto-card.mobile { max-width: 415px; justify-self: center; width: 100%; }
.proto-card.mobile iframe { height: 852px; }
.proto-card.desktop { grid-column: span 2; }
.proto-card.desktop iframe { height: 720px; }
.prototype-note { padding: 0 6vw 45px; color: rgba(255,255,255,.47); font-size: 11px; line-height: 1.6; }

@keyframes slide-up { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pop-in { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.reveal { animation: rise .55s ease both; }
.reveal-2 { animation-delay: .08s; }
.reveal-3 { animation-delay: .16s; }

@media (max-width: 900px) {
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-meta { max-width: 480px; }
  .proto-card.desktop { grid-column: auto; }
  .proto-card.desktop iframe { height: 720px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-sidebar { width: 190px; flex-basis: 190px; }
  .admin-main { padding: 0 18px 30px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery-hero { padding: 38px 22px 32px; }
  .gallery-hero h1 { font-size: 48px; }
  .gallery-toolbar, .gallery-grid, .prototype-note { padding-left: 22px; padding-right: 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .proto-card.mobile { max-width: 415px; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 0 14px 25px; }
  .dashboard-grid, .dashboard-grid.two { grid-template-columns: 1fr; }
  .page-title { align-items: start; flex-direction: column; gap: 15px; }
  .admin-topbar { height: 64px; }
  .topbar-hide-mobile { display: none; }
}

/* Extended prototype interactions */
.quick-grid.five { grid-template-columns: repeat(5, 1fr); }
.rank-panel.hidden { display: none; }
.segment-content.hidden { display: none; }
.table-detail-players { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.table-detail-player { text-align: center; padding: 10px 5px; border-radius: 14px; background: #f5f7ea; }
.table-detail-player span { display:block; font-size:10px; margin-top:4px; color:var(--moss); }
.stepper { display:flex; align-items:center; gap:0; margin: 16px 0 20px; }
.stepper .step { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; font-weight:700; }
.stepper .step b { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--line); background:var(--paper); }
.stepper .step.active { color:var(--deep); }
.stepper .step.active b { color:var(--deep); background:var(--lime); border-color:var(--lime); }
.stepper .line { flex:1; height:1px; background:var(--line); margin:0 9px; }
.choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.choice-card { padding:15px; border:1px solid var(--line); border-radius:16px; background:var(--paper); text-align:left; transition:.2s; }
.choice-card.active { border-color:var(--moss); background:#f0f5dc; box-shadow:0 0 0 3px rgba(86,115,99,.1); }
.choice-card i { color:var(--moss); font-size:18px; margin-bottom:9px; }
.choice-card strong { display:block; font-size:13px; }
.choice-card small { display:block; color:var(--muted); font-size:10px; margin-top:4px; line-height:1.45; }
.report-hero { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; border-radius:22px; color:white; background:linear-gradient(140deg,var(--deep),#2c5c48); }
.report-rank { width:66px; height:66px; display:grid; place-items:center; border-radius:20px; color:var(--deep); background:var(--lime); font-family:var(--display); font-size:25px; }
.timeline { position:relative; padding-left:20px; }
.timeline::before { content:''; position:absolute; left:5px; top:7px; bottom:7px; width:1px; background:#dfe7d0; }
.timeline-item { position:relative; padding:0 0 19px 14px; }
.timeline-item::before { content:''; position:absolute; left:-19px; top:4px; width:10px; height:10px; border-radius:50%; background:var(--lime); border:3px solid var(--paper); box-shadow:0 0 0 1px #bfd48c; }
.form-readonly { background:#f3f5eb; border:1px solid var(--line); border-radius:12px; padding:11px 12px; font-size:12px; }
.admin-detail-hero { display:flex; align-items:center; gap:16px; padding:22px; background:linear-gradient(140deg,#173d32,#0e3029); border-radius:22px; color:white; }
.admin-detail-hero .avatar { border-color:rgba(255,255,255,.5); }
.blind-screen-layout { display:grid; grid-template-columns:260px 1fr; gap:20px; min-height:650px; }
.blind-table-list { display:grid; gap:10px; }
.blind-table-btn { text-align:left; padding:14px; border-radius:15px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.07); color:rgba(255,255,255,.68); }
.blind-table-btn.active { background:var(--lime); color:var(--deep); border-color:var(--lime); }
.blind-focus { min-height:520px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; border:1px solid rgba(255,255,255,.12); border-radius:24px; background:radial-gradient(circle at 50% 32%,rgba(199,232,109,.18),transparent 35%),rgba(255,255,255,.06); }
.blind-focus .big-level { font-family:var(--display); font-size:clamp(76px,10vw,142px); line-height:.9; color:var(--lime); letter-spacing:-.08em; }
.blind-focus .blind-value { font-family:var(--display); font-size:clamp(36px,5vw,62px); color:white; margin-top:18px; }
.blind-focus .next-level { color:rgba(255,255,255,.55); margin-top:22px; }
@media (max-width:720px) { .quick-grid.five { grid-template-columns:repeat(5, minmax(0,1fr)); } .blind-screen-layout { grid-template-columns:1fr; } .blind-table-list { grid-template-columns:repeat(3,1fr); } .blind-table-btn { padding:10px; font-size:10px; } .blind-focus { min-height:430px; } }
.screen-fullscreen { position: fixed !important; inset: 0 !important; z-index: 999 !important; overflow: auto !important; min-height: 100vh !important; }
.crud-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.crud-actions { display:flex; gap:7px; justify-content:flex-end; }
.btn-danger { background:#fff0eb; color:#c45b45; border:1px solid #f2c7bc; }
.btn-small { padding:7px 10px; font-size:10px; border-radius:9px; }
.form-help { color:var(--muted); font-size:10px; line-height:1.5; margin-top:5px; }
.audit-list { display:grid; gap:8px; }
.audit-item { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid var(--line); font-size:11px; }
.audit-item:last-child { border-bottom:0; }
.audit-item p { margin:3px 0 0; color:var(--muted); font-size:10px; }
.switch { position:relative; width:38px; height:22px; display:inline-block; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; border-radius:99px; background:#d9dfd3; transition:.2s; }
.switch span::before { content:''; position:absolute; width:16px; height:16px; left:3px; top:3px; border-radius:50%; background:white; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:.2s; }
.switch input:checked + span { background:#7b9d4f; }
.switch input:checked + span::before { transform:translateX(16px); }
.crud-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:15px 0; }
.crud-summary .metric-card { min-height:90px; }
@media (max-width: 760px) { .crud-summary { grid-template-columns:repeat(2,1fr); } }

/* 可视化德州桌位（AI 生成牌桌背景 + 9 玩家环绕 + 中间荷官） */
.poker-table-view { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; background: #0b241d url('assets/poker-table.png') center / cover no-repeat; box-shadow: 0 18px 40px rgba(11, 36, 29, .35); border: 1px solid rgba(216, 180, 90, .25); }
.p-seat { position: absolute; width: 15.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; border: 3px solid rgba(255, 253, 248, .9); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.p-seat img { width: 100%; height: 100%; object-fit: cover; }
.p-seat.free { background: rgba(245, 241, 232, .92); color: #6e8563; font-size: 11px; font-weight: 800; letter-spacing: .06em; border-style: dashed; border-color: rgba(216, 180, 90, .8); }
.p-seat.free:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 6px 18px rgba(199, 232, 109, .35); }
.p-seat.taken { background: var(--deep); }
.p-seat.me { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(199, 232, 109, .35), 0 4px 12px rgba(0,0,0,.4); }
.p-seat .p-name { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-size: 9px; font-weight: 700; color: rgba(255,255,255,.9); background: rgba(11,36,29,.75); padding: 1px 7px; border-radius: 99px; white-space: nowrap; backdrop-filter: blur(3px); }
.dealer-seat { position: absolute; left: 50%; top: 24%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dealer-seat .dealer-avatar { width: 13.5%; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(150deg, #d8b45a, #b48a34); display: grid; place-items: center; color: #231a08; font-size: 20px; border: 3px solid rgba(255, 244, 214, .95); box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 4px rgba(216, 180, 90, .3); }
.dealer-seat .dealer-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #f3dfae; background: rgba(11, 36, 29, .8); border: 1px solid rgba(216, 180, 90, .45); padding: 2px 10px; border-radius: 99px; backdrop-filter: blur(3px); }
.poker-pot { position: absolute; left: 50%; top: 79%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(11, 36, 29, .82); border: 1px solid rgba(216, 180, 90, .4); color: #f3dfae; font-size: 10px; font-weight: 700; backdrop-filter: blur(3px); }
.poker-table-meta { display: flex; justify-content: center; gap: 18px; margin: 12px 0 2px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }
.poker-table-meta span { display: inline-flex; align-items: center; gap: 5px; }
.poker-table-meta .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px dashed rgba(216,180,90,.8); background: rgba(245,241,232,.92); }
.poker-table-meta .dot.taken { border: 2px solid rgba(255,253,248,.9); background: var(--deep); border-style: solid; }
.poker-table-meta .dot.me { border: 2px solid var(--lime); background: var(--deep); border-style: solid; }
.poker-table-meta .dot.dealer { border: 2px solid rgba(255,244,214,.95); background: linear-gradient(150deg,#d8b45a,#b48a34); border-style: solid; }

/* 头像加载失败兜底：显示姓名首字 */
.avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #e4f8a6; font-weight: 800; background: linear-gradient(150deg, #567363, #21493e); }
.card .avatar-fallback, .admin-app .avatar-fallback { border-radius: inherit; }
