/* 学生端样式 · 统一页面框架。六个主页签（首页、音标、游乐园、背单词、句子、勋章）共用同一外框：
   顶栏常驻、内容区同宽居中、标题固定在同一高度且一律顶部对齐，切换页签时版式不跳动。
   本文件在所有学生端样式之后加载；练习中的子页面（学习卡、消消乐等）仍为全屏专注模式。 */
:root{
  --bar-h:60px;
  --shell-max:1080px;
  --shell-x:max(28px, calc((100% - var(--shell-max)) / 2));
  --shell-top:calc(var(--bar-h) + 30px);
}

/* ---------- 顶栏：透明叠在背景上，不做底色条；向下滚动时淡出 ---------- */
body.tabpage .topbar{opacity:1;transform:none;pointer-events:auto;height:var(--bar-h);
  padding:0 var(--shell-x);background:none;border:0;box-shadow:none;
  transition:opacity .25s ease, transform .25s ease}
body.tabpage.scrolled .topbar{opacity:0;transform:translateY(-12px);pointer-events:none}
body.tabpage .brand b{color:#3b2a1a;font-size:18px;text-shadow:0 1px 0 rgba(255,255,255,.6)}
body.tabpage .brand i{color:#b98a2c}
body.tabpage .hud{color:#6b5a42}
body.tabpage .hud .star b{color:#b07a1c}
body.tabpage .themeBtn{width:34px;height:34px;color:#6b5a42;background:none;border:0;box-shadow:none}
body.tabpage .helpBtn{width:auto}
body.dark.tabpage .brand b{color:#eef5ff;text-shadow:0 1px 2px rgba(0,0,0,.4)}
body.dark.tabpage .hud,body.dark.tabpage .themeBtn{color:#cfe0f2}
body.dark.tabpage .themeBtn{background:none;border:0}
body.dark.tabpage .hud .star b{color:#f0c97f}

/* ---------- 页面外框：背景画在滚动容器上（不随内容滚动），各页同内边距、顶部对齐 ---------- */
body.tabpage .panel.imm{-webkit-backdrop-filter:none;backdrop-filter:none;
  background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #dcecf6}
body.dark.tabpage .panel.imm{background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #0e1727}
body.tabpage .panel.imm #p-home,body.tabpage .panel.imm #p-ipa,body.tabpage .panel.imm #p-play,
body.tabpage .panel.imm #p-words,body.tabpage .panel.imm #p-sent,body.tabpage .panel.imm #p-medal,
body.tabpage .panel.imm #p-detail{
  position:relative;display:block;margin:0;border:0;border-radius:0;min-height:100%;height:auto !important;
  padding:var(--shell-top) var(--shell-x) 124px;background:none}
body.tabpage .panel.imm #p-home::before,body.tabpage .panel.imm #p-ipa::before,body.tabpage .panel.imm #p-play::before,
body.tabpage .panel.imm #p-words::before,body.tabpage .panel.imm #p-sent::before,body.tabpage .panel.imm #p-medal::before{content:none}
body.tabpage .panel.imm .pg>*{position:relative;z-index:1}
body.tabpage .panel.imm #p-home[hidden],body.tabpage .panel.imm #p-ipa[hidden],body.tabpage .panel.imm #p-play[hidden],
body.tabpage .panel.imm #p-words[hidden],body.tabpage .panel.imm #p-sent[hidden],body.tabpage .panel.imm #p-medal[hidden],
body.tabpage .panel.imm #p-detail[hidden]{display:none}
/* 旧卡片设计的底部渐隐条，在全屏背景上会成为一块深色色块 */
body.imm .edge{display:none}

/* ---------- 底栏：悬停只做轻微提亮，深浅主题都保持文字清晰 ---------- */
.dock button:not(.on):hover{background:rgba(240,199,107,.18)}
body.dark .dock button:not(.on):hover{background:rgba(255,255,255,.08);color:#eef5ff}

/* ---------- 首页：布布对齐内容区右侧，避开顶栏 ---------- */
body.tabpage #p-home .bubuhug{width:210px;right:calc(var(--shell-x) - 6px);top:calc(var(--shell-top) - 34px)}
/* 分类卡片留出布布的高度，布布完整待在标题区右侧 */
body.tabpage #p-home .planCards{margin-top:72px}
body.tabpage #p-home .homeDict{margin:30px 0 12px}
body.tabpage #p-home .cats{margin-top:0}
body.tabpage #p-home .bubutip{right:calc(var(--shell-x) + 196px);top:calc(var(--shell-top) + 4px)}
@media (max-width:1180px){
  body.tabpage #p-home .bubuhug{top:calc(var(--shell-top) - 16px)}
  body.tabpage #p-home .bubutip{right:calc(var(--shell-x) + 200px);top:calc(var(--shell-top) + 16px)}
}
@media (max-width:960px){ body.tabpage #p-home .planCards{margin-top:26px} }

/* ---------- 音标详情：明确的返回按钮，不被顶栏遮挡 ---------- */
#p-detail .detailTop{margin:0 0 14px}
#p-detail .dhead{padding-left:0}

/* 内容同宽：去掉各页自带的窄容器 */
body.tabpage .sentWrap{max-width:none}

/* 标题：同字号、同位置；装饰性英文小标题与虚线分隔在主页签里不显示 */
body.tabpage .pg>.eyebrow,body.tabpage .pg .pageHead .eyebrow,body.tabpage .pg>.rule{display:none}
body.tabpage .pg h1{margin-top:0}
body.tabpage .pg .pageHead{margin:0 0 22px}
body.tabpage #p-home>h1{margin-bottom:22px}

/* ---------- 我的：学习档案 ---------- */
#p-medal .pageHead{margin-bottom:20px}
#p-medal .medalPanel{padding:24px 28px 16px;margin-bottom:24px;border-radius:22px;
  background:linear-gradient(135deg,rgba(255,252,244,.9),rgba(249,239,220,.76));
  border:1px solid rgba(224,197,148,.5);
  box-shadow:0 10px 30px rgba(74,52,20,.09),inset 0 1px 0 rgba(255,255,255,.85);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
#p-medal .overview{display:grid;grid-template-columns:repeat(3,1fr);align-items:center}
#p-medal .ovItem{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px}
#p-medal .ovItem+.ovItem::before{content:"";position:absolute;left:0;top:12%;height:76%;width:1px;
  background:linear-gradient(180deg,transparent,rgba(214,186,136,.75),transparent)}
#p-medal .ovItem b{font-family:"Fredoka",sans-serif;font-weight:400;font-size:40px;line-height:1;color:#6b4a16}
#p-medal .ovStar b{color:#c58a1c}
#p-medal .ovItem span{font-size:12px;letter-spacing:.08em;color:#a3855a}
#p-medal .mineTools{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;
  margin:20px 0 0;padding:14px 0 0;border-top:1px dashed rgba(214,186,136,.55)}
#p-medal .mineTools .tool{flex:1 1 150px;justify-content:center;gap:8px}
#p-medal .mineTools .tool svg{width:16px;height:16px;flex:0 0 16px}
#p-medal .ghead{margin:0 0 12px}
#p-medal .badges+.ghead,#p-medal .parkColGrid+.ghead{margin-top:24px}
/* 游乐园收集册 */
#p-medal .parkColGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:0}
@media (max-width:980px){#p-medal .parkColGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){#p-medal .parkColGrid{grid-template-columns:1fr}}
#p-medal .parkColCard{display:flex;flex-direction:column;gap:6px;text-align:left;padding:12px 13px;border-radius:14px;
  background:rgba(255,253,248,.72);border:1px solid rgba(214,186,136,.45);cursor:pointer;
  transition:transform .14s,box-shadow .16s,border-color .16s}
#p-medal .parkColCard:hover{transform:translateY(-2px);border-color:rgba(197,138,28,.65);box-shadow:0 8px 18px rgba(74,52,20,.08)}
#p-medal .parkColCard.on{background:linear-gradient(135deg,rgba(255,252,240,.96),rgba(252,240,210,.86));border-color:rgba(197,138,28,.6)}
#p-medal .parkColHead{display:flex;align-items:center;gap:7px}
#p-medal .parkColIcon{font-size:19px;line-height:1}
#p-medal .parkColHead b{font-size:14px;color:#5b3d10}
#p-medal .parkColState{margin-left:auto;padding:2px 7px;border-radius:999px;background:#fef1c7;color:#9b6708;font-style:normal;font-size:11px;font-weight:700}
#p-medal .parkColStat{font-size:12px;line-height:1.45;color:#8a6c40}
#p-medal .parkColTags{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
#p-medal .parkColTags span{padding:2px 7px;border-radius:999px;background:rgba(197,138,28,.13);color:#755013;font-size:11px}
/* 6 枚勋章：宽屏一行 6 枚，中等宽度 3 枚，手机 2 枚，始终排满整行 */
#p-medal .badges{grid-template-columns:repeat(6,1fr);gap:10px;margin-top:0}
@media (max-width:1180px){#p-medal .badges{grid-template-columns:repeat(3,1fr)}}
#p-medal .badge{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:10px;
  align-items:center;text-align:left;padding:10px 12px;border-radius:14px}
#p-medal .badge .cir{grid-row:1 / 3;width:40px;height:40px;margin:0}
#p-medal .badge .cir svg{width:20px;height:20px}
#p-medal .badge b{margin:0;font-size:13.5px;line-height:1.3}
#p-medal .badge span{line-height:1.3}
#p-medal .weak{margin-top:0}
#p-medal .weak .w.empty{cursor:default}

/* ---------- 窄屏 ---------- */
@media (max-width:860px){
  :root{--bar-h:54px;--shell-x:18px;--shell-top:calc(var(--bar-h) + 22px)}
  body.tabpage .brand b{font-size:15px;letter-spacing:.06em}
  #p-medal .medalPanel{padding:18px 14px 12px}
  #p-medal .ovItem b{font-size:30px}
  #p-medal .ovItem span{font-size:11px}
}
@media (max-width:520px){
  body.tabpage .helpTxt{display:none}
  body.tabpage .pg h1{font-size:26px}
  #p-medal .badges{grid-template-columns:repeat(2,1fr)}
}

/* ---------- 课本 ---------- */
.bookEmpty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;max-width:520px;padding:22px 24px;
  border-radius:20px;background:rgba(255,255,255,.72);border:1px solid rgba(176,146,102,.3)}
.bookEmpty b{font-family:"ZCOOL",sans-serif;font-size:18px;font-weight:400;color:#3b2a1a}
.bookEmpty span{font-size:13.5px;line-height:1.7;color:#6b5a42}
.bookEmpty .sbtn{margin-top:4px}
body.dark .bookEmpty{background:rgba(20,32,50,.82);border-color:rgba(130,170,220,.3)}
body.dark .bookEmpty b{color:#eef5ff}
body.dark .bookEmpty span{color:#b7cbe0}
.bookCourses{display:grid;gap:10px}

/* ---------- 游乐园：发音 / 单词 / 句子 ---------- */
#p-play .playHead{margin:6px 0 12px}
#p-play .playHead:not(:first-child){margin-top:26px}
#p-play .playCards{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:0}
#p-play .pcard.hasTip{position:relative}
#p-play .pcard.hasTip::after{content:attr(data-tip);position:absolute;left:18px;right:18px;bottom:14px;
  padding:10px 14px;border-radius:12px;background:rgba(28,40,60,.96);color:#eaf2ff;
  font-family:"ZCOOL","PingFang SC",sans-serif;font-size:12.5px;line-height:1.6;letter-spacing:.03em;text-align:left;
  box-shadow:0 8px 22px rgba(0,0,0,.35);opacity:0;visibility:hidden;transform:translateY(5px);
  transition:opacity .16s,transform .16s,visibility .16s;pointer-events:none;z-index:12}
#p-play .pcard.hasTip:hover::after,#p-play .pcard.hasTip:focus-visible::after{opacity:1;visibility:visible;transform:translateY(0)}
.pcard.pc3{background:linear-gradient(135deg,#cfe6c8 0%,#eef6e8 100%)}
.pcard.pc4{background:linear-gradient(135deg,#f3dfb0 0%,#fbf1da 100%)}
/* 句型分级：三个分组头并排一行，展开体占整行，避免竖排占满屏高 */
.pgroups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.pgroup{display:contents}
.pgroupHead{grid-row:1;width:100%;display:flex;align-items:center;gap:10px;padding:11px 14px;text-align:left;cursor:pointer;
  border:1.5px solid rgba(255,255,255,.85);border-radius:18px;color:#3a3026;transition:transform .14s, box-shadow .14s}
.pgroupHead.pc1{background:linear-gradient(135deg,#f2c5bf 0%,#fae7de 100%)}
.pgroupHead.pc2{background:linear-gradient(135deg,#bcd9e7 0%,#e4f1f6 100%)}
.pgroupHead.pc4{background:linear-gradient(135deg,#f3dfb0 0%,#fbf1da 100%)}
.pgroupHead:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(60,100,140,.16)}
.pgIcon{width:26px;height:26px;flex:0 0 26px;color:rgba(58,48,38,.62)}
.pgText{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.pgText b{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:17px;font-weight:400}
.pgText small{font-size:12px;color:rgba(58,48,38,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgArrow{width:16px;height:16px;flex:0 0 16px;transition:transform .2s;color:rgba(58,48,38,.6)}
.pgroup.open .pgArrow{transform:rotate(180deg)}
.pgroupBody{grid-row:2;grid-column:1/-1;margin-top:0}
@media (max-width:700px){
  .pgroups{grid-template-columns:1fr}
  .pgroupHead,.pgroupBody{grid-row:auto;grid-column:auto}
  .pgroupBody{margin-top:10px}
}
body.dark .pgroupHead{border-color:rgba(130,170,220,.3);color:#eef5ff}
body.dark .pgroupHead.pc1{background:linear-gradient(165deg, rgba(130,68,94,.5), rgba(24,38,60,.95) 68%)}
body.dark .pgroupHead.pc2{background:linear-gradient(165deg, rgba(50,94,136,.54), rgba(24,38,60,.95) 68%)}
body.dark .pgroupHead.pc4{background:linear-gradient(165deg, rgba(120,92,48,.5), rgba(24,38,60,.95) 68%)}
body.dark .pgText small,body.dark .pgIcon,body.dark .pgArrow{color:rgba(220,232,246,.75)}

/* 听音闯关：游乐园的子页面，与消消乐同样的全屏底 */
.panel.imm #p-quiz{position:relative;margin:0;border:0;border-radius:0;min-height:100%;
  padding:54px max(28px, calc((100% - 1120px)/2)) 124px;
  background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #dcecf6}
body.dark .panel.imm #p-quiz{background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #0e1727}
.panel.imm #p-quiz[hidden]{display:none}
#p-quiz .sback,#p-pair .sback{margin-bottom:14px}

/* ---------- 首页：两张「查音标」卡 ---------- */
body.tabpage #p-home .cats{grid-template-columns:1fr 1fr}

/* themeBtn 用 display:grid，会盖掉 HTML hidden，安装入口默认隐藏需显式声明 */
.themeBtn[hidden]{display:none}

/* ---------- 查音标弹窗 ---------- */
body.sheetOpen{overflow:hidden}
.ipaSheet{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:28px;
  background:rgba(20,28,44,.42);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.ipaSheet[hidden]{display:none}
.ipaSheetCard{position:relative;width:min(980px,100%);max-height:calc(100vh - 56px);max-height:calc(100dvh - 56px);
  overflow-y:auto;overscroll-behavior:contain;padding:28px 30px 30px;border-radius:26px;
  background:linear-gradient(180deg, rgba(253,246,232,.99) 0%, rgba(249,240,224,.99) 100%);
  border:1px solid rgba(233,196,131,.55);box-shadow:0 30px 80px rgba(4,10,24,.45)}
body.dark .ipaSheetCard{background:linear-gradient(180deg,#1e2b44,#151f33);border-color:rgba(150,190,235,.35)}
.ipaSheetX{position:sticky;top:0;float:right;margin:-8px -8px 0 0;z-index:3;width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;border:1px solid rgba(176,146,102,.35);background:rgba(255,255,255,.9);color:#6b5a42}
.ipaSheetX svg{width:16px;height:16px}
body.dark .ipaSheetX{background:rgba(34,50,74,.95);border-color:rgba(130,170,220,.35);color:#cfe0f2}
.ipaSheet .ipaPage[hidden]{display:none}
.ipaSheet .pageHead{margin:0 0 14px}
.ipaSheet .pageHead h1{font-size:26px}
.ipaSheet .ipaSeg{margin-top:0}
.ipaSheet #p-detail .detailTop{margin:0 0 12px}
.ipaSheet #p-detail .dhead{padding-left:0}
@media (max-width:640px){
  .ipaSheet{align-items:flex-end;padding:0}
  .ipaSheet .vcard .ipa{font-size:30px;white-space:nowrap}
  .ipaSheetCard{width:100%;max-height:88vh;max-height:88dvh;border-radius:24px 24px 0 0;padding:20px 16px 28px}
}

/* 单词练习：音标逐个音可点，弹出这个音的卡片 */
.wordPracticeIpa .ipaTok{font:inherit;color:inherit;background:none;border:0;padding:0 1px;cursor:pointer;
  border-bottom:1.5px dotted rgba(185,138,44,.6);border-radius:2px}
.wordPracticeIpa .ipaTok:hover{background:rgba(240,199,107,.25)}
/* 课本页底部：已上架的分镜句子课程 */
#p-words .bookCourses{margin-top:22px}
#p-words .bookCourses .ghead{margin-bottom:10px}

/* ---------- 首页「今天学什么」：与游乐园同款紧凑卡片 ---------- */
#p-home .planCards{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
#p-home .pcard{display:grid;grid-template-columns:40px 1fr;column-gap:14px;align-items:center;padding:16px 18px;border-radius:20px;text-align:left}
#p-home .pcard .pcIcon{grid-row:1 / 4;width:30px;height:30px;margin:0;justify-self:center}
#p-home .pcard .pcTag,#p-home .pcard .pcName,#p-home .pcard .pcMeta{grid-column:2}
#p-home .pcard .pcName{font-size:18px;margin-top:2px;line-height:1.25}
#p-home .pcard .pcMeta{margin-top:4px;font-size:12.5px;line-height:1.5}
#p-home .pcard .pcGo{display:none}
#p-home .pcard:first-child{box-shadow:0 0 0 2px rgba(233,180,80,.65), 0 10px 24px rgba(120,90,40,.14)}

/* 句型练习：顶部显示句型和用法 */
.sentNote{align-self:stretch;margin:0 0 12px;padding:10px 14px;border-radius:14px;font-size:13px;line-height:1.6;text-align:left;
  background:rgba(240,199,107,.16);border:1px solid rgba(214,166,72,.35);color:#6b5228}
.sentNote b{font-family:"Fredoka","ZCOOL",sans-serif;font-weight:500;font-size:15px;margin-right:10px;color:#4a3410}
body.dark .sentNote{background:rgba(240,199,107,.1);border-color:rgba(240,199,107,.3);color:#e8d6ad}
body.dark .sentNote b{color:#f6e2b0}

/* ---------- 顶栏个人中心入口 + 右侧抽屉 ---------- */
body.tabpage .profileBtn{width:34px;height:34px}
.profileWrap{position:fixed;inset:0;z-index:60;visibility:hidden;pointer-events:none}
.profileWrap.on{visibility:visible;pointer-events:auto}
.profileMask{position:absolute;inset:0;background:rgba(20,26,38,.34);opacity:0;transition:opacity .22s ease}
.profileWrap.on .profileMask{opacity:1}
.profilePanel{position:absolute;top:0;right:0;bottom:0;width:min(340px,86vw);overflow-y:auto;
  background:rgba(253,249,240,.98);padding:26px 22px 30px;transform:translateX(100%);transition:transform .26s cubic-bezier(.22,.8,.3,1);
  box-shadow:-14px 0 40px rgba(30,24,14,.18)}
.profileWrap.on .profilePanel{transform:none}
.profileX{position:absolute;top:16px;right:16px;width:32px;height:32px;border:0;background:none;cursor:pointer;
  color:#8a7450;display:grid;place-items:center;border-radius:50%}
.profileX:hover{background:rgba(160,130,80,.14)}
.profileX svg{width:18px;height:18px}
.profileUser{display:flex;align-items:center;gap:14px;margin-top:8px;padding-right:34px}
.profileAvatar{width:56px;height:56px;flex:0 0 56px;border-radius:50%;overflow:hidden;display:grid;place-items:center;
  background:linear-gradient(150deg,#f3dfb0,#e9c98f);color:#8a6a30;cursor:pointer;transition:box-shadow .16s, transform .16s}
.profileAvatar:hover{box-shadow:0 0 0 3px rgba(176,146,102,.35);transform:scale(1.04)}
.profileAvatar:focus-visible{outline:2px solid #b09266;outline-offset:2px}
.profileAvatar svg{width:30px;height:30px}
.profileAvatar img{width:100%;height:100%;object-fit:cover}
.profileWho{display:flex;flex-direction:column;gap:4px;min-width:0}
.profileWho b{font-family:"ZCOOL",sans-serif;font-size:19px;font-weight:400;color:#3b2a1a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profileWho span{font-size:12.5px;color:#8a7450}
.profileTier{margin-top:16px;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5;
  background:rgba(240,199,107,.18);color:#6b5228}
.profileMenu{margin-top:22px;display:flex;flex-direction:column;gap:2px}
.profileMenu button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 8px;border:0;background:none;cursor:pointer;
  font-family:"ZCOOL","PingFang SC",sans-serif;font-size:15px;color:#4b3924;text-align:left;border-radius:10px}
.profileMenu button[hidden]{display:none}
.profileMenu button:hover{background:rgba(160,130,80,.12)}
.profileMenu .pi{width:22px;text-align:center;font-family:"Fredoka",sans-serif;font-size:17px;color:#b07a1c}
.profileMenu .pn{margin-left:auto;font-family:"Fredoka",sans-serif;font-size:19px;color:#bda982}
.profileFoot{margin-top:22px;padding-top:18px;border-top:1px solid rgba(176,146,102,.28);display:flex;flex-direction:column;gap:10px}
.profileFoot button{padding:11px 14px;border-radius:12px;cursor:pointer;font-family:"ZCOOL","PingFang SC",sans-serif;font-size:14px;border:1px solid transparent}
.profileTheme{background:rgba(160,130,80,.1);color:#6b5228}
.profileAuth{background:linear-gradient(180deg,#f7d489,#eebf60);color:#5a3d10}
.profileLogout{background:rgba(176,90,74,.1);color:#9a4c3c}
body.dark .profilePanel{background:rgba(24,36,56,.98);box-shadow:-14px 0 40px rgba(0,0,0,.4)}
body.dark .profileX{color:#b7cbe0}
body.dark .profileAvatar{background:linear-gradient(150deg,#3a4f6e,#2a3a54);color:#cfe0f2}
body.dark .profileWho b{color:#eef5ff}
body.dark .profileWho span,body.dark .profileMenu .pn{color:#9db4cc}
body.dark .profileTier{background:rgba(240,199,107,.1);color:#e8d6ad}
body.dark .profileMenu button{color:#dbe7f5}
body.dark .profileMenu button:hover{background:rgba(255,255,255,.08)}
body.dark .profileTheme{background:rgba(255,255,255,.08);color:#cfe0f2}

/* ---------- 游乐园 · 钓鱼背单词 ---------- */
.panel.imm #p-fish{position:relative;margin:0;border:0;border-radius:0;min-height:100%;
  padding:54px max(28px, calc((100% - 1120px)/2)) 124px;
  background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #dcecf6}
body.dark .panel.imm #p-fish{background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #0e1727}
.panel.imm #p-fish[hidden]{display:none}
#p-fish .sback{margin-bottom:14px}
.fishSetup{display:flex;flex-direction:column;gap:16px;max-width:880px;padding:22px 24px;border-radius:22px;
  background:rgba(255,255,255,.72);border:1px solid rgba(176,146,102,.28)}
body.dark .fishSetup{background:rgba(20,32,50,.82);border-color:rgba(130,170,220,.3)}
.fishRow{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:start}
.fishLabel{font-family:"ZCOOL",sans-serif;font-size:15px;color:#6b5a42;padding-top:9px}
body.dark .fishLabel{color:#b7cbe0}
.fishChips{display:flex;flex-wrap:wrap;gap:8px}
.fishChip{display:inline-flex;align-items:baseline;gap:6px;padding:7px 14px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(176,146,102,.35);background:rgba(255,255,255,.85);color:#4a3a26;font:inherit}
.fishChip b{font-family:"ZCOOL",sans-serif;font-weight:400;font-size:15px}
.fishChip small{font-size:12px;color:#8a7658}
.fishChip:hover{border-color:rgba(214,166,72,.7)}
.fishChip.on{background:linear-gradient(180deg,#f7d489,#eebe60);border-color:#d9a443;color:#4a3108}
.fishChip.on small{color:#6b4a12}
.fishChip.wide{flex-direction:column;align-items:flex-start;gap:2px;border-radius:16px;padding:9px 16px;min-width:150px}
body.dark .fishChip{background:rgba(34,50,74,.9);border-color:rgba(130,170,220,.35);color:#dbe8f6}
body.dark .fishChip small{color:#9fb6cf}
body.dark .fishChip.on{background:linear-gradient(180deg,#f7d489,#e6b453);color:#2a1f06}
body.dark .fishChip.on small{color:#5a4110}
.fishStats{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;color:#6b5a42;padding-left:60px}
.fishStats b{font-family:"Fredoka","ZCOOL",sans-serif;font-weight:500;font-size:16px;color:#3b2a1a;margin:0 2px}
body.dark .fishStats{color:#b7cbe0}
body.dark .fishStats b{color:#eef5ff}
.fishStart{align-self:flex-start;margin-left:60px}

.fishCard{position:relative;width:min(920px,100%);box-sizing:border-box;margin:14px auto 0;padding:18px;border-radius:24px;background:rgba(255,255,255,.78);
  border:1px solid rgba(176,146,102,.28);box-shadow:0 14px 34px rgba(80,60,30,.1)}
body.dark .fishCard{background:rgba(20,32,50,.86);border-color:rgba(130,170,220,.3)}
.fishPrompt{min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:4px 96px 12px}
.fishCn{font-family:"ZCOOL",sans-serif;font-size:30px;letter-spacing:.08em;color:#4a3a26}
body.dark .fishCn{color:#f1f6fc}
.fishTools{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.fishKeyTip{font-size:12px;color:#9a8566}
body.dark .fishKeyTip{color:#8fa6c0}
.fishSlots{display:flex;gap:6px}
.fishSlots.done .fishSlot{opacity:.25;transition:opacity .4s}
.fishSlot{width:34px;height:40px;border-bottom:3px solid rgba(176,146,102,.6);display:grid;place-items:center;
  font-family:"Fredoka",sans-serif;font-size:26px;color:#3b2a1a}
.fishSlot.filled{border-color:#e0a73f;animation:fishPop .3s ease-out}
body.dark .fishSlot{color:#f1f6fc;border-color:rgba(160,190,230,.5)}
.fishTyped{display:flex;align-items:center;min-width:160px;height:38px;padding:0 14px;border-radius:12px;justify-content:center;
  background:rgba(255,255,255,.7);border:1.5px dashed rgba(176,146,102,.5);font-family:"Fredoka",sans-serif;font-size:24px;color:#2f5f8a}
.fishTyped[hidden]{display:none}
.fishTyped i{width:2px;height:24px;margin-left:2px;background:#e0a73f;animation:fishCaret 1s step-end infinite}
@keyframes fishCaret{50%{opacity:0}}
body.dark .fishTyped{background:rgba(34,50,74,.8);border-color:rgba(160,190,230,.4);color:#9fd0ff}
.shake{animation:fishShake .35s ease-in-out}
.fishGot{display:flex;flex-direction:column;align-items:center;gap:2px;animation:fishPop .35s ease-out}
.fishGot b{font-family:"Fredoka",sans-serif;font-weight:500;font-size:34px;color:#2f5f8a}
.fishGot span{font-size:14px;color:#8a7658}
.fishGot em{font-style:normal;font-size:16px;color:#6b5a42}
.fishStar{font-style:normal;color:#e0a020;font-weight:600;margin-top:4px}
.fishAgain{font-style:normal;font-size:13px;color:#b0603a;margin-top:4px}
body.dark .fishGot b{color:#9fd0ff}
body.dark .fishGot em,body.dark .fishGot span{color:#c4d4e6}
@keyframes fishPop{0%{transform:scale(.85);opacity:.3}100%{transform:none;opacity:1}}

/* 渔获篮：卡片右上角，鱼跳进来时弹一下 */
.fishCatch{position:absolute;top:14px;right:16px;z-index:4;display:flex;flex-direction:column;align-items:center;gap:0;width:76px;
  padding:6px 4px 4px;border-radius:16px;background:rgba(255,248,232,.92);border:1px solid rgba(201,143,78,.4);box-shadow:0 6px 14px rgba(120,80,30,.12)}
.fishCatch svg{width:46px;height:38px}
.fishCatch span{font-family:"ZCOOL",sans-serif;font-size:12px;color:#8a5a2b}
.fishCatch b{position:absolute;top:-6px;right:-6px;min-width:24px;height:24px;padding:0 6px;border-radius:12px;display:grid;place-items:center;
  background:#ff8a5c;color:#fff;font-family:"Fredoka",sans-serif;font-size:14px;box-shadow:0 2px 6px rgba(200,80,40,.35)}
.fishCatch.bump{animation:fishBump .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes fishBump{0%{transform:scale(1)}40%{transform:scale(1.18) rotate(-4deg)}100%{transform:scale(1)}}
body.dark .fishCatch{background:rgba(52,44,34,.92);border-color:rgba(230,180,110,.4)}
body.dark .fishCatch span{color:#f0cf9c}

/* 鱼塘：水面光带、沙底、水草、气泡 */
.fishPond{position:relative;height:360px;border-radius:20px;overflow:hidden;
  background:radial-gradient(ellipse at 22% -10%,rgba(255,255,255,.55),transparent 45%),
    linear-gradient(100deg,transparent 30%,rgba(255,255,255,.12) 38%,transparent 46%,transparent 60%,rgba(255,255,255,.1) 66%,transparent 72%),
    linear-gradient(180deg,#aee3f6 0%,#74c3e7 42%,#3f95ca 100%);
  box-shadow:inset 0 6px 18px rgba(255,255,255,.35),inset 0 -10px 24px rgba(10,60,100,.25)}
.fishPond.letters{height:390px}
.fishPond::before,.fishPond::after{content:"";position:absolute;left:-10%;right:-10%;height:18px;top:6px;opacity:.35;z-index:1;pointer-events:none;
  background:repeating-radial-gradient(circle at 30px 0,transparent 0 14px,rgba(255,255,255,.9) 15px 16px,transparent 17px 30px);
  animation:fishWave 7s linear infinite}
.fishPond::after{top:22px;opacity:.2;animation-duration:11s;animation-direction:reverse}
@keyframes fishWave{to{transform:translateX(60px)}}
body.dark .fishPond{background:radial-gradient(ellipse at 22% -10%,rgba(150,190,240,.25),transparent 45%),
  linear-gradient(180deg,#22547c 0%,#173a5c 50%,#0d2440 100%)}
.pondSand{position:absolute;left:0;right:0;bottom:0;height:30px;z-index:0;
  background:radial-gradient(ellipse at 20% 0,rgba(255,255,255,.35),transparent 60%),linear-gradient(180deg,#e9d29a,#d2b073);
  border-radius:50% 50% 0 0 / 14px 14px 0 0}
body.dark .pondSand{background:linear-gradient(180deg,#5d5238,#3f3826)}
.pondWeed{position:absolute;bottom:14px;width:20px;z-index:0;transform-origin:bottom center;animation:pondSway 4s ease-in-out infinite alternate}
@keyframes pondSway{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}
.pondBubble{position:absolute;bottom:20px;width:9px;height:9px;border-radius:50%;z-index:0;
  border:1.5px solid rgba(255,255,255,.7);background:rgba(255,255,255,.18);animation:pondBubble 8s ease-in infinite}
@keyframes pondBubble{0%{transform:translate(0,0) scale(.6);opacity:0}10%{opacity:.9}100%{transform:translate(12px,-330px) scale(1.2);opacity:0}}
.fishLine{position:absolute;top:0;width:2px;height:0;background:rgba(255,255,255,.95);box-shadow:0 0 4px rgba(0,0,0,.25);
  transition:height .18s ease-out;z-index:3;pointer-events:none}
.fishLine:not(.on){height:0 !important}

/* 鱼：泳道里来回游（外层），转身（中层），身体上下轻浮、尾巴摆动（SVG） */
.fish{position:absolute;display:block;padding:0;border:0;background:none;cursor:pointer;z-index:2;
  animation:fishSwim var(--d,7s) ease-in-out var(--delay,0s) infinite alternate;-webkit-tap-highlight-color:transparent;
  transition:opacity .2s}
.fishSwim{position:absolute;inset:0;display:block;animation:fishFace calc(var(--d,7s) * 2) step-end var(--delay,0s) infinite}
.fishBody{position:absolute;left:0;top:0;overflow:visible;filter:drop-shadow(0 5px 4px rgba(10,60,100,.25));animation:fishBob 2.4s ease-in-out infinite}
.fishTail{transform-box:fill-box;transform-origin:right center;animation:fishWag .5s ease-in-out infinite alternate}
@keyframes fishBob{50%{transform:translateY(-3px)}}
@keyframes fishWag{from{transform:rotate(-12deg)}to{transform:rotate(12deg)}}
.fishTag{position:absolute;top:50%;margin-top:-.72em;height:1.44em;line-height:1.44em;border-radius:999px;text-align:center;white-space:nowrap;
  background:rgba(255,255,255,.93);color:#2b2b3a;font-family:"Fredoka","ZCOOL",sans-serif;font-weight:500;
  box-shadow:0 2px 6px rgba(0,0,0,.12);animation:fishFace calc(var(--d,7s) * 2) step-end var(--delay,0s) infinite}
.fish:hover .fishTag,.fish:focus-visible .fishTag,.fish.match .fishTag{box-shadow:0 0 0 3px #ffd166,0 2px 6px rgba(0,0,0,.12)}
.fish.dim{opacity:.45}
@keyframes fishSwim{from{transform:translateX(0)}to{transform:translateX(var(--dx,80px))}}
@keyframes fishFace{0%{transform:scaleX(1)}50%{transform:scaleX(-1)}}
.fish.caught{animation-play-state:paused}
.fish.shake .fishBody{animation:fishShake .35s ease-in-out}
.fish.leaving .fishTag{background:#ffe1d6;color:#a4401c}
@keyframes fishShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.fish.flee{opacity:0;transition:opacity .45s ease-in;pointer-events:none}
.fish.flee .fishBody{animation:fishDive .5s ease-in forwards}
@keyframes fishDive{to{transform:translate(40px,46px) rotate(28deg) scale(.7)}}
.fish.glow .fishTag{animation:fishGlow 1.2s ease-in-out 2}
@keyframes fishGlow{50%{box-shadow:0 0 0 6px rgba(255,209,102,.9),0 0 18px rgba(255,209,102,.9)}}
/* 跃出水面的那条鱼：脱离鱼塘，在卡片上空沿弧线飞行 */
.fishFlyer{position:absolute;z-index:6;pointer-events:none;filter:drop-shadow(0 10px 10px rgba(30,60,90,.3))}
.fishFlyer .fishSwim,.fishFlyer .fishTag,.fishFlyer .fishBody{animation:none}
.fishFlyer .fishTail{animation:fishWag .12s ease-in-out infinite alternate}
.fishSplash{position:absolute;z-index:3;width:0;height:0;pointer-events:none}
.fishSplash b{position:absolute;left:-30px;top:-10px;width:60px;height:20px;border-radius:50%;border:2px solid rgba(255,255,255,.9);
  animation:fishRing .7s ease-out forwards}
.fishSplash i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50% 50% 50% 0;background:rgba(255,255,255,.95);
  animation:fishDrop .7s cubic-bezier(.2,.7,.4,1) forwards}
@keyframes fishRing{from{transform:scale(.3);opacity:1}to{transform:scale(1.8);opacity:0}}
@keyframes fishDrop{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--x),calc(var(--y) + 30px)) scale(.4);opacity:0}}

.fishDone{padding:22px 24px}
.fishDoneHead{display:flex;flex-direction:column;gap:4px;margin-bottom:14px}
.fishDoneHead b{font-family:"ZCOOL",sans-serif;font-weight:400;font-size:26px;color:#3b2a1a}
.fishDoneHead span{font-size:14px;color:#6b5a42}
body.dark .fishDoneHead b{color:#f1f6fc}
body.dark .fishDoneHead span{color:#b7cbe0}
.fishBucket{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.fishBucket li{display:grid;grid-template-columns:32px auto 1fr auto;align-items:center;gap:8px;padding:8px 12px;border-radius:14px;
  background:rgba(154,217,142,.18);border:1px solid rgba(120,180,110,.3)}
.fishBucket li.miss{background:rgba(255,159,107,.14);border-color:rgba(220,140,90,.35)}
.fishBucket b{font-family:"Fredoka",sans-serif;font-weight:500;font-size:18px;color:#2f4a2a}
.fishBucket li.miss b{color:#7a3e1c}
.fishBucket span{font-size:13px;color:#6b5a42;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fishBucket em{font-style:normal;font-size:12px;color:#8a7658}
.fishSpk{width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.8);display:grid;place-items:center;cursor:pointer}
.fishSpk svg{width:16px;height:16px}
body.dark .fishBucket b{color:#cfeec6}
body.dark .fishBucket li.miss b{color:#ffc9a8}
body.dark .fishBucket span,body.dark .fishBucket em{color:#b7cbe0}
@media (max-width:640px){
  .panel.imm #p-fish{padding:40px 14px 120px}
  .fishSetup{padding:16px}
  .fishRow{grid-template-columns:1fr;gap:6px}
  .fishLabel{padding-top:0}
  .fishStats,.fishStart{padding-left:0;margin-left:0}
  .fishCard{padding:12px}
  .fishCn{font-size:24px}
  .fishPond{height:320px}
  .fishPond.letters{height:360px}
  .fishPrompt{padding:4px 70px 10px}
  .fishCatch{width:62px;right:10px;top:10px}
  .fishCatch svg{width:36px;height:30px}
  .fishSlot{width:26px;height:34px;font-size:22px}
}

/* ---------- 游乐园 · 打地鼠 ---------- */
/* 页面外框见 app/game/game-shell.css（#p-game） */
.moleCard{max-width:760px;width:100%}
.moleEar{display:flex;align-items:center;gap:10px;padding:10px 22px 10px 14px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(214,166,72,.5);background:linear-gradient(180deg,#fff6df,#ffe9b8);color:#7a5413;
  font-family:"ZCOOL",sans-serif;font-size:18px;box-shadow:0 6px 14px rgba(160,110,30,.15)}
.moleEar svg{width:30px;height:30px;flex:none}
.moleEar span{white-space:nowrap}
.moleEar:active{transform:scale(.97)}
body.dark .moleEar{background:linear-gradient(180deg,#3a3322,#2c2618);color:#f3d48c;border-color:rgba(240,199,107,.4)}
.moleCombo{position:absolute;top:18px;left:20px;z-index:4;font-family:"ZCOOL",sans-serif;font-size:22px;color:#ff7a45;
  text-shadow:0 2px 0 #fff,0 0 10px rgba(255,180,80,.6)}
.moleCombo.pop{animation:moleComboPop .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes moleComboPop{0%{transform:scale(.5);opacity:0}100%{transform:none;opacity:1}}

/* 草地与九个洞 */
.moleField{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 10px;padding:14px 16px 10px;border-radius:22px;
  background:radial-gradient(ellipse at 30% 0,rgba(255,255,255,.35),transparent 50%),
    radial-gradient(circle at 12% 70%,rgba(255,255,255,.12) 0 3px,transparent 4px) 0 0 / 46px 46px,
    linear-gradient(180deg,#a9dc7c 0%,#7cc25a 60%,#5fa847 100%);
  box-shadow:inset 0 -8px 18px rgba(40,90,30,.25),inset 0 6px 14px rgba(255,255,255,.3)}
body.dark .moleField{background:radial-gradient(ellipse at 30% 0,rgba(140,190,255,.12),transparent 50%),
  linear-gradient(180deg,#3f6b3c 0%,#2f5530 60%,#243f25 100%)}
.moleHole{position:relative;height:150px;user-select:none;-webkit-user-select:none}
.moleKey{position:absolute;left:6px;bottom:6px;z-index:5;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  font-family:"Fredoka",sans-serif;font-size:12px;color:#3f6b2c;background:rgba(255,255,255,.7)}
.moleDirt.back{position:absolute;left:12%;right:12%;bottom:16px;height:34px;border-radius:50%;z-index:0;
  background:radial-gradient(ellipse at 50% 35%,#2a1a10 0%,#3b2618 55%,#6b4a2e 100%)}
.moleDirt.front{position:absolute;left:8%;right:8%;bottom:6px;height:28px;z-index:3;pointer-events:none;
  border-radius:0 0 50% 50% / 0 0 100% 100%;
  background:linear-gradient(180deg,#9b6c43,#7a5233);clip-path:inset(46% 0 0 0)}
/* 地鼠藏在洞口下方：坑的下沿对齐洞口中线，超出的部分被裁掉 */
.molePit{position:absolute;left:0;right:0;top:-40px;bottom:33px;overflow:hidden;z-index:2;pointer-events:none}
.mole{position:absolute;left:50%;bottom:-6px;width:96px;height:132px;margin-left:-48px;padding:0;border:0;background:none;cursor:pointer;
  pointer-events:auto;transform:translateY(105%);transition:transform .24s cubic-bezier(.3,1.4,.6,1);-webkit-tap-highlight-color:transparent}
.mole.up{transform:translateY(0)}
.mole:not(.up){pointer-events:none;transition:transform .2s ease-in}
.moleBody{position:absolute;left:4px;bottom:0;width:88px;height:88px;transform-origin:50% 100%}
.moleX{display:none}
.moleSign{position:absolute;left:50%;top:0;transform:translateX(-50%);min-width:64px;padding:4px 10px;border-radius:8px;white-space:nowrap;
  background:linear-gradient(180deg,#fff6e2,#f3dfb6);border:2px solid #c99a5b;color:#3b2a1a;
  font-family:"Fredoka",sans-serif;font-weight:500;font-size:18px;line-height:1.2;box-shadow:0 3px 0 #b5864a}
.moleSign::after{content:"";position:absolute;left:50%;bottom:-12px;width:4px;height:10px;margin-left:-2px;background:#a8743c}
.mole:hover .moleSign{border-color:#e0a73f}
.moleStars{position:absolute;left:50%;top:40px;width:70px;height:20px;margin-left:-35px;display:none;pointer-events:none}
.moleStars i{position:absolute;left:50%;top:0;font-style:normal;font-size:14px;color:#ffd23f;text-shadow:0 0 4px rgba(0,0,0,.25)}
.mole.dizzy .moleStars{display:block;animation:moleSpin .8s linear infinite}
.mole.dizzy .moleStars i:nth-child(1){transform:translate(-30px,0)}
.mole.dizzy .moleStars i:nth-child(2){transform:translate(14px,-6px)}
.mole.dizzy .moleStars i:nth-child(3){transform:translate(-6px,6px)}
@keyframes moleSpin{to{transform:rotate(360deg)}}
.mole.dizzy .moleBody{animation:moleWobble .35s ease-in-out 2}
.mole.dizzy .moleSign{background:#ffe1d6;border-color:#e07a5a;color:#a4401c}
@keyframes moleWobble{25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}
.mole.hit .moleBody{animation:moleSquash .3s ease-out forwards}
.mole.hit .moleEyes{display:none}
.mole.hit .moleX{display:inline}
.mole.hit .moleSign{background:linear-gradient(180deg,#e6ffd9,#c7f0b0);border-color:#6fbf4f;color:#2f5a1c;box-shadow:0 3px 0 #5c9e40}
@keyframes moleSquash{0%{transform:scale(1,1)}40%{transform:scale(1.18,.62)}100%{transform:scale(1.08,.78)}}
.mole.reveal .moleSign,.mole.glow .moleSign{animation:moleGlow 1s ease-in-out 3}
@keyframes moleGlow{50%{box-shadow:0 3px 0 #b5864a,0 0 0 6px rgba(255,209,102,.9),0 0 18px rgba(255,209,102,.9)}}
.moleHammer{position:absolute;z-index:6;width:64px;height:64px;margin:-40px 0 0 -10px;pointer-events:none;transform-origin:50% 95%;
  animation:moleSwing .4s cubic-bezier(.5,0,.6,1) forwards}
.moleHammer svg{width:100%;height:100%;filter:drop-shadow(0 4px 4px rgba(0,0,0,.25))}
@keyframes moleSwing{0%{transform:rotate(55deg);opacity:0}25%{opacity:1}55%{transform:rotate(-38deg)}70%{transform:rotate(-30deg)}100%{transform:rotate(-34deg);opacity:0}}
@media (max-width:640px){
  .moleEar{font-size:16px;padding:8px 18px 8px 12px}
  .moleField{gap:2px 4px;padding:10px 6px 6px}
  .moleField{gap:10px 4px}
  .moleHole{height:132px}
  .mole{width:78px;height:98px;margin-left:-39px}
  .moleBody{width:72px;height:72px;left:3px}
  .moleSign{font-size:14px;min-width:50px;padding:2px 6px}
  .moleSign::after{bottom:-8px;height:6px}
  .molePit{top:-12px;bottom:30px}
  .moleDirt.back{bottom:14px;height:28px}
}

/* ---------- 游乐园 · 情景背单词（scenes.js） ---------- */
.panel.imm #p-scene{position:relative;margin:0;border:0;border-radius:0;min-height:100%;
  padding:54px max(28px, calc((100% - 1120px)/2)) 124px;
  background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #dcecf6}
body.dark .panel.imm #p-scene{background:var(--page-wash), var(--page-bg) center top / cover no-repeat, #0e1727}
.panel.imm #p-scene[hidden]{display:none}
#p-scene .sback{margin-bottom:14px}
.scPic{display:inline-grid;place-items:center;line-height:1}
.scPic.svg svg,.scPic.img img{width:1em;height:1em;display:block}
.scWords{display:flex;flex-wrap:wrap;gap:8px}
.scWordChip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 6px;border-radius:999px;cursor:pointer;font:inherit;
  border:1px solid rgba(176,146,102,.3);background:rgba(255,255,255,.85);color:#4a3a26}
.scWordChip .scPic{font-size:24px}
.scWordChip b{font-family:"Fredoka",sans-serif;font-weight:500;font-size:15px}
.scWordChip small{font-size:12px;color:#8a7658}
body.dark .scWordChip{background:rgba(34,50,74,.9);border-color:rgba(130,170,220,.35);color:#dbe8f6}
body.dark .scWordChip small{color:#9fb6cf}

.scCard{max-width:940px;display:flex;flex-direction:column;gap:14px;overflow:hidden}
.scBg-shop{background:linear-gradient(180deg,rgba(255,244,214,.92),rgba(255,255,255,.86) 55%)}
.scBg-zoo{background:linear-gradient(180deg,rgba(219,244,210,.92),rgba(255,255,255,.86) 60%)}
.scBg-room{background:linear-gradient(180deg,rgba(229,235,255,.92),rgba(255,255,255,.86) 60%)}
body.dark .scCard{background:linear-gradient(180deg,rgba(30,46,70,.92),rgba(20,32,50,.9))}
.scTalk{position:relative;display:flex;align-items:flex-start;gap:14px;min-height:92px;padding-right:120px}
.scWho{display:flex;flex-direction:column;align-items:center;gap:2px;flex:none;width:74px}
.scFace{display:grid;place-items:center;width:66px;height:66px;border-radius:50%;font-size:42px;line-height:1;
  background:#fff;border:2px solid rgba(214,166,72,.5);box-shadow:0 4px 10px rgba(80,60,30,.12)}
.scWho small{font-family:"Fredoka",sans-serif;font-size:13px;color:#6b5a42}
.scWho.happy .scFace{animation:scHappy .6s ease-out}
.scBubble{position:relative;flex:1;display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:18px;margin-top:6px;
  background:#fff;border:1px solid rgba(176,146,102,.3);box-shadow:0 6px 16px rgba(80,60,30,.08);animation:fishPop .3s ease-out}
.scBubble:before{content:"";position:absolute;left:-9px;top:20px;width:16px;height:16px;background:#fff;
  border-left:1px solid rgba(176,146,102,.3);border-bottom:1px solid rgba(176,146,102,.3);transform:rotate(45deg)}
.scEar{flex:none;width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;
  background:linear-gradient(180deg,#f7d489,#eebe60);color:#4a3108}
.scEar svg{width:22px;height:22px}
.scLine{display:flex;flex-direction:column;gap:2px;min-width:0}
.scLine b{font-family:"Fredoka",sans-serif;font-weight:500;font-size:24px;color:#2f4a6a;line-height:1.25}
.scLine b.hidden{font-family:"ZCOOL",sans-serif;font-weight:400;font-size:18px;color:#9a8566;letter-spacing:.1em}
.scLine span{font-size:14px;color:#6b5a42}
.scThanks{position:absolute;right:0;top:4px;display:flex;flex-direction:column;align-items:flex-end;gap:2px;max-width:150px;
  text-align:right;animation:fishPop .35s ease-out}
.scThanks b{font-family:"Fredoka",sans-serif;font-weight:500;font-size:20px;color:#3a8a4a}
.scThanks span{font-size:12px;color:#6b5a42}
body.dark .scFace{background:#22324a;border-color:rgba(130,170,220,.4)}
body.dark .scWho small,body.dark .scLine span,body.dark .scThanks span{color:#b7cbe0}
body.dark .scBubble,body.dark .scBubble:before{background:#22324a;border-color:rgba(130,170,220,.35)}
body.dark .scLine b{color:#cfe6ff}
body.dark .scThanks b{color:#9be3a8}

.scStage{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;min-height:150px}
.scKey{position:absolute;left:6px;top:5px;font:500 11px/1 "Fredoka",sans-serif;color:#9a8566;padding:2px 5px;border-radius:6px;
  background:rgba(255,255,255,.8);pointer-events:none}
.scPlace{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 6px;
  border-radius:20px;font:inherit;color:inherit}
.scPlaceName{font-family:"Fredoka",sans-serif;font-size:15px;color:#4a3a26;min-height:18px}
body.dark .scPlaceName{color:#dbe8f6}
.scPen{cursor:pointer;border:2px dashed rgba(120,160,90,.55);background:linear-gradient(180deg,rgba(255,255,255,.4),rgba(160,210,130,.35))}
.scPen .scPic{font-size:62px;transition:transform .15s}
.scPen:hover .scPic{transform:scale(1.06)}
.scPen.happy .scPic{animation:scHappy .7s ease-out}
body.dark .scPen{background:linear-gradient(180deg,rgba(40,60,50,.5),rgba(60,110,70,.4));border-color:rgba(140,200,150,.4)}
.scFurn{background:rgba(255,255,255,.35);border:1px solid rgba(150,160,200,.3)}
body.dark .scFurn{background:rgba(255,255,255,.05);border-color:rgba(130,170,220,.25)}
.scFurnBox{position:relative;width:100%;height:170px;display:grid;place-items:center}
.scFurnBox>.scPic{font-size:78px}
.scZone{position:absolute;left:6%;right:6%;display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:wrap;
  border:2px dashed rgba(120,130,190,.35);border-radius:14px;background:rgba(255,255,255,.18);cursor:pointer;font-size:26px;padding:0}
.scZone:hover{border-color:rgba(214,166,72,.85);background:rgba(255,230,160,.3)}
.scZone.z-on{top:0;height:30%}
.scZone.z-under{bottom:0;height:26%}
.scZone.z-in{top:40%;height:34%;left:24%;right:24%}
.scZone .scPic{animation:fishPop .35s ease-out}
.scZone.happy{animation:scHappy .6s ease-out}

.sc-give .scStage{grid-template-columns:1fr}
.scCounter{display:flex;flex-direction:column;gap:8px;padding:14px 16px 12px;border-radius:18px;
  background:linear-gradient(180deg,#e3b77a,#c99556);box-shadow:inset 0 -6px 0 rgba(0,0,0,.12)}
.scCounterTop{min-height:76px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.scCounterTop em{font-style:normal;font-size:14px;color:#5b3d17}
.scHeld{display:grid;place-items:center;width:66px;height:66px;border-radius:16px;background:rgba(255,255,255,.85);font-size:44px;animation:fishPop .3s ease-out}
.scCounterBar{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.scCountNum{margin-right:auto;font:500 22px/1 "Fredoka",sans-serif;color:#3b2a1a}
.scCounter.shake{animation:fishShake .35s}
body.dark .scCounter{background:linear-gradient(180deg,#8a6438,#6b4a26)}
body.dark .scCounterTop em,body.dark .scCountNum{color:#fbe8c8}
body.dark .scHeld{background:rgba(255,255,255,.12)}

.scTray{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:12px;border-radius:18px;background:rgba(176,146,102,.1)}
body.dark .scTray{background:rgba(255,255,255,.05)}
.scItem{position:relative;width:84px;height:84px;border-radius:20px;cursor:pointer;display:grid;place-items:center;font-size:50px;
  background:#fff;border:2px solid rgba(176,146,102,.3);box-shadow:0 4px 0 rgba(176,146,102,.3);transition:transform .12s,box-shadow .12s}
.scItem:hover{transform:translateY(-3px)}
.scItem.on{transform:translateY(-8px);border-color:#e0a83c;box-shadow:0 10px 0 rgba(224,168,60,.45)}
.scItem.shake,.scZone.shake,.scPen.shake,.scTile.shake{animation:fishShake .35s}
.scItem.glow,.scZone.glow,.scPen.glow{animation:fishGlow 1.1s ease-in-out 3}
body.dark .scItem{background:#22324a;border-color:rgba(130,170,220,.35);box-shadow:0 4px 0 rgba(0,0,0,.3)}
.scTools{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}
.scFlyer{position:absolute;z-index:5;width:56px;height:56px;display:grid;place-items:center;font-size:46px;pointer-events:none}
@keyframes scHappy{0%{transform:none}30%{transform:translateY(-12px) scale(1.12)}60%{transform:translateY(0) scale(.96)}100%{transform:none}}

.scSpell{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 0}
.scSpell p{margin:0;font-family:"ZCOOL",sans-serif;font-size:18px;color:#6b5a42}
.scSlots{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.scSlots .gap{width:18px}
.scSlot{width:44px;height:54px;display:grid;place-items:center;border-radius:12px;border:2px dashed rgba(176,146,102,.5);
  font:500 30px/1 "Fredoka",sans-serif;color:#2f4a6a;background:rgba(255,255,255,.6)}
.scSlot.on{border-style:solid;border-color:#e0a83c;background:#fff7e0;animation:fishPop .25s ease-out}
.scTile{width:52px;height:56px;border-radius:14px;cursor:pointer;font:500 28px/1 "Fredoka",sans-serif;color:#3b2a1a;
  background:linear-gradient(180deg,#fff,#f6ead2);border:2px solid rgba(176,146,102,.4);box-shadow:0 4px 0 rgba(176,146,102,.35)}
.scTile.used{visibility:hidden}
body.dark .scSpell p{color:#b7cbe0}
body.dark .scSlot{background:rgba(255,255,255,.06);color:#cfe6ff}
body.dark .scSlot.on{background:rgba(224,168,60,.2)}
body.dark .scTile{background:linear-gradient(180deg,#2b3f5c,#22324a);color:#eef5ff;border-color:rgba(130,170,220,.4)}

.scLogHead{display:flex;align-items:center;gap:12px;margin:4px 0 8px}
.scLogHead b{font-family:"ZCOOL",sans-serif;font-weight:400;font-size:18px;color:#3b2a1a}
body.dark .scLogHead b{color:#f1f6fc}
.scLog{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:6px;max-height:340px;overflow:auto}
.scLog li{display:flex;align-items:flex-start;gap:10px;padding:6px 10px;border-radius:14px;transition:background .2s}
.scLog li.on{background:rgba(255,209,102,.35)}
.scLogFace{font-size:26px;line-height:1.2}
.scLog li>div{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.scLog li b{font:500 12px "Fredoka",sans-serif;color:#9a8566}
.scLogEn{border:0;background:none;padding:0;cursor:pointer;text-align:left;font:500 17px "Fredoka",sans-serif;color:#2f4a6a}
.scLogEn:hover{text-decoration:underline}
.scLog li span{font-size:13px;color:#6b5a42}
body.dark .scLogEn{color:#cfe6ff}
body.dark .scLog li span{color:#b7cbe0}

@media (max-width:720px){
  .scTalk{padding-right:0;flex-wrap:wrap;min-height:0}
  .scThanks{position:static;align-items:flex-start;text-align:left;max-width:none;width:100%;padding-left:88px}
  .scLine b{font-size:17px}
  .scCard{gap:10px}
  .scWho{width:56px}
  .scFace{width:50px;height:50px;font-size:32px}
  .scBubble{padding:8px 12px;gap:8px}
  .scEar{width:34px;height:34px}
  .scThanks{padding-left:70px}
  .scStage{grid-template-columns:repeat(2,1fr);gap:8px;min-height:0}
  .scPlace{padding:6px 4px;border-radius:16px}
  .scPlaceName{font-size:13px;min-height:15px}
  .scFurnBox{height:108px}
  .scFurnBox>.scPic{font-size:48px}
  .scZone{font-size:20px;border-radius:10px}
  .scPen .scPic{font-size:44px}
  .scCounterTop{min-height:60px}
  .scHeld{width:52px;height:52px;font-size:34px}
  .scItem{width:66px;height:66px;font-size:40px;border-radius:16px}
  .scSlot{width:34px;height:44px;font-size:24px}
  .scTile{width:44px;height:48px;font-size:24px}
}
