/*
 * 本站加在 h5mota 引擎上的一层样式（2026-10-28，站主同意游戏外的界面可以改、游戏本体与操作不变）。
 * 引擎自己的 styles.css 一字不动，要改的都写在这里、按选择器覆盖；index.html 在 styles.css 之后载入它。
 */

/* 底不铺黑：游戏四周露出页面的纸面，不再像一块嵌进网页的老式 Flash（原先桌面左右各约 320px、手机上下各三分之一是黑的）。
   游戏区（#gameGroup）自己仍是黑底，画面不受影响 */
html,
body {
    background-color: transparent;
}

/* 标题页的图：原先按高度撑满、宽度跟着走，竖着的手机上「魔塔 / Magic Tower」两边被切掉；改成整张放进框里。
   标题页面板原本是白底（图盖满了看不出来），图不再盖满以后上下会露白，所以面板也改黑，与图的底一样 */
#startPanel {
    background-color: #000;
}

#startBackground {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================================================================ 本站的工具栏与面板（oshi.js）：站主 2026-10-28 选的样张 A「原版像素」
   灰石底、3px 橙色描边、粗白字带黑影，与引擎的状态栏同一套；开关、音量、速度都是方块。
   尺寸随引擎的缩放走（--u 是 core.domStyle.scale），字最小 12px */

/* 工具栏：引擎那一排图收起来（回放时还原，那几枚另有用处），换成「图 + 名字」的大按钮。
   高由 oshi.js 交给引擎排（横排是原版的 54/38 倍、跟着缩放走），--bar-h 是排出来的高，图与字照它定大小 */
body:not(.oshi-replay) #toolBar > img.tools {
    display: none !important;
}
body.oshi-replay .oshi-bar {
    display: none;
}

.oshi-bar {
    --bar-h: 48px;
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 4px;
}

.oshi-tool {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: 700 12px/1 "Microsoft YaHei", "PingFang SC", Verdana, sans-serif;
    text-shadow: 1px 1px 0 #000;
    white-space: nowrap;
    cursor: pointer;
    transition: translate 0.15s ease, color 0.15s ease;
}

.oshi-tool-img {
    height: clamp(16px, calc(var(--bar-h) - 26px), 42px);
    aspect-ratio: 1;
    object-fit: contain;
    image-rendering: pixelated;
}

.oshi-bar-big .oshi-tool {
    gap: 4px;
    font-size: 14px;
}
.oshi-bar-big .oshi-tool-img {
    height: clamp(16px, calc(var(--bar-h) - 30px), 42px);
}

/* 太矮（手机横屏缩得很小）：只留图，名字在 aria-label 里 */
.oshi-bar-compact .oshi-tool-label {
    display: none;
}
.oshi-bar-compact .oshi-tool-img {
    height: calc(var(--bar-h) - 8px);
}

/* 游戏下方那一行「反馈」（oshi.js 的 syncFeedback 定纵向，跟引擎的音乐按钮同一行）：照站上各页底下那一行（FeedbackLink）——
   居中的小字、一道细下划线，悬停时下划线转实；颜色是爱弥斯分区的 --paper-rose 与 --paper-rule-hi */
.oshi-feedback {
    position: fixed;
    left: 50%;
    bottom: 3px;
    z-index: 400;
    translate: -50% 0;
    padding-bottom: 1px;
    border-bottom: 1px solid #f3cfe2;
    font: 13px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.08em;
    color: #c4508a;
    text-decoration: none;
    transition: border-color 0.18s;
}
.oshi-feedback[hidden] {
    display: none;
}
.oshi-feedback:focus-visible {
    outline: 2px solid #c4508a;
    outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    .oshi-feedback:hover {
        border-color: #c4508a;
    }
}
@media (prefers-reduced-motion: reduce) {
    .oshi-feedback {
        transition: none;
    }
}

/* 排行榜那一枚只在手机竖屏两排的排法里出（下一段），别的排法里排行榜在外框右上角 */
.oshi-tool[data-tool="board"] {
    display: none;
}
body.oshi-tall .oshi-tool[data-tool="board"] {
    display: flex;
}

/* 手机竖屏：地图下面两排带字的大按钮（八枚：上四下四，第八枚是 10-30 补进空格的排行榜），高按像素（oshi.js 的 TALL_HEIGHT），底与边框是引擎给工具栏的那一套；没开局时（标题页）不出 */
body.oshi-tall .oshi-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 4px;
    padding: 4px;
}
body.oshi-tall:not(.oshi-playing) .oshi-bar {
    display: none;
}
body.oshi-tall .oshi-tool {
    gap: 5px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    font-size: 14px;
}
body.oshi-tall .oshi-tool-img {
    height: 30px;
}
body.oshi-tall .oshi-tool:active {
    border-color: #ff8000;
}

@media (hover: hover) and (pointer: fine) {
    .oshi-tool:hover {
        translate: 0 -2px;
        color: #ffcc33;
    }
}

/* 面板与提示卡的配色（2026-10-29 收成变量）：默认是原版那一套（?hd=0 时照旧）；高清画风下换成状态栏那一页纸（最后那一段 body.oshi-hd） */
:root {
    --o-dim: rgba(0, 0, 0, 0.8);
    --o-frame: #ff8000;
    --o-panel: #2b2b2b url(project/materials/ground.png) repeat;
    --o-panel-shade: inset 0 0 0 999px rgba(0, 0, 0, 0.55);
    --o-shadow: 1px 1px 0 #000;
    --o-shadow-strong: 2px 2px 0 #000;
    --o-title: #ffcc33;
    --o-hover: #ffcc33;
    --o-accent: #ff8000;
    --o-on-accent: #000;
    --o-text: #fff;
    --o-line: #888;
    --o-line-soft: rgba(255, 255, 255, 0.12);
    --o-knob: #888;
    --o-well: #000;
    --o-step: #444;
    --o-step-hover: #777;
    --o-step-border: #000;
    --o-cell: rgba(0, 0, 0, 0.3);
    --o-muted: #ccc;
    --o-disabled: #555;
    --o-danger: #ff5555;
}

