:root {
    --bg: #061311;
    --panel: rgba(8, 21, 19, 0.82);
    --panel-strong: rgba(10, 31, 27, 0.92);
    --border: rgba(0, 255, 195, 0.18);
    --text: #effffb;
    --muted: #9ccbc0;
    --accent: #00ffc3;
    --accent-soft: rgba(0, 255, 195, 0.14);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --sidebar-bg: linear-gradient(180deg, rgba(6, 18, 16, 0.96), rgba(6, 18, 16, 0.76));
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    position: relative;
    font-family: "Sora", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0, 255, 195, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(0, 255, 195, 0.1), transparent 24%),
        linear-gradient(135deg, #03100e 0%, #071917 45%, #04100f 100%);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 95%);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: -8%;
    background:
        radial-gradient(circle at 18% 18%, rgba(117, 255, 223, 0.07), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(117, 255, 223, 0.04), transparent 26%),
        radial-gradient(circle at 70% 78%, rgba(117, 255, 223, 0.05), transparent 30%);
    opacity: 0;
    transform-origin: center;
    animation: ambientBreathe 26s ease-in-out infinite;
    pointer-events: none;
}

body:not(.dark) {
    --bg: #f1fbf7;
    --panel: rgba(246, 253, 250, 0.98);
    --panel-strong: rgba(239, 249, 245, 0.985);
    --border: rgba(0, 154, 118, 0.28);
    --text: #10211d;
    --muted: #3d5c54;
    --accent: #00a884;
    --accent-soft: rgba(0, 168, 132, 0.09);
    --shadow: 0 18px 48px rgba(8, 44, 37, 0.08);
    --sidebar-bg: linear-gradient(180deg, rgba(238, 251, 247, 0.99), rgba(226, 245, 239, 0.96));
    background:
        radial-gradient(circle at top left, rgba(0, 207, 160, 0.11), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 207, 160, 0.06), transparent 24%),
        linear-gradient(135deg, #f1fbf7 0%, #e4f4ee 100%);
}

body:not(.dark)::before {
    background-image:
        linear-gradient(rgba(8, 53, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 53, 42, 0.06) 1px, transparent 1px);
}

body:not(.dark)::after {
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 168, 132, 0.03), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(0, 168, 132, 0.02), transparent 24%),
        radial-gradient(circle at 70% 78%, rgba(0, 168, 132, 0.025), transparent 28%);
    opacity: 0;
}

body:not(.dark) .site-shell::before,
body:not(.dark) .site-shell::after {
    background: linear-gradient(90deg, rgba(0, 154, 118, 0.24), rgba(0, 154, 118, 0.1));
    box-shadow: 0 0 18px rgba(0, 154, 118, 0.06);
}

.site-shell {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: absolute;
    left: 318px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 195, 0.16), rgba(0, 255, 195, 0.06));
    box-shadow: 0 0 28px rgba(0, 255, 195, 0.08);
}

.site-shell::before {
    top: 26px;
}

.site-shell::after {
    bottom: 26px;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 300px;
    height: 100vh;
    min-height: 100vh;
    position: sticky;
    top: 0;
    padding: 36px 24px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 48% 14%, rgba(0, 255, 195, 0.12), transparent 28%),
        radial-gradient(circle at 52% 86%, rgba(0, 255, 195, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(0, 255, 195, 0.015) 0%, rgba(0, 255, 195, 0.03) 22%, rgba(0, 255, 195, 0.05) 52%, rgba(0, 255, 195, 0.035) 78%, rgba(0, 255, 195, 0.02) 100%);
    pointer-events: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.identity-badge {
    margin: 0 0 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    perspective: 1200px;
    text-align: inherit;
}

.badge-card {
    position: relative;
    min-height: 470px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.identity-badge:hover .badge-card,
.identity-badge:focus-visible .badge-card {
    transform: translateY(-2px);
}

.identity-badge.is-flipped .badge-card {
    transform: rotateY(180deg);
}

.badge-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 26px 20px 22px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 50% 0%, rgba(0, 255, 195, 0.06), transparent 42%);
    box-shadow: var(--shadow);
    backface-visibility: hidden;
    overflow: hidden;
}

