/* ═══════════════════════════════════════════════
   iPhone 4 Simulator – iOS 6 Skeuomorphic Style
   Screen: 320 × 480  (scaled ×1.5 for display)
   ═══════════════════════════════════════════════ */

:root {
    --scale: 1.5;
    --sw: 320px;   /* screen width  */
    --sh: 480px;   /* screen height */
    --sb: 20px;    /* status-bar height */
}

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2c2c2c;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ── Wrapper for rotation ── */
#iphone-wrapper {
    transition: transform 0.6s cubic-bezier(.4,.0,.2,1);
    transform-origin: center center;
}
#iphone-wrapper.landscape {
    transform: rotate(90deg);
}

/* ── iPhone 4 Hardware ── */
.iphone4 {
    width: calc(var(--sw) * var(--scale) + 36px);
    height: calc(var(--sh) * var(--scale) + 200px);
    background: linear-gradient(180deg, #3a3a3a 0%, #1c1c1c 6%, #1c1c1c 94%, #3a3a3a 100%);
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        inset 0 0 0 1px #555,
        0 0 0 2px #111,
        0 20px 60px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

/* Chrome band around edges (iPhone 4 stainless steel) */
.iphone4::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 34px;
    border: 1.5px solid rgba(120,120,120,0.3);
    pointer-events: none;
    z-index: 1;
}

/* ── Top Bezel ── */
.bezel-top {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.earpiece {
    width: 52px;
    height: 6px;
    background: #111;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
    /* Tiny speaker grille lines */
    background-image: repeating-linear-gradient(
        90deg,
        transparent, transparent 2px,
        rgba(50,50,50,0.5) 2px, rgba(50,50,50,0.5) 3px
    );
}

.front-camera {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #1a2744 40%, #0a0a1a 70%);
    border-radius: 50%;
    border: 1px solid #333;
    position: absolute;
    right: calc(50% - 46px);
    top: 42px;
}

.proximity-sensor {
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    left: calc(50% - 46px);
    top: 40px;
    opacity: 0.3;
}

/* ── Screen ── */
.screen {
    width: calc(var(--sw) * var(--scale));
    height: calc(var(--sh) * var(--scale));
    background: #000;
    position: relative;
    overflow: hidden;
    /* Sharp corners on iPhone 4 screen */
    border-radius: 0;
}

/* ── Bottom Bezel ── */
.bezel-bottom {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-button {
    width: 52px;
    height: 52px;
    background: linear-gradient(180deg, #1c1c1c 0%, #222 50%, #1a1a1a 100%);
    border-radius: 50%;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(255,255,255,0.05);
    transition: background 0.1s;
}

.home-button:active {
    background: linear-gradient(180deg, #181818 0%, #1a1a1a 50%, #161616 100%);
}

.home-square {
    width: 16px;
    height: 16px;
    border: 1.5px solid #555;
    border-radius: 3px;
}

/* ══════════════════════════════════
   iOS 6 Status Bar (20px tall)
   ══════════════════════════════════ */
#status-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: calc(var(--sb) * var(--scale));
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(6px * var(--scale));
    color: #fff;
    font-size: calc(10px * var(--scale));
    font-weight: bold;
    user-select: none;
}

/* iOS 6 gradient bars */
.status-bar-black {
    background: linear-gradient(180deg,
        rgba(60,60,60,0.95) 0%,
        rgba(20,20,20,0.95) 50%,
        rgba(0,0,0,0.95) 100%
    );
    border-bottom: 1px solid rgba(0,0,0,0.8);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.status-bar-blue {
    background: linear-gradient(180deg,
        #5b8fcc 0%, #3e6faa 50%, #2a5699 100%
    );
    border-bottom: 1px solid #1e3f6e;
}

.sb-left, .sb-right {
    display: flex;
    align-items: center;
    gap: calc(3px * var(--scale));
    min-width: calc(60px * var(--scale));
}

.sb-right { justify-content: flex-end; }

.sb-center {
    font-size: calc(10px * var(--scale));
    font-weight: bold;
}

/* iOS 6 signal dots (circles not bars) */
.signal-dots {
    display: flex;
    gap: calc(1.5px * var(--scale));
    align-items: center;
}

.signal-dots .dot {
    width: calc(5px * var(--scale));
    height: calc(5px * var(--scale));
    border-radius: 50%;
    border: calc(0.8px * var(--scale)) solid rgba(255,255,255,0.8);
}
.signal-dots .dot.on {
    background: #fff;
}
.signal-dots .dot.off {
    background: transparent;
}

.carrier {
    font-size: calc(10px * var(--scale));
    font-weight: bold;
    margin-left: calc(2px * var(--scale));
}

/* Battery */
.battery {
    display: flex;
    align-items: center;
}

.battery-body {
    width: calc(18px * var(--scale));
    height: calc(9px * var(--scale));
    border: calc(1px * var(--scale)) solid rgba(255,255,255,0.85);
    border-radius: calc(2px * var(--scale));
    padding: calc(1px * var(--scale));
    display: flex;
    align-items: stretch;
}

.battery-fill {
    flex: 1;
    background: linear-gradient(180deg, #71d468, #4cb842);
    border-radius: calc(0.5px * var(--scale));
}

.battery-nub {
    width: calc(2px * var(--scale));
    height: calc(4px * var(--scale));
    background: rgba(255,255,255,0.85);
    border-radius: 0 calc(1px * var(--scale)) calc(1px * var(--scale)) 0;
    margin-left: calc(0.5px * var(--scale));
    align-self: center;
}

#sb-battery-pct {
    font-size: calc(9px * var(--scale));
    font-weight: bold;
    opacity: 0.9;
}

/* ══════════════════════════════════
   Notification Center (iOS 5/6 style)
   Linen texture, slides from top
   ══════════════════════════════════ */
#notification-tray {
    position: absolute;
    top: calc(var(--sb) * var(--scale));
    left: 0; right: 0;
    height: calc(280px * var(--scale));
    z-index: 190;
    transform: translateY(calc(-100% - 10px));
    transition: transform 0.35s cubic-bezier(.4,.0,.2,1);
    display: flex;
    flex-direction: column;
}

#notification-tray.open {
    transform: translateY(0);
}

.nc-content {
    flex: 1;
    /* iOS 6 linen texture */
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px,
            transparent 1px, transparent 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px,
            transparent 1px, transparent 3px
        ),
        linear-gradient(180deg, #484848, #3a3a3a);
    padding: calc(12px * var(--scale));
    color: #fff;
    overflow-y: auto;
}

.nc-header {
    font-size: calc(12px * var(--scale));
    font-weight: bold;
    text-align: center;
    margin-bottom: calc(8px * var(--scale));
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.nc-body {
    background: rgba(0,0,0,0.3);
    border-radius: calc(8px * var(--scale));
    padding: calc(10px * var(--scale));
    font-size: calc(11px * var(--scale));
    line-height: 1.4;
    border: 1px solid rgba(255,255,255,0.08);
}

.nc-body p {
    margin-bottom: calc(6px * var(--scale));
}

.nc-sub {
    opacity: 0.6;
    font-size: calc(10px * var(--scale));
}

.nc-handle {
    height: calc(14px * var(--scale));
    background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.nc-handle::after {
    content: '';
    width: calc(28px * var(--scale));
    height: calc(3px * var(--scale));
    background: rgba(255,255,255,0.25);
    border-radius: calc(2px * var(--scale));
}

/* ══════════════════════════════════
   Lock Screen (iOS 6 style)
   ══════════════════════════════════ */
#lock-screen {
    position: absolute;
    inset: 0;
    z-index: 180;
    display: flex;
    flex-direction: column;
}

.lock-bg {
    position: absolute;
    inset: 0;
    background: url('../site/data/images/lock.png') center/cover no-repeat;
    z-index: -1;
}

.lock-top {
    padding-top: calc(46px * var(--scale));
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.lock-time {
    font-size: calc(52px * var(--scale));
    font-weight: 100;
    letter-spacing: calc(-1px * var(--scale));
    line-height: 1;
}

.lock-date {
    font-size: calc(14px * var(--scale));
    font-weight: 400;
    margin-top: calc(4px * var(--scale));
    opacity: 0.85;
}

.lock-bottom {
    margin-top: auto;
    padding: 0 calc(16px * var(--scale)) calc(28px * var(--scale));
}

/* ── iOS 6 Slide-to-Unlock ── */
.slide-groove {
    position: relative;
    height: calc(40px * var(--scale));
    background: linear-gradient(180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.35) 100%
    );
    border-radius: calc(20px * var(--scale));
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slide-knob {
    position: absolute;
    left: calc(3px * var(--scale));
    width: calc(34px * var(--scale));
    height: calc(34px * var(--scale));
    border-radius: 50%;
    /* iOS 6 metallic knob */
    background: linear-gradient(180deg,
        #e8e8e8 0%, #fdfdfd 20%, #d8d8d8 50%, #b0b0b0 80%, #999 100%
    );
    box-shadow:
        0 1px 3px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.9);
    cursor: grab;
    z-index: 2;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-knob:active { cursor: grabbing; }

.knob-arrow {
    width: 0; height: 0;
    border-top: calc(6px * var(--scale)) solid transparent;
    border-bottom: calc(6px * var(--scale)) solid transparent;
    border-left: calc(8px * var(--scale)) solid #666;
    margin-left: calc(2px * var(--scale));
}

.slide-label {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    font-size: calc(16px * var(--scale));
    font-weight: 400;
    letter-spacing: calc(1.5px * var(--scale));
    z-index: 1;
    user-select: none;
    /* iOS 6 shimmer effect */
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.15) 35%,
        rgba(255,255,255,0.95) 50%,
        rgba(255,255,255,0.15) 65%,
        rgba(255,255,255,0.15) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ios6shimmer 2.5s ease-in-out infinite;
}

@keyframes ios6shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -50% 0; }
}

/* ══════════════════════════════════
   Home Screen
   ══════════════════════════════════ */
#home-screen {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.home-bg {
    position: absolute;
    inset: 0;
    background: url('../site/data/images/drops_of_water.jpg') center/cover no-repeat;
    z-index: -1;
}

/* Swiper */
#app-pages {
    flex: 1;
    padding-top: calc(var(--sb) * var(--scale) + 8px * var(--scale));
    overflow: hidden;
}

