:root {
    --bg: #051823;
    --accent: #00aef6;
    --line: rgba(0, 174, 246, .12);
    --text: #e7f3fb;
    --muted: #5b86a0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    -webkit-font-smoothing: antialiased;
}

/* Header, footer, body text */
@font-face {
    font-family: "JetBrains Mono";
    src: url("/static/fonts/JetBrainsMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
/* Button label */
@font-face {
    font-family: "TT Norms Pro";
    src: url("/static/fonts/TTNormsPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

.page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    padding: max(20px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    /* faint technical grid like the mockup */
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
}

/* corner brackets */
.corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--accent);
}
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.topbar {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text);
    padding: 6px 26px 0;
    line-height: 1.5;
}
.topbar .dot { color: var(--accent); margin: 0 4px; }

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 24px 4px;
}

.photo-frame {
    width: 100%;
    border: 1px solid rgba(0, 174, 246, .35);
    border-radius: 6px;
    padding: 6px;
    background: rgba(0, 174, 246, .04);
}
.photo-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    border: 1px dashed rgba(0, 174, 246, .3);
    border-radius: 4px;
    padding: 20px;
}

.btn {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    font-family: "TT Norms Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 17px 20px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] {
    background: rgba(0, 174, 246, .25);
    pointer-events: none;
}

.footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 4px 4px 2px;
}
.footer .zone {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.footer .brand {
    height: 34px;
    width: auto;
}

@media (max-width: 360px) {
    .topbar { font-size: 10px; letter-spacing: 1.1px; }
    .footer .brand { height: 28px; }
}
