/* ============================================
   BBATTL.com — Crystalline Arena Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --electric-violet: #7C3AED;
    --dopamine-coral: #FF6B6B;
    --crystal-white: #FAFBFF;
    --midnight-indigo: #1E1B4B;
    --charcoal-plum: #2D2640;
    --muted-lavender: #8B82A8;
    --lemon-fizz: #FDE047;
    --amethyst: #B24DAC;

    --font-headline: 'Josefin Sans', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
    --font-accent: 'Space Mono', monospace;

    --spring-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-subtle: cubic-bezier(0.22, 1.2, 0.36, 1);
    --spring-settle: cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal-plum);
    background-color: var(--crystal-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Background Lattice Pattern --- */
.lattice-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(60deg, var(--electric-violet) 1px, transparent 1px),
        linear-gradient(-60deg, var(--electric-violet) 1px, transparent 1px),
        linear-gradient(0deg, var(--electric-violet) 1px, transparent 1px);
    background-size: 80px 140px, 80px 140px, 80px 140px;
    background-position: 0 0, 40px 0, 0 0;
}

/* --- Background Floating Crystals --- */
.bg-crystals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-crystal {
    position: absolute;
    will-change: transform;
    mix-blend-mode: multiply;
}

.bg-crystal-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.04));
    animation: crystalRotate 72s linear infinite;
}

.bg-crystal-2 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 8%;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: linear-gradient(225deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.05));
    animation: crystalRotate 85s linear infinite reverse;
}

.bg-crystal-3 {
    width: 100px;
    height: 100px;
    top: 55%;
    left: 12%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(255, 107, 107, 0.1));
    animation: crystalRotate 60s linear infinite;
}

.bg-crystal-4 {
    width: 280px;
    height: 280px;
    top: 70%;
    right: 3%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(178, 77, 172, 0.06));
    animation: crystalRotate 90s linear infinite;
}

.bg-crystal-5 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 45%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: rgba(253, 224, 71, 0.15);
    animation: crystalRotate 45s linear infinite reverse;
}

.bg-crystal-6 {
    width: 120px;
    height: 120px;
    top: 85%;
    left: 30%;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: linear-gradient(315deg, rgba(255, 107, 107, 0.1), rgba(124, 58, 237, 0.08));
    animation: crystalRotate 78s linear infinite;
}

.bg-crystal-7 {
    width: 90px;
    height: 90px;
    top: 45%;
    right: 25%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: rgba(124, 58, 237, 0.08);
    animation: crystalRotate 66s linear infinite reverse;
}

.bg-crystal-8 {
    width: 180px;
    height: 180px;
    top: 5%;
    right: 35%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(45deg, rgba(178, 77, 172, 0.06), rgba(124, 58, 237, 0.04));
    animation: crystalRotate 95s linear infinite;
}

@keyframes crystalRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

/* Crystal Container */
.crystal-container {
    position: relative;
    width: 360px;
    height: 360px;
    transition: opacity 0.8s ease;
}

.crystal-shard {
    position: absolute;
    transition: transform 1.2s var(--spring-bouncy), opacity 0.8s ease;
    will-change: transform;
}

.crystal-shard.fractured {
    opacity: 0;
}

/* Crystal shards forming a large hexagonal crystal */
.shard-1 {
    width: 180px;
    height: 180px;
    top: 0;
    left: 90px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0.15));
}

.shard-2 {
    width: 140px;
    height: 140px;
    top: 30px;
    left: 30px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(225deg, rgba(255, 107, 107, 0.3), rgba(255, 107, 107, 0.1));
}

.shard-3 {
    width: 140px;
    height: 140px;
    top: 30px;
    right: 30px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(45deg, rgba(124, 58, 237, 0.25), rgba(178, 77, 172, 0.15));
}

.shard-4 {
    width: 120px;
    height: 120px;
    bottom: 40px;
    left: 50px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.25), rgba(124, 58, 237, 0.15));
}

