/* ゲーム基盤の最小スタイル。
   ゲーム UI は Phaser に完全統一されており、DOM に残るのは
   盤面 Canvas・内装 Canvas・テキスト入力ブリッジ・デバッグチップだけ。 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  background: radial-gradient(circle at 50% 30%, #10193b, #070b1e 58%, #040612);
  color: #eaf6ff;
  overflow: hidden;
  /* モバイルブラウザでは 100vh がアドレスバー裏まで含む大きな高さになり、
     固定配置の UI レイヤーと高さがずれて上下パネルが位置ずれして見える。
     dvh（見えている範囲の高さ）で両レイヤーを揃える（非対応環境は vh にフォールバック） */
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

#viewport-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

#main-canvas {
  width: 100%;
  height: 100%;
  display: block;
  /* タッチ操作（ドラッグ／ピンチ）をブラウザのスクロール・ズームに奪われない */
  touch-action: none;
}

/* Phaser UI ルートは pointer-events: none（index.html 側）で盤面への入力を
   素通しし、Phaser キャンバス本体だけが入力を受ける */
#phaser-ui-root canvas {
  pointer-events: auto;
}


/* ------------------------------------------------------------------ */
/* タイトル画面（スプラッシュ＋プリロード）。土台は index.html の静的 DOM、 */
/* 進行と操作は src/ui/title-screen.ts が担う。                          */
/* 電脳空間の世界観に合わせたディープネイビー＋ネオン発光テーマ。          */
/* ------------------------------------------------------------------ */
.title-screen {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #101c42, #080d24 55%, #040612);
  color: #eaf6ff;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  transition: opacity 400ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.title-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* 背景: 電脳空間1枚絵を敷き、ネオングラデーションで発光させる */
.title-screen .ts-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/cyber/bg_cyberspace.jpg") center / cover no-repeat;
  opacity: 0.42;
  filter: saturate(1.25);
  pointer-events: none;
}

.title-screen .ts-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0, 245, 255, 0.16), rgba(255, 43, 214, 0.22) 55%, rgba(4, 6, 18, 0.86));
}

.title-screen .ts-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 540px;
  max-height: 100%;
  overflow-y: auto;
}

.title-screen .ts-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(10, 18, 44, 0.72);
  border: 1px solid rgba(0, 245, 255, 0.45);
  color: #7eeeff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.22);
}

.title-screen .ts-logo {
  font-size: clamp(46px, 11vw, 76px);
  line-height: 1.05;
  margin: 12px 0 4px;
  font-weight: 400;
  color: #eaf6ff;
  text-shadow: 0 0 18px rgba(0, 245, 255, 0.55), 0 0 36px rgba(255, 43, 214, 0.38);
  animation: ts-logo-in 700ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.title-screen .ts-logo em {
  font-style: normal;
  background: linear-gradient(120deg, #39ff9e, #00f5ff 50%, #ff2bd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-screen .ts-tagline {
  font-size: clamp(14px, 3.6vw, 17px);
  color: #9ec8f0;
  margin-bottom: 10px;
}

.title-screen .ts-chars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  min-height: 0;
  margin: 2px 0 6px;
}

.title-screen .ts-char {
  height: clamp(96px, 22vh, 168px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(70, 63, 92, 0.22));
  animation: ts-float 3.2s ease-in-out infinite;
}

.title-screen .ts-char:last-child {
  animation-delay: 0.7s;
}

/* スプラッシュ中はロゴだけを見せ、操作系は隠す */
.title-screen.is-splash .ts-progress,
.title-screen.is-splash .ts-start-btn,
.title-screen.is-splash .ts-cloud-actions,
.title-screen.is-splash .ts-sub-actions,
.title-screen.is-splash .ts-save-note,
.title-screen.is-splash .ts-hint,
.title-screen.is-splash .ts-chars {
  opacity: 0;
  visibility: hidden;
}

.title-screen .ts-progress,
.title-screen .ts-start-btn,
.title-screen .ts-cloud-actions,
.title-screen .ts-sub-actions,
.title-screen .ts-save-note,
.title-screen .ts-hint,
.title-screen .ts-chars {
  transition: opacity 350ms ease;
}

.title-screen .ts-progress {
  margin: 14px auto 4px;
  max-width: 420px;
  text-align: left;
}

.title-screen .ts-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.14);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.title-screen .ts-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #39ff9e, #00f5ff, #ff2bd6);
  transition: width 250ms ease;
}

.title-screen .ts-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  color: #9ec8f0;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

