* { box-sizing: border-box; }
:root{
  --bg:#edf5eb;
  --panel:#ffffff;
  --panel-2:#e6f0e2;
  --text:#1c261e;
  --muted:rgba(28, 38, 30, 0.6);
  --line:rgba(28, 38, 30, 0.08);
  --shadow:0 14px 40px rgba(0,0,0,.04);
  --accent:#2ecc71;
  --danger:#e74c3c;
  --radius:28px;
  --herb-size:200px;
  --plant-size:280px;
  --garden-size:180px;
}

@media (max-width: 768px) {
  :root {
    --herb-size: 160px;
    --plant-size: 180px;
  }

  .desktop-only-nav {
    display: none !important;
  }

  .mobile-only-nav {
    display: flex !important;
  }
}

.mobile-only-nav {
  display: none;
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 80px;
  overflow-x: hidden;
}

img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.herb-item img,
.plant img,
.seed-option img,
.giant-plant {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.wrap{
  width:min(1200px, calc(100% - 32px));
  margin:0 auto;
  padding:0 0 46px;
  padding-top: 90px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:28px;
  background:var(--panel);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  z-index: 100;
}
.brand{ font-size:14px; letter-spacing:.12em; text-transform:uppercase; font-weight: 600; display:flex; align-items:center; gap:10px; }
.brand-icon{ width:30px; height:30px; object-fit:contain; display:block; flex:0 0 auto; }
.brand span{ display:inline-block; }
.nav{ display:flex; gap:10px; flex-wrap:wrap; }
.stat-pill { background: var(--panel-2); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); }
.stat-pill span { font-weight: 700; color: var(--text); }

main { display: flex; flex-direction: column; gap: 32px; }

.card{
  background:var(--panel);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border: 1px solid var(--line);
  padding: 30px;
}
.hero-main{ display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap: 20px; }
.eyebrow{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; font-weight: 600;}
.eyebrow.green { color: var(--accent); }
h2{ margin:0; font-size:28px; line-height:1.2; letter-spacing:-.03em; }
h3{ margin:0; font-size:22px; letter-spacing:.01em; font-weight:600; }
.section-head{ margin-bottom:24px; }
.section-head-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; }
.section-head-slider{ display:block; }
.section-head-slider .zoom-slider, .my-garden-head .zoom-slider{ flex:0 0 auto; }
.mobile-seed-preview, .seed-option img { animation: mellowFloat 4.8s ease-in-out infinite; will-change: transform; }
.mobile-time-buttons .mobile-time-btn:nth-child(2) ~ .mobile-time-btn {}
.seed-option:nth-child(2) img { animation-delay: .6s; }
.seed-option:nth-child(3) img { animation-delay: 1.2s; }
.seed-option:nth-child(4) img { animation-delay: 1.8s; }
.muted{ font-size:14px; color:var(--muted); margin-top: 4px; }

