*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --bg: #d8eaf8;
    --win-bg: #f0f8ff;
    --border: #8ab4d4;
    --border-lt: #c0d8f0;
    --border2: rgba(120, 170, 210, 0.6);
    --chrome-t: #dceefa;
    --chrome-b: #b8d4ec;
    --blue-dk: #1a4a7a;
    --blue-md: #3a74aa;
    --blue-lt: #6aaad4;
    --blue-pal: #c4dff2;
    --text: #1a2e42;
    --muted: #5a82a4;
    --link: #1a4a8a;
    --white: #ffffff;
    --glow: rgba(90, 160, 220, 0.35);
    --shadow: rgba(20, 60, 110, 0.15);
    --accent: #7aaec8;
    --accent2: #3a74aa;
    --accent3: #a5cfe4;
    --inset: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .06);
}

body {
    background: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, transparent 0px, transparent 16px, rgba(168, 204, 232, .18) 16px, rgba(168, 204, 232, .18) 17px),
        repeating-linear-gradient(-45deg, transparent 0px, transparent 16px, rgba(168, 204, 232, .10) 16px, rgba(168, 204, 232, .10) 17px);
    min-height: 100vh;
    font-family: 'Nanum Gothic', 'Noto Sans KR', Arial, sans-serif;
    font-size: 11px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 10px 40px;
}

