:root {
    --cream: #FAF3E0;
    --cream-dark: #F4E8D0;
    --cream-darker: #f3ddb0;
    --cream-light: #FDFBF7;
    --ink: #3E2723;
    --ink-light: #5D4037;
    --pink: #FF6B9D;
    --pink-light: #FFB8D8;
    --pink-dark: #E893A8;
    --blue: #73C7E3;
    --blue-light: #A8D8E8;
    --blue-dark: #4ECDC4;
    --gold: #E8C478;
    --gold-light: #F5E6C8;
    --stripe-a: #3a2c24;
    --stripe-b: #32251e;
}

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

body {
    background: repeating-linear-gradient(90deg, var(--stripe-a) 0 26px, var(--stripe-b) 26px 52px);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    cursor: default;
}

@font-face {
    font-family: 'Konga Shadow';
    src: url('font/Konga-Next-Shadow.ttf') format('truetype'),
         url('font/Konga-Next-Shadow.otf') format('opentype'),
         url('font/Konga-Next-Shadow.woff2') format('woff2'),
         url('font/Konga-Next-Shadow.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.sheet-content p,
.sheet-content .credit-label,
.sheet-content .credit-artist,
.sheet-content .stat-box .value,
.sheet-content .stat-box .label {
    font-family: 'Konga Shadow', 'Bebas Neue', sans-serif !important;
}

.halftone {
    position: fixed; inset: 0;
    background-image: radial-gradient(circle, var(--ink) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.action-lines {
    position: fixed; inset: 0;
    background: repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(62, 39, 35, 0.015) 50px, rgba(62, 39, 35, 0.015) 52px);
    pointer-events: none; z-index: 1;
}

.giant-title {
    font-family: 'Bebas Neue', sans-serif; font-size: clamp(5rem, 12vw, 14rem); line-height: 0.85;
    color: var(--ink-light); opacity: 0.03; position: fixed; bottom: -20px; right: -20px; z-index: 2; pointer-events: none;
}

.rotating-circle-container {
    position: fixed; top: -28px; left: 50%; transform: translateX(-50%);
    z-index: 150; pointer-events: none;
}

.rotating-circle {
    width: 176px; height: 176px; background: var(--cream-dark);
    border: 5px solid var(--ink); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: rotateCircle 25s linear infinite;
    box-shadow: 0 8px 0 var(--ink-light);
    transform: translateY(-30%); position: relative;
}

.rotating-circle::before {
    content: ''; position: absolute; inset: 8px;
    border: 2px dashed var(--ink); border-radius: 50%; opacity: 0.3;
    z-index: 1;
}

@keyframes rotateCircle {
    0% { transform: translateY(-30%) rotate(0deg); }
    100% { transform: translateY(-30%) rotate(360deg); }
}

.logo-inner {
    width: 160px; height: 160px;
    display: flex; align-items: center; justify-content: center;
    animation: counterRotate 25s linear infinite;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

@keyframes counterRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.logo-placeholder {
    width: 122px; height: 122px; background: var(--pink-light);
    border-radius: 50%; border: 3px solid var(--ink);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 5;
}

.logo-png {
    width: 200%; height: 200%; object-fit: contain;
    transform: none; pointer-events: none;
    position: relative; z-index: 2;
    top:40px;
}

.logo-png-fallback {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem;
    color: var(--ink); text-align: center; padding: 10px;
    letter-spacing: 0.1em; opacity: 0.6; display: none;
}

.logo-png[src=""]:not([src]) + .logo-png-fallback,
.logo-png:not([src]) + .logo-png-fallback { display: block; }
.main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 200px;
    display: flex;
    flex-direction: column;
}

.carousel-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 80px 40px 60px 40px;
}

.carousel-track {
    display: flex; align-items: center; gap: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.book-card {
    position: relative; width: 220px; height: 320px; flex-shrink: 0;
    margin: 0 -30px; cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.85) rotate(var(--rot, 0deg));
    z-index: 1; filter: brightness(0.9);
}

.book-card:hover, .book-card.active {
    transform: scale(1.15) rotate(0deg) translateY(-20px);
    z-index: 50; filter: brightness(1); margin: 0 10px;
}

.book-face {
    width: 100%; height: 100%; border: 4px solid var(--ink);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; border-radius: 4px;
}

.book-card::after {
    content: ''; position: absolute; inset: 0;
    border: 4px solid var(--ink-light); background: var(--ink-light);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(6px, 6px); border-radius: 4px;
}

.book-card:hover::after, .book-card.active::after { transform: translate(10px, 10px); }

.book-face::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, var(--ink-light) 1px, transparent 1px);
    background-size: 8px 8px; opacity: 0.06; pointer-events: none; z-index: 2;
}

.book-face::after {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: rgba(255,255,255,0.12);
    transform: rotate(-25deg); pointer-events: none; z-index: 1;
}

.book-pink .book-face { background: var(--pink); }
.book-blue .book-face { background: var(--blue); }
.book-cream .book-face { background: var(--cream-dark); }
.book-ink .book-face { background: var(--ink); }
.book-gold .book-face { background: var(--gold); }

.book-num {
    position: absolute; top: 16px; left: 16px;
    font-family: 'Bebas Neue', sans-serif; font-size: 4rem;
    line-height: 1; opacity: 0.25; z-index: 4;
}

.book-pink .book-num, .book-ink .book-num { color: var(--cream); }
.book-blue .book-num, .book-cream .book-num, .book-gold .book-num { color: var(--ink); }

.book-label { position: relative; z-index: 5; }
.book-label h2 {
    font-family: 'Bebas Neue', sans-serif; font-size: 2rem;
    letter-spacing: 0.05em; line-height: 1; margin-bottom: 4px;
}

.book-pink .book-label h2, .book-ink .book-label h2 { color: var(--cream); }
.book-blue .book-label h2, .book-cream .book-label h2, .book-gold .book-label h2 { color: var(--ink); }

.book-label p {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.15em; opacity: 0.7;
}

.book-pink .book-label p, .book-ink .book-label p { color: var(--cream); }
.book-blue .book-label p, .book-cream .book-label p, .book-gold .book-label p { color: var(--ink); }

.book-card:hover .book-face, .book-card.active .book-face {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}

@keyframes bookIdle {
    0%, 85%, 100% { transform: scale(0.85) rotate(var(--rot, 0deg)); }
    88% { transform: scale(0.85) rotate(calc(var(--rot, 0deg) + 1deg)); }
    91% { transform: scale(0.85) rotate(calc(var(--rot, 0deg) - 1deg)); }
    94% { transform: scale(0.85) rotate(calc(var(--rot, 0deg) + 0.5deg)); }
}

.book-card:not(:hover):not(.active) {
    animation: bookIdle 5s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.deco-float {
    position: fixed; pointer-events: none; z-index: 5; opacity: 0.35;
}

@keyframes floatBook {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 10deg)); }
}

@keyframes floatTea {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.deco-sparkle { opacity: .35; }
.deco-sparkle.sp-pink    { color: var(--pink); }
.deco-sparkle.sp-pink-lt { color: var(--pink-light); }
.deco-sparkle.sp-blue    { color: var(--blue); }

.deco-sparkle .star-wrap {
    width: 100%; height: 100%; position: relative;
    animation: twinkle var(--d, 4s) ease-in-out var(--del, 0s) infinite;
}

.deco-sparkle .star-svg { width: 100%; height: 100%; display: block; overflow: visible; }

.deco-sparkle .glint {
    position: absolute; top: 13%; left: 15%; width: 42%; height: 42%;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(255,255,255,.95));
    animation: glint var(--d, 4s) ease-in-out var(--del, 0s) infinite;
}

.deco-sparkle .glint svg { width: 100%; height: 100%; display: block; }

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-18px) rotate(calc(var(--rot, 0deg) + 6deg)); }
}

@keyframes twinkle {
    0%, 70%, 100% { transform: scale(1); filter: brightness(1); }
    80% { transform: scale(1.18); filter: brightness(1.35); }
    90% { transform: scale(.94); filter: brightness(1.05); }
}

@keyframes glint {
    0%, 72%, 95%, 100% { opacity: 0; transform: scale(.3); }
    82% { opacity: 1; transform: scale(1); }
    88% { opacity: .5; transform: scale(1.12); }
}
.book-overlay {
    position: fixed; inset: 0;
    background: rgba(62, 39, 35, 0.9);
    backdrop-filter: blur(8px);
    z-index: 200; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}

.book-overlay.open { opacity: 1; pointer-events: all; }

.scene {
    width: 100%; height: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
}