.control {
  appearance:none; border:1px solid var(--line); background:var(--panel); color:var(--text);
  border-radius:999px; padding:12px 24px; font-size:15px; font-weight: 500; text-decoration:none;
  cursor:pointer; transition: all 0.2s; font-family: inherit;
}
.control:hover:not(:disabled) { background: var(--panel-2); transform: translateY(-1px); }
.control.dark{ background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.control.dark:hover:not(:disabled) { background:#333; }
.control:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-jumbo { font-size: 18px; padding: 16px 40px; font-weight: 600; letter-spacing: -0.01em; }

/* Dedicated Give Up Button styling from screenshot */
.btn-giveup {
    background: #fff;
    border: 1px solid #ff7675;
    color: #ff7675;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 32px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-giveup:hover {
    background: #fffafa;
    transform: translateY(-2px);
}

/* Main Event Focus Stage */
.focus-stage {
    background: #fff;
    border-radius: 40px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    min-height: 600px;
}
.focus-stage > h2,
.focus-stage > p {
    align-self: center;
}
.focus-stage > .seed-selector,
.focus-stage > .eyebrow {
    align-self: center;
}
.focus-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 140px;
    width: 100%;
    min-height: 480px;
}
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        position: relative;
        width: 100vw;
    }

    .wrap {
        width: 100%;
        padding: 0;
        padding-top: 70px;
        margin: 0;
        overflow-x: hidden;
    }

    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
        padding: 12px 16px;
    }

    .brand {
        font-size: 12px;
        white-space: nowrap;
        gap: 8px;
    }

    .brand-icon {
        width: 24px;
        height: 24px;
    }

    .brand-icon-logo {
        width: 52px;
        height: 52px;
        margin: -14px -8px -14px -10px;
        object-fit: contain;
    }

    .nav {
        gap: 6px;
    }

    .stat-pill {
        padding: 6px 10px;
        font-size: 11px;
    }

    .focus-stage {
        padding: 20px 12px;
        min-height: auto;
        margin-bottom: 16px;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    .focus-split {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
        align-items: center;
        overflow: visible;
    }

    .focus-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: visible;
        width: 100%;
        margin: 0 auto;
    }

    .focus-right {
        display: none !important;
    }

    .timer-ring-container {
        width: 260px !important;
        height: 260px !important;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: visible;
        margin: 0 auto;
        left: 0 !important;
        right: 0 !important;
    }

    .progress-ring {
        width: 260px !important;
        height: 260px !important;
        position: absolute;
        top: 0;
        left: 0;
        overflow: visible;
    }

    .progress-ring circle {
        stroke-width: 10 !important;
    }

    .progress-ring circle:first-child {
        r: 120 !important;
        cx: 130 !important;
        cy: 130 !important;
    }

    .progress-ring circle:last-child {
        r: 120 !important;
        cx: 130 !important;
        cy: 130 !important;
    }

    .mobile-plant-inside {
        display: block !important;
        position: absolute !important;
        top: 45px !important;
        width: 130px !important;
        height: 130px !important;
        object-fit: contain !important;
        z-index: 1 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        pointer-events: none !important;
    }

    .desktop-plant {
        display: none !important;
    }

    .huge-timer {
        font-size: 32px !important;
        position: absolute !important;
        bottom: 45px !important;
        z-index: 2 !important;
        margin: 0 !important;
    }

    .btn-giveup {
        font-size: 14px !important;
        padding: 10px 24px !important;
        margin-top: 20px !important;
        align-self: center !important;
        position: relative;
        left: 0 !important;
        transform: none !important;
    }

    .seed-selector {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100%;
    }

    .seed-option {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 16px;
    }

    .seed-option img {
        height: 100px;
    }

    .garden {
        width: 100%;
        padding: 20px 8px;
        box-sizing: border-box;
    }

    .garden-grid {
        gap: 8px;
    }

    .herb-grid {
        gap: 8px;
    }

    .herb-grid.mobile-cols-3,
    .garden-grid.mobile-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .herb-grid.mobile-cols-2,
    .garden-grid.mobile-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .herb-grid.mobile-cols-1,
    .garden-grid.mobile-cols-1 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .plant,
    .herb-item {
        padding: 10px;
    }

    .plant {
        min-height: 180px;
    }

    .shelf {
        width: 100%;
        padding: 20px 12px;
        box-sizing: border-box;
    }

    .lb-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 12px;
    }

    .lb-close-btn {
        top: 10px !important;
        right: 10px !important;
        font-size: 32px !important;
    }

    #lightbox-modal {
        padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
        align-items: center !important;
        justify-content: center !important;
    }

    #lightbox-modal .lightbox-content {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: auto !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
    }

    #lb-img {
        max-width: min(88vw, 420px) !important;
        max-height: 58vh !important;
        width: auto !important;
        height: auto !important;
    }

    .lightbox-nav-row {
        display: flex !important;
        gap: 12px;
        align-items: center;
        justify-content: center;
        margin-top: auto;
    }

    .lightbox-image-wrap {
        width: 100% !important;
        max-width: min(88vw, 420px) !important;
        height: min(58vh, 460px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        flex: 1 1 auto !important;
    }
}
.focus-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.focus-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-plant-inside {
    display: none;
}
.timer-ring-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.timer-ring-container .huge-timer {
    position: absolute;
    margin: 0;
    font-size: 72px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    z-index: 2;
}
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.progress-ring-circle {
    transition: stroke-dashoffset 1s linear;
}

