/* ==========================================================================
   云海战机 · style.css   —— 国风街机 UI
   ========================================================================== */
:root{
  --gold:#e8c47a;
  --gold-b:#f7e3b0;
  --gold-d:#a8823c;
  --jade:#7ee0c0;
  --jade-d:#2c6f5e;
  --crimson:#ff5468;
  --panel-a:rgba(10,22,22,.93);
  --panel-b:rgba(5,12,13,.97);
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}

html,body{
  margin:0;padding:0;height:100%;width:100%;
  background:#03080a;
  overflow:hidden;
  overscroll-behavior:none;
  touch-action:none;
  user-select:none;-webkit-user-select:none;
  -webkit-font-smoothing:antialiased;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  color:#eaf4f0;
}

#app{
  position:fixed;inset:0;
  overflow:hidden;
  background:#03080a;
}

#cv{
  position:absolute;inset:0;
  display:block;width:100%;height:100%;
  touch-action:none;
}

/* 细颗粒质感（盖在最上层，极淡） */
#app::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:60;
  opacity:.03;
  background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.9) 0 1px,transparent 1px 3px);
}

/* ========================== 顶部 HUD ========================== */
#hud{
  position:absolute;inset:0;
  pointer-events:none;
  opacity:0;transition:opacity .4s ease;
  padding:calc(env(safe-area-inset-top,0px) + 12px) 14px calc(env(safe-area-inset-bottom,0px) + 12px);
  display:flex;flex-direction:column;
  z-index:20;
}
#hud.show{opacity:1;}

.hud-top{display:flex;align-items:flex-start;gap:10px;}

/* ---- 血条 ---- */
.hp-block{flex:0 0 46%;max-width:230px;}

.hp-row{display:flex;align-items:baseline;gap:6px;margin-bottom:5px;}
.hp-tag{
  font-size:10px;letter-spacing:3px;color:rgba(232,196,122,.8);
  text-shadow:0 1px 4px #000;
}
.hp-num{
  font-size:13px;font-weight:800;color:#dff6ec;
  font-variant-numeric:tabular-nums;
  text-shadow:0 0 10px rgba(126,224,192,.5),0 1px 4px #000;
}