.book-spread {
    position: relative; width: 700px; height: 500px;
    transform-style: preserve-3d;
}

.book-spread.slammed {
    animation: dropSlam 1s cubic-bezier(0.18, 0.89, 0.32, 1.18) forwards;
    will-change: transform, opacity, filter;
}

@keyframes dropSlam {
    0% { transform: translateY(-130vh) scale(1.35) rotate(-14deg); opacity: 0; filter: blur(8px); }
    18% { opacity: 1; filter: blur(2px); }
    58% { transform: translateY(18px) scale(1.02) rotate(-3deg); filter: blur(0); }
    72% { transform: translateY(-10px) scale(0.99, 1.02) rotate(1deg); }
    84% { transform: translateY(8px) scale(1.01, 0.98) rotate(-0.5deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

.sheets-container {
    position: absolute; top: 0; left: 50%; width: 350px; height: 500px;
    transform-style: preserve-3d; pointer-events: none;
}

.sheet {
    position: absolute; top: 0; left: 0; width: 350px; height: 500px;
    transform-origin: left center; transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1); pointer-events: none;
}

.sheet.flipping { pointer-events: auto; z-index: 1000 !important; }
.sheet.flipped { transform: rotateY(-180deg); }

.sheet-face {
    position: absolute; inset: 0; backface-visibility: hidden;
    border: 4px solid var(--ink); overflow: hidden; background: var(--cream-light);
}

.sheet-face::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, var(--ink-light) 1px, transparent 1px);
    background-size: 10px 10px; opacity: 0.06; pointer-events: none; z-index: 1;
}

.sheet-front {
    border-radius: 0 8px 8px 0; border-left: 2px solid var(--ink-light);
    box-shadow: inset 15px 0 30px rgba(0,0,0,0.08), 6px 6px 0 var(--ink-light);
}

.sheet-back {
    transform: rotateY(180deg); border-radius: 8px 0 0 8px;
    border-right: 2px solid var(--ink-light);
    box-shadow: inset -15px 0 30px rgba(0,0,0,0.08), -6px 6px 0 var(--ink-light);
    background: #FFFFFF;
}

.sheet-content {
    position: absolute; inset: 0;
    padding: 30px 25px; z-index: 3;
    display: flex; flex-direction: column; justify-content: flex-start;
    overflow-y: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.sheet-content::-webkit-scrollbar { width: 6px; }
.sheet-content::-webkit-scrollbar-track { background: transparent; }
.sheet-content::-webkit-scrollbar-thumb { background: var(--ink-light); border-radius: 3px; opacity: 0.6; }
.sheet-content::-webkit-scrollbar-thumb:hover { background: var(--ink); opacity: 1; }

.sheet-content p { font-size: 0.95rem; line-height: 1.5; color: var(--ink); margin-bottom: 0.8rem; }
.sheet-content p:last-child { margin-bottom: 0; }
.sheet-content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; margin-bottom: 1rem; line-height: 1; }

.sheet-content input,
.sheet-content textarea,
.sheet-content button,
.sheet-content a,
.sheet-content select {
    pointer-events: none;
    background: var(--cream-light) !important;
    color: var(--ink) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
}

.sheet.right-active .sheet-front input,
.sheet.right-active .sheet-front textarea,
.sheet.right-active .sheet-front button,
.sheet.right-active .sheet-front a,
.sheet.right-active .sheet-front select,
.sheet.left-active .sheet-back input,
.sheet.left-active .sheet-back textarea,
.sheet.left-active .sheet-back button,
.sheet.left-active .sheet-back a,
.sheet.left-active .sheet-back select { pointer-events: auto; }

.book-overlay:not(.open) .sheet-content,
.book-overlay:not(.open) .sheet-content * { pointer-events: none !important; }

.sheet-content input, .sheet-content textarea, .sheet-content select { cursor: text; }
.sheet-content button, .sheet-content a { cursor: pointer; }

.sheet-shadow { position: absolute; inset: 0; pointer-events: none; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.sheet.flipping .sheet-shadow { opacity: 1; animation: sheetShadow 1s cubic-bezier(0.4, 0.0, 0.2, 1); }
@keyframes sheetShadow {
    0% { background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%); }
    50% { background: linear-gradient(to right, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 100%); }
    100% { background: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%); }
}

.sheet-curl { position: absolute; inset: 0; pointer-events: none; z-index: 11; opacity: 0; }
.sheet.flipping .sheet-curl { opacity: 1; animation: sheetCurl 1s cubic-bezier(0.4, 0.0, 0.2, 1); }
@keyframes sheetCurl {
    0% { background: linear-gradient(to left, rgba(0,0,0,0) 70%, rgba(0,0,0,0.08) 100%); }
    50% { background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.15) 100%); }
    100% { background: linear-gradient(to right, rgba(0,0,0,0) 70%, rgba(0,0,0,0.08) 100%); }
}

.flip-shadow-left, .flip-shadow-right { position: absolute; top: 0; width: 350px; height: 500px; pointer-events: none; opacity: 0; z-index: 50; }
.flip-shadow-left { left: 0; background: linear-gradient(to left, rgba(0,0,0,0.3), transparent); }
.flip-shadow-right { right: 0; background: linear-gradient(to right, rgba(0,0,0,0.3), transparent); }
.flip-shadow-left.active { animation: shadowLeft 1s cubic-bezier(0.4, 0.0, 0.2, 1); }
.flip-shadow-right.active { animation: shadowRight 1s cubic-bezier(0.4, 0.0, 0.2, 1); }
@keyframes shadowLeft { 0% { opacity: 0; } 40% { opacity: 0.6; } 100% { opacity: 0; } }
@keyframes shadowRight { 0% { opacity: 0.6; } 60% { opacity: 0; } 100% { opacity: 0; } }

.book-cover {
    position: absolute; top: 0; left: 50%; width: 350px; height: 500px;
    transform-origin: left center; transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translateZ(15px);
}

.book-cover.open { transform: translateZ(-50px) rotateY(-180deg); pointer-events: none; }

.cover-face { position: absolute; inset: 0; backface-visibility: hidden; border: 4px solid var(--ink); overflow: hidden; }

.cover-front {
    background: var(--cover-color, var(--pink));
    border-radius: 0 8px 8px 0;
    box-shadow: 10px 10px 0 var(--ink-light);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}

.cover-front::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, var(--ink-light) 1px, transparent 1px);
    background-size: 8px 8px; opacity: 0.08; pointer-events: none; z-index: 2;
}

.cover-front::after {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: rgba(255,255,255,0.15);
    transform: rotate(-25deg); pointer-events: none; z-index: 1;
}

.cover-back {
    transform: rotateY(180deg); background: var(--cream-dark);
    border-radius: 8px 0 0 8px;
    box-shadow: inset -15px 0 30px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center;
}

.cover-back::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, var(--ink-light) 1px, transparent 1px);
    background-size: 10px 10px; opacity: 0.06; pointer-events: none; z-index: 1;
}

.book-cover[data-color="book-pink"] .book-title,
.book-cover[data-color="book-pink"] .book-num,
.book-cover[data-color="book-ink"] .book-title,
.book-cover[data-color="book-ink"] .book-num,
.book-cover[data-color="book-blue"] .book-title,
.book-cover[data-color="book-blue"] .book-num { color: var(--cream); }

.book-cover[data-color="book-cream"] .book-title,
.book-cover[data-color="book-cream"] .book-num,
.book-cover[data-color="book-gold"] .book-title,
.book-cover[data-color="book-gold"] .book-num { color: var(--ink); text-shadow: 2px 2px 0 var(--cream); }

.book-cover[data-color="book-ink"] .book-subtitle { background: var(--pink); color: var(--cream); }

.gold-frame { position: absolute; inset: 18px; border: 2px solid var(--gold); border-radius: 2px; pointer-events: none; z-index: 3; }
.book-title { font-family: 'Bebas Neue', sans-serif; font-size: 4.5rem; color: var(--cream); text-shadow: 3px 3px 0 var(--ink); text-align: center; line-height: 0.95; letter-spacing: 0.05em; position: relative; z-index: 5; }
.book-subtitle { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--ink); background: var(--cream); padding: 6px 18px; border-radius: 20px; margin-top: 20px; letter-spacing: 0.15em; text-transform: uppercase; position: relative; z-index: 5; box-shadow: 3px 3px 0 var(--ink); }

.real-back-cover {
    background: var(--cover-color, var(--cream-dark)) !important;
    border: 4px solid var(--ink) !important;
    border-left: 2px solid var(--ink-light) !important;
    border-radius: 8px 0 0 8px !important;
    box-shadow: inset -15px 0 30px rgba(0,0,0,0.08), -6px 6px 0 var(--ink-light) !important;
}