.focus-stage img.giant-plant {
    height: 380px;
    object-fit: contain;
    margin-bottom: 0;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

/* Seed Selector */
.seed-selector {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}
.seed-option {
    background: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 0;
}
.seed-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(46, 204, 113, 0.12);
}
.seed-option img {
    height: 156px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
    animation: float 4s ease-in-out infinite;
}
.seed-duration { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.seed-reward { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }

/* Herb Shelf */
.shelf { padding: 30px; }
.herb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--herb-size), 1fr)); gap: 16px; min-height: 160px; }
.herb-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    transition: all 0.3s;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.herb-item img { width: 100%; height: auto; max-width: 100%; max-height: none; object-fit: contain; display:block; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08)); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); align-self:center; }
.herb-item:not(.locked):hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); border-color: var(--line);}
.herb-item:not(.locked):hover img { transform: scale(1.1); }
.herb-item.locked { opacity: 0.3; filter: grayscale(100%); }
.herb-item.highlight { animation: pulseHighlight 2s ease-out; }

/* Garden Collection High End Cards */
.garden {
  background: #d9e6d4;
  border-radius:40px;
  box-shadow:var(--shadow);
  border:1px solid rgba(22,22,22,.05);
  padding:40px;
  min-height:500px;
}
.garden-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--plant-size), 1fr));
  gap:32px;
}

.plant {
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    aspect-ratio: auto;
    min-height: 350px;
    border: none;
}
.plant.locked { opacity: 0.5; filter: grayscale(100%); }
.plant:not(.locked):hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.plant.highlight { animation: pulseHighlight 2s ease-out; }

.art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.art img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.plant:not(.locked):hover .art img { transform: scale(1.08); }

/* Modals */
.hidden { display: none !important; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(235, 245, 230, 0.9); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; animation: fadeIn 0.3s forwards; }
.modal-content { text-align: center; max-width: 500px; width: 90%; }
.modal-body { display: flex; justify-content: center; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.modal-body img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }

.reveal-card { max-width: 440px; padding: 40px; background: #fff; border-radius: 40px;}
.reveal-art { height: 320px; margin: 24px 0; background: var(--bg); border-radius: 30px; border: none; display: flex; align-items: center; justify-content: center; }
.reveal-art img { animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; max-height: 280px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }

.zoom-slider {
    accent-color: var(--accent);
    cursor: pointer;
    width: 150px;
}
.lb-nav-btn {
    background: #fff; border: none; font-size: 24px; padding: 24px; border-radius: 8px;
    cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.2s;
    font-weight: 800; color: #111; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
}
.lb-nav-btn:hover { transform: scale(1.1); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.lb-close-btn:hover { opacity: 1; transform: scale(1.1); }

.lightbox-image-wrap {
    width: min(60vw, 760px);
    height: min(80vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
@keyframes mellowFloat { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.5) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pulseHighlight { 
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); transform: translateY(-8px) scale(1.02); } 
  70% { box-shadow: 0 0 0 20px rgba(46, 204, 113, 0); transform: translateY(0) scale(1); } 
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } 
}

/* ===== New garden + mobile focus refinements ===== */
.my-garden-section {
  min-height: auto;
}
.my-garden-head {
  align-items: center;
}
.garden-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.garden-filter-btn {
  appearance: none;
  border: 1.5px solid #2f6b49;
  background: #fff;
  color: #2f6b49;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.garden-filter-btn.active {
  background: #1a1a1a;
  color: #fff;
}
.my-garden-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  color: var(--muted);
  background: rgba(255,255,255,0.65);
  border-radius: 28px;
  padding: 32px 20px;
}
.my-garden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--garden-size), 1fr));
  gap: 20px;
}
.my-garden-card {
  appearance: none;
  border: none;
  background: #fff;
  border-radius: 26px;
  min-height: 190px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.my-garden-card img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-seed-picker {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-seed-preview {
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  object-fit: contain;
  display: block;
  margin: 4px auto 10px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
}
.mobile-time-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mobile-time-btn {
  appearance: none;
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 14px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.mobile-time-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.mobile-plant-btn {
  appearance: none;
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 12px;
  width: 100%;
  cursor: pointer;
}
.mobile-focus-copy {
  margin-bottom: 18px;
}
.mobile-focus-active {
  width: 100%;
}
.mobile-focus-active-inner {
  width: 100%;
}
.show-mobile-plant {
  display: block !important;
}
.mobile-giveup {
  margin-top: 18px !important;
}

@media (max-width: 768px) {
  .focus-stage {
    padding: 24px 12px 28px;
  }

  .timer-ring-container.mobile-timer-layout {
    width: 360px !important;
    height: 360px !important;
    max-width: 100%;
  }

  .timer-ring-container.mobile-timer-layout .progress-ring {
    width: 360px !important;
    height: 360px !important;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .timer-ring-container.mobile-timer-layout .mobile-plant-inside {
    width: 170px !important;
    height: 170px !important;
    top: 72px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .timer-ring-container.mobile-timer-layout .huge-timer {
    font-size: 54px !important;
    bottom: 62px !important;
  }

  .my-garden-section,
  .garden,
  .shelf {
    padding-left: 8px;
    padding-right: 8px;
  }

  .my-garden-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .my-garden-card {
    min-height: 110px;
    padding: 6px;
    border-radius: 18px;
  }

  .garden-filter-row {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .garden-filter-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .my-garden-empty {
    min-height: 90px;
    font-size: 16px;
    padding: 24px 14px;
  }

  .mobile-seed-preview {
    width: min(90vw, 380px);
    height: min(90vw, 380px);
    margin-bottom: 12px;
  }

  .mobile-time-buttons {
    gap: 8px;
  }

  .mobile-time-btn {
    font-size: 13px;
    padding: 12px 4px;
  }

  .garden-grid,
  .herb-grid {
    gap: 6px !important;
  }

  .herb-grid.mobile-cols-3,
  .garden-grid.mobile-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .herb-grid.mobile-cols-2,
  .garden-grid.mobile-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .herb-item,
  .plant {
    padding: 4px !important;
    border-radius: 18px;
  }

  .plant {
    min-height: 0 !important;
    height: auto !important;
    align-items: stretch !important;
  }

  .plant .art {
    padding: 0 !important;
  }

  .plant .art img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }

  .herb-item {
    aspect-ratio: 0.88;
  }

  .section-head {
    margin-bottom: 16px;
  }

  #lightbox-modal .desktop-only-nav {
    display: none !important;
  }

  #lightbox-modal .lightbox-content {
    min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 40px) !important;
  }
}


@media (max-width: 768px) {
  .section-head-slider,
  .my-garden-head {
    display: block;
  }

  .section-head-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    gap: 10px;
  }

  .section-head-top h3 {
    min-width: 0;
  }

  .section-head-slider .muted,
  .my-garden-head + .muted,
  .section-head .muted {
    margin-top: 8px;
  }

  .zoom-slider {
    width: 118px;
    justify-self: end;
  }

  .garden-filter-row {
    margin-top: 10px;
  }

  .my-garden-grid.mobile-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .my-garden-grid.mobile-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .my-garden-grid.mobile-cols-1 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .herb-item {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    align-items: stretch !important;
    padding: 6px !important;
  }

  .herb-item img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }

  .mobile-seed-preview {
    width: min(94vw, 460px);
    height: min(94vw, 460px);
    margin-bottom: 6px;
  }
}


/* v8 desktop refinements */
@media (min-width: 769px) {
  .brand-icon-logo {
    width: 68px;
    height: 68px;
    margin: -18px -6px -18px -10px;
    object-fit: contain;
    transform: scale(1);
  }

  .topbar {
    overflow: visible;
  }

  .my-garden-head .garden-filter-row {
    margin-top: 14px;
    margin-left: -2px;
  }

  .my-garden-card img {
    width: 92%;
    height: 92%;
    max-width: 92%;
    max-height: 92%;
  }
}


.nav-garden-btn {
  background: var(--panel-2);
  border-color: #2f6b49;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.brand-icon-logo {
  object-fit: contain;
}

.growing-title {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-align: center;
}

.desktop-growing-title {
  margin-bottom: 28px;
}

#garden-sections.hidden,
#focus-desk-section.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-garden-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .growing-title {
    font-size: 28px;
    margin-bottom: 14px;
  }
}