/* 面板外壳：盖住地图，黑底压暗，中间一块灰石板 */
.oshi-layer {
    --u: 1;
    position: absolute;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    padding: calc(14px * var(--u));
    /* 压得够暗，后面地图上的道具、数字不跟面板抢（原先 0.55 透得太清楚；引擎自己那几页是 0.85） */
    background: var(--o-dim);
}
.oshi-layer[hidden] {
    display: none;
}

/* 高随内容、上下居中，最多撑满（存档那种长列表在里面滚）；手机竖屏盖住整块游戏时，设置不会只占上半截、下面空一大片 */
.oshi-panel {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: calc(8px * var(--u));
    padding: calc(12px * var(--u)) calc(14px * var(--u));
    border: 3px solid var(--o-frame);
    background: var(--o-panel);
    box-shadow: var(--o-panel-shade);
    color: var(--o-text);
    font: 700 max(12px, calc(13px * var(--u)))/1.35 "Microsoft YaHei", "PingFang SC", Verdana, sans-serif;
    text-shadow: var(--o-shadow);
}

.oshi-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.oshi-title {
    margin: 0;
    font-size: max(14px, calc(17px * var(--u)));
    letter-spacing: 0.1em;
    color: var(--o-title);
    text-shadow: var(--o-shadow-strong);
}

.oshi-icon {
    display: inline-flex;
}
.oshi-icon svg {
    width: max(16px, calc(18px * var(--u)));
    height: max(16px, calc(18px * var(--u)));
}

/* 叉：就是一枚图标，不套圈；悬停换色、抬一点 */
.oshi-x {
    display: inline-flex;
    padding: 2px;
    border: 0;
    background: transparent;
    color: var(--o-text);
    cursor: pointer;
    transition: translate 0.15s ease, color 0.15s ease;
}

.oshi-body,
.oshi-slots {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: calc(8px * var(--u));
    scrollbar-width: thin;
    scrollbar-color: var(--o-accent) transparent;
}

.oshi-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(5px * var(--u)) 0;
    border-bottom: 2px dashed var(--o-line-soft);
}

/* 开关：黑底方框里一块方块，开着是橙色、靠右 */
.oshi-switch {
    position: relative;
    flex: none;
    width: max(34px, calc(38px * var(--u)));
    height: max(18px, calc(20px * var(--u)));
    padding: 0;
    border: 2px solid var(--o-line);
    background: var(--o-well);
    cursor: pointer;
}
.oshi-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: 42%;
    background: var(--o-knob);
    transition: left 0.15s ease;
}
.oshi-switch[aria-checked="true"] {
    border-color: var(--o-accent);
}
.oshi-switch[aria-checked="true"]::after {
    left: calc(58% - 2px);
    background: var(--o-accent);
}

/* 音量：十格方块 */
.oshi-steps {
    flex: none;
    display: flex;
    gap: 3px;
}
.oshi-step {
    width: max(9px, calc(11px * var(--u)));
    height: max(14px, calc(16px * var(--u)));
    padding: 0;
    border: 1px solid var(--o-step-border);
    background: var(--o-step);
    cursor: pointer;
}
/* 触屏：每格加宽到手指点得中（原先约 9px 宽） */
@media (pointer: coarse) {
    .oshi-steps {
        gap: 4px;
    }
    .oshi-step {
        width: 18px;
        height: 24px;
    }
}
.oshi-step.on {
    background: var(--o-accent);
}

/* 三档：方块按钮并排，选中的填橙 */
.oshi-seg {
    flex: none;
    display: flex;
}
.oshi-seg button {
    margin-left: -2px;
    padding: 2px max(8px, calc(9px * var(--u)));
    border: 2px solid var(--o-line);
    background: transparent;
    color: var(--o-text);
    font: inherit;
    font-size: 12px;
    text-shadow: none;
    cursor: pointer;
}
.oshi-seg button[aria-checked="true"] {
    position: relative;
    border-color: var(--o-accent);
    background: var(--o-accent);
    color: var(--o-on-accent);
}

