/* Arctic Discovery — mission phone (consolidated styles) */
* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100svh;
    background: linear-gradient(180deg,#153754,#0a1d2e);
    color: #eaf0f3;
    font: 16px/1.55 system-ui,Arial,sans-serif;
    overflow-x: hidden;
}

button, a {
    touch-action: manipulation;
}

button {
    font: inherit;
    cursor: pointer;
}

    button:focus-visible, a:focus-visible {
        outline: 3px solid #f4d35e;
        outline-offset: 3px;
    }

.phone {
    position: relative;
    max-width: 520px;
    min-height: 100svh;
    margin: auto;
    padding: 82px 18px 110px;
    background: linear-gradient(165deg,#203c50,#0b1e2d 70%);
    isolation: isolate;
}

.entry {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(180deg,#153754,#0a1d2e);
}

.entry-card {
    width: min(100%,360px);
    text-align: center;
}

.entry-icon {
    font-size: 44px;
    color: #f4d35e;
}

.entry-card h1 {
    font-size: 29px;
    line-height: 1.2;
    color: #f4d35e;
    margin: 14px 0;
}

.entry-card p {
    color: #c7d6e3;
    margin-bottom: 26px;
}

.primary {
    display: inline-block;
    border: 0;
    border-radius: 11px;
    padding: 13px 20px;
    background: #f4d35e;
    color: #102638;
    font-weight: 700;
    text-decoration: none;
}

.home {
    text-align: center;
    padding: 32px 0 30px;
}

.clock {
    font-size: clamp(60px,15vw,78px);
    font-weight: 250;
    letter-spacing: -3px;
    line-height: 1.1;
}

.date {
    color: #d3e0e7;
    font-size: 15px;
}

.lock-status {
    margin: 14px 0 90px;
    color: #a9c0cd;
    font-size: 12px;
    letter-spacing: .08em;
}

.mail-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #eaf0f3;
    text-align: center;
    cursor: pointer;
}

.mail-app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: #e8f2f5;
    color: #1a5273;
}

    .mail-app-icon svg {
        display: block;
        width: 34px;
        height: 34px;
    }
.unread-count {
    position: absolute;
    top: -7px;
    right: -12px;
    min-width: 23px;
    border-radius: 30px;
    background: #b93b46;
    color: white;
    font-weight: 700;
    padding: 1px 6px;
}

.idle {
    color: #b4c8d3;
    font-size: 13px;
    margin-top: 25px;
}

/* Inbox and email reader toolbar */
.phone .app-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0;
    border-bottom: 1px solid #ffffff22;
}

    .phone .app-toolbar h1 {
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;
        font-size: 24px;
        line-height: 1.2;
        text-align: left;
        white-space: nowrap;
        color: #edf5f7;
    }

.phone .toolbar-spacer {
    flex: 1;
    min-width: 0;
}

.toolbar-title {
    font-size: 17px;
    font-weight: 600;
}

.toolbar-spacer {
    flex: 1;
}

/* Inbox and email reader navigation buttons */
.phone .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #dbe9ef;
    font-size: 26px;
    line-height: 1;
}

    .phone .icon-button svg {
        display: block;
        width: 24px;
        height: 24px;
    }
    .icon-button:hover {
        background: #ffffff15;
    }

.inbox-subtitle {
    margin: 19px 4px 10px;
    color: #9fb9c8;
    font-size: 11px;
    letter-spacing: .13em;
}

.empty-inbox {
    text-align: center;
    padding: 40px 10px;
    color: #adc1cd;
}

.mail-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    border: 0;
    border-bottom: 1px solid #ffffff22;
    background: #f3f6f7;
    color: #1c3443;
    text-align: left;
}

    .mail-row:first-of-type {
        border-radius: 14px 14px 0 0;
    }

    .mail-row:hover {
        background: #e5eef2;
    }

.avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d5e7ee;
    color: #2d5a71;
    font-size: 23px;
}

.mail-row-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

    .mail-row-copy strong {
        color: #1c3443;
        font-size: 14px;
    }

    .mail-row-copy .subject {
        font-size: 14px;
        font-weight: 650;
    }

    .mail-row-copy .preview {
        font-size: 12px;
        color: #627784;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #267cb0;
    flex: none;
}

.mail-row.is-read .unread-dot {
    visibility: hidden;
}

.mail-row.is-read .subject {
    font-weight: 400;
}

.mail {
    margin: 18px 0 0;
    background: #f4f3ee;
    color: #24343d;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 38px #0003;
    font-family: Arial,sans-serif;
}

.mail-head {
    padding: 22px;
    border-bottom: 1px solid #24343d22;
    background: #e9ece8;
}

    .mail-head h1 {
        color: #24343d;
        text-align: left;
        font-size: 25px;
        line-height: 1.3;
        margin: 12px 0;
        letter-spacing: normal;
        text-shadow: none;
    }

.meta {
    font-size: 12px;
    color: #586972;
}

.body {
    padding: 22px;
    font-size: 15px;
    color: #24343d;
    text-shadow: none;
}

    .body p {
        margin: 0 0 20px;
        color: #24343d;
        text-shadow: none;
    }

    .body li {
        margin: 10px 0;
        color: #24343d;
        text-shadow: none;
    }

    .body ul {
        padding-left: 20px;
    }

    .body h2 {
        color: #24343d;
        font-size: 16px;
        margin-top: 26px;
        text-shadow: none;
    }

    .body strong {
        color: #24343d;
        text-shadow: none;
    }

.signature {
    border-top: 1px solid #24343d22;
    padding-top: 20px;
    color: #526772 !important;
}

    .signature strong {
        color: #4d626d !important;
    }

.tag {
    color: #725128;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.body .primary {
    display: block;
    margin: 24px 0 10px;
    text-align: center;
    background: #223d4c;
    color: #fff;
    text-shadow: none;
}

.notification {
    position: fixed;
    z-index: 100;
    top: calc(78px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(460px,calc(100vw - 24px));
    border: 1px solid #d6e1e7;
    border-radius: 16px;
    background: #edf3f5;
    color: #203643;
    box-shadow: 0 12px 35px #0007;
    padding: 10px 14px 12px;
    animation: arrive .3s ease-out;
}

.notification-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: .09em;
    color: #5b7381;
}

.dismiss {
    border: 0;
    background: transparent;
    color: #4c6270;
    width: 36px;
    height: 32px;
    font-size: 26px;
    line-height: 1;
}

#dismiss-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #ffe16b;
    color: #263c4b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.notification-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: #203643;
}

    .notification-content strong {
        font-size: 14px;
        color: #203643;
    }

    .notification-content span {
        font-size: 13px;
    }

    .notification-content small {
        font-size: 11px;
        color: #607787;
    }

footer {
    text-align: center;
    margin: 40px 0 8px;
    color: #a5bbc6;
    font-size: 10px;
    letter-spacing: .13em;
}

.no-script {
    padding: 15px;
}

game-navigation {
    position: relative;
    z-index: 5;
}

@keyframes arrive {
    from {
        opacity: 0;
        transform: translate(-50%,-12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%,0);
    }
}

@media(min-width:600px) {
    .phone {
        margin: 24px auto;
        border: 1px solid #ffffff20;
        border-radius: 28px;
        min-height: 850px;
        padding: 82px 26px 110px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation: none !important;
    }
}