.real-back-cover .sheet-content { padding: 0 !important; width: 100%; height: 100%; }
.real-back-cover .page-number { display: none; }

.page-number {
    position: absolute; bottom: 15px;
    font-family: 'Bebas Neue', sans-serif; font-size: 1rem;
    color: var(--ink-light); opacity: 0.5; letter-spacing: 0.15em; pointer-events: none;
}

.sheet-front .page-number { right: 25px; }
.sheet-back .page-number { left: 25px; }
.curl-zone {
    position: absolute; width: 50%; height: 100%; top: 0; z-index: 300;
    cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}

.book-spread.open .curl-zone.available { opacity: 1; }
.curl-zone-next { right: 0; }
.curl-zone-prev { left: 0; }

.curl-visual { position: absolute; bottom: 8px; width: 0; height: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.curl-zone-next .curl-visual { right: 8px; background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(62, 39, 35, 0.08) 40%, rgba(62, 39, 35, 0.15) 50%, var(--cream-dark) 50%, var(--cream) 100%); box-shadow: -3px -3px 8px rgba(0,0,0,0.15); border-radius: 0 0 4px 0; }
.curl-zone-prev .curl-visual { left: 8px; background: linear-gradient(225deg, transparent 0%, transparent 40%, rgba(62, 39, 35, 0.08) 40%, rgba(62, 39, 35, 0.15) 50%, var(--cream-dark) 50%, var(--cream) 100%); box-shadow: 3px -3px 8px rgba(0,0,0,0.15); border-radius: 0 0 0 4px; }
.curl-zone:hover .curl-visual { width: 70px; height: 70px; }
.curl-zone:active .curl-visual { width: 90px; height: 90px; }
.curl-zone.available .curl-visual { animation: curlPulse 2s ease-in-out infinite; width: 30px; height: 30px; }
.curl-zone:hover .curl-visual { animation: none; }
@keyframes curlPulse { 0%, 100% { width: 25px; height: 25px; opacity: 0.6; } 50% { width: 40px; height: 40px; opacity: 1; } }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.stat-box {
    border: 3px solid var(--ink); padding: 12px; border-radius: 4px;
    box-shadow: 4px 4px 0 var(--ink-light);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}

.stat-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: currentColor; opacity: 0.4; }
.stat-box:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink-light); }
.stat-box .label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.6; margin-bottom: 4px; }
.stat-box .value { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; line-height: 1; letter-spacing: 0.02em; }
.top-bar {
    position: sticky; top: 0; left: 0; right: 0; height: 70px;
    background: var(--cream-dark); border-bottom: 4px solid var(--ink);
    z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
}

.top-bar-btn {
    border-radius: 20px; position: relative; padding: 8px 24px;
    background: var(--cream); border: 3px solid var(--ink);
    font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.1em;
    color: var(--ink); cursor: pointer; box-shadow: 4px 4px 0 var(--ink);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}

.top-bar-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--pink-light); }

.live-badge { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 12px; height: 12px; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7); }
    50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 51, 51, 0); }
}
.stream-section { padding: 60px 40px; max-width: 1200px; margin: 0 auto; position: relative; }

.stream-frame {
    position: relative; background: var(--cream-light); border: 6px solid var(--ink); border-radius: 20px;
    box-shadow: 12px 12px 0 var(--pink), 0 20px 60px rgba(0,0,0,0.15); overflow: hidden;
}

.stream-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--cream-dark); overflow: hidden; border-bottom: 4px solid var(--ink); }
.stream-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-embed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(115, 199, 227, 0.05)); pointer-events: none; z-index: 1; }

.stream-header-banner { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; background: var(--ink); border-bottom: 4px solid var(--pink); flex-wrap: wrap; gap: 20px; }
.stream-header-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--cream); text-shadow: 3px 3px 0 var(--pink); letter-spacing: 0.05em; margin: 0; }

.vod-btn {
    display: inline-block; padding: 14px 32px; background: var(--pink); color: var(--cream);
    font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.08em;
    text-decoration: none; border: 3px solid var(--cream); border-radius: 8px;
    box-shadow: 4px 4px 0 var(--ink); transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vod-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--pink-dark); }

.stream-countdown-bar { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 18px 28px; background: var(--ink); border-bottom: 4px solid var(--ink); flex-wrap: wrap; }
.countdown-label { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.12em; color: var(--pink-light); }
.countdown-timer { display: flex; gap: 10px; font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--cream); letter-spacing: 0.05em; }
.countdown-timer span { background: var(--pink); padding: 6px 12px; border-radius: 6px; box-shadow: 2px 2px 0 var(--cream); min-width: 48px; text-align: center; }

.live-pill {
    background: var(--pink) !important; color: var(--cream) !important;
    font-family: 'Bebas Neue', sans-serif !important; font-size: 1.4rem !important; letter-spacing: 0.1em !important;
    padding: 8px 24px 8px 44px !important; border: 3px solid var(--ink) !important; border-radius: 50px !important;
    box-shadow: 4px 4px 0 var(--ink) !important; position: relative; display: inline-flex; align-items: center;
}

.live-pill::before { content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; background: var(--cream); border-radius: 50%; border: 2px solid var(--ink); animation: liveDotBlink 1.5s ease-in-out infinite; }
@keyframes liveDotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.late-pill { background: var(--gold) !important; color: var(--ink) !important; padding: 8px 20px !important; border-radius: 20px !important; box-shadow: 2px 2px 0 var(--cream) !important; font-size: 1rem; font-weight: 700; animation: pulse 2s ease-in-out infinite; }
.twitch-badge { display: flex; align-items: center; gap: 12px; font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.05em; color: var(--ink); }
.twitch-logo-svg { width: 28px; height: 32px; }
.stream-footer-bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; background: var(--cream-dark); gap: 20px; flex-wrap: wrap; }
.stream-schedule-badge { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.schedule-highlight { background: var(--pink); color: var(--cream); padding: 3px 10px; border-radius: 6px; font-weight: 900; display: inline-block; margin: 0 3px; box-shadow: 2px 2px 0 var(--ink); }
.merch-section { padding: 40px 40px 80px; max-width: 1000px; margin: 0 auto; text-align: center; position: relative; }
.merch-header { margin-bottom: 40px; }
.merch-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 8vw, 5rem); color: var(--ink); text-shadow: 4px 4px 0 var(--pink-light); letter-spacing: 0.05em; margin-bottom: 8px; }
.merch-subtitle { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.15em; }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-bottom: 50px; }

.merch-card {
    background: var(--cream-light); border: 4px solid var(--ink); border-radius: 8px; padding: 24px;
    box-shadow: 8px 8px 0 var(--ink-light); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.merch-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
.merch-image-placeholder { width: 100%; height: 160px; background: var(--cream-dark); border: 3px dashed var(--ink-light); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; margin-bottom: 20px; opacity: 0.8; overflow: hidden; }
.merch-image-placeholder img, .polaroid-img img, .placeholder-text img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merch-info h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--ink); margin-bottom: 8px; letter-spacing: 0.05em; }
.merch-info p { font-size: 0.95rem; color: var(--ink-light); margin-bottom: 16px; line-height: 1.5; }
.merch-status { display: inline-block; padding: 6px 16px; background: var(--gold-light); color: var(--ink); font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.1em; border: 2px solid var(--ink); border-radius: 4px; }
.merch-notify { background: var(--ink); color: var(--cream); padding: 30px; border-radius: 8px; border: 4px solid var(--pink); box-shadow: 8px 8px 0 var(--pink-dark); max-width: 600px; margin: 0 auto; }
.merch-notify p { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; line-height: 1.5; }
.merch-btn { display: inline-block; padding: 12px 32px; background: var(--pink); color: var(--cream); font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.1em; text-decoration: none; border: 3px solid var(--cream); border-radius: 4px; box-shadow: 4px 4px 0 var(--cream); transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.merch-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--cream); background: var(--pink-dark); }
.art-board-section { padding: 80px 40px; max-width: 1400px; margin: 0 auto; position: relative; }
.art-board-header { text-align: center; margin-bottom: 50px; }
.art-board-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 8vw, 5rem); color: var(--ink); text-shadow: 4px 4px 0 var(--pink-light); letter-spacing: 0.05em; margin-bottom: 8px; }
.art-board-subtitle { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.15em; }
.corkboard-wrapper { width: 100%; max-width: 1000px; margin: 0 auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }
.corkboard-wrapper::-webkit-scrollbar { width: 14px; height: 14px; }
.corkboard-wrapper::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 8px; border: 2px solid var(--ink); }
.corkboard-wrapper::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 8px; border: 3px solid var(--cream-dark); }