.shard-5 {
    width: 120px;
    height: 120px;
    bottom: 40px;
    right: 50px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(0deg, rgba(124, 58, 237, 0.2), rgba(255, 107, 107, 0.2));
}

.shard-6 {
    width: 100px;
    height: 100px;
    top: 130px;
    left: 130px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(90deg, rgba(178, 77, 172, 0.3), rgba(124, 58, 237, 0.2));
    mix-blend-mode: multiply;
}

.shard-7 {
    width: 80px;
    height: 80px;
    top: 90px;
    left: 140px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: rgba(253, 224, 71, 0.2);
}

.shard-8 {
    width: 160px;
    height: 160px;
    top: 100px;
    left: 100px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(270deg, rgba(124, 58, 237, 0.1), rgba(255, 107, 107, 0.1));
    mix-blend-mode: multiply;
}

/* Hero Wordmark */
.hero-wordmark {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--spring-subtle), transform 1s var(--spring-subtle);
    position: absolute;
    z-index: 3;
}

.hero-wordmark.visible {
    opacity: 1;
    transform: translateY(0);
}

.wordmark {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 96px;
    letter-spacing: 0.04em;
    color: var(--electric-violet);
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 4px 40px rgba(124, 58, 237, 0.2);
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    color: var(--muted-lavender);
    letter-spacing: 0.02em;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 1s ease 1.5s;
}

.scroll-hint.visible {
    opacity: 1;
}

.scroll-hint-diamond {
    width: 12px;
    height: 12px;
    background: var(--electric-violet);
    transform: rotate(45deg);
    animation: scrollBounce 2s var(--spring-bouncy) infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

.scroll-hint-text {
    font-family: var(--font-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-lavender);
}

/* --- Arenas Section --- */
.arenas-section {
    position: relative;
    z-index: 2;
    padding: 120px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
}

.arena {
    position: relative;
    max-width: 680px;
    width: 100%;
    padding: 60px 48px;
    background: rgba(250, 251, 255, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--spring-subtle), transform 0.8s var(--spring-subtle), box-shadow 0.5s var(--spring-subtle);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.arena.revealed {
    opacity: 1;
    transform: translateY(0);
}

.arena:hover {
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

/* Zigzag positioning */
.arena-1 {
    transform: translateY(30px) rotate(-1.5deg);
    align-self: flex-start;
    margin-left: 10%;
}
.arena-1.revealed {
    transform: translateY(0) rotate(-1.5deg);
}

.arena-2 {
    transform: translateY(30px) rotate(1.2deg);
    align-self: flex-end;
    margin-right: 8%;
}
.arena-2.revealed {
    transform: translateY(0) rotate(1.2deg);
}

.arena-3 {
    transform: translateY(30px) rotate(-2deg);
    align-self: flex-start;
    margin-left: 14%;
}
.arena-3.revealed {
    transform: translateY(0) rotate(-2deg);
}

/* Arena Content */
.arena-content {
    position: relative;
    z-index: 2;
}

.arena h2 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.04em;
    color: var(--electric-violet);
    margin-bottom: 20px;
    line-height: 1.2;
}

.arena p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal-plum);
}

/* Arena Facet Decorations */
.arena-facet {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.12;
}

.arena-facet-left {
    top: -20px;
    left: -20px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: var(--electric-violet);
}

.arena-facet-right {
    bottom: -20px;
    right: -20px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: var(--dopamine-coral);
}

/* --- Collision Section --- */
.collision-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    scroll-snap-align: center;
    overflow: hidden;
}

.collision-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collision-crystal {
    position: absolute;
    width: 300px;
    height: 300px;
    transition: transform 1.5s var(--spring-settle);
    will-change: transform;
}

.collision-violet {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(124, 58, 237, 0.15));
    left: 0;
    transform: translateX(-60px);
}

