:root,
.theme-informal {
    --color-bg: #faf5ff;
    --color-text: #2c3e50;
    --color-text-light: #5a6a7a;
    --color-primary: #7e22ce;
    --color-primary-hover: #6b21a8;
    --color-primary-rgb: 126, 34, 206;
    --color-secondary: #d8b4fe;
    --color-accent: #f3e8ff;
    --color-card-bg: #2a2533;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-silly: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    --hero-gradient: linear-gradient(180deg, rgba(216, 180, 254, 0.5) 0%, rgba(250, 245, 255, 1) 100%);
    --story-shadow: 0 10px 30px rgba(126, 34, 206, 0.08);
    --section-shadow: 0 4px 25px rgba(126, 34, 206, 0.05);
    --section-shadow-dark: 0 4px 25px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 15px rgba(126, 34, 206, 0.05);
    --btn-primary-shadow: 0 5px 15px rgba(126, 34, 206, 0.3);
    --btn-secondary-hover-bg: rgba(126, 34, 206, 0.05);
    --faq-border: rgba(126, 34, 206, 0.1);
    --footer-border: rgba(126, 34, 206, 0.1);
    --discreet-underline: rgba(126, 34, 206, 0.3);
}

html[data-font="dyslexic"] .quote-text {
    letter-spacing: 0;
}

.story-image {
    max-width: 380px;
    margin: 0 auto;
}

.caption {
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--color-text-light);
    text-align: center;
    font-family: var(--font-silly);
}

.info-section {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.info-text {
    padding-right: 1rem;
}

.quote-section {
    position: relative;
    background-color: var(--color-bg);
    margin-bottom: 5rem;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 350px;
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.08);
}

.quote-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/informal/images/aaaaa.png');
    background-size: cover;
    background-position: calc(100% + 300px) center;
    background-repeat: no-repeat;
    z-index: 1;
}

.quote-gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--color-bg) 0%, var(--color-bg) 50%, transparent 100%);
    z-index: 2;
}

.quote-content {
    position: relative;
    z-index: 3;
    padding: 3rem 4rem;
    width: 65%;
}

.quote-mark {
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    line-height: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-style: italic;
    color: var(--color-text);
    line-height: 1.3;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.quote-text.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.quote-text.fade-in {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .quote-content {
        width: 100%;
        padding: 2rem 1.5rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]),
    :root:not([data-theme="light"]) .theme-informal {
        --color-bg: #1e1b24;
        --color-text: #e2e8f0;
        --color-text-light: #94a3b8;
        --color-primary: #c084fc;
        --color-primary-hover: #d8b4fe;
        --color-primary-rgb: 192, 132, 252;
        --color-secondary: #581c87;
        --color-accent: #3b2159;
        --hero-gradient: linear-gradient(180deg, rgba(88, 28, 135, 0.4) 0%, rgba(30, 27, 36, 1) 100%);
        --discreet-underline: #c084fc;
    }

    :root:not([data-theme="light"]) .quote-section {
        background-color: var(--color-card-bg);
    }

    :root:not([data-theme="light"]) .quote-gradient {
        background: linear-gradient(to right, #2a2533 0%, #2a2533 50%, transparent 100%);
    }
}

:root[data-theme="dark"],
:root[data-theme="dark"] .theme-informal {
    --color-bg: #1e1b24;
    --color-text: #e2e8f0;
    --color-text-light: #94a3b8;
    --color-primary: #c084fc;
    --color-primary-hover: #d8b4fe;
    --color-primary-rgb: 192, 132, 252;
    --color-secondary: #581c87;
    --color-accent: #3b2159;
    --hero-gradient: linear-gradient(180deg, rgba(88, 28, 135, 0.4) 0%, rgba(30, 27, 36, 1) 100%);
    --discreet-underline: #c084fc;
}

:root[data-theme="dark"] .quote-section {
    background-color: var(--color-card-bg);
}

:root[data-theme="dark"] .quote-gradient {
    background: linear-gradient(to right, #2a2533 0%, #2a2533 50%, transparent 100%);
}

.alport-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.alport-card {
    background: rgba(126, 34, 206, 0.06);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.05);
}

.alport-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-silly);
    font-size: 1.3rem;
}

.alport-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.comic-sans-container {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.comic-sans-mode * {
    font-family: var(--font-silly) !important;
}

.hobbies-section,
.friends-section,
.animation-placeholder {
    margin: 3rem 0;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.games-table th,
.games-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-accent);
}

.game-title-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-thumb {
    border-radius: 4px;
    object-fit: cover;
}

.hobbies-twitch-line {
    margin-top: 1rem;
}

.hobbies-twitch-line a,
.hobbies-twitch-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 3px;
    font-weight: 500;
}

.hobbies-twitch-line a:hover,
.hobbies-twitch-link:hover {
    color: var(--color-primary-hover);
    text-decoration-color: var(--color-primary-hover);
}

.friends-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
}

.friend-card {
    margin: 0;
    padding: 1.25rem;
    border-left: 4px solid var(--color-primary);
    background: rgba(126, 34, 206, 0.06);
    border-radius: 0 8px 8px 0;
}

.friend-body {
    margin: 0 0 0.75rem;
    font-style: italic;
}

.friend-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.animation-placeholder-panel {
    min-height: 200px;
    margin-top: 1rem;
    border: 2px dashed var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(126, 34, 206, 0.04);
}

.animation-placeholder-label {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.twitch-page {
    padding: 4rem 1.5rem 3rem;
}

.twitch-offline-panel {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-accent);
}

.twitch-channel-btn {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #fff;
}

.twitch-schedule-list,
.twitch-links-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.twitch-schedule-list li,
.twitch-links-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-accent);
}

.twitch-live-embed {
    margin: 2rem 0;
}

.twitch-live-embed.hidden,
.twitch-offline-panel.hidden {
    display: none;
}

.twitch-embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0e0e10;
    border: 1px solid var(--color-accent);
}

.twitch-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.theme-informal main.container.informal-main {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 4rem;
    box-sizing: border-box;
}

.theme-informal .container-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.theme-informal .kidney-follow-btn {
    position: fixed;
    z-index: 1;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    pointer-events: auto;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(126, 34, 206, 0.35);
}

.error-container img {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.15);
    margin-bottom: 2rem;
}