.oshi-links {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.oshi-link,
.oshi-tab,
.oshi-go,
.oshi-remove,
.oshi-page {
    padding: calc(4px * var(--u)) max(8px, calc(10px * var(--u)));
    border: 2px solid var(--o-line);
    background: transparent;
    color: var(--o-text);
    font: inherit;
    font-size: 12px;
    text-shadow: none;
    cursor: pointer;
    transition: translate 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.oshi-tabs {
    display: flex;
    gap: 6px;
}
.oshi-tab {
    font-size: max(12px, calc(13px * var(--u)));
}
.oshi-tab[aria-selected="true"] {
    border-color: var(--o-accent);
    background: var(--o-accent);
    color: var(--o-on-accent);
}
.oshi-tab:disabled {
    opacity: 0.6;
    cursor: default;
}

/* 存档位：缩略图、哪一层与属性、右边的读取 / 存到这里与删除 */
.oshi-slot {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: calc(10px * var(--u));
    padding: calc(5px * var(--u)) calc(7px * var(--u));
    border: 2px solid var(--o-line);
    background: var(--o-cell);
}

.oshi-thumb {
    display: block;
    width: calc(48px * var(--u));
    height: calc(48px * var(--u));
    min-width: 36px;
    min-height: 36px;
    border: 2px solid var(--o-line);
    image-rendering: pixelated;
}
.oshi-thumb-empty {
    background: var(--o-well);
}

.oshi-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.oshi-meta b {
    font-size: max(12px, calc(14px * var(--u)));
}
.oshi-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    font-size: 12px;
    color: var(--o-muted);
}

.oshi-acts {
    display: flex;
    align-items: center;
    gap: 8px;
}
.oshi-go {
    border-color: var(--o-accent);
    background: var(--o-accent);
    color: var(--o-on-accent);
}
.oshi-remove {
    display: inline-flex;
    padding: 2px;
    border: 0;
    color: var(--o-muted);
}
.oshi-remove.oshi-armed {
    padding: calc(4px * var(--u)) 8px;
    border: 2px solid var(--o-danger);
    color: var(--o-danger);
}

.oshi-note {
    margin: 8px 0;
    color: var(--o-muted);
}

.oshi-pager {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.oshi-page {
    display: inline-flex;
    padding: 2px;
    border: 0;
}
.oshi-page:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .oshi-x:hover,
    .oshi-remove:hover,
    .oshi-page:not(:disabled):hover {
        translate: 0 -1px;
        color: var(--o-title);
    }
    .oshi-link:hover,
    .oshi-tab:not([aria-selected="true"]):not(:disabled):hover {
        border-color: var(--o-accent);
        color: var(--o-title);
    }
    .oshi-go:hover {
        translate: 0 -1px;
        background: var(--o-hover);
        border-color: var(--o-title);
    }
    .oshi-switch:hover,
    .oshi-seg button:not([aria-checked="true"]):hover {
        border-color: var(--o-title);
    }
    /* 音量方块：指着的那一格提亮（点下去就是调到这一格） */
    .oshi-step:hover {
        background: var(--o-step-hover);
    }
    .oshi-step.on:hover {
        background: var(--o-hover);
    }
}

/* 触屏上块内的滚动条不画（站主 2026-10-27：手机端不出现滚动条），照样能滑 */
@media (pointer: coarse) {
    .oshi-body,
    .oshi-slots {
        scrollbar-width: none;
    }
    .oshi-body::-webkit-scrollbar,
    .oshi-slots::-webkit-scrollbar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oshi-tool,
    .oshi-x,
    .oshi-switch::after,
    .oshi-link,
    .oshi-go,
    .oshi-remove,
    .oshi-page {
        transition: none;
    }
}

/* 帮助：一句怎么走，下面三条，每条左边是游戏里的原图（像素放大、不抹糊） */
.oshi-help-lead {
    margin: 0;
    padding-bottom: calc(6px * var(--u));
    border-bottom: 2px dashed var(--o-line-soft);
    color: var(--o-title);
}
.oshi-help-row {
    display: flex;
    align-items: center;
    gap: max(10px, calc(12px * var(--u)));
    padding: calc(4px * var(--u)) 0;
}
.oshi-sprites {
    flex: none;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-width: max(70px, calc(110px * var(--u)));
}
.oshi-sprite {
    width: max(28px, calc(34px * var(--u)));
    height: auto;
    image-rendering: pixelated;
}
.oshi-help-text {
    margin: 0;
}

/* 帮助的几段（2026-10-29）：基本玩法、暴击、结局、怪物增强一页往下排，段与段之间一道虚线；段里的怪物小图跟着字走 */
.oshi-help-sec {
    display: flex;
    flex-direction: column;
    gap: calc(4px * var(--u));
    padding-top: calc(6px * var(--u));
    border-top: 2px dashed var(--o-line-soft);
}
.oshi-help-sec .oshi-section-title {
    margin: 0;
}
.oshi-help-words {
    flex: 1;
    min-width: 0;
}
.oshi-help-sub {
    display: block;
    margin-bottom: 2px;
}
.oshi-help-line {
    margin: 0;
    font-weight: 400;
}
.oshi-inline {
    display: inline-flex;
    min-width: 0;
    margin: 0 2px;
    vertical-align: middle;
}
.oshi-inline .oshi-sprite {
    width: max(20px, calc(22px * var(--u)));
    height: max(20px, calc(22px * var(--u)));
}
/* 统计（2026-10-29）：原先「数据统计」「交易统计」是引擎一页页点着翻的文字，并成这一页往下滚（类名用 oshi-tally：手册的属性行已经叫 oshi-stats / oshi-stat-label）。
   进度是一格格的数，交易一家店一行，剩余的门与道具是一枚枚带数的小图 */
.oshi-tally-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(96px, calc(110px * var(--u))), 1fr));
    gap: calc(6px * var(--u));
}
.oshi-tally-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: calc(6px * var(--u)) calc(8px * var(--u));
    background: var(--o-cell);
    border: 1px solid var(--o-line-soft);
}
.oshi-tally-label {
    color: var(--o-muted);
    font-size: max(12px, calc(12px * var(--u)));
}
.oshi-tally-value {
    font-size: max(15px, calc(17px * var(--u)));
}
.oshi-trade {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: calc(10px * var(--u));
    row-gap: 2px;
}
.oshi-trade-times,
.oshi-tally-line {
    color: var(--o-muted);
}
.oshi-trade-gain {
    flex-basis: 100%;
}
.oshi-tally-line {
    margin: 0;
}
.oshi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: calc(6px * var(--u));
}
.oshi-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px calc(6px * var(--u)) 2px 2px;
    background: var(--o-cell);
    border: 1px solid var(--o-line-soft);
}
.oshi-chip .oshi-sprites {
    min-width: 0;
}
.oshi-chip-count {
    font-weight: 700;
}
body.oshi-hd .oshi-tally-cell,
body.oshi-hd .oshi-chip {
    border-radius: 6px;
}

