:root {
    /* Default (Local) Theme Variables */
    --bg-color: #fcf8f2;
    --text-color: #5a4e46;
    --accent-color: #ff9900;
    --secondary-color: #8da35c;
    --font-main: 'Zen Maru Gothic', sans-serif;
    --font-heading: 'Zen Maru Gothic', sans-serif;
    --border-radius: 12px;
    --header-bg: rgba(255, 255, 255, 0.9);
    --hero-overlay: rgba(255, 255, 255, 0.6);
    --section-padding: 60px 20px;
}

/* --- Theme Overrides --- */

/* 01. Local (Default fallback) */
[data-theme="local"] {
    --bg-color: #fcf8f2;
    /* Beige */
    --text-color: #5a4e46;
    /* Brown */
    --accent-color: #f08300;
    /* Orange */
    --secondary-color: #8da35c;
    /* Soft Green */
    --font-main: 'Zen Maru Gothic', sans-serif;
    --font-heading: 'Zen Maru Gothic', sans-serif;
    --border-radius: 16px;
    --btn-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

/* 02. Kids */
[data-theme="kids"] {
    --bg-color: #fffde7;
    /* Light Yellow */
    --text-color: #0091ea;
    /* Cyan Blue */
    --accent-color: #ff00bf;
    /* Magenta */
    --secondary-color: #ffd600;
    /* Yellow */
    --font-main: 'Mochiy Pop P One', sans-serif;
    --font-heading: 'Mochiy Pop P One', sans-serif;
    --border-radius: 30px;
    --btn-shadow: 4px 4px 0px #000;
}

/* 03. Rock */
[data-theme="rock"] {
    --bg-color: #111;
    /* Black */
    --text-color: #eee;
    --accent-color: #ff00ff;
    /* Neon Pink */
    --secondary-color: #39ff14;
    /* Neon Green */
    --font-main: 'RocknRoll One', sans-serif;
    --font-heading: 'Rampart One', cursive;
    --border-radius: 2px;
    --header-bg: rgba(0, 0, 0, 0.9);
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --btn-shadow: 4px 4px 0px #ff00ff;
}

/* 04. Alert */
[data-theme="alert"] {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #ff0000;
    /* Red */
    --secondary-color: #ffff00;
    /* Yellow Warning */
    --font-main: 'Shippori Mincho B1', serif;
    --font-heading: 'Shippori Mincho B1', serif;
    --border-radius: 0;
    --header-bg: #000;
    --hero-overlay: rgba(0, 0, 0, 0.8);
    --btn-shadow: 0 0 10px red;
}

/* 05. Tech */
[data-theme="tech"] {
    --bg-color: #f5f5f7;
    /* Off White */
    --text-color: #1d1d1f;
    --accent-color: #000;
    --secondary-color: #888;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    /* Thin/Light handled in rules */
    --border-radius: 4px;
    --header-bg: rgba(245, 245, 247, 0.8);
    --btn-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 06. Academy */
[data-theme="academy"] {
    --bg-color: #fff;
    --text-color: #333;
    --accent-color: #002147;
    /* Navy */
    --secondary-color: #666;
    --font-main: 'Noto Serif JP', serif;
    --font-heading: 'Noto Serif JP', serif;
    --border-radius: 0;
    --header-bg: rgba(255, 255, 255, 0.95);
    --btn-shadow: none;
}

/* 07. Emotional */
[data-theme="emotional"] {
    --bg-color: #fff;
    --text-color: #4a4a4a;
    --accent-color: #b79b5b;
    /* Gold/Sepia tone */
    --secondary-color: #a8a8a8;
    --font-main: 'Shippori Mincho B1', serif;
    --font-heading: 'Shippori Mincho B1', serif;
    --border-radius: 8px;
    --header-bg: rgba(255, 255, 255, 0.8);
    --hero-overlay: rgba(255, 245, 230, 0.3);
    /* Warm overlay */
    --btn-shadow: 0 4px 10px rgba(183, 155, 91, 0.3);
}

/* 08. Illustration (Cute/Pastel) */
[data-theme="illustration"] {
    --bg-color: #e0f7fa;
    /* Light Blue Sky */
    --text-color: #5d4037;
    /* Brown */
    --accent-color: #ffca28;
    /* Sun Yellow */
    --secondary-color: #81c784;
    /* Grass Green */
    --font-main: 'Mochiy Pop P One', sans-serif;
    --font-heading: 'Mochiy Pop P One', sans-serif;
    --border-radius: 20px;
    --header-bg: rgba(255, 255, 255, 0.9);
    --hero-overlay: rgba(255, 255, 255, 0);
    /* Clear for illustration */
    --btn-shadow: 4px 4px 0px #ff7043;
}

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

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    transition: all 0.5s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-bg);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="alert"] header {
    border-bottom: 2px solid var(--accent-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    box-shadow: var(--btn-shadow);
    transition: transform 0.2s;
}

[data-theme="local"] .btn-cta {
    color: #fff;
}

[data-theme="kids"] .btn-cta {
    color: #fff;
}

[data-theme="rock"] .btn-cta {
    color: #000;
}

[data-theme="alert"] .btn-cta {
    color: #fff;
    animation: blink 1s infinite;
}

[data-theme="tech"] .btn-cta {
    color: #fff;
    background: linear-gradient(135deg, #333, #000);
}

[data-theme="academy"] .btn-cta {
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-cta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* --- Hero --- */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Hero Backgrounds per Theme */

/* Common Overlay for Readability */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

[data-theme="local"] #hero {
    background-image: url('images/hero_local.png');
}

[data-theme="kids"] #hero {
    background-image: url('images/hero_kids.png');
}

[data-theme="rock"] #hero {
    background-image: url('images/hero_rock.png');
}