.title-screen .ts-start-btn {
  margin-top: 18px;
  padding: 15px 38px;
  border-radius: 999px;
  border: none;
  font-size: 19px;
  font-weight: 700;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  background: linear-gradient(135deg, #00f5ff, #ff2bd6);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.45);
}

.title-screen .ts-start-btn:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.title-screen.is-ready .ts-start-btn:not(:disabled) {
  animation: ts-pulse 1.6s ease-in-out infinite;
}

.title-screen .ts-cloud-actions {
  margin: 18px auto 0;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.title-screen .ts-cloud-actions[hidden],
.title-screen .ts-start-btn[hidden] {
  display: none;
}

.title-screen .ts-cloud-actions .ts-cloud-btn {
  margin-top: 0;
  padding: 13px 24px;
  font-size: 17px;
}

.title-screen .ts-local-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 245, 255, 0.72);
  background: rgba(12, 24, 58, 0.88);
  color: #eaf6ff;
  font-size: 16px;
  font-weight: 700;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.24);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.title-screen .ts-local-btn:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.2);
  border-color: rgba(0, 245, 255, 0.98);
  transform: translateY(-1px);
}

.title-screen .ts-local-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.title-screen .ts-sub-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.title-screen .ts-sub-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 245, 255, 0.55);
  background: rgba(14, 22, 51, 0.78);
  color: #eaf6ff;
  font-size: 15px;
  font-weight: 700;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.22);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.title-screen .ts-sub-btn:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.2);
  border-color: rgba(0, 245, 255, 0.95);
  transform: translateY(-1px);
}