/* 设置：电脑上排两栏，一屏放得下；手机竖屏照旧一栏 */
body:not(.oshi-tall) .oshi-body.oshi-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(18px * var(--u));
    align-content: start;
}
/* 带分档按钮或音量格的那几行占满一整行（挤在半栏里会断字） */
.oshi-settings .oshi-item:has(.oshi-seg),
.oshi-settings .oshi-item:has(.oshi-steps) {
    grid-column: 1 / -1;
}
.oshi-settings .oshi-item-name {
    white-space: nowrap;
}

/* 攻击的计算（卡提希娅篇，状态栏「攻击」右边那枚小图标点开）：三行「名字 | 算式」，最后一行是最终攻击、字重一点 */
.oshi-atk-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: calc(7px * var(--u)) 0;
    border-bottom: 2px dashed var(--o-line-soft);
}
.oshi-atk-label {
    color: var(--o-muted);
    font-weight: 700;
}
.oshi-atk-value {
    font-variant-numeric: tabular-nums;
}
.oshi-atk-total {
    border-bottom: 0;
    color: var(--o-title);
}
.oshi-atk-total .oshi-atk-label {
    color: inherit;
}

/* ================================================================ 手册、道具、飞行（oshi.js 第 5 节）：原是引擎画在画布上的，换成同一套面板 */
.oshi-empty {
    margin: calc(10px * var(--u)) 0;
    text-align: center;
    color: var(--o-muted);
    font-weight: 400;
}

/* 手册：一只怪一行（图 | 名字与特殊属性、两行数值），点开那一只在下面接一块详情 */
.oshi-enemy {
    display: flex;
    align-items: center;
    gap: max(8px, calc(10px * var(--u)));
    width: 100%;
    padding: calc(6px * var(--u)) calc(8px * var(--u));
    border: 2px solid var(--o-line-soft);
    background: var(--o-cell);
    color: var(--o-text);
    font: inherit;
    text-align: left;
    text-shadow: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.oshi-enemy[aria-expanded="true"] {
    border-color: var(--o-accent);
}
.oshi-enemy .oshi-sprites,
.oshi-item-card .oshi-sprites,
.oshi-item-cell .oshi-sprites {
    min-width: 0;
}
.oshi-enemy-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.oshi-enemy-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}
.oshi-special {
    font-size: 12px;
}
.oshi-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0 max(10px, calc(12px * var(--u)));
    font-size: max(12px, calc(12px * var(--u)));
}
.oshi-stat-label {
    margin-right: 4px;
    color: var(--o-muted);
    font-weight: 400;
}
.oshi-enemy-detail {
    margin-top: calc(-6px * var(--u));
    padding: calc(6px * var(--u)) calc(10px * var(--u));
    border: 2px solid var(--o-accent);
    border-top: 0;
    background: var(--o-cell);
    font-weight: 400;
}
.oshi-rich {
    margin: 2px 0;
}
.oshi-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    vertical-align: middle;
}
.oshi-chip {
    padding: 0 5px;
    border: 1px solid var(--o-line);
    font-size: 12px;
}

/* 道具：顶上是选中那一件的说明与「使用」，下面两栏格子；选中的格子橙边，再点一下就用 */
.oshi-item-card {
    display: flex;
    align-items: center;
    gap: max(8px, calc(10px * var(--u)));
    padding: calc(8px * var(--u));
    border: 2px solid var(--o-line-soft);
    background: var(--o-cell);
}
.oshi-item-words {
    flex: 1;
    min-width: 0;
}
.oshi-item-title {
    color: var(--o-title);
}
.oshi-item-text {
    margin: 2px 0 0;
    font-weight: 400;
}
.oshi-section-title {
    margin: calc(4px * var(--u)) 0 0;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--o-title);
}
.oshi-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(44px, calc(52px * var(--u))), 1fr));
    gap: 6px;
}
.oshi-item-cell {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid var(--o-line-soft);
    background: var(--o-cell);
    color: var(--o-text);
    cursor: pointer;
    transition: border-color 0.15s ease, translate 0.15s ease;
}
.oshi-item-cell[aria-pressed="true"] {
    border-color: var(--o-accent);
}
.oshi-count {
    position: absolute;
    right: 3px;
    bottom: 1px;
    font: 700 12px/1 "Microsoft YaHei", "PingFang SC", Verdana, sans-serif;
    text-shadow: var(--o-shadow);
}
.oshi-go:disabled {
    border-color: var(--o-disabled);
    background: transparent;
    color: var(--o-muted);
    cursor: default;
}

