/* EmoPoke Work.105: initial-screen presentation only.
   Renderer, VMD, expression editing and settings logic are unchanged. */

/* The English gradient and Japanese rounded Gothic are a single lockup. */
.work-mobile .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  letter-spacing: normal;
}
.work-mobile .brand .star {
  flex: none;
  font-size: 25px;
  line-height: 1;
  color: #c4a9ff;
}
.work-mobile .brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: 1px;
}
.work-mobile .brand-en,
.work-mobile .empty-brand-en {
  display: block;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.02;
  background: linear-gradient(100deg, #f7f6ff 8%, #e1d3ff 50%, #bd80e6 96%);
  color: #f2eaff;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.work-mobile .brand-ja,
.work-mobile .empty-brand-ja {
  display: block;
  font-family: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "Arial Rounded MT Bold", "Meiryo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .07em;
  color: #e0c4fb;
}
.work-mobile #empty .empty-brand-en {
  font-size: clamp(35px, 9vw, 65px);
  margin: 0 0 4px;
}
.work-mobile #empty .empty-brand-ja {
  font-size: 16px;
  margin: 0 0 9px;
}
.work-mobile #empty .eyebrow { display: block; font-size: 9px; letter-spacing: .13em; }

/* The compact sheet still has finger-sized tabs, but no tall blank strip. */
@media (max-width:759px) and (orientation:portrait) {
  .work-mobile header { gap: 6px; padding-inline: 10px; }
  .work-mobile .brand { gap: 6px; }
  .work-mobile .brand-en { font-size: 20px; }
  .work-mobile .brand-ja { font-size: 10px; }
  .work-mobile .version { display: none; }

  .work-mobile .panel-handle {
    flex: 0 0 28px;
    height: 28px;
    min-height: 28px;
  }
  .work-mobile .panel-handle:after {
    content: none;
  }
  .work-mobile .panel-handle > span {
    width: 40px;
    height: 4px;
  }
  .work-mobile .workspace .tabs {
    flex: 0 0 auto;
    padding: 2px 9px 2px;
    gap: 4px;
  }
  .work-mobile .workspace .tabs button {
    min-height: 48px;
    padding: 3px 4px;
    font-size: 11px;
    line-height: 1.12;
    gap: 1px;
  }
  .work-mobile .workspace .tabs svg { width: 20px; height: 20px; }
  .work-mobile.panels-collapsed .workspace {
    height: calc(82px + max(env(safe-area-inset-bottom), 6px));
    padding-bottom: max(env(safe-area-inset-bottom), 6px);
  }
  .work-mobile.panels-collapsed #stage {
    bottom: calc(82px + max(env(safe-area-inset-bottom), 6px));
    height: auto;
  }
  .work-mobile.panels-collapsed #stageHint {
    bottom: 9px;
  }
  /* Open editing sheet owns the controls; never leave the stage buttons
     stranded in the middle of the remaining preview. */
  .work-mobile:not(.panels-collapsed):not(.stage-fullscreen) #viewActions,
  .work-mobile.panel-dragging:not(.stage-fullscreen) #viewActions {
    display: none !important;
  }
  .work-mobile:not(.panels-collapsed):not(.stage-fullscreen) #stageHint {
    display: none !important;
  }
}

/* Motion controls are not duplicated. This one button delegates to the
   existing VMD transport; it never seeks or resets the motion itself. */
.work-mobile #quickPlayPause {
  min-height: 44px;
  min-width: 64px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .12s ease, border-color .12s ease;
}
.work-mobile #quickPlayPause.is-playing {
  background: #136a47;
  border-color: #57d6a0;
  color: #fff;
}
.work-mobile #quickPlayPause.is-paused {
  background: #8b2635;
  border-color: #f58a97;
  color: #fff;
}
.work-mobile #quickPlayPause:focus-visible {
  outline: 3px solid #e4d3ff;
  outline-offset: 2px;
}
/* In native fullscreen and iOS fallback, keep all stage buttons visible. */
body.work-mobile.stage-fullscreen #stage .view-actions,
body.work-mobile #stage:fullscreen .view-actions {
  display: flex !important;
}
@media(max-width:370px) and (orientation:portrait) {
  .work-mobile .brand-en { font-size: 18px; }
  .work-mobile .brand .star { font-size: 21px; }
  .work-mobile .view-actions { gap: 4px; right: 7px; }
  .work-mobile .view-actions button { padding-inline: 7px; font-size: 11px; }
}
@media(min-width:760px) {
  .work-mobile .brand-en { font-size: 23px; }
  .work-mobile .brand-ja { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .work-mobile #quickPlayPause { transition: none; }
}

/* Keep the logo legible in the optional light theme. */
body[data-theme="light"].work-mobile .brand-en,
body[data-theme="light"].work-mobile .empty-brand-en {
  background-image: linear-gradient(100deg, #28223d 8%, #654e9b 54%, #9650b7 96%);
}
body[data-theme="light"].work-mobile .brand-ja,
body[data-theme="light"].work-mobile .empty-brand-ja { color: #65408d; }

/* Development notice: visible only on the empty welcome stage. */
.work-mobile #empty .empty-dev-notice {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: min(90%, 370px);
  margin-top: 23px;
  padding: 11px 15px;
  border: 1px solid rgba(194, 171, 247, .24);
  border-radius: 13px;
  background: rgba(189, 157, 246, .055);
  color: #b8b4c9;
  line-height: 1.65;
}
.work-mobile #empty .empty-dev-notice-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .015em;
  color: #dbc9ff;
}
.work-mobile #empty .empty-dev-notice-desc {
  font-size: 11px;
  font-weight: 400;
  color: #b5b5c6;
}
@media (max-width: 350px) {
  .work-mobile #empty .empty-dev-notice { padding: 9px 10px; margin-top: 16px; }
  .work-mobile #empty .empty-dev-notice-desc { font-size: 10px; }
}