.title-screen .ts-sub-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.title-screen .ts-save-note {
  margin-top: 10px;
  font-size: 13px;
  color: #b7d8f6;
  min-height: 1.2em;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

.title-screen .ts-hint {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(158, 200, 240, 0.85);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

.title-screen .ts-error {
  margin: 16px auto 0;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(30, 12, 24, 0.88);
  border: 1px solid rgba(255, 72, 128, 0.55);
  color: #fecdd3;
  font-size: 13px;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

.title-screen .ts-reload-btn {
  margin-top: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.45);
  background: rgba(10, 22, 52, 0.9);
  color: #eaf6ff;
  font-size: 14px;
  cursor: pointer;
}

.title-screen .ts-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(158, 200, 240, 0.55);
  pointer-events: none;
}

@keyframes ts-logo-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ts-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes ts-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(0, 245, 255, 0.45); }
  50% { transform: scale(1.045); box-shadow: 0 0 32px rgba(255, 43, 214, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .title-screen .ts-logo,
  .title-screen .ts-char,
  .title-screen.is-ready .ts-start-btn:not(:disabled) {
    animation: none;
  }
}

/* ------------------------------------------------------------------ */
/* 横画面専用 レスポンシブ DOM HUD（ホーム画面用）                      */
/* ------------------------------------------------------------------ */
.landscape-hud {
  position: fixed;
  inset: 0;
  z-index: 560;
  pointer-events: none;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  color: #eaf6ff;
}

.lhud-top {
  position: fixed;
  top: calc(4px + env(safe-area-inset-top, 0px));
  left: calc(6px + env(safe-area-inset-left, 0px));
  right: calc(6px + env(safe-area-inset-right, 0px));
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  /* 上部バーだけ数字が読みやすい角ゴシックにする（日付・時計・所持金） */
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  border-radius: 22px;
  background: rgba(14, 22, 51, 0.78);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(36, 69, 114, 0.9);
  box-shadow: 0 4px 16px rgba(4, 6, 18, 0.45);
  pointer-events: auto;
  overflow: hidden;
}

.lhud-status {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #eaf6ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lhud-date-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1.1;
}

.lhud-date-text {
  display: block;
}

.lhud-time-meter {
  display: flex;
  align-items: center;
  gap: var(--lhud-meter-gap, 2px);
  padding-left: 2px;
}

.lhud-time-seg {
  width: var(--lhud-meter-size, 7px);
  height: var(--lhud-meter-size, 7px);
  border-radius: 1px;
  background: var(--lhud-meter-unlit, #676b73);
  flex: 0 0 auto;
}

.lhud-time-seg.is-lit {
  background: var(--lhud-meter-lit, #19d86c);
}

.lhud-time-seg.is-group-end {
  margin-right: var(--lhud-meter-group-gap, 6px);
}

.lhud-location {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  border: 1px solid rgba(0, 200, 255, 0.45);
  background: rgba(14, 26, 62, 0.88);
  color: #00f5ff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.lhud-music {
  flex: 1 1 120px;
  min-width: 64px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(36, 69, 114, 0.85);
  background: rgba(19, 31, 69, 0.9);
  color: #eaf6ff;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.lhud-music.is-playing {
  border-color: rgba(0, 200, 255, 0.75);
  color: #5cf0ff;
}

.lhud-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lhud-chip {
  height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  border: 1px solid rgba(36, 69, 114, 0.95);
  background: rgba(14, 22, 51, 0.95);
  color: #eaf6ff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

.lhud-chip.is-active {
  background: #ff2bd6;
  border-color: rgba(255, 255, 255, 0.85);
  color: #04121f;
}

.lhud-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(36, 69, 114, 0.95);
  background: rgba(19, 31, 69, 0.95);
  color: #eaf6ff;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lhud-icon-btn.is-active {
  border-color: #ff2bd6;
  color: #ff79e8;
}

.lhud-sub-controls {
  position: fixed;
  top: calc(54px + env(safe-area-inset-top, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100vw - 100px);
}

.lhud-policy-btn,
.lhud-skip-btn {
  pointer-events: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lhud-skip-btn {
  flex-shrink: 0;
  border-color: rgba(0, 245, 255, 0.55);
  color: #7ef9ff;
}

.lhud-skip-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lhud-dock {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  top: calc(50% + 22px);
  transform: translateY(-50%);
  max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(4px, 1vh, 8px);
  padding: clamp(5px, 1vh, 8px);
  border-radius: 22px;
  background: rgba(14, 22, 51, 0.84);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(36, 69, 114, 0.9);
  box-shadow: 0 6px 22px rgba(4, 6, 18, 0.55);
  pointer-events: auto;
  overflow-y: auto;
}

.lhud-dock-btn {
  position: relative;
  width: clamp(62px, 8vw, 78px);
  height: clamp(42px, calc((100dvh - 110px) / 6), 64px);
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(19, 31, 69, 0.72);
  color: #abc6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 3px;
}

.lhud-dock-btn.is-selected {
  background: rgba(34, 211, 238, 0.22);
  border-color: rgba(34, 211, 238, 0.85);
  color: #f1f7ff;
}

.lhud-dock-btn.is-disabled {
  opacity: 0.42;
  cursor: default;
}

.lhud-dock-icon {
  font-size: 22px;
  line-height: 1;
}

.lhud-dock-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lhud-dock-dot {
  position: absolute;
  top: 7px;
  right: 8px;
}

.lhud-icon-btn.is-recording,
.lhud-restore-rec.is-recording {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.72);
  color: #fecaca;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.55);
  animation: lhud-rec-pulse 1.2s ease-in-out infinite;
}

.lhud-icon-btn.is-armed,
.lhud-restore-rec.is-armed {
  border-color: #f59e0b;
  background: rgba(120, 53, 15, 0.65);
  color: #fde68a;
}

@keyframes lhud-rec-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.85); }
}

.lhud-restore-rec {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.rec-menu {
  position: fixed;
  z-index: 650;
  padding: 10px;
  border-radius: 14px;
  background: rgba(12, 18, 42, 0.96);
  border: 1.5px solid rgba(0, 245, 255, 0.42);
  box-shadow: 0 12px 32px rgba(3, 6, 20, 0.72);
  color: #eaf6ff;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  backdrop-filter: blur(10px);
}

.rec-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.rec-menu-title {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.rec-menu-status {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.rec-menu-status.is-recording {
  color: #fca5a5;
}

.rec-menu-status.is-armed {
  color: #fcd34d;
}

.rec-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(24, 34, 68, 0.9);
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.rec-menu-item:hover:not(:disabled) {
  background: rgba(36, 52, 98, 0.95);
  border-color: rgba(0, 245, 255, 0.72);
}

.rec-menu-item:disabled {
  opacity: 0.42;
  cursor: default;
}

.rec-menu-item.is-active {
  border-color: rgba(0, 245, 255, 0.85);
  background: rgba(8, 51, 68, 0.75);
  color: #7ef9ff;
}

.rec-menu-item.is-stop-ready:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.78);
  background: rgba(127, 29, 29, 0.52);
  color: #fecaca;
}

.rec-menu-item-icon {
  flex: 0 0 auto;
  width: 18px;
  text-align: center;
}

.rec-menu-item-label {
  flex: 1 1 auto;
}
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff2bd6;
  box-shadow: 0 0 6px #ff2bd6;
}

.lhud-restore-group {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.lhud-restore-shot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.lhud-restore {
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  border: 1.2px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

@media (max-height: 430px) {
  .lhud-top {
    height: 38px;
    top: calc(4px + env(safe-area-inset-top, 0px));
    padding: 0 8px;
    gap: 6px;
  }
  .lhud-status {
    font-size: 11px;
  }
  .lhud-date-block {
    gap: 2px;
  }
  .lhud-time-meter {
    gap: var(--lhud-meter-compact-gap, 2px);
  }
  .lhud-time-seg {
    width: var(--lhud-meter-compact-size, 6px);
    height: var(--lhud-meter-compact-size, 6px);
  }
  .lhud-time-seg.is-group-end {
    margin-right: var(--lhud-meter-compact-group-gap, 5px);
  }
  .lhud-music {
    height: 24px;
    font-size: 11px;
  }
  .lhud-chip {
    height: 24px;
    font-size: 10px;
    padding: 0 7px;
  }
  .lhud-icon-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .lhud-sub-controls {
    top: calc(46px + env(safe-area-inset-top, 0px));
  }
  .lhud-dock {
    padding: 5px;
    gap: 4px;
    right: calc(8px + env(safe-area-inset-right, 0px));
  }
  .lhud-dock-btn {
    width: 60px;
    height: clamp(38px, calc((100dvh - 86px) / 6), 48px);
  }
  .lhud-dock-icon {
    font-size: 18px;
  }
  .lhud-dock-label {
    font-size: 10px;
  }
}