/* 飞行：左边那一层的缩略图（点它直接飞），右边去过的楼层；手机竖屏上下排 */
.oshi-body.oshi-fly {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: max(8px, calc(10px * var(--u)));
    overflow: hidden;
}
body.oshi-tall .oshi-body.oshi-fly {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
}
.oshi-fly-preview {
    align-self: start;
    padding: 0;
    border: 2px solid var(--o-line);
    background: var(--o-well);
    cursor: pointer;
    transition: border-color 0.15s ease;
}
body.oshi-tall .oshi-fly-preview {
    justify-self: center;
    width: min(100%, 260px);
}
.oshi-fly-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}
.oshi-fly-side {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
/* 箭头一列：▲▲ ▲ 楼层名 ▼ ▼▼（手机竖屏横排）；每一枚就是图标本身，不套圈，悬停换色、抬一点，到头了变灰 */
.oshi-fly-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
body.oshi-tall .oshi-fly-arrows {
    flex-direction: row;
    justify-content: center;
    gap: 4px;
}
/* 横排时左低右高：▼▼ ▼ 楼层名 ▲ ▲▲ */
body.oshi-tall .oshi-fly-arrows > :nth-child(1) {
    order: 5;
}
body.oshi-tall .oshi-fly-arrows > :nth-child(2) {
    order: 4;
}
body.oshi-tall .oshi-fly-arrows > :nth-child(3) {
    order: 3;
}
body.oshi-tall .oshi-fly-arrows > :nth-child(4) {
    order: 2;
}
body.oshi-tall .oshi-fly-arrows > :nth-child(5) {
    order: 1;
}
.oshi-arrow {
    display: inline-flex;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    color: var(--o-text);
    cursor: pointer;
    transition: translate 0.15s ease, color 0.15s ease;
}
.oshi-arrow svg {
    width: max(22px, calc(26px * var(--u)));
    height: max(22px, calc(26px * var(--u)));
}
.oshi-arrow:disabled {
    color: var(--o-disabled);
    cursor: default;
}
.oshi-fly-name {
    min-width: 6em;
    padding: 6px 0;
    text-align: center;
    font-size: max(14px, calc(17px * var(--u)));
}
.oshi-fly-error {
    margin: 0;
    color: var(--o-danger);
    font-weight: 400;
}
.oshi-here {
    display: block;
    font-size: 12px;
    color: var(--o-title);
}

@media (hover: hover) and (pointer: fine) {
    .oshi-enemy:hover,
    .oshi-fly-preview:hover {
        border-color: var(--o-accent);
    }
    .oshi-item-cell:not([aria-pressed="true"]):hover {
        border-color: var(--o-title);
        color: var(--o-title);
    }
    .oshi-item-cell:hover,
    .oshi-arrow:not(:disabled):hover {
        translate: 0 -2px;
    }
    .oshi-arrow:not(:disabled):hover {
        color: var(--o-title);
    }
}
@media (prefers-reduced-motion: reduce) {
    .oshi-enemy,
    .oshi-item-cell,
    .oshi-fly-preview,
    .oshi-arrow {
        transition: none;
    }
}

/* 变身提示（oshi.js 的 announceBrave）：地图中间一块小卡，浮上来、停三秒、淡出；不挡点击 */
.oshi-toast {
    --u: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 380;
    display: flex;
    align-items: center;
    gap: max(10px, calc(12px * var(--u)));
    width: max-content;
    max-width: 86%;
    padding: calc(10px * var(--u)) calc(16px * var(--u));
    border: 3px solid var(--o-frame);
    background: var(--o-panel);
    box-shadow: var(--o-panel-shade);
    color: var(--o-text);
    font: 700 max(12px, calc(13px * var(--u)))/1.5 "Microsoft YaHei", "PingFang SC", Verdana, sans-serif;
    text-shadow: var(--o-shadow);
    pointer-events: none;
    translate: -50% -50%;
    animation: oshi-toast-in 0.35s ease-out both;
    transition: opacity 0.5s ease, translate 0.5s ease;
}
.oshi-toast-out {
    opacity: 0;
    translate: -50% -60%;
}
.oshi-toast-art {
    flex: none;
    width: max(48px, calc(60px * var(--u)));
    height: auto;
}
.oshi-toast-words {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.oshi-toast-words b {
    font-size: max(14px, calc(17px * var(--u)));
    color: var(--o-title);
    text-shadow: var(--o-shadow-strong);
}
.oshi-toast-words span {
    font-weight: 400;
}
@keyframes oshi-toast-in {
    from {
        opacity: 0;
        translate: -50% -35%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .oshi-toast {
        animation: none;
        transition: none;
    }
    .oshi-toast-out {
        translate: -50% -50%;
    }
}

/* 高清虚质空间画风（oshi.js 的 HD，默认开，网址带 ?hd=0 切回原版） */
body.oshi-hd #gameDraw {
    background: #120c2c;
}
/* 原版地图外面一圈橙色描边（引擎按 globalAttribute.borderColor 画）：高清下换成与墙同色系的淡紫 */
body.oshi-hd #gameDraw,
body.oshi-hd #statusBar,
body.oshi-hd #toolBar {
    border-color: #b6a6e8 !important;
}
/* 地图外面（外圈与地图里的星空格也露出这一层）：达妮娅归途页的星云——深紫蓝打底，几团蓝、紫、粉、青的软光叠上去
   （颜色与位置照 src/components/denia/return/drift-render.ts 的 buildNebula），星屑是 oshi.js 撒的一层小圆点 */
.oshi-nebula {
    position: absolute;
    inset: 0;
    z-index: 5;
    background:
        radial-gradient(circle at 18% 22%, rgba(52, 80, 200, 0.42), transparent 42%),
        radial-gradient(circle at 78% 30%, rgba(120, 60, 200, 0.36), transparent 40%),
        radial-gradient(circle at 70% 82%, rgba(190, 70, 160, 0.2), transparent 38%),
        radial-gradient(circle at 25% 78%, rgba(40, 140, 200, 0.18), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(90, 70, 210, 0.3), transparent 55%),
        linear-gradient(180deg, #080616, #0c0a24 55%, #130b2c);
    pointer-events: none;
}
/* 状态栏与工具栏：站主 10-29 选的「书桌笔记本」。状态栏那一页纸是 oshi.js 画在 statusCanvas 上的，这里只把引擎内联写的石纹底换掉；
   工具栏是书桌的浅木色，按钮是一张张米白便签（原先顶上各贴一截斜的彩色胶带，站主同日要求去掉）；图标是 oshi-tiles.js 的书桌画法，不按像素放大 */
body.oshi-hd #statusBar {
    background: #fbf7ee !important;
}
body.oshi-hd #toolBar {
    background:
        repeating-linear-gradient(92deg, rgba(150, 100, 50, 0.06) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, #efd8b0, #dfc092) !important;
}
body.oshi-hd .oshi-bar {
    gap: 6px;
    padding: 5px 6px 4px;
}
body.oshi-hd .oshi-tool {
    position: relative;
    border-radius: 3px;
    background: #fffaf0;
    box-shadow: 0 2px 3px rgba(90, 60, 25, 0.28);
    color: #2a3358;
    text-shadow: none;
}
body.oshi-hd .oshi-tool-img {
    image-rendering: auto;
}
body.oshi-hd.oshi-tall .oshi-tool {
    border: 0;
    background: #fffaf0;
}
body.oshi-hd.oshi-tall .oshi-tool:active {
    background: #f4ecff;
}
@media (hover: hover) and (pointer: fine) {
    body.oshi-hd .oshi-tool:hover {
        color: #c43a7a;
    }
}
/* 流动的岩浆（oshi.js 的 lavaLayer）：星云之上、地面画布（#bg，z-index 10）之下；遮罩是这一层的岩浆范围，由 oshi.js 按层换 */
.oshi-lava {
    position: absolute;
    inset: 0;
    z-index: 7;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.oshi-lava-flow {
    position: absolute;
    inset: -10%;
    background: url(oshi/hd/lava.webp?v=1) center / 100% 100% no-repeat;
    animation: oshi-lava-drift 16s ease-in-out infinite alternate;
}
@keyframes oshi-lava-drift {
    from {
        transform: translate(-4%, 2%);
    }
    to {
        transform: translate(4%, -2%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .oshi-lava-flow {
        animation: none;
    }
}
.oshi-dust {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* 地图里星空格上那一层会动的星（oshi.js 的 voidLayer）：夹在背景画布（z 10）与图块（z 30）之间，遮罩只留星空格，遮罩图由 showVoid 按这一层算 */
.oshi-void {
    position: absolute;
    inset: 0;
    z-index: 11;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.oshi-void[hidden] {
    display: none;
}
.oshi-dust-1 {
    opacity: 0.55;
}
/* 四角亮星：与载入画面那颗同一个形，带一点光晕；平时停在半亮 */
.oshi-spark {
    position: absolute;
    opacity: 0.6;
    filter: drop-shadow(0 0 3px rgba(240, 220, 255, 0.85));
}
/* 流星：整块铺满星云那一层、自己是透明的，划过的那一道是 ::before；平移用 transform 的百分比（按这一层的宽高算，全屏时一样划满） */
.oshi-meteor {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.oshi-meteor::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 0;
    width: 16%;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(255, 240, 255, 0), rgba(255, 240, 255, 0.95));
    box-shadow: 0 0 6px rgba(255, 210, 250, 0.6);
    transform: rotate(16deg);
    transform-origin: right center;
}
/* 星云动起来（2026-10-29，站主：序章岩浆在流、星星却不动）：星点各按自己的节拍明暗交替（节拍写在每颗的 style 里，oshi.js 的 nebulaLayer）；
   星云再叠一层同色系的光斑，用 transform 慢慢平移（走合成，不逐帧重绘）。减少动效时都不动 */
.oshi-nebula {
    overflow: hidden;
}
.oshi-nebula::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 35%, rgba(80, 90, 220, 0.22), transparent 30%),
        radial-gradient(circle at 68% 62%, rgba(170, 70, 190, 0.16), transparent 28%);
}
@media (prefers-reduced-motion: no-preference) {
    /* 两层小星点反相明暗：一层亮起来时另一层暗下去，看着是一片此起彼伏；第一层另外极慢地漂 */
    .oshi-dust-0 {
        animation: oshi-dust-a 4.8s ease-in-out infinite alternate, oshi-dust-drift 70s ease-in-out infinite alternate;
    }
    .oshi-dust-1 {
        animation: oshi-dust-b 4.8s ease-in-out infinite alternate;
    }
    .oshi-spark {
        animation-name: oshi-spark;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
    }
    .oshi-meteor {
        animation: oshi-meteor 12s linear 3s infinite;
    }
    .oshi-nebula::before {
        animation: oshi-nebula-drift 46s ease-in-out infinite alternate;
    }
}
@keyframes oshi-dust-a {
    from { opacity: 1; }
    to { opacity: 0.3; }
}
@keyframes oshi-dust-b {
    from { opacity: 0.25; }
    to { opacity: 1; }
}
@keyframes oshi-dust-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-3%, 2%); }
}
@keyframes oshi-spark {
    0%, 100% { opacity: 0.3; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}
/* 12 秒一轮，前一成多一点划过，其余时间藏着 */
@keyframes oshi-meteor {
    0% { opacity: 0; transform: translate(-25%, -6%); }
    2% { opacity: 1; }
    11% { opacity: 0; transform: translate(90%, 26%); }
    100% { opacity: 0; transform: translate(90%, 26%); }
}
@keyframes oshi-nebula-drift {
    from { transform: translate(-4%, -3%); }
    to { transform: translate(4%, 3%); }
}

/* 面板、提示卡与对话框之外的那几页：高清画风下是状态栏那一页纸的配色——米白底、淡紫边、深海军蓝字、玫红标题、粉色的选中与按钮，不描黑边 */
body.oshi-hd {
    --o-dim: rgba(24, 16, 56, 0.62);
    --o-frame: #b6a6e8;
    --o-panel: #fbf7ee;
    --o-panel-shade: 0 8px 24px rgba(20, 10, 60, 0.35);
    --o-shadow: none;
    --o-shadow-strong: none;
    --o-title: #c43a7a;
    --o-hover: #c43a7a;
    --o-accent: #e2578f;
    --o-on-accent: #fff;
    --o-text: #2a3358;
    --o-line: #cfc4ee;
    --o-line-soft: rgba(182, 166, 232, 0.45);
    --o-knob: #cfc4ee;
    --o-well: #f1ecfb;
    --o-step: #ece6fa;
    --o-step-hover: #cfc4ee;
    --o-step-border: #b6a6e8;
    --o-cell: #ffffff;
    --o-muted: #5a6290;
    --o-disabled: #c9c2e0;
    --o-danger: #d23a5a;
}
/* 卡提希娅篇（2026-11-05，站主选的 4-B 树篱 + 土路）：边框与线换成叶绿，标题、选中与按钮换成青绿；oshi.js 的 PAL 是同一套 */
body.oshi-hd.oshi-tower-cartethyia {
    --o-frame: #a3c77a;
    --o-title: #268c80;
    --o-hover: #268c80;
    --o-accent: #2f9e8f;
    --o-line: #d3e4bd;
    --o-line-soft: rgba(163, 199, 122, 0.45);
    --o-knob: #d3e4bd;
    --o-well: #eff5e6;
    --o-step: #eaf2de;
    --o-step-hover: #d3e4bd;
    --o-step-border: #a3c77a;
}
body.oshi-hd.oshi-tower-cartethyia #gameDraw,
body.oshi-hd.oshi-tower-cartethyia #statusBar,
body.oshi-hd.oshi-tower-cartethyia #toolBar {
    border-color: #a3c77a !important;
}
body.oshi-hd .oshi-panel,
body.oshi-hd .oshi-toast {
    border-width: 2px;
    border-radius: 10px;
}
body.oshi-hd .oshi-slot,
body.oshi-hd .oshi-enemy,
body.oshi-hd .oshi-item-card,
body.oshi-hd .oshi-item-cell,
body.oshi-hd .oshi-fly-preview,
body.oshi-hd .oshi-link,
body.oshi-hd .oshi-tab,
body.oshi-hd .oshi-go,
body.oshi-hd .oshi-switch,
body.oshi-hd .oshi-seg button {
    border-radius: 6px;
}
body.oshi-hd .oshi-switch::after {
    border-radius: 4px;
}
/* 高清图不按像素放大 */
body.oshi-hd .oshi-sprite,
body.oshi-hd .oshi-thumb,
body.oshi-hd .oshi-fly-preview canvas {
    image-rendering: auto;
}
body.oshi-hd .oshi-sprite-hd {
    width: max(30px, calc(36px * var(--u)));
    height: max(30px, calc(36px * var(--u)));
    object-fit: contain;
}

