:root {
  --bg-color: #0d0a08;
  --bg-gradient: radial-gradient(circle at 50% 0%, #2a1f1a 0%, #0d0a08 70%);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --gold: #f5d67b;
  --gold-grad: linear-gradient(135deg, #fef0b9 0%, #f5d67b 50%, #c69c3a 100%);
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}
* { box-sizing: border-box; user-select: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  background-color: var(--bg-color); background-image: var(--bg-gradient);
  color: var(--text-main); margin: 0; padding: 20px 15px;
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh; overflow-x: hidden;
}
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 28px; padding: 35px 25px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center; backdrop-filter: blur(20px);
}
h2 { font-size: 26px; margin: 0 0 8px; color: var(--gold); font-weight: 700; letter-spacing: 2px; text-shadow: 0 0 20px rgba(245,214,123,0.3);}
.subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; letter-spacing: 1px; }
input {
  width: 100%; padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4); color: #fff; font-size: 16px; text-align: center;
  margin-bottom: 15px; outline: none; transition: 0.3s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,214,123,0.15); }
input::placeholder { color: rgba(255,255,255,0.3); }
input[readonly] { background: rgba(245, 214, 123, 0.08) !important; color: #f5d67b !important; border-color: rgba(245, 214, 123, 0.4) !important; cursor: not-allowed; }
button { cursor: pointer; font-weight: 600; transition: 0.2s; border: none; outline: none; font-size: 16px; border-radius: 14px; }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-secondary:disabled { cursor: wait; opacity: 0.7; }
.btn-primary { width: 100%; padding: 16px; background: var(--gold-grad); color: #1a1105; box-shadow: 0 6px 20px rgba(242,196,90,0.3), var(--shadow-inset); font-weight: 700; letter-spacing: 1px; }
.btn-secondary { width: 100%; padding: 16px; background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.08); }
.divider { color: var(--text-muted); font-size: 12px; margin: 15px 0; display: flex; align-items: center; gap: 10px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.status-tip { font-size: 12px; color: var(--text-muted); margin-top: 20px; }

.game-container { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 5px; }
.room-info { font-size: 18px; font-weight: bold; color: var(--gold); letter-spacing: 1px; }
.actions { display: flex; gap: 10px; }
.btn-icon { background: rgba(255,255,255,0.05); padding: 10px 14px; border-radius: 12px; font-size: 16px; color: #fff; border: 1px solid rgba(255,255,255,0.05); }
.game-status { text-align: center; font-size: 13px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.02); }
.status-playing { color: #4caf84; font-weight: bold; }
.status-waiting { color: var(--text-muted); }

.bowl-container { display: flex; justify-content: center; margin: 15px 0; perspective: 1000px; }
.bowl {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a1510 0%, #0a0806 100%);
  box-shadow: inset 0 20px 40px rgba(0,0,0,1), inset 0 -5px 15px rgba(245,214,123,0.08), 0 15px 30px rgba(0,0,0,0.6);
  border: 2px solid rgba(245,214,123,0.2);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 20px;
  position: relative; transition: 0.3s;
}
.dice-sprite {
  width: 42px; height: 42px; border-radius: 10px;
  background-image: url('./dice.png'); background-size: 600% 100%;
  background-position: 0% 0%; position: relative; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7), inset 0 -2px 4px rgba(0,0,0,0.1);
}
.dice-sprite::before {
  content: '?'; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.9); color: #b3122b;
  display: flex; justify-content: center; align-items: center;
  font-size: 24px; font-weight: bold; border-radius: 10px;
  backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s;
}
.bowl.rolling .dice-sprite { animation: .2s steps(5, start) random infinite; }
.bowl.rolling .dice-sprite::before { opacity: 1; }
@keyframes random { to { background-position: 100% 0; } }

.player-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; padding-left: 5px; padding-right: 5px; }
.player-scroll::-webkit-scrollbar { display: none; }
.player-chip {
  flex: 0 0 auto; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px; border-radius: 16px; text-align: center; min-width: 90px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.player-chip.me { border-color: rgba(245,214,123,0.4); background: rgba(245,214,123,0.08); }
.player-chip.scholar { border-color: var(--gold); box-shadow: 0 0 15px rgba(245,214,123,0.15); }
.player-chip.offline { opacity: 0.5; filter: grayscale(1); } /* ✨ 离线状态变灰 */
.chip-name { font-size: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; font-weight: 500; }
.crown { font-size: 13px; }
.offline-tag { font-size: 10px; color: #8b949e; background: rgba(255, 255, 255, 0.1); padding: 1px 5px; border-radius: 4px; margin-left: 4px; } /* ✨ 离线小标签 */
.chip-score { font-size: 18px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.round-count { font-size: 10px; color: var(--text-muted); }
.scholar-badge { font-size: 10px; background: var(--gold-grad); color: #1a1105; padding: 2px 8px; border-radius: 12px; margin-top: 3px; font-weight: bold; }

.action-area { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
.tip-text { font-size: 13px; color: var(--text-muted); margin: 0; }
.btn-roll { width: 100%; padding: 18px; font-size: 18px; border-radius: 20px; box-shadow: 0 8px 25px rgba(242,196,90,0.3), var(--shadow-inset); }
.host-controls { display: flex; gap: 12px; width: 100%; }
.btn-outline { flex: 1; padding: 14px; background: transparent; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 16px; font-size: 15px; font-weight: 600; }
.history-btn-area { width: 100%; text-align: center; }
.btn-text { background: none; color: var(--text-muted); font-size: 14px; padding: 8px; border-bottom: 1px dashed rgba(255,255,255,0.2); border-radius: 0; }

.float-emoji-btn {
  position: fixed; bottom: 30px; right: 20px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--gold-grad); font-size: 30px;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 8px 25px rgba(242,196,90,0.4), var(--shadow-inset); 
  z-index: 100; padding: 0; line-height: 1; border: 2px solid rgba(255,255,255,0.2);
  animation: floatBounce 3s ease-in-out infinite;
}
@keyframes floatBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.emoji-modal { max-width: 380px !important; }
.emoji-scroll-area { overflow-y: auto; flex: 1; margin-bottom: 15px; text-align: left; padding-right: 5px; }
.emoji-category { color: var(--text-muted); font-size: 12px; margin: 15px 0 8px 0; }
.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.emoji-grid span { display: flex; justify-content: center; align-items: center; font-size: 28px; padding: 8px; border-radius: 12px; cursor: pointer; transition: 0.15s; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.02); }
.emoji-grid span:active { background: rgba(245,214,123,0.2); transform: scale(0.85); border-color: var(--gold); }

.danmu-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
.danmu-item { position: absolute; white-space: nowrap; font-size: 34px; text-shadow: 0 0 10px rgba(0,0,0,0.8); animation: danmuFly 5s linear forwards; display: flex; align-items: center; gap: 8px; }
.danmu-name { font-size: 13px; color: rgba(255,255,255,0.6); }
@keyframes danmuFly { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.modal-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); display: flex; justify-content: center; align-items: center; z-index: 10000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-content { background: rgba(22, 27, 34, 0.95); border: 1px solid rgba(245,214,123,0.2); border-radius: 28px; width: 90%; max-width: 340px; padding: 25px; box-shadow: 0 25px 50px rgba(0,0,0,0.8); text-align: center; transform: translateY(20px) scale(0.95); transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); max-height: 80vh; display: flex; flex-direction: column; }
.modal-mask.show .modal-content { transform: translateY(0) scale(1); }
.modal-content h3 { color: var(--gold); margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.scroll-area { overflow-y: auto; flex: 1; margin-bottom: 20px; }
.result-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); font-size: 15px;}
.result-row:last-child { border-bottom: none; }
.rank-1 { color: var(--gold); font-weight: bold; font-size: 18px; }
.rank-title { font-size: 11px; color: var(--gold); margin-left: 5px; }
.history-item { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 14px; margin-bottom: 12px; text-align: left; border: 1px solid rgba(255,255,255,0.02); }
.history-title { color: var(--gold); font-size: 14px; margin-bottom: 10px; font-weight: bold; }
.detail-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: #ccc; }
.score-text { color: #4caf84; font-weight: bold; }
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background: rgba(0,0,0,0.9); color: var(--gold); padding: 14px 28px; border-radius: 16px; z-index: 99999; font-size: 15px; font-weight: bold; border: 1px solid var(--gold); box-shadow: 0 8px 32px rgba(242, 196, 90, 0.15); opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

:root {
  --bg-color: #0d0a08;
  --bg-gradient: radial-gradient(circle at 50% 0%, #2a1f1a 0%, #0d0a08 70%);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --gold: #f5d67b;
  --gold-grad: linear-gradient(135deg, #fef0b9 0%, #f5d67b 50%, #c69c3a 100%);
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}
* { box-sizing: border-box; user-select: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  background-color: var(--bg-color); background-image: var(--bg-gradient);
  color: var(--text-main); margin: 0; padding: 20px 15px;
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh; overflow-x: hidden;
}
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 28px; padding: 35px 25px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center; backdrop-filter: blur(20px);
}
h2 { font-size: 26px; margin: 0 0 8px; color: var(--gold); font-weight: 700; letter-spacing: 2px; text-shadow: 0 0 20px rgba(245,214,123,0.3);}
.subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; letter-spacing: 1px; }
input {
  width: 100%; padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4); color: #fff; font-size: 16px; text-align: center;
  margin-bottom: 15px; outline: none; transition: 0.3s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,214,123,0.15); }
