:root {
    --bg: #0b0d12;
    --panel: #151923;
    --panel2: #1b202c;
    --text: #f2f4f8;
    --muted: #9ca5b5;
    --line: #2d3442;
    --accent: #63e6be;
    --accent2: #74c0fc;
    --danger: #ff8787;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(99,230,190,.10), transparent 28rem),
        radial-gradient(circle at 85% 25%, rgba(116,192,252,.08), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.9;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    background-image:
        linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
    background-size: 32px 32px;
}

header {
    min-height: 330px;
    display: grid;
    place-items: center;
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    z-index: 2;
}

h1 {
    margin: 10px 0;
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 1.2;
    letter-spacing: .04em;
}

.hero-sub {
    color: var(--muted);
    margin: 15px 0 0;
}

/* タイトル右上の太陽 */
.sun {
    position: absolute;
    width: 210px;
    height: 210px;
    top: -65px;
    right: -55px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%,
            #fff7b2 0%,
            #ffd86b 28%,
            #ffad4d 55%,
            rgba(255,137,68,.45) 72%,
            rgba(255,137,68,0) 74%);
    box-shadow:
        0 0 35px rgba(255,183,77,.55),
        0 0 90px rgba(255,145,70,.25);
    opacity: .9;
}

.sun::before {
    content: "";
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255,190,90,.18) 0%,
        rgba(255,150,80,.08) 45%,
        transparent 70%);
}

.sun::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(255,220,130,.18),
        0 0 0 18px rgba(255,170,80,.035),
        0 0 0 38px rgba(255,170,80,.02);
}

main {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto 100px;
}

section {
    margin: 28px 0;
    padding: 34px;
    background: rgba(21,25,35,.9);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    margin: 0 0 26px;
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: "";
    width: 5px;
    height: 30px;
    border-radius: 5px;
    background: linear-gradient(var(--accent), var(--accent2));
}

h3 {
    margin: 34px 0 12px;
    font-size: 1.08rem;
    color: var(--accent2);
}

p {
    margin: 12px 0;
}

.profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 25px;
}

.profile-box {
    min-height: 220px;
    border: 1px dashed #475062;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(99,230,190,.05), transparent),
        #10141d;
    display: grid;
    place-items: center;
    color: #697386;
    transition: transform .25s, border-color .25s;
}

.profile-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.profile-box .placeholder {
    padding: 20px;
    text-align: center;
}

.character-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.character {
    padding: 20px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 13px;
    position: relative;
    overflow: hidden;
}

.character::before {
    content: "COIN MINER";
    display: block;
    font-size: .68rem;
    letter-spacing: .15em;
    color: var(--accent);
    margin-bottom: 10px;
}

.character strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.asset {
    color: var(--accent);
    font-weight: bold;
}

.note {
    margin: 28px 0;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(99,230,190,.35);
    border-radius: 12px;
    background: rgba(99,230,190,.055);
    color: #cbd4df;
}

.highlight {
    border-left: 3px solid var(--accent);
    padding-left: 18px;
}

footer {
    text-align: center;
    color: #687284;
    padding: 20px;
    font-size: .8rem;
}

#top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 45px;
    height: 45px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #171c27;
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .25s;
}

#top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 700px) {
    header {
        min-height: 280px;
        padding: 50px 18px;
    }

    .sun {
        width: 150px;
        height: 150px;
        top: -45px;
        right: -45px;
    }

    section {
        padding: 24px 20px;
    }

    .profile,
    .character-list {
        grid-template-columns: 1fr;
    }

    .profile-box {
        min-height: 160px;
    }
}

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