/* app-glass.css — 玻璃拟态覆盖层
 *
 * 加载顺序：app.css → app-game.css → app-vivid.css → app-glass.css
 *
 * 为什么单独一层：
 *   app-vivid 的整套视觉建立在「深紫粗描边 + 实色硬影」上，那是"塑料玩具"的做法。
 *   玻璃要的是相反的：细白边 + 柔光 + 能透出背后渐变。两者的 border / box-shadow
 *   声明几乎一一对立，硬塞进 app-vivid 会变成两套规则互相打架，所以单独起一层，
 *   只做一件事 —— 把「实心塑料件」换成「玻璃片」。
 *
 * 三条规则：
 *   1) 描边：一律 1px ~ 1.5px 半透明白，只留上缘一道更亮的高光。深色描边全部去掉。
 *   2) 底面：半透明白（.28 ~ .55 之间）+ backdrop-filter 磨砂。背景渐变必须能透出来。
 *   3) 投影：实色"厚度"全部换成大范围柔影。玻璃没有厚度，浮起来靠的是光。
 *
 * 性能取舍（重要）：
 *   backdrop-filter 是整层重绘，元素一多就掉帧。所以按数量分级：
 *     顶栏 / 弹窗 / 登录卡（≤3 个）→ blur 20~28px，最强
 *     卡片（一屏十几个）           → blur 10~12px
 *     按钮 / 标签（几十个）        → 完全不用 blur，只做半透明底
 *   按钮如果也上 blur，一个页面几十个模糊层，手机端会直接卡死。
 */

:root {
  --gl-white: rgba(255, 255, 255, 0.42);
  --gl-white-2: rgba(255, 255, 255, 0.54);
  --gl-white-3: rgba(255, 255, 255, 0.68);
  --gl-line: rgba(255, 255, 255, 0.55);
  --gl-line-soft: rgba(255, 255, 255, 0.34);
  --gl-edge: rgba(255, 255, 255, 0.85);
  --gl-shadow: 0 10px 30px rgba(48, 24, 92, 0.16);
  --gl-shadow-sm: 0 4px 14px rgba(48, 24, 92, 0.13);
  --gl-shadow-lg: 0 24px 60px rgba(48, 24, 92, 0.26);
  --gl-blur: blur(14px) saturate(112%);
  --gl-blur-lg: blur(22px) saturate(118%);
}

/* 深色描边变量本身改掉：还有别处引用 --gd-stroke* 时会自动变玻璃边 */
:root {
  --gd-stroke: 1.5px solid var(--gl-line);
  --gd-stroke-thin: 1px solid var(--gl-line);
  --gd-depth: var(--gl-shadow);
  --gd-depth-sm: var(--gl-shadow-sm);
}

/* ==================== 顶栏：最薄的一片玻璃 ==================== */
.topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.26));
  backdrop-filter: var(--gl-blur-lg);
  -webkit-backdrop-filter: var(--gl-blur-lg);
  border-bottom: 1px solid var(--gl-line);
  box-shadow: 0 8px 26px rgba(48, 24, 92, 0.14), inset 0 1px 0 var(--gl-edge);
}
/* 底部彩虹带保留（它是唯一"卡通"的线索），但压成半透明细线，别抢玻璃的干净 */
.topbar::after {
  bottom: -1px; height: 2px;
  opacity: 0.5;
  border-radius: 2px;
}

/* ==================== 卡片族：一整排玻璃片 ==================== */
.pet-card,
.card,
.kpi,
.chart-card,
.care-panel,
.login-card,
.duty-card,
.shop-preview,
.manage-card,
.deco-card,
.record-bar,
.pending-card,
.eval-bar {
  background: linear-gradient(158deg, var(--gl-white-3) 0%, var(--gl-white) 100%);
  border: 1.5px solid var(--gl-line);
  border-radius: 24px;
  backdrop-filter: var(--gl-blur);
  -webkit-backdrop-filter: var(--gl-blur);
  box-shadow: var(--gl-shadow), inset 0 1px 0 var(--gl-edge);
}

/* 图表卡单独再提白一档：网格线和坐标轴是白色的，压在草地的淡绿上几乎看不见。
   卡片透一点没关系，但图表区要保住"白网格 + 浅底"的对比。 */
.chart-card {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.82) 100%);
}

/* 卡片顶上的彩条：从 12px 实色压成 3px 半透明，像玻璃边缘的一道彩色反光 */
.pet-card::before,
.card::before,
.chart-card::before,
.kpi::before,
.record-bar::before,
.pending-card::before {
  height: 3px;
  border-radius: 3px 3px 0 0;
  opacity: 0.75;
}