[data-theme="alert"] #hero {
    background-image: url('images/hero_alert.png');
    background-repeat: no-repeat;
    background-size: cover;
}

/* Fallback for Tech (Quota exceeded) - Simple Geometric Gradient */
[data-theme="tech"] #hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 20%);
}

/* Fallback for Academy (Quota exceeded) - Paper Texture-ish */
[data-theme="academy"] #hero {
    background-color: #f7f7f7;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-bottom: 3px double var(--accent-color);
}

[data-theme="emotional"] #hero {
    background-image: url('images/hero_emotional.png');
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        background-size: 100%;
        background-position: center;
    }

    100% {
        background-size: 110%;
        background-position: center top;
    }
}

/* Fallback for Illustration: CSS Rainbow */
[data-theme="illustration"] #hero {
    background-image: url('images/hero_illustration.png');
    background-color: #87ceeb;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.hero-event-name {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--accent-color);
    line-height: 1.1;
    letter-spacing: 2px;
}

[data-theme="rock"] .hero-event-name {
    text-shadow: 4px 4px 0px #fff;
    transform: skew(-5deg) rotate(-2deg);
}

[data-theme="alert"] .hero-event-name {
    background: red;
    color: white;
    padding: 0 10px;
    display: inline-block;
}

[data-theme="tech"] .hero-event-name {
    font-weight: 100;
    letter-spacing: 10px;
}

[data-theme="academy"] .hero-event-name {
    display: inline-block;
}

[data-theme="emotional"] .hero-event-name {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border-bottom: 1px solid #fff;
    display: inline-block;
    padding-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="illustration"] .hero-event-name {
    color: #fff;
    text-shadow:
        3px 3px 0 #ff7043,
        -1px -1px 0 #ff7043,
        1px -1px 0 #ff7043,
        -1px 1px 0 #ff7043,
        1px 1px 0 #ff7043;
    transform: rotate(-3deg);
    display: inline-block;
}

[data-theme="emotional"] .hero-title,
[data-theme="emotional"] .hero-subtitle {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="illustration"] .hero-title {
    color: #fff;
    text-shadow:
        2px 2px 0 #5d4037,
        -1px -1px 0 #5d4037,
        1px -1px 0 #5d4037,
        -1px 1px 0 #5d4037,
        1px 1px 0 #5d4037;
}

[data-theme="illustration"] .hero-subtitle {
    color: #5d4037;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    line-height: 1.2;
}

[data-theme="rock"] .hero-title {
    text-shadow: 0 0 10px var(--accent-color);
    transform: skew(-5deg);
}

[data-theme="alert"] .hero-title {
    text-decoration: underline;
    text-decoration-color: red;
}

[data-theme="tech"] .hero-title {
    font-weight: 100;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.hero-info {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
}

/* --- Sections Common --- */
section {
    padding: var(--section-padding);
    overflow: hidden;
}

h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
}