.hp-track{
  position:relative;height:12px;
  background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.5));
  box-shadow:inset 0 0 0 1px rgba(232,196,122,.28),0 2px 10px rgba(0,0,0,.7);
  clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);
  overflow:hidden;
}
.hp-track i{
  position:absolute;left:0;top:0;bottom:0;width:100%;
  transform-origin:left center;
  will-change:transform;
  background:linear-gradient(180deg,#a9f7a0,#3fbf74 55%,#1f8a52);
  box-shadow:0 0 14px rgba(90,240,150,.75),inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .18s cubic-bezier(.2,.9,.3,1),background .35s;
}
.hp-seg{
  position:absolute;inset:0;pointer-events:none;
  background-image:repeating-linear-gradient(90deg,transparent 0 10px,rgba(0,0,0,.55) 10px 11.5px);
  opacity:.6;
}

.shield-row{
  display:flex;align-items:center;gap:6px;margin-top:5px;
  opacity:0;transition:opacity .25s;height:5px;
}
.shield-row.on{opacity:1;}
.shield-row span{font-size:9px;letter-spacing:2px;color:rgba(126,224,255,.85);}
.shield-track{
  flex:1;height:4px;background:rgba(0,0,0,.6);
  box-shadow:inset 0 0 0 1px rgba(126,224,255,.3);
  clip-path:polygon(3px 0,100% 0,calc(100% - 3px) 100%,0 100%);
  overflow:hidden;
}
.shield-track i{
  display:block;height:100%;width:100%;
  transform-origin:left center;
  will-change:transform;
  background:linear-gradient(90deg,#4fa8ff,#8ef1ff);
  box-shadow:0 0 10px rgba(120,220,255,.9);
  transition:transform .12s linear;
}

/* ---- 分数 ---- */
.score-block{margin-left:auto;text-align:right;padding-top:1px;}
.score{
  font-size:30px;font-weight:900;line-height:.95;
  letter-spacing:.5px;
  font-variant-numeric:tabular-nums;
  color:#fff;
  text-shadow:
    0 0 2px rgba(0,0,0,.9),
    0 0 18px rgba(232,196,122,.75),
    0 3px 10px rgba(0,0,0,.95);
}
.best{
  margin-top:5px;
  font-size:9px;letter-spacing:2.5px;
  color:rgba(200,222,214,.7);
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 3px #000;
}
.best span{color:var(--gold);font-weight:700;}

/* ---- 暂停 ---- */
#pauseBtn{
  pointer-events:auto;
  width:36px;height:36px;flex:0 0 36px;
  margin-left:10px;margin-top:2px;
  display:flex;align-items:center;justify-content:center;gap:3.5px;
  background:rgba(6,16,16,.55);
  border:1px solid rgba(232,196,122,.42);
  clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
  cursor:pointer;padding:0;
  transition:background .2s;
}
#pauseBtn i{display:block;width:3px;height:13px;border-radius:1px;background:var(--gold);box-shadow:0 0 6px rgba(232,196,122,.8);}
#pauseBtn:active{background:rgba(232,196,122,.22);}

/* ---- 关卡进度 ---- */
.lv-wrap{margin-top:9px;display:flex;align-items:center;gap:9px;}
.lv-bar{
  width:44px;height:4px;flex:0 0 44px;
  background:rgba(255,255,255,.1);
  overflow:hidden;
}
.lv-bar i{
  display:block;height:100%;width:100%;
  transform-origin:left center;
  transform:scaleX(0);
  will-change:transform;
  background:linear-gradient(90deg,var(--gold-d),var(--gold-b));
  box-shadow:0 0 8px rgba(232,196,122,.85);
  transition:transform .2s linear;
}
.lv-name{
  font-size:11px;letter-spacing:2.5px;
  color:rgba(232,196,122,.9);
  text-shadow:0 1px 5px #000;
}

/* ---- 底部胶囊 ---- */
.hud-bottom{margin-top:auto;display:flex;gap:8px;align-items:flex-end;}
.chip{
  display:flex;align-items:center;gap:7px;
  padding:6px 12px;
  font-size:11px;letter-spacing:1px;
  background:linear-gradient(180deg,rgba(10,26,24,.8),rgba(4,10,10,.85));
  box-shadow:inset 0 0 0 1px rgba(232,196,122,.26),0 4px 14px rgba(0,0,0,.6);
  clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);
  color:#cfe8de;
}
.chip-key{color:rgba(200,222,214,.55);letter-spacing:2px;}
.chip b{
  font-size:13px;font-weight:800;color:var(--gold);
  font-variant-numeric:tabular-nums;
  text-shadow:0 0 10px rgba(232,196,122,.6);
}
.bomb-chip{margin-left:auto;}
.pips{display:flex;gap:2.5px;margin-left:2px;}
.pips i{
  display:block;width:4px;height:9px;
  background:rgba(255,255,255,.14);
  transform:skewX(-18deg);
  transition:background .2s,box-shadow .2s;
}
.pips i.on{
  background:linear-gradient(180deg,#ffe9a8,#e0a63c);
  box-shadow:0 0 6px rgba(255,210,100,.9);
}

/* ========================== 遮罩 / 菜单 ========================== */
#overlay{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  background:
    radial-gradient(ellipse at 50% 46%,rgba(6,20,20,.52) 0%,rgba(2,6,7,.82) 68%,rgba(1,4,5,.9) 100%),
    linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.05));
  opacity:0;pointer-events:none;
  transition:opacity .32s ease;
  z-index:40;
}
#overlay.show{opacity:1;pointer-events:auto;}