/* 彩虹条改回"整条渐变横跨卡片"。上一版是 background-size: 300% + 无限滚动，
   3px 高时任何一刻只显示渐变的 1/3——桌面宽卡还能看出颜色过渡，手机上卡片一窄
   就只剩一条单色深紫线，看着像黑框。整条铺满、去掉滚动，两端才是完整彩虹。 */
.pet-card::before,
.card::before,
.chart-card::before,
.kpi::before,
.record-bar::before,
.pending-card::before,
.login-card::before {
  background-size: 100% 100% !important;
  animation: none !important;
}

/* 宠物卡的四色外发光：玻璃不再"发光"，改成极淡的彩色晕染，几乎看不见但能分出谁是谁 */
.pet-card:nth-child(1) { box-shadow: var(--gl-shadow), inset 0 1px 0 var(--gl-edge), 0 0 0 1px rgba(255, 140, 200, .16); }
.pet-card:nth-child(2) { box-shadow: var(--gl-shadow), inset 0 1px 0 var(--gl-edge), 0 0 0 1px rgba(110, 190, 255, .16); }
.pet-card:nth-child(3) { box-shadow: var(--gl-shadow), inset 0 1px 0 var(--gl-edge), 0 0 0 1px rgba(255, 180, 110, .16); }
.pet-card:nth-child(4) { box-shadow: var(--gl-shadow), inset 0 1px 0 var(--gl-edge), 0 0 0 1px rgba(130, 225, 170, .16); }

/* ==================== 页签：玻璃胶囊 ==================== */
.tab {
  border: 1px solid var(--gl-line);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(48, 24, 92, 0.16), inset 0 1px 0 var(--gl-edge);
  color: #35235C;
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease,
              background .2s ease, color .2s ease;
}
/* 未选中的七色：不再整颗染色，只在玻璃里掺一点点本色，选中的才真正上色 */
.tabs .tab:nth-child(1) { background: rgba(255, 214, 178, 0.30); }
.tabs .tab:nth-child(2) { background: rgba(255, 198, 226, 0.30); }
.tabs .tab:nth-child(3) { background: rgba(186, 244, 210, 0.30); }
.tabs .tab:nth-child(4) { background: rgba(190, 222, 255, 0.30); }
.tabs .tab:nth-child(5) { background: rgba(216, 202, 255, 0.30); }
.tabs .tab:nth-child(6) { background: rgba(255, 244, 186, 0.30); }
.tabs .tab:nth-child(7) { background: rgba(190, 244, 246, 0.30); }

.tab:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 8px 20px rgba(48, 24, 92, 0.18), inset 0 1px 0 var(--gl-edge);
}
/* 选中：半透明彩色玻璃 + 白边 + 外晕，不用深色底也不用深色描边。
   必须连带 .tabs .tab:nth-child(n).active 一起覆盖 —— app-vivid 里七色选中态
   用了 0,4,0 的特异性，单写 .tab.active 会被它压掉（实测选中态仍是实心橙）。 */
.tab.active,
.tabs .tab:nth-child(1).active, .tabs .tab:nth-child(2).active,
.tabs .tab:nth-child(3).active, .tabs .tab:nth-child(4).active,
.tabs .tab:nth-child(5).active, .tabs .tab:nth-child(6).active,
.tabs .tab:nth-child(7).active {
  color: #23123F;
  border-color: rgba(255, 255, 255, 0.88);
  border-width: 1.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 22px rgba(48, 24, 92, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.34),
    inset 0 1.5px 0 #fff;
  transform: translateY(-1px);
}
/* 七色选中态各自保留本色，只是改成半透明 —— 这是"我在哪一页"的唯一依据，不能全染成同一个色 */
.tabs .tab:nth-child(1).active { background: linear-gradient(180deg, rgba(255, 198, 130, .82), rgba(255, 160, 70, .66)); }
.tabs .tab:nth-child(2).active { background: linear-gradient(180deg, rgba(255, 190, 220, .82), rgba(255, 140, 200, .66)); }
.tabs .tab:nth-child(3).active { background: linear-gradient(180deg, rgba(170, 244, 200, .82), rgba(86, 210, 140, .66)); }
.tabs .tab:nth-child(4).active { background: linear-gradient(180deg, rgba(180, 220, 255, .82), rgba(110, 175, 255, .66)); }
.tabs .tab:nth-child(5).active { background: linear-gradient(180deg, rgba(214, 198, 255, .82), rgba(150, 122, 255, .66)); }
.tabs .tab:nth-child(6).active { background: linear-gradient(180deg, rgba(255, 238, 170, .82), rgba(255, 208, 90, .66)); }
.tabs .tab:nth-child(7).active { background: linear-gradient(180deg, rgba(178, 244, 246, .82), rgba(78, 210, 228, .66)); }