[data-theme="academy"] h3 {
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

/* --- Message Separator --- */
#message-separator {
    padding: 120px 20px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    /* Usually creates good contrast */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.separator-content {
    position: relative;
    z-index: 2;
}

.separator-text {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
    font-weight: bold;
}

.separator-main {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Theme specifics for separator */
[data-theme="local"] #message-separator .separator-content {
    animation: breathing 4s ease-in-out infinite;
}

[data-theme="kids"] #message-separator .separator-content {
    animation: bounce 2s infinite;
}

[data-theme="rock"] #message-separator {
    background: #000;
    color: var(--accent-color);
    border-top: 5px solid var(--accent-color);
    border-bottom: 5px solid var(--accent-color);
}

[data-theme="rock"] #message-separator .separator-main {
    display: inline-block;
    animation: beat 0.8s infinite;
}

[data-theme="alert"] #message-separator {
    background: repeating-linear-gradient(45deg,
            #000,
            #000 10px,
            #333 10px,
            #333 20px);
    color: red;
    text-shadow: 0 0 5px red;
}

[data-theme="alert"] #message-separator .separator-main {
    animation: urgentTextPulse 0.5s infinite;
    display: inline-block;
}

[data-theme="tech"] #message-separator .separator-content {
    animation: float 3s ease-in-out infinite;
}

[data-theme="academy"] #message-separator .separator-main {
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    animation: underlineGrow 3s infinite;
}

[data-theme="emotional"] #message-separator {
    background: #fff;
    color: #333;
    padding: 150px 20px;
}

[data-theme="emotional"] .separator-text {
    font-family: 'Shippori Mincho', serif;
}

[data-theme="emotional"] .separator-main {
    font-family: 'Shippori Mincho', serif;
    font-weight: normal;
    animation: breathing 6s ease-in-out infinite;
    /* Very slow breathing */
}

[data-theme="illustration"] #message-separator {
    background: #fff9c4;
    /* Light Yellow */
    color: #5d4037;
    background-image: radial-gradient(circle, #ffecb3 20%, transparent 20%);
    background-size: 30px 30px;
}

[data-theme="illustration"] #message-separator .separator-content {
    animation: float 3s ease-in-out infinite;
}

