/* ════════════════════════════════════════════════════════════
   SPLOTCH.CSS
   Director of "how things look." All formatting, layout and
   PWA-vs-browser styling lives here — separate from Traveler
   (who decides WHICH pack is active) and separate from app
   logic (which lives in index.html's <script> blocks).

   If a visual bug shows up, this is the only file you need
   to open. If you're adding a new look, this is the only
   file you need to edit.
   saraskonstigheter.com — SK Universe / Tiny Badger
   ════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'DynaPuff';
  src: url('DynaPuff-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

  :root {
    --bg: #FDFAF5;
    --bg-rgb: 253, 250, 245;
    --text-dark: #FFFFFF;
    --text-mid: #F0EDE8;
    --text-soft: #D8D4CF;
    --accent: #9BAAB5;
    --font: 'DynaPuff', cursive;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    height: 100%;
    background: #CDC0F1;
    font-family: var(--font);
    color: var(--text-dark);
    overflow-x: hidden;
  }

  /* ── MAIN APP — base/default. All overrides below must come
     AFTER this so they can actually win when their condition
     matches. This rule used to live mid-file and was silently
     beating the standalone override due to source order. ── */
  #app {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 16px 90px;
    box-sizing: border-box;
  }

/* ── SPLASH SCREEN ── */
  #splash-screen {
    position: fixed;
    inset: 0;
    top: 56px;
    background: #CDC0F1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: splashFade 2s ease forwards;
    animation-delay: 5s;
    animation-fill-mode: both;
  }

  .splash-inner {
    max-width: 480px;
    width: 100%;
    aspect-ratio: 9/19;
    background: url('splash.png') center center / contain no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 40px;
  }

  #splash-screen.hidden {
    display: none;
  }

  @keyframes splashFade {
    from { opacity: 1; pointer-events: all; }
    to   { opacity: 0; pointer-events: none; }
  }

  .splash-byline {
    display: none;
  }

  .splash-logo {
    display: none;
  }

  /* ── BOTTOM NAV ── */
  #bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 150;
    background: #000000;
    display: none;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    padding: 0 8px;
  }

  #bottom-nav.visible { display: flex; }


  .nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 0;
    border: none;
    background: none;
  }

  .nav-tab.active { color: #E8435A; }

  /* ── TAB SCREENS ── */
  .tab-screen {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 72px;
    background: #FAF7F2;
    z-index: 140;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .tab-screen.active { display: flex; }

  /* Tab header — matches site style */
  .tab-header {
    width: 100%;
    background: #D4C8F0;
    padding: 28px 20px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tab-title {
    font-family: var(--font);
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    font-weight: 700;
    color: #FFFEF8;
    text-shadow: 0 4px 24px rgba(100,80,160,0.3), 0 2px 0 rgba(100,80,160,0.15);
    animation: textFloat 5s ease-in-out infinite;
    text-align: center;
  }

  .tab-scallop {
    width: 100%;
    height: 24px;
    background:
      radial-gradient(circle at 10px 0, #D4C8F0 10px, transparent 11px),
      radial-gradient(circle at 30px 0, #D4C8F0 10px, transparent 11px);
    background-size: 40px 24px;
    background-color: #FAF7F2;
    background-repeat: repeat-x;
    background-position: top left;
  }

  .tab-content {
    width: 100%;
    max-width: 480px;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Read Me cards */
  .readme-card {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .readme-card-title {
    font-family: var(--font);
    font-size: 13px;
    color: #000000;
    margin-bottom: 6px;
  }

  .readme-card-text {
    font-family: var(--font);
    font-size: 11px;
    color: #666;
    line-height: 1.6;
  }

  /* Settings */
  .settings-row {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: var(--font);
    font-size: 12px;
    color: #3A2820;
  }

  #lock-screen {
    position: fixed;
    inset: 0;
    background: #FAF7F2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 100;
    transition: opacity 0.6s ease;
    overflow-y: auto;
    padding-top: 56px;
    padding-bottom: 60px;
  }

  /* ── BADGER SHOP ZONE ── */
  .shop-window {
    width: 100%;
    background: #D4C8F0;
    padding: 24px 20px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin-top: 0;
  }

  .shop-window-title {
    font-family: var(--font);
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    font-weight: 700;
    color: #FFFEF8;
    text-shadow: 0 4px 24px rgba(100,80,160,0.3), 0 2px 0 rgba(100,80,160,0.15);
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 4px;
    animation: textFloat 5s ease-in-out infinite;
  }

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

  .shop-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    justify-content: center;
  }

  .shop-scroll::-webkit-scrollbar { display: none; }

  .pack-card {
    flex: 0 0 calc(50% - 5px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    background: white;
    border-radius: 4px;
    padding: 18px 12px 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .pack-card:hover { }

  .pack-card.selected {
    border-color: #3A2820;
  }

  .pack-card-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e0f8, #d4c8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
  }

  .pack-card-name {
    font-size: 10px;
    color: #3A2820;
    text-align: center;
    line-height: 1.3;
    font-family: var(--font);
  }

  .pack-card-price {
    background: #000000;
    color: white;
    font-family: var(--font);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 2px;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 3px 0 #333;
  }
  .pack-card-price:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #333;
  }

  .pack-card-owned {
    font-size: 10px;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 20px;
    padding: 3px 10px;
    font-family: var(--font);
  }

  .shop-buy-btn {
    background: #000000;
    color: white;
    border: none;
    border-radius: 24px;
    font-family: var(--font);
    font-size: 13px;
    padding: 12px 28px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: none;
    margin-top: 4px;
  }

  .shop-buy-btn:hover { opacity: 0.85; transform: translateY(-1px); }
  .shop-buy-btn.visible { display: block; }

  .have-key-link {
    font-family: var(--font);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 700;
    color: #C8B8F0;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 32px 20px 8px;
    text-shadow: 0 2px 12px rgba(160,140,220,0.25);
    animation: yayBounce 1.8s ease-in-out infinite;
  }

  @keyframes yayBounce {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.08); }
    20% { transform: scale(0.97); }
    30% { transform: scale(1.05); }
    40% { transform: scale(1); }
  }

  .have-key-link:hover { opacity: 0.75; }

  .shop-window-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 420px;
  }

  .shop-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000000;
    border: none;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
  }

  .shop-arrow:hover { opacity: 0.75; }
  .shop-arrow.disabled { opacity: 0.2; pointer-events: none; }

  #lock-screen.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .lock-gate {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lock-gate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .lock-title {
    font-size: clamp(20px, 5vw, 26px);
    color: #3A2820;
    text-align: center;
  }

  .lock-subtitle {
    font-size: clamp(12px, 3vw, 14px);
    color: #8C7B72;
    text-align: center;
    line-height: 1.6;
    max-width: 280px;
  }

  .key-input-wrap {
    width: 100%;
    max-width: 300px;
    position: relative;
  }

  .key-input-wrap input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8E0D8;
    border-radius: 16px;
    background: white;
    font-family: var(--font);
    font-size: 15px;
    color: #3A2820;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.2s;
  }

  .key-input-wrap input:focus {
    border-color: var(--accent);
  }

  .key-input-wrap input.error {
    border-color: #E8809A;
    animation: shake 0.3s ease;
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
  }

  .unlock-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-family: var(--font);
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
  }

  .unlock-btn:hover { opacity: 0.85; transform: translateY(-1px); }
  .unlock-btn:active { transform: translateY(0); }

  .lock-link {
    font-size: 12px;
    color: var(--text-soft);
    text-decoration: none;
    text-align: center;
  }
  .lock-link:hover { color: var(--text-mid); }

  .error-msg {
    font-size: 12px;
    color: #E8809A;
    text-align: center;
    min-height: 18px;
  }

  .card {
    width: 100%;
    max-width: 360px;
    min-height: 640px;
    aspect-ratio: 9/19;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 24px;
    gap: 0;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    outline: 6px solid #000000;
    outline-offset: 0px;
    box-shadow: 0 0 0 6px #000000;
    margin-top: 0;
  }

  .card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    transform-origin: top center;
  }

  .card-bg.visible { opacity: 1; }

  .top-bar, .temp, .nimkin-wrap, .weather-label, .weather-note, .pack-badge, .view-toggle, #card-weather-view, #card-trams-view {
    position: relative;
    z-index: 2;
  }

  /* top bar */
  .top-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
    margin-bottom: 8px;
  }

  .city {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.08em;
  }

  .clock {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
  }

  /* temperature */
  .temp {
    font-size: clamp(40px, 10vw, 52px);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
    transition: opacity 0.4s;
  }

  .temp.loading { opacity: 0.3; }

  /* nimkin */
  .nimkin-wrap {
    position: relative;
    width: min(220px, 60vw);
    aspect-ratio: 3/3.6;
    margin: 50px auto 0;
  }

  .nimkin-body {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .nimkin-head {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transform-origin: center 58%;
    will-change: transform;
    z-index: 4;
  }

  /* raincoat hood — follows head rotation */
  .nimkin-hood {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transform-origin: center 58%;
    will-change: transform;
    z-index: 5;
  }

  /* raincoat straps — gentle perpetual wiggle */
  .nimkin-straps {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    z-index: 6;
    transform-origin: center 40%;
    animation: straps-wiggle 2s ease-in-out infinite;
  }

  @keyframes straps-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.5deg); }
    75% { transform: rotate(-1.5deg); }
  }

  /* weather label */
  .weather-label {
    font-size: clamp(26px, 6vw, 32px);
    color: var(--text-dark);
    margin-top: -50px;
    text-align: center;
  }

  /* note */
  .weather-note {
    font-size: clamp(15px, 3.5vw, 17px);
    color: var(--text-mid);
    text-align: center;
    line-height: 1.65;
    max-width: 280px;
    margin-top: 6px;
  }

  /* action buttons */
  .action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 280px;
    position: relative;
    z-index: 1;
  }

  .btn-updates, .btn-install {
    width: 100%;
    padding: 12px 18px;
    border-radius: 16px;
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    text-align: center;
    letter-spacing: 0.03em;
  }

  .btn-updates {
    background: rgba(255,255,255,0.15);
    color: var(--text-dark);
    border: 1.5px solid rgba(255,255,255,0.3);
    text-decoration: none;
    display: block;
  }

  .btn-closet {
    width: 100%;
    padding: 12px 18px;
    border-radius: 16px;
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    background: #C4A8E0;
    color: #ffffff;
    border: none;
    transition: transform 0.15s, opacity 0.15s;
    text-align: center;
  }

  .btn-closet:hover { opacity: 0.8; transform: translateY(-1px); }
  .btn-closet:active { transform: translateY(0); }

  .btn-install {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    font-size: 11px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }

  .btn-updates:hover, .btn-install:hover { opacity: 0.8; transform: translateY(-1px); }
  .btn-updates:active, .btn-install:active { transform: translateY(0); }

  .btn-install.hidden { display: none; }

  /* ── COZY CLOSET ── */
  .closet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 150;
    transition: opacity 0.3s ease;
  }

  .closet-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: #FDFAF5;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    z-index: 151;
    transform: translateY(0);
    transition: transform 0.4s ease;
    max-height: 70vh;
    overflow-y: auto;
  }

  .closet-drawer.hidden { transform: translateY(100%); }
  .closet-overlay.hidden { opacity: 0; pointer-events: none; }

  .closet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .closet-title {
    font-family: var(--font);
    font-size: 16px;
    color: #3A2820;
  }

  .closet-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #8C7B72;
  }

  .closet-section-label {
    font-family: var(--font);
    font-size: 10px;
    color: #8C7B72;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }

  .closet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .closet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,0.04);
    transition: background 0.2s;
  }

  .closet-item:hover { background: rgba(0,0,0,0.08); }
  .closet-item.active { background: rgba(196,168,224,0.3); }

  .nimkin-clothing-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    z-index: 1;
  }

  .closet-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }

  .closet-item span {
    font-family: var(--font);
    font-size: 10px;
    color: #3A2820;
    text-align: center;
  }

  .closet-item.pack-item.hidden { display: none; }

  .closet-item.coming-soon {
    position: relative;
    pointer-events: none;
    background: rgba(196, 168, 224, 0.18);
    outline: 2px solid rgba(196, 168, 224, 0.4);
  }

  .coming-soon-tag {
    font-family: var(--font);
    font-size: 8px;
    color: #9B8ABF;
    background: rgba(196, 168, 224, 0.35);
    border-radius: 10px;
    padding: 2px 7px;
    margin-top: 2px;
    letter-spacing: 0.05em;
  }

  /* pack badge — for future packs */
  .pack-badge {
    display: none; /* shown when a pack is active */
    font-size: 10px;
    color: var(--text-soft);
    margin-top: 16px;
    letter-spacing: 0.1em;
    opacity: 0.6;
  }

  /* responsive desktop centering */
  @media (min-width: 600px) {
    #app {
      align-items: flex-start;
      justify-content: center;
      min-height: 100vh;
    }
    .card {
      border-radius: 32px;
    }
  }

  /* ── RAIN LAYERS ── */
  .rain-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    pointer-events: none;
  }

  #rain1  { animation: rainFall 4.0s linear infinite; opacity: 0.85; animation-delay: 0s; }
  #rain1b { animation: rainFall 4.0s linear infinite; opacity: 0.85; animation-delay: -1.0s; }
  #rain1c { animation: rainFall 4.0s linear infinite; opacity: 0.85; animation-delay: -2.0s; }
  #rain1d { animation: rainFall 4.0s linear infinite; opacity: 0.85; animation-delay: -3.0s; }
  #rain2  { animation: rainFall 5.5s linear infinite; opacity: 0.35; animation-delay: -1.5s; }
  #rain2b { animation: rainFall 5.5s linear infinite; opacity: 0.35; animation-delay: -4.0s; }
  #rain3  { animation: rainFall 7.0s linear infinite; opacity: 0.2;  animation-delay: -3.0s; }

  @keyframes rainFall {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }


  .rain-front {
    z-index: 3 !important;
    opacity: 0.4 !important;
    animation: rainFall 3.5s linear infinite !important;
    animation-delay: -0.5s !important;
  }

  .nimkin-shadow-img {
    position: absolute;
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: auto;
    z-index: 1;
    pointer-events: none;
  }

  .view-toggle {
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px;
    margin: 8px auto 4px;
  }
  .toggle-btn {
    font-family: var(--font);
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.04em;
  }
  .toggle-btn.active {
    background: rgba(255,255,255,0.9);
    color: #000;
  }

  /* ── TRAM SLOTS ── */
  .tram-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .tram-line-badge {
    font-family: var(--font);
    font-size: 18px;
    font-weight: bold;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .tram-info {
    flex: 1;
  }
  .tram-destination {
    font-family: var(--font);
    font-size: 13px;
    color: white;
    margin-bottom: 6px;
  }
  .tram-times {
    display: flex;
    gap: 8px;
  }
  .tram-times span {
    font-family: var(--font);
    font-size: 11px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
  }


  #tb-yellow {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 301;
    background: #000000;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0.08em;
    height: 28px;
  }

  #tb-yellow a {
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s;
  }

  #tb-yellow a:hover { opacity: 0.6; }

  #tb-yellow a.soon {
    color: #B8A860;
    pointer-events: none;
  }

  #tb-yellow a.soon span {
    font-size: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 1px 4px;
    margin-left: 3px;
    vertical-align: middle;
  }

  /* ── NAV BAR ── */
  #lock-screen { padding-top: 56px !important; padding-bottom: 80px !important; }

  #tb-trust {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 299;
    background: #000000;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-family: var(--font);
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
  }

  #tb-trust a { color: rgba(255,255,255,0.7); text-decoration: none; }
  #tb-trust a:hover { color: white; }

  .nav-logo-center {
    height: 72px;
    width: auto;
    object-fit: contain;
  }

  .nav-logo-left {
    height: 60px;
    width: auto;
    object-fit: contain;
  }

  .nav-logo-right {
    height: 52px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
  }

  .nav-scallop {
    display: none;
  }

  .scallop-divider {
    width: 100%;
    height: 24px;
    background:
      radial-gradient(circle at 10px 0, #D4C8F0 10px, transparent 11px),
      radial-gradient(circle at 30px 0, #D4C8F0 10px, transparent 11px);
    background-size: 40px 24px;
    background-color: #FAF7F2;
    background-repeat: repeat-x;
    background-position: top left;
  }

  /* ── TICKER STRIP ── */
  .ticker-wrap {
    position: fixed;
    top: 28px;
    left: 0; right: 0;
    z-index: 299;
    background: #FAF7F2;
    overflow: hidden;
    border-bottom: 1.5px solid rgba(0,0,0,0.08);
    white-space: nowrap;
    height: 30px;
    display: flex;
    align-items: center;
  }

  .ticker-content {
    display: inline-block;
    animation: tickerScroll 18s linear infinite;
    font-family: var(--font);
    font-size: 11px;
    color: #000000;
    letter-spacing: 0.08em;
  }

  @keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .shop-bee {
    position: absolute;
    font-size: 1rem;
    animation: beeFly 22s linear infinite;
    pointer-events: none;
    z-index: 10;
    right: -40px;
  }

  @keyframes beeFly {
    0%   { right: -40px; }
    100% { right: 110%; }
  }

  /* ── FOOTER ── */
  #tb-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 299;
    background: #000000;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-family: var(--font);
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
  }

  #tb-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
  #tb-footer a:hover { color: white; }

