/* =========================================================
   甜点电竞 · 12-03 客户优化：电脑端排版减负（配合 assets/od-layout.js，只在主页 html[data-od-layout="1203"] 生效）
   - 顶部导航：图标 + 文字的胶囊按钮，字更大、可点范围更大，当前页实心
   - 「最新活动」大标题缩小
   - 宽屏两侧栏（≥1480px）：
       左：唱片缩到约 2/3（高度由 od-performance.js 算）、按键音效；跟枪训练 / 小码头先隐藏；骰子挪到左下角（只在自己的卡片里滚）
       右：活动海报（正方形）+ 倒计时吊牌在上；今日开黑签 / 天气瓶、小人都缩小
       两侧栏收窄一点，中间内容不再挤
   - 倒计时牌子两行：截止时间 / 剩余天数 + 时分秒（只在主页；子页倒计时保持原样）
   ========================================================= */

/* ---------- 顶部导航：看得清、点得到 ---------- */
@media(min-width:1101px){
  html[data-od-layout="1203"] .desktop-nav{gap:8px}
  html[data-od-layout="1203"] .desktop-nav a{
    display:inline-flex;align-items:center;gap:7px;padding:9px 16px 9px 13px;border-radius:999px;
    font-size:15px;font-weight:600;letter-spacing:.5px;color:var(--ink);
    background:color-mix(in srgb,var(--paper) 72%,transparent);border:1px solid var(--od-hair,#0000001a);
    box-shadow:0 1px 0 color-mix(in srgb,#fff 60%,transparent) inset,0 4px 10px -8px color-mix(in srgb,var(--ink) 50%,transparent);
    transition:background .2s,color .2s,transform .2s var(--ease,ease),box-shadow .2s
  }
  html[data-od-layout="1203"] .desktop-nav a::after{display:none}
  html[data-od-layout="1203"] .desktop-nav a:hover{color:var(--coral);transform:translateY(-1px);box-shadow:0 1px 0 color-mix(in srgb,#fff 60%,transparent) inset,0 8px 16px -10px color-mix(in srgb,var(--ink) 55%,transparent)}
  html[data-od-layout="1203"] .desktop-nav a.active{background:var(--coral);border-color:transparent;color:#fff;box-shadow:0 8px 18px -10px var(--coral)}
  html[data-od-layout="1203"] .desktop-nav .odl-ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
}
@media(min-width:1101px) and (max-width:1320px){
  html[data-od-layout="1203"] .desktop-nav{gap:5px}
  html[data-od-layout="1203"] .desktop-nav a{font-size:14px;padding:8px 12px 8px 10px;gap:5px}
  html[data-od-layout="1203"] .desktop-nav .odl-ico{width:16px;height:16px}
}
html[data-od-weather=night][data-od-layout="1203"] .desktop-nav a:not(.active){background:color-mix(in srgb,var(--paper) 40%,transparent)}

/* ---------- 「最新活动」标题小一点 ---------- */
html[data-od-layout="1203"] #activities .testimonial-heading h2{font-size:clamp(26px,2.5vw,38px);letter-spacing:-1px}
html[data-od-layout="1203"] #activities .testimonial-heading .eyebrow{margin-bottom:10px}

/* ---------- 宽屏两侧栏 ---------- */
@media(min-width:1480px){
  html[data-od-layout="1203"]{--od-rail-l:clamp(272px,16vw,308px);--od-rail-r:clamp(272px,16vw,308px)}
  /* 跟枪训练、小码头先不显示（客户：等正式上线再说） */
  html[data-od-layout="1203"] .od-rail-left>.at-entry,
  html[data-od-layout="1203"] .od-rail-left>#od-pond-panel{display:none!important}
  /* 左栏：唱片 + 音效开关在上，骰子在最下面 */
  html[data-od-layout="1203"] .od-rail-left #od-dice-panel{order:20;margin-top:auto}
  html[data-od-layout="1203"] .od-rail-left #od-dice-panel.docked{
    --odd-h:176px;height:var(--odd-h);background:var(--od-glass-strong);border:1px solid var(--od-hair);border-radius:22px;box-shadow:var(--raised)
  }
  html[data-od-weather] .od-rail-left .od-dice-panel.docked{background:var(--od-glass-strong);border-color:var(--od-hair);box-shadow:var(--raised)}
  /* 唱片：缩小后放在卡片中间偏左，唱臂跟着 */
  html[data-od-layout="1203"] .od-rail-left .od-disc{top:14px;height:min(calc(100% - 70px),62cqw)}

  /* 右栏：开黑签 / 天气瓶、小人都缩小 */
  html[data-od-layout="1203"] .od-rail-right .od-mini-row{gap:8px}
  html[data-od-layout="1203"] .od-rail-right .od-mini{padding:7px 6px 7px;gap:2px}
  html[data-od-layout="1203"] .od-rail-right .od-mini .od-w-head{font-size:12px}
  html[data-od-layout="1203"] .od-rail-right .od-mini-hint{font-size:10.5px;min-height:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  html[data-od-layout="1203"] .od-rail-right .od-mini>:is(.ol-stage,.od-jar){zoom:.8}
  html[data-od-layout="1203"] .od-rail-right .od-buddy-panel{padding:9px 10px 9px}
  html[data-od-layout="1203"] .od-rail-right .od-buddy-head{padding:0 4px 6px}
  html[data-od-layout="1203"] .od-rail-right .od-buddy-head b{font-size:12px}
  html[data-od-layout="1203"] .od-rail-right .od-stage,
  html[data-od-layout="1203"].od-cd-has-poster .od-rail-right .od-stage{aspect-ratio:320/112}
  html[data-od-layout="1203"] .od-rail-right .od-buddy-foot{display:none}
}
@media(min-width:1480px) and (max-height:860px){
  html[data-od-layout="1203"] .od-rail-right .od-stage,
  html[data-od-layout="1203"].od-cd-has-poster .od-rail-right .od-stage{aspect-ratio:320/92}
}

/* ---------- 倒计时牌子：两行（第一行截止时间，第二行 剩余 N 天 + 时分秒） ---------- */
html[data-od-layout="1203"] .od-cd-sign{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px}
html[data-od-layout="1203"] .od-cd-sign .od-cd-copy{flex-direction:row;align-items:baseline;justify-content:space-between;gap:10px}
html[data-od-layout="1203"] .od-cd-sign .od-cd-title{font-size:12px;letter-spacing:1.5px;color:var(--muted)}
html[data-od-layout="1203"] .od-cd-sign .od-cd-note{font-size:12.5px;font-weight:700;color:var(--ink);overflow:visible}
html[data-od-layout="1203"] .od-cd-time{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-od-layout="1203"] .od-cd-sign .od-cd-left{font-size:11.5px;color:var(--muted);letter-spacing:1px;flex:none}
html[data-od-layout="1203"] .od-cd-sign .od-cd-days{display:inline-flex;align-items:baseline;gap:2px;font-size:13px;font-weight:700;color:var(--coral);margin-right:auto;white-space:nowrap}
html[data-od-layout="1203"] .od-cd-sign .od-cd-days b{font:800 24px/1 'Noto Sans SC','Microsoft YaHei',system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
html[data-od-layout="1203"] .od-cd-sign .od-cd-days[hidden]{display:none}
html[data-od-layout="1203"] .od-cd-sign.od-cd-done .od-cd-left{display:none}
html[data-od-weather=night][data-od-layout="1203"] .od-cd-sign .od-cd-days{text-shadow:0 0 10px color-mix(in srgb,var(--coral) 60%,transparent)}
html[data-od-layout="1203"] .od-cd-hang .od-cd-sign{padding:13px 13px 10px 14px}

/* =========================================================
   手机 / 平板（html.od-touch，assets/od-touch.js 加的）
   ========================================================= */
/* 点单本（手机）：换一项时旧页收起、新页展开（menu-book.js openNarrow） */
.mb-page.mb-unfold,.mb-ghost{overflow:hidden}
.mb-ghost{pointer-events:none}

/* ---------- 悬浮按钮：可拖动、吸边（assets/od-layout.js） ---------- */
html.od-touch .odl-fab{bottom:auto!important;right:auto!important;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html.od-touch .odl-fab.odl-anim{transition:left .34s cubic-bezier(.2,.8,.2,1),top .34s cubic-bezier(.2,.8,.2,1),transform .32s,opacity .32s,box-shadow .2s}
html.od-touch .odl-fab.odl-dragging{transition:none!important;scale:1.06;box-shadow:0 14px 30px -10px color-mix(in srgb,var(--ink) 55%,transparent)!important}
/* 音乐把手吸到右边时，圆角和边框反过来 */
html.od-touch .odt-music.odl-side-r{flex-direction:row-reverse;border-radius:999px 0 0 999px;border-left:1px solid #fff;border-right:0;padding:4px 4px 4px 5px}
html.od-touch .odt-music.odl-side-r .odt-music-open{padding:0 2px 0 10px!important;flex-direction:row-reverse}
html.od-touch .odt-music.odl-side-r .odt-music-txt{align-items:flex-end}
/* 往下滑时不再缩进屏幕外（拖到哪都一样）：只收成小圆片 */
html.od-touch.od-docks-away .odl-fab:not(.is-open){transform:none!important;opacity:1!important;pointer-events:auto!important}
html.od-touch.od-docks-away .odt-music.odl-fab:not(.is-open) .odt-music-txt{display:none}
html.od-touch.od-docks-away .odt-event.odl-fab:not(.is-open) .odt-ev-txt small{display:none}
/* 小一号 */
html.od-touch .odt-disc{width:36px;height:36px}
html.od-touch .odt-music-txt b{font-size:12.5px}
html.od-touch .odt-event{padding:4px 11px 4px 4px;gap:7px;border-radius:14px}
html.od-touch .odt-ev-thumb{width:34px;height:34px;border-radius:10px}
html.od-touch .odt-ev-txt b{font-size:14px}

/* ---------- 打开的面板：小一号，按钮在哪边就贴哪边 ---------- */
html.od-touch[data-od-layout] .od-rail-left.open .od-radio-panel,
html.od-touch[data-od-layout] .od-rail-left.open #od-sfx{width:min(260px,calc(100vw - 16px))}
html.od-touch[data-od-layout] .od-rail-left.open .od-radio-stage{aspect-ratio:280/128}
html.od-touch[data-od-layout] .od-rail-right.open{width:min(300px,calc(100vw - 16px));max-width:none}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot.od-cd{display:grid!important;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px 10px 10px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot.od-cd:not(:has(.od-cd-poster:not([hidden]):not(.od-cd-off))){grid-template-columns:minmax(0,1fr);padding-left:14px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-poster{grid-row:1;grid-column:1;width:72px;margin:0;aspect-ratio:1;border-radius:10px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-poster .od-cd-pwin,
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-poster .od-cd-glare{inset:3px;border-radius:7px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-poster .od-cd-chip{display:none}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-sign{grid-row:1;grid-column:-2;gap:5px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-copy{flex-direction:column;align-items:flex-start;gap:0}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-title{font-size:11px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-left{display:none}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-days b{font-size:20px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-flap{width:14px;height:22px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-flap b{height:22px;font-size:14px;line-height:22px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-flap .f-bot b,
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-flap .f-fall b{top:-11px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-sep{height:22px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-sep::before{top:6px}
html.od-touch[data-od-layout] .od-rail-right.open .od-slot .od-cd-sep::after{bottom:6px}
html.od-touch[data-od-layout] .od-rail-right.open .od-mini{padding:8px 7px;gap:3px}
html.od-touch[data-od-layout] .od-rail-right.open .od-mini .ol-stage{zoom:.78}
html.od-touch[data-od-layout] .od-rail-right.open .odt-wx{gap:5px;margin-top:4px}
html.od-touch[data-od-layout] .od-rail-right.open .odt-wx button{min-height:40px;padding:4px 2px;font-size:11.5px}
html.od-touch[data-od-layout] .od-rail-right.open .odt-wx button svg{width:17px;height:17px}

/* ---------- 骰子：放在首页主视觉下面（不悬浮） ---------- */
.odl-dice-slot{display:none}
html.od-touch .odl-dice-slot{display:block;clear:both;width:100%;padding-top:12px;margin-bottom:2px}
html.od-touch .odl-dice-slot #od-dice-panel.docked{--odd-h:136px;height:var(--odd-h);background:var(--od-glass-strong);border:1px solid var(--od-hair);border-radius:20px;box-shadow:var(--raised)}
html[data-od-weather].od-touch .odl-dice-slot #od-dice-panel.docked{background:var(--od-glass-strong);border-color:var(--od-hair);box-shadow:var(--raised)}

/* ---------- 最新活动 / 点单须知：手机上不占满整个屏幕宽 ---------- */
@media(max-width:760px){
  /* 12-03 客户手绘：主视觉完整在上；活动海报只占约一半宽（不和主视觉一样大），左图右字，下面一排活动标签 */
  html.od-touch[data-od-layout] #activity-shop{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);column-gap:14px;row-gap:14px;align-items:center;margin-top:12px;padding-inline:14px}
  html.od-touch[data-od-layout] #activity-shop .shop-front{grid-column:1;width:auto;max-width:none;margin:0;padding:0 4px}
  html.od-touch[data-od-layout] #activity-shop .shop-glass{height:auto;aspect-ratio:358/263;border-width:6px}
  html.od-touch[data-od-layout] #activity-shop .shop-sign,html.od-touch[data-od-layout] #activity-shop .awning-bulbs{display:none}
  html.od-touch[data-od-layout] #activity-shop .awning-cloth{height:34px}
  html.od-touch[data-od-layout] #activity-shop .shop-open{left:8px;top:10px;transform:scale(.82);transform-origin:0 0}
  html.od-touch[data-od-layout] #activity-shop .shop-info{grid-column:2;padding:0;text-align:left;align-self:center}
  html.od-touch[data-od-layout] #activity-shop .shop-eyebrow{font-size:10px;letter-spacing:1.6px}
  html.od-touch[data-od-layout] #activity-shop .shop-title{margin-top:6px;font-size:20px;letter-spacing:-.4px;line-height:1.2}
  html.od-touch[data-od-layout] #activity-shop .shop-desc{margin:6px 0 10px;font-size:12.5px;line-height:1.55;min-height:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  html.od-touch[data-od-layout] #activity-shop .shop-actions{gap:8px}
  html.od-touch[data-od-layout] #activity-shop .shop-cta{padding:9px 14px;font-size:12.5px;gap:6px}
  html.od-touch[data-od-layout] #activity-shop .shop-nav{transform:scale(.9);transform-origin:0 50%}
  html.od-touch[data-od-layout] #activity-shop .shop-rail{grid-column:1/-1}
  html.od-touch[data-od-layout] #notice-deck{width:78%;max-width:78%;margin-inline:auto}
  html.od-touch[data-od-layout] #activities .testimonial-heading h2{font-size:26px}
}

/* 手机：天气画布按地址栏收起后的最大高度铺（100lvh），往下翻时地址栏收起 / 展开不再改画布尺寸、不再重撒粒子（见 od-weather-fx.js size） */
@supports (height:100lvh){
  @media not all and (hover:hover) and (pointer:fine){
    .od-wfx-sky,.od-wfx-bg,.od-wfx-fg{bottom:auto!important;height:100lvh!important}
  }
}

/* 手机：活动面板点外面就收起，不再显示「收起 ×」；详情图只允许上下滑，双指交给全屏看图 */
html.od-touch[data-od-layout] .od-rail-close{display:none!important}
html.od-touch #preview-dialog .preview-scroll{touch-action:pan-y;overscroll-behavior:contain}

/* 中等宽度电脑（1025~1479，侧栏收成左下 / 右下圆按钮）：跟枪训练、钓鱼也藏起来；左下角原来跟枪训练的位置换成骰子按钮（od-dice.js 把按钮搬到这里，卡片往上开） */
@media (min-width:1025px) and (max-width:1479px){
  html[data-od-layout]:not(.od-touch) :is(.at-mobile-launch,.od-rail-left .at-entry,.od-rail-left #od-pond-panel){display:none!important}
  html[data-od-layout]:not(.od-touch) .od-dice-btn.odl-dice-fab{position:fixed;left:var(--od-edge,24px);bottom:92px;z-index:61;display:inline-flex;align-items:center;gap:8px;width:auto;height:48px;min-height:48px;padding:0 18px 0 12px;border-radius:999px;background:var(--paper,#fffaf3);border:1px solid #fff;box-shadow:var(--raised);color:var(--ink);font:inherit;font-size:14px;font-weight:700;letter-spacing:1px}
  html[data-od-layout]:not(.od-touch) .od-dice-btn.odl-dice-fab svg{width:24px;height:24px;color:var(--coral)}
  html[data-od-layout]:not(.od-touch) .od-dice-btn.odl-dice-fab::after{content:"掷骰子"}
}

/* ================= 12-03 二改：手机只有一个浮窗（参照微信通话小窗，见 od-layout.js） ================= */
.odl-bubble,.odl-sheet{display:none}
html.od-touch[data-od-layout] :is(.odt-music,.odt-event,.od-rail-left,.od-rail-right,.od-dice-btn){display:none!important}
html.od-touch[data-od-layout] .odl-bubble{display:flex;position:fixed;z-index:62;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:66px;height:66px;margin:0;padding:0;border:1px solid #fff;border-radius:18px;background:color-mix(in srgb,var(--paper,#fffaf3) 94%,transparent);box-shadow:0 10px 26px -8px rgba(40,20,24,.45),0 2px 6px rgba(40,20,24,.12);color:var(--ink);font:inherit;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;transition:opacity .2s,transform .2s}
html.od-touch[data-od-layout] .odl-bubble.odl-anim{transition:left .36s cubic-bezier(.2,.9,.25,1.15),top .36s cubic-bezier(.2,.8,.2,1),opacity .2s,transform .2s}
html.od-touch[data-od-layout] .odl-bubble.odl-dragging{transform:scale(1.07);box-shadow:0 18px 34px -10px rgba(40,20,24,.55)}
html.od-touch[data-od-layout] .odl-bubble:active:not(.odl-dragging){transform:scale(.95)}
html.od-touch[data-od-layout] .odl-bubble.odl-bub-away{opacity:0;pointer-events:none}
.odl-bub-ico{display:flex;gap:2px}
.odl-bub-ico svg{width:17px;height:17px;fill:none;stroke:var(--coral,#e8604d);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.odl-bub-txt{font-size:10.5px;font-weight:700;letter-spacing:.5px;line-height:1;color:var(--ink)}
.odl-bubble.is-playing .odl-bub-ico svg:first-child{animation:odlBob 1.2s ease-in-out infinite}
@keyframes odlBob{50%{transform:translateY(-2px) rotate(-8deg)}}

/* 全屏面板：从小窗的位置展开（clip-path），缩小时收回去 */
html.od-touch[data-od-layout] .odl-sheet{display:flex;position:fixed;inset:0;z-index:2000;flex-direction:column;background:var(--paper,#fffaf3);color:var(--ink);-webkit-clip-path:var(--odl-clip);clip-path:var(--odl-clip);transition:clip-path .38s cubic-bezier(.3,.8,.25,1),-webkit-clip-path .38s cubic-bezier(.3,.8,.25,1);overscroll-behavior:contain}
html.od-touch[data-od-layout] .odl-sheet[hidden]{display:none}
html.od-touch[data-od-layout] .odl-sheet.on{-webkit-clip-path:inset(0 round 0);clip-path:inset(0 round 0)}
html.odl-sheet-open,html.odl-sheet-open body{overflow:hidden!important}
.odl-sheet-head{flex:none;display:flex;align-items:center;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 16px 10px;border-bottom:1px solid var(--od-hair,#eadfd6)}
.odl-sheet-head b{font-size:16px;letter-spacing:1px}
.odl-sheet-min{display:inline-flex;align-items:center;gap:6px;margin:0;padding:8px 14px 8px 10px;border:1px solid var(--od-hair,#eadfd6);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:13.5px;font-weight:700}
.odl-sheet-min svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.odl-sheet-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:14px 16px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;opacity:0;transform:translateY(10px);transition:opacity .22s,transform .3s cubic-bezier(.2,.8,.2,1)}
.odl-sheet.on .odl-sheet-body{opacity:1;transform:none;transition-delay:.12s}
.odl-sec{background:#fff;border:1px solid var(--od-hair,#eadfd6);border-radius:18px;padding:12px 12px 14px;box-shadow:0 6px 18px -12px rgba(40,20,24,.35)}
.odl-sec h4{display:flex;align-items:center;gap:6px;margin:0 0 10px;font-size:14px;letter-spacing:1px}
.odl-sec h4 svg{width:18px;height:18px;fill:none;stroke:var(--coral,#e8604d);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.odl-slot{display:flex;flex-direction:column;gap:10px}
/* 面板里的电台、按键音效、骰子、天气：去掉原来侧栏的玻璃底，铺满卡片 */
.odl-slot :is(#od-radio-panel,#od-sfx){display:block!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0!important;animation:none!important}
.odl-slot #od-sfx{display:flex!important}
.odl-slot .odl-dice-slot{display:block!important;padding:0!important;margin:0!important}
.odl-slot .odl-dice-slot #od-dice-panel.docked{--odd-h:200px;height:var(--odd-h);left:0!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;box-shadow:none!important;border:0!important;background:color-mix(in srgb,var(--paper,#fffaf3) 70%,#fff)!important}
.odl-slot .odt-wx{display:grid!important;grid-template-columns:repeat(4,1fr);gap:8px;margin:0!important;position:static!important;width:auto!important}
.odl-slot .odt-wx button{min-height:64px}

/* 手机点单本：点中的那一行在移到顶部的过程中先亮起来，看得出是它在动 */
@media (max-width:760px){
  .mb-row.mb-going{background:color-mix(in srgb,var(--coral,#e8604d) 12%,transparent);border-radius:12px;transition:background .2s}
}

/* ================= 12-03 专属玩法子页（html[data-od-layout="sub"]，od-layout.js 在子页自动标） =================
   手机 / 平板：左右两个圆按钮（底部，微信里会被前进 / 后退栏挡住）合成主页同款浮窗，里面只有 音乐、天气；
   活动倒计时、钓鱼、小人、开黑签在手机上不显示；KOOK / 服务号卡片排在页面最下面 */
.odl-contacts{display:none}
html.od-touch[data-od-layout="sub"] body{padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}
html.od-touch[data-od-layout="sub"] .odl-contacts:not(:empty){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0 4px}
html.od-touch[data-od-layout="sub"] .odl-contacts .floating-contact{position:static!important;inset:auto!important;transform:none!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;margin:0!important;display:flex!important;align-items:center;gap:6px;padding:10px 8px 10px 12px!important;border-radius:16px}
html.od-touch[data-od-layout="sub"] .odl-contacts .contact-card-open{display:flex!important;flex:1;flex-direction:row!important;align-items:center!important;gap:9px!important;min-width:0;min-height:0;padding:0!important;margin:0;background:none!important;box-shadow:none!important;border:0;color:inherit;text-align:left}
html.od-touch[data-od-layout="sub"] .odl-contacts .contact-image-slot{flex:none;width:30px;height:30px}
html.od-touch[data-od-layout="sub"] .odl-contacts .contact-image-slot img{width:30px;height:30px}
html.od-touch[data-od-layout="sub"] .odl-contacts .contact-copy{display:flex;flex-direction:column;min-width:0;gap:1px}
html.od-touch[data-od-layout="sub"] .odl-contacts .contact-copy small{font-size:11px;line-height:1.2;opacity:.75}
html.od-touch[data-od-layout="sub"] .odl-contacts .contact-copy strong{font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.od-touch[data-od-layout="sub"] .odl-contacts .copy-button{flex:none;width:30px;height:30px;padding:0;background:none!important;box-shadow:none!important}
html.od-touch[data-od-layout="sub"] .odl-slot .ofh-wx{display:flex!important;position:static!important;width:100%!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.od-touch[data-od-layout="sub"] .odl-slot .ofh-wx .wx-cork{display:none}
html.od-touch[data-od-layout="sub"] .odl-slot .ofh-wx .wx-glass{height:64px}
/* 子页标题在左上，浮窗默认靠右，不挡标题；页面右上角「返回玩法菜单」在顶栏里，浮窗在顶栏下面 12px */
/* 夜间（主页 / 子页都一样）：面板底色是深靛蓝、字是浅色 → 卡片换成半透明的浅一层，不再是白底白字 */
html[data-od-weather=night] .odl-sec{background:color-mix(in srgb,#fff 7%,transparent);border-color:color-mix(in srgb,#fff 14%,transparent);box-shadow:0 8px 22px -14px #000a}
html[data-od-weather=night] .odl-sheet-head{border-bottom-color:color-mix(in srgb,#fff 12%,transparent)}
html[data-od-weather=night] .odl-sheet-min{background:color-mix(in srgb,#fff 10%,transparent);border-color:color-mix(in srgb,#fff 20%,transparent);color:var(--ink)}
html[data-od-weather=night] .odl-bubble .odl-bub-ico svg{stroke:color-mix(in srgb,var(--coral,#e8604d) 70%,#fff)}
html[data-od-weather=night] .odl-slot .odl-dice-slot #od-dice-panel.docked{background:color-mix(in srgb,#fff 6%,transparent)!important}
html.od-touch.odl-bub-top[data-od-layout="sub"] :is(.hx-public-heading,.jj-heading){padding-right:80px}
html.od-touch.odl-bub-top[data-od-layout="sub"].odl-bub-l :is(.hx-public-heading,.jj-heading){padding-right:0;padding-left:80px}
/* Bingo 页没有标题行，棋盘卡片紧贴顶栏：整体往下让出小窗的高度 */
html.od-touch[data-od-layout="sub"] body.bingo-shell>main{margin-top:34px}

/* 手机「最新活动」B 版（?act=b）：海报约 2/3 宽，右边只留 标题 + 按钮（说明文字收起，点进去看） */
@media(max-width:760px){
  html.od-touch.odl-act-b[data-od-layout] #activity-shop{grid-template-columns:minmax(0,2fr) minmax(0,1fr);column-gap:12px}
  html.od-touch.odl-act-b[data-od-layout] #activity-shop .shop-desc{display:none}
  html.od-touch.odl-act-b[data-od-layout] #activity-shop .shop-title{font-size:17px;margin-bottom:10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  html.od-touch.odl-act-b[data-od-layout] #activity-shop .shop-actions{flex-direction:column;align-items:stretch}
  html.od-touch.odl-act-b[data-od-layout] #activity-shop .shop-cta{justify-content:center;padding:9px 8px;font-size:12px}
  html.od-touch.odl-act-b[data-od-layout] #activity-shop .shop-nav{transform:none;justify-content:center}
}

/* 12-03 三改：A 版（约 1/2）——雨棚不再伸进右栏挡住「NOW SERVING」；右栏排法三选一（?alay=1/2/3） */
@media(max-width:760px){
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop{column-gap:16px;align-items:stretch;margin-top:30px}
  /* 客户：「最新活动 / 把快乐，留在每一局。」往上一点，别贴着橱窗（标题和雨棚之间约 25px） */
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activities{padding-top:34px}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-awning{margin:0 -5px -16px}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-front{align-self:center}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-eyebrow{font-size:9.5px;letter-spacing:1.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-info{display:flex;flex-direction:column;align-self:stretch}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-tag{align-self:flex-start;margin-top:6px;padding:2px 10px;font-size:11px}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-actions{margin-top:auto;flex-direction:column;align-items:stretch;gap:8px}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-cta{justify-content:center;width:100%}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-nav{transform:none;justify-content:space-between;width:100%}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-nav button{width:36px;height:30px}
  html.od-touch[data-od-layout="1203"]:not(.odl-act-b) #activity-shop .shop-count{flex:1;min-width:0;padding:3px 4px;font-size:12px;white-space:nowrap}

  /* 版 1「撑满对齐」：右栏上下对齐海报，说明最多 4 行，按钮和翻页撑满右栏 */
  html.odl-alay-1.od-touch[data-od-layout="1203"] #activity-shop .shop-desc{-webkit-line-clamp:4;margin:6px 0 10px}

  /* 版 2「票卡」：右栏放进一张浅色卡片，和海报一样高 */
  html.odl-alay-2.od-touch[data-od-layout="1203"] #activity-shop .shop-nav button{width:32px}
  html.odl-alay-2.od-touch[data-od-layout="1203"] #activity-shop .shop-info{padding:12px 12px 12px;border-radius:16px;background:color-mix(in srgb,var(--paper,#fff) 72%,transparent);border:1px solid color-mix(in srgb,var(--ink,#4a3b33) 10%,transparent);box-shadow:0 6px 16px -10px color-mix(in srgb,var(--ink,#4a3b33) 40%,transparent),inset 0 1px 0 #ffffffa0}
  html.odl-alay-2.od-touch[data-od-layout="1203"] #activity-shop .shop-eyebrow{padding-bottom:6px;border-bottom:1px dashed color-mix(in srgb,var(--ink,#4a3b33) 18%,transparent)}
  html.odl-alay-2.od-touch[data-od-layout="1203"] #activity-shop .shop-title{margin-top:8px;font-size:18px}
  html.odl-alay-2.od-touch[data-od-layout="1203"] #activity-shop .shop-desc{-webkit-line-clamp:3;font-size:12px;min-height:calc(3 * 1.55em)}
  html[data-od-weather=night].odl-alay-2.od-touch[data-od-layout="1203"] #activity-shop .shop-info{background:color-mix(in srgb,#fff 7%,transparent);border-color:color-mix(in srgb,#fff 14%,transparent);box-shadow:none}

  /* 版 3「翻页放海报下」：海报下面是 ◀ 02/03 ▶，右栏 小标、标题、说明 对着海报上下居中，按钮和翻页同一行 */
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop{grid-template-rows:1fr auto auto auto auto 1fr auto auto;row-gap:0}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop :is(.shop-info,.shop-actions){display:contents}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-front{grid-column:1;grid-row:1/7;align-self:start}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-eyebrow{grid-column:2;grid-row:2}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-title{grid-column:2;grid-row:3}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-tag{grid-column:2;grid-row:4;justify-self:start}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-desc{grid-column:2;grid-row:5;align-self:start;-webkit-line-clamp:5;margin:6px 0 0}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-nav{grid-column:1;grid-row:7;margin-top:12px;padding:0 4px}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-cta{grid-column:2;grid-row:7;margin-top:12px;align-self:center}
  html.odl-alay-3.od-touch[data-od-layout="1203"] #activity-shop .shop-rail{grid-row:8;margin-top:14px}
}

/* 12-04 客户：全屏面板「缩小」要明显一点；右边提示「点空白处收起」 */
.odl-sheet-min{background:var(--coral,#e8604d);border-color:transparent;color:#fff;box-shadow:0 4px 12px -6px color-mix(in srgb,var(--coral,#e8604d) 80%,transparent)}
.odl-sheet-tip{margin-left:auto;font-size:12px;color:var(--muted,#9b8a80);white-space:nowrap}
html[data-od-weather=night] .odl-sheet-min{background:color-mix(in srgb,var(--coral,#e8604d) 70%,#fff 0%);border-color:transparent;color:#fff}
@media(max-width:360px){.odl-sheet-head b{font-size:14px;letter-spacing:0}.odl-sheet-tip{font-size:11px}}

/* 12-04 客户：首页 KOOK / 服务号两张卡片一样宽、一样高，字不换行（窄屏也只占一行） */
@media(max-width:1024px){
  html.od-touch[data-od-layout="1203"] #home .floating-contact:not([hidden]){height:62px;min-height:62px;padding:0 4px 0 10px;box-sizing:border-box}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .contact-card-open{flex:1;gap:8px;padding:0;min-width:0;height:100%}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .contact-image-slot{width:28px;height:28px}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .contact-image-slot img{width:28px;height:28px}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .contact-copy{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;flex:1}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .contact-copy small{font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .contact-copy strong{font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .copy-button{flex:none;width:24px;height:30px;padding:0;margin:0}
  html.od-touch[data-od-layout="1203"] #home .floating-contact:not([hidden]){padding-left:9px;padding-right:2px}
  html.od-touch[data-od-layout="1203"] #home .floating-contact .contact-card-open{gap:7px}
}

/* 12-04 客户：点单本已展开的那一项再点一次就收起（menu-book.js foldNarrow）；只在窄屏藏右页 */
@media(max-width:760px){.mb-page.mb-folded{display:none!important}}

/* 12-05 客户：右下角小人显示全身（四种天气四套衣服）。原来舞台很扁（320:112）只露出半身；
   右栏中间本来就空着，舞台改成固定高度，宽高比 < 1.45 时 od-buddy 自动用全身取景 */
@media(min-width:1480px){
  html[data-od-layout="1203"] .od-rail-right .od-stage,
  html[data-od-layout="1203"].od-cd-has-poster .od-rail-right .od-stage{aspect-ratio:auto;height:clamp(178px,calc(100vh - 520px),300px)}
}

/* 12-05 晚：手机全屏面板
   ① 展开完不再带 clip-path（iPhone 微信里面板上下滑被弹回）
   ② 面板里手指按在骰子区也能上下滑（以前骰子区 touch-action:none，按在骰子上滑不动）
   ③ 微信里可视高度只有 600 多：唱片、骰子、天气按钮压矮一点，一屏就能看到天气 */
html.od-touch[data-od-layout] .odl-sheet.on.odl-opened{-webkit-clip-path:none;clip-path:none}
.odl-sheet .odd-stage{touch-action:pan-y}
.odl-sheet-body>.odl-sec{flex-shrink:0}
@media (max-height:760px){
  .odl-slot .od-radio-stage{aspect-ratio:280/150}
  .odl-slot .odl-dice-slot #od-dice-panel.docked{--odd-h:168px}
  .odl-slot .odt-wx button{min-height:54px}
  .odl-sheet-body{gap:10px;padding-top:10px}
  .odl-sec{padding:10px 12px 12px}
  .odl-sec h4{margin-bottom:8px}
}
@media (max-height:640px){
  .odl-slot .od-radio-stage{aspect-ratio:280/128}
  .odl-slot .odl-dice-slot #od-dice-panel.docked{--odd-h:150px}
}