/* 标题页（oshi.js 的 HD 段）：C「塔门前」铺满，标题是一块米白小牌子（思源黑体）；按钮那一块是米白纸、深海军蓝字，选中项描粉 */
body.oshi-hd #startPanel {
    background-color: #120c2c;
}
body.oshi-hd #startBackground {
    object-fit: cover;
    /* 照游戏厅入口卡拼的那张（scripts/mota/build-title.py）：塔门与两人都在正中那一段，竖屏手机裁两边也裁不到 */
    object-position: 50% 50%;
}
@font-face {
    font-family: "Oshi Title";
    font-weight: 900;
    src: url(oshi/fonts/noto-sans-sc-900-title.woff2) format("woff2");
}
@font-face {
    font-family: "Oshi Title";
    font-weight: 700;
    src: url(oshi/fonts/noto-sans-sc-700-title.woff2) format("woff2");
}
.oshi-title-plate {
    position: absolute;
    z-index: 290;
    top: 3%;
    left: 50%;
    translate: -50% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 22px 10px;
    border: 2px solid #b6a6e8;
    border-radius: 10px;
    background: #fbf7ee;
    box-shadow: 0 6px 18px rgba(20, 10, 60, 0.35);
    color: #2a3358;
    white-space: nowrap;
    pointer-events: none;
}
.oshi-title-name {
    padding-left: 0.18em;
    font: 900 clamp(26px, 8vmin, 48px)/1 "Oshi Title", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.18em;
}
/* 三个按钮排成一横排压在最下面：竖着排会盖住图中间站着的爱弥斯 */
/* 标题页的两个按钮（站主 10-29：「做得很差」）。原先是一条米白长条里两行字：两个按钮看不出是按钮、谁主谁次分不出，
   引擎给选中项加的闪烁描边又在长条里再框一圈，框里套框。现在是两枚独立的按钮——「开始游戏」实心粉，「载入游戏」米白描边，同宽、同高，
   外面那一条底不画；键盘选中的那一枚用一圈柔光表示，不闪 */
