/* harbor-merge/styles.css — 温暖明亮手绘海岛餐厅主题 */
:root {
  --bg-cream: #fff7ec;
  --bg-warm: #f9ead6;
  --panel-bg: #fffdf9;
  --wood-dark: #7a4b2e;
  --wood-mid: #a66c44;
  --tile-a: #fdf6ea;
  --tile-b: #f2e1c7;
  --ink: #4a2c1d;
  --ink-muted: #8c6a54;
  --coral: #e76f51;
  --coral-dark: #c95236;
  --mint: #2a9d8f;
  --mint-light: #d8f3ee;
  --gold: #e9a825;
  --sky: #3a86ff;
  --border-soft: rgba(122, 75, 46, 0.18);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: linear-gradient(180deg, #fff5e6 0%, #fce8cc 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

button {
  font-family: inherit; cursor: pointer; border: none; outline: none;
  transition: transform 0.12s ease, filter 0.14s ease, background 0.16s ease;
}
button:active { transform: scale(0.96); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.hidden { display: none !important; }
.muted { color: var(--ink-muted); font-size: 12px; }

/* 餐厅顶部条纹遮阳篷装饰 */
.awning-stripe {
  height: 10px;
  background: repeating-linear-gradient(90deg, #e76f51 0 28px, #fff8ee 28px 56px);
  box-shadow: 0 3px 8px rgba(122, 75, 46, 0.15);
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== 顶栏 ==================== */
.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  background: var(--panel-bg);
  border: 2px solid #e6cdb0;
  border-radius: 18px;
  padding: 8px 14px;
  box-shadow: 0 6px 18px rgba(122, 75, 46, 0.1);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, #fde68a, #f4a261);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand-title { margin: 0; font-size: 19px; font-weight: 900; color: var(--ink); letter-spacing: 1px; }
.lv-pill {
  background: var(--mint); color: #fff; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
}
.xp-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.xp-bar { width: 104px; height: 7px; border-radius: 999px; background: #eddcc6; overflow: hidden; }
.xp-fill { height: 100%; background: linear-gradient(90deg, #2a9d8f, #52b788); transition: width 0.3s; }
.score-tag { font-size: 11.5px; font-weight: 800; color: #c96b20; }

.resource-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res-chip {
  display: flex; align-items: center; gap: 6px;
  background: #fff6e8; border: 1.5px solid #e5c9a8; border-radius: 999px;
  padding: 4px 12px; font-size: 14px;
}
.res-ico { font-size: 16px; }
.tiny-sub { font-size: 10px; color: var(--ink-muted); line-height: 1; }
.mini-pill-btn {
  background: linear-gradient(135deg, #2a9d8f, #21867a); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
}
.mini-pill-btn.cooldown { background: #cbb79e; color: #5c4033; }

.top-btns { display: flex; gap: 7px; }
.warm-btn {
  background: #fff3e0; border: 1.5px solid #dfb992; color: var(--ink);
  padding: 7px 12px; border-radius: 12px; font-size: 13px; font-weight: 700;
}
.warm-btn:hover { background: #fde6c4; }
.warm-btn.icon-only { padding: 7px 10px; }

/* ==================== 主工作区 ==================== */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 14px;
  align-items: start;
}

.board-column { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }

/* 顾客订单条 */
.orders-wrapper {
  background: var(--panel-bg);
  border: 2px solid #e6cdb0;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 5px 14px rgba(122, 75, 46, 0.08);
}
.streak-bar-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; font-weight: 800;
}
.streak-label { color: var(--coral-dark); white-space: nowrap; }
.streak-track { flex: 1; height: 9px; background: #f1e0c6; border-radius: 999px; overflow: hidden; }
.streak-fill { height: 100%; background: linear-gradient(90deg, #f4a261, #e76f51); transition: width 0.3s; }
.streak-num { color: var(--ink-muted); font-size: 11.5px; }

.orders-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.order-card {
  background: #fff9f0; border: 1.8px solid #e4cbb0; border-radius: 13px; padding: 8px;
  display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s, box-shadow 0.2s;
}
.order-card.ready {
  background: #edfaf6; border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.22);
}
.order-cust { display: flex; align-items: center; gap: 6px; }
.cust-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; border: 1.5px solid var(--ink); flex-shrink: 0;
}
.cust-name { font-size: 12px; font-weight: 800; }
.order-reqs { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.req-slot {
  position: relative; width: 46px; height: 46px; border-radius: 10px;
  background: #fff; border: 1.5px solid #e5d2bc; padding: 3px; cursor: pointer;
}
.req-slot.met { border-color: var(--mint); background: #d8f3ee; }
.req-slot .item-svg { width: 100%; height: 100%; display: block; }
.req-lv {
  position: absolute; bottom: -2px; right: -2px; background: var(--ink); color: #fff;
  font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 5px;
}
.req-check {
  position: absolute; top: -4px; right: -4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--mint); color: #fff; font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.order-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; color: #b5651d; }
.btn-deliver {
  width: 100%; padding: 5px 8px; border-radius: 9px; font-size: 12px; font-weight: 900;
  background: linear-gradient(135deg, #2a9d8f, #1f7f73); color: #fff;
  box-shadow: 0 3px 8px rgba(42, 157, 143, 0.35);
  animation: gentleBounce 1.2s ease-in-out infinite;
}
@keyframes gentleBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ==================== 7x8 暖木合成棋盘 ==================== */
.board-wood-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(145deg, #a86f47, #7a4b2e);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 9px;
  box-shadow: 0 12px 28px rgba(74, 44, 29, 0.25), inset 0 2px 6px rgba(255, 240, 215, 0.35);
}

.merge-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  touch-action: none;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  background: var(--tile-a);
  border: 1.5px solid rgba(122, 75, 46, 0.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s;
}
.tile.alt { background: var(--tile-b); }
.tile.selected {
  box-shadow: 0 0 0 3px var(--coral), inset 0 0 0 2px #fff;
  z-index: 3;
}
.tile.merge-target {
  box-shadow: 0 0 0 3px #2a9d8f, 0 0 14px rgba(42, 157, 143, 0.6);
  background: #e1f7f3;
  animation: targetPulse 0.7s ease-in-out infinite alternate;
}
@keyframes targetPulse { from { transform: scale(1); } to { transform: scale(1.04); } }

.tile.order-needed::after {
  content: '✓';
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint); color: #fff; font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; z-index: 4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.tile.hint-wiggle .tile-item {
  animation: wiggleHint 0.9s ease-in-out infinite;
}
@keyframes wiggleHint {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.09) rotate(-6deg); }
  75% { transform: scale(1.09) rotate(6deg); }
}

.tile.pop-in .tile-item { animation: popBounce 0.28s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes popBounce { 0% { transform: scale(0.35); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }

.tile-item {
  width: 93%; height: 93%; position: relative; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.tile-item .item-svg { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 3px rgba(74, 44, 29, 0.22)); }
.tile-item .item-png { filter: drop-shadow(0 2px 4px rgba(74, 44, 29, 0.14)); }
.tile.dragging-src .tile-item { opacity: 0.25; }

/* 蜘蛛网锁定格 */
.tile.cobweb { background: #dfd3c3; }
.tile.cobweb .tile-item { opacity: 0.56; filter: saturate(0.55); }
.cobweb-overlay {
  position: absolute; inset: 0; border-radius: 10px; pointer-events: none; z-index: 3;
  background:
    radial-gradient(circle at 50% 50%, transparent 25%, rgba(255,255,255,0.52) 100%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.42) 0deg 2deg, transparent 2deg 36deg);
  border: 1.5px dashed rgba(140, 106, 84, 0.45);
}

/* 限时泡泡 */
.bubble-overlay {
  position: absolute; inset: 2px; border-radius: 50%; pointer-events: none; z-index: 4;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.85) 0%, rgba(125,211,252,0.28) 45%, rgba(244,114,182,0.32) 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.7), 0 3px 8px rgba(59,130,246,0.25);
  animation: bubbleFloat 1.8s ease-in-out infinite alternate;
}
@keyframes bubbleFloat { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
.bubble-timer {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: rgba(58, 134, 255, 0.92); color: #fff; font-size: 9.5px; font-weight: 800;
  padding: 1px 5px; border-radius: 999px; white-space: nowrap;
}

.item-lv-tag {
  position: absolute; bottom: 2px; left: 3px; z-index: 3;
  background: rgba(74, 44, 29, 0.8); color: #fff9f0; font-size: 9px; font-weight: 800;
  padding: 0px 4px; border-radius: 4px; line-height: 1.35;
}
.gen-cd-overlay {
  position: absolute; inset: 0; border-radius: 10px; background: rgba(74, 44, 29, 0.52);
  color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; z-index: 4;
}
.gen-ready-badge {
  position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #ea580c); border: 1.5px solid #fff;
  color: #fff; font-size: 10px; font-weight: 900; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(180, 60, 10, 0.45); z-index: 4;
}
.gen-ready-badge.auto {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 2px 5px rgba(22, 163, 74, 0.45);
}
.res-ico-img { width: 22px; height: 22px; object-fit: contain; display: block; flex-shrink: 0; }
.mini-res-inline { display: inline-flex; align-items: center; gap: 2px; }
.mini-res-img { width: 14px; height: 14px; object-fit: contain; display: inline-block; vertical-align: -2px; }

.board-fx-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.fx-float {
  position: absolute; font-size: 14px; font-weight: 900; color: #c95236;
  text-shadow: 0 2px 0 #fff, 0 0 8px rgba(255,255,255,0.9);
  animation: fxRise 0.85s ease forwards; white-space: nowrap;
}
@keyframes fxRise { from { opacity: 1; transform: translate(-50%, 0) scale(0.9); } to { opacity: 0; transform: translate(-50%, -36px) scale(1.1); } }

/* ==================== 右侧控制台 ==================== */
.side-column { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
.panel-card {
  background: var(--panel-bg); border: 2px solid #e6cdb0; border-radius: 16px; padding: 12px;
  box-shadow: 0 5px 14px rgba(122, 75, 46, 0.08);
}
.panel-title-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 800; margin-bottom: 8px; }

.booster-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.boost-btn {
  padding: 8px 6px; border-radius: 10px; background: #fff4e4; border: 1.5px solid #e2c4a3;
  color: var(--ink); font-size: 12px; font-weight: 800;
}
.boost-btn.active {
  background: linear-gradient(135deg, #f4a261, #e76f51); border-color: var(--ink); color: #fff;
  box-shadow: 0 3px 10px rgba(231, 111, 81, 0.35);
}

.reward-card { background: linear-gradient(135deg, #fff5d6, #ffe8cc); border-color: #f4a261; }
.reward-card-inner { display: flex; align-items: center; gap: 10px; }
.reward-ico-box { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1.5px solid #e9a825; padding: 4px; flex-shrink: 0; }
.reward-ico-box .item-svg { width: 100%; height: 100%; }
.reward-info { flex: 1; min-width: 0; font-size: 13px; }
.cta-coral-sm {
  background: linear-gradient(135deg, #e76f51, #d45538); color: #fff;
  padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 800; white-space: nowrap;
}

.inspector-empty { text-align: center; padding: 14px 8px; font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
.insp-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.insp-ico { width: 54px; height: 54px; border-radius: 13px; background: #fff6e8; border: 2px solid #e2c4a3; padding: 4px; flex-shrink: 0; }
.insp-ico .item-svg { width: 100%; height: 100%; }
.insp-title { font-size: 15px; font-weight: 900; }
.insp-desc { font-size: 12px; color: var(--ink-muted); line-height: 1.45; margin-bottom: 10px; }
.insp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.insp-actions button { flex: 1; min-width: 82px; padding: 7px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.btn-mint { background: var(--mint); color: #fff; }
.btn-gold-warm { background: linear-gradient(135deg, #f6bd60, #e9a825); color: var(--ink); }
.btn-danger-soft { background: #fde8e8; color: #c53030; border: 1px solid #f8b4b4; }

.storage-card.drag-over { border-color: var(--mint); background: #edfaf6; box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.25); }
.storage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 185px; overflow-y: auto; }
.storage-slot {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px;
  background: #fff6e8; border: 1.5px dashed #d8bc9d;
  display: flex; align-items: center; justify-content: center; padding: 4px; cursor: pointer;
}
.storage-slot.filled { border-style: solid; border-color: #cfa77d; background: #fff; }
.storage-slot .item-svg { width: 100%; height: 100%; }

/* 拖拽幽灵 */
.drag-ghost {
  position: fixed; width: 72px; height: 72px; pointer-events: none; z-index: 2000;
  transform: translate(-50%, -50%) scale(1.16);
  filter: drop-shadow(0 10px 14px rgba(74, 44, 29, 0.35));
}
.drag-ghost .item-svg { width: 100%; height: 100%; }

/* ==================== 弹窗 ==================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(58, 34, 20, 0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 1500; padding: 14px;
}
.modal-card {
  width: 100%; max-width: 560px; max-height: calc(100vh - 30px); overflow-y: auto;
  background: var(--panel-bg); border: 2.5px solid var(--ink); border-radius: 20px; padding: 18px;
  box-shadow: 0 18px 40px rgba(74, 44, 29, 0.35);
}
.wide-modal { max-width: 720px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 19px; font-weight: 900; }
.modal-close { background: #f3e4d0; color: var(--ink); width: 32px; height: 32px; border-radius: 50%; font-weight: 900; }

.book-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.book-tab { padding: 6px 12px; border-radius: 999px; background: #f7ead8; color: var(--ink-muted); font-size: 12px; font-weight: 800; }
.book-tab.active { background: var(--coral); color: #fff; }
.book-chain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.book-item-card {
  background: #fff9f0; border: 1.5px solid #e6cdb0; border-radius: 12px; padding: 8px; text-align: center;
}
.book-item-card.highlight { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(231,111,81,0.3); }
.book-item-card.undiscovered { opacity: 0.45; filter: grayscale(0.7); }
.book-item-ico { width: 56px; height: 56px; margin: 0 auto 4px; }
.book-item-ico .item-svg { width: 100%; height: 100%; }

.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-row {
  display: flex; align-items: center; gap: 12px; background: #fff9f0;
  border: 1.5px solid #e6cdb0; border-radius: 13px; padding: 9px 12px;
}
.shop-ico { width: 46px; height: 46px; flex-shrink: 0; }
.shop-ico .item-svg { width: 100%; height: 100%; }
.shop-meta { flex: 1; }

.toast-box { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast-pill {
  background: var(--ink); color: #fff9f0; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(74, 44, 29, 0.35);
}

.settings-section {
  background: #fff9f0; border: 1.5px solid #e6cdb0; border-radius: 14px; padding: 12px; margin-bottom: 12px;
}
.settings-section.danger-zone { margin-bottom: 0; border-color: #f3c4c4; background: #fff6f6; }
.settings-title { font-size: 14px; font-weight: 900; color: var(--ink); }
.save-code-box {
  width: 100%; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #d9be9d;
  background: #fff; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; resize: none; user-select: text; -webkit-user-select: text;
  margin-bottom: 8px; word-break: break-all;
}
.settings-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-btn-row button { padding: 9px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 800; }

@media (max-width: 920px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .orders-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==================== 手机竖屏原生手游适配 ==================== */
@media (pointer: coarse) {
  .drag-ghost { transform: translate(-50%, -82%) scale(1.18); }
}

@media (max-width: 600px) {
  .awning-stripe { height: 5px; }
  .app-shell {
    padding: 6px 8px calc(18px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .workspace { gap: 7px; }
  .board-column { gap: 6px; }

  /* 顶栏紧凑两行：第1行品牌+按钮，第2行三项资源 */
  .topbar {
    padding: 6px 8px;
    border-radius: 13px;
    gap: 5px 6px;
  }
  .brand { gap: 5px; min-width: 0; }
  .brand-badge { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; flex-shrink: 0; }
  .brand-row { gap: 4px; }
  .brand-title { font-size: 14px; letter-spacing: 0; white-space: nowrap; }
  .lv-pill { font-size: 9.5px; padding: 1px 5px; }
  .xp-row { margin-top: 2px; gap: 4px; }
  .xp-bar { width: 48px; height: 4px; }
  .score-tag { font-size: 9.5px; white-space: nowrap; }

  .top-btns { gap: 3px; margin-left: auto; flex-shrink: 0; }
  .warm-btn { padding: 4px 7px; font-size: 11px; border-radius: 8px; white-space: nowrap; }
  .warm-btn.icon-only { padding: 4px 6px; }

  .resource-bar {
    width: 100%;
    order: 3;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .res-chip {
    padding: 3px 7px;
    font-size: 12px;
    gap: 4px;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
  }
  .res-chip.res-energy { flex: 1.85; justify-content: space-between; }
  .res-ico-img { width: 17px; height: 17px; }
  .tiny-sub { font-size: 9px; }
  .mini-pill-btn { font-size: 10px; padding: 3px 6px; }

  /* 订单条改为横向滑动单排，把整块 7x8 棋盘稳稳留在手机首屏内 */
  .orders-wrapper { padding: 6px 8px; border-radius: 13px; width: 100%; overflow: hidden; }
  .streak-bar-row { margin-bottom: 5px; font-size: 10.5px; gap: 6px; }
  .streak-track { height: 7px; }
  .orders-strip {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .orders-strip::-webkit-scrollbar { display: none; }
  .order-card {
    flex: 0 0 116px;
    padding: 5px 6px;
    border-radius: 10px;
    gap: 4px;
    scroll-snap-align: start;
  }
  .order-cust { gap: 4px; }
  .cust-avatar { width: 20px; height: 20px; font-size: 11px; }
  .cust-name { font-size: 10.5px; }
  .req-slot { width: 38px; height: 38px; border-radius: 8px; padding: 2px; }
  .req-lv { font-size: 8px; padding: 0 3px; }
  .order-foot { font-size: 10px; }
  .order-hint-sub { display: none; }
  .btn-deliver { padding: 4px 5px; font-size: 10.5px; }

  /* 紧凑棋盘：单屏 100% 完整呈现 7x8 全盘且触控跟手 */
  .board-wood-frame {
    width: 100%;
    max-width: 100%;
    padding: 5px;
    border-radius: 14px;
    border-width: 2.5px;
  }
  .merge-board { gap: 3px; width: 100%; }
  .tile { border-radius: 8px; }
  .item-lv-tag { font-size: 8px; padding: 0 3px; bottom: 1px; left: 2px; }
  .gen-ready-badge { width: 14px; height: 14px; font-size: 8.5px; top: 1px; right: 1px; }
  .tile.order-needed::after { width: 14px; height: 14px; font-size: 9px; top: 1px; right: 1px; }
  .bubble-timer { font-size: 8px; padding: 1px 3px; }

  /* 底部控制台紧贴棋盘下方，倍率栏也能在首屏一并看到 */
  .side-column { gap: 7px; }
  .panel-card { padding: 8px 10px; border-radius: 13px; }
  .panel-title-row { font-size: 12.5px; margin-bottom: 6px; }
  .boost-btn { padding: 6px 4px; font-size: 11.5px; }
  .storage-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .book-chain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .modal-card { padding: 14px; border-radius: 16px; }
}