/* --- About --- */
.statement {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.statement p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.statement-lead {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 30px !important;
}

[data-theme="rock"] .statement-lead {
    font-family: var(--font-heading);
    text-shadow: 0 0 5px var(--accent-color);
}

[data-theme="alert"] .statement-lead {
    background: #000;
    color: #fff;
    display: inline-block;
    padding: 5px 15px;
    transform: rotate(-1deg);
}

[data-theme="academy"] .statement-lead {
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.features li {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
}

[data-theme="rock"] .features li {
    background: #222;
    border-color: var(--secondary-color);
}

[data-theme="alert"] .features li {
    border: 2px solid red;
    background: #1a0000;
}

.marquee-item a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.marquee-item a:hover {
    opacity: 0.7;
}

/* --- Area Guide --- */
.area-block {
    margin-bottom: 25px;
}

.shop-name {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 5px !important;
}

.shop-name a {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.shop-name a:hover {
    opacity: 0.7;
}

/* External Link Icon */
.marquee-item a[target="_blank"]::after,
.shop-name a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f08300' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

/* Adjust icon color for shop names if needed (they use the same accent color, so it's fine) */
/* Marquee links use accent color #f08300 (orange), Shop links use magenta. 
   We need dynamic color if possible, or simple mask. 
   Using mask-image approach is better for color matching the text. 
*/

.marquee-item a[target="_blank"]::after,
.shop-name a[target="_blank"]::after {
    background-image: none;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}


.workshop-meta {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.workshop-img-container {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workshop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-item:hover .workshop-img {
    transform: scale(1.05);
}

.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.content-item {
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

[data-theme="rock"] .content-item {
    background: #222;
    border: 1px solid #444;
}

[data-theme="tech"] .content-item {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: none;
}

.content-item h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* --- Sotoniwa Multi-photo Gallery --- */
.soto-item {
    /* Make Sotoniwa items full width in the grid */
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

.soto-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.soto-header h5 {
    margin-bottom: 0;
    font-size: 1.4rem;
}

.soto-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.05);
}

.soto-gallery::-webkit-scrollbar {
    height: 8px;
}

.soto-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.soto-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.soto-img {
    width: 240px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.soto-item:hover .soto-img:not(.placeholder) {
    transform: scale(1.02);
}

.soto-img.placeholder {
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

[data-theme="rock"] .soto-img.placeholder {
    background-color: #222;
    border-color: #444;
    color: #666;
}

[data-theme="alert"] .soto-img.placeholder {
    background-color: #111;
    border-color: red;
    color: red;
}

.soto-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* --- Tag Styles (Specific Requirement) --- */
.tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.9rem;
    padding: 5px 10px;
}

/* Local: Simple rounded */
[data-theme="local"] .tag {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 20px;
}

/* Kids: Capsule & Colorful */
[data-theme="kids"] .tag {
    background: var(--text-color);
    /* Cyan */
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 2px 2px 0 #000;
}

[data-theme="kids"] .tag:nth-child(even) {
    background: var(--accent-color);
    /* Magenta */
}

/* Rock: Rubber band style */
[data-theme="rock"] .tag {
    background: #333;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--secondary-color);
}

/* Alert: Warning style */
[data-theme="alert"] .tag {
    background: yellow;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid black;
}

/* Tech: Hash only */
[data-theme="tech"] .tag {
    background: transparent;
    color: #666;
    font-family: 'Roboto', sans-serif;
    padding: 0;
}

[data-theme="tech"] .tag::before {
    content: "";
    margin-right: 0px;
}

/* Academy: Classification Code */
[data-theme="academy"] .tag {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #333;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Emotional: Minimal */
[data-theme="emotional"] .tag {
    background: #fff;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
}

[data-theme="emotional"] .statement-lead {
    font-weight: normal;
    color: var(--text-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* Illustration: Pastel Pop */
[data-theme="illustration"] .tag {
    background: #ffecb3;
    color: #5d4037;
    border-radius: 10px;
    box-shadow: 2px 2px 0 #ffca28;
}

[data-theme="illustration"] .btn-cta {
    background: #ff7043;
    color: #fff;
}

/* --- Outline --- */
.outline-list dt {
    float: left;
    clear: left;
    width: 120px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.outline-list dd {
    margin-left: 130px;
    margin-bottom: 10px;
}

[data-theme="tech"] .outline-list dt {
    width: 100%;
    float: none;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

[data-theme="tech"] .outline-list dd {
    margin-left: 0;
    margin-bottom: 20px;
    color: #555;
}

/* --- Sponsors --- */
.sponsors-list {
    text-align: center;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sponsor-placeholder {
    width: 100px;
    height: 60px;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}

/* --- Footer --- */
footer {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 40px 20px;
    text-align: center;
}

.footer-nav a {
    margin: 0 10px;
    color: var(--bg-color);
    opacity: 0.8;
}

/* --- Animations --- */
/* --- Animations & Transitions --- */

/* Utility: Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Entrance */
.hero-content>* {
    opacity: 0;
    animation: heroEntrance 0.8s ease-out forwards;
}

.hero-event-name {
    animation-delay: 0.2s;
}

.hero-title {
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation-delay: 0.6s;
}

.hero-info {
    animation-delay: 0.8s;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Pillars Floating Animation */
.features li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Theme Specific Animations --- */

/* 1. Local: Gentle Breathing */
@keyframes breathing {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

[data-theme="local"] .hero-event-name {
    animation: heroEntrance 0.8s ease-out forwards, breathing 4s ease-in-out infinite 1s;
}

/* 2. Kids: Bouncing */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

[data-theme="kids"] .hero-event-name {
    animation: heroEntrance 0.8s ease-out forwards, bounce 2s infinite 1s;
    display: inline-block;
    /* Required for transform */
}

/* 3. Rock: Heartbeat / Bass Kick */
@keyframes beat {
    0% {
        transform: scale(1) skew(-5deg) rotate(-2deg);
    }

    5% {
        transform: scale(1.1) skew(-5deg) rotate(-2deg);
    }

    10% {
        transform: scale(1) skew(-5deg) rotate(-2deg);
    }

    15% {
        transform: scale(1.1) skew(-5deg) rotate(-2deg);
    }

    50% {
        transform: scale(1) skew(-5deg) rotate(-2deg);
    }

    100% {
        transform: scale(1) skew(-5deg) rotate(-2deg);
    }
}

[data-theme="rock"] .hero-event-name {
    /* Overlay existing skew/rotate with animation */
    animation: heroEntrance 0.8s ease-out forwards, beat 0.8s infinite 1s;
    display: inline-block;
}

/* 4. Alert: Urgent Pulse */
@keyframes urgentPulse {
    0% {
        background-color: red;
        transform: scale(1);
    }

    50% {
        background-color: #ff3333;
        transform: scale(1.05);
    }

    100% {
        background-color: red;
        transform: scale(1);
    }
}

@keyframes urgentTextPulse {
    0% {
        transform: scale(1);
        color: red;
    }

    50% {
        transform: scale(1.1);
        color: #ff3333;
    }

    100% {
        transform: scale(1);
        color: red;
    }
}

@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.8;
    }
}

[data-theme="alert"] .hero-event-name {
    animation: heroEntrance 0.8s ease-out forwards, urgentPulse 0.5s infinite 1s;
}

[data-theme="alert"] #hero {
    animation: flash 4s infinite;
    /* Slow background flash */
}

/* 5. Tech: Scanline / Floating */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

[data-theme="tech"] .hero-event-name {
    animation: heroEntrance 0.8s ease-out forwards, float 3s ease-in-out infinite 1s;
}

/* 6. Academy: Subtle Underline Grow */
@keyframes underlineGrow {

    0%,
    100% {
        border-bottom-width: 1px;
    }

    50% {
        border-bottom-width: 3px;
    }
}

[data-theme="academy"] .hero-event-name {
    animation: heroEntrance 0.8s ease-out forwards, underlineGrow 3s infinite 1s;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features {
        flex-direction: column;
    }

    .outline-list dt {
        float: none;
        width: 100%;
    }

    .outline-list dd {
        margin-left: 0;
    }
}

/* --- Exhibitors Marquee --- */
#exhibitors {
    padding: 20px 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
}

.marquee-container h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-weight: bold;
    color: var(--text-color);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Theme loop speeds */
[data-theme="rock"] .marquee-content {
    animation-duration: 5s;
    /* Fast! */
}

[data-theme="local"] .marquee-content {
    animation-duration: 30s;
    /* Slow & Relaxed */
}

[data-theme="alert"] .marquee-item {
    border-color: red;
    background: #000;
    color: #fff;
}

[data-theme="emotional"] .marquee-content {
    animation-duration: 40s;
    /* Very slow */
}

/* --- Theme Switcher UI --- */
#theme-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#theme-switch-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    background: var(--bg-color);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#theme-switch-btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#theme-switch-btn:active {
    transform: scale(0.95);
}

@keyframes btnPop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3) rotate(20deg);
    }

    60% {
        transform: scale(0.9) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

#theme-switch-btn.pop {
    animation: btnPop 0.5s ease;
}

/* X Share Button */
.switcher-sub-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background: var(--bg-color);
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.share-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.switcher-sub-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Progress Dots */
#theme-progress {
    display: flex;
    gap: 5px;
    padding: 6px 10px;
    background: var(--bg-color);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.25;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.progress-dot.discovered {
    opacity: 1;
    background: var(--accent-color);
}

.progress-dot.current {
    transform: scale(1.4);
    box-shadow: 0 0 6px var(--accent-color);
}

@keyframes dotDiscover {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(2);
    }

    100% {
        transform: scale(1);
    }
}

.progress-dot.just-discovered {
    animation: dotDiscover 0.5s ease;
}

/* Complete Overlay */
#complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#complete-overlay.show,
#complete-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.complete-message {
    text-align: center;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#complete-overlay.show .complete-message,
#complete-overlay.visible .complete-message {
    transform: scale(1);
}

.complete-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
}

.complete-text {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.complete-sub {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Theme-specific switcher styles */
[data-theme="rock"] #theme-switch-btn,
[data-theme="alert"] #theme-switch-btn {
    box-shadow: 0 0 15px var(--accent-color);
}

[data-theme="rock"] #theme-progress,
[data-theme="alert"] #theme-progress {
    box-shadow: 0 0 10px var(--accent-color);
}

[data-theme="tech"] #theme-switch-btn {
    border-width: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="tech"] #theme-progress {
    border-width: 1px;
}

[data-theme="kids"] #theme-switch-btn {
    box-shadow: 4px 4px 0px #000;
}

[data-theme="kids"] #theme-progress {
    box-shadow: 3px 3px 0px #000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #theme-switcher {
        bottom: 20px;
        right: 20px;
    }

    #theme-switch-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .switcher-sub-btn {
        width: 35px;
        height: 35px;
    }

    .progress-dot {
        width: 6px;
        height: 6px;
    }

    #theme-progress {
        padding: 5px 8px;
        gap: 4px;
    }
}