/* 面板 */
.panel{
  position:relative;
  width:100%;max-width:342px;
  padding:30px 24px 24px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(126,224,192,.10) 0%,transparent 62%),
    linear-gradient(178deg,var(--panel-a) 0%,var(--panel-b) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232,196,122,.3),
    inset 0 0 44px rgba(0,0,0,.85),
    0 26px 70px rgba(0,0,0,.8);
  clip-path:polygon(26px 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%,0 26px);
  transform:translateY(10px) scale(.985);
  opacity:0;
  transition:transform .4s cubic-bezier(.16,1,.3,1),opacity .3s;
}
#overlay.show .panel{transform:translateY(0) scale(1);opacity:1;}
#overlay:not(.show) #ovBtn::after{animation:none;}

/* 内层网格纹理 */
.panel::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:
    repeating-linear-gradient(90deg,rgba(232,196,122,.045) 0 1px,transparent 1px 26px),
    repeating-linear-gradient(0deg,rgba(232,196,122,.035) 0 1px,transparent 1px 26px);
  mask-image:radial-gradient(ellipse at 50% 30%,#000 20%,transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse at 50% 30%,#000 20%,transparent 78%);
}

/* 四角装饰 */
.corner{
  position:absolute;width:15px;height:15px;pointer-events:none;
  border:0 solid var(--gold);
  opacity:.85;
}
.corner.tl{left:9px;top:9px;border-left-width:1.6px;border-top-width:1.6px;}
.corner.tr{right:9px;top:9px;border-right-width:1.6px;border-top-width:1.6px;}
.corner.bl{left:9px;bottom:9px;border-left-width:1.6px;border-bottom-width:1.6px;}
.corner.br{right:9px;bottom:9px;border-right-width:1.6px;border-bottom-width:1.6px;}

/* ---- 标题 ---- */
.brand{text-align:center;margin-bottom:22px;position:relative;}

.brand-rule{
  display:flex;align-items:center;justify-content:center;gap:9px;
  margin-bottom:13px;opacity:.75;
}
.brand-rule i{
  display:block;height:1px;width:46px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.brand-rule span{font-size:9px;color:var(--gold);text-shadow:0 0 9px rgba(232,196,122,.9);}

.brand h1{
  margin:0;
  font-size:25px;font-weight:900;
  letter-spacing:.05em;
  line-height:1.3;
  color:#fff;
  background:linear-gradient(180deg,#ffffff 8%,#ffeec4 38%,#e6be74 62%,#b98f44 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 16px rgba(232,196,122,.5)) drop-shadow(0 3px 8px rgba(0,0,0,.95));
  white-space:nowrap;
}
.brand-en{
  margin-top:9px;
  font-size:9px;font-weight:700;letter-spacing:.42em;text-indent:.42em;
  color:rgba(232,196,122,.72);
  text-shadow:0 1px 4px #000;
}
.brand-sub{
  margin-top:11px;
  font-size:12px;letter-spacing:.2em;text-indent:.2em;
  color:#9ec4b8;
  text-shadow:0 1px 5px #000;
}

/* ---- 数据行 ---- */
#ovStats{
  margin-bottom:22px;
  position:relative;
}
#ovStats:empty{display:none;}

#ovStats .row{
  display:flex;align-items:center;
  padding:8px 2px;
  font-size:12.5px;
  border-bottom:1px solid rgba(232,196,122,.11);
  color:#8fb3a8;
  letter-spacing:1px;
}
#ovStats .row:last-child{border-bottom:none;}
#ovStats .row>b{
  margin-left:auto;
  font-size:14px;font-weight:800;
  color:#f2f8f5;
  font-variant-numeric:tabular-nums;
  letter-spacing:.5px;
  text-shadow:0 0 12px rgba(126,224,192,.35);
}
#ovStats .row>span::before{
  content:"◈";
  color:rgba(232,196,122,.65);
  margin-right:8px;font-size:9px;
}