/* ==================== 按钮：全部去掉厚度，改成"压下去发暗" ==================== */
.btn {
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.30));
  color: #2E1C52;
  box-shadow: var(--gl-shadow-sm), inset 0 1.5px 0 var(--gl-edge);
  transition: transform .14s cubic-bezier(.34,1.4,.64,1), box-shadow .14s ease,
              background .18s ease, filter .18s ease;
}
.btn:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.40));
  box-shadow: 0 9px 22px rgba(48, 24, 92, 0.20), inset 0 1.5px 0 var(--gl-edge);
}
/* 按下：不位移到"贴底"，只微微下沉 + 内凹阴影 —— 玻璃按下去是光的明暗变化 */
.btn:active {
  transform: translateY(1px) scale(.985);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.24));
  box-shadow: inset 0 3px 8px rgba(48, 24, 92, 0.18), 0 1px 3px rgba(48, 24, 92, 0.12);
}

/* 主按钮：半透明琥珀玻璃，字为深棕（白字在半透明橙上会发灰） */
.btn.primary {
  background: linear-gradient(180deg, rgba(255, 206, 130, 0.86), rgba(255, 152, 62, 0.72));
  color: #4A2200;
  border-color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 22px rgba(255, 140, 40, 0.30),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}
/* vivid 版的主按钮是实心橙底 + 白字，玻璃版换成了半透明浅橙底，
   文字必须跟着改成深棕——不然白字压在浅橙上基本看不见。
   这里要把 .ico 一起管住：vivid 里 .btn.primary .ico.glyph 有 color:#fff，
   只改按钮本身的 color 管不到图标，会出现"图标白、文字也白"的整块空白按钮。 */
.btn.primary,
.btn.primary .ico,
.btn.primary .ico.glyph {
  color: #4A2200;
  text-shadow: none;
}
.btn.primary:hover {
  background: linear-gradient(180deg, rgba(255, 214, 148, 0.92), rgba(255, 160, 74, 0.80));
  box-shadow: 0 12px 28px rgba(255, 140, 40, 0.36), inset 0 1.5px 0 #fff;
}
.btn.primary:active {
  background: linear-gradient(180deg, rgba(255, 196, 118, 0.78), rgba(240, 140, 54, 0.66));
  box-shadow: inset 0 3px 9px rgba(150, 70, 10, 0.26);
}

/* 照料三点：三种颜色的玻璃 */
.btn.care {
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.75);
  color: #1E3A12;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 22px rgba(48, 24, 92, 0.14), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}
.btn.care[data-action="feed"] {
  background: linear-gradient(180deg, rgba(255, 226, 168, 0.88), rgba(255, 176, 74, 0.70));
  color: #5A3300;
  box-shadow: 0 8px 22px rgba(230, 150, 40, 0.28), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}
.btn.care[data-action="bathe"] {
  background: linear-gradient(180deg, rgba(196, 234, 255, 0.88), rgba(96, 186, 244, 0.70));
  color: #0A3C63;
  box-shadow: 0 8px 22px rgba(60, 150, 220, 0.28), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}
.btn.care[data-action="treat"] {
  background: linear-gradient(180deg, rgba(255, 206, 222, 0.88), rgba(255, 116, 156, 0.70));
  color: #66062A;
  box-shadow: 0 8px 22px rgba(220, 70, 120, 0.28), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}
.btn.care:active, .btn.care[data-action]:active {
  box-shadow: inset 0 3px 9px rgba(48, 24, 92, 0.22);
}

.btn.rescue {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(255, 190, 200, 0.88), rgba(255, 90, 118, 0.72));
  color: #5C0018;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 22px rgba(220, 50, 80, 0.30), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}

.btn.ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.20));
}

/* 顶栏那排工具键：玻璃上不再上彩色底，只在左缘点一颗颜色豆标识功能。
   七个彩色玻璃块排在一条白玻璃上会花掉，一颗豆足够。 */
.topbar .btn.small {
  border-width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.26));
  box-shadow: var(--gl-shadow-sm), inset 0 1px 0 var(--gl-edge);
}
#btn-new-class, #btn-export, #btn-import, #btn-reset-demo,
#btn-face-setting, #btn-logout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.26));
}

/* 小号按钮（刷新 / 换形象 / 表格行内操作…）：
   app-game.css 里 .btn.small 自带一条 0 2.5px 0 #C9A87C 的米粉色硬底，
   特异性 0,2,0 比 .btn（0,1,0）高，只在 .btn 上改是盖不住的 —— 实测一屏几十个
   小键底部都留着一道米粉边。必须显式写 .btn.small。 */
