/* 主持人遥控器样式(参照互动喵遥控器,红金婚礼主题) */
body.remote { background: #f7f2ea; max-width: 480px; margin: 0 auto; min-height: 100vh; box-shadow: 0 0 40px rgba(140, 30, 30, .12); position: relative; }

/* 登录 */
#rm-login { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.rm-login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 22px; padding: 30px 26px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.rm-login-card .logo { text-align: center; font-size: 40px; }
.rm-login-card h1 { text-align: center; font-size: 20px; color: var(--red-deep); margin: 8px 0 2px; }
.rm-login-card .sub { text-align: center; font-size: 12px; color: var(--ink-2); margin-bottom: 20px; }

/* ===== 头部(红金舞台氛围) ===== */
.rm-head { position: relative; background: linear-gradient(160deg, #b8232f, #8e1a24 60%, #6d1119); padding: 14px 14px 30px; border-radius: 0 0 26px 26px; overflow: hidden; min-height: 200px; }
.rm-head::after { content: "囍"; position: absolute; right: -10px; bottom: -30px; font-size: 120px; opacity: .08; font-weight: 900; }
.rm-head-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.rm-brand { color: #ffe9c9; font-weight: 800; font-size: 16px; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.rm-head-pills { display: flex; gap: 8px; }
.rm-pill { background: rgba(255, 240, 214, .16); border: 1px solid rgba(255, 220, 160, .45); color: #ffe9c9; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }

/* 最新祝福气泡 */
.rm-bubble { position: relative; z-index: 3; margin: 16px 4px 0; max-width: 78%; background: linear-gradient(165deg, rgba(255,249,236,.96), rgba(255,238,210,.92)); border-radius: 16px; padding: 14px 16px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); min-height: 86px; }
.rb-close { position: absolute; top: 8px; right: 12px; color: #b98d7e; font-size: 15px; padding: 2px 6px; }
.rb-name { font-size: 14px; font-weight: 800; color: var(--red-deep); display: flex; align-items: center; gap: 6px; }
.rb-text { font-size: 16px; color: #d9303f; font-weight: 700; margin-top: 6px; line-height: 1.5; word-break: break-all; }
.rb-time { font-size: 11px; color: #a98f83; margin-top: 6px; }

/* 右侧状态浮标 */
.rm-head-side { position: absolute; right: 12px; top: 62px; display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.rm-stat { background: rgba(255, 240, 214, .16); border: 1px solid rgba(255, 220, 160, .45); color: #ffe9c9; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; text-align: center; }
.rm-stat b { color: #ffd04d; font-size: 15px; }
.rm-mic { position: absolute; right: 16px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #ffd04d, #f0842b); border: 2px solid rgba(255,255,255,.8); font-size: 24px; box-shadow: 0 8px 22px rgba(0,0,0,.35); z-index: 3; }

/* ===== 底部功能面板 ===== */
.rm-sheet { background: #f7f2ea; border-radius: 26px 26px 0 0; margin-top: -16px; position: relative; z-index: 4; min-height: 60vh; padding: 4px 14px calc(20px + env(safe-area-inset-bottom)); }
.rm-tabs { display: flex; gap: 8px; padding: 10px 2px 14px; }
.rm-tab { flex: 1; padding: 12px 0; border-radius: 14px; font-size: 16px; font-weight: 800; color: #6b544c; background: #efe6da; border: none; }
.rm-tab.on { background: #fff; color: var(--red-deep); box-shadow: 0 4px 14px rgba(160,60,40,.12); }

.rm-grid { display: none; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rm-grid.on { display: grid; }
.rm-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 4px 14px; border-radius: 16px; border: none; background: #fff; box-shadow: 0 4px 14px rgba(160,60,40,.08); transition: transform .12s; }
.rm-tile:active { transform: scale(.94); }
.rm-tile .ico { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.rm-tile > span:last-child { font-size: 14px; font-weight: 800; color: #4a352e; }
/* 马卡龙底色 + 圆形渐变图标 */
.rm-tile.t-blue   { background: #eef4ff; } .rm-tile.t-blue .ico   { background: linear-gradient(135deg, #4a9df8, #2f6fe0); }
.rm-tile.t-purple { background: #f1edff; } .rm-tile.t-purple .ico { background: linear-gradient(135deg, #8f6cf5, #6640d8); }
.rm-tile.t-cyan   { background: #e8f8fb; } .rm-tile.t-cyan .ico   { background: linear-gradient(135deg, #2cc3d8, #0e96ad); }
.rm-tile.t-pink   { background: #fdeef4; } .rm-tile.t-pink .ico   { background: linear-gradient(135deg, #f86fae, #e04590); }
.rm-tile.t-gold   { background: #fdf6e3; } .rm-tile.t-gold .ico   { background: linear-gradient(135deg, #f5b53d, #d9921a); }
.rm-tile.t-green  { background: #ecf9ef; } .rm-tile.t-green .ico  { background: linear-gradient(135deg, #43c86f, #279b4c); }
.rm-tile.t-teal   { background: #e9faf6; } .rm-tile.t-teal .ico   { background: linear-gradient(135deg, #1fbfa0, #0e8f7a); }
.rm-tile.t-orange { background: #fff1e6; } .rm-tile.t-orange .ico { background: linear-gradient(135deg, #ff9a3d, #e56f0a); }
.rm-tile.t-rose   { background: #fdefef; } .rm-tile.t-rose .ico   { background: linear-gradient(135deg, #f5636c, #d03040); }
.rm-tile.t-slate  { background: #eef1f7; } .rm-tile.t-slate .ico  { background: linear-gradient(135deg, #6b7b9e, #47597e); }
.rm-tile.t-indigo { background: #edf0ff; } .rm-tile.t-indigo .ico { background: linear-gradient(135deg, #5a72e8, #3a49c0); }
.rm-tile.t-violet { background: #f6ecff; } .rm-tile.t-violet .ico { background: linear-gradient(135deg, #b06cf5, #8a40d8); }
.rm-tile.t-red    { background: #fdeeee; } .rm-tile.t-red .ico    { background: linear-gradient(135deg, #ff6a5e, #d92a30); }

/* 当前大屏模式高亮 */
.rm-tile.active { outline: 2.5px solid var(--red-deep); }
.rm-tile.active > span:last-child::after { content: " · 使用中"; color: var(--red-deep); font-size: 11px; }

.rm-foot { text-align: center; font-size: 12px; color: #a98f83; padding-top: 16px; }

/* 弹窗(复用 modal-mask) */
.modal { max-width: 92vw; }
.rm-gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 4px; }
.rm-gift-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 2px; border-radius: 12px; border: 1.5px solid #f3e2d0; background: #fffbf5; }
.rm-gift-cell.sel { border-color: var(--red-deep); background: #fff2e8; }
.rm-gift-cell .g { font-size: 22px; }
.rm-gift-cell .n { font-size: 11px; color: #6b544c; }
.rm-gift-cell .p { font-size: 10px; color: #b98d7e; }
.rm-gift-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; justify-content: center; }
.rm-gift-row button { border: none; background: #f3e2d0; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: #7a3800; }
.rm-gift-row button.sel { background: var(--red-deep); color: #fff; }
.rm-rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed #f0e0d2; font-size: 14px; }
.rm-rank-row:last-child { border-bottom: none; }
.rm-rank-row .idx { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffd04d, #d99a24); color: #6b3204; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.rm-rank-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-rank-row .amt { color: var(--red-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.rm-review-row { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px dashed #f0e0d2; font-size: 13px; }
.rm-review-row:last-child { border-bottom: none; }
.rm-review-row .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 游戏准备面板(两段式) ===== */
.rm-hint { font-size: 13px; color: #8a6f66; line-height: 1.7; margin-bottom: 10px; }
.rm-field { margin: 8px 0; }
.rm-field label { display: block; font-size: 12px; color: #a98f83; margin-bottom: 6px; }
.rm-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-opt { border: 1.5px solid #f0e0d2; background: #fffbf5; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; color: #6b544c; }
.rm-opt.sel { border-color: var(--red-deep); background: #fff2e8; color: var(--red-deep); }
.rm-pick-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.rm-pick { border: 1.5px solid #f0e0d2; background: #fffbf5; border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 700; color: #6b544c; text-align: left; }
.rm-pick.sel { border-color: var(--red-deep); background: #fff2e8; color: var(--red-deep); }
.rm-empty { background: #fff7ef; border: 1px dashed #e8cfb8; border-radius: 12px; padding: 14px; font-size: 13px; color: #a98f83; line-height: 1.7; text-align: center; }
.rm-ready { background: linear-gradient(135deg, #e6fcf2, #c9f7e5); border: 1.5px solid #12b886; color: #0b6b4f; border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 800; text-align: center; }
.rm-picked { text-align: center; font-size: 17px; color: #4a352e; margin-top: 10px; font-weight: 700; }
.rm-picked b { color: var(--red-deep); }
.rm-count { text-align: center; margin-top: 8px; font-size: 13px; color: #a98f83; }
.rm-count b { color: var(--red-deep); font-size: 16px; }