body.oshi-hd #startButtonGroup {
    min-width: 0 !important;
    margin-bottom: 5% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
    opacity: 1 !important;
    color: inherit !important;
    font-size: 1em !important;
    white-space: nowrap;
}
body.oshi-hd #startButtons {
    font-size: 0;
}
body.oshi-hd .startButton {
    display: inline-block;
    box-sizing: border-box;
    width: clamp(112px, 26vmin, 156px);
    margin: 0 6px;
    padding: 11px 0;
    border: 2px solid #b6a6e8;
    border-radius: 12px;
    background: #fbf7ee;
    box-shadow: 0 6px 16px rgba(20, 10, 60, 0.35);
    color: #2a3358;
    font: 700 clamp(15px, 3.4vmin, 18px)/1 "Microsoft YaHei", "PingFang SC", sans-serif;
    letter-spacing: 0.12em;
    text-align: center;
    transition: translate 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
body.oshi-hd .startButton:first-child {
    border-color: #e2578f;
    background: #e2578f;
    color: #fff;
}
body.oshi-hd .startButton.onChoiceAnimate {
    animation: none;
    box-shadow: 0 6px 16px rgba(20, 10, 60, 0.35), 0 0 0 4px rgba(255, 214, 244, 0.55);
}
@media (hover: hover) and (pointer: fine) {
    body.oshi-hd .startButton:hover {
        translate: 0 -2px;
        background: #ffffff;
    }
    body.oshi-hd .startButton:first-child:hover {
        background: #ec6da0;
    }
}
body.oshi-hd .startButton:active {
    translate: 0 1px;
}
@media (prefers-reduced-motion: reduce) {
    body.oshi-hd .startButton {
        transition: none;
    }
}

/* 载入中那一屏（引擎的 #startTop）：原版是黑底、白条进度、底下一行 h5mota 平台的链接。换成星云底、一道细细的粉色进度条，平台链接不出 */
#startTop {
    background:
        radial-gradient(circle at 18% 22%, rgba(52, 80, 200, 0.42), transparent 42%),
        radial-gradient(circle at 78% 30%, rgba(120, 60, 200, 0.36), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(90, 70, 210, 0.3), transparent 55%),
        linear-gradient(180deg, #080616, #0c0a24 55%, #130b2c) !important;
}
#startTopProgressBar {
    top: 50% !important;
    left: 20%;
    width: 60% !important;
    height: 4px !important;
    margin: 0 !important;
    border-radius: 2px;
    background: rgba(251, 247, 238, 0.18) !important;
    overflow: hidden;
}
#startTopProgress {
    border-radius: 2px;
    background: #f2a7cf !important;
}
/* 进度条底下那一行（引擎写「正在加载图片 magictower.png…」这样的文件名）：给开发者看的，英文页也是中文，不出（2026-10-29） */
#startTopLoadTips {
    display: none !important;
}
#startTopHint {
    display: none !important;
}
/* 载入动画（oshi.js 的 loadingMark，2026-10-29）：照 mota-js 开场标志那样淡入——四角星先亮，字随后浮出，进度条最后出来；载入期间四角星慢慢呼吸 */
.oshi-loading {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(50% + 26px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.oshi-loading-star {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    fill: #f2a7cf;
    filter: drop-shadow(0 0 6px rgba(242, 167, 207, 0.55));
}
.oshi-loading-name {
    padding-left: 0.18em;
    color: #fbf7ee;
    font: 900 34px/1 "Oshi Title", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.18em;
}
@media (prefers-reduced-motion: no-preference) {
    .oshi-loading-star {
        animation: oshi-star-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both, oshi-star-breathe 2.4s ease-in-out 0.7s infinite;
    }
    .oshi-loading-name {
        animation: oshi-rise-in 0.6s ease-out both;
        animation-delay: 0.35s;
    }
    #startTopProgressBar {
        animation: oshi-fade-in 0.5s ease-out 0.7s both;
    }
}
@keyframes oshi-star-in {
    from { opacity: 0; transform: scale(0.4) rotate(-45deg); }
    to { opacity: 1; transform: none; }
}
@keyframes oshi-star-breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}
@keyframes oshi-rise-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes oshi-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 开场的三格片头（oshi.js 的 playIntro）：盖住整块游戏，一格一格淡入、画面慢慢推近，每格下面一句；「跳过」是右上角一行字，不套框 */
.oshi-intro {
    position: absolute;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    background: #0c0a24;
    cursor: pointer;
    transition: opacity 0.45s ease;
}
.oshi-intro.out {
    opacity: 0;
}
.oshi-intro-frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.oshi-intro-frame.on {
    opacity: 1;
}
.oshi-intro-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1.02;
    transition: scale 3.4s linear;
}
.oshi-intro-frame.on .oshi-intro-art {
    scale: 1.09;
}
.oshi-intro-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 34px 18px 18px;
    background: linear-gradient(transparent, rgba(12, 10, 36, 0.82) 45%);
    color: #fbf7ee;
    font: 700 clamp(14px, 3.6vmin, 20px)/1.6 "Microsoft YaHei", "PingFang SC", sans-serif;
    letter-spacing: 0.06em;
    text-align: center;
    text-shadow: 0 1px 4px rgba(12, 10, 36, 0.8);
    translate: 0 8px;
    transition: translate 0.7s ease 0.15s;
}
.oshi-intro-frame.on .oshi-intro-line {
    translate: 0 0;
}
.oshi-intro-line p {
    margin: 0;
    text-wrap: balance;
}
/* 两句的那一格：第二句晚一点出来 */
.oshi-intro-line p + p {
    opacity: 0;
    transition: opacity 0.6s ease 1.4s;
}
.oshi-intro-frame.on .oshi-intro-line p + p {
    opacity: 1;
}
.oshi-intro-skip {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    padding: 4px 6px;
    border: 0;
    background: transparent;
    color: rgba(251, 247, 238, 0.85);
    font: 700 13px/1 "Microsoft YaHei", "PingFang SC", sans-serif;
    text-shadow: 0 1px 3px rgba(12, 10, 36, 0.9);
    cursor: pointer;
    transition: color 0.15s ease, translate 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
    .oshi-intro-skip:hover {
        color: #ffd6f4;
        translate: 0 -1px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .oshi-intro,
    .oshi-intro-frame,
    .oshi-intro-art,
    .oshi-intro-line,
    .oshi-intro-skip,
    .oshi-intro-line p + p {
        transition: none;
    }
    .oshi-intro-frame.on .oshi-intro-art {
        scale: 1.02;
    }
}