@media (max-width: 768px) {
  body.mobile-focus-page {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }

  body.mobile-focus-page .site-footer {
    display: none;
  }

  body.mobile-focus-page .wrap {
    height: 100dvh;
    padding-top: 76px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  body.mobile-focus-page main {
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
  }

  body.mobile-focus-page #focus-desk-section {
    height: calc(100dvh - 76px);
    min-height: calc(100dvh - 76px);
    margin-bottom: 0;
    border-radius: 0;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
    overflow: hidden;
  }

  body.mobile-focus-page #focus-desk-section > h2 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.05;
    margin-bottom: 6px !important;
  }

  body.mobile-focus-page #focus-desk-section > p {
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 14px !important;
    max-width: 320px;
    text-align: center;
  }

  body.mobile-focus-page .mobile-seed-picker,
  body.mobile-focus-page .mobile-focus-active,
  body.mobile-focus-page .mobile-focus-active-inner,
  body.mobile-focus-page .focus-left {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  body.mobile-focus-page .mobile-seed-preview {
    width: min(74vw, 340px);
    height: min(74vw, 340px);
    margin: 8px auto 18px;
  }

  body.mobile-focus-page .mobile-time-buttons {
    gap: 8px;
    margin-top: auto;
  }

  body.mobile-focus-page .mobile-time-btn {
    min-height: 44px;
    padding: 10px 4px;
    font-size: 13px;
  }

  body.mobile-focus-page .mobile-plant-btn {
    min-height: 50px;
    margin-top: 14px;
    padding: 14px 18px;
  }

  body.mobile-focus-page .growing-title {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 10px;
  }

  body.mobile-focus-page .focus-split.mobile-focus-active {
    gap: 10px;
  }

  body.mobile-focus-page .timer-ring-container.mobile-timer-layout {
    width: min(72vw, 320px) !important;
    height: min(72vw, 320px) !important;
  }

  body.mobile-focus-page .timer-ring-container.mobile-timer-layout .progress-ring {
    width: 100% !important;
    height: 100% !important;
    left: 50%;
    transform: translateX(-50%);
  }

  body.mobile-focus-page .timer-ring-container.mobile-timer-layout .mobile-plant-inside {
    width: 44% !important;
    height: 44% !important;
    top: 20% !important;
  }

  body.mobile-focus-page .timer-ring-container.mobile-timer-layout .huge-timer {
    font-size: clamp(38px, 10vw, 52px) !important;
    bottom: 18% !important;
  }

  body.mobile-focus-page .mobile-giveup {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
  }
}


.timer-stage-subtitle {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 18px;
}

.desktop-timer-stage-subtitle {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .mobile-focus-copy {
    max-width: 340px;
    margin: 0 auto 10px;
  }

  body.mobile-focus-page #focus-desk-section {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }

  body.mobile-focus-page #focus-desk-section > h2 {
    margin-bottom: 4px !important;
  }

  body.mobile-focus-page .mobile-focus-copy {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 2px !important;
    max-width: 330px;
  }

  body.mobile-focus-page .mobile-seed-picker {
    justify-content: space-between;
  }

  body.mobile-focus-page .mobile-seed-preview {
    width: min(96vw, 520px);
    height: min(96vw, 520px);
    max-width: 520px;
    max-height: 520px;
    margin: 0 auto 6px;
  }

  body.mobile-focus-page .mobile-time-buttons {
    margin-top: auto;
    margin-bottom: 10px;
  }

  body.mobile-focus-page .mobile-plant-btn {
    margin-top: 0;
  }

  body.mobile-focus-page .timer-stage-subtitle {
    max-width: 336px;
    font-size: 13px;
    line-height: 1.35;
    margin: 0 auto 10px;
  }

  body.mobile-focus-page .focus-split.mobile-focus-active,
  body.mobile-focus-page .mobile-focus-active-inner,
  body.mobile-focus-page .focus-left {
    justify-content: center;
  }

  body.mobile-focus-page .timer-ring-container.mobile-timer-layout {
    width: min(86vw, 420px) !important;
    height: min(86vw, 420px) !important;
    margin-top: auto;
    margin-bottom: 12px;
  }

  body.mobile-focus-page .timer-ring-container.mobile-timer-layout .mobile-plant-inside {
    width: 48% !important;
    height: 48% !important;
    top: 17% !important;
  }

  body.mobile-focus-page .timer-ring-container.mobile-timer-layout .huge-timer {
    font-size: clamp(44px, 11vw, 62px) !important;
    bottom: 16% !important;
  }

  body.mobile-focus-page .mobile-giveup {
    width: min(86vw, 420px);
    min-height: 50px;
    margin-top: 0 !important;
    margin-bottom: auto !important;
  }
}


.plant .art img,
.herb-item img,
.my-garden-card img {
  opacity: 1 !important;
  visibility: visible !important;
  image-rendering: auto;
}

.image-missing {
  outline: 2px dashed #c44;
}