/* ── BROWSER WINDOW ── */
.win {
    width: 640px;
    border: 2px solid var(--border);
    border-radius: 6px 6px 4px 4px;
    overflow: hidden;
    background: var(--win-bg);
    box-shadow: 0 6px 28px rgba(20, 60, 110, .22), 0 0 0 1px rgba(255, 255, 255, .8) inset;
    animation: fadeUp .45s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── CHROME BARS ── */
.chrome-top {
    background: linear-gradient(180deg, #eaf4fd 0%, #cce0f4 100%);
    border-bottom: 1px solid var(--border);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(180deg, #e8f4ff, #ccdff4);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 7px 2px 5px;
    font-size: 11px;
    color: var(--blue-dk);
    cursor: pointer;
    white-space: nowrap;
    transition: all .1s;
}

.nav-btn:hover {
    background: linear-gradient(180deg, #d8eeff, #b8d4ec);
}

.nav-btn .arr {
    font-size: 13px;
    line-height: 1;
}

.nav-btn.fwd {
    padding: 2px 5px 2px 7px;
}

.nav-icon {
    width: 26px;
    height: 24px;
    background: linear-gradient(180deg, #e8f4ff, #ccdff4);
    border: 1px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
}

.nav-icon:hover {
    background: linear-gradient(180deg, #d8eeff, #b8d4ec);
}

.spacer {
    width: 4px;
}

.chrome-icon-bar {
    background: linear-gradient(180deg, #e0f0fc, #c8dcf0);
    border-bottom: 1px solid var(--border-lt);
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--blue-dk);
}

.addr-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-dk);
    white-space: nowrap;
}

.addr-path {
    flex: 1;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1px 6px;
    font-size: 10px;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chrome-url {
    background: var(--white);
    border-bottom: 1px solid var(--border-lt);
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.url-field {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--text);
}

.url-search-btn {
    background: linear-gradient(180deg, #e8f4ff, #ccdff4);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-dk);
    cursor: pointer;
}

.url-search-btn:hover {
    background: linear-gradient(180deg, #d8eeff, #b8d4ec);
}

/* ── TOP NAV TABS (from profile-1) ── */
.topnav {
    background: linear-gradient(180deg, #dceefa 0%, #c4d8ec 100%);
    border-bottom: 1px solid var(--border);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
}

.topnav a {
    color: var(--blue-dk);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-right: 1px solid var(--border-lt);
    white-space: nowrap;
    letter-spacing: .04em;
    transition: background .12s;
    display: block;
}

.topnav a:last-child {
    border-right: none;
}

.topnav a:hover {
    background: var(--blue-pal);
}

/* ── BANNER ── */
.banner {
    height: 72px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, transparent 50%),
        linear-gradient(135deg, #b8d8f4 0%, #dceffe 30%, #eef8ff 55%, #c4e0f8 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
}

.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 300px 50px at 50% 120%, rgba(255, 255, 255, .9), transparent),
        radial-gradient(ellipse 180px 40px at 20% 110%, rgba(255, 255, 255, .7), transparent);
}

.banner::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(220, 240, 255, .95) 0%, transparent 70%);
}

.banner-title {
    font-family: 'VT323', monospace;
    font-size: 36px;
    color: var(--blue-dk);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
    letter-spacing: .04em;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.banner-sub {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .12em;
    position: relative;
    z-index: 1;
}

.banner-right {
    margin-left: auto;
    text-align: right;
    font-size: 10px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.banner-right a {
    color: var(--link);
    padding: 0 3px;
    font-size: 10px;
}

.banner-right a:hover {
    text-decoration: underline;
}

/* ── SOCIAL TABS ── */
.social-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.stab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    border-right: 1px solid var(--border-lt);
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: background .12s;
}

.stab:last-child {
    border-right: none;
}

.stab:hover {
    background: var(--blue-pal);
}

.stab-icon {
    font-size: 14px;
}

/* ── MAIN 3-COL ── */
.main {
    display: grid;
    grid-template-columns: 155px 1fr 155px;
    border-bottom: 1px solid var(--border-lt);
    background: var(--white);
}

.col {
    padding: 9px 8px;
}

.col-mid {
    border-left: 1px solid var(--border-lt);
    border-right: 1px solid var(--border-lt);
}

/* ── PANEL (shared) ── */
.panel {
    background: linear-gradient(180deg, rgba(220, 234, 245, .75) 0%, rgba(195, 218, 236, .65) 100%);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px var(--shadow), var(--inset);
    margin-bottom: 7px;
}

.panel:last-child {
    margin-bottom: 0;
}

.panel-head {
    background: linear-gradient(180deg, #c0d8ec 0%, #aac5db 100%);
    border-bottom: 1px solid var(--border2);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-dk);
    letter-spacing: .06em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.panel-body {
    padding: 7px 8px;
}

/* ── SEC TITLE (small) ── */
.sec-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-md);
    margin-bottom: 5px;
    letter-spacing: .3px;
}

.sep-line {
    border: none;
    border-top: 1px solid var(--border-lt);
    margin: 7px 0;
}

/* ── PROFILE HEADER (center top) ── */
.profile-header {
    background: linear-gradient(180deg, rgba(210, 230, 245, .8) 0%, rgba(190, 215, 235, .7) 100%);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 9px 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: 0 2px 8px var(--shadow), var(--inset);
    margin-bottom: 7px;
}

.avatar-box {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 3px;
    background: linear-gradient(135deg, #b8d8ec, #90bdd8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 2px 2px 6px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.profile-name {
    font-family: 'VT323', monospace;
    font-size: 26px;
    color: var(--blue-dk);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    line-height: 1;
}

.profile-tag {
    font-size: 9.5px;
    color: var(--muted);
    letter-spacing: .08em;
    margin-top: 2px;
}

.profile-quote {
    font-size: 10px;
    color: var(--text);
    font-style: italic;
    margin-top: 5px;
    line-height: 1.5;
    border-left: 2px solid var(--accent3);
    padding-left: 6px;
}

.profile-meta {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.meta-chip {
    background: rgba(255, 255, 255, .45);
    border: 1px solid var(--border2);
    border-radius: 2px;
    padding: 1px 5px;
    font-size: 9px;
    color: var(--blue-md);
    font-weight: 700;
    letter-spacing: .04em;
}

/* ── MOOD BAR ── */
.mood-strip {
    background: linear-gradient(180deg, #c8dff0 0%, #b4ccdf 100%);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 10px;
    color: var(--blue-dk);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--inset);
    margin-bottom: 7px;
}

.mood-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-md);
    box-shadow: 0 0 5px var(--blue-lt);
    animation: blink 2s infinite;
    flex-shrink: 0;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.mood-links {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.mood-links a {
    font-size: 9.5px;
    color: var(--link);
    font-weight: 700;
}

.mood-links a:hover {
    text-decoration: underline;
}

/* ── ABOUT GRID ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 4px;
}

.about-box {
    background: rgba(210, 230, 244, .5);
    border: 1px solid var(--border2);
    border-radius: 3px;
    padding: 5px 7px;
    font-size: 10px;
    line-height: 1.65;
    color: var(--text);
}

.about-box b {
    color: var(--accent2);
}

.about-box .ab-head {
    font-weight: 700;
    color: var(--accent2);
    font-size: 9.5px;
    margin-bottom: 3px;
}

/* ── LANG STARS ── */
.lang-item {
    font-size: 10px;
    color: var(--text);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-item .dot {
    color: var(--text);
    font-size: 12px;
    line-height: 1;
}

.stars {
    color: var(--blue-lt);
    font-size: 10px;
    letter-spacing: -1px;
}

.stars .empty {
    opacity: .35;
}

/* ── CHAR LIST ── */
.char-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border2);
    font-size: 10px;
}

.char-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.char-emo {
    width: 45px;
    height: 45px;
    ;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent3), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.char-name {
    font-weight: 700;
    color: var(--blue-dk);
    font-size: 10px;
    letter-spacing: .04em;
}

.char-sub {
    color: var(--muted);
    font-size: 9px;
}

/* ── STATS TABLE ── */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table td {
    padding: 3px 4px;
    font-size: 10px;
    border-bottom: 1px solid var(--border2);
    color: var(--text);
}

.stats-table td:first-child {
    color: var(--muted);
    font-size: 9.5px;
    width: 52%;
}

.stats-table td:last-child {
    font-weight: 700;
    color: var(--accent2);
    text-align: right;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

/* ── CONTACT BUTTONS ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.cbtn {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(180deg, #c8dff0 0%, #a8c4d8 100%);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-dk);
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 1px 3px var(--shadow), var(--inset);
    transition: filter .15s, transform .15s;
}

.cbtn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.cbtn.solid {
    background: linear-gradient(180deg, #6aaad4 0%, #3a74aa 100%);
    color: #fff;
}

/* ── SOC BUTTONS ── */
.soc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
}

.soc-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, .38);
    border: 1px solid var(--border2);
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 9px;
    color: var(--blue-dk);
    font-weight: 700;
    letter-spacing: .04em;
    transition: background .15s;
}

.soc-btn:hover {
    background: rgba(255, 255, 255, .65);
}

/* ── RULE ROWS ── */
.rule-row {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    padding: 3px 0;
    border-bottom: 1px dashed var(--border2);
    font-size: 10px;
    color: var(--text);
}

.rule-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rn {
    min-width: 14px;
    height: 14px;
    background: var(--blue-md);
    color: #fff;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── INPUT / FIELD ── */
.field-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--blue-md);
    margin-bottom: 2px;
}

.input-field {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 3px 5px;
    font-size: 10px;
    color: var(--text);
    margin-bottom: 5px;
    box-shadow: inset 0 1px 3px rgba(20, 60, 110, .06);
    font-family: 'Nanum Gothic', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: var(--blue-lt);
}

.icons-row {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.ico-btn {
    width: 28px;
    height: 26px;
    background: linear-gradient(180deg, #e8f4ff, #d0e8f8);
    border: 1px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .1s;
}

.ico-btn:hover {
    box-shadow: 0 0 6px var(--glow);
    transform: scale(1.05);
}

.timestamp {
    font-size: 9px;
    color: var(--muted);
    margin-top: 5px;
    font-style: italic;
}

.section-sep {
    font-size: 9px;
    color: #8ab5cc;
    letter-spacing: .25em;
    text-align: center;
    padding: 2px 0;
}

.blurb {
    font-size: 10px;
    color: var(--text);
    line-height: 1.65;
}

.blurb b {
    color: var(--accent2);
}

/* ── COMMENT BUBBLE ── */
.comment-by {
    font-size: 9.5px;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 3px;
}

.comment-by a {
    color: var(--blue-md);
    font-weight: 700;
    font-style: normal;
}

.comment-bubble {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 4px 6px;
    font-size: 10px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 7px;
    box-shadow: inset 0 1px 3px rgba(20, 60, 110, .04);
}

/* ── ANIME PHOTO ── */
.anime-photo {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 90px;
    background: linear-gradient(160deg, #c4d8ec, #dceeff, #c8e0f4);
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, .6);
}

.anime-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .4), transparent);
}

.online-tag {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--blue-md);
    margin-top: 4px;
    text-align: center;
}