body:not(.dark) .badge-face {
    background: rgba(255, 255, 255, 0.78);
}

.badge-front {
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 106px;
}

.badge-back {
    transform: rotateY(180deg);
    align-items: stretch;
    justify-content: space-between;
}

.badge-front-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 10px;
}

.profile-img {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 4px;
    object-fit: cover;
    margin: 0 auto 2px;
    box-shadow: 0 0 0 10px rgba(0, 255, 195, 0.08);
}

.eyebrow,
.timeline-year,
.settings-group h3 {
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    margin-bottom: 0;
}

.username {
    font-family: "Rajdhani", sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.bio {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 230px;
    margin: 8px auto 0;
}

.player-tags {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.player-tag {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}

body:not(.dark) .player-tag {
    background: rgba(255, 255, 255, 0.72);
}

.player-tag span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.player-tag strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
}

.badge-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 195, 0.22);
    background: rgba(0, 255, 195, 0.08);
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-front .badge-hint {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 22px;
    justify-content: center;
    margin-top: 0;
}

.badge-hint::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.badge-hint-back {
    align-self: flex-start;
    margin-top: auto;
}

.identity-badge:hover .badge-hint,
.identity-badge:focus-visible .badge-hint {
    background: rgba(0, 255, 195, 0.12);
    box-shadow: 0 10px 24px rgba(0, 255, 195, 0.12);
}

.socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative;
}

.socials-mobile {
    display: none;
}

.socials a,
.nav-link,
#themeToggle {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body:not(.dark) .socials a,
body:not(.dark) .nav-link,
body:not(.dark) #themeToggle {
    background: rgba(255, 255, 255, 0.52);
}

.socials a {
    padding: 12px 10px;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.socials a:hover,
.nav-link:hover,
.nav-link.active,
#themeToggle:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 195, 0.45);
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 14px 30px rgba(0, 255, 195, 0.08);
}

.nav {
    margin-top: 28px;
    display: grid;
    gap: 12px;
    position: relative;
}

.nav-link {
    padding: 14px 16px;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
}

#themeToggle {
    position: fixed;
    left: var(--theme-toggle-left, 24px);
    bottom: var(--theme-toggle-bottom, 24px);
    width: var(--theme-toggle-size, 56px);
    height: var(--theme-toggle-size, 56px);
    margin-top: 0;
    align-self: auto;
    cursor: pointer;
    z-index: 10;
}

#themeToggle::before {
    content: "";
    display: block;
    width: var(--theme-toggle-icon-size, 26px);
    height: var(--theme-toggle-icon-size, 26px);
    margin: 0 auto;
    background: url("half_moon_dark.svg") no-repeat center / contain;
}

body:not(.dark) #themeToggle::before {
    background-image: url("half_moon_light.svg");
}

.content {
    flex: 1;
    padding: 42px;
}

.panel,
.card,
.timeline-card,
.about-bubble,
.settings-group {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeUp 0.35s ease;
}

.section-title {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
}

.panel {
    border-radius: 24px;
    padding: 24px;
    background-color: var(--panel);
}

body:not(.dark) .panel,
body:not(.dark) .card,
body:not(.dark) .timeline-card,
body:not(.dark) .about-bubble,
body:not(.dark) .settings-group {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 250, 246, 0.96)),
        rgba(246, 253, 250, 0.96);
    box-shadow: 0 18px 42px rgba(11, 56, 45, 0.08);
}

.about-panel-flip {
    perspective: 1400px;
}

.about-panel-card {
    position: relative;
    min-height: 430px;
    transform-style: preserve-3d;
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-panel-flip.is-flipped .about-panel-card {
    transform: rotateY(180deg);
}

.about-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 28px;
}

