/* Nomirian Site Styles */
:root{
  --clay:#8b5e3c;           /* earthy clay */
  --sand:#e8dcc2;           /* ancient sand */
  --moss:#2f4f3e;           /* deep moss */
  --twilight:#1f2a44;       /* twilight blue */
  --ember:#d4a15a;          /* golden ember */
  --ink:#1b1b1b;
  --paper:#f7f3ea;

  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.12);
}

html{scroll-behavior:smooth}
*{box-sizing:border-box}
body{
  margin:0;
  color:var(--ink);
  background:linear-gradient(180deg, var(--paper), #fff);
  font-family:"Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.65;
}
img{max-width:100%;display:block}

.container{width:min(1100px, 92%);margin-inline:auto}
.center{text-align:center}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.8);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:16px}
.brand{
  font-family:"Playfair Display", Georgia, serif;
  font-weight:600; font-size:1.25rem; letter-spacing:.04em;
  color:var(--twilight); text-decoration:none;
}
.lang-switcher{display:flex;align-items:center;gap:6px;font-size:.9rem}
.lang-link{color:var(--ink);text-decoration:none;padding:4px 6px;border-radius:4px;transition:all .2s}
.lang-link:hover{background:rgba(0,0,0,.06)}
.lang-link.active{font-weight:700;color:var(--clay)}
.lang-sep{color:rgba(0,0,0,.3)}
.site-nav{display:flex;gap:18px;align-items:center}
.site-nav a{color:var(--ink);text-decoration:none;padding:8px 10px;border-radius:8px}
.site-nav a:hover{background:rgba(0,0,0,.04)}
.site-nav .cta{background:var(--twilight);color:#fff}
.site-nav .cta:hover{background:#162034}

.nav-toggle{display:none;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer;padding:8px;position:relative;width:40px;height:40px;justify-content:center;align-items:center;transition:all 0.3s}
.nav-toggle-bar{width:24px;height:2px;background:var(--twilight);display:block;transition:all 0.3s;transform-origin:center}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

@media (max-width: 820px){
  .nav-toggle{display:flex;z-index:50}
  .header-inner{flex-wrap:wrap;position:relative}
  .lang-switcher{order:3;margin-left:auto}
  .site-nav{position:fixed;top:70px;left:0;right:0;width:100%;background:#fff;border-bottom:1px solid rgba(0,0,0,.06);padding:14px 4%;display:none;order:4;box-shadow:0 4px 12px rgba(0,0,0,0.1);z-index:40}
  .site-nav.open{display:flex;flex-wrap:wrap;gap:8px}
}

/* Hero */
.hero{position:relative;min-height:72vh;display:grid;place-items:center;isolation:isolate}
.hero-bg{
  position:absolute;inset:0; z-index:-1;
  background-image:linear-gradient(rgba(31,42,68,.55), rgba(31,42,68,.35)), url('/images/hero.jpg');
  background-size:cover; background-position:center;
  filter:saturate(.9);
}
.hero-content{padding:90px 0; text-align:center; color:#fff}
.hero h1{
  font-family:"Playfair Display", Georgia, serif;
  font-size:clamp(2rem, 3.6vw, 3.25rem);
  line-height:1.15; margin:0 0 12px;
}
.hero h1 span{color:var(--ember)}
.hero .lead{font-size:1.15rem;opacity:.95;margin-bottom:22px}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* Sections */
.section{padding:64px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}
.section h2{
  font-family:"Playfair Display", Georgia, serif;
  color:var(--twilight);
  font-size:clamp(1.6rem, 2.6vw, 2.2rem);
  margin:0 0 8px;
}
.section p{margin:0}

/* About */
.grid-2{display:grid;grid-template-columns:2fr 1fr;gap:28px}
@media (max-width: 900px){.grid-2{grid-template-columns:1fr}}
.about-card{background:linear-gradient(180deg, var(--sand), #fff);border:1px solid rgba(0,0,0,.08);padding:18px 18px 8px;border-radius:var(--radius);box-shadow:var(--shadow)}
.about-card h3{margin:0 0 8px;font-family:"Playfair Display", Georgia, serif;color:var(--moss)}
.about-card ul{margin:0;padding-left:18px}

/* Journal cards */
.cards{display:grid;grid-template-columns:repeat(3, 1fr);gap:18px}
@media (max-width: 980px){.cards{grid-template-columns:repeat(2, 1fr)}}
@media (max-width: 640px){.cards{grid-template-columns:1fr}}
.cards.carousel{
  display:flex;
  gap:18px;
  overflow-x:hidden;
  scroll-behavior:smooth;
}
.cards.carousel .card{
  min-width:calc((100% - 36px) / 3);
  max-width:calc((100% - 36px) / 3);
  flex-shrink:0;
}
@media (max-width: 980px){
  .cards.carousel .card{
    min-width:calc((100% - 18px) / 2);
    max-width:calc((100% - 18px) / 2);
  }
}
@media (max-width: 640px){
  .cards.carousel .card{min-width:100%;max-width:100%}
}
.card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.card-image{display:block;aspect-ratio:16/9;background-color:var(--sand);background-position:center;background-size:cover;background-repeat:no-repeat;width:100%;min-height:200px}
.card-body{padding:16px}
.card h3{font-family:"Playfair Display", Georgia, serif;margin:0 0 6px;color:var(--twilight);font-size:1.2rem}
.card h3 a{color:var(--twilight);text-decoration:none}
.card h3 a:hover{color:var(--clay)}
.card p{margin:0 0 10px;color:#333}
.text-link{color:var(--clay);text-decoration:none}
.text-link:hover{text-decoration:underline}

/* Retreats + Signup */
.v-center{align-items:center}
.signup-panel{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.signup-form{display:flex;gap:10px;flex-wrap:wrap}
.signup-form input{
  flex:1 1 240px; padding:12px 14px; border:1px solid rgba(0,0,0,.15); border-radius:10px; font-size:1rem
}
.signup-form button{white-space:nowrap}
.form-hint{font-size:.9rem;color:#555;margin:8px 2px 0}
.form-message{margin-top:10px;color:var(--moss);font-weight:600}

.signup-call{background:linear-gradient(180deg, #fff, var(--paper))}

/* Buttons */
.btn{display:inline-block;padding:10px 16px;border-radius:999px;text-decoration:none;border:1px solid transparent;transition:all .2s ease;cursor:pointer;font-weight:700}
.btn.primary{background:var(--ember);color:#2a1d0b}
.btn.primary:hover{filter:brightness(.95)}
.btn.ghost{background:transparent;border-color:#fff;color:#fff}
.btn.ghost:hover{background:rgba(255,255,255,.1)}

/* Footer */
.site-footer{border-top:1px solid rgba(0,0,0,.06);padding:28px 0;background:#fff}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.footer-nav{display:flex;gap:14px}
.footer-nav a{color:var(--twilight);text-decoration:none}
.footer-nav a:hover{text-decoration:underline}
.footer-center{display:flex;flex-direction:column;align-items:center;gap:12px}
.signature{font-family:"Playfair Display", Georgia, serif;color:var(--clay);margin:0}
.footer-contact{text-align:center;margin:12px 0}
.contact-message{font-size:0.9rem;color:var(--clay);margin:0 0 8px 0}
.email-link{color:var(--moss);font-weight:600;text-decoration:none;font-size:1.1rem;transition:all 0.3s ease}
.email-link:hover{color:var(--twilight);text-decoration:underline;transform:translateY(-2px)}
.social-links{display:flex;gap:16px;align-items:center}
.social-links a{color:var(--twilight);transition:color 0.3s ease,transform 0.2s ease;display:flex;align-items:center}
.social-links a:hover{color:var(--moss);transform:translateY(-2px)}
.social-links svg{width:20px;height:20px}

/* Blog Post Styles */
.post{background:#fff}
.post-header{padding:40px 0 20px;background:var(--paper)}
.post-header .container{max-width:800px}
.back-link{display:inline-block;color:var(--clay);text-decoration:none;margin-bottom:16px;font-size:.95rem}
.back-link:hover{text-decoration:underline}
.post h1{
  font-family:"Playfair Display", Georgia, serif;
  color:var(--twilight);
  font-size:clamp(1.8rem, 4vw, 2.8rem);
  line-height:1.2;
  margin:0 0 12px;
}
.post-meta{color:#666;font-size:.95rem;margin:0}
.meta-sep{margin:0 8px;color:rgba(0,0,0,.3)}

.post-featured-image{max-width:1200px;margin:0 auto;padding:0 4%}
.post-featured-image img{width:100%;height:auto;border-radius:var(--radius);margin-top:20px}

.post-content{max-width:720px;padding:40px 4% 60px;line-height:1.75;font-size:1.05rem}
.post-content .lead{font-size:1.25rem;color:var(--twilight);font-weight:400;margin-bottom:28px}
.post-content h2{
  font-family:"Playfair Display", Georgia, serif;
  color:var(--twilight);
  font-size:1.75rem;
  margin:40px 0 16px;
}
.post-content p{margin:0 0 20px}
.post-content ul, .post-content ol{margin:0 0 20px;padding-left:28px}
.post-content li{margin-bottom:8px}
.post-content blockquote{
  margin:32px 0;
  padding:20px 24px;
  background:var(--sand);
  border-left:4px solid var(--clay);
  border-radius:8px;
}
.post-content blockquote p{margin:0 0 8px;font-size:1.15rem;font-style:italic;color:var(--twilight)}
.post-content blockquote cite{font-style:normal;font-size:.95rem;color:#666}
.post-content hr{border:0;height:1px;background:rgba(0,0,0,.1);margin:40px 0}

.post-footer{background:var(--paper);padding:40px 0 60px}
.post-footer .container{max-width:900px}
.post-footer h3{
  font-family:"Playfair Display", Georgia, serif;
  color:var(--twilight);
  margin:0 0 20px;
}
.related-posts{display:grid;grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));gap:20px}
.related-card{
  display:block;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:var(--radius);
  padding:20px;
  text-decoration:none;
  transition:all .2s;
}
.related-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.related-card h4{
  font-family:"Playfair Display", Georgia, serif;
  color:var(--twilight);
  margin:0 0 8px;
  font-size:1.2rem;
}
.related-card p{margin:0;color:#555;font-size:.95rem}

/* Utils */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0 0 0 0);overflow:hidden}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 100;
  overflow-y: auto;
  padding: 24px;
  transition: right 0.3s ease;
}
.sidebar.open {
  right: 0;
}
.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--twilight);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.sidebar-close:hover {
  background: rgba(0,0,0,0.05);
}
.sidebar-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.sidebar-section:last-child {
  border-bottom: none;
}
.sidebar-section h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--twilight);
  margin: 0 0 16px;
  font-size: 1.3rem;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-item {
  padding: 12px;
  background: var(--paper);
  border-radius: 8px;
  border-left: 3px solid var(--clay);
}
.news-item time {
  font-size: 0.8rem;
  color: var(--moss);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.news-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: "Playfair Display", Georgia, serif;
}
.news-item h4 a {
  color: var(--twilight);
  text-decoration: none;
}
.news-item h4 a:hover {
  color: var(--clay);
}
.news-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: var(--twilight);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 90;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle:hover {
  background: var(--clay);
  transform: translateY(-50%) scale(1.1);
}
.sidebar-toggle.hidden {
  right: -70px;
}

/* Secondary Button Style */
.btn.secondary {
  background: var(--moss);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn.secondary:hover {
  background: var(--clay);
  transform: translateY(-2px);
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}
.carousel-btn {
  background: var(--twilight);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.carousel-btn:hover {
  background: var(--clay);
  transform: scale(1.1);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.carousel-btn:disabled:hover {
  transform: scale(1);
  background: var(--twilight);
}
.cards.carousel {
  overflow: hidden;
  scroll-behavior: smooth;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 42, 68, 0.98);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: slideUp 0.4s ease;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}
.cookie-content a {
  color: var(--ember);
  text-decoration: underline;
}
.cookie-content a:hover {
  color: #fff;
}
.cookie-content button {
  flex-shrink: 0;
  white-space: nowrap;
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    right: -100%;
  }
  .sidebar-toggle {
    right: 15px;
    width: 45px;
    height: 45px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .carousel-wrapper {
    gap: 10px;
  }
  .cookie-banner {
    padding: 14px 16px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content button {
    width: 100%;
  }
}

/* Giraffe Mascot */
.giraffe-mascot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: auto;
  z-index: 40;
  opacity: 0.85;
  transition: all 0.3s ease;
  pointer-events: none;
}

.giraffe-mascot:hover {
  opacity: 1;
  transform: scale(1.05);
}

.giraffe-mascot.walking {
  animation: walk 3s ease-in-out infinite;
}

.giraffe-mascot.reading {
  bottom: 30px;
  right: 30px;
}

.giraffe-mascot.sniffing {
  animation: sniff 2s ease-in-out infinite;
}

.giraffe-mascot.relaxing {
  width: 150px;
  bottom: 10px;
}

@keyframes walk {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  50% { transform: translateX(0) rotate(0deg); }
  75% { transform: translateX(5px) rotate(1deg); }
}

@keyframes sniff {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Adjust giraffe size on smaller screens */
@media (max-width: 768px) {
  .giraffe-mascot {
    width: 70px;
    bottom: 15px;
    right: 15px;
  }
  
  .giraffe-mascot.reading {
    bottom: 20px;
    right: 20px;
  }
  
  .giraffe-mascot.relaxing {
    width: 100px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .giraffe-mascot {
    width: 60px;
    bottom: 10px;
    right: 10px;
    opacity: 0.7;
  }
  
  .giraffe-mascot:hover {
    opacity: 0.9;
  }
  
  .giraffe-mascot.reading {
    bottom: 15px;
    right: 15px;
  }
  
  .giraffe-mascot.relaxing {
    width: 80px;
    bottom: 5px;
  }
}

/* Community Page - Nomi's Corner */
.nomi-greeting {
  background: linear-gradient(135deg, var(--paper) 0%, #fff 100%);
  padding: 60px 0 40px;
}

.nomi-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.nomi-avatar {
  text-align: center;
}

.nomi-large {
  width: 180px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.nomi-welcome h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.nomi-welcome .lead {
  font-size: 1.2rem;
  color: var(--moss);
  margin-bottom: 16px;
}

/* Nomi Navigation Cards */
.nomi-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.nomi-card {
  background: white;
  border: 2px solid var(--paper);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.nomi-card:hover {
  border-color: var(--moss);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.nomi-card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.nomi-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.nomi-card p {
  color: var(--clay);
  font-size: 0.95rem;
  margin: 0;
}

/* Section Headers */
.nomi-section {
  scroll-margin-top: 100px;
}

.section-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.section-nomi {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  margin-bottom: 8px;
}

/* Forms */
.nomi-form-container {
  background: var(--paper);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
  max-width: 700px;
}

.nomi-form-container h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  margin-bottom: 24px;
}

.nomi-form .form-group {
  margin-bottom: 20px;
}

.nomi-form label {
  display: block;
  font-weight: 600;
  color: var(--twilight);
  margin-bottom: 8px;
}

.nomi-form input[type="text"],
.nomi-form input[type="email"],
.nomi-form input[type="file"],
.nomi-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}

.nomi-form textarea {
  resize: vertical;
}

.nomi-form .form-hint {
  font-size: 0.85rem;
  color: var(--clay);
  margin-top: 4px;
}

/* Stories Grid */
.nomi-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.story-card {
  background: white;
  border: 1px solid var(--paper);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.3s ease;
}

.story-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.story-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  margin-bottom: 8px;
}

.story-author {
  color: var(--moss);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.story-meta {
  color: var(--clay);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* Fan Art Gallery */
.fanart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.fanart-card {
  background: white;
  border: 1px solid var(--paper);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.fanart-card:hover {
  transform: scale(1.05);
}

.fanart-placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  font-size: 3rem;
}

.fanart-card h4 {
  padding: 12px;
  font-size: 1rem;
  margin: 0;
  color: var(--twilight);
}

.fanart-author {
  padding: 0 12px 12px;
  font-size: 0.85rem;
  color: var(--clay);
  font-style: italic;
  margin: 0;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin-top: 48px;
}

.faq-container h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  margin-bottom: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--paper);
  margin-bottom: 8px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--twilight);
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--moss);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--clay);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--moss);
  text-decoration: underline;
}

/* Game */
.nomi-game-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.nomi-game-container h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  margin-bottom: 16px;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.game-card {
  aspect-ratio: 1;
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s;
}

.game-card.flipped {
  transform: rotateY(180deg);
}

.game-card.matched {
  opacity: 0.6;
  cursor: default;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 8px;
}

.card-front {
  background: var(--moss);
  color: white;
  font-size: 2rem;
}

.card-back {
  background: white;
  border: 2px solid var(--moss);
  transform: rotateY(180deg);
  font-size: 1.2rem;
}

.game-controls {
  margin-top: 24px;
}

.game-status {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--moss);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .nomi-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .nomi-large {
    width: 120px;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .section-nomi {
    margin: 0 auto;
  }
  
  .game-board {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .nomi-form-container {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .game-board {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .card-front,
  .card-back {
    font-size: 1rem;
  }
}

/* Privacy-First Community Features */
.privacy-note {
  background: rgba(74, 124, 89, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 16px;
}

.privacy-badge {
  display: inline-block;
  background: rgba(74, 124, 89, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--moss);
}

/* Character Counter */
.char-count {
  text-align: right;
  font-size: 0.85rem;
  color: var(--clay);
  margin-top: 4px;
}

/* Mood Selector */
.mood-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-btn {
  background: white;
  border: 2px solid var(--paper);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.mood-btn:hover {
  border-color: var(--moss);
  transform: translateY(-2px);
}

.mood-btn.active {
  background: var(--moss);
  border-color: var(--moss);
  color: white;
}

/* Story Wall */
.story-wall-header {
  margin-top: 48px;
  margin-bottom: 24px;
}

.story-wall-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--twilight);
  margin-bottom: 8px;
}

.wall-info {
  color: var(--clay);
  font-size: 0.9rem;
}

.story-wall {
  display: grid;
  gap: 20px;
}

.story-card.new-story {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.story-card.new-story.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-mood {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Chat Interface */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 24px;
  background: var(--paper);
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 70%;
}

.chat-message.user .message-content {
  background: var(--moss);
  color: white;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--clay);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

/* Chat Prompts */
.chat-prompts {
  padding: 16px;
  background: #f0f9f4;
  border-top: 1px solid #e0f2e9;
}

.prompts-label {
  font-size: 0.9rem;
  color: var(--clay);
  margin: 0 0 12px 0;
  font-weight: 500;
}

.prompt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-btn {
  background: white;
  border: 1px solid var(--moss);
  color: var(--moss);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-btn:hover {
  background: var(--moss);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(74, 124, 89, 0.2);
}

.prompt-btn:active {
  transform: translateY(0);
}

.chat-input-form {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: white;
  border-top: 1px solid var(--paper);
}

.chat-input-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-family: 'Lato', sans-serif;
}

.chat-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--clay);
  padding: 12px;
  background: var(--paper);
}

/* Game Selector */
.game-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--paper);
}

.game-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clay);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.game-tab:hover {
  color: var(--moss);
}

.game-tab.active {
  color: var(--twilight);
  border-bottom-color: var(--moss);
}

.game-panel {
  display: none;
}

.game-panel.active {
  display: block;
}

/* Word Game */
.word-game {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.word-prompt {
  background: var(--moss);
  color: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.word-prompt h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  margin: 0;
}

#word-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--paper);
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 16px;
}

.word-cloud {
  min-height: 200px;
  padding: 24px;
  background: var(--paper);
  border-radius: 12px;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.word-item {
  color: var(--moss);
  font-weight: 600;
  padding: 4px 12px;
  background: white;
  border-radius: 20px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Breathing Exercise */
.breathing-exercise {
  text-align: center;
  padding: 40px 0;
}

.breathing-circle {
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moss), #6ba583);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 4s ease-in-out;
}

.breathing-circle.inhale {
  transform: scale(1.5);
}

.breathing-circle.exhale {
  transform: scale(0.7);
}

.breathing-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.breathing-instruction {
  font-size: 1.2rem;
  color: var(--twilight);
  margin-top: 16px;
  min-height: 30px;
}

/* Maze Game */
.maze-container {
  text-align: center;
}

#maze-canvas {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--paper);
  border-radius: 12px;
  background: white;
  margin: 20px auto;
  display: block;
  touch-action: none;
  user-select: none;
}

.maze-controls {
  margin-top: 20px;
}

/* Fun Facts */
.facts-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.fact-card {
  background: linear-gradient(135deg, #f0f9f4 0%, #e0f2e9 100%);
  border: 2px solid var(--moss);
  border-radius: 16px;
  padding: 40px 30px;
  margin: 30px 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.fact-card:hover {
  transform: translateY(-4px);
}

.fact-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fact-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--twilight);
  margin: 0;
  transition: opacity 0.3s ease;
}

.fact-category {
  font-size: 0.9rem;
  color: var(--moss);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.facts-info {
  font-size: 0.9rem;
  color: var(--clay);
  margin-top: 16px;
}

/* Puzzle Game */
.puzzle-container {
  max-width: 500px;
  margin: 0 auto;
}

.puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--paper);
  padding: 12px;
  border-radius: 12px;
  margin: 20px 0;
}

.puzzle-tile {
  aspect-ratio: 1;
  background: white;
  border: 2px solid var(--moss);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--twilight);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.puzzle-tile:hover:not(.empty) {
  background: #f0f9f4;
  transform: scale(1.05);
}

.puzzle-tile.empty {
  background: transparent;
  border: 2px dashed #ddd;
  cursor: default;
}

.puzzle-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.game-message {
  font-size: 1rem;
  color: var(--twilight);
  font-weight: 500;
  margin: 8px 0;
}

.game-hint {
  font-size: 0.9rem;
  color: var(--clay);
  background: #fff9e6;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  border-left: 3px solid #f0e68c;
}

/* Dress Up Game */
.dressup-container {
  max-width: 800px;
  margin: 0 auto;
}

.dressup-preview {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #f0f9f4 0%, #e0f2e9 100%);
  border-radius: 16px;
  margin-bottom: 30px;
}

.nomi-character {
  position: relative;
  display: inline-block;
  font-size: 120px;
  line-height: 1;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.nomi-base {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.nomi-accessory {
  position: absolute;
  font-size: 60px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
  cursor: move;
  z-index: 10;
  pointer-events: auto;
}

.nomi-accessory.dragging {
  z-index: 100;
  transition: none;
}

.nomi-accessory.hat {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.nomi-accessory.glasses {
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
}

.nomi-accessory.scarf {
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
}

.nomi-accessory.badge {
  top: 60px;
  right: 10px;
  font-size: 40px;
}

.dressup-options {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.option-category h4 {
  color: var(--twilight);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  background: white;
  border: 2px solid var(--paper);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
}

.option-btn:hover {
  border-color: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.option-btn.active {
  background: var(--moss);
  border-color: var(--moss);
  color: white;
}

.dressup-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Collaborative Story */
.collaborative-story {
  max-width: 900px;
  margin: 0 auto;
}

.story-intro {
  margin-bottom: 48px;
}

.story-intro h3 {
  color: var(--twilight);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.story-chapter {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border-left: 4px solid var(--moss);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.story-chapter.founder-chapter {
  border-left: 4px solid #d4af37;
  background: linear-gradient(to right, #fffef7, white);
}

.story-chapter p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--twilight);
}

.story-chapter p:last-of-type {
  margin-bottom: 0;
}

.story-chapter strong {
  color: var(--moss);
  font-weight: 600;
}

.story-meta {
  font-size: 0.85rem;
  color: var(--clay);
  font-style: italic;
  margin-top: 16px !important;
}

.community-chapters {
  margin: 48px 0;
}

.community-chapters h3 {
  color: var(--twilight);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.chapters-intro {
  color: var(--clay);
  margin-bottom: 24px;
}

.story-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-chapter-section {
  background: white;
  padding: 32px;
  border-radius: 16px;
  margin: 48px 0;
  border: 2px solid var(--moss);
}

.add-chapter-section h3 {
  color: var(--twilight);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.chapter-form {
  margin-top: 24px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--clay);
  margin-top: 6px;
}

.story-note {
  background: #fff9e6;
  border: 1px solid #f0e68c;
  border-radius: 12px;
  padding: 20px;
  margin-top: 32px;
}

.story-note p {
  margin: 0;
  color: var(--twilight);
  line-height: 1.6;
}

/* Drawing Canvas */
.drawing-container {
  max-width: 900px;
  margin: 0 auto;
}

.drawing-tools {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 12px 12px 0 0;
  border: 2px solid var(--paper);
  border-bottom: none;
  flex-wrap: wrap;
  align-items: center;
}

.tool-btn {
  background: var(--paper);
  border: 2px solid var(--paper);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.tool-btn:hover {
  border-color: var(--moss);
}

.tool-btn.active {
  background: var(--moss);
  border-color: var(--moss);
  color: white;
}

#color-picker {
  width: 50px;
  height: 40px;
  border: 2px solid var(--paper);
  border-radius: 8px;
  cursor: pointer;
}

#brush-size {
  width: 120px;
}

#drawing-canvas {
  display: block;
  width: 100%;
  border: 2px solid var(--paper);
  border-radius: 0 0 12px 12px;
  background: white;
  cursor: crosshair;
  touch-action: none;
}

.canvas-info {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--clay);
}

/* Responsive Updates */
@media (max-width: 768px) {
  .chat-messages {
    height: 300px;
  }
  
  .message-content {
    max-width: 85%;
  }
  
  .prompt-buttons {
    gap: 6px;
  }
  
  .prompt-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  .game-selector {
    flex-wrap: wrap;
  }
  
  .game-tab {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .breathing-circle {
    width: 150px;
    height: 150px;
  }
  
  .drawing-tools {
    gap: 8px;
  }
  
  .tool-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .mood-selector {
    flex-direction: column;
  }
  
  .mood-btn {
    width: 100%;
  }
  
  .chat-input-form {
    flex-direction: column;
  }
  
  .chat-input-form input {
    width: 100%;
  }
}