.collision-coral {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(225deg, rgba(255, 107, 107, 0.4), rgba(255, 107, 107, 0.15));
    right: 0;
    transform: translateX(60px);
    mix-blend-mode: multiply;
}

.collision-violet.collided {
    transform: translateX(80px);
}

.collision-coral.collided {
    transform: translateX(-80px);
}

.collision-message {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 500px;
    padding: 40px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s var(--spring-subtle) 0.5s, transform 1s var(--spring-bouncy) 0.5s;
}

.collision-message.revealed {
    opacity: 1;
    transform: scale(1);
}

.collision-message h2 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 42px;
    letter-spacing: 0.04em;
    color: var(--amethyst);
    margin-bottom: 20px;
    line-height: 1.2;
}

.collision-message p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal-plum);
}

/* --- Playground Section --- */
.playground-section {
    position: relative;
    z-index: 2;
    padding: 120px 24px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
}

.playground-intro {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--spring-subtle), transform 0.8s var(--spring-subtle);
}

.playground-intro.revealed {
    opacity: 1;
    transform: translateY(0);
}

.playground-intro h2 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 0.04em;
    color: var(--electric-violet);
    margin-bottom: 12px;
}

.playground-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    color: var(--muted-lavender);
}

.playground-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 600px;
    width: 100%;
}

.playground-crystal {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.5s var(--spring-bouncy), box-shadow 0.5s var(--spring-subtle);
}

.playground-crystal:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.2);
}

.playground-crystal:active {
    transform: scale(0.95);
}

.play-crystal-1 {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
    border: none;
}

.play-crystal-2 {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(225deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.05));
}

.play-crystal-3 {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(315deg, rgba(178, 77, 172, 0.15), rgba(124, 58, 237, 0.05));
}

.play-crystal-4 {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(45deg, rgba(253, 224, 71, 0.2), rgba(124, 58, 237, 0.08));
}

.play-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--electric-violet);
    transition: color 0.3s ease;
}

.playground-crystal:hover .play-inner {
    color: var(--amethyst);
}

.play-icon {
    width: 56px;
    height: 56px;
}

.play-label {
    font-family: var(--font-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--charcoal-plum);
}

/* Playground crystal click rotation */
.playground-crystal.clicked {
    animation: crystalClick 0.6s var(--spring-bouncy);
}

@keyframes crystalClick {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.9) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* --- Invitation / Footer Section --- */
.invitation-section {
    position: relative;
    z-index: 2;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--midnight-indigo);
    padding: 120px 24px;
    scroll-snap-align: start;
    overflow: hidden;
}

.invitation-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--spring-subtle), transform 0.8s var(--spring-subtle);
}

.invitation-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.invitation-content h2 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 56px;
    letter-spacing: 0.04em;
    color: var(--crystal-white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.invitation-content p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.7;
    color: var(--muted-lavender);
    margin-bottom: 48px;
}

.invitation-wordmark {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.12em;
    color: var(--electric-violet);
    opacity: 0.4;
}

/* Invitation decorative crystals */
.invitation-crystal-left,
.invitation-crystal-right {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.08;
}

.invitation-crystal-left {
    top: -60px;
    left: -100px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--electric-violet);
    animation: crystalRotate 80s linear infinite;
}

.invitation-crystal-right {
    bottom: -60px;
    right: -100px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--dopamine-coral);
    animation: crystalRotate 70s linear infinite reverse;
}

/* --- Crystal Compass Navigation --- */
.crystal-compass {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
}

.compass-trigger {
    width: 52px;
    height: 52px;
    background: rgba(250, 251, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.5s var(--spring-bouncy), box-shadow 0.4s ease, background 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.compass-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
}

.compass-icon {
    width: 24px;
    height: 24px;
    color: var(--electric-violet);
    transition: transform 0.5s var(--spring-bouncy);
}

.crystal-compass.open .compass-icon {
    transform: rotate(45deg);
}

.compass-menu {
    position: absolute;
    bottom: 64px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.4s var(--spring-bouncy);
}

.crystal-compass.open .compass-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.compass-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(250, 251, 255, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    transition: transform 0.3s var(--spring-bouncy), box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
}

.compass-link:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
    background: rgba(124, 58, 237, 0.06);
}