.about-panel-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    overflow: hidden;
    padding-top: 66px;
}

.about-panel-back {
    transform: rotateY(180deg);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 195, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

body:not(.dark) .about-panel-back {
    background:
        radial-gradient(circle at top right, rgba(0, 168, 132, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 249, 245, 0.94));
}

.about-panel-front {
    cursor: pointer;
}

.about-panel-front::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 22px;
    width: 14px;
    height: 14px;
    border-top: 3px solid rgba(0, 255, 195, 0.58);
    border-right: 3px solid rgba(0, 255, 195, 0.58);
    border-radius: 2px;
    transform: rotate(45deg);
    opacity: 0.82;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.about-panel-front:hover::after,
.about-panel-front:focus-visible::after {
    opacity: 1;
    border-color: rgba(0, 255, 195, 0.8);
    transform: rotate(45deg) translateY(-1px);
}

.about-panel-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 195, 0.2);
    background: rgba(0, 255, 195, 0.08);
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.about-panel-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.about-panel-back .about-panel-toggle::after {
    transform: rotate(225deg);
}

.about-panel-toggle:hover,
.about-panel-toggle:focus-visible {
    transform: translateY(-1px);
    background: rgba(0, 255, 195, 0.12);
    box-shadow: 0 12px 28px rgba(0, 255, 195, 0.12);
}

.about-widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.about-widget {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.about-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(0, 255, 195, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%);
    pointer-events: none;
}

.widget-header,
.contact-list,
.region-widget {
    position: relative;
    z-index: 1;
}

.widget-kicker {
    display: inline-block;
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.widget-header h3 {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.8rem;
    line-height: 1;
}

.region-widget {
    justify-content: center;
    text-align: center;
}

.contact-widget {
    gap: 18px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
}

body:not(.dark) .contact-item {
    background: rgba(255, 255, 255, 0.82);
}

.contact-item span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.contact-item-main {
    min-width: 0;
}

.contact-item strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.1rem;
}

.contact-mini-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 48px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 195, 0.18);
    background: rgba(0, 255, 195, 0.06);
    color: var(--text);
    text-decoration: none;
    font-family: "Rajdhani", sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    flex: 0 0 52px;
}

.contact-mini-cta::after {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.contact-mini-cta:hover {
    transform: translateY(-2px);
    background: rgba(0, 255, 195, 0.12);
    box-shadow: 0 14px 30px rgba(0, 255, 195, 0.12);
}

.about-copy h2 {
    font-family: "Rajdhani", sans-serif;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 14px;
}

.about-copy {
    padding-top: 6px;
}

.about-intro-chip {
    display: block;
    margin: 2px 0 16px;
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.about-quote {
    position: relative;
    margin-top: 20px;
    padding: 18px 18px 18px 42px;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 195, 0.14);
    background: rgba(0, 255, 195, 0.06);
}

body:not(.dark) .about-quote {
    border-color: rgba(0, 154, 118, 0.18);
    background: rgba(232, 247, 242, 0.9);
}

.about-quote-mark {
    position: absolute;
    left: 14px;
    top: 8px;
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.about-quote p {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0;
}

.schedule-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.schedule-copy h2 {
    font-family: "Rajdhani", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.schedule-copy p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 44ch;
}

.schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.schedule-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 195, 0.12);
    background: rgba(0, 255, 195, 0.05);
    color: var(--muted);
    font-size: 0.82rem;
}

body:not(.dark) .schedule-legend-item {
    border-color: rgba(0, 154, 118, 0.18);
    background: rgba(236, 248, 244, 0.88);
    color: #334e47;
}