.btn.small,
.species-btn {
  border-width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.28));
  box-shadow: var(--gl-shadow-sm), inset 0 1px 0 var(--gl-edge);
}
.btn.small:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.40));
  box-shadow: 0 8px 20px rgba(48, 24, 92, 0.18), inset 0 1px 0 #fff;
}
.btn.small:active {
  box-shadow: inset 0 2px 6px rgba(48, 24, 92, 0.16);
}

/* 左栏「切换宠物 / 领养宠物」两颗药丸键。
   它们是 .btn.small.species-btn（0,3,0），比下面的禁用态 .btn:disabled（0,2,0）高，
   所以禁用时背景还是亮的白玻璃，只有字被压淡 —— 远看像两颗能点的按钮。
   未领养时「切换宠物」正好是禁用的，必须让它真的看起来是灰的。
   顺手加 !important 到 border-color / background 上，
   因为 .btn.small.species-btn 的 0,3,0 本身就会跟这里的 0,3,0 打平手（后写者赢），
   以后谁再往后面加样式也不会把灰态盖掉。 */
.btn.small.species-btn {
  background: linear-gradient(180deg, rgba(255, 226, 168, 0.94), rgba(255, 176, 88, 0.86));
  color: #4A2200;
  text-shadow: none;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 10px rgba(200, 110, 20, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn.small.species-btn:hover {
  background: linear-gradient(180deg, rgba(255, 234, 186, 0.98), rgba(255, 186, 100, 0.92));
}
.btn.small.species-btn .ico,
.btn.small.species-btn .ico.glyph { color: #4A2200; text-shadow: none; }
.btn.small.species-btn:disabled {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: rgba(46, 28, 82, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
.btn.small.species-btn:disabled .ico { color: rgba(46, 28, 82, 0.55); }

/* 小号主按钮必须救回来。
   上面这条 .btn.small（0,2,0）排在 .btn.primary（0,2,0）之后，同特异性下后写的赢，
   于是小号主按钮的橙色底被盖成白玻璃；而 color 仍继承 vivid 的 #fff，
   结果是"白底白字"，按钮上的字整块看不见（买装扮、领养宠物、保存价都中招）。
   特异性抬到 0,3,0 才能压住，别删。 */
.btn.small.primary,
.btn.small.primary:hover {
  background: linear-gradient(180deg, rgba(255, 206, 130, 0.92), rgba(255, 152, 62, 0.82));
  color: #4A2200;
  text-shadow: none;
  border-color: rgba(255, 255, 255, 0.82);
}
.btn.small.primary:hover {
  background: linear-gradient(180deg, rgba(255, 214, 148, 0.96), rgba(255, 160, 74, 0.86));
}
.btn.small.primary .ico,
.btn.small.primary .ico.glyph { color: #4A2200; text-shadow: none; }

/* 用户名旁的角色徽章 */
#user-name .role-tag {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(150, 240, 180, 0.90), rgba(70, 192, 138, 0.78));
  color: #03401C;
  box-shadow: 0 2px 6px rgba(30, 150, 90, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn:disabled, .btn[disabled] {
  filter: none !important;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  /* 禁用态文字不能太淡：商店里"Lv.5 解锁"是老师判断能不能买的唯一提示，
     原来压到 .66 在白玻璃上基本看不清，抬到 .82 还能表达"不可用"。 */
  color: rgba(46, 28, 82, 0.82);
  text-shadow: none;
}

/* 分段按钮选中态 */
.btn.small.active {
  background: linear-gradient(180deg, rgba(255, 208, 130, 0.82), rgba(255, 160, 70, 0.68)) !important;
  color: #4A2200 !important;
  border-color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 18px rgba(255, 140, 40, 0.28), inset 0 1.5px 0 #fff;
}

/* ==================== 记分键：大号玻璃糖 ====================
   注意：box-shadow 必须写在 .plus / .minus 上而不是 .score-btn 上。
   app-game.css 的 .score-btn.plus 自带一条 3px 实色厚度影，特异性 0,2,0，
   会比 .score-btn（0,1,0）里的新阴影优先——只改父类等于没改，实测按钮底部
   会留一条深绿色硬边。 */
.score-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  transition: transform .1s ease, box-shadow .14s ease;
}
.score-btn.plus {
  background: linear-gradient(180deg, rgba(150, 246, 186, 0.94), rgba(52, 196, 116, 0.86));
  color: #04361A;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  box-shadow: 0 7px 18px rgba(30, 170, 95, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}
.score-btn.minus {
  background: linear-gradient(180deg, rgba(255, 186, 200, 0.94), rgba(250, 88, 118, 0.86));
  color: #560015;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  box-shadow: 0 7px 18px rgba(220, 50, 80, 0.26), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}
.score-btn:hover { transform: translateY(-2px); }
.score-btn.plus:hover { box-shadow: 0 12px 26px rgba(30, 170, 95, 0.34), inset 0 2px 0 #fff; }
.score-btn.minus:hover { box-shadow: 0 12px 26px rgba(220, 50, 80, 0.32), inset 0 2px 0 #fff; }
.score-btn:active { transform: translateY(1px) scale(.96); }
.score-btn.plus:active, .score-btn.minus:active {
  box-shadow: inset 0 3px 9px rgba(48, 24, 92, 0.24);
}

/* ==================== 输入控件：磨砂玻璃槽 ==================== */
.score-input, .mini-input, input[type="text"], input[type="number"], input[type="password"],
input[type="date"], select, textarea {
  border: 1px solid var(--gl-line) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.46) !important;
  color: #2E1C52;
  box-shadow: inset 0 2px 5px rgba(48, 24, 92, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
input::placeholder, textarea::placeholder { color: rgba(46, 28, 82, 0.42); }
.score-input:focus, .mini-input:focus, input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.34), inset 0 2px 5px rgba(48, 24, 92, 0.08) !important;
  outline: none;
}

/* ==================== 表格：去掉所有框线，只留玻璃上的行带 ==================== */
.table th {
  background: rgba(255, 255, 255, 0.66);
  border-bottom: 1px solid var(--gl-line);
  color: #35235C;
}
.table td { border-bottom: 1px solid rgba(255, 255, 255, 0.26); }
.table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.30); }
.table tr:hover td { background: rgba(255, 255, 255, 0.50); }

/* 普通行给一层白：原来只有 0.12 的半透明，背景换成草地以后第 4 行整行发绿，
   和前三名的金银铜并排看着像"另一种状态"。表格行必须是一片相对实的白。 */
#leaderboard-table th { background: rgba(255, 255, 255, 0.80); }
/* 排行榜的深紫描边必须在这里彻底清掉：app-vivid.css 给每个 td 加了
   2.5px 的 border-top / border-bottom，首列还有 border-left，末列 border-right。
   前三名的彩色带几乎不透明，把线糊住了；第 4 行是白底，头顶一条深紫线 + 左边一条
   深紫竖线，看上去像"表格没画完"或者"多了一个黑框"。
   行与行本来就有 6px 的 border-spacing，不靠线也能分开。 */
#leaderboard-table td {
  border: none !important;
  background: rgba(255, 255, 255, 0.74);
}
#leaderboard-table td:first-child,
#leaderboard-table td:last-child {
  border-left: none !important;
  border-right: none !important;
}
#leaderboard-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.82); }
#leaderboard-table tr:hover td { background: rgba(255, 255, 255, 0.92); }

/* 前三名：半透明彩色玻璃带。
   这里有个坑：低不透明度的黄叠在紫粉渐变上会变肉色（金变粉），
   所以奖牌三色不能照抄纸卡时代的 rgba(...,.44)，要压到 .7 左右才守得住本色。 */
#leaderboard-table tr:nth-child(1) td {
  background: linear-gradient(90deg, rgba(255, 226, 122, 0.78), rgba(255, 206, 76, 0.62)) !important;
}
#leaderboard-table tr:nth-child(2) td {
  background: linear-gradient(90deg, rgba(238, 244, 255, 0.80), rgba(206, 220, 240, 0.64)) !important;
}
#leaderboard-table tr:nth-child(3) td {
  background: linear-gradient(90deg, rgba(255, 208, 172, 0.78), rgba(235, 172, 116, 0.62)) !important;
}
#leaderboard-table tr:nth-child(1) td:first-child,
#leaderboard-table tr:nth-child(2) td:first-child,
#leaderboard-table tr:nth-child(3) td:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  color: #2E1C52;
}
/* 奖牌：白边 + 半透明，像嵌在玻璃里的一枚硬币 */
#leaderboard-table tr:nth-child(1) td:first-child::before,
#leaderboard-table tr:nth-child(2) td:first-child::before,
#leaderboard-table tr:nth-child(3) td:first-child::before {
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(48, 24, 92, 0.20), inset 0 2px 0 rgba(255, 255, 255, 0.75);
}
#leaderboard-table tr:nth-child(1) td:first-child::before { background: linear-gradient(180deg, rgba(255, 236, 150, 0.95), rgba(232, 164, 0, 0.85)); }
#leaderboard-table tr:nth-child(2) td:first-child::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(169, 187, 214, 0.85)); }
#leaderboard-table tr:nth-child(3) td:first-child::before { background: linear-gradient(180deg, rgba(255, 220, 190, 0.95), rgba(201, 122, 51, 0.85)); }

