:root {
    --accent-color: #d8b873;
    --accent-rgb: 216, 184, 115;
    --gold: #d7bd7a;
    --gold-soft: rgba(215, 189, 122, 0.62);
    --paper: #f4eee0;
    --ink: #191713;
    --screen: #14110e;
    --screen-2: #211b15;
    --line: rgba(215, 189, 122, 0.32);
}

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

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--paper);
    font-family: "Barlow Condensed", sans-serif;
    background:
        radial-gradient(circle at 50% 22%, rgba(var(--accent-rgb), 0.28), transparent 24rem),
        radial-gradient(circle at 18% 90%, rgba(215, 189, 122, 0.18), transparent 18rem),
        linear-gradient(150deg, #080806 0%, #17130f 48%, #050505 100%);
    overflow-x: hidden;
}

.ambient-orbit {
    position: fixed;
    width: 520px;
    height: 520px;
    right: calc(50% - 360px);
    top: 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.38);
    border-radius: 50%;
    transform: rotate(-18deg) scaleX(1.55);
    box-shadow:
        inset 0 0 80px rgba(var(--accent-rgb), 0.08),
        0 0 80px rgba(var(--accent-rgb), 0.12);
    pointer-events: none;
}

.ambient-orbit::before,
.ambient-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.ambient-orbit::before {
    width: 160px;
    height: 160px;
    right: 48px;
    top: 88px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 9%),
        radial-gradient(circle at 48% 45%, rgba(var(--accent-rgb), 0.72), transparent 44%),
        radial-gradient(circle, rgba(215,189,122,0.42), transparent 64%);
    filter: blur(0.4px);
}

.ambient-orbit::after {
    width: 9px;
    height: 9px;
    right: 208px;
    top: 110px;
    border: 1px solid rgba(215, 189, 122, 0.62);
}

.phone-shell {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    padding: 8px;
    border: 1px solid rgba(244, 238, 224, 0.34);
    border-radius: 28px;
    background:
        linear-gradient(130deg, rgba(255,255,255,0.28), transparent 18% 78%, rgba(255,255,255,0.16)),
        #080807;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.72),
        0 0 60px rgba(var(--accent-rgb), 0.18);
}

.phone-screen {
    position: relative;
    min-height: min(780px, calc(100vh - 64px));
    padding: 16px 15px 20px;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(var(--accent-rgb), 0.16), transparent 34%),
        radial-gradient(circle at 78% 10%, rgba(215, 189, 122, 0.28), transparent 26%),
        linear-gradient(180deg, rgba(20, 17, 14, 0.72), rgba(12, 11, 10, 0.96)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 8px);
    border: 1px solid rgba(215, 189, 122, 0.22);
}

.phone-screen::before {
    content: "";
    position: absolute;
    inset: 144px 8px 18px;
    background:
        linear-gradient(90deg, transparent, rgba(215,189,122,0.12), transparent),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 9px);
    border-top: 1px solid rgba(215,189,122,0.2);
    opacity: 0.62;
    pointer-events: none;
}

.status-bar,
.profile-card,
.bio-line,
.app-grid,
.toast {
    position: relative;
    z-index: 1;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: rgba(244, 238, 224, 0.82);
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
}

.uid::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 10px;
    margin-left: 7px;
    border: 1px solid currentColor;
    border-top-width: 3px;
    opacity: 0.8;
}

.uid {
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.uid:hover,
.uid:focus-visible {
    outline: none;
    color: var(--gold);
}

.phone-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.signal {
    width: 15px;
    height: 12px;
    background:
        linear-gradient(to top, currentColor 0 35%, transparent 35%) 0 100% / 3px 100% no-repeat,
        linear-gradient(to top, currentColor 0 58%, transparent 58%) 6px 100% / 3px 100% no-repeat,
        linear-gradient(to top, currentColor 0 82%, transparent 82%) 12px 100% / 3px 100% no-repeat;
}

.battery {
    width: 22px;
    height: 10px;
    border: 1px solid currentColor;
    border-radius: 2px;
    position: relative;
    padding: 2px;
}

.battery::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: transparent;
}