.schedule-card {
    border-radius: 22px;
    border: 1px solid rgba(0, 255, 195, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at bottom right, rgba(0, 255, 195, 0.08), transparent 38%);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

body:not(.dark) .schedule-card {
    border-color: rgba(0, 154, 118, 0.2);
    background:
        linear-gradient(180deg, rgba(248, 253, 251, 0.94), rgba(235, 247, 242, 0.96)),
        rgba(240, 249, 245, 0.92);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.schedule-day {
    min-height: 134px;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 195, 0.14);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
}

body:not(.dark) .schedule-day {
    border-color: rgba(0, 154, 118, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.schedule-day.featured {
    background:
        linear-gradient(180deg, rgba(0, 255, 195, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.03);
}

body:not(.dark) .schedule-day.featured {
    background:
        linear-gradient(180deg, rgba(0, 168, 132, 0.14), rgba(255, 255, 255, 0.72)),
        rgba(255, 255, 255, 0.92);
}

.schedule-day-label {
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.schedule-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.schedule-marker.off {
    border: 1px solid rgba(156, 203, 192, 0.18);
    background: rgba(255, 255, 255, 0.025);
}

body:not(.dark) .schedule-marker.off {
    border-color: rgba(61, 92, 84, 0.16);
    background: rgba(233, 241, 238, 0.9);
}

.schedule-marker.stream {
    border: 2px solid var(--accent);
    background: transparent;
    box-shadow: 0 0 0 5px rgba(0, 255, 195, 0.08);
}

body:not(.dark) .schedule-marker.stream,
body:not(.dark) .schedule-marker.upload,
body:not(.dark) .schedule-marker.both {
    box-shadow: 0 0 0 4px rgba(0, 168, 132, 0.12);
}

.schedule-marker.upload {
    border: 2px solid rgba(0, 255, 195, 0.28);
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(0, 255, 195, 0.08);
}

.schedule-marker.both {
    border: 2px solid var(--accent);
    background: transparent;
    box-shadow: 0 0 0 5px rgba(0, 255, 195, 0.08);
}

.schedule-marker.both::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.schedule-note {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 195, 0.14);
    background: rgba(0, 255, 195, 0.05);
    color: var(--muted);
    line-height: 1.7;
}

body:not(.dark) .schedule-note {
    border-color: rgba(0, 154, 118, 0.18);
    background: rgba(235, 248, 243, 0.92);
    color: #39554e;
}

.schedule-note strong {
    color: var(--text);
    font-family: "Rajdhani", sans-serif;
    font-size: 1.02rem;
    margin-right: 6px;
}

.section-intro,
.about-copy p,
.timeline-card p {
    color: var(--muted);
    line-height: 1.8;
}

.milestone-summary {
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 4px;
}

.summary-box {
    position: relative;
    min-height: 92px;
    padding: 18px 20px 18px 20px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(0, 255, 195, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(0, 255, 195, 0.06);
    border: 1px solid rgba(0, 255, 195, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

body:not(.dark) .summary-box {
    background:
        linear-gradient(180deg, rgba(239, 249, 245, 0.98), rgba(233, 246, 241, 0.94)),
        rgba(237, 248, 244, 0.96);
    border-color: rgba(0, 154, 118, 0.16);
}

.summary-box span {
    display: block;
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.95;
}

.summary-box strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.16rem;
    line-height: 1.2;
    max-width: 18ch;
}

.timeline-title {
    margin: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    margin-bottom: 14px;
}

.timeline-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.timeline-tab {
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.timeline-tab:hover,
.timeline-tab.active {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.18), rgba(255, 255, 255, 0.04));
    color: var(--text);
}

.timeline-view {
    display: none;
}

.timeline-view.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

.timeline {
    display: grid;
    gap: 18px;
    padding-left: 28px;
}

.timeline-item {
    position: relative;
    padding-bottom: 18px;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -19px;
    top: 28px;
    bottom: -26px;
    width: 2px;
    background:
        radial-gradient(circle, rgba(0, 255, 195, 0.92) 0 2px, rgba(0, 255, 195, 0.28) 3px, transparent 6px) center -24px / 16px 88px repeat-y,
        linear-gradient(180deg, rgba(0, 255, 195, 0.92), rgba(0, 255, 195, 0.18));
    box-shadow: 0 0 18px rgba(0, 255, 195, 0.2);
    animation: timelineLineBreathe 8s ease-in-out infinite, timelineLineFlow 15s linear infinite;
    transform-origin: top center;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 5px rgba(0, 255, 195, 0.12);
    z-index: 2;
}

.timeline-item.completed::before {
    background:
        radial-gradient(circle at 32% 32%, var(--accent) 0 3px, var(--bg) 4px 100%);
    box-shadow:
        0 0 0 5px rgba(0, 255, 195, 0.12),
        0 0 12px rgba(0, 255, 195, 0.18);
    animation: timelineBreathe 6.5s ease-in-out infinite;
}

.timeline-item.goal::before {
    background: var(--bg);
    border-color: rgba(0, 255, 195, 0.82);
    box-shadow:
        0 0 0 5px rgba(0, 255, 195, 0.08),
        0 0 0 10px rgba(0, 255, 195, 0.04);
    animation: timelineGoalLock 7.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.timeline-item.goal::after {
    content: none;
}

.timeline-year {
    display: inline-block;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
}

.timeline-card {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    padding: 18px 20px;
    background-color: var(--panel-strong);
}

.timeline-card-flip {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    perspective: 1200px;
    text-align: left;
    color: inherit;
    font: inherit;
}

.timeline-card-stack {
    position: relative;
    min-height: 122px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.timeline-item-start .timeline-card-stack,
.timeline-item.goal .timeline-card,
.timeline-item.goal .timeline-card-stack {
    min-height: 150px;
}

.timeline-card-flip:focus-visible .timeline-card-stack,
.timeline-item.is-flipped .timeline-card-stack {
    transform: rotateY(180deg);
}

.timeline-card-front,
.timeline-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-card-front::after,
.timeline-card-back::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 13px;
    height: 13px;
    border-top: 3px solid rgba(0, 255, 195, 0.76);
    border-right: 3px solid rgba(0, 255, 195, 0.76);
    border-radius: 2px;
    opacity: 0.82;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.timeline-card-front::after {
    transform: rotate(45deg);
}

.timeline-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    gap: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(0, 255, 195, 0.1), transparent 38%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.timeline-card-back::after {
    transform: rotate(225deg);
}

.timeline-card-flip:hover .timeline-card-front::after,
.timeline-card-flip:hover .timeline-card-back::after,
.timeline-card-flip:focus-visible .timeline-card-front::after,
.timeline-card-flip:focus-visible .timeline-card-back::after {
    opacity: 1;
}

.timeline-date-label {
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.timeline-card-back strong {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
}

.timeline-item.timeline-item-start .timeline-card-front h3,
.timeline-item.goal .timeline-card h3 {
    font-size: 1.42rem;
}

.timeline-item.timeline-item-start .timeline-card-front p,
.timeline-item.goal .timeline-card p {
    font-size: 1rem;
}

.timeline-item.goal .timeline-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at top right, rgba(0, 255, 195, 0.08), transparent 46%);
    border: 1px solid rgba(0, 255, 195, 0.22);
    box-shadow:
        var(--shadow),
        inset 0 0 0 1px rgba(0, 255, 195, 0.08),
        0 0 0 1px rgba(0, 255, 195, 0.04);
}

.timeline-item.goal .timeline-card h3,
.timeline-item.goal .timeline-card p {
    text-align: left;
}

.timeline-item.goal .timeline-card::before {
    content: "Destination";
    position: absolute;
    top: 16px;
    right: 18px;
    color: rgba(0, 255, 195, 0.72);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.timeline-card h3,
.card h3 {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.24rem;
}

.timeline-outro {
    margin: 34px 0 42px;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.88;
}

.section[data-section="gear"] .panel + .section-title {
    margin-top: 28px;
}

.settings-panel {
    display: grid;
    gap: 18px;
}

.settings-list {
    display: grid;
    gap: 18px;
}

.settings-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0 24px;
    border-radius: 20px;
    padding: 20px 22px;
    background-color: var(--panel);
}

.settings-group h3,
.settings-subtitle {
    grid-column: 1 / -1;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.98rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.settings-group h3 {
    margin: 0 0 14px;
}

.settings-subtitle {
    margin: 18px 0 14px;
}

.settings-note {
    grid-column: 1 / -1;
    position: relative;
    margin: 0;
    padding: 12px 28px 2px 0;
    border-top: 1px solid rgba(0, 255, 195, 0.12);
    color: color-mix(in srgb, var(--muted) 88%, var(--text) 12%);
    font-size: 0.86rem;
    line-height: 1.55;
    max-width: 54ch;
    opacity: 0.8;
}

body:not(.dark) .settings-note {
    border-top-color: rgba(0, 154, 118, 0.14);
}

.settings-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0 14px;
    border-top: 1px solid rgba(0, 255, 195, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.settings-group h3 + .settings-row {
    border-top: none;
    padding-top: 2px;
}

.settings-subtitle + .settings-row {
    border-top: none;
    padding-top: 2px;
}

.settings-row::after {
    content: "";
    position: absolute;
    top: 17px;
    right: 2px;
    width: 11px;
    height: 11px;
    border: 1.5px solid rgba(0, 255, 195, 0.44);
    border-radius: 2px;
    background: transparent;
    box-shadow: -3px -3px 0 0 rgba(0, 255, 195, 0.22);
    opacity: 0.78;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.settings-row:hover,
.settings-row:focus-within {
    transform: translateY(-1px);
}

.settings-row:hover::after,
.settings-row:focus-within::after {
    border-color: rgba(0, 255, 195, 0.6);
    opacity: 1;
    box-shadow: -3px -3px 0 0 rgba(0, 255, 195, 0.34);
    transform: translateY(-1px);
}

body:not(.dark) .settings-row::after {
    border-color: rgba(0, 154, 118, 0.5);
    box-shadow: -3px -3px 0 0 rgba(0, 154, 118, 0.24);
    opacity: 0.88;
}

body:not(.dark) .settings-row:hover::after,
body:not(.dark) .settings-row:focus-within::after {
    border-color: rgba(0, 154, 118, 0.72);
    box-shadow: -3px -3px 0 0 rgba(0, 154, 118, 0.34);
}

.settings-row span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.25;
}

.settings-row strong {
    text-align: left;
    font-weight: 700;
    color: var(--text);
    font-family: "Rajdhani", sans-serif;
    font-size: 1.04rem;
    line-height: 1.2;
    min-width: 0;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background: transparent;
    letter-spacing: 0.01em;
    user-select: all;
}

.settings-row.is-copied strong {
    color: var(--accent);
}

.settings-row.is-copied::after {
    content: "";
    width: 12px;
    height: 7px;
    top: 20px;
    right: 1px;
    border: none;
    border-left: 2px solid rgba(0, 255, 195, 0.95);
    border-bottom: 2px solid rgba(0, 255, 195, 0.95);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: rotate(-45deg);
}

body:not(.dark) .settings-row.is-copied::after,
body:not(.dark) .settings-row.is-copied:hover::after,
body:not(.dark) .settings-row.is-copied:focus-within::after {
    border: none;
    border-left: 2px solid rgba(0, 154, 118, 0.9);
    border-bottom: 2px solid rgba(0, 154, 118, 0.9);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: rotate(-45deg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    border-radius: 20px;
    padding: 14px;
    background-color: var(--panel);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 195, 0.4);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 12px;
    display: block;
    background: rgba(255, 255, 255, 0.03);
}

.card h3 {
    font-size: 1.1rem;
}

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

@keyframes ambientBreathe {
    0%, 100% {
        transform: scale(1) translate3d(0, 0, 0);
        opacity: 0;
    }
    50% {
        transform: scale(1.045) translate3d(0.8%, -1%, 0);
        opacity: 0.65;
    }
}

@keyframes timelineBreathe {
    0%, 100% {
        opacity: 0.92;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}

@keyframes timelineGoalLock {
    0%, 100% {
        opacity: 0.94;
        transform: scale(1);
        box-shadow:
            0 0 0 5px rgba(0, 255, 195, 0.08),
            0 0 0 10px rgba(0, 255, 195, 0.04);
    }
    42% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow:
            0 0 0 4px rgba(0, 255, 195, 0.14),
            0 0 0 7px rgba(0, 255, 195, 0.08);
    }
    58% {
        opacity: 1;
        transform: scale(1.08);
        box-shadow:
            0 0 0 3px rgba(0, 255, 195, 0.2),
            0 0 0 5px rgba(0, 255, 195, 0.11);
    }
}

@keyframes timelineLineBreathe {
    0%, 100% {
        opacity: 0.72;
    }
    50% {
        opacity: 0.96;
    }
}

@keyframes timelineLineFlow {
    0% {
        background-position: center -24px, center 0;
    }
    100% {
        background-position: center 64px, center 0;
    }
}

@media (max-width: 980px) {
    .site-shell::before,
    .site-shell::after {
        left: 18px;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow: visible;
        padding-bottom: 42px;
    }

    .content {
        padding: 24px;
    }

    .nav {
        margin-top: 16px;
        gap: 10px;
    }

    .sidebar .socials {
        display: none;
    }

    .socials-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px 24px 24px;
        margin-top: 0;
        background: var(--sidebar-bg);
        border-top: 1px solid var(--border);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    }

    .socials-mobile a {
        padding: 11px 10px;
        text-align: center;
    }

    .about-panel {
        grid-template-columns: 1fr;
    }

    .about-panel-card {
        min-height: 760px;
    }

    .about-widgets {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .sidebar,
    .content {
        padding: 20px;
    }

    .sidebar {
        padding-bottom: 32px;
    }

    .badge-card {
        min-height: 470px;
    }

    .badge-front {
        padding-bottom: 118px;
    }

    .badge-front-content {
        gap: 14px;
        padding-top: 4px;
    }

    .bio {
        font-size: 1rem;
        line-height: 1.85;
        max-width: 260px;
    }

    .badge-front .badge-hint {
        bottom: 18px;
    }

    .nav {
        margin-top: 12px;
    }

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

    .panel,
    .settings-group {
        padding: 18px;
    }

    .about-panel-face {
        padding-top: 70px;
    }

    .about-panel-card {
        min-height: 860px;
    }

    .about-panel-toggle {
        top: 14px;
        right: 14px;
    }

    .summary-box {
        min-height: 96px;
        padding-right: 18px;
    }

    .summary-box strong {
        max-width: none;
        font-size: 1.08rem;
    }

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

    .schedule-day {
        min-height: 108px;
    }

    .timeline-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline-switch {
        width: 100%;
    }

    .timeline-tab {
        flex: 1;
        text-align: center;
    }

    #themeToggle {
        left: 16px;
        bottom: 16px;
    }

    .settings-row {
        flex-direction: column;
        gap: 6px;
    }

    .settings-row strong {
        text-align: left;
    }

    .settings-note {
        margin-top: 14px;
        padding: 14px 0 0 18px;
        border-top: 1px solid rgba(0, 255, 195, 0.12);
        border-left: none;
        font-size: 0.92rem;
        max-width: none;
    }

    .settings-note::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 2px;
        width: 4px;
        background: rgba(0, 255, 195, 0.34);
        border-radius: 999px;
    }

    body:not(.dark) .settings-note {
        border-top-color: rgba(0, 154, 118, 0.14);
    }

    body:not(.dark) .settings-note::before {
        background: rgba(0, 154, 118, 0.3);
    }
}

@media (min-width: 641px) and (max-width: 980px) {
    .sidebar {
        gap: 24px;
        padding-bottom: 30px;
    }

    .identity-badge {
        margin-bottom: 0;
    }

    .nav {
        margin-top: 0;
        gap: 10px;
    }
}