/* 第 4 名以后也配一枚名次圆章，只是做成白玻璃、比奖牌轻一档。
   之前只有前三名有圆章，第 4 行是一颗裸数字顶在左边，跟上面三行完全不搭，
   看着像"少画了一个圈"——用户说的"第 4 名有点问题"有一半是这个。 */
#leaderboard-table tr:nth-child(n+4) td:first-child {
  position: relative;
  padding-left: 2.4rem;
}
#leaderboard-table tr:nth-child(n+4) td:first-child::before {
  content: "";
  position: absolute; left: .6rem; top: 50%;
  width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(234, 246, 255, 0.95), rgba(198, 218, 242, 0.88));
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(48, 24, 92, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ==================== 标签：玻璃药丸 ==================== */
.tag {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.34);
  color: #2E1C52;
  box-shadow: 0 2px 6px rgba(48, 24, 92, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-shadow: none;
}
.tag { background: rgba(150, 240, 190, 0.44); color: #0A5C33; }
.tag.warn { background: rgba(255, 220, 130, 0.50); color: #6B4900; }
.tag.danger { background: rgba(255, 168, 182, 0.52); color: #850018; }
.tag::before {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.75), 0 1px 3px rgba(48, 24, 92, 0.24);
}

/* 经验条 / 进度槽：玻璃管 */
.exp-bar {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 2px 6px rgba(48, 24, 92, 0.14);
}
.bar-track {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 2px 6px rgba(48, 24, 92, 0.12);
}

/* ==================== 待办区 ==================== */
.pending-row {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.30);
  box-shadow: 0 2px 8px rgba(48, 24, 92, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.pending-row .pg {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(255, 210, 150, 0.85), rgba(255, 160, 80, 0.70));
  color: #4A2200;
  box-shadow: 0 2px 6px rgba(230, 140, 40, 0.22);
}
.pending-row .pdel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.40);
  color: #B03A5E;
  box-shadow: 0 2px 6px rgba(48, 24, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.pending-row .pdel:hover {
  background: rgba(255, 120, 145, 0.82);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 50, 90, 0.30);
}

/* ==================== 商店 ==================== */
.deco-card, .deco-card.locked {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.24));
}
.deco-card.equipped {
  border-color: rgba(255, 210, 150, 0.9);
  background: linear-gradient(158deg, rgba(255, 240, 210, 0.62), rgba(255, 220, 170, 0.34));
  box-shadow: var(--gl-shadow), 0 0 0 2px rgba(255, 200, 120, 0.34), inset 0 1px 0 var(--gl-edge);
}
.deco-card::before { height: 3px; border-radius: 3px 3px 0 0; opacity: .85; }