/* ---- 版主团卡片 ---- */
.mod-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 6px;
  padding:12px 0 6px;
  border-top:1px solid rgba(232,196,122,.14);
  margin-top:2px;
}
.mod-chip{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  width:54px;
  padding:4px 2px 2px;
  background:transparent !important;
  border:none;
  border-radius:8px;
  box-shadow:none !important;
  transform:none;
  cursor:pointer;
}
.mod-chip:active{transform:scale(.94);}
.mod-chip img,
.mod-chip .mod-ph{
  width:38px;height:38px;
  border-radius:50%;
  object-fit:cover;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.5);
  box-shadow:0 0 0 1.5px rgba(232,196,122,.32);
  font-size:13px;font-weight:800;font-style:normal;
  color:rgba(255,220,160,.75);
}
.mod-chip.chief img,
.mod-chip.chief .mod-ph{
  box-shadow:0 0 0 2px #ffb45c,0 0 14px rgba(255,180,92,.55);
}
.mod-chip b{
  font-size:9.5px;font-weight:700;letter-spacing:0;
  color:#dfeee8;
  max-width:52px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  text-shadow:0 1px 3px rgba(0,0,0,.9);
}
.mod-chip i{
  font-style:normal;
  font-size:8.5px;letter-spacing:1px;
  color:rgba(232,196,122,.72);
}
.mod-chip.chief i{color:#ffc46b;font-weight:800;}

/* ---- 按钮 ---- */
.btns{display:flex;flex-direction:column;gap:10px;}
.btn-row{display:flex;gap:9px;}
.btn-row .ghost{flex:1;}
.btn-row #ovBtn3{display:none;}
.btn-row #ovBtn3.show{display:block;}

/* ========================== 版主击退浮层 ========================== */
#bossToast{
  position:absolute;left:50%;top:34%;
  transform:translate(-50%,14px);
  display:flex;align-items:center;gap:10px;
  padding:8px 10px 8px 8px;
  max-width:calc(100% - 28px);
  background:linear-gradient(180deg,rgba(14,34,30,.96),rgba(6,16,16,.97));
  box-shadow:inset 0 0 0 1px rgba(232,196,122,.42),0 12px 30px rgba(0,0,0,.7);
  clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  opacity:0;pointer-events:none;
  transition:opacity .25s ease,transform .28s cubic-bezier(.16,1,.3,1);
  z-index:35;
}
#bossToast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto;}

.bt-ava{
  position:relative;
  width:42px;height:42px;flex:0 0 42px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 0 0 2px rgba(232,196,122,.7),0 0 14px rgba(232,196,122,.35);
  background:#20160f;
  display:flex;align-items:center;justify-content:center;
}
.bt-ava img{width:100%;height:100%;object-fit:cover;display:none;}
.bt-ava img.ok{display:block;}
.bt-ava i{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-style:normal;font-size:16px;font-weight:800;
  color:rgba(255,220,160,.8);
}
.bt-ava img.ok + i{display:none;}

.bt-main{display:flex;flex-direction:column;gap:2px;min-width:0;}
.bt-main b{
  font-size:13px;font-weight:800;letter-spacing:.04em;
  color:#ffe9bd;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:34vw;
  text-shadow:0 1px 4px rgba(0,0,0,.9);
}
.bt-main em{
  font-style:normal;font-size:10px;letter-spacing:1px;
  color:rgba(150,190,175,.8);
}

