/* 零果剧场 - 手机外壳样式 */
/* 完全独立，业务代码不依赖此文件 */

:root {
    --page-bg: #d8dbe0;
    --page-bg-deep: #c5c9d1;
    --shell-edge: #20242b;
    --shell-edge-soft: #3b4048;
    --shell-inner: #0b0b0d;
    --screen-bg: #ffffff;
    --screen-line: #d6d8dc;
    --text-main: #111111;
    --text-soft: #5e6168;
    --placeholder-line: #cacdd3;
    --placeholder-fill: #fafafb;
    --shadow-outer: 0 36px 80px rgba(16, 18, 24, 0.26);
    --shadow-inner: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    /* disable touch highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top, #eef0f4 0%, var(--page-bg) 42%, var(--page-bg-deep) 100%);
}

/* Override tailwind outline behavior for all buttons/divs */
*:focus {
    outline: none;
}

.viewport-stage {
    width: 100vw;
    height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.device-stage {
    position: relative;
    width: 375px;
    height: 812px;
}

.device-shell {
    position: absolute;
    inset: 0;
    width: 375px;
    height: 812px;
    transform-origin: top left;
}

.device-body {
    position: relative;
    width: 375px;
    height: 812px;
    border-radius: 58px;
    background: linear-gradient(180deg, var(--shell-edge-soft) 0%, var(--shell-edge) 22%, #1b1f25 78%, #363b43 100%);
    box-shadow: var(--shadow-outer), var(--shadow-inner);
    padding: 9px;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 72px);
    pointer-events: none;
    z-index: 10;
}

.status-bar {
    position: absolute;
    top: 18px;
    left: 24px;
    right: 24px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 13;
    pointer-events: none;
}

.carrier-label {
    max-width: 112px;
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 16px;
    margin-top: 1px;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--text-main);
}

.signal-icon svg {
    width: 18px;
    height: 12px;
    display: block;
}

.wifi-icon svg {
    width: 16px;
    height: 12px;
    display: block;
}

.battery-icon {
    position: relative;
    width: 27px;
    height: 13px;
    border: 1.6px solid var(--text-main);
    border-radius: 4px;
}

.battery-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    right: -3.4px;
    width: 2.6px;
    height: 5px;
    border-radius: 0 2px 2px 0;
    background: var(--text-main);
}

.battery-level {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 7px;
    border-radius: 2px;
    background: var(--text-main);
}

.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 126px;
    height: 35px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #141416 0%, #050506 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 14;
    pointer-events: none;
}

.dynamic-island::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 16px;
    width: 56px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.content-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    border: none;
    background: transparent;
    overflow: hidden;
    z-index: 1;
    /* Under the overlay */
}

.react-safe-area {
    padding-top: 54px;
    /* safe area for top */
}

.home-indicator {
    position: absolute;
    left: 50%;
    bottom: 13px;
    width: 134px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.92);
    z-index: 100;
    pointer-events: none;
}

@media (max-width: 480px),
(max-height: 700px) {
    .viewport-stage {
        padding: 16px;
    }
}

/* Scrollbar hidden for app feel */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

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

    100% {
        transform: translateX(100%);
    }
}

.text-shadow-glow {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