.corkboard {
    width: 660px; height: 660px; margin: 0 auto; position: relative;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(62, 39, 35, 0.03) 10px, rgba(62, 39, 35, 0.03) 20px), linear-gradient(135deg, #f5e6c8 0%, #e8d5a8 100%);
    border: 8px solid var(--ink); border-radius: 8px;
    box-shadow: 12px 12px 0 var(--ink-light), inset 0 0 60px rgba(62, 39, 35, 0.1); overflow: hidden;
}

.polaroid { position: absolute; background: #fff; padding: 12px 12px 40px; box-shadow: 4px 4px 0 rgba(62, 39, 35, 0.3), 0 2px 8px rgba(0,0,0,0.15); z-index: 2; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; cursor: pointer; width: 175px; }
.polaroid:hover { transform: rotate(0deg) scale(1.12) !important; z-index: 100 !important; box-shadow: 8px 8px 0 rgba(62, 39, 35, 0.4), 0 4px 16px rgba(0,0,0,0.25); }

.pin { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b); border-radius: 50%; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 2px 2px 4px rgba(0,0,0,0.4); z-index: 3; }
.pin::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; background: #fff; border-radius: 50%; opacity: 0.6; }

.polaroid-img { width: 100%; height: 160px; background-size: cover; background-position: center; border: 2px solid var(--ink-light); display: flex; align-items: center; justify-content: center; }
.placeholder-text { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--ink); letter-spacing: 0.1em; opacity: 0.4; }
.polaroid-caption { text-align: center; padding-top: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--ink); letter-spacing: 0.05em; }

.sticky-note { position: absolute; background: #fff59d; padding: 20px; width: 180px; min-height: 120px; box-shadow: 3px 3px 8px rgba(0,0,0,0.2); font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; line-height: 1.5; color: var(--ink); z-index: 11; transform-origin: center; pointer-events: none; }
.sticky-note::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 20px; background: rgba(192, 57, 43, 0.4); border-radius: 2px; }
.p5-circle-clock {
    position: fixed; top: 92px; left: 40px; width: 150px; height: 150px;
    z-index: 1000; opacity: 0; transform: scale(0) rotate(-45deg);
    --clk-accent-rgb: 255 107 157;
    --clk-dial-rgb: 255 255 255;
}

.p5-circle-clock.entrance { animation: clockEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes clockEntrance { 0% { transform: scale(0) rotate(-90deg); opacity: 0; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }

.p5-circle-clock .outer-ring { position: absolute; inset: 0; border: 4px dashed rgb(var(--clk-accent-rgb)); border-radius: 50%; animation: spinRing 15s linear infinite; filter: drop-shadow(0 0 8px rgb(var(--clk-accent-rgb) / 0.45)); }
@keyframes spinRing { 100% { transform: rotate(360deg); } }

.p5-circle-clock .inner-circle {
    position: absolute; inset: 14px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
    background: radial-gradient(circle at 50% 42%, rgb(var(--clk-accent-rgb) / 0.16) 0%, transparent 60%), radial-gradient(circle at 50% 50%, transparent 58%, rgba(62,39,35,0.12) 100%), rgb(var(--clk-dial-rgb));
    box-shadow: inset 0 0 16px rgba(62,39,35,0.10), inset 0 0 0 2px rgb(var(--clk-accent-rgb) / 0.20);
}

.p5-circle-clock .inner-circle::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, transparent 0 2px, rgb(var(--clk-accent-rgb) / 0.06) 2px 4px); pointer-events: none; }

.p5-circle-clock .date-display { display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.1rem; color: rgb(var(--clk-accent-rgb)); line-height: 1; z-index: 2; margin-bottom: 6px; }
.p5-circle-clock .date-display .slash { margin: 0 4px; color: var(--cream); opacity: 0.4; }
.p5-circle-clock .time-display { display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 2rem; color: rgb(var(--clk-accent-rgb)); line-height: 1; z-index: 2; text-shadow: 3px 3px 0 var(--ink); }
.p5-circle-clock .time-display .colon { margin: 0 4px; animation: pulseColon 1s step-end infinite; color: rgb(var(--clk-accent-rgb)); text-shadow: none; }
@keyframes pulseColon { 50% { opacity: 0.2; transform: scale(0.8); } }

.digit-wrapper { position: relative; width: 1ch; height: 1.1em; overflow: hidden; display: inline-block; }
.digit { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-in; }
.digit.current { transform: translateY(0); opacity: 1; }
.digit.next { transform: translateY(100%) scale(1.2); opacity: 0; }
.digit-wrapper.change .digit.current { transform: translateY(-100%) scale(0.5); opacity: 0; }
.digit-wrapper.change .digit.next { transform: translateY(0) scale(1); opacity: 1; }

.social-circle-grid { display: grid !important; gap: 24px 20px !important; justify-content: center; justify-items: center; margin: 20px 0 !important; width: 99%; }
.social-item { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.social-item:hover { transform: translateY(-8px); }
.social-circle { width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--ink); background: var(--cream-light); display: flex; align-items: center; justify-content: center; box-shadow: 6px 6px 0 var(--ink); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); text-decoration: none; position: relative; overflow: hidden; color: var(--pink); }
.social-circle:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.social-circle:hover .social-icon { transform: scale(1.15); }
.social-circle:hover svg { transform: scale(1.15); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.social-icon { width: 36px; height: 36px; background-color: var(--pink); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 2; }
.social-circle-label { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.08em; color: var(--ink); text-align: center; transition: all 0.3s ease; font-weight: 400; }
.social-item:hover .social-circle-label { color: var(--pink); transform: scale(1.05); }

.credit-link { color: var(--pink); text-decoration: none; font-weight: 700; transition: all 0.2s ease; display: inline-block; }
.credit-link:hover { color: var(--pink-dark); transform: scale(1.08); }
.credit-item { padding: 8px 0; border-bottom: 2px dashed var(--ink-light); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.credit-item:last-child { border-bottom: none; }
.credit-label { font-size: 0.85rem; color: var(--ink-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; flex: 1; }
.credit-artist { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--pink); text-align: right; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.sheet-content > * { animation: fadeInUp 0.4s ease-out; animation-fill-mode: both; }
.sheet-content > *:nth-child(1) { animation-delay: 0.1s; }
.sheet-content > *:nth-child(2) { animation-delay: 0.15s; }
.sheet-content > *:nth-child(3) { animation-delay: 0.2s; }
.sheet-content > *:nth-child(4) { animation-delay: 0.25s; }
.sheet-content > *:nth-child(5) { animation-delay: 0.3s; }

.custom-modal-overlay { position: fixed; inset: 0; background: rgba(62, 39, 35, 0.85); backdrop-filter: blur(12px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.custom-modal-overlay.active { opacity: 1; pointer-events: all; }
.custom-modal { background: var(--cream); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--pink); padding: 32px 36px; max-width: 420px; width: 90%; transform: scale(0.7) translateY(30px); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); text-align: center; position: relative; }
.custom-modal-overlay.active .custom-modal { transform: scale(1) translateY(0); }
.modal-header { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--ink); margin-bottom: 16px; letter-spacing: 0.05em; position: relative; display: inline-block; }
.modal-header::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--pink); border-radius: 2px; }
.modal-body { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 24px; line-height: 1.6; }
.modal-close-btn { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.1em; background: var(--cream-dark); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 28px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-close-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--cream); }
.modal-close-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--ink); }
#notifyForm input, #notifyForm button { transform: none !important; }
#notifySubmitBtn { border-radius: 12px !important; }
#notifyEmail { border-radius: 12px !important; }

.modal-loader-container { display: flex; align-items: center; justify-content: center; width: 100%; height: 200px; margin: 20px 0; }
.p5-loader-static { position: relative; width: 160px; height: 160px; }
.p5-loader-static .loader-text-circle { width: 100%; height: 100%; position: absolute; top: 0; left: 0; animation: rotateText 4s linear infinite; }
.p5-loader-static .loader-svg { width: 100%; height: 100%; }
.p5-loader-static .loader-svg text { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 5px; fill: var(--ink); text-transform: uppercase; font-weight: 900; }
.p5-loader-static .p5-book { position: absolute; top: 50%; left: 50%; width: 60px; height: 78px; transform: translate(-50%, -50%); }
.p5-loader-static .p5-book-inner { width: 100%; height: 100%; position: relative; animation: p5BookFlip2D 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; }
.p5-loader-static .p5-book-cover { width: 100%; height: 100%; background: var(--pink); border: 3px solid var(--ink); border-radius: 2px 6px 6px 2px; position: relative; }
.p5-loader-static .p5-book-cover::after { content: ''; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); width: 12px; height: 18px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); z-index: -1; }
.p5-loader-static .p5-book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--ink); }
.p5-loader-static .p5-book-shadow { position: absolute; bottom: -10px; left: 50%; width: 48px; height: 6px; background: var(--ink); transform: translateX(-50%); opacity: 0.3; animation: p5Shadow2D 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; }

@keyframes rotateText { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes p5BookFlip2D { 0% { transform: scaleX(1) skewY(0deg); } 20% { transform: scaleX(0.95) skewY(-2deg); } 40% { transform: scaleX(0) skewY(0deg); } 60% { transform: scaleX(-0.95) skewY(2deg); } 80% { transform: scaleX(-1) skewY(0deg); } 100% { transform: scaleX(1) skewY(0deg); } }
@keyframes p5Shadow2D { 0%, 80%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.3; } 40% { transform: translateX(-50%) scaleX(0.3); opacity: 0.15; } }

.p5-global-loader { position: fixed; bottom: 40px; right: 40px; width: 180px; height: 180px; z-index: 99999; opacity: 0; pointer-events: none; animation: globalLoaderAppear 0.3s ease-out 0.2s forwards, globalLoaderFadeOut 0.5s ease-in 3s forwards; }
@keyframes globalLoaderAppear { from { opacity: 0; transform: scale(0.3) rotate(-90deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes globalLoaderFadeOut { 0% { opacity: 1; transform: scale(1) rotate(0deg); } 100% { opacity: 0; transform: scale(0.5) rotate(90deg); } }
.p5-global-loader .loader-text-circle { width: 100%; height: 100%; position: absolute; top: 0; left: 0; animation: globalRotateText 4s linear infinite; }
@keyframes globalRotateText { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.p5-global-loader .loader-svg { width: 100%; height: 100%; }
.p5-global-loader .loader-svg text { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 5px; fill: var(--ink); text-transform: uppercase; font-weight: 900; }
.p5-global-loader .p5-book { position: absolute; top: 50%; left: 50%; width: 60px; height: 78px; transform: translate(-50%, -50%); }
.p5-global-loader .p5-book-inner { width: 100%; height: 100%; position: relative; animation: globalBookFlip 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; }
@keyframes globalBookFlip { 0% { transform: scaleX(1) skewY(0deg); } 20% { transform: scaleX(0.95) skewY(-2deg); } 40% { transform: scaleX(0) skewY(0deg); } 60% { transform: scaleX(-0.95) skewY(2deg); } 80% { transform: scaleX(-1) skewY(0deg); } 100% { transform: scaleX(1) skewY(0deg); } }
.p5-global-loader .p5-book-cover { width: 100%; height: 100%; background: var(--pink); border: 3px solid var(--ink); border-radius: 2px 6px 6px 2px; position: relative; }
.p5-global-loader .p5-book-cover::after { content: ''; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); width: 12px; height: 18px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); z-index: -1; }
.p5-global-loader .p5-book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--ink); }
.p5-global-loader .p5-book-shadow { position: absolute; bottom: -10px; left: 50%; width: 48px; height: 6px; background: var(--ink); transform: translateX(-50%); opacity: 0.3; animation: globalShadow 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; }
@keyframes globalShadow { 0%, 80%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.3; } 40% { transform: translateX(-50%) scaleX(0.3); opacity: 0.15; } }

.lightbox-overlay { position: fixed; inset: 0; background: rgba(62, 39, 35, 0.92); backdrop-filter: blur(10px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; transform: scale(0.8); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.lightbox-overlay.active .lightbox-content { transform: scale(1); }
.lightbox-content img { max-width: 90vw; max-height: 75vh; object-fit: contain; border: 5px solid var(--cream); border-radius: 4px; box-shadow: 12px 12px 0 var(--pink), 0 20px 60px rgba(0,0,0,0.5); display: block; }
.lightbox-caption { text-align: center; margin-top: 16px; font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.1em; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); }

.screen { position: fixed; inset: 18px; z-index: 1; background: var(--cream); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--pink) var(--cream); }
.screen::-webkit-scrollbar { width: 12px; }
.screen::-webkit-scrollbar-track { background: var(--cream); }
.screen::-webkit-scrollbar-thumb { background: var(--pink); border: 3px solid var(--cream); border-radius: 8px; }
.site-frame { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.site-frame > .sf-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.schedule-overlay { position: fixed; inset: 0; background: rgba(62, 39, 35, 0.92); backdrop-filter: blur(10px); z-index: 9998; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; overflow: auto; }
.schedule-overlay.open { opacity: 1; pointer-events: all; }
.schedule-stage { position: relative; width: 700px; height: 472px; transform-origin: center center; }

.notebook { position: relative; width: 700px; height: 472px; border-radius: 10px; background: var(--pink); border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); animation: nbIn .8s cubic-bezier(.34,1.56,.64,1) both, nbIdle 6s ease-in-out 1s infinite, shadowShift 8s ease-in-out infinite; }
.notebook::before { content: ''; position: absolute; inset: 0; border-radius: 6px; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(62,39,35,.10) 1px, transparent 1.4px); background-size: 8px 8px; opacity: .4; animation: speedLines 10s linear infinite; }
.notebook .p5-halftone { position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: 6px; background: radial-gradient(circle, #1a1a1a 1px, transparent 1.5px); background-size: 6px 6px; opacity: 0; mix-blend-mode: overlay; animation: halftoneFlash 8s ease-in-out infinite; }
.notebook .dust { position: absolute; inset: 0; z-index: 21; pointer-events: none; overflow: hidden; border-radius: 6px; }
.notebook .dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5); animation: dustFloat 7s linear infinite; opacity: 0; }
.notebook .dust i:nth-child(1) { left: 15%; animation-delay: 0s; animation-duration: 6s; }
.notebook .dust i:nth-child(2) { left: 35%; animation-delay: 1.5s; animation-duration: 8s; }
.notebook .dust i:nth-child(3) { left: 55%; animation-delay: 3s; animation-duration: 7s; }
.notebook .dust i:nth-child(4) { left: 75%; animation-delay: 2s; animation-duration: 9s; }
.notebook .dust i:nth-child(5) { left: 90%; animation-delay: 4s; animation-duration: 6.5s; }

.page { position: absolute; top: 8px; width: 330px; height: 450px; z-index: 2; background: #fff; border: 3px solid var(--ink); }
.page.left { left: 9px; border-radius: 6px 2px 2px 6px; animation: pageBreatheL 5s ease-in-out infinite; }
.page.right { left: 351px; border-radius: 2px 6px 6px 2px; overflow: hidden; animation: pageBreatheR 5s ease-in-out infinite .5s; }
.seam { position: absolute; left: 344px; top: 8px; width: 2px; height: 450px; z-index: 3; background: rgba(62,39,35,.28); }

.rings { position: absolute; left: 324px; top: 14px; width: 42px; height: 438px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; z-index: 15; }
.ring { width: 42px; height: 15px; border-radius: 8px; background: #eae5da; border: 2px solid var(--ink); position: relative; animation: ringShine 3s ease-in-out infinite; }
.ring:nth-child(2) { animation-delay: .2s; } .ring:nth-child(3) { animation-delay: .4s; }
.ring:nth-child(4) { animation-delay: .6s; } .ring:nth-child(5) { animation-delay: .8s; }
.ring:nth-child(6) { animation-delay: 1s; } .ring:nth-child(7) { animation-delay: 1.2s; }
.ring::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; transform: translateY(-50%); background: var(--ink); opacity: .4; border-radius: 2px; }
.ring::before { content: ''; position: absolute; inset: 1px; border-radius: 6px; background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, transparent 50%, rgba(255,255,255,.3) 100%); opacity: 0; animation: ringGlint 4s ease-in-out infinite; }
.ring:nth-child(odd)::before { animation-delay: 1s; }

.tab { position: absolute; left: 0; top: 0; bottom: 0; width: 28px; z-index: 3; background: var(--blue-light); border-right: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; padding-top: 14px; animation: tabPulse 3s ease-in-out infinite; }
.tab .mo { writing-mode: vertical-rl; font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: .3em; color: var(--ink-light); }
.lcontent { position: relative; z-index: 2; padding: 24px 22px 22px 56px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.log-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.log-scroll::-webkit-scrollbar { display: none; }
.log-marker { position: absolute; right: 6px; top: 54px; width: 11px; height: 30px; z-index: 6; pointer-events: none; background: var(--pink); border: 2px solid var(--ink); border-radius: 2px; transform: skewY(-12deg); box-shadow: 2px 2px 0 var(--ink); transition: top .09s linear; display: none; }

.rhead { position: sticky; top: 0; z-index: 4; background: var(--pink); display: flex; align-items: baseline; justify-content: space-between; padding: 13px 26px 9px 16px; border-bottom: 3px solid var(--pink-dark); clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%); animation: headerPulse 4s ease-in-out infinite; }
.rhead .t { font-family: 'Bebas Neue', sans-serif; letter-spacing: .12em; color: #fff; font-size: 1.15rem; transform: skewX(-3deg); text-shadow: 1px 1px 0 rgba(0,0,0,.2); }
.rhead .t b { color: #1a1a1a; font-weight: 400; }
.rhead .yr { font-family: 'Bebas Neue', sans-serif; color: #fff; font-size: 1rem; letter-spacing: .12em; text-shadow: 1px 1px 0 rgba(0,0,0,.2); }

.rows { position: relative; z-index: 2; padding: 4px 14px 14px 14px; }
.row { display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 8px; padding: 9px 2px; position: relative; transition: transform .1s ease; }
.row > * { position: relative; z-index: 1; }
.row::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; bottom: 2px; z-index: 0; background: var(--pink); clip-path: polygon(1% 0%, 99% 0%, 98% 100%, 2% 100%); transform: scaleX(0) skewX(-4deg); transform-origin: left center; transition: transform .18s cubic-bezier(.7,0,.3,1); }
.row::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 1; background: var(--pink-dark); transform: scaleY(0) skewY(-8deg); transform-origin: top; transition: transform .15s cubic-bezier(.7,0,.3,1) .05s; }
.when { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; gap: 2px; }
.when b { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: .04em; color: var(--pink-dark); transition: transform .1s ease, color .1s ease; }
.when span { font-size: .55rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-light); transition: color .1s ease; }
.nt { font-family: 'Space Grotesk', sans-serif; font-size: .8rem; line-height: 1.35; color: var(--ink); padding: 4px 10px; border-radius: 5px; background: var(--pink-light); border: 1.5px solid var(--pink); transition: transform .1s ease, color .1s ease, background .12s ease, border-color .12s ease; }
.nt strong { font-weight: 700; }
.row.game .nt { background: var(--blue-light); border-color: var(--blue); }
.row .ic { justify-self: end; width: 18px; height: 18px; opacity: .9; margin-right: 4px; transition: transform .15s cubic-bezier(.34,1.56,.64,1), color .1s ease; }
.row .ic svg { width: 100%; height: 100%; }
.row.chat .ic { color: var(--pink); }
.row.game .ic { color: var(--blue-dark); }
.row:hover { transform: translateX(3px) skewX(-1deg); }
.row:hover::before { transform: scaleX(1) skewX(-4deg); }
.row:hover::after { transform: scaleY(1) skewY(-8deg); }
.row:hover .when b { color: #fff !important; transform: scale(1.08); }
.row:hover .when span { color: rgba(255,255,255,.9) !important; }
.row:hover .nt { color: #fff; transform: translateX(2px); background: transparent; border-color: transparent; }
.row:hover .ic { color: #fff; opacity: 1; transform: scale(1.15) rotate(-5deg); }
.row.game::before { background: var(--blue); }
.row.game::after { background: var(--blue-dark); }
.row.game .when b { color: var(--blue-dark); }
.row.game:hover::before { background: var(--blue-dark); }
.row.game:hover::after { background: var(--blue); }
.row.today::before { transform: scaleX(1) skewX(-4deg); background: var(--pink-dark); }
.row.today::after { transform: scaleY(1) skewY(-8deg); background: var(--pink); }
.row.today .when b { color: #fff; }
.row.today .when span { color: rgba(255,255,255,.7); }
.row.today .nt { color: #fff; background: transparent; border-color: transparent; }
.row.today .ic { color: var(--pink-light); animation: iconBounce 2s ease-in-out infinite; }
.row.today:hover::before { background: #FF1744; }
.row.game.today::before { background: var(--blue-dark); }
.row.game.today::after { background: var(--blue); }
.row.game.today .when b { color: #fff; }
.row.game.today .when span { color: rgba(255,255,255,.7); }
.row.game.today .ic { color: var(--blue-light); }
.row.today { animation: todayGlow 2.5s ease-in-out infinite; }

.empty-state { text-align: center; padding: 40px 20px; font-family: 'Space Grotesk', sans-serif; color: var(--ink-light); opacity: .6; font-size: .8rem; line-height: 1.8; }
.empty-state i { display: block; width: 32px; height: 32px; margin: 0 auto 10px; opacity: .4; }

.page.right .corner-fold { position: absolute; bottom: 0; right: 0; width: 0; height: 0; z-index: 10; border-style: solid; border-width: 0 0 22px 22px; border-color: transparent transparent #f0ebe3 transparent; filter: drop-shadow(-1px -1px 1px rgba(62,39,35,.15)); animation: cornerWiggle 5s ease-in-out infinite; }

.schedule-overlay .log-scroll .reveal:not(.seen) { opacity: 0; transform: translateX(60px) rotate(3deg) skewX(-12deg) scale(.8); }
.schedule-overlay .log-scroll .reveal.seen { opacity: 1; transform: none; transition: opacity .25s ease, transform .4s cubic-bezier(.17,.67,.29,1.4); }

@keyframes nbIn { 0% { opacity: 0; transform: scale(.8) rotate(-3deg) translateY(60px); } 60% { transform: scale(1.03) rotate(.5deg) translateY(-4px); } 100% { opacity: 1; transform: scale(1) rotate(0) translateY(0); } }
@keyframes nbIdle { 0%, 100% { transform: rotate(0deg) translateY(0); } 25% { transform: rotate(.15deg) translateY(-1px); } 75% { transform: rotate(-.15deg) translateY(1px); } }
@keyframes shadowShift { 0%, 100% { box-shadow: 10px 10px 0 var(--ink); } 25% { box-shadow: 11px 9px 0 var(--ink); } 50% { box-shadow: 10px 11px 0 var(--ink); } 75% { box-shadow: 9px 10px 0 var(--ink); } }
@keyframes speedLines { 0% { background-position: 0 0; } 100% { background-position: 80px 80px; } }
@keyframes tabPulse { 0%, 100% { background: var(--blue-light); } 50% { background: var(--blue); } }
@keyframes pageBreatheL { 0%, 100% { box-shadow: 2px 2px 4px rgba(62,39,35,.1); } 50% { box-shadow: 3px 3px 8px rgba(62,39,35,.18); } }
@keyframes pageBreatheR { 0%, 100% { box-shadow: -2px 2px 4px rgba(62,39,35,.1); } 50% { box-shadow: -3px 3px 8px rgba(62,39,35,.18); } }
@keyframes ringShine { 0%, 100% { box-shadow: 0 1px 2px rgba(62,39,35,.2); } 50% { box-shadow: 0 1px 4px rgba(62,39,35,.35), inset 0 1px 2px rgba(255,255,255,.5); } }
@keyframes ringGlint { 0%, 70%, 100% { opacity: 0; } 80% { opacity: 1; } 90% { opacity: 0; } }
@keyframes headerPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.05); } }
@keyframes todayGlow { 0%, 100% { box-shadow: none; } 50% { box-shadow: inset 0 0 12px rgba(255,107,157,.15), 0 0 8px rgba(255,107,157,.1); } }
@keyframes iconBounce { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-2px) rotate(-3deg); } 75% { transform: translateY(1px) rotate(2deg); } }
@keyframes halftoneFlash { 0%, 85%, 100% { opacity: 0; } 90% { opacity: .06; } 95% { opacity: 0; } }
@keyframes dustFloat { 0% { transform: translateY(100%) scale(0); opacity: 0; } 10% { opacity: .6; } 90% { opacity: .3; } 100% { transform: translateY(-480px) scale(1.2); opacity: 0; } }
@keyframes cornerWiggle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.librarian-note { background: var(--cream-light); border: 2px solid var(--ink); border-radius: 6px; padding: 16px 14px; position: relative; box-shadow: 3px 3px 0 rgba(62, 39, 35, 0.15); }
.librarian-note::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 70px; height: 18px; background: rgba(255, 107, 157, 0.35); border-radius: 2px; }
.note-header { margin-bottom: 12px; border-bottom: 2px dashed var(--ink-light); padding-bottom: 8px; }
.note-stamp { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.25em; color: var(--pink-dark); border: 1.5px solid var(--pink-dark); padding: 2px 6px; border-radius: 3px; transform: rotate(-1deg); margin-bottom: 6px; }
.note-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.12em; color: var(--ink); margin: 0; }
.note-body { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; line-height: 1.7; color: var(--ink); margin-bottom: 14px; font-style: italic; }
.schedule-card { border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.schedule-card-header { font-family: 'Bebas Neue', sans-serif; font-size: 0.8rem; letter-spacing: 0.2em; background: var(--ink); color: var(--cream); padding: 5px 10px; text-align: center; }
.schedule-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-bottom: 1px dashed var(--ink-light); font-size: 0.7rem; font-weight: 700; }
.schedule-row:last-child { border-bottom: none; }
.schedule-row .day-label { font-family: 'Bebas Neue', sans-serif; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--pink-dark); }
.schedule-row .time-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--ink-light); }
.note-footer { font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; line-height: 1.6; color: var(--ink-light); font-style: italic; margin: 0; }
.note-signature { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.15em; color: var(--pink-dark); font-style: normal; }
.page-sticker { position: absolute; width: 66px; height: auto; bottom: 16px; right: 30px; z-index: 6; transform: rotate(-9deg); filter: drop-shadow(2px 3px 2px rgba(62,39,35,.30)); pointer-events: none; -webkit-user-drag: none; user-select: none; }
.schedule-overlay.open .page-sticker { animation: stickerSlap .5s cubic-bezier(.18,.89,.32,1.18) both; }
@keyframes stickerSlap { 0% { opacity: 0; transform: rotate(-24deg) scale(1.55) translateY(-16px); filter: drop-shadow(6px 10px 6px rgba(62,39,35,.18)); } 60% { opacity: 1; transform: rotate(-5deg) scale(.93); } 80% { transform: rotate(-12deg) scale(1.04); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); filter: drop-shadow(2px 3px 2px rgba(62,39,35,.30)); } }

html::-webkit-scrollbar, body::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
html, body { -ms-overflow-style: none !important; scrollbar-width: none !important; }

@keyframes mobileSlam {
    0% { transform: translateY(-90px) scale(0.92); opacity: 0; filter: blur(4px); }
    55% { transform: translateY(8px) scale(1.02); opacity: 1; filter: blur(0); }
    75% { transform: translateY(-4px) scale(0.995); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
    .main { padding-top: 160px; }
    .carousel-zone { padding: 60px 20px 40px 20px; }
    .stream-section { padding: 40px 20px; }
    .merch-section { padding: 40px 20px 60px; }
    .art-board-section { padding: 60px 20px; }
}

@media (max-width: 768px) {
    body { font-size: 15px; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }

    .top-bar { height: 56px; padding: 0 12px; gap: 6px; backdrop-filter: blur(10px); background: rgba(250, 243, 224, 0.98); }
    .top-bar-btn { padding: 5px 12px; font-size: 0.85rem; border-radius: 16px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); min-height: 36px; }
    .top-bar-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
    .live-badge { font-size: 0.75rem; gap: 5px; }
    .live-dot { width: 8px; height: 8px; }
    .rotating-circle-container { top: -34px; }
    .rotating-circle { width: 104px; height: 104px; }
    .logo-inner { width: 92px; height: 92px; }
    .logo-placeholder { width: 72px; height: 72px; }
    .logo-png { width: 104px; height: 104px; }

    .p5-circle-clock { top: auto; bottom: 92px; left: auto; right: 24px; width: 96px; height: 96px; }
    .p5-circle-clock .date-display { font-size: 0.72rem; margin-bottom: 4px; }
    .p5-circle-clock .time-display { font-size: 1.3rem; }
    .main { padding-top: 100px; }
    .carousel-zone { padding: 20px 0; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-padding: 20px; }
    .carousel-track { display: flex; gap: 12px; padding: 20px; width: max-content; transition: none; }
    .book-card { width: 180px; height: 260px; margin: 0; scroll-snap-align: center; flex-shrink: 0; transform: scale(1) rotate(0deg) !important; filter: brightness(1); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .book-card.active { transform: scale(1.05) rotate(0deg) translateY(-8px) !important; filter: brightness(1.1); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
    .book-card:active { transform: scale(0.95) rotate(0deg) !important; }
    .book-face { padding: 16px; border-width: 3px; }
    .book-num { font-size: 2.2rem; top: 10px; left: 10px; }
    .book-label h2 { font-size: 1.3rem; margin-bottom: 5px; }
    .book-label p { font-size: 0.65rem; }
    .book-overlay { background: rgba(62, 39, 35, 0.95); backdrop-filter: blur(12px); }
    .book-spread { width: 94vw; height: 88vh; max-width: 400px; max-height: 620px; transform-style: flat; }
    .book-spread.slammed { animation: mobileSlam 0.7s cubic-bezier(0.18, 0.89, 0.32, 1.18) forwards; }
    .sheets-container, .sheet, .book-cover { width: 100%; height: 100%; transform-style: flat; }
    .sheet { transition: opacity 0.3s ease, transform 0.3s ease; }
    .sheet.flipped { transform: translateX(-100%); opacity: 0; }
    .sheet-content { padding: 20px 16px !important; overflow-y: auto !important; overflow-x: hidden; }
    .sheet-content h2 { font-size: 1.6rem !important; margin-bottom: 12px !important; }
    .sheet-content p { font-size: 0.9rem !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
    .book-cover { transition: transform 0.4s ease; }
    .book-cover.open { transform: translateX(-100%) !important; }
    .cover-front { padding: 18px; }
    .book-title { font-size: 2.2rem !important; text-shadow: 2px 2px 0 var(--ink); }
    .book-num { font-size: 2.8rem !important; }
    .book-subtitle { font-size: 0.8rem; padding: 5px 14px; margin-top: 14px; }
    .gold-frame { inset: 12px; }
    .page-number { font-size: 0.8rem; bottom: 10px; }
    .sheet-front .page-number { right: 14px; }
    .sheet-back .page-number { left: 14px; }
    .curl-zone { width: 70px !important; opacity: 1 !important; pointer-events: auto !important; }
    .curl-visual { bottom: 16px; width: 44px !important; height: 44px !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: bold; }
    .curl-zone-next .curl-visual { right: 12px; background: var(--pink); color: var(--cream); }
    .curl-zone-next .curl-visual::before { content: '→'; font-size: 1.6rem; }
    .curl-zone-prev .curl-visual { left: 12px; background: var(--blue); color: var(--cream); }
    .curl-zone-prev .curl-visual::before { content: '←'; font-size: 1.6rem; }
    .curl-zone:active .curl-visual { transform: scale(0.9); }

    .stat-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .stat-box { padding: 12px !important; box-shadow: 4px 4px 0 var(--ink-light); }
    .stat-box:active { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink-light); }
    .stat-box .label { font-size: 0.7rem !important; margin-bottom: 5px !important; }
    .stat-box .value { font-size: 1.1rem !important; }
    .credit-item { padding: 10px 0 !important; gap: 10px; }
    .credit-label { font-size: 0.8rem !important; }
    .credit-artist, .credit-link { font-size: 1rem !important; padding: 6px 10px; background: var(--cream-dark); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink-light); }
    .credit-link:active { transform: scale(0.98); box-shadow: 1px 1px 0 var(--ink-light); }
    .cover-back .sheet-content { padding: 24px 20px !important; }
    .cover-back .sheet-content p { font-size: 1.6rem !important; margin-bottom: 10px !important; }
    .cover-back .sheet-content p:nth-child(2) { font-size: 2.5rem !important; }
    .cover-back .sheet-content p:nth-child(3) { font-size: 1.4rem !important; }
    .stream-section { padding: 30px 12px; }
    .stream-frame { border-radius: 14px; border-width: 4px; box-shadow: 8px 8px 0 var(--pink); }
    .stream-header-banner { padding: 16px; flex-direction: column; gap: 12px; border-bottom-width: 3px; }
    .stream-header-title { font-size: 1.8rem; text-align: center; text-shadow: 2px 2px 0 var(--pink); }
    .vod-btn { padding: 12px 20px; font-size: 1rem; width: 100%; text-align: center; justify-content: center; box-shadow: 4px 4px 0 var(--cream-dark); min-height: 44px; }
    .vod-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--cream-dark); }
    .stream-embed { aspect-ratio: 16 / 9; border-radius: 0; }
    .stream-countdown-bar { padding: 14px 16px; flex-direction: column; gap: 10px; border-bottom-width: 3px; }
    .countdown-label { font-size: 1rem; }
    .countdown-timer { font-size: 1.2rem; gap: 8px; }
    .countdown-timer span { padding: 6px 10px; min-width: 40px; font-size: 1.1rem; box-shadow: 3px 3px 0 var(--cream); }
    .stream-footer-bar { flex-direction: column; gap: 12px; padding: 16px; align-items: stretch; }
    .twitch-badge { font-size: 1rem; justify-content: center; padding: 10px; background: var(--cream); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink-light); }
    .stream-schedule-badge { font-size: 0.85rem; text-align: center; padding: 10px; background: var(--cream); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink-light); }
    .schedule-highlight { font-size: 0.85rem; padding: 2px 8px; }
    .live-pill { font-size: 1.1rem !important; padding: 6px 20px 6px 36px !important; }
    .live-pill::before { left: 12px; width: 12px; height: 12px; }
    .merch-section { padding: 40px 12px 50px; }
    .merch-header { margin-bottom: 30px; }
    .merch-title { font-size: 2.2rem; text-shadow: 3px 3px 0 var(--pink-light); }
    .merch-subtitle { font-size: 0.85rem; }
    .merch-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
    .merch-card { padding: 20px; box-shadow: 6px 6px 0 var(--ink-light); }
    .merch-card:active { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
    .merch-image-placeholder { height: 140px; font-size: 3rem; border-radius: 6px; }
    .merch-info h3 { font-size: 1.4rem; }
    .merch-info p { font-size: 0.85rem; }
    .merch-status { font-size: 0.85rem; padding: 5px 14px; }
    .merch-notify { padding: 24px; box-shadow: 6px 6px 0 var(--pink-dark); }
    .merch-notify p { font-size: 0.95rem; }
    .merch-btn { padding: 12px 24px; font-size: 1.1rem; width: 100%; min-height: 44px; box-shadow: 4px 4px 0 var(--cream); }
    .merch-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--cream); }

    .art-board-section { padding: 50px 12px; }
    .art-board-header { margin-bottom: 30px; }
    .art-board-title { font-size: 2.2rem; text-shadow: 3px 3px 0 var(--pink-light); }
    .art-board-subtitle { font-size: 0.85rem; }
    .corkboard-wrapper { padding-bottom: 20px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
    .corkboard { width: 100% !important; min-width: 100% !important; height: auto !important; min-height: 600px; border: 6px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 var(--ink-light), inset 0 0 40px rgba(62, 39, 35, 0.1); }
    .polaroid { position: relative !important; top: auto !important; left: auto !important; transform: rotate(0deg) !important; margin: 20px auto; width: 88%; max-width: 300px; padding: 10px 10px 36px; box-shadow: 4px 4px 0 rgba(62, 39, 35, 0.3); }
    .polaroid:active { transform: scale(0.98) !important; box-shadow: 2px 2px 0 rgba(62, 39, 35, 0.3); }
    .polaroid-img { height: 200px; }
    .polaroid-caption { font-size: 0.85rem; }
    .placeholder-text { font-size: 1.4rem; }
    .sticky-note { position: relative !important; top: auto !important; left: auto !important; transform: rotate(0deg) !important; margin: 20px auto; width: 88%; max-width: 300px; padding: 20px; }
    .social-circle-grid { gap: 16px 12px !important; }
    .social-circle { width: 56px; height: 56px; box-shadow: 4px 4px 0 var(--ink); }
    .social-circle:active { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
    .social-icon { width: 28px; height: 28px; }
    .social-circle-label { font-size: 0.85rem; }
    .social-item { gap: 8px; }
    .social-item:active { transform: scale(0.95); }

    .custom-modal { padding: 24px 20px; max-width: 90%; border-radius: 20px; }
    .modal-header { font-size: 2rem; margin-bottom: 12px; }
    .modal-header::after { width: 50px; height: 3px; }
    .modal-body { font-size: 0.95rem; margin-bottom: 20px; }
    .modal-close-btn { font-size: 1.2rem; padding: 10px 24px; }

    .schedule-stage { transform: scale(0.55); }
    .p5-global-loader { bottom: 20px; right: 20px; width: 140px; height: 140px; }
    .p5-global-loader .p5-book { width: 46px; height: 60px; }
    .p5-global-loader .loader-svg text { font-size: 13px; letter-spacing: 4px; }
    .lightbox-content img { max-width: 94vw; max-height: 70vh; border-width: 3px; }
    .lightbox-caption { font-size: 1.1rem; }
}
@media (max-width: 560px) {
    .screen { inset: 10px; }
}

@media (max-width: 480px) {
    .main { padding-top: 90px; }
    .top-bar { height: 52px; padding: 0 10px; gap: 5px; }
    .top-bar-btn { padding: 4px 10px; font-size: 0.8rem; min-height: 32px; }
    .rotating-circle-container { top: -30px; }
    .rotating-circle { width: 90px; height: 90px; }
    .logo-inner { width: 78px; height: 78px; }
    .logo-placeholder { width: 62px; height: 62px; }
    .logo-png { width: 90px; height: 90px; }

    .carousel-zone { padding: 16px 0; }
    .book-card { width: 160px; height: 240px; }
    .book-num { font-size: 2rem; }
    .book-label h2 { font-size: 1.2rem; }
    .book-spread { width: 96vw; height: 90vh; max-width: 360px; max-height: 580px; }
    .sheet-content { padding: 16px 14px !important; }
    .sheet-content h2 { font-size: 1.4rem !important; }
    .book-title { font-size: 2rem !important; }
    .book-num { font-size: 2.5rem !important; }
    .merch-section { padding: 30px 10px 40px; }
    .merch-title { font-size: 2rem; }
    .art-board-section { padding: 40px 10px; }
    .art-board-title { font-size: 2rem; }
    .stream-header-title { font-size: 1.6rem; }
    .stream-schedule-badge { font-size: 0.8rem; }
    .schedule-highlight { font-size: 0.8rem; padding: 2px 6px; }
    .curl-zone { width: 60px !important; }
    .curl-visual { width: 40px !important; height: 40px !important; }
    .curl-zone-next .curl-visual::before, .curl-zone-prev .curl-visual::before { font-size: 1.4rem; }
    .p5-circle-clock { bottom: 84px; right: 20px; width: 84px; height: 84px; }
    .p5-circle-clock .date-display { font-size: 0.65rem; }
    .p5-circle-clock .time-display { font-size: 1.15rem; }
    .schedule-stage { transform: scale(0.42); }
}

@media (max-height: 600px) and (orientation: landscape) {
    .book-spread { height: 96vh; }
    .sheet-content { padding: 16px 20px !important; }
    .top-bar { height: 50px; }
    .main { padding-top: 80px; }
    .p5-circle-clock { top: 70px; bottom: auto; left: 40px; right: auto; width: 90px; height: 90px; }
    .p5-circle-clock .date-display { font-size: 0.7rem; margin-bottom: 4px; }
    .p5-circle-clock .time-display { font-size: 1.25rem; }
}
@media (hover: none) and (pointer: coarse) {
    .book-card, .social-circle, .merch-btn, .vod-btn, .top-bar-btn, .stat-box, .credit-link,
    .sheet-content input, .sheet-content textarea, .sheet-content button { min-height: 44px; }
    .book-card:hover { transform: scale(1) rotate(0deg) !important; }
    .book-card.active { transform: scale(1.08) rotate(0deg) translateY(-10px) !important; }
    .stat-box:hover, .merch-card:hover { transform: none; box-shadow: inherit; }
    .curl-zone { width: 90px !important; }
    .curl-zone.available .curl-visual { width: 56px !important; height: 56px !important; }
    .curl-zone:active .curl-visual { transform: scale(0.92); }
    .carousel-zone { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    .deco-sparkle, .deco-sparkle .star-wrap, .deco-sparkle .glint { animation: none !important; }
}
@media (max-width: 768px) {
  .carousel-zone { justify-content: flex-start; }
  .book-card,
  .book-card:hover,
  .book-card.active { margin: 0 !important; }   
}

@media (max-width: 768px) {
  .book-spread {
    width:  min(90vw, 340px);
    height: min(80vh, 520px);
    max-width: none; max-height: none;
  }
}
@media (max-width: 480px) {
  .book-spread {
    width:  min(88vw, 300px);
    height: min(76vh, 460px);
  }
}

@media (max-width: 768px) {
  .p5-circle-clock { display: none !important; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .p5-circle-clock { display: none !important; }
  .book-spread {
    width:  min(92vw, 480px);
    height: min(90vh, 360px);
    max-width: none; max-height: none;
  }
  .sheet-content { padding: 16px 14px !important; }
}