.compass-diamond {
    width: 8px;
    height: 8px;
    background: var(--electric-violet);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.compass-label {
    font-family: var(--font-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--charcoal-plum);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .wordmark {
        font-size: 56px;
    }

    .hero-tagline {
        font-size: 16px;
        padding: 0 24px;
    }

    .crystal-container {
        width: 240px;
        height: 240px;
    }

    .shard-1 { width: 120px; height: 120px; top: 0; left: 60px; }
    .shard-2 { width: 90px; height: 90px; top: 20px; left: 20px; }
    .shard-3 { width: 90px; height: 90px; top: 20px; right: 20px; }
    .shard-4 { width: 80px; height: 80px; bottom: 25px; left: 30px; }
    .shard-5 { width: 80px; height: 80px; bottom: 25px; right: 30px; }
    .shard-6 { width: 70px; height: 70px; top: 85px; left: 85px; }
    .shard-7 { width: 50px; height: 50px; top: 60px; left: 95px; }
    .shard-8 { width: 100px; height: 100px; top: 70px; left: 70px; }

    .arenas-section {
        padding: 80px 24px;
        gap: 80px;
    }

    .arena {
        padding: 40px 28px;
        border-radius: 18px;
    }

    .arena-1, .arena-2, .arena-3 {
        margin-left: 0;
        margin-right: 0;
        align-self: center;
    }

    .arena-1 { transform: translateY(30px) rotate(-0.5deg); }
    .arena-1.revealed { transform: translateY(0) rotate(-0.5deg); }
    .arena-2 { transform: translateY(30px) rotate(0.5deg); }
    .arena-2.revealed { transform: translateY(0) rotate(0.5deg); }
    .arena-3 { transform: translateY(30px) rotate(-0.5deg); }
    .arena-3.revealed { transform: translateY(0) rotate(-0.5deg); }

    .arena h2 {
        font-size: 28px;
    }

    .collision-crystal {
        width: 180px;
        height: 180px;
    }

    .collision-violet {
        transform: translateX(-30px);
    }

    .collision-coral {
        transform: translateX(30px);
    }

    .collision-violet.collided {
        transform: translateX(40px);
    }

    .collision-coral.collided {
        transform: translateX(-40px);
    }

    .collision-message h2 {
        font-size: 30px;
    }

    .playground-intro h2 {
        font-size: 36px;
    }

    .playground-grid {
        gap: 24px;
        max-width: 320px;
    }

    .invitation-content h2 {
        font-size: 40px;
    }

    .invitation-content p {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .wordmark {
        font-size: 44px;
    }

    .crystal-container {
        width: 200px;
        height: 200px;
    }

    .shard-1 { width: 100px; height: 100px; left: 50px; }
    .shard-2 { width: 75px; height: 75px; top: 15px; left: 10px; }
    .shard-3 { width: 75px; height: 75px; top: 15px; right: 10px; }
    .shard-4 { width: 65px; height: 65px; bottom: 20px; left: 20px; }
    .shard-5 { width: 65px; height: 65px; bottom: 20px; right: 20px; }
    .shard-6 { width: 55px; height: 55px; top: 72px; left: 72px; }
    .shard-7 { width: 40px; height: 40px; top: 50px; left: 80px; }
    .shard-8 { width: 80px; height: 80px; top: 60px; left: 60px; }

    .arena h2 {
        font-size: 24px;
    }

    .arena p {
        font-size: 16px;
    }

    .collision-message h2 {
        font-size: 26px;
    }

    .collision-message p {
        font-size: 16px;
    }

    .playground-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 280px;
    }

    .play-icon {
        width: 40px;
        height: 40px;
    }

    .invitation-content h2 {
        font-size: 32px;
    }
}