.deco-card .btn:disabled, .deco-card .btn.small:disabled {
  /* 斜纹用深紫低透明度才看得见；白色斜纹叠在白玻璃上等于没有 */
  background:
    repeating-linear-gradient(45deg, rgba(46, 28, 82, 0.10) 0 6px, rgba(255, 255, 255, 0.06) 6px 12px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(46, 28, 82, 0.80);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.deco-card .lock-tag {
  color: rgba(46, 28, 82, 0.78);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.deco-card .btn.small:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 210, 140, 0.86), rgba(255, 158, 70, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #4A2200;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 16px rgba(255, 140, 40, 0.26), inset 0 1.5px 0 #fff;
}

/* ---- 宠物商店 ---- */
/* 卡片比装扮卡大：每张要塞一只宠物缩略图。桌面 4 列，窄屏 2 列。 */
.pet-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.pet-shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0.7rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.26));
  box-shadow: var(--gl-shadow-sm, 0 6px 18px rgba(48, 24, 92, 0.10)), inset 0 1px 0 var(--gl-edge, #fff);
  transition: transform 0.14s, box-shadow 0.16s;
}
.pet-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(48, 24, 92, 0.16), inset 0 1px 0 #fff;
}
/* 使用中：暖色高亮，和「已穿戴」的装扮卡一个语言 */
.pet-shop-card.is-current {
  border-color: rgba(255, 210, 150, 0.95);
  background: linear-gradient(158deg, rgba(255, 240, 210, 0.66), rgba(255, 220, 170, 0.36));
  box-shadow: 0 10px 24px rgba(220, 150, 60, 0.20), 0 0 0 2px rgba(255, 200, 120, 0.34), inset 0 1px 0 #fff;
}
.pet-shop-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.85), rgba(226, 214, 248, 0.42));
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.pet-shop-thumb canvas { width: 100%; height: 100%; display: block; }
.pet-shop-info { display: flex; flex-direction: column; gap: 0.35rem; }
.pet-shop-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 0.95rem;
  color: #3B2A66;
}
.pet-tier {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.08rem 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.pet-tier.common { background: rgba(206, 228, 255, 0.85); color: #22527F; }
.pet-tier.uncommon { background: rgba(196, 240, 214, 0.88); color: #166B45; }
.pet-tier.rare { background: rgba(214, 206, 255, 0.9); color: #4A2A9E; }
.pet-tier.legend { background: linear-gradient(180deg, #FFE08A, #FFB43D); color: #6B3A00; }
.pet-owned-tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: #17864A;
  background: rgba(214, 248, 228, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0.06rem 0.34rem;
  border-radius: 999px;
}
.pet-shop-price-row { display: flex; align-items: center; min-height: 1.9rem; }
.pet-price { font-size: 1.18rem; font-weight: 800; color: #4A2A7A; }
.pet-price small { font-size: 0.7rem; font-weight: 600; margin-left: 0.15rem; color: rgba(74, 42, 122, 0.7); }
.pet-price-input {
  width: 100%;
  padding: 0.24rem 0.42rem;
  border-radius: 10px;
  border: 1.5px solid rgba(120, 90, 190, 0.35);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-weight: 700;
  color: #3B2A66;
}
.pet-shop-card .btn.small { width: 100%; }
.pet-shop-card .btn:disabled {
  background: repeating-linear-gradient(45deg, rgba(46, 28, 82, 0.10) 0 6px, rgba(255, 255, 255, 0.06) 6px 12px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(46, 28, 82, 0.80);
}
.pet-current-btn, .pet-shop-card .pet-current-btn:disabled {
  background: linear-gradient(180deg, rgba(255, 226, 160, 0.92), rgba(255, 186, 96, 0.82)) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  color: #6B3A00 !important;
  font-weight: 800;
  opacity: 1;
}
@media (max-width: 980px) { .pet-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pet-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } }

.care-not-owned-hint {
  margin: 0.35rem 0 0.7rem;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 214, 150, 0.9);
  background: linear-gradient(158deg, rgba(255, 244, 224, 0.85), rgba(255, 228, 186, 0.55));
  color: #5A3A10;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
/* 文案单独占一行，按钮落到下一行靠右。
   挤在一行时按钮会跟着长句一起换行，看起来像句子被按钮截断了。
   hint-text 必须用 div/block：用 span 的话 flex:1 1 100% 只算出宽 100%，
   高度仍是零，按钮会直接压到文字上（实测重叠）。 */
.care-not-owned-hint .hint-text { flex: 1 1 100%; display: block; line-height: 1.5; }
.care-not-owned-hint .btn { margin-left: auto; }
/* 手机端文案会折成两行，按钮再靠右就跟第二行挤在一起，
   这里改成占满一行居中，当"整条卡片可点"用。 */
@media (max-width: 720px) {
  .care-not-owned-hint .btn { margin-left: 0; width: 100%; justify-content: center; }
}
/* 小号主按钮在玻璃主题里字号只有 .78rem，跟着 vivd 的 .32em 间距和 1.7em 行高，
   图标和文字会糊成一团。这里把间距拉开、行高收紧。 */
.care-not-owned-hint .btn .ico { margin-right: 0.18em; vertical-align: -0.1em; }
.care-not-owned-hint .btn { line-height: 1.25; }
.care-not-owned-hint.hidden { display: none; }
.species-cur-tag {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #6B3A00;
}
.species-item {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--gl-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.species-item:hover {
  background: rgba(255, 255, 255, 0.50);
  box-shadow: 0 10px 24px rgba(48, 24, 92, 0.20), inset 0 1px 0 #fff;
}
.species-item:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 7px rgba(48, 24, 92, 0.16); }
.species-item.on {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, rgba(255, 200, 230, 0.72), rgba(255, 170, 214, 0.52));
  box-shadow: 0 8px 22px rgba(220, 80, 160, 0.28), 0 0 0 3px rgba(255, 255, 255, 0.34), inset 0 1.5px 0 #fff;
}

/* ==================== 弹窗：最厚的一片玻璃 ==================== */
dialog, .modal {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--gl-shadow-lg), inset 0 1.5px 0 #fff;
}
dialog::backdrop {
  background: rgba(40, 20, 80, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==================== 登录页 ==================== */
.login-card {
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.40));
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 26px 70px rgba(48, 24, 92, 0.30), inset 0 2px 0 #fff;
}
.login-card::before {
  height: 3px;
  /* 圆头：不然 3px 的彩虹条两端是直角，会戳出卡片的 34px 圆角 */
  border-radius: 3px;
  opacity: .55;
}
.login-card .btn.primary {
  background: linear-gradient(180deg, rgba(255, 212, 140, 0.92), rgba(255, 158, 66, 0.82));
  color: #4A2200;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(255, 140, 40, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}
/* 标题的粉色立体影在玻璃上会显脏，压成极淡的一层 */
.login-wrap h1, .login-card h1, .login-card h2,
.brand, .tab-page h2 {
  text-shadow:
    1px 0 0 rgba(255,255,255,.9), -1px 0 0 rgba(255,255,255,.9),
    0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(255,255,255,.9),
    0 3px 10px rgba(48, 24, 92, 0.22);
}

/* 页内小标题前的彩色小方块：去掉描边，只留一块半透明色 */
.tab-page h3::before {
  border: none;
  box-shadow: 0 2px 6px rgba(48, 24, 92, 0.18);
}

/* 濒危警示条 */
.egg-alert {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 160, 176, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(220, 70, 100, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 等级徽章 */
.lv-badge {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.52);
  color: #4A2A8A;
  box-shadow: 0 3px 8px rgba(48, 24, 92, 0.16), inset 0 1px 0 #fff;
}

/* 提示条 */
.toast {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(48, 24, 92, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(48, 24, 92, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ==================== 手机端：降 blur，保帧率 ==================== */
@media (max-width: 640px) {
  :root {
    --gl-blur: blur(8px) saturate(170%);
    --gl-blur-lg: blur(14px) saturate(170%);
  }
  /* 手机上卡片太多，backdrop-filter 叠起来会掉到 30 帧。
     页面底色本身已经是渐变，卡片改成纯半透明白、不做模糊，视觉几乎看不出差别。 */
  .pet-card, .card, .kpi, .chart-card, .manage-card, .deco-card,
  .record-bar, .pending-card, .eval-bar, .duty-card, .shop-preview {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34));
  }
  .tab { backdrop-filter: none; -webkit-backdrop-filter: none; }
  input, select, textarea, .score-input, .mini-input { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar { box-shadow: 0 4px 16px rgba(48, 24, 92, 0.14), inset 0 1px 0 var(--gl-edge); }
}

/* ==================== 装扮试穿间 ==================== */
/* 半透明玻璃遮罩 + 可滚动面板。九张实时 3D 缩略图放一起，是为了让老师一眼
   看出"这九件到底长什么样"，不靠想象，也不用真的花积分一件件买。 */
.studio {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(42, 27, 78, 0.28);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.studio.hidden { display: none; }

.studio-panel {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 1.1rem 1.2rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86));
  box-shadow: 0 26px 64px rgba(48, 24, 92, 0.28), inset 0 1px 0 #fff;
}

.studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.studio-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.22rem;
  color: #2A1B4E;
}
.studio-head p { margin: 0; font-size: 0.84rem; line-height: 1.5; }

.studio-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.9rem;
  border-radius: 16px;
  background: rgba(246, 240, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.studio-label { font-size: 0.84rem; color: #6B5A8C; font-weight: 700; }
.studio-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.studio-chip {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.66);
  color: #4A3A78;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.studio-chip:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }
.studio-chip.on {
  background: linear-gradient(180deg, #FFD86B, #FFB02E);
  color: #4A2A00;
  box-shadow: 0 3px 0 rgba(210, 130, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.studio-audit { font-size: 0.8rem; margin-left: auto; }
.studio-audit.ok { color: #17864A; font-weight: 700; }
.studio-audit.bad { color: #C1283F; font-weight: 700; }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (max-width: 860px) {
  .studio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.studio-card {
  border-radius: 18px;
  padding: 0.55rem 0.55rem 0.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(48, 24, 92, 0.08), inset 0 1px 0 #fff;
  text-align: center;
}
.studio-card canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, #F3EEFF 62%, #E8E0FA 100%);
  display: block;
}
.studio-name {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #2A1B4E;
}
.studio-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.18rem;
  font-size: 0.73rem;
  color: #6B5A8C;
}
.studio-meta .sep { color: rgba(107, 90, 140, 0.42); }
.studio-slot-tag {
  padding: 0.06rem 0.42rem;
  border-radius: 999px;
  background: rgba(120, 96, 200, 0.14);
  color: #4B3A86;
  font-weight: 700;
}
.studio-own { color: #17864A; font-weight: 700; }
.studio-own.no { color: #9A8CB5; font-weight: 600; }
.studio-check {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9A8CB5;
}
.studio-check.ok { color: #17864A; }
.studio-check.bad { color: #C1283F; }

.studio-foot {
  margin: 0.8rem 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .studio { padding: 0.6rem; align-items: flex-end; }
  .studio-panel { max-height: 94vh; padding: 0.9rem 0.8rem; border-radius: 20px; }
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .studio-audit { margin-left: 0; width: 100%; }
}