.battery::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 3px;
    width: 2px;
    height: 4px;
    background: currentColor;
}

.battery-fill {
    display: block;
    width: 72%;
    height: 100%;
    background: currentColor;
    transition: width 0.3s ease, background 0.3s ease;
}

.battery.charging .battery-fill {
    background: var(--gold);
}

.battery.charging::before {
    content: "+";
    inset: auto;
    left: 50%;
    top: 50%;
    z-index: 1;
    color: var(--ink);
    background: transparent;
    font-family: "Share Tech Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -52%);
}

.battery.low {
    color: #ff7777;
}

.profile-card {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 13px;
    align-items: center;
    margin-bottom: 13px;
}

.avatar-ring {
    width: 66px;
    height: 66px;
    padding: 4px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background:
        conic-gradient(from -30deg, rgba(var(--accent-rgb), 0.5), rgba(215,189,122,0.9), rgba(var(--accent-rgb), 0.4));
    box-shadow:
        0 0 0 4px rgba(0,0,0,0.22),
        0 0 22px rgba(var(--accent-rgb), 0.28);
}

.avatar-ring img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #080807;
}

.profile-copy h1 {
    color: var(--paper);
    font-size: 27px;
    line-height: 0.9;
    font-weight: 700;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

.profile-copy p {
    margin-top: 8px;
    color: var(--gold);
    font-size: 17px;
    font-weight: 700;
}

.profile-copy .avatar-credit {
    width: fit-content;
    margin-top: 7px;
    padding: 3px 8px;
    border: 1px solid rgba(215, 189, 122, 0.24);
    color: rgba(244, 238, 224, 0.66);
    background: rgba(0,0,0,0.18);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.profile-copy .avatar-credit a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 189, 122, 0.55);
}

.profile-copy .avatar-credit a:hover,
.profile-copy .avatar-credit a:focus-visible {
    outline: none;
    color: var(--paper);
    border-bottom-color: var(--paper);
}

.bio-line {
    margin: 4px 0 24px;
    color: rgba(244, 238, 224, 0.76);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    padding-bottom: 16px;
}

.app-tile {
    min-height: 82px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 9px 5px 8px;
    border: 1px solid var(--line);
    color: rgba(244, 238, 224, 0.9);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        rgba(16, 14, 12, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.035),
        0 10px 24px rgba(0,0,0,0.18);
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 0.95;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.app-tile:hover,
.app-tile:focus-visible {
    outline: none;
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.84);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(255,255,255,0.045)),
        rgba(18, 15, 12, 0.88);
}

.icon-frame {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    position: relative;
}

.icon-frame::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(215, 189, 122, 0.24);
    transform: rotate(45deg);
}

.icon-frame img {
    position: relative;
    z-index: 1;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    filter:
        brightness(0)
        invert(1)
        drop-shadow(0 2px 0 rgba(0,0,0,0.35));
}

.text-icon {
    color: var(--paper);
    font-family: "Share Tech Mono", monospace;
    font-size: 17px;
    text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.38);
}

.placeholder {
    color: rgba(244, 238, 224, 0.72);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(14px);
    width: min(330px, calc(100vw - 40px));
    padding: 12px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.54);
    background: rgba(12, 10, 8, 0.94);
    color: var(--paper);
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 18px 44px rgba(0,0,0,0.42);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 450px) {
    body {
        padding: 0;
        place-items: stretch;
    }

    .ambient-orbit {
        right: -250px;
    }

    .phone-shell {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 0;
    }

    .phone-screen {
        min-height: 100vh;
        border-radius: 0;
        padding: 14px 13px 22px;
    }

    .app-grid {
        gap: 9px;
    }

    .app-tile {
        min-height: 78px;
        font-size: 14px;
    }

    .bio-line {
        font-size: 17px;
    }
}