.app-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(14px * var(--scale)) calc(4px * var(--scale));
    padding: calc(10px * var(--scale)) calc(10px * var(--scale)) 0;
    align-content: start;
}

/* Page dots */
.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    padding: calc(2px * var(--scale)) 0 calc(4px * var(--scale));
}

.swiper-pagination-bullet {
    width: calc(5px * var(--scale)) !important;
    height: calc(5px * var(--scale)) !important;
    background: rgba(255,255,255,0.4) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: rgba(255,255,255,0.95) !important;
}

/* ── App Icon ── */
.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.app-icon:active .icon-wrap {
    filter: brightness(0.65);
    transform: scale(0.92);
}

.icon-wrap {
    position: relative;
    width: calc(57px * var(--scale));
    height: calc(57px * var(--scale));
    border-radius: calc(12px * var(--scale));
    overflow: hidden;
    transition: transform 0.08s, filter 0.08s;
    box-shadow: 0 calc(2px * var(--scale)) calc(4px * var(--scale)) rgba(0,0,0,0.35);
}

.icon-wrap img, .icon-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* iOS 6 icon gloss overlay */
.icon-gloss {
    position: absolute;
    inset: 0;
    border-radius: calc(12px * var(--scale));
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%,
        rgba(255,255,255,0.12) 48%,
        transparent 50%,
        transparent 100%
    );
    pointer-events: none;
}