input::placeholder { color: rgba(255,255,255,0.3); }
input[readonly] { background: rgba(245, 214, 123, 0.08) !important; color: #f5d67b !important; border-color: rgba(245, 214, 123, 0.4) !important; cursor: not-allowed; }
button { cursor: pointer; font-weight: 600; transition: 0.2s; border: none; outline: none; font-size: 16px; border-radius: 14px; }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-secondary:disabled { cursor: wait; opacity: 0.7; }
.btn-primary { width: 100%; padding: 16px; background: var(--gold-grad); color: #1a1105; box-shadow: 0 6px 20px rgba(242,196,90,0.3), var(--shadow-inset); font-weight: 700; letter-spacing: 1px; }
.btn-secondary { width: 100%; padding: 16px; background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.08); }
.divider { color: var(--text-muted); font-size: 12px; margin: 15px 0; display: flex; align-items: center; gap: 10px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.status-tip { font-size: 12px; color: var(--text-muted); margin-top: 20px; }

.game-container { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 5px; }
.room-info { font-size: 18px; font-weight: bold; color: var(--gold); letter-spacing: 1px; }
.actions { display: flex; gap: 10px; }
.btn-icon { background: rgba(255,255,255,0.05); padding: 10px 14px; border-radius: 12px; font-size: 16px; color: #fff; border: 1px solid rgba(255,255,255,0.05); }
.game-status { text-align: center; font-size: 13px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.02); }
.status-playing { color: #4caf84; font-weight: bold; }
.status-waiting { color: var(--text-muted); }

.bowl-container { display: flex; justify-content: center; margin: 15px 0; perspective: 1000px; }
.bowl {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a1510 0%, #0a0806 100%);
  box-shadow: inset 0 20px 40px rgba(0,0,0,1), inset 0 -5px 15px rgba(245,214,123,0.08), 0 15px 30px rgba(0,0,0,0.6);
  border: 2px solid rgba(245,214,123,0.2);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 20px;
  position: relative; transition: 0.3s;
}
.dice-sprite {
  width: 42px; height: 42px; border-radius: 10px;
  background-image: url('./dice.png'); background-size: 600% 100%;
  background-position: 0% 0%; position: relative; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7), inset 0 -2px 4px rgba(0,0,0,0.1);
}
.dice-sprite::before {
  content: '?'; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.9); color: #b3122b;
  display: flex; justify-content: center; align-items: center;
  font-size: 24px; font-weight: bold; border-radius: 10px;
  backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s;
}
.bowl.rolling .dice-sprite { animation: .2s steps(5, start) random infinite; }
.bowl.rolling .dice-sprite::before { opacity: 1; }
@keyframes random { to { background-position: 100% 0; } }

.player-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; padding-left: 5px; padding-right: 5px; }
.player-scroll::-webkit-scrollbar { display: none; }
.player-chip {
  flex: 0 0 auto; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px; border-radius: 16px; text-align: center; min-width: 90px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.player-chip.me { border-color: rgba(245,214,123,0.4); background: rgba(245,214,123,0.08); }
.player-chip.scholar { border-color: var(--gold); box-shadow: 0 0 15px rgba(245,214,123,0.15); }
.player-chip.offline { opacity: 0.5; filter: grayscale(1); }
.chip-name { font-size: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; font-weight: 500; }
.crown { font-size: 13px; }
.offline-tag { font-size: 10px; color: #8b949e; background: rgba(255, 255, 255, 0.1); padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.chip-score { font-size: 18px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.round-count { font-size: 10px; color: var(--text-muted); }
.scholar-badge { font-size: 10px; background: var(--gold-grad); color: #1a1105; padding: 2px 8px; border-radius: 12px; margin-top: 3px; font-weight: bold; }

.host-settings {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,0.03); padding: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.05);
}
.host-settings label { font-size: 14px; color: var(--text-muted); }
.roll-select {
  background: rgba(0,0,0,0.4); color: var(--gold);
  border: 1px solid rgba(245,214,123,0.3); padding: 6px 12px;
  border-radius: 8px; font-size: 14px; outline: none; cursor: pointer;
}
.roll-select option { background: #161b22; color: #fff; }

.action-area { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
.tip-text { font-size: 13px; color: var(--text-muted); margin: 0; }
.btn-roll { width: 100%; padding: 18px; font-size: 18px; border-radius: 20px; box-shadow: 0 8px 25px rgba(242,196,90,0.3), var(--shadow-inset); }
.host-controls { display: flex; gap: 12px; width: 100%; }
.btn-outline { flex: 1; padding: 14px; background: transparent; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 16px; font-size: 15px; font-weight: 600; }
.history-btn-area { width: 100%; text-align: center; }
.btn-text { background: none; color: var(--text-muted); font-size: 14px; padding: 8px; border-bottom: 1px dashed rgba(255,255,255,0.2); border-radius: 0; }

.float-emoji-btn {
  position: fixed; bottom: 30px; right: 20px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--gold-grad); font-size: 30px;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 8px 25px rgba(242,196,90,0.4), var(--shadow-inset); 
  z-index: 100; padding: 0; line-height: 1; border: 2px solid rgba(255,255,255,0.2);
  animation: floatBounce 3s ease-in-out infinite;
}
@keyframes floatBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.emoji-modal { max-width: 380px !important; }
.emoji-scroll-area { overflow-y: auto; flex: 1; margin-bottom: 15px; text-align: left; padding-right: 5px; }
.emoji-category { color: var(--text-muted); font-size: 12px; margin: 15px 0 8px 0; }
.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.emoji-grid span { display: flex; justify-content: center; align-items: center; font-size: 28px; padding: 8px; border-radius: 12px; cursor: pointer; transition: 0.15s; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.02); }
.emoji-grid span:active { background: rgba(245,214,123,0.2); transform: scale(0.85); border-color: var(--gold); }

.danmu-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
.danmu-item { position: absolute; white-space: nowrap; font-size: 34px; text-shadow: 0 0 10px rgba(0,0,0,0.8); animation: danmuFly 5s linear forwards; display: flex; align-items: center; gap: 8px; }
.danmu-name { font-size: 13px; color: rgba(255,255,255,0.6); }
@keyframes danmuFly { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.modal-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); display: flex; justify-content: center; align-items: center; z-index: 10000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-content { background: rgba(22, 27, 34, 0.95); border: 1px solid rgba(245,214,123,0.2); border-radius: 28px; width: 90%; max-width: 340px; padding: 25px; box-shadow: 0 25px 50px rgba(0,0,0,0.8); text-align: center; transform: translateY(20px) scale(0.95); transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); max-height: 80vh; display: flex; flex-direction: column; }
.modal-mask.show .modal-content { transform: translateY(0) scale(1); }
.modal-content h3 { color: var(--gold); margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.scroll-area { overflow-y: auto; flex: 1; margin-bottom: 20px; }
.result-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); font-size: 15px;}
.result-row:last-child { border-bottom: none; }
.rank-1 { color: var(--gold); font-weight: bold; font-size: 18px; }
.rank-title { font-size: 11px; color: var(--gold); margin-left: 5px; }
.history-item { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 14px; margin-bottom: 12px; text-align: left; border: 1px solid rgba(255,255,255,0.02); }
.history-title { color: var(--gold); font-size: 14px; margin-bottom: 10px; font-weight: bold; }
.detail-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: #ccc; }
.score-text { color: #4caf84; font-weight: bold; }
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background: rgba(0,0,0,0.9); color: var(--gold); padding: 14px 28px; border-radius: 16px; z-index: 99999; font-size: 15px; font-weight: bold; border: 1px solid var(--gold); box-shadow: 0 8px 32px rgba(242, 196, 90, 0.15); opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }