/* WYSWNBUAY Mobile — Pocket Mac OS (<=799px only) */

/* ===== Global Overrides ===== */

.desktop-icon,
.control-btn,
.btn-primary,
.btn-demo,
.menu-item,
.footer-left {
  touch-action: manipulation;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
}

.desktop {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-top: 26px;
  padding-bottom: 26px;
}

.startup-screen {
  display: flex;
}

.tiny-screen-alert {
  display: none !important;
}

/* ===== Menu Bar (fixed top) ===== */

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.menu-left {
  gap: 8px;
}

.menu-item {
  font-size: 14px;
  padding: 2px 6px;
}

.menu-time {
  font-size: 14px;
}

/* Tap-toggle dropdowns (JS adds/removes .menu-open) */
.menu-item:hover .menu-dropdown {
  display: none;
}

.menu-item.menu-open .menu-dropdown {
  display: block;
}

/* ===== Desktop Icons (grid on desktop surface) ===== */

.desktop-icons {
  position: relative;
  top: auto;
  right: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 20px 16px;
  justify-items: center;
  align-content: start;
  flex: 1;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
}

.desktop-icon {
  width: 72px;
  padding: 6px;
}

.icon-image {
  width: 40px;
  height: 40px;
}

.icon-label {
  font-size: 13px;
}

/* ===== Window System (centered fixed panels) ===== */

.window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
  max-width: 360px;
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  z-index: 500;
}

.main-window {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
  max-width: 340px;
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
}

.features-window,
.how-window,
.about-window,
.feedback-window,
.trash-window,
.redeem-window {
  top: 50%;
  left: 50%;
  width: calc(100% - 20px);
  max-width: 360px;
}

.redeem-window {
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}

/* ===== Window Content ===== */

.window-content {
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px;
}

.window-titlebar {
  cursor: default;
}

/* ===== Hero Content (main window) ===== */

.hero-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 15px;
  margin-bottom: 16px;
}

.btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 18px;
  padding: 12px 16px;
}

.btn-demo {
  font-size: 16px;
  padding: 10px 20px;
  width: auto;
}

.price-slider-container {
  max-width: 100%;
  padding: 12px;
}

.price-amount {
  font-size: 28px;
}

.price-comment {
  font-size: 14px;
  min-height: 36px;
}

.hero-note {
  font-size: 14px;
}

/* ===== Features (compact) ===== */

.feature-item {
  padding: 10px;
  gap: 10px;
}

.feature-icon {
  width: 36px;
  height: 36px;
}

.feature-text strong {
  font-size: 16px;
}

.feature-text span {
  font-size: 14px;
}

/* ===== How It Works (compact) ===== */

.how-steps {
  gap: 6px;
  margin-bottom: 20px;
}

.how-step {
  padding: 10px 12px;
  gap: 10px;
}

.step-number {
  width: 28px;
  height: 28px;
  font-size: 18px;
}

.step-key {
  font-size: 14px;
}

.step-content p {
  font-size: 14px;
}

.demo-box {
  padding: 12px;
}

.demo-text {
  font-size: 14px;
}

.demo-arrow img {
  width: 32px;
  height: 32px;
}

/* ===== About Window ===== */

.about-icon {
  width: 64px;
  height: 64px;
}

.about-content h2 {
  font-size: 20px;
}

.about-desc,
.about-roadmap {
  font-size: 14px;
}

/* ===== Feedback / Trash ===== */

.feedback-content {
  padding: 24px 16px;
}

.feedback-text {
  font-size: 16px;
}

.trash-content {
  padding: 20px 16px;
}

.trash-icon-large {
  width: 48px;
  height: 48px;
}

.trash-text {
  font-size: 14px;
}

.email-link {
  font-size: 16px;
  padding: 8px 12px;
}

/* ===== Redeem Window ===== */

.redeem-content {
  padding: 16px 12px;
}

.redeem-content h2 {
  font-size: 20px;
}

.redeem-subtitle {
  font-size: 14px;
}

.redeem-input {
  padding: 10px;
  font-size: 16px;
}

.redeem-submit-btn {
  font-size: 16px;
  padding: 12px 16px;
}

.redeem-license-key {
  font-size: 14px;
}

.redeem-copy-btn {
  font-size: 14px;
  padding: 8px 16px;
}

/* ===== Modals ===== */

.video-window {
  max-width: 95vw;
}

.error-window {
  width: calc(100% - 20px);
  max-width: 320px;
}

/* ===== Footer/Dock (fixed bottom) ===== */

.desktop-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