.icon-label {
    margin-top: calc(2px * var(--scale));
    font-size: calc(9px * var(--scale));
    color: #fff;
    text-shadow: 0 calc(1px * var(--scale)) calc(2px * var(--scale)) rgba(0,0,0,0.8);
    text-align: center;
    max-width: calc(68px * var(--scale));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* ── Badge (gadgets) ── */
.badge {
    position: absolute;
    top: calc(-3px * var(--scale));
    right: calc(-3px * var(--scale));
    min-width: calc(18px * var(--scale));
    height: calc(18px * var(--scale));
    background: linear-gradient(180deg, #ff4040 0%, #cc0000 100%);
    border: calc(1.5px * var(--scale)) solid #fff;
    border-radius: calc(9px * var(--scale));
    color: #fff;
    font-size: calc(10px * var(--scale));
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 calc(4px * var(--scale));
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 5;
}

/* ══════════════════════════════════
   Dock (iOS 6 glass shelf)
   ══════════════════════════════════ */
#dock {
    position: relative;
    padding: calc(6px * var(--scale)) calc(6px * var(--scale)) calc(8px * var(--scale));
}

.dock-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.06) 50%,
        rgba(0,0,0,0.08) 100%
    );
    border-top: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 0;
}

#dock-icons {
    display: flex;
    justify-content: center;
    gap: calc(12px * var(--scale));
    position: relative;
    z-index: 1;
}