#btJump{
  flex:0 0 auto;
  padding:8px 12px;
  font-size:12px;font-weight:800;letter-spacing:.08em;
  color:#20180a;
  background:linear-gradient(180deg,#f7e3b0,#d9b166 60%,#b58b3f);
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
#btJump:active{transform:scale(.96);}

/* ========================== 通用提示 ========================== */
#toast{
  position:absolute;left:50%;top:44%;
  transform:translate(-50%,-50%) scale(.95);
  padding:10px 18px;
  font-size:13px;font-weight:700;letter-spacing:.06em;
  color:#0a1512;
  background:linear-gradient(180deg,#f7e3b0,#d9b166);
  box-shadow:0 10px 30px rgba(0,0,0,.6);
  clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  opacity:0;pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
  z-index:70;
  white-space:nowrap;
}
#toast.show{opacity:1;transform:translate(-50%,-50%) scale(1);}

button{
  font-family:inherit;
  position:relative;
  border:none;cursor:pointer;
  transition:transform .08s ease,box-shadow .22s ease,background .22s;
}

#ovBtn{
  padding:16px 20px;
  font-size:16px;font-weight:900;
  letter-spacing:.24em;text-indent:.24em;
  color:#20180a;
  background:linear-gradient(180deg,#fbeac0 0%,#e8c47a 42%,#c69a4c 72%,#a87c33 100%);
  clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
  box-shadow:
    0 10px 26px rgba(232,196,122,.24),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 0 rgba(0,0,0,.22);
  overflow:hidden;
}
#ovBtn::after{
  content:"";position:absolute;left:-60%;top:0;bottom:0;width:38%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.62),transparent);
  transform:skewX(-20deg);
  animation:sheen 3.4s ease-in-out infinite;
}
@keyframes sheen{
  0%,62%{left:-60%;}
  100%{left:130%;}
}
#ovBtn:active{transform:scale(.975);box-shadow:0 4px 14px rgba(232,196,122,.2),inset 0 1px 0 rgba(255,255,255,.5);}

.ghost{
  background:transparent;
  padding:11px;
  font-size:11.5px;font-weight:600;
  letter-spacing:.22em;text-indent:.22em;
  color:rgba(180,208,198,.75);
  border-top:1px solid rgba(232,196,122,.14);
}
.ghost:active{color:var(--gold);}

/* ---- 加载 ---- */
#boot{
  position:absolute;inset:0;z-index:80;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
  background:#04090b;
  transition:opacity .5s ease;
}
#boot.hide{opacity:0;pointer-events:none;visibility:hidden;}
#boot.hide .boot-ring{animation:none;}
.boot-ring{
  width:44px;height:44px;border-radius:50%;
  border:1.6px solid rgba(232,196,122,.18);
  border-top-color:var(--gold);
  animation:spin .9s linear infinite;
  box-shadow:0 0 24px rgba(232,196,122,.35);
}
@keyframes spin{to{transform:rotate(360deg);}}
.boot-txt{
  font-size:11px;letter-spacing:.4em;text-indent:.4em;
  color:rgba(232,196,122,.7);
}

/* ========================== 选关面板 ========================== */
#boardPanel{
  position:absolute;inset:0;z-index:45;
  display:flex;align-items:center;justify-content:center;
  padding:14px;
  background:
    radial-gradient(ellipse at 50% 30%,rgba(8,26,22,.86) 0%,rgba(2,6,7,.96) 70%),
    rgba(2,5,6,.9);
  opacity:0;pointer-events:none;
  transition:opacity .28s ease;
}
#boardPanel.show{opacity:1;pointer-events:auto;}

.bp-inner{
  width:100%;max-width:360px;height:100%;
  display:flex;flex-direction:column;
  background:linear-gradient(178deg,rgba(10,22,22,.9),rgba(5,12,13,.96));
  box-shadow:inset 0 0 0 1px rgba(232,196,122,.24),0 24px 60px rgba(0,0,0,.8);
  clip-path:polygon(20px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%,0 20px);
  overflow:hidden;
}

.bp-head{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px 10px;
  border-bottom:1px solid rgba(232,196,122,.16);
  flex:0 0 auto;
}
#boardBack{
  width:32px;height:32px;flex:0 0 32px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;line-height:1;font-weight:300;
  color:var(--gold);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(232,196,122,.3);
  border-radius:9px;
  padding:0 0 3px;
  cursor:pointer;
}
#boardBack:active{background:rgba(232,196,122,.16);}
.bp-title{
  font-size:15px;font-weight:800;letter-spacing:.14em;
  color:#f1f8f4;
  text-shadow:0 0 14px rgba(232,196,122,.35);
}
.bp-tip{
  margin-left:auto;
  font-size:10px;letter-spacing:2px;
  color:rgba(160,190,180,.6);
}

.bp-list{
  flex:1;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:10px 12px 16px;
  display:flex;flex-direction:column;gap:8px;
}
.bp-list::-webkit-scrollbar{width:0;}