/* --- Scroll Character --- */
.scroll-character {
    position: fixed;
    bottom: 20px;
    right: -120px;
    /* Hidden off-screen, increased distance */
    font-size: 4rem;
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s ease;
    /* Bouncy transition */
    cursor: pointer;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    user-select: none;
}

.scroll-character.is-visible {
    right: 20px;
    /* Peek out */
    animation: wiggle 0.5s infinite;
}

.scroll-character.launch {
    animation: launchUp 1s cubic-bezier(0.5, 0, 0.5, 1) forwards !important;
}

@keyframes launchUp {
    0% {
        transform: scale(1) translateY(0);
    }

    10% {
        transform: scale(1.2, 0.8) translateY(10px);
    }

    /* Squash */
    20% {
        transform: scale(0.8, 1.2) translateY(-20px);
    }

    /* Stretch start */
    100% {
        transform: scale(0.5, 2) translateY(-200vh);
        opacity: 0;
    }

    /* Fly away */
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

/* --- Easter Egg: Emoji Rain --- */
.emoji-rain {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    z-index: 9999;
    animation: rainFall linear forwards;
    pointer-events: none;
}

@keyframes rainFall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* --- Easter Egg: Flush --- */
.flush-animation {
    animation: flushSwirl 1.5s ease-in forwards !important;
    transform-origin: center;
}

@keyframes flushSwirl {
    0% {
        transform: rotate(0) scale(1);
    }

    100% {
        transform: rotate(720deg) scale(0);
        opacity: 0;
    }
}



/* --- Easter Egg: Golden Poop --- */
[data-theme="golden"] {
    --bg-color: #000;
    --text-color: #ffd700;
    --accent-color: #d4af37;
    --secondary-color: #b8860b;
}

[data-theme="golden"] .logo,
[data-theme="golden"] h2 {
    text-shadow: 0 0 10px #ffd700, 0 0 20px #d4af37;
}

/* --- Easter Egg: Stinky Cursor --- */
.stink-trail {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 9999;
    animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(-50px) scale(0.5);
        opacity: 0;
    }
}

