﻿:root {
    --color-bg: #fff7f2;
    --color-surface: #ffffff;
    --color-surface-soft: #fff1e8;
    --color-ink: #1d2530;
    --color-muted: #64748b;
    --color-line: #1d2530;
    --color-primary: #ff5c8a;
    --color-primary-dark: #d93368;
    --color-cyan: #14b8c4;
    --color-warm: #ffd166;
    --color-green: #3ccf91;
    --shadow-hard: 6px 6px 0 #1d2530;
    --shadow-soft: 0 22px 58px rgba(255, 92, 138, 0.18);
    --font-body: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Zen Maru Gothic', 'Noto Sans SC', system-ui, sans-serif;
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 209, 102, 0.5), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(20, 184, 196, 0.24), transparent 26%),
        linear-gradient(180deg, #fffaf6 0%, var(--color-bg) 46%, #fff1e8 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: '';
    background-image:
        linear-gradient(rgba(29, 37, 48, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 37, 48, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

a {
    color: inherit;
    text-decoration: none;
}

.mobile-page {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}

.profile-card,
.link-section,
.mini-section {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color-line);
    box-shadow: var(--shadow-hard), var(--shadow-soft);
}

.profile-card {
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-xl);
}

.profile-card::before,
.profile-card::after,
.link-section::after {
    position: absolute;
    content: '';
    border: 2px solid var(--color-line);
    pointer-events: none;
}

.profile-card::before {
    top: 64px;
    right: -24px;
    width: 86px;
    height: 86px;
    background: var(--color-warm);
    border-radius: 26px;
    box-shadow: 4px 4px 0 var(--color-line);
    transform: rotate(18deg);
}

.profile-card::after {
    bottom: 156px;
    left: -20px;
    width: 54px;
    height: 54px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--color-line);
}

.profile-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.site-badge,
.handle,
.section-title span {
    display: inline-flex;
    width: fit-content;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-badge {
    padding: 7px 12px;
    color: var(--color-primary-dark);
    background: #fff0f5;
    border: 2px solid var(--color-line);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--color-line);
}

.top-action {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 2px solid var(--color-line);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--color-line);
}

.avatar-wrap {
    position: relative;
    z-index: 1;
    width: 196px;
    height: 196px;
    padding: 8px;
    margin: var(--space-4) auto var(--space-2);
    background: linear-gradient(180deg, #ffffff 0%, #fff0f5 100%);
    border: 2px solid var(--color-line);
    border-radius: 42px;
    box-shadow: 7px 7px 0 var(--color-line);
    transform: rotate(-2deg);
}

.avatar-art {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar-art path {
    stroke: var(--color-line);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avatar-halo {
    fill: #ffe9b5;
}

.avatar-hair-back,
.avatar-hair-front,
.avatar-bang {
    fill: #ff9a62;
}

.avatar-face {
    fill: #ffd7c5;
}

.avatar-eye,
.avatar-mouth {
    fill: none;
}

.avatar-blush {
    fill: #ff7aa6;
    stroke-width: 4;
}

.avatar-bow {
    fill: var(--color-primary);
}

.avatar-sparkle {
    fill: var(--color-warm);
}

.avatar-sparkle.small {
    fill: var(--color-cyan);
}

.profile-copy {
    position: relative;
    z-index: 1;
    text-align: center;
}

.handle {
    justify-content: center;
    margin: 0 auto var(--space-2);
    color: var(--color-primary-dark);
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: var(--font-display);
    line-height: 1.15;
}

h1 {
    margin-bottom: var(--space-2);
    font-size: clamp(36px, 12vw, 52px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

h2 {
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

p {
    line-height: 1.7;
    color: var(--color-muted);
}

.status {
    display: inline-flex;
    justify-content: center;
    padding: 8px 12px;
    margin-bottom: var(--space-3);
    font-size: 13px;
    font-weight: 900;
    color: var(--color-ink);
    background: var(--color-surface-soft);
    border: 2px solid var(--color-line);
    border-radius: 999px;
}

.bio {
    margin-bottom: var(--space-4);
    font-size: 14px;
}

.social-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}

.social-grid a {
    display: grid;
    min-height: 72px;
    grid-template-rows: 24px 16px;
    place-items: center;
    gap: 5px;
    padding: 9px 6px;
    font-size: 12px;
    font-weight: 900;
    background: var(--color-surface);
    border: 2px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: 3px 3px 0 var(--color-line);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.social-grid span {
    line-height: 16px;
}

.social-grid a:active,
.guide-link:active,
.mini-grid a:active,
.top-action:active {
    transform: scale(0.98);
    box-shadow: 2px 2px 0 var(--color-line);
}

.social-grid svg,
.top-action svg,
.guide-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.7;
}

.link-section,
.mini-section {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-lg);
}

.link-section::after {
    top: -18px;
    right: 34px;
    width: 46px;
    height: 46px;
    background: var(--color-primary);
    border-radius: 15px;
    box-shadow: 4px 4px 0 var(--color-line);
    transform: rotate(45deg);
}

.section-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.section-title span {
    color: var(--color-primary-dark);
}

.section-title.compact {
    margin-bottom: var(--space-3);
}

.link-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-3);
}

.guide-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    gap: var(--space-3);
    align-items: center;
    min-height: 86px;
    padding: var(--space-3);
    background: var(--color-surface);
    border: 2px solid var(--color-line);
    border-radius: 22px;
    box-shadow: 4px 4px 0 var(--color-line);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.guide-link:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 var(--color-line);
}

.link-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid var(--color-line);
    border-radius: 18px;
    box-shadow: 3px 3px 0 var(--color-line);
}

.accent-pink .link-icon {
    background: #fff0f5;
    color: var(--color-primary-dark);
}

.accent-cyan .link-icon {
    background: #d8f7ff;
    color: #0f7f8a;
}

.accent-yellow .link-icon {
    background: #fff2bd;
    color: #8a6500;
}

.accent-green .link-icon {
    background: #e2ffe9;
    color: #16835a;
}

.link-copy {
    min-width: 0;
}

.link-copy strong,
.link-copy small {
    display: block;
}

.link-copy strong {
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 900;
}

.link-copy small {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-arrow {
    display: grid;
    place-items: center;
    color: var(--color-muted);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.mini-grid a {
    display: grid;
    min-height: 48px;
    place-items: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    background: var(--color-surface);
    border: 2px solid var(--color-line);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--color-line);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-5) 0 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--color-muted);
}

.site-footer a {
    color: var(--color-primary-dark);
}

.reveal-card {
    opacity: 0;
    transform: translateY(14px);
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 260ms ease, transform 260ms ease;
}

@media (min-width: 720px) {
    .mobile-page {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .profile-card,
    .link-section,
    .mini-section {
        box-shadow: 8px 8px 0 var(--color-line), var(--shadow-soft);
    }
}

@media (max-width: 360px) {
    .mobile-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .avatar-wrap {
        width: 174px;
        height: 174px;
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-link {
        grid-template-columns: 48px minmax(0, 1fr) 24px;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