.bcard{
  display:flex;align-items:center;gap:11px;
  width:100%;
  padding:10px 12px;
  text-align:left;
  background:linear-gradient(180deg,rgba(18,38,34,.9),rgba(8,18,18,.94));
  box-shadow:inset 0 0 0 1px rgba(232,196,122,.18);
  clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  color:#dfeee8;
  transition:transform .08s ease,box-shadow .2s ease,background .2s;
}
.bcard:active{transform:scale(.985);box-shadow:inset 0 0 0 1px rgba(232,196,122,.55);background:linear-gradient(180deg,rgba(26,52,46,.95),rgba(10,22,22,.96));}

.bicon{
  width:40px;height:40px;flex:0 0 40px;
  border-radius:10px;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.4);
  box-shadow:inset 0 0 0 1px rgba(232,196,122,.28);
}
.bicon img{width:100%;height:100%;object-fit:cover;display:block;}
.bicon i{font-size:15px;font-style:normal;color:rgba(232,196,122,.75);font-weight:800;}

.bmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.bmain b{
  font-size:14px;font-weight:800;letter-spacing:.04em;
  color:#f0f8f4;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  text-shadow:0 1px 4px rgba(0,0,0,.8);
}
.bmain em{
  font-style:normal;font-size:10.5px;letter-spacing:.5px;
  color:rgba(150,185,172,.75);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.bstate{
  flex:0 0 auto;
  font-size:10.5px;font-weight:700;letter-spacing:1px;
  padding:4px 9px;border-radius:20px;
  color:#0a1512;
  background:linear-gradient(180deg,#f2d79a,#cfa552);
}
.bcard.done{opacity:.55;}
.bcard.done .bstate{
  background:transparent;
  color:rgba(143,227,192,.9);
  box-shadow:inset 0 0 0 1px rgba(143,227,192,.4);
}
.bcard.done .bmain b{color:#a9c4bc;}

.bcard.current{
  box-shadow:inset 0 0 0 1px rgba(232,196,122,.62),0 0 18px rgba(232,196,122,.12);
}
.bcard.current .bstate{
  background:linear-gradient(180deg,#ffe1a3,#e0a63c);
  color:#20180a;
}
.bcard.locked{opacity:.42;}
.bcard.locked .bstate{
  background:transparent;
  color:rgba(150,180,170,.65);
  box-shadow:inset 0 0 0 1px rgba(150,180,170,.28);
}
.bcard.locked .bmain b{color:#8aa39b;}

/* ---- 小屏 ---- */
@media (max-height:680px){
  .panel{padding:22px 20px 18px;}
  .brand{margin-bottom:16px;}
  .brand h1{font-size:31px;}
  #ovStats{margin-bottom:16px;}
  #ovStats .row{padding:6px 2px;}
  #ovBtn{padding:13px 18px;font-size:15px;}
}
@media (max-width:370px){
  .score{font-size:26px;}
  .brand h1{font-size:32px;}
}


/* ========================== 横屏提示 ========================== */
#rotateTip{
  position:absolute;inset:0;z-index:200;
  display:none;
  flex-direction:column;align-items:center;justify-content:center;gap:12px;
  background:radial-gradient(ellipse at 50% 45%,#0a1a1c 0%,#03080a 70%);
  text-align:center;padding:24px;
}
#rotateTip.show{display:flex;}
.rt-icon{
  font-size:44px;
  animation:rtSpin 2.4s ease-in-out infinite;
  filter:drop-shadow(0 0 18px rgba(232,196,122,.45));
}
@keyframes rtSpin{
  0%,45%{transform:rotate(0deg);}
  55%,100%{transform:rotate(-90deg);}
}
.rt-main{
  font-size:19px;font-weight:900;letter-spacing:.2em;text-indent:.2em;
  color:#ffe9bd;
  text-shadow:0 0 18px rgba(232,196,122,.5);
}
.rt-sub{
  font-size:12px;letter-spacing:.08em;
  color:#8aa39b;
  max-width:260px;line-height:1.7;
}