/* --- Easter Egg: Logo Shock --- */
.shock-shake {
    animation: shakeScreen 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shakeScreen {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* --- Easter Egg: Farting Headings --- */
.fart-puff {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    animation: puffOut 0.8s ease-out forwards;
}

@keyframes puffOut {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2) translateX(20px);
        opacity: 0;
    }
}

/* --- Easter Egg: Spinning Nav --- */
nav ul li a:hover {
    display: inline-block;
    animation: spinNav 0.5s ease-in-out;
}

@keyframes spinNav {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Theme variations for character */
[data-theme="kids"] .scroll-character {
    font-size: 5rem;
    filter: drop-shadow(4px 4px 0 #fff);
}

[data-theme="rock"] .scroll-character {
    filter: drop-shadow(0 0 10px #ff00ff) hue-rotate(280deg);
    /* Purple poop */
}

[data-theme="alert"] .scroll-character {
    filter: drop-shadow(0 0 10px red);
    animation: urgentPulse 0.2s infinite;
}

[data-theme="tech"] .scroll-character {
    opacity: 0.8;
    filter: sepia(100%) hue-rotate(180deg) saturate(200%);
    /* Blue/Cyber */
    font-family: monospace;
}

[data-theme="emotional"] .scroll-character {
    opacity: 0;
    transition: opacity 1s, right 0.3s;
}

[data-theme="emotional"] .scroll-character.is-visible {
    opacity: 0.8;
    right: 20px;
    animation: breathing 3s infinite;
}

[data-theme="illustration"] .scroll-character {
    transform: rotate(-15deg);
}