/* ── IMG STRIP ── */
.img-strip {
    display: flex;
    gap: 4px;
    margin: 5px 0 3px;
}

.img-thumb {
    flex: 1;
    height: 44px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #b5d5ea, #8fbdd8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    overflow: hidden;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-lt);
    border-top: 1px solid var(--border-lt);
    padding: 6px 12px;
    text-align: center;
    font-size: 11px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.bottom-nav a {
    color: var(--link);
    font-weight: 700;
}

.bottom-nav a:hover {
    text-decoration: underline;
}

.bnav-sep {
    margin: 0 6px;
    color: var(--muted);
}

/* ── PLAYER ── */
.player {
    background: var(--white);
    border-top: 1px solid var(--border-lt);
    padding: 7px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.time {
    font-size: 10px;
    color: var(--text);
    white-space: nowrap;
}

.prog-line {
    flex: 1;
    height: 3px;
    background: var(--border-lt);
    border-radius: 2px;
    position: relative;
}

.prog-dot {
    position: absolute;
    left: 38%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-md);
    box-shadow: 0 0 4px var(--glow);
}

.ctrl-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ctrl {
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    transition: color .1s;
}

.ctrl:hover {
    color: var(--blue-dk);
}

.ctrl-btns {
    display: flex;
    gap: 5px;
}

.c-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--blue-md);
    cursor: pointer;
    padding: 0 2px;
    transition: all .1s;
}

.c-btn:hover {
    color: var(--blue-dk);
    transform: scale(1.1);
}

.c-btn.play {
    font-size: 14px;
}

.player-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ptag {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 3px 12px;
    font-size: 10px;
    color: var(--text);
    text-align: center;
    cursor: pointer;
    transition: all .1s;
    white-space: nowrap;
}

.ptag:hover {
    background: var(--blue-pal);
}