:root { --app-height: 100vh; --game-scale: 1; }
@supports (height: 100dvh) { :root { --app-height: 100dvh; } }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; max-width: 100%; height: 100%; overflow: hidden; overflow-x: clip; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #0a0f1e; color: #fff; overflow: hidden; }
body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, canvas { -webkit-user-drag: none; }
.hidden { display: none !important; }
.cards-chip.static { cursor: default; }
.view { display: none; width: var(--app-width, 100%); height: var(--app-height); }
.view.active { display: block; }
html.auth-pending .view { display: none !important; }
button { cursor: pointer; border: none; font-family: inherit; }
input { font-family: inherit; }

#wechat-browser-hint { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3, 10, 20, .96); }
.wechat-browser-panel { width: min(420px, 100%); padding: 30px 26px 26px; border: 1px solid rgba(255, 224, 130, .28); border-radius: 20px; background: linear-gradient(160deg, #173b35, #0b1c2c); box-shadow: 0 18px 60px rgba(0, 0, 0, .45); text-align: center; }
.wechat-browser-icon { color: #ffe082; font-size: 42px; line-height: 1; margin-bottom: 12px; }
.wechat-browser-panel h2 { color: #ffe082; font-size: 24px; margin-bottom: 16px; }
.wechat-browser-panel p { color: #f4f7f8; font-size: 16px; line-height: 1.8; }
.wechat-browser-panel .wechat-browser-sub { color: #b9cbc9; font-size: 14px; margin-top: 8px; }
.wechat-browser-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; }
.wechat-browser-actions .btn-game { padding: 11px 20px; font-size: 16px; white-space: nowrap; }
#btn-wechat-copy-link { min-width: 132px; }
.wechat-browser-panel .wechat-copy-status { min-height: 20px; margin-top: 8px; color: #a5d6a7; font-size: 13px; line-height: 20px; }
.wechat-browser-guide { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); display: flex; align-items: flex-start; gap: 8px; color: #ffe082; pointer-events: none; }
.wechat-browser-guide span { padding-top: 54px; font-size: 13px; line-height: 1.6; text-align: right; white-space: nowrap; }
.wechat-browser-guide svg { width: 82px; height: 82px; overflow: visible; }
.wechat-browser-guide path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (orientation: landscape) and (max-height: 500px) {
  #wechat-browser-hint { padding: 14px 24px; }
  .wechat-browser-panel { max-width: 520px; padding: 18px 24px; }
  .wechat-browser-icon { display: none; }
  .wechat-browser-panel h2 { font-size: 20px; margin-bottom: 8px; }
  .wechat-browser-panel p { font-size: 14px; line-height: 1.6; }
  .wechat-browser-panel .wechat-browser-sub { margin-top: 4px; font-size: 13px; }
  .wechat-browser-actions { flex-direction: row-reverse; justify-content: center; gap: 14px; margin-top: 14px; }
  .wechat-browser-actions .btn-game { padding: 9px 18px; font-size: 15px; }
  .wechat-browser-panel .wechat-copy-status { margin-top: 4px; }
  .wechat-browser-guide span { display: none; }
  .wechat-browser-guide svg { width: 64px; height: 64px; }
}
@media (max-width: 360px) {
  #wechat-browser-hint { padding: 18px; }
  .wechat-browser-panel { padding: 24px 18px 22px; }
  .wechat-browser-actions .btn-game { font-size: 15px; padding: 11px 16px; }
  .wechat-browser-guide span { display: none; }
}

/* ===== 竖屏提示 ===== */
#rotate-hint { display: none; position: fixed; inset: 0; z-index: 1000; background: #0a0f1e; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; }
#rotate-hint > div:first-child { font-size: 60px; animation: spin 2s infinite; }
@keyframes spin { 50% { transform: rotate(90deg); } }
@media (orientation: portrait) { body.landscape-required #rotate-hint { display: flex; } }
#portrait-hint { display: none; position: fixed; inset: 0; z-index: 1100; background: radial-gradient(ellipse at 50% 30%,#1c3a6e,#0a0f1e 70%); flex-direction: column; align-items: center; justify-content: center; color: #efffff; text-align: center; font-size: 22px; }
#portrait-hint > div:first-child { font-size: 64px; }
#portrait-hint .hint-sub { max-width: 340px; margin-top: 10px; color: #b8cdd1; font-size: 14px; line-height: 1.7; }
@media (orientation: landscape) {
  body.portrait-required #portrait-hint { display: flex; }
  body.portrait-required #view-login .login-box, body.portrait-required #view-register .login-box, body.portrait-required #view-quick-login .login-box { visibility: hidden; pointer-events: none; }
}
#modal-create, #modal-join, #modal-join-preview, #create-modal, #join-modal, #preview-modal { z-index: 1100; }

/* ===== 通用按钮 ===== */
.btn-game { padding: 14px 30px; border: 1px solid #ffe8a8b8; border-radius: 12px; color: #432d05;
  background: linear-gradient(135deg,#ffdc72db,#f5ae24a8 52%,#db922878);
  box-shadow: inset 0 1px 1px #fff7d499,inset 0 -1px 1px #ffdc7033,0 8px 22px #0004,0 0 20px #ffcf4d1a;
  font-size: 19px; font-weight: bold; text-shadow: 0 1px 1px #fff3bd66;
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: transform .18s,border-color .18s,box-shadow .18s; }
.btn-game:hover:not(:disabled) { transform: translateY(-1px); border-color: #fff3c9d9; box-shadow: inset 0 1px 1px #fff7d499,0 10px 28px #0005,0 0 24px #ffcf4d24; }
.btn-game:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 5px #8c63152e,0 4px 12px #0003; }
.btn-game.green { color: #fff; background: linear-gradient(180deg, #66bb6a, #43a047 60%, #2e7d32); box-shadow: 0 4px 0 #1b5e20, 0 6px 12px rgba(0,0,0,.5), inset 0 1px 0 #fff5; text-shadow: 0 1px 2px #0007; }
.btn-game.wechat { color: #fff; background: linear-gradient(180deg, #2fd25f, #09bb07 60%, #069b05); box-shadow: 0 4px 0 #046e04, 0 6px 12px rgba(0,0,0,.5); text-shadow: 0 1px 2px #0007; }
.btn-game.alipay { color: #fff; background: linear-gradient(180deg, #4d9fff, #1677ff 60%, #0d5ce0); box-shadow: 0 4px 0 #0a45ad, 0 6px 12px rgba(0,0,0,.5); text-shadow: 0 1px 2px #0007; }
.btn-game.small { padding: 8px 18px; font-size: 15px; }
.btn-game.full { width: 100%; margin-top: 12px; }
.btn-game:disabled, .btn-icon.gold:disabled, .bar-btn.gold:disabled { transform: none; border-color: #b9c6ca38; color: #b4bec1; background: linear-gradient(135deg,#b5c0c329,#64767c24); box-shadow: inset 0 1px 3px #0003; text-shadow: none; filter: saturate(.25); opacity: .72; cursor: not-allowed; }
.btn-icon { padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,.12); color: #eee; font-size: 14px; }
.btn-icon.gold { border: 1px solid #ffe8a8b8; color: #432d05; background: linear-gradient(135deg,#ffdc72db,#f5ae24a8 52%,#db922878); box-shadow: inset 0 1px 1px #fff7d499,0 6px 18px #0003; font-weight: bold; text-shadow: 0 1px 1px #fff3bd66; backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.btn-link { display: block; margin: 12px auto 0; background: none; color: #90caf9; font-size: 14px; }
.error { color: #ef9a9a; margin-top: 8px; text-align: center; min-height: 18px; font-size: 14px; }

/* ===== 大厅 ===== */
.hall { height: 100%; display: flex; flex-direction: column; touch-action: manipulation; }
.hall-bar { display: flex; align-items: center; justify-content: space-between; padding: max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); background: rgba(0,0,0,.35); border-bottom: 1px solid #ffb30033; }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-meta { display: flex; flex-direction: column; gap: 3px; }
.hall-nickname { font-weight: bold; font-size: 16px; }
.account-line { display: flex; align-items: center; gap: 9px; }
.user-id { color: #d5e2e7; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .5px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #5c6bc0, #283593); border: 2px solid #ffb300; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; flex-shrink: 0; }
.cards-chip { display: inline-flex; align-items: center; flex-shrink: 0; gap: 5px; background: transparent; padding: 0; border-radius: 0; font-size: 12px; white-space: nowrap; cursor: pointer; }
.cards-chip-icon { font-size: 15px; line-height: 1; }
.cards-chip-times { color: #eceff1; font-size: 14px; font-weight: bold; line-height: 1; }
.cards-chip b { flex-shrink: 0; color: #ffb300; font-variant-numeric: tabular-nums; }
.bar-btns { display: flex; gap: 8px; margin-right: 20px; }
.bar-btn { padding: 8px 14px; border-radius: 20px; background: rgba(0,0,0,.45); border: 1px solid #ffb30055; color: #ffe082; font-size: 14px; white-space: nowrap; }
.account-settings-menu { position: fixed; z-index: 70; width: 172px; padding: 7px; border: 1px solid #d9f8ff48; border-radius: 14px; background: linear-gradient(145deg,#1b4352f2,#0b202df5); box-shadow: inset 0 1px 1px #ffffff24,0 12px 35px #0007; backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
.account-settings-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #efffff; text-align: left; font-size: 14px; cursor: pointer; }
.account-settings-menu button:hover:not(:disabled) { border-color: #d9f8ff24; background: linear-gradient(135deg,#ffffff18,#83d8d20b); }
.account-settings-menu button:disabled { color: #82969b; cursor: not-allowed; }
.account-settings-menu button small { margin-left: 8px; font-size: 10px; white-space: nowrap; }
.modal-box.site-share-box { width: min(470px,calc(100vw - 24px)); max-width: 470px; padding: 16px 18px 18px; overflow-y: auto; }
.site-share-box h3 { margin: 0 30px 3px 0; text-align: left; font-size: 20px; }
.site-share-main { min-width: 0; }
.site-share-hint { margin: 0 0 10px; color: #e6f7f8; font-size: 13px; line-height: 1.4; text-align: center; }
.site-share-layout { display: grid; grid-template-columns: minmax(0,220px) 108px; align-items: end; justify-content: center; gap: 16px; }
.site-share-preview { min-width: 0; border-radius: 13px; background: #fff; box-shadow: 0 8px 24px #0004; overflow: hidden; }
#site-share-image { display: block; width: 100%; min-height: 120px; height: auto; user-select: auto; -webkit-user-select: auto; -webkit-user-drag: auto; -webkit-touch-callout: default !important; touch-action: manipulation; }
.site-share-actions { display: grid; gap: 10px; padding-bottom: 4px; }
.site-share-actions .btn-game { width: 100%; padding: 10px 8px; border-radius: 11px; font-size: 14px; white-space: nowrap; }
.site-share-actions .site-share-close { border-color: #d9f8ff59; color: #efffff; background: linear-gradient(135deg,#ffffff24,#80cbd214); box-shadow: inset 0 1px 1px #ffffff42,0 5px 15px #0003; text-shadow: 0 1px 2px #0005; }
.reg-terms-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 12px; color: #d9e9ed; font-size: 12px; line-height: 1.6; }
.reg-terms-row label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.reg-terms-row input { width: 15px; height: 15px; }
#reg-terms-list { display: inline; }
#reg-terms-list button { padding: 0 1px; border: 0; color: #ffe083; background: none; font-size: inherit; text-decoration: underline; cursor: pointer; }
#reg-terms-list button.read::after { content: '（已读）'; color: #8ed7c1; font-size: 10px; text-decoration: none; }
#view-terms.active { display: flex; }
.terms-page { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; height: 100%; padding: max(14px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); overflow: hidden; background: linear-gradient(145deg,#e3f4f6,#a6d0da); }
.terms-page::before,.terms-page::after { content: ''; position: absolute; z-index: 0; border-radius: 48% 52% 62% 38%; pointer-events: none; filter: blur(8px); }
.terms-page::before { width: 360px; height: 260px; top: -120px; right: 5%; background: radial-gradient(circle at 35% 35%,#ffffffc9,#75dce03d 68%,transparent); transform: rotate(-18deg); }
.terms-page::after { width: 300px; height: 220px; left: -100px; bottom: -90px; background: radial-gradient(circle at 60% 40%,#a8f0e58c,#6caed52e 70%,transparent); transform: rotate(24deg); }
.terms-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; width: min(1080px,100%); margin: 0 auto 12px; padding: 10px 14px; flex-shrink: 0; border: 1px solid #ffffffb8; border-radius: 16px; background: linear-gradient(135deg,#ffffffd9,#eaf9fa9e); box-shadow: inset 0 1px 1px #fff,0 8px 24px #558d9b24; backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
.terms-header h1 { color: #176b73; font-size: 23px; letter-spacing: 0; }
.terms-header button { padding: 7px 15px; border: 1px solid #b5d1d8; border-radius: 12px; color: #236674; background: linear-gradient(135deg,#ffffffe8,#eaf6f7b8); box-shadow: inset 0 1px 1px #fff,0 3px 9px #568b9714; font-size: 14px; }
.terms-header button:disabled { opacity: .45; cursor: not-allowed; }
.terms-reading-status { margin-left: auto; color: #52757e; font-size: 13px; }
.terms-shell { position: relative; z-index: 1; display: grid; grid-template-columns: clamp(138px,20vw,190px) minmax(0,1fr); flex: 1; min-height: 0; width: min(1080px,100%); margin: 0 auto; border: 1px solid #ffffffc4; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg,#d5ececc7,#a9d2db9e); box-shadow: inset 0 1px 1px #ffffffc9,0 18px 45px #4e84942e; backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.terms-tabs { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 16px 12px; overflow-y: auto; background: linear-gradient(160deg,#d9edf0b8,#bddde3a3); }
.terms-tabs button { padding: 13px 12px; border: 1px solid #ffffff70; border-radius: 11px; color: #396570; background: linear-gradient(135deg,#f4fbfc8c,#e4f1f35c); box-shadow: inset 0 1px 1px #ffffff8c; text-align: left; line-height: 1.45; overflow-wrap: anywhere; }
.terms-tabs button.active { border-color: #fff; color: #087f91; background: linear-gradient(135deg,#fffffff2,#eefbfcbd); box-shadow: inset 0 1px 1px #fff,0 5px 15px #4e8b981f; font-weight: 600; }
.terms-content { min-width: 0; min-height: 0; padding: 24px 28px 38px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; color: #263d46; background: #fffffff2; box-shadow: inset 8px 0 22px #75a5ae0a; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.terms-content h2 { margin-bottom: 20px; color: #176b73; font-size: 23px; line-height: 1.4; overflow-wrap: anywhere; }
.terms-content-body { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.terms-content-body h1,.terms-content-body h2,.terms-content-body h3 { margin: 18px 0 10px; line-height: 1.45; }
.terms-content-body p,.terms-content-body ol,.terms-content-body ul,.terms-content-body blockquote { margin: 0 0 12px; }
.terms-content-body ol,.terms-content-body ul { padding-left: 28px; }
.terms-content-body blockquote { padding-left: 14px; border-left: 4px solid #9bcdd0; color: #58727a; }
.terms-content-body a { color: #087f91; text-decoration: underline; }
@media (max-width:620px),(orientation:portrait) {
  .terms-page { padding: max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
  .terms-header { margin-bottom: 8px; }
  .terms-header h1 { font-size: 20px; }
  .terms-reading-status { font-size: 11px; text-align: right; }
  .terms-shell { grid-template-columns: 128px minmax(0,1fr); }
  .terms-tabs { padding: 10px 8px; }
  .terms-tabs button { padding: 10px 9px; font-size: 13px; }
  .terms-content { padding: 18px 18px 30px; }
  .terms-content h2 { margin-bottom: 14px; font-size: 20px; }
  .terms-content-body { font-size: 15px; }
}
@media (max-width:520px) {
  .modal-box.site-share-box { padding: 14px; }
  .site-share-layout { grid-template-columns: minmax(0,1fr) 92px; gap: 10px; }
  .site-share-actions .btn-game { padding: 9px 5px; font-size: 13px; }
}
@media (orientation:landscape) and (max-height:430px) {
  .modal-box.site-share-box { width: min(400px,calc(100vw - 16px)); padding: 11px 14px 13px; }
  .site-share-box h3 { font-size: 18px; }
  .site-share-hint { margin-bottom: 7px; font-size: 12px; }
  .site-share-layout { grid-template-columns: minmax(0,170px) 100px; gap: 14px; }
  .site-share-actions { gap: 8px; }
  .site-share-actions .btn-game { padding: 8px 6px; }
}
.quick-login-description,.quick-login-verify-tip { margin: 0 0 14px; color: #b8cdd1; font-size: 13px; line-height: 1.65; }
.modal-box.quick-login-settings-box { width: min(420px,calc(100vw - 24px)); max-width: 420px; padding: 14px 16px; overflow-y: hidden; }
.modal-box.quick-login-settings-box h3 { margin-bottom: 8px; }
.quick-login-settings-box .quick-login-description { margin-bottom: 10px; line-height: 1.5; }
.quick-login-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #d9f8ff26; border-radius: 10px; background: #07192355; color: #efffff; }
.quick-login-settings-box .quick-login-summary { padding: 9px 12px; }
.quick-login-summary strong { color: #ffe083; font-size: 15px; }
.quick-login-summary span { color: #a9c2c7; font-size: 12px; text-align: right; }
.quick-login-link-wrap { margin-top: 10px; }
.quick-login-link-label { display: block; margin-bottom: 6px; color: #ffd98a; font-size: 12px; line-height: 1.5; }
.quick-login-link-row { display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 8px; align-items: start; }
.quick-login-link-text { min-width: 0; padding: 8px 10px; border: 1px solid #d9f8ff38; border-radius: 8px; background: #06131bb8; color: #efffff; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-all; white-space: normal; user-select: text; -webkit-user-select: text; }
.quick-login-copy { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 38px; padding: 0; border: 1px solid #ffe8a86b; border-radius: 8px; background: #f5ae2426; color: #ffe083; }
.quick-login-copy:hover { background: #f5ae2440; }
.quick-login-copy svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-login-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.quick-login-actions button { min-width: 104px; }
#modal-desktop-shortcut { z-index: 1100; }
.desktop-shortcut-box { width: min(390px,calc(100vw - 28px)); max-width: 390px; }
.desktop-shortcut-guide { margin: 0 0 12px; color: #efffff; font-size: 15px; line-height: 1.75; white-space: pre-line; }
.desktop-shortcut-copy-status { min-height: 20px; margin: 0 0 8px; color: #cce3e6; font-size: 12px; line-height: 1.6; }
#btn-desktop-shortcut-copy { display: block; width: auto; min-width: 176px; max-width: 100%; margin: 4px auto 0; padding: 9px 22px; border-radius: 10px; font-size: 15px; }
.quick-login-disabled { margin: 8px 0 14px; color: #b8cdd1; text-align: center; font-size: 14px; line-height: 1.7; }
#view-quick-login { position: fixed; inset: 0; z-index: 1100; width: 100%; height: 100%; }
#view-quick-login.active { display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: radial-gradient(ellipse at 50% 30%,#1c3a6e,#0a0f1e 70%); }
.quick-login-verify-box { width: min(360px,100%); }
.quick-login-suffix-display { margin: 10px 0 14px; padding: 10px; border: 1px solid #d9f8ff42; border-radius: 9px; background: #020a1259; color: #fff4c4; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: 18px; text-indent: 18px; line-height: 1.2; user-select: none; -webkit-user-select: none; }
.quick-login-keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 13px; user-select: none; -webkit-user-select: none; }
.quick-login-keypad button { min-height: 46px; border: 1px solid #d9f8ff38; border-radius: 9px; background: linear-gradient(145deg,#ffffff24,#78cdd00b); color: #efffff; font-size: 21px; font-weight: 600; touch-action: manipulation; }
.quick-login-keypad button:active { background: #ffe08338; transform: translateY(1px); }
.quick-login-keypad .key-action { color: #b9d0d5; font-size: 14px; font-weight: 400; }
@media (orientation: landscape) and (max-height: 500px) {
  .modal-box.quick-login-settings-box { padding: 12px 18px; }
  .modal-box.quick-login-settings-box h3 { margin-bottom: 5px; font-size: 19px; }
  .quick-login-settings-box .quick-login-description { margin-bottom: 7px; font-size: 12px; }
  .quick-login-settings-box .quick-login-summary { padding: 7px 10px; }
  .quick-login-settings-box .quick-login-link-wrap { margin-top: 7px; }
  .quick-login-settings-box .quick-login-link-text { padding: 6px 9px; line-height: 1.35; }
  .quick-login-settings-box .quick-login-actions { margin-top: 7px; }
  .quick-login-settings-box .quick-login-actions button { padding: 7px 13px; font-size: 13px; }
  #view-quick-login.active { padding: 8px; }
  .quick-login-verify-box { max-width: 580px; padding: 12px 18px; overflow-y: auto; }
  .quick-login-verify-box h2 { margin-bottom: 4px; font-size: 19px; }
  .quick-login-verify-tip { margin-bottom: 5px; }
  .quick-login-suffix-display { width: 220px; margin: 5px auto 8px; padding: 5px; font-size: 22px; }
  .quick-login-keypad { max-width: 340px; margin: 0 auto 7px; gap: 5px; }
  .quick-login-keypad button { min-height: 32px; font-size: 17px; }
  .quick-login-verify-box .btn-game.full { padding: 8px 20px; }
}
#modal-settings[data-section] .modal-box { grid-template-columns: 1fr; max-width: 380px; }
.bar-btn.gold { border: 1px solid #ffe8a8b8; color: #432d05; background: linear-gradient(135deg,#ffdc72db,#f5ae24a8 52%,#db922878); box-shadow: inset 0 1px 1px #fff7d499,0 6px 18px #0003; font-weight: bold; text-shadow: 0 1px 1px #fff3bd66; backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.hall-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--app-height) * .05); min-height: 0; }
.hall-title { font-size: 52px; color: #ffb300; text-shadow: 0 3px 12px rgba(0,0,0,.8), 0 0 30px #ffb30044; letter-spacing: 14px; }
.hall-sub { text-align: center; color: #c8e6c9; letter-spacing: 6px; margin-top: 6px; font-size: 15px; text-shadow: 0 2px 4px #000; }
.hall-blocks { display: flex; gap: 3vw; }
.hall-block { width: 24vmin; height: 24vmin; max-width: 200px; max-height: 200px; min-width: 120px; min-height: 120px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, rgba(255,224,130,.22), rgba(0,0,0,.45)); border: 2px solid #ffb30088; color: #ffe082;
  box-shadow: 0 8px 20px rgba(0,0,0,.5), inset 0 1px 0 #ffffff33; transition: transform .12s, box-shadow .12s; }
.hall-block:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.6), 0 0 20px #ffb30044; }
.hall-block:active { transform: translateY(1px); }

/* 平台首页与液态玻璃 */
#view-home { background: #091b2a url('../assets/images/platform-home-bg.svg') center/cover no-repeat; }
.platform-home { position: relative; overflow: hidden; }
.platform-home::before, .platform-home::after { content: ''; position: absolute; z-index: 0; width: 38vmax; height: 38vmax; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: homeLiquid 12s ease-in-out infinite alternate; }
.platform-home::before { left: -16vmax; bottom: -20vmax; background: #32d3c522; }
.platform-home::after { right: -18vmax; top: -20vmax; background: #a37aff25; animation-delay: -5s; }
.hall .hall-bar.platform-header { position: relative; z-index: 5; margin: 12px 14px 0; padding: 8px 12px; overflow: hidden; border: 1px solid #d9f8ff42; border-radius: 18px; background: linear-gradient(120deg,#e9ffff20,#8dd9e20c 48%,#b9a7ef12); box-shadow: inset 0 1px 1px #ffffff42,inset 0 -1px 1px #8bd9e214,0 12px 32px #0003; backdrop-filter: blur(24px) saturate(155%); -webkit-backdrop-filter: blur(24px) saturate(155%); }
.hall .hall-bar.platform-header::before { content: ''; position: absolute; inset: 1px 1px auto; height: 48%; border-radius: 16px 16px 50% 50%; background: linear-gradient(110deg,#ffffff16,transparent 52%,#d7ccff0a); pointer-events: none; }
.hall .platform-header .user-chip { position: relative; padding: 5px 14px 5px 6px; border: 1px solid #e3fbff30; border-radius: 28px; background: linear-gradient(120deg,#ffffff1c,#ffffff08); box-shadow: inset 0 1px 1px #ffffff30,0 5px 16px #0002; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hall .platform-header .avatar { border: 1px solid #d9f8ff8c; color: #f2ffff; background: linear-gradient(145deg,#8ad8d1a8,#6579a8a8); box-shadow: inset 0 1px 2px #ffffff66,0 5px 16px #0003; text-shadow: 0 1px 6px #0004; }
.hall .platform-header .hall-nickname, .hall .platform-header .user-id { color: #f1fcff; text-shadow: 0 1px 6px #0005; }
.hall .platform-header .cards-chip b { color: #c9f7ff; }
.hall .platform-header .bar-btns { position: relative; transform: none; }
.hall .platform-header .bar-btn { border: 1px solid #d9f8ff42; color: #f1fcff; background: linear-gradient(135deg,#ffffff20,#ffffff0a 55%,#9edfe20c); box-shadow: inset 0 1px 1px #ffffff38,0 5px 16px #0002; text-shadow: 0 1px 6px #0004; backdrop-filter: blur(14px) saturate(145%); -webkit-backdrop-filter: blur(14px) saturate(145%); transition: transform .18s,border-color .18s,background .18s,box-shadow .18s; }
.hall .platform-header .bar-btn:hover { transform: translateY(-1px); border-color: #e5fcff8c; background: linear-gradient(135deg,#ffffff30,#9edfe216); box-shadow: inset 0 1px 1px #ffffff52,0 8px 20px #0003; }
.hall .platform-header .bar-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px #0002,0 3px 10px #0002; }
.home-center { position: relative; z-index: 1; gap: clamp(22px,5vh,52px); padding: 24px; }
.home-title { color: #ecfbff; font-size: clamp(34px,4.2vw,58px); letter-spacing: clamp(8px,1vw,18px); text-shadow: 0 4px 24px #53cfd966; }
.home-sub { color: #c4dce6; letter-spacing: 4px; }
.platform-game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,3vw,48px); width: min(900px,calc(var(--app-width,100vw) * .88)); }
.platform-game-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1.05; min-height: 150px; padding: 20px 12px; border: 1px solid #ffffff42; border-radius: 30px; color: #f4fcff; background: linear-gradient(145deg,#ffffff24,#ffffff09 46%,#8dd9e208); box-shadow: inset 0 1px 1px #ffffff65,inset 0 -1px 1px #8bd9e21a,0 22px 55px #0005; backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.platform-game-card::before { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: 28px; background: linear-gradient(120deg,#ffffff13,transparent 42%); pointer-events: none; }
.platform-game-card:hover { transform: translateY(-8px) scale(1.02); border-color: #d7fbff99; box-shadow: inset 0 1px 1px #ffffff80,0 28px 70px #0007,0 0 32px #66e2dc1c; }
.platform-game-card:active { transform: translateY(-2px) scale(.99); }
.platform-game-card strong { position: relative; margin-top: 13px; font-size: clamp(23px,2.4vw,34px); letter-spacing: 5px; text-shadow: 0 2px 12px #0005; }
.platform-game-card small { position: relative; margin-top: 7px; color: #d1e7ed; font-size: clamp(11px,1.1vw,14px); white-space: nowrap; }
.game-entry-loading { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; background: #020a126b; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.game-entry-loading-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 220px; padding: 24px 28px; border: 1px solid #d9f8ff42; border-radius: 20px; color: #efffff; background: linear-gradient(145deg,#173a4af2,#0b1d2af2); box-shadow: 0 18px 55px #0007; }
.game-entry-loading-panel small { color: #b9d3da; font-size: 12px; }
.game-entry-spinner { width: 30px; height: 30px; border: 3px solid #ffffff24; border-top-color: #ffe083; border-radius: 50%; animation: gameEntrySpin .8s linear infinite; }
.platform-game-card:disabled { cursor: wait; filter: saturate(.65); }
@keyframes gameEntrySpin { to { transform: rotate(360deg); } }
.game-enter { position: relative; margin-top: 15px; padding: 5px 13px; border: 1px solid #ffffff30; border-radius: 20px; color: #e9fdff; background: #ffffff0d; font-size: 12px; }
.game-icon { position: relative; display: flex; align-items: center; justify-content: center; width: clamp(56px,6vw,82px); height: clamp(56px,6vw,82px); filter: drop-shadow(0 10px 14px #0004); }
.mahjong-icon { border: 1px solid #ffffffb0; border-radius: 15px; color: #e34343; background: linear-gradient(145deg,#fffff4,#dce9df); box-shadow: inset -6px -8px 0 #2a899f,0 5px 0 #176176; transform: rotate(-5deg); }
.mahjong-icon i { font-family: serif; font-size: clamp(34px,4vw,52px); font-style: normal; font-weight: 900; }
.bomb-icon { border-radius: 50%; color: #f5f0ff; background: linear-gradient(145deg,#6e5a93,#211b38); border: 2px solid #d5c5ff88; font-size: clamp(34px,4vw,52px); }
.unknown-icon { color: #fff; font-size: clamp(50px,6vw,78px); font-weight: 300; text-shadow: 0 0 20px #b0d8ff88; }
.liquid-orb { position: absolute; z-index: -1; width: 75%; height: 65%; left: -28%; top: -25%; border-radius: 45% 55% 65% 35%; background: #65e7dc30; filter: blur(18px); animation: cardLiquid 8s ease-in-out infinite alternate; }
.zhadan-card .liquid-orb { left: auto; right: -25%; background: #b493fa32; animation-delay: -3s; }
.unknown-card .liquid-orb { top: auto; bottom: -30%; background: #75a9d32b; animation-delay: -5s; }
@keyframes homeLiquid { to { transform: translate(8vmax,-4vmax) scale(1.15); } }
@keyframes cardLiquid { to { transform: translate(65%,45%) rotate(35deg) scale(1.2); } }

/* 游戏大厅液态玻璃 */
.liquid-hall { position: relative; isolation: isolate; overflow: hidden; }
.liquid-hall::before, .liquid-hall::after { content: ''; position: absolute; z-index: -1; width: 40vmax; height: 40vmax; border-radius: 48% 52% 58% 42%; filter: blur(72px); pointer-events: none; animation: homeLiquid 12s ease-in-out infinite alternate; }
.liquid-hall::before { left: -18vmax; bottom: -22vmax; background: #35d8bc2b; }
.liquid-hall::after { right: -18vmax; top: -22vmax; background: #75b9f229; animation-delay: -5s; }
.liquid-hall .hall-bar { position: relative; z-index: 2; background: #cce8e80d; border-bottom-color: #d9f8ff30; box-shadow: inset 0 1px 0 #ffffff12,0 8px 30px #0002; backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
.liquid-hall .user-chip { padding: 5px 12px 5px 6px; border: 1px solid #e3fbff26; border-radius: 28px; background: linear-gradient(120deg,#ffffff16,#ffffff08); box-shadow: inset 0 1px 1px #ffffff26; }
.liquid-hall .avatar { border-color: #d9f8ff8c; background: linear-gradient(145deg,#8ad8d1aa,#426c86bb); box-shadow: inset 0 1px 2px #ffffff59,0 5px 16px #0003; }
.liquid-hall .cards-chip { border: 0; background: transparent; box-shadow: none; }
.liquid-hall .cards-chip b { color: #c9f7ff; }
.liquid-hall .bar-btn { border-color: #d9f8ff38; color: #effcff; background: linear-gradient(135deg,#ffffff1c,#ffffff09); box-shadow: inset 0 1px 1px #ffffff2b,0 5px 16px #0002; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s,border-color .2s,transform .2s; }
.liquid-hall .bar-btn:hover { border-color: #d9f8ff80; background: #ffffff25; transform: translateY(-1px); }
.liquid-hall .bar-btn.gold { color: #253a40; background: linear-gradient(145deg,#e9ffffd9,#9edcd4c4); border: 1px solid #ffffff8c; }
.liquid-hall .hall-center { position: relative; z-index: 1; }
.liquid-hall .hall-title { color: #efffff; text-shadow: 0 4px 24px #53cfd966,0 2px 5px #0004; }
.liquid-hall .hall-sub { color: #d3eeed; text-shadow: 0 2px 8px #0005; }
.liquid-hall .bar-btns { transform: translateX(-24px); }
.liquid-hall .hall-block { position: relative; isolation: isolate; overflow: hidden; width: clamp(145px,23vmin,210px); height: clamp(145px,23vmin,210px); border: 1px solid #e1fbff52; border-radius: 30px; color: #f2ffff; background: linear-gradient(145deg,#ffffff2b,#ffffff0d 48%,#8dd9e208); box-shadow: inset 0 1px 1px #ffffff70,inset 0 -1px 1px #8bd9e21a,0 22px 55px #0005; backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); transition: transform .22s,border-color .22s,box-shadow .22s; }
.liquid-hall .hall-block::before { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: 28px; background: linear-gradient(120deg,#ffffff1c,transparent 42%); pointer-events: none; }
.liquid-hall .hall-block::after { content: ''; position: absolute; z-index: -1; width: 75%; height: 65%; left: -28%; top: -25%; border-radius: 45% 55% 65% 35%; background: #65e7dc38; filter: blur(18px); animation: cardLiquid 8s ease-in-out infinite alternate; pointer-events: none; }
.liquid-hall .hall-block:nth-child(2)::after { left: auto; right: -28%; background: #76b9ef35; animation-delay: -3s; }
.liquid-hall .hall-block:nth-child(3)::after { top: auto; bottom: -30%; background: #9d8ce637; animation-delay: -5s; }
.liquid-hall .hall-block:hover { transform: translateY(-7px) scale(1.02); border-color: #d7fbff99; box-shadow: inset 0 1px 1px #ffffff80,0 28px 70px #0006,0 0 32px #66e2dc1c; }
.liquid-hall .hall-block:active { transform: translateY(-2px) scale(.99); }
.liquid-hall .hb-icon { filter: drop-shadow(0 7px 12px #0004); }
.liquid-hall .hb-text { font-weight: 600; letter-spacing: 2px; text-shadow: 0 2px 10px #0005; }
@media (max-width: 700px) {
  .hall .hall-bar.platform-header { margin: 8px 9px 0; padding: 7px 9px; border-radius: 15px; }
  .hall .platform-header .user-chip { padding-right: 10px; }
  .platform-game-grid { gap: 12px; width: 94vw; }
  .platform-game-card { min-height: 128px; padding: 12px 6px; border-radius: 22px; }
  .platform-game-card small { display: none; }
  .game-enter { margin-top: 9px; }
  .home-center { padding: 14px; }
  .hall-bar { padding: 8px 10px; }
  .bar-btns { gap: 5px; margin-right: 0; }
  .bar-btn { padding: 7px 9px; font-size: 12px; }
}
@media (max-height: 520px) {
  .home-center { flex-direction: row; gap: 4vw; }
  .home-title-wrap { max-width: 220px; }
  .home-title { font-size: 36px; }
  .home-sub { font-size: 12px; letter-spacing: 2px; }
  .platform-game-grid { width: min(650px,68vw); gap: 16px; }
  .platform-game-card { min-height: 125px; max-height: 230px; padding: 10px; }
  .platform-game-card strong { margin-top: 8px; font-size: 23px; }
  .platform-game-card small, .game-enter { display: none; }
  .game-icon { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .platform-home::before,.platform-home::after,.liquid-orb { animation: none; } }
.hb-icon { font-size: 7vmin; }
.hb-text { font-size: 2.6vmin; font-weight: bold; letter-spacing: 3px; }
.pay-box { display: flex; gap: 10px; }
.pay-box .btn-game { flex: 1; font-size: 16px; padding: 12px; }

/* 商店套餐 */
.package-list { list-style: none; }
.package-list li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.package-list .pkg-info { flex: 1; }
.package-list .pkg-info b { color: #ffb300; font-size: 18px; }
.package-list .pkg-info .pkg-price { color: #90a4ae; font-size: 13px; margin-left: 8px; }
.package-list .pkg-tag { background: #e53935; color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.package-list .pkg-pay { display: flex; flex-direction: column; gap: 6px; }
.package-list .pkg-pay button { padding: 6px 14px; border-radius: 6px; color: #fff; font-size: 13px; }
.package-list .pkg-pay .wechat { background: #09bb07; }
.package-list .pkg-pay .alipay { background: #1677ff; }
.big-input { width: 100%; padding: 14px; border-radius: 10px; border: 2px solid #ffb30066; background: rgba(0,0,0,.4); color: #fff; font-size: 22px; text-align: center; letter-spacing: 8px; outline: none; }
.join-box { max-width: 350px; padding: 18px; }
.join-box h3 { margin-bottom: 10px; }
.join-box .big-input { height: 50px; padding: 9px 12px; border: 1px solid #ffe8a873; border-radius: 12px; background: linear-gradient(135deg,#071b24a6,#25464b70); box-shadow: inset 0 2px 7px #0005,inset 0 1px 1px #ffffff14,0 1px 0 #ffffff0a; cursor: default; user-select: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.join-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.join-keypad button { height: 42px; border: 1px solid #d9f8ff30; border-radius: 11px; color: #efffff; background: linear-gradient(135deg,#ffffff1f,#9edfe20a 55%,#75b9f210); box-shadow: inset 0 1px 1px #ffffff30,inset 0 -1px 1px #8bd9e214,0 4px 12px #0002; font-size: 22px; font-weight: 600; text-shadow: 0 2px 7px #0005; backdrop-filter: blur(12px) saturate(145%); -webkit-backdrop-filter: blur(12px) saturate(145%); touch-action: manipulation; transition: transform .12s,border-color .15s,background .15s,box-shadow .15s; }
.join-keypad button:hover { border-color: #d9f8ff73; background: linear-gradient(135deg,#ffffff2e,#9edfe214 55%,#75b9f21a); box-shadow: inset 0 1px 1px #ffffff45,0 6px 16px #0003; }
.join-keypad button:active { transform: scale(.97); border-color: #ffe8a899; background: linear-gradient(135deg,#ffe89a66,#f5ae2440); box-shadow: inset 0 2px 5px #8c63152e,0 2px 7px #0002; }
.join-keypad .key-action { border-color: #ffe8a838; color: #ffe9a6; background: linear-gradient(135deg,#fff0b814,#d9a43712); font-size: 16px; }
.join-box .modal-close { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid #d9f8ff38; border-radius: 50%; color: #efffff; background: linear-gradient(135deg,#ffffff1c,#9edfe20a); box-shadow: inset 0 1px 1px #ffffff2e; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-box.join-preview-box { width: 64%; max-width: 700px; padding: 18px 24px; }
.join-preview-box h3 { margin-bottom: 10px; font-size: 18px; }
.join-preview-info { display: grid; grid-template-columns: 1.2fr 1fr; gap: 13px 30px; color: #eceff1; font-size: 17px; line-height: 1.5; }
.join-preview-info > div { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; }
.join-preview-info span { flex-shrink: 0; }
.join-preview-info b { min-width: 0; overflow: hidden; color: #ffb300; text-overflow: ellipsis; }
.join-preview-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.join-preview-actions button { min-width: 110px; }
.join-preview-actions button:disabled { color: #bdbdbd; background: #555; box-shadow: inset 0 3px 7px #0008, inset 0 -1px 0 #ffffff12; text-shadow: 0 -1px 1px #0009, 0 1px 1px #ffffff24; cursor: not-allowed; opacity: .8; }
.join-preview-actions button:disabled:active { transform: none; box-shadow: inset 0 3px 7px #0008, inset 0 -1px 0 #ffffff12; }
@media (max-width: 600px), (max-height: 500px) {
  .modal-box.join-preview-box { width: 64%; padding: 13px 16px; }
  .join-preview-box h3 { margin-bottom: 7px; font-size: 16px; }
  .join-preview-info { gap: 10px 16px; font-size: 15px; line-height: 1.45; }
  .join-preview-actions { gap: 10px; margin-top: 12px; }
  .join-preview-actions button { min-width: 96px; padding: 8px 14px; }
}
.join-box #btn-join-confirm { margin-top: 12px; padding: 10px; border: 1px solid #ffe8a8c9; border-radius: 13px; color: #432d05; background: linear-gradient(135deg,#ffdc72e0,#f5ae24b8 52%,#db922887); box-shadow: inset 0 1px 1px #fff7d4a6,inset 0 -1px 1px #ffdc7040,0 8px 22px #0004,0 0 20px #ffcf4d1f; text-shadow: 0 1px 1px #fff3bd66; backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); transition: transform .18s,border-color .18s,box-shadow .18s; }
.join-box #btn-join-confirm:hover:not(:disabled) { transform: translateY(-1px); border-color: #fff3c9d9; box-shadow: inset 0 1px 1px #fff7d499,0 10px 28px #0005,0 0 24px #ffcf4d24; }
.join-box #btn-join-confirm:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 5px #8c63152e,0 4px 12px #0003; }
.join-box #btn-join-confirm:disabled { transform: none; border-color: #b9c6ca38; color: #b4bec1; background: linear-gradient(135deg,#b5c0c329,#64767c24); box-shadow: inset 0 1px 3px #0003; text-shadow: none; filter: saturate(.25); opacity: .72; cursor: not-allowed; }
@media (max-height: 500px) {
  .join-box { padding: 12px 16px; }
  .join-box h3 { margin-bottom: 6px; font-size: 18px; }
  .join-box .big-input { height: 40px; padding: 6px 10px; font-size: 19px; }
  .join-keypad { gap: 6px; margin-top: 8px; }
  .join-keypad button { height: 34px; font-size: 19px; }
  .join-box #btn-join-confirm { margin-top: 8px; padding: 7px; font-size: 16px; }
}

/* 历史/好友 列表弹窗 */
.history-box { width: 94%; max-width: 600px; min-height: 46vh; }
.history-list { list-style: none; max-height: 55vh; overflow-y: auto; margin-top: 6px; }
.history-list li { background: rgba(255,255,255,.07); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 13px; line-height: 1.6; }
.history-list li:hover { background: rgba(255,179,0,.15); }
.history-list li .sub { color: #90a4ae; font-size: 12px; }
.history-score { float: right; margin-left: 12px; font-size: 16px; font-weight: bold; }
.history-score.pos { color: #69f0ae; }
.history-score.neg { color: #ff8a80; }
.history-round-time { color: #eceff1; }
.history-actions { display: flex; gap: 10px; margin-top: 8px; }
.history-actions button { padding: 5px 14px; border-radius: 14px; background: rgba(255,179,0,.14); border: 1px solid #ffb30066; color: #ffe082; font-size: 12px; }
.history-score-back { position: absolute; left: 12px; top: 10px; z-index: 2; padding: 7px 14px; border: 1px solid #d9f8ff8c; border-radius: 18px; color: #efffff; background: linear-gradient(135deg,#ffffff30,#76cdd02e); box-shadow: inset 0 1px 1px #ffffff59,0 5px 16px #0004; font-size: 14px; font-weight: 600; text-shadow: 0 2px 8px #0006; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.history-score-back:hover { border-color: #efffff; background: linear-gradient(135deg,#ffffff42,#76cdd04a); }
.history-score-close { position: absolute; top: 10px; right: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #d9f8ff70; border-radius: 50%; color: #efffff; background: linear-gradient(135deg,#ffffff28,#76cdd01f); box-shadow: inset 0 1px 1px #ffffff45,0 5px 16px #0004; font-size: 19px; line-height: 1; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.history-score-close:hover { border-color: #efffff; background: #ffffff38; }
/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: #020a126b; display: flex; align-items: center; justify-content: center; z-index: 50; overscroll-behavior: contain; touch-action: pan-y; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
#modal-location-help { z-index: 800; }
#server-restart-modal { z-index: 600; }
.modal-box { position: relative; isolation: isolate; width: 92%; max-width: 380px; max-height: calc(var(--app-height) * .92 - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; background: linear-gradient(135deg,#ffffff2b,#b9e9ef12 48%,#73cdd70a); border: 1px solid #d9f8ff59; border-radius: 22px; padding: 22px; box-shadow: inset 0 1px 1px #ffffff80,inset 0 -1px 1px #8bd9e226,0 24px 70px #0008,0 0 34px #70dce713; backdrop-filter: blur(24px) saturate(155%); -webkit-backdrop-filter: blur(24px) saturate(155%); }
.modal-box::before { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: inherit; background: linear-gradient(115deg,#ffffff20,transparent 38%,#a9f3f308 72%,#ffffff12); pointer-events: none; }
.modal-box::after { content: ''; position: absolute; z-index: -1; width: 180px; height: 130px; top: -85px; right: -35px; border-radius: 45% 55% 65% 35%; background: #71e4e43d; filter: blur(22px); pointer-events: none; }
.modal-box h2, .modal-box h3 { color: #ffe083; margin-bottom: 14px; text-align: center; text-shadow: 0 2px 14px #0005; }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; color: #aaa; font-size: 20px; }
.server-restart-box { isolation: isolate; overflow: hidden; width: max-content; max-width: calc(100vw - 32px); padding: 28px 34px 26px; text-align: center; border: 1px solid #d9f8ff59; border-radius: 26px; background: linear-gradient(135deg,#ffffff2b,#b9e9ef12 48%,#73cdd70a); box-shadow: inset 0 1px 1px #ffffff80,inset 0 -1px 1px #8bd9e226,0 24px 70px #0008,0 0 34px #70dce713; backdrop-filter: blur(24px) saturate(155%); -webkit-backdrop-filter: blur(24px) saturate(155%); }
.server-restart-box::before { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: 24px; background: linear-gradient(115deg,#ffffff20,transparent 38%,#a9f3f308 72%,#ffffff12); pointer-events: none; }
.server-restart-box::after { content: ''; position: absolute; z-index: -1; width: 180px; height: 130px; top: -85px; right: -35px; border-radius: 45% 55% 65% 35%; background: #71e4e43d; filter: blur(22px); pointer-events: none; }
.server-restart-box h3 { margin-bottom: 14px; color: #ffe083; letter-spacing: 1px; text-shadow: 0 2px 14px #0005; }
.server-restart-box p { margin-bottom: 22px; color: #effcff; font-size: clamp(12px,2.8vw,16px); line-height: 1.5; letter-spacing: .2px; white-space: nowrap; text-shadow: 0 1px 8px #0006; }
.login-box input { width: 100%; padding: 12px; margin: 7px 0; border-radius: 8px; border: 1px solid #ffffff2e; background: rgba(0,0,0,.35); color: #fff; font-size: 16px; outline: none; }
.auth-login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 12px; padding: 4px; border: 1px solid #ffffff20; border-radius: 10px; background: #0003; }
.auth-login-tabs button { padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #b8cdd1; font-size: 14px; cursor: pointer; }
.auth-login-tabs button.active { background: linear-gradient(135deg,#ffdc72,#e7a72d); color: #432d05; font-weight: 600; }
.sms-code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.sms-code-row button { min-width: 104px; margin: 7px 0; padding: 11px 10px; border: 1px solid #ffe8a866; border-radius: 8px; background: #ffcf4d1f; color: #ffe083; font-size: 13px; white-space: nowrap; cursor: pointer; }
.sms-code-row button:disabled { opacity: .55; cursor: not-allowed; }
.auth-site-name { margin-bottom: 4px; color: #ffb300; font-size: 20px; font-weight: 600; text-align: center; }
.tabs { display: flex; margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.tab { flex: 1; padding: 9px; background: rgba(255,255,255,.1); color: #ccc; }
.tab.active { border: 1px solid #ffe8a8b8; color: #432d05; background: linear-gradient(135deg,#ffdc72b8,#f5ae2478 52%,#db922852); box-shadow: inset 0 1px 1px #fff7d473; font-weight: bold; text-shadow: 0 1px 1px #fff3bd66; backdrop-filter: blur(12px) saturate(145%); -webkit-backdrop-filter: blur(12px) saturate(145%); }
.sms-row { display: flex; gap: 8px; align-items: center; }
.sms-row input { flex: 1; }
#view-register.active { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 30%, #1c3a6e, #0a0f1e 70%); }
.setting-item { margin-bottom: 14px; }
.setting-item label { display: block; margin-bottom: 6px; color: #b0bec5; font-size: 14px; }
.setting-item input { width: 100%; padding: 10px; margin-bottom: 8px; border-radius: 6px; border: 1px solid #ffffff2e; background: rgba(0,0,0,.35); color: #fff; }
#toast { position: fixed; top: 18%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.85); border: 1px solid #ffb30066; padding: 12px 28px; border-radius: 10px; display: none; z-index: 99; font-size: 17px; }

/* ===== 强制横屏（方向锁定/微信内） ===== */
body.forced-landscape { position: fixed; left: 50%; top: 50%; max-width: none; max-height: none; transform: translate(-50%, -50%) rotate(90deg); transform-origin: center; }
body.forced-landscape #rotate-hint { display: none !important; }
#rotate-hint .hint-sub { font-size: 14px; color: #90a4ae; margin-top: 10px; }
#rotate-hint button { pointer-events: auto; }
#btn-fullscreen { position: fixed; right: 8px; bottom: 8px; z-index: 300; width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 20px; opacity: .65; }
#btn-fullscreen:hover { opacity: 1; }


#btn-exit-full { display: none; position: fixed; top: 8px; right: 8px; z-index: 400; width: 32px; height: 32px; border-radius: 50%;
  background: transparent; color: #ffffffcc; font-size: 16px; }
body.is-fullscreen #btn-exit-full { display: block; }

.room-menu { position: relative; }
.room-menu-trigger { min-width: 42px; color: #ffe082; font-size: 23px; line-height: 1; }
.room-local-clock { position: absolute; top: 48px; right: 0; display: flex; align-items: center; justify-content: center; gap: 5px; width: max-content; margin: 0; padding: 4px 6px; border: 1px solid #ffb30033; border-radius: 8px; background: rgba(0,0,0,.46); color: #ffe082; pointer-events: none; }
#btn-leave.hidden + .room-local-clock { display: none; }
.room-battery { --battery-color: #45d66f; position: absolute; top: 25px; right: 0; width: 31px; height: 14px; pointer-events: none; }
.room-battery.low { --battery-color: #ef5350; }
#btn-leave.hidden ~ .room-battery { display: none; }
.room-battery-shell { position: absolute; inset: 0 3px 0 0; overflow: visible; border: 1px solid #f1f5e9cc; border-radius: 3px; background: rgba(0,0,0,.58); }
.room-battery-shell::after { content: ''; position: absolute; top: 3px; right: -4px; width: 2px; height: 6px; border-radius: 0 2px 2px 0; background: #f1f5e9cc; }
.room-battery-fill { position: absolute; top: 1px; bottom: 1px; left: 1px; width: 0; max-width: calc(100% - 2px); border-radius: 1px; background: var(--battery-color); transition: width .25s, background .25s; }
.room-battery-level { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 700; line-height: 1; text-shadow: 0 1px 2px #000, 0 0 2px #000; }
.room-clock-label { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; line-height: 1.15; letter-spacing: 1px; }
.room-clock-digits { display: flex; align-items: center; gap: 2px; }
.room-clock-digit { position: relative; width: 11px; height: 20px; }
.room-clock-segment { position: absolute; border-radius: 2px; background: #ffe08212; }
.room-clock-segment.active { background: currentColor; box-shadow: 0 0 3px #ffd54f66; }
.room-clock-segment-a, .room-clock-segment-g, .room-clock-segment-d { left: 2px; width: 7px; height: 2px; }
.room-clock-segment-a { top: 0; }
.room-clock-segment-g { top: 9px; }
.room-clock-segment-d { bottom: 0; }
.room-clock-segment-b, .room-clock-segment-c, .room-clock-segment-e, .room-clock-segment-f { width: 2px; height: 7px; }
.room-clock-segment-b, .room-clock-segment-f { top: 2px; }
.room-clock-segment-c, .room-clock-segment-e { bottom: 2px; }
.room-clock-segment-b, .room-clock-segment-c { right: 0; }
.room-clock-segment-e, .room-clock-segment-f { left: 0; }
.room-clock-colon { position: relative; width: 3px; height: 20px; }
.room-clock-colon::before, .room-clock-colon::after { content: ''; position: absolute; left: 0; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: 0 0 3px #ffd54f66; }
.room-clock-colon::before { top: 5px; }
.room-clock-colon::after { bottom: 5px; }
.room-player-count { display: flex; align-items: center; justify-content: center; gap: 4px; width: max-content; min-width: 42px; margin: 0; text-align: center; line-height: 1.35; }
.room-player-count svg { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; }
.room-menu-panel { position: absolute; top: 39px; right: 0; width: 132px; padding: 6px; border: 1px solid #ffb30055; border-radius: 9px; background: rgba(20,29,27,.97); box-shadow: 0 8px 22px #0008; }
.room-menu-panel button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #fff; text-align: left; font-size: 14px; cursor: pointer; }
.room-menu-panel button:hover { background: #ffffff12; }
.room-menu-panel button:disabled { color: #78909c; cursor: not-allowed; }
.dissolve-cost-warning { margin: 10px 0 16px; color: #ff8a80; font-size: 15px; font-weight: 700; line-height: 1.6; }
#tip-modal.dissolve-modal, #score-modal.dissolve-modal { background: #020a126b !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dissolve-glass-panel { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #d9f8ff59; border-radius: 24px; background: linear-gradient(135deg,#ffffff2b,#b9e9ef12 48%,#73cdd70a); box-shadow: inset 0 1px 1px #ffffff80,inset 0 -1px 1px #8bd9e226,0 24px 70px #0008,0 0 34px #70dce713; backdrop-filter: blur(24px) saturate(155%); -webkit-backdrop-filter: blur(24px) saturate(155%); }
.dissolve-glass-panel::before { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: 22px; background: linear-gradient(115deg,#ffffff20,transparent 38%,#a9f3f308 72%,#ffffff12); pointer-events: none; }
.dissolve-glass-panel::after { content: ''; position: absolute; z-index: -1; width: 180px; height: 130px; top: -85px; right: -35px; border-radius: 45% 55% 65% 35%; background: #71e4e43d; filter: blur(22px); pointer-events: none; }
.dissolve-glass-panel h3 { color: #efffff; text-shadow: 0 2px 14px #0005; }
.dissolve-glass-panel button { box-shadow: inset 0 1px 1px #ffffff38,0 5px 14px #0003; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.liquid-confirm-panel { text-shadow: 0 2px 10px #0005; }
.liquid-confirm-panel button { transition: transform .18s,border-color .18s,box-shadow .18s; }
.liquid-confirm-panel button:hover { transform: translateY(-1px); border-color: #e5fcffcc; box-shadow: inset 0 1px 1px #ffffff59,0 8px 20px #0004; }
.dissolve-glass-panel .liquid-primary-button, .dissolve-glass-panel .liquid-secondary-button, .dissolve-glass-panel .liquid-danger-button { border-radius: 10px !important; color: #efffff !important; text-shadow: 0 1px 5px #0005; backdrop-filter: blur(12px) saturate(145%); -webkit-backdrop-filter: blur(12px) saturate(145%); transition: transform .18s,border-color .18s,box-shadow .18s; }
.dissolve-glass-panel .liquid-primary-button { border: 1px solid #b9f4ff80 !important; background: linear-gradient(135deg,#8ee8efb0,#4c9fc294) !important; box-shadow: inset 0 1px 1px #ffffff59,0 6px 18px #0003; }
.dissolve-glass-panel .liquid-secondary-button { border: 1px solid #d9f8ff45 !important; background: linear-gradient(135deg,#ffffff24,#78909c38) !important; box-shadow: inset 0 1px 1px #ffffff38,0 5px 14px #0003; }
.dissolve-glass-panel .liquid-danger-button { border: 1px solid #ffc0b885 !important; background: linear-gradient(135deg,#ef9b8fa8,#b9404099) !important; box-shadow: inset 0 1px 1px #ffffff40,0 5px 14px #0003; }
.dissolve-glass-panel .liquid-primary-button:hover, .dissolve-glass-panel .liquid-secondary-button:hover, .dissolve-glass-panel .liquid-danger-button:hover { transform: translateY(-1px); border-color: #e5fcffcc !important; box-shadow: inset 0 1px 1px #ffffff59,0 8px 20px #0004; }
.liquid-confirm-panel .liquid-secondary-button, .liquid-confirm-panel .liquid-confirm-button { min-width: 76px; padding: 8px 22px !important; border-radius: 11px !important; font-size: 14px; cursor: pointer; backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.liquid-confirm-panel .liquid-secondary-button { border: 1px solid #d9f8ff45 !important; color: #efffff !important; background: linear-gradient(135deg,#ffffff24,#78909c38) !important; text-shadow: 0 1px 5px #0005; }
.liquid-confirm-panel .liquid-confirm-button { border: 1px solid #ffe8a8b8 !important; color: #432d05 !important; background: linear-gradient(135deg,#ffdc72db,#f5ae24a8 52%,#db922878) !important; box-shadow: inset 0 1px 1px #fff7d499,inset 0 -1px 1px #ffdc7033,0 8px 22px #0004,0 0 20px #ffcf4d1a; text-shadow: 0 1px 1px #fff3bd66; }
.liquid-confirm-panel .liquid-secondary-button:active, .liquid-confirm-panel .liquid-confirm-button:active { transform: translateY(1px); }
.score-modal-panel h3 { color: #efffff; }

/* 登录独立页面 */
#view-login.active { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100vw; min-width: 0; padding: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1c3a6e, #0a0f1e 70%); }
#view-maintenance.active { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100vw; min-width: 0; padding: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1c3a6e, #0a0f1e 70%); }
#view-maintenance .maintenance-box { width: 92%; max-width: 380px; text-align: center; }
#maintenance-recovery { color: #ffd54f; min-height: 22px; }
#view-login .login-box { width: 100%; min-width: 0; max-width: 400px; overflow: hidden; }

@media (max-width: 600px) and (orientation: portrait) {
  #view-login.active, #view-register.active, #view-maintenance.active { width: 100%; max-width: 100vw; padding: 20px; overflow: hidden; }
  #view-login .login-box, #view-register .login-box, #view-maintenance .login-box { width: 100%; max-width: 420px; padding: 26px 22px; border-radius: 24px; }
  #view-login .login-box h2, #view-register .login-box h2 { margin-bottom: 20px; font-size: 28px; }
  #view-login .login-box input, #view-register .login-box input { min-height: 50px; margin: 8px 0; padding: 13px 14px; font-size: 17px; }
  #view-login #btn-login, #view-register #btn-do-register { min-height: 50px; margin-top: 14px; padding: 12px 20px; font-size: 18px; }
  #btn-register, #btn-back-login { margin-top: 14px; font-size: 15px; }
}

/* 注册页紧凑，无滚动条 */
#view-register .login-box { overflow: visible; max-height: none; padding: 16px 18px; max-width: 320px; margin: 28px 0; }
#view-register #btn-do-register { padding: 10px 20px; font-size: 16px; margin-top: 8px; }
#view-register .login-box h2 { margin-bottom: 8px; }
#view-register .login-box input { padding: 10px; margin: 5px 0; }

/* 登录按钮缩小 */
#view-login #btn-login { padding: 10px 20px; font-size: 16px; }

@media (max-height: 500px) {
  #view-login .login-box, #view-register .login-box { max-height: calc(var(--app-height) * .94); margin: 12px 0; padding: 10px 16px; overflow: hidden; }
  #view-login .login-box h2, #view-register .login-box h2 { margin-bottom: 5px; font-size: 18px; }
  #view-login .login-box input, #view-register .login-box input { margin: 3px 0; padding: 7px 9px; font-size: 14px; }
  #view-login .sms-code-row button, #view-register .sms-code-row button { margin: 3px 0; padding: 7px 8px; }
  #view-login .auth-login-tabs { margin-bottom: 5px; }
  #view-login #btn-login, #view-register #btn-do-register { margin-top: 5px; padding: 7px 16px; font-size: 14px; }
  #btn-register, #btn-back-login { margin-top: 6px; }
}

/* 短横屏与手机浏览器字体兼容 */
.hall-bar, .bar-btns, .account-line { min-width: 0; }
.user-chip, .user-meta { min-width: 0; }
.hall-nickname, .account-line { white-space: nowrap; }
.hall-nickname { overflow: hidden; text-overflow: clip; }
.dissolve-modal { min-width: 0; padding: max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)) !important; }
.dissolve-glass-panel { min-width: 0 !important; max-width: calc(100vw - 16px); max-height: calc(var(--app-height) - 16px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (orientation: landscape) and (max-height: 520px) {
  .platform-home .home-center { gap: 10px; padding: 10px 20px; }
  .platform-home .home-title { font-size: 34px; }
  .platform-home .home-sub { margin-top: 2px; font-size: 12px; }
  .platform-game-card { min-width: 0; min-height: 120px; padding: 10px; border-radius: 22px; }
  .platform-game-card small { margin-top: 4px; }
  .platform-game-card .game-enter { margin-top: 8px; }
  .hall .hall-bar.platform-header { margin: 6px 8px 0; padding: 6px 9px; gap: 8px; border-radius: 15px; }
  .liquid-hall .hall-bar { padding: 6px 9px; gap: 8px; }
  .hall .platform-header .user-chip, .liquid-hall .user-chip { flex: 0 1 auto; padding: 3px 10px 3px 4px; }
  .hall .platform-header .avatar, .liquid-hall .avatar { width: 36px; height: 36px; font-size: 15px; }
  .hall .platform-header .hall-nickname, .liquid-hall .hall-nickname { font-size: 14px; }
  .hall .platform-header .user-id, .liquid-hall .user-id { font-size: 14px; }
  .hall .platform-header .bar-btns, .liquid-hall .bar-btns { flex-shrink: 0; gap: 5px; margin-right: 0; }
  .hall .platform-header .bar-btn, .liquid-hall .bar-btn { padding: 6px 10px; font-size: 12px; }
  .liquid-hall .hall-center { gap: 10px; }
  .liquid-hall .hall-title { font-size: 34px; letter-spacing: 9px; }
  .liquid-hall .hall-sub { margin-top: 2px; font-size: 12px; letter-spacing: 3px; }
  .liquid-hall .hall-block { min-width: 104px; min-height: 104px; max-width: 150px; max-height: 150px; border-radius: 22px; }
  .modal { padding: max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); }
  .modal-box { min-width: 0; max-height: calc(var(--app-height) - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .create-box, .join-box, .login-box, #modal-settings .modal-box { max-height: calc(var(--app-height) - 12px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .dissolve-glass-panel { padding: 14px 18px !important; }
}
body.forced-landscape .home-center { flex-direction: row; gap: 4vw; }
body.forced-landscape .home-title-wrap { max-width: 220px; }
body.forced-landscape .home-title { font-size: 36px; }
body.forced-landscape .home-sub { font-size: 12px; letter-spacing: 2px; }
body.forced-landscape .platform-game-grid { width: min(650px,calc(var(--app-width) * .68)); gap: 16px; }
body.forced-landscape .platform-game-card { min-height: 125px; max-height: 230px; padding: 10px; }
body.forced-landscape .platform-game-card strong { margin-top: 8px; font-size: 23px; }
body.forced-landscape .platform-game-card small, body.forced-landscape .game-enter { display: none; }
body.forced-landscape .game-icon { width: 54px; height: 54px; }
