@font-face {
    font-family: 'BlurLight';
    src: url(../fonts/blurlight.ttf);
}

@font-face {
    font-family: 'BlurBold';
    src: url('../fonts/BlurWeb-Bold W03 Regular.ttf');
}

@font-face {
    font-family: 'DINCondensed';
    src: url('../fonts/fonnts.com-DIN_Condensed_Light.otf');
}

@font-face {
    font-family: 'HGGothic';
    src: url('../fonts/HGRSGU.ttc');
}

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

html, body {
    background: #0d0d0d;
    color: #c0c0c0;
    font-family: 'BlurLight', monospace;
    overscroll-behavior: none;
}

body {
    padding: env(safe-area-inset-top) 28px env(safe-area-inset-bottom);
    overflow-y: auto;
}

.page {
    max-width: 400px;
    margin: 0 auto;
    padding: 48px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 44px;
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    animation: fadeUp 0.4s ease both;
}

.ig-link {
    color: #c0c0c0;
    opacity: 0.18;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.ig-link:hover { opacity: 0.7; }

.nav-link {
    font-size: 12px;
    color: #c0c0c0;
    text-decoration: none;
    opacity: 0.18;
    letter-spacing: 2px;
    transition: opacity 0.2s;
}

.nav-link:hover { opacity: 0.7; }

.clock-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeUp 0.5s ease 0.05s both;
}

.time {
    font-size: 56px;
    letter-spacing: 3px;
    line-height: 1;
}

.date {
    font-size: 15px;
    opacity: 0.45;
    letter-spacing: 1px;
}

.weather {
    font-size: 13px;
    opacity: 0.28;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.mood {
    font-size: 13px;
    opacity: 0.28;
    letter-spacing: 1.5px;
    margin-top: 1px;
}

.owner-status {
    font-size: 12px;
    opacity: 0.22;
    letter-spacing: 1.5px;
    margin-top: 1px;
}

.quote-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeUp 0.5s ease 0.1s both;
}

.quote-text {
    font-size: 15px;
    opacity: 0.55;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.quote-source {
    font-size: 12px;
    opacity: 0.25;
    letter-spacing: 2px;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.5s ease 0.15s both;
}

.label {
    font-size: 13px;
    opacity: 0.35;
    letter-spacing: 3px;
}

ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

li {
    font-size: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    animation: fadeUp 0.35s ease both;
    transition: opacity 0.15s;
}

li:hover { opacity: 0.6; }

li::before {
    content: '\2014\00a0';
    opacity: 0.25;
}

.progress {
    font-size: 12px;
    opacity: 0.35;
    letter-spacing: 1.5px;
}

.home-gif {
    width: 120px;
    height: auto;
    opacity: 0.55;
    filter: grayscale(25%);
    margin-top: 8px;
    transition: opacity 0.3s, filter 0.3s;
    display: block;
}

.home-gif:hover {
    opacity: 0.9;
    filter: grayscale(0%);
}

.last-msg-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: #c0c0c0;
    transition: opacity 0.2s;
    opacity: 0.75;
}

.last-msg-wrap:hover { opacity: 1; }

.last-msg-name {
    font-size: 13px;
    opacity: 0.4;
    letter-spacing: 2px;
}

.last-msg-text {
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1.6;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    animation: fadeUp 0.5s ease 0.2s both;
}

.nav-item {
    font-size: 14px;
    color: #c0c0c0;
    text-decoration: none;
    opacity: 0.32;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.nav-item:hover { opacity: 0.9; }

.strava-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.5s ease 0.2s both;
}

.strava-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strava-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.strava-period-inline {
    font-size: 12px;
    opacity: 0.3;
    letter-spacing: 1.5px;
    min-width: 100px;
}

.strava-num {
    font-size: 22px;
    letter-spacing: 1px;
}

.strava-meta {
    font-size: 12px;
    opacity: 0.35;
    letter-spacing: 1.5px;
}

.tip-link {
    font-size: 12px;
    color: #c0c0c0;
    text-decoration: none;
    opacity: 0.18;
    letter-spacing: 2px;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.tip-link:hover { opacity: 0.6; }

.footer-stats {
    font-size: 11px;
    opacity: 0.2;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

.spotify-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.5s ease 0.25s both;
}

.spotify-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #c0c0c0;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.spotify-widget:hover { opacity: 1; }

.spotify-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.85;
}

.spotify-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.spotify-title {
    font-size: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist {
    font-size: 12px;
    opacity: 0.45;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── cyber warning ───────────────────────────────────── */
.cyber-warn {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    white-space: nowrap;
    animation: cw-run 6s ease 2.5s forwards;
}

.cw-jp {
    font-size: 10px;
    letter-spacing: 1.5px;
    opacity: 0.45;
    margin-bottom: 6px;
    font-family: 'HGGothic', sans-serif;
}

.cw-en {
    font-size: 13px;
    letter-spacing: 3px;
    opacity: 0.75;
    text-transform: uppercase;
    font-family: 'HGGothic', monospace;
}

.cw-red { color: #cc2020; }

@keyframes cw-run {
    0%   { opacity: 0; transform: translateX(-50%); }
    5%   { opacity: 1; transform: translateX(calc(-50% - 4px)) skewX(-5deg); filter: brightness(1.4); }
    7%   { transform: translateX(calc(-50% + 4px)) skewX(3deg); }
    9%   { transform: translateX(calc(-50% - 2px)) skewX(-1deg); filter: brightness(1); }
    11%  { transform: translateX(-50%) skewX(0); opacity: 1; }
    25%  { transform: translateX(calc(-50% + 3px)); opacity: 1; filter: brightness(1.2); }
    26%  { transform: translateX(-50%); filter: brightness(1); }
    70%  { opacity: 1; }
    90%  { opacity: 0.2; }
    100% { opacity: 0; }
}

.statue-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
}

.statue-bg img {
    height: 92vh;
    width: auto;
    object-fit: contain;
    opacity: 0.18;
    user-select: none;
    pointer-events: none;
}

.kanji {
    position: fixed;
    bottom: 24px;
    right: 24px;
    font-size: 11px;
    letter-spacing: 8px;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    writing-mode: vertical-rl;
    font-family: 'BlurBold', monospace;
}

.spotify-idle {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.3;
}

.spotify-idle-art {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid rgba(200, 200, 200, 0.4);
    position: relative;
}

.spotify-idle-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(200,200,200,0.08) 4px,
        rgba(200,200,200,0.08) 5px
    );
}

.spotify-idle-text {
    font-size: 13px;
    letter-spacing: 2px;
}

.spotify-dot.idle {
    background: rgba(200, 200, 200, 0.4);
    animation: none;
}

.spotify-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1db954;
    flex-shrink: 0;
    margin-left: auto;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