#dock .icon-label {
    display: none;
}

/* ══════════════════════════════════
   App View
   ══════════════════════════════════ */
#app-view {
    position: absolute;
    inset: 0;
    z-index: 150;
    background: #000;
    display: flex;
    flex-direction: column;
    animation: appSlideIn 0.3s ease-out;
}

@keyframes appSlideIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* iOS 6 navigation bar */
#app-bar {
    margin-top: calc(var(--sb) * var(--scale));
    height: calc(44px * var(--scale));
    position: relative;
    overflow: hidden;
}

#app-bar.bar-blue #app-bar-inner {
    background: linear-gradient(180deg,
        #5b8fcc 0%, #4577b5 50%, #2a5a97 100%
    );
    border-bottom: 1px solid #1e3f6e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

#app-bar.bar-black #app-bar-inner {
    background: linear-gradient(180deg,
        #4a4a4a 0%, #333 50%, #222 100%
    );
    border-bottom: 1px solid #111;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#app-bar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(8px * var(--scale));
    color: #fff;
}

.app-bar-hidden #app-bar {
    display: none;
}

#app-back {
    background: linear-gradient(180deg,
        rgba(255,255,255,0.25) 0%,
        rgba(255,255,255,0.05) 100%
    );
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: calc(5px * var(--scale));
    color: #fff;
    font-size: calc(11px * var(--scale));
    cursor: pointer;
    padding: calc(4px * var(--scale)) calc(8px * var(--scale));
    font-weight: 500;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: calc(2px * var(--scale));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 1px 2px rgba(0,0,0,0.2);
}

.back-arrow {
    display: inline-block;
    width: 0; height: 0;
    border-top: calc(4px * var(--scale)) solid transparent;
    border-bottom: calc(4px * var(--scale)) solid transparent;
    border-right: calc(5px * var(--scale)) solid #fff;
}

#app-back:active {
    background: linear-gradient(180deg,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.2) 100%
    );
}

#app-title {
    font-weight: bold;
    font-size: calc(14px * var(--scale));
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.spacer { width: calc(50px * var(--scale)); }

#app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#app-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Close animation */
#app-view.closing {
    animation: appSlideOut 0.25s ease-in forwards;
}

@keyframes appSlideOut {
    to { opacity: 0; transform: scale(0.9); }
}

/* ══════════════════════════════════
   Calendar App (iOS 6 style)
   ══════════════════════════════════ */
.calendar-app {
    width: 100%;
    height: 100%;
    background: #e8e4dc;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, sans-serif;
}

.cal-month-bar {
    background: linear-gradient(180deg, #8e8e93 0%, #636366 100%);
    padding: calc(8px * var(--scale)) calc(10px * var(--scale));
    text-align: center;
    font-size: calc(13px * var(--scale));
    font-weight: bold;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-nav {
    background: none;
    border: none;
    color: #fff;
    font-size: calc(18px * var(--scale));
    cursor: pointer;
    padding: 0 calc(4px * var(--scale));
    opacity: 0.7;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: calc(9px * var(--scale));
    color: #666;
    padding: calc(4px * var(--scale)) calc(4px * var(--scale));
    background: #e8e4dc;
    border-bottom: 1px solid #ccc;
    font-weight: 600;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    flex: 1;
    padding: calc(2px * var(--scale));
    background: #fff;
}

.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(36px * var(--scale));
    font-size: calc(13px * var(--scale));
    color: #333;
    border-bottom: 1px solid #eee;
    cursor: default;
}

.cal-day.today {
    background: linear-gradient(180deg, #4a90d9 0%, #2a5a97 100%);
    color: #fff;
    font-weight: bold;
    border-radius: calc(4px * var(--scale));
    margin: calc(1px * var(--scale));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.cal-day.empty { visibility: hidden; }

/* ══════════════════════════════════
   Notes App (iOS 6 skeuomorphic)
   ══════════════════════════════════ */
.notes-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notes-toolbar {
    height: calc(32px * var(--scale));
    background: linear-gradient(180deg, #d4c9a8, #c4b898);
    border-bottom: 2px solid #a89870;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(11px * var(--scale));
    font-weight: bold;
    color: #6b5c3e;
}

.notes-pad {
    flex: 1;
    background: #fffdd0;
    background-image:
        repeating-linear-gradient(
            transparent,
            transparent calc(25px * var(--scale) - 1px),
            #c8d4c4 calc(25px * var(--scale) - 1px),
            #c8d4c4 calc(25px * var(--scale))
        );
    padding: calc(4px * var(--scale)) calc(14px * var(--scale));
    /* Red margin line */
    border-left: calc(36px * var(--scale)) solid transparent;
    position: relative;
    overflow: hidden;
}

.notes-pad::before {
    content: '';
    position: absolute;
    left: calc(34px * var(--scale));
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d4a0a0;
}

.notes-textarea {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-family: "American Typewriter", "Courier New", Georgia, serif;
    font-size: calc(13px * var(--scale));
    line-height: calc(25px * var(--scale));
    color: #333;
    resize: none;
    outline: none;
}

/* ══════════════════════════════════
   Photos App (iOS 6 style)
   ══════════════════════════════════ */
.photos-app {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(2px * var(--scale));
    padding: calc(2px * var(--scale));
    align-content: start;
    overflow-y: auto;
}

.photo-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s;
}

.photo-thumb:active img {
    opacity: 0.6;
}

/* ══════════════════════════════════
   Animation App
   ══════════════════════════════════ */
.animation-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.anim-circle {
    width: calc(60px * var(--scale));
    height: calc(60px * var(--scale));
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.5); opacity: 1; }
}

.anim-label {
    margin-top: calc(12px * var(--scale));
    font-size: calc(13px * var(--scale));
    opacity: 0.8;
}

/* ══════════════════════════════════
   Visibility
   ══════════════════════════════════ */
.hidden { display: none !important; }

/* Lock screen unlock animation */
#lock-screen.unlocking {
    animation: lockFade 0.5s ease-out forwards;
}

@keyframes lockFade {
    0%   { opacity: 1; }
    100% { opacity: 0; transform: translateY(calc(-30px * var(--scale))); }
}
