*{box-sizing:border-box}
:root{
  --bg:#000;
  --paper:#f5f2ea;
  --paper-2:#fbf8f1;
  --ink:#151515;
  --muted:#6c675f;
  --line:#d8d0c2;
  --gold:#d9b168;
  --gold-2:#9f7a3f;
  --navy:#0b0f14;
  --land:#1d2833;
  --border:#31404d;
}
html,body{margin:0;padding:0;background:var(--bg);color:#fff;font-family:"Noto Serif JP",serif}
button,textarea{font:inherit}
a{text-decoration:none}
.hidden{display:none}
.hidden-panel{display:none!important}

.hero{
  min-height:100svh;position:relative;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(circle at center, rgba(255,170,70,.04), rgba(0,0,0,0) 30%),linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.96));
}
.hero__overlay{position:absolute;inset:0;background:radial-gradient(circle at 50% 40%, rgba(217,177,104,.10), transparent 38%)}
.hero__inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(720px,92vw);padding:28px 0 52px;text-align:center}
.hero__lamp{width:min(170px,38vw);opacity:.88;filter:drop-shadow(0 0 16px rgba(217,177,104,.1));margin-bottom:4px}
.hero__logo-wrap,.hero__controls{opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .9s ease, transform .9s ease}
.hero__logo-wrap.is-visible,.hero__controls.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
.hero__logo-image{width:460px;max-width:88%}
.hero__controls{margin-top:18px;width:min(620px,100%)}

.lang-switch{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.lang-switch__item{appearance:none;border:none;background:transparent;color:rgba(255,255,255,.58);padding:0;margin:0;cursor:pointer;font-family:"Noto Serif JP",serif;font-size:.95rem;letter-spacing:.08em;transition:color .25s ease, opacity .25s ease}
.lang-switch__item:hover{color:rgba(255,255,255,.82)}
.lang-switch__item.active{color:#d9b168}
.lang-switch__sep{color:rgba(255,255,255,.28);user-select:none}
.lang-switch--app .lang-switch__item{color:rgba(21,21,21,.42)}
.lang-switch--app .lang-switch__item:hover{color:rgba(21,21,21,.72)}
.lang-switch--app .lang-switch__item.active{color:#9f7a3f}
.lang-switch--app .lang-switch__sep{color:rgba(21,21,21,.22)}

.hero__manifesto{margin:22px 0 0;font-size:14px;color:#aaa;line-height:1.75;letter-spacing:.04em}
.hero__primary-wrap{margin-top:24px;display:flex;justify-content:center}
.hero__actions{display:flex;gap:14px;justify-content:center;align-items:center;margin-top:16px;flex-wrap:wrap}
.hero__today-card,.hero__world-summary,.hero__prototype{width:min(520px,100%);margin:20px auto 0;padding:16px 18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);border-radius:18px}
.hero__today-label,.hero__world-summary-label,.hero__prototype-title{margin:0;font-size:.76rem;letter-spacing:.18em;color:rgba(255,255,255,.56)}
.hero__today-question{margin:10px 0 0;font-size:1rem;line-height:1.9;color:#f3eee5;min-height:3.8em}
.hero__world-summary-count{margin:8px 0 0;font-size:2rem;color:var(--gold)}
.hero__prototype{padding:18px 18px 16px}
.hero__prototype-title{color:#d0b27a}
.hero__prototype-lead{margin:8px 0 4px;font-size:.98rem;color:#f1eadc}
.hero__prototype-body{margin:0;font-size:.88rem;line-height:1.85;color:rgba(255,255,255,.64)}
.hero__note{margin-top:20px;font-size:.88rem;color:rgba(255,255,255,.52);letter-spacing:.12em}

.btn{border:1px solid rgba(255,255,255,.28);background:transparent;color:#fff;padding:13px 28px;min-width:140px;cursor:pointer;border-radius:999px;transition:.25s ease}
.btn:hover{transform:translateY(-1px)}
.btn--primary{background:linear-gradient(180deg, rgba(217,177,104,.22), rgba(159,122,63,.14));border-color:rgba(217,177,104,.52)}
.btn--hero-primary{width:240px;height:50px;padding:0;font-size:1.02rem;letter-spacing:.12em}
.btn--secondary-nav{min-width:160px;padding:10px 18px;color:#e7dfd0;border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.025)}
.btn--dark{background:#1b1b1b;border-color:#383838}
.btn--paper{color:var(--ink);border-color:rgba(159,122,63,.28);background:linear-gradient(180deg, rgba(217,177,104,.16), rgba(159,122,63,.08))}
.btn--danger{border-color:rgba(130,47,47,.22);background:linear-gradient(180deg, rgba(150,54,54,.08), rgba(110,36,36,.04));color:#7f2d2d}
.btn--map{min-width:auto;padding:8px 14px;border-radius:12px}

.app{background:var(--paper);color:var(--ink)}
.question-shell{width:min(980px,92vw);margin:0 auto;padding:30px 0 40px}
.question-top{display:flex;align-items:center;gap:16px;color:var(--muted)}
.question-top__line{flex:1;height:1px;background:var(--line)}
.question-top__label{margin:0;letter-spacing:.12em;font-size:.9rem}
.prelude{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;flex-wrap:wrap}
.prelude__lens{display:flex;gap:16px;flex-wrap:wrap}
.prelude__lens-item{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:20px;background:#fff;border:1px solid var(--line)}
.prelude__lens-icon{width:52px;height:52px;object-fit:contain;opacity:.96}
.prelude__lens-name{margin:0;font-size:1rem}
.prelude__lens-text{margin:4px 0 0;color:var(--muted);font-size:.86rem}
.question-card,.chat-card,.input-card{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 10px 30px rgba(0,0,0,.025)}
.question-card{margin-top:18px;padding:32px 24px;text-align:center;min-height:180px;display:grid;place-items:center}
.question-card__text{margin:0;font-size:clamp(1.15rem,2.3vw,1.65rem);line-height:1.9;letter-spacing:.05em}
.question-card__breath{display:block;margin:0 0 16px;text-align:center;font-weight:500;letter-spacing:.18em;font-size:clamp(.95rem,2vw,1.15rem);color:var(--gold-2);min-height:1.8em;opacity:0;transform:translateY(6px);transition:opacity .9s ease, transform .9s ease}
.question-card__breath.is-visible{opacity:.9;transform:translateY(0)}
.chat-card{margin-top:18px;padding:18px;min-height:180px}
.chat-log{display:flex;flex-direction:column;gap:14px}
.msg{max-width:80%;padding:14px 16px;border-radius:22px;opacity:0;transform:translateY(8px);transition:.4s ease;white-space:pre-wrap;line-height:1.8}
.msg.show{opacity:1;transform:translateY(0)}
.msg--user{margin-left:auto;background:#1c1c1c;color:#fff}
.msg--wa,.msg--gen,.msg--ku{background:#fffaf1;border:1px solid rgba(159,122,63,.18)}
.msg__name{display:block;font-size:.8rem;letter-spacing:.08em;opacity:.66;margin-bottom:8px}
.msg__avatar-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.msg__avatar{width:32px;height:32px;object-fit:contain;border-radius:50%}
.input-card{margin-top:18px;padding:18px}
.input-card__label{display:block;font-size:.84rem;letter-spacing:.1em;color:var(--muted);margin-bottom:10px}
.input-card__textarea{width:100%;min-height:132px;border:1px solid var(--line);background:var(--paper-2);border-radius:20px;padding:16px;color:var(--ink);resize:vertical}
.input-card__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}

.category-select{background:var(--paper);color:var(--ink);min-height:calc(100svh - 40px);display:block}
.category-select__title{margin:0;font-size:1.25rem;color:var(--ink);letter-spacing:.04em}
.category-select__lead{margin:8px 0 22px;color:var(--muted);line-height:1.8}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.category-card{appearance:none;width:100%;border:1px solid var(--line);border-radius:20px;background:#fff;padding:18px 16px;text-align:left;cursor:pointer;transition:.25s ease}
.category-card:hover{transform:translateY(-1px);border-color:var(--gold);box-shadow:0 6px 20px rgba(0,0,0,.04)}
.category-card.is-selected{border-color:var(--gold);box-shadow:0 0 0 2px rgba(217,177,104,.18);background:#fffaf1}
.category-card__name{display:block;font-size:1rem;color:var(--ink);margin-bottom:6px}
.category-card__desc{display:block;font-size:.85rem;color:var(--muted);line-height:1.6}
.category-select__special{margin-top:24px}
.category-select__special-label{margin:0 0 12px;color:var(--gold-2);font-size:.92rem;letter-spacing:.04em}
.category-select__special-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:680px}
.category-card--grief{max-width:none}

.silence{background:var(--paper);color:var(--ink);min-height:100svh;display:grid;place-items:center;padding:40px 20px}
.silence__inner{text-align:center;width:min(90vw,760px)}
.silence__enso{width:min(72vw,420px);height:auto;display:block;margin:0 auto 10px;opacity:.92}
.silence__title{margin:4px 0 0;font-size:clamp(1.2rem,2.8vw,1.8rem);letter-spacing:.5em}
.silence__timer{font-size:clamp(3rem,10vw,6rem);margin:12px 0 8px;color:var(--gold-2)}
.silence__lead{color:var(--muted);margin:0 0 28px}
.generating-panel__enso{width:min(62vw,320px);display:block;margin:0 auto 14px;opacity:.94}
.generating-panel__title{margin:0;color:var(--gold-2);font-size:1.1rem;letter-spacing:.08em}
.generating-panel__percent{margin:12px 0;font-size:clamp(2.4rem,7vw,4rem);color:var(--ink)}
.generating-panel__bar{width:min(420px,88vw);height:12px;border-radius:999px;background:#e9e1d4;margin:0 auto;overflow:hidden;border:1px solid #d6c7b1}
.generating-panel__bar span{display:block;height:100%;width:0;background:linear-gradient(90deg, rgba(217,177,104,.58), rgba(159,122,63,.9));transition:width .25s ease}

.reflection-card{display:grid;place-items:center;min-height:100svh;background:#f8f5ee;color:#151515;padding:40px 20px;text-align:center;animation:cardFadeIn 1.2s ease}
.reflection-card__inner{width:min(720px,92vw);margin:auto;display:flex;flex-direction:column;align-items:center}
.reflection-card__enso{width:280px;max-width:68%;margin-bottom:28px;opacity:.96;filter:contrast(1.05)}
.reflection-card__brand{font-size:14px;letter-spacing:.3em;color:#6c675f;margin-bottom:32px}
.reflection-card__block{width:100%;margin-bottom:28px}
.reflection-card__label{font-size:12px;letter-spacing:.25em;color:#9f7a3f;margin-bottom:10px}
.reflection-card__text{font-size:20px;line-height:1.9;letter-spacing:.05em;white-space:pre-wrap;color:#151515}
.reflection-card__date{margin-top:16px;font-size:12px;color:#6c675f}
.reflection-card__share{width:100%;margin-top:18px;padding:18px 16px;border:1px solid var(--line);background:#fff;border-radius:20px}
.reflection-card__share-lead{margin:0 0 12px;color:var(--muted);font-size:.92rem}
.reflection-card__share-links{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.share-link{display:inline-flex;align-items:center;justify-content:center;min-width:86px;height:36px;padding:0 14px;border-radius:999px;border:1px solid #999;color:#222;background:#fff;filter:grayscale(1);font-size:.9rem}
.reflection-card__actions{margin-top:36px;display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
@keyframes cardFadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

.logs-stage,.world-stage,.manifesto-stage{min-height:100svh;background:var(--paper);color:var(--ink);padding:30px 0 50px}
.logs-stage__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.logs-stage__title{margin:0;font-size:1.3rem;letter-spacing:.06em;color:var(--ink)}
.logs-stage__empty{padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--muted);text-align:center}
.logs-list{display:flex;flex-direction:column;gap:16px}
.log-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px 18px;cursor:pointer;transition:.25s ease}
.log-card:hover{transform:translateY(-1px);border-color:var(--gold);box-shadow:0 8px 24px rgba(0,0,0,.04)}
.log-card__date{margin:0 0 10px;font-size:.82rem;letter-spacing:.12em;color:var(--gold-2)}
.log-card__label{margin:14px 0 6px;font-size:.8rem;letter-spacing:.14em;color:var(--muted)}
.log-card__text{margin:0;line-height:1.85;color:var(--ink);white-space:pre-wrap;word-break:break-word}

.world-stage__lead{margin:6px 0 0;color:var(--muted);font-size:.92rem}
.world-stage__summary{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.world-stage__stat{padding:16px 18px;border-radius:20px;background:#fff;border:1px solid var(--line);min-width:180px}
.world-stage__stat--minor{min-width:160px}
.world-stage__stat-label{margin:0;color:var(--muted);font-size:.82rem;letter-spacing:.12em}
.world-stage__stat-count{margin:8px 0 0;color:var(--gold-2);font-size:2rem}
.world-stage__stat-count--minor{font-size:1.4rem;color:var(--ink)}
.world-stage__reset-note{margin:0;color:var(--muted);font-size:.88rem}
.world-map-wrap{position:relative;background:#060a0f;border-radius:28px;border:1px solid #1d2833;padding:16px;overflow:hidden}
.world-map-controls {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.world-map-controls button {
  min-width: 96px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(180deg, rgba(34, 28, 18, 0.92), rgba(18, 14, 10, 0.92));
  color: #f3e7c8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.world-map-controls button:hover {
  background: linear-gradient(180deg, rgba(54, 44, 26, 0.96), rgba(26, 20, 12, 0.96));
  color: #fff4d6;
}

.world-map-controls button:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn--map{min-width:0;width:auto;padding:9px 14px;display:inline-flex;align-items:center;gap:8px}
.map-control__symbol{font-size:1rem;line-height:1}
.world-map-container{position:relative;background:#02060b;border-radius:22px;overflow:hidden;cursor:grab;min-height:420px}
.world-map-container.is-dragging{cursor:grabbing}
.world-map-svg{display:block;width:100%;height:auto;min-height:420px}
.world-map-svg__sea{fill:#02060b}
.world-map-image{opacity:.98}
.world-map-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#d2c3a2;background:rgba(0,0,0,.42)}
.world-light{fill:#d4af37;opacity:.92;filter:drop-shadow(0 0 8px rgba(212,175,55,.88))}
.world-light--pulse{animation:pulse 2.1s ease-in-out infinite}
.world-light--mine{fill:#ffd977;filter:drop-shadow(0 0 12px rgba(255,217,119,.95));animation:myLightPulse 3.2s ease-in-out infinite}
.world-light-label{fill:#e7dfd0;font-size:11px;letter-spacing:.12em;paint-order:stroke;stroke:#0b0f14;stroke-width:2px;stroke-linejoin:round}
.world-map-message{margin:14px 4px 0;color:#d8c898;font-size:.94rem;letter-spacing:.04em}
@keyframes pulse{0%,100%{opacity:.72}50%{opacity:1}}
@keyframes myLightPulse{0%,100%{opacity:.85;transform:scale(1)}50%{opacity:1;transform:scale(1.15)}}
.world-stage__countries{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px}
.world-stage__countries-title{margin:0 0 12px;color:var(--gold-2);font-size:.88rem;letter-spacing:.14em}
.country-lights-list{display:flex;flex-wrap:wrap;gap:10px}
.country-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:999px;background:#fffaf1;border:1px solid rgba(159,122,63,.2);color:var(--ink);font-size:.9rem}
.country-chip__dot{width:8px;height:8px;border-radius:50%;background:#d4af37;box-shadow:0 0 8px rgba(212,175,55,.7)}

.manifesto-shell{max-width:900px}
.manifesto-stage__sub{margin:6px 0 0;color:var(--muted);font-size:.92rem}
.manifesto-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:26px 22px 28px}
.manifesto-block+.manifesto-block{margin-top:30px;padding-top:28px;border-top:1px solid var(--line)}
.manifesto-block__title{margin:0 0 14px;color:var(--gold-2);font-size:1rem;letter-spacing:.08em}
.manifesto-block__text{margin:0;line-height:2;white-space:pre-wrap}
.manifesto-block__rich p{margin:0 0 14px;line-height:2}
.manifesto-block__rich h3{margin:18px 0 8px;font-size:1rem;color:var(--ink)}
.manifesto-card__credit{margin:34px 0 0;padding-top:24px;border-top:1px solid var(--line);text-align:center;line-height:1.9;color:var(--muted)}

@media (max-width:860px){
  .prelude{flex-direction:column;align-items:flex-start}
  .prelude__lens{width:100%;flex-direction:column}
  .prelude__lens-item{width:100%}
  .lang-switch--app{width:100%;justify-content:flex-start}
  .input-card__actions{flex-direction:column}
  .btn{width:100%}
  .msg{max-width:100%}
  .category-grid{grid-template-columns:1fr}
  .category-card--grief{max-width:none}
  .hero__actions .btn{width:auto}
}
@media (max-width:640px){
  .hero__today-card,.hero__world-summary,.hero__prototype{padding:14px}
  .category-select__special-grid{grid-template-columns:1fr}
  .hero__actions--secondary{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hero__actions--tertiary{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hero__actions--secondary .btn,.hero__actions--tertiary .btn{width:100%;min-width:0}
  .logs-stage__head{flex-direction:column;align-items:flex-start}
  .logs-stage__head .btn{width:100%}
  .reflection-card__enso{width:220px;max-width:72%}
  .reflection-card__text{font-size:17px}
  .reflection-card__actions{flex-direction:column;gap:12px}
  .question-card__breath{font-size:1rem;letter-spacing:.16em;margin-bottom:14px}
  .world-stage__summary{flex-direction:column;align-items:stretch}
  .world-stage__stat{width:100%}
  .world-map-controls{justify-content:stretch}
  .world-map-controls .btn{width:auto;flex:1;justify-content:center}
}

@media (max-width:640px){
  .world-map-container{min-height:360px}
  .world-map-svg{min-height:360px}
}


/* Globe upgrade */
.world-map-container--globe{position:relative;min-height:560px;padding:0;background:radial-gradient(circle at 50% 40%, rgba(10,22,40,.35), rgba(1,4,10,.95) 70%);overflow:hidden}
.world-map-stars{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle at 12% 18%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),radial-gradient(circle at 78% 26%, rgba(255,255,255,.25) 0 1px, transparent 1.5px),radial-gradient(circle at 32% 76%, rgba(255,255,255,.22) 0 1px, transparent 1.5px),radial-gradient(circle at 60% 58%, rgba(255,255,255,.18) 0 1px, transparent 1.5px),radial-gradient(circle at 88% 74%, rgba(255,255,255,.16) 0 1px, transparent 1.5px);opacity:.7}
.world-globe{position:relative;width:100%;height:560px;z-index:1}
.world-globe canvas{display:block;outline:none}
.world-map-fallback{z-index:2}
@media (max-width:640px){
  .world-map-container--globe{min-height:420px}
  .world-globe{height:420px}
}


.transition-overlay{position:fixed;inset:0;pointer-events:none;background:rgba(0,0,0,0);opacity:0;transition:opacity .8s ease,background 1.2s ease;z-index:9999}
.transition-overlay.active{opacity:1;background:rgba(0,0,0,.35)}
.transition-glow{position:absolute;left:50%;top:33%;width:180px;height:180px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle, rgba(255,190,90,.22) 0%, rgba(255,190,90,.08) 35%, rgba(255,190,90,0) 72%);opacity:0;filter:blur(8px);transition:opacity .9s ease, transform 1.2s ease}
.transition-overlay.active .transition-glow{opacity:1;transform:translate(-50%,-50%) scale(1.18)}
body.is-transitioning .hero__controls,body.is-transitioning .hero__logo-wrap{opacity:.7}
body.is-transitioning .hero__lamp{filter:drop-shadow(0 0 26px rgba(255,210,120,.32))}

.hero__actions--tertiary{margin-top:12px}
.hero__actions--tertiary .btn{min-width:190px}

.btn{transition:transform .28s ease, box-shadow .4s ease, border-color .3s ease, background .4s ease, color .3s ease}
.btn--primary{box-shadow:0 0 8px rgba(255,180,80,.18);animation:glowPulse 4s infinite}
.btn--primary:hover{box-shadow:0 0 24px rgba(255,220,140,.38)}
.btn--secondary-nav:hover{border-color:rgba(255,200,120,.56);box-shadow:0 0 12px rgba(255,200,120,.22);color:#fff}
body.is-transitioning .btn--hero-primary{transform:scale(.985);box-shadow:0 0 28px rgba(255,210,120,.42)}

@keyframes glowPulse{0%{box-shadow:0 0 6px rgba(255,180,80,.15)}50%{box-shadow:0 0 16px rgba(255,200,100,.32)}100%{box-shadow:0 0 6px rgba(255,180,80,.15)}}

.manifesto-card strong{color:var(--ink)}
.manifesto-block__rich p strong{color:var(--ink)}

@media (max-width:640px){
  .hero__actions--tertiary{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hero__actions--tertiary .btn{width:100%;min-width:0}
}



/* =========================================================
   ZEN LAMP App UI Refresh v1.4
   Purpose: make /app feel like an experience prototype inside
   the ZEN LAMP PROJECT site, while preserving existing JS IDs.
   ========================================================= */

:root{
  --zl-bg-deep:#120e0a;
  --zl-bg-warm:#1d160f;
  --zl-paper:#fbf7ed;
  --zl-paper-soft:#f3eadb;
  --zl-ink:#19130d;
  --zl-muted:#756a5c;
  --zl-line:rgba(155,116,55,.26);
  --zl-gold:#d9b168;
  --zl-gold-deep:#9f7434;
  --zl-wa:#d98d75;
  --zl-gen:#6d91be;
  --zl-ku:#b9a8dd;
  --zl-shadow:0 28px 90px rgba(0,0,0,.28);
}

body{
  background:
    radial-gradient(circle at 18% 0%, rgba(217,177,104,.18), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(148,131,199,.12), transparent 34%),
    linear-gradient(180deg,var(--zl-bg-deep),var(--zl-bg-warm) 54%,#0d0a07);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size:44px 44px;
  opacity:.8;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.85), transparent 82%);
}

/* Hero */
.hero{
  background:
    radial-gradient(circle at 50% 40%, rgba(217,177,104,.16), transparent 38%),
    linear-gradient(to bottom, rgba(0,0,0,.44), rgba(0,0,0,.92));
}

.hero__inner{
  width:min(820px,92vw);
  padding:34px 0 58px;
}

.hero__lamp{
  width:min(188px,40vw);
  filter:drop-shadow(0 0 28px rgba(217,177,104,.24));
}

.hero__logo-image{
  width:min(500px,88vw);
}

.project-home-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 16px;
  padding:8px 14px;
  border:1px solid rgba(217,177,104,.26);
  border-radius:999px;
  color:rgba(255,247,230,.72);
  background:rgba(255,255,255,.045);
  font-size:.82rem;
  letter-spacing:.08em;
  transition:background .22s ease, transform .22s ease, color .22s ease;
}

.project-home-link:hover{
  color:#fff7e6;
  background:rgba(217,177,104,.12);
  transform:translateY(-1px);
}

.hero__manifesto{
  margin-top:20px;
  color:rgba(255,247,230,.78);
  font-size:15px;
}

.hero__prototype-note{
  width:min(520px,100%);
  margin:14px auto 0;
  padding:12px 16px;
  border:1px solid rgba(217,177,104,.22);
  border-radius:999px;
  color:rgba(255,247,230,.72);
  background:rgba(217,177,104,.075);
  font-size:.84rem;
  line-height:1.65;
}

/* Buttons */
.btn{
  border-radius:999px;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

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

.btn--primary,
.btn--paper{
  background:linear-gradient(135deg,var(--zl-gold),var(--zl-gold-deep));
  border:1px solid rgba(255,255,255,.22);
  color:#1c1208;
  box-shadow:0 14px 38px rgba(217,177,104,.18);
}

.btn--secondary-nav{
  border:1px solid rgba(255,247,230,.14);
  background:rgba(255,255,255,.055);
  color:rgba(255,247,230,.82);
}

.btn--secondary-nav:hover{
  border-color:rgba(217,177,104,.38);
  background:rgba(217,177,104,.10);
}

.btn--dark{
  background:#16120d;
  color:#fff7e6;
  border:1px solid rgba(25,19,13,.8);
}

/* Common app shell */
.app{
  min-height:100svh;
  background:
    radial-gradient(circle at 50% 0%, rgba(217,177,104,.16), transparent 38%),
    linear-gradient(180deg,#efe3cf 0%,#fbf7ed 18%,#efe5d5 100%);
  color:var(--zl-ink);
}

.question-shell{
  width:min(940px,92vw);
  margin:0 auto;
  padding:clamp(26px,5vw,54px) 0;
}

/* Category selection */
.category-select{
  min-height:100svh;
  display:grid;
  place-items:center;
}

.category-select__title{
  font-size:clamp(2rem,5vw,3.7rem);
  line-height:1.18;
  margin:0;
  letter-spacing:.04em;
  color:var(--zl-ink);
}

.category-select__lead{
  color:var(--zl-muted);
  margin:14px 0 0;
}

.category-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.category-card{
  position:relative;
  overflow:hidden;
  min-height:132px;
  padding:24px 22px;
  border:1px solid var(--zl-line);
  border-radius:24px;
  background:rgba(255,255,255,.52);
  box-shadow:0 12px 40px rgba(65,42,16,.08);
  text-align:left;
  cursor:pointer;
}

.category-card::after{
  content:"";
  position:absolute;
  right:-34px;
  bottom:-40px;
  width:118px;
  aspect-ratio:1;
  border-radius:50%;
  background:rgba(217,177,104,.13);
}

.category-card:hover{
  transform:translateY(-3px);
  border-color:rgba(159,116,52,.38);
  background:rgba(255,255,255,.76);
  box-shadow:0 18px 54px rgba(65,42,16,.12);
}

.category-card__name{
  position:relative;
  display:block;
  font-size:1.28rem;
  font-weight:700;
  color:var(--zl-ink);
  z-index:1;
}

.category-card__desc{
  position:relative;
  display:block;
  margin-top:10px;
  color:var(--zl-muted);
  line-height:1.55;
  z-index:1;
}

.category-select__special{
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid var(--zl-line);
}

.category-select__special-label{
  color:var(--zl-gold-deep);
  letter-spacing:.12em;
  font-size:.86rem;
}

/* Question screen */
.question-top{
  margin-bottom:22px;
}

.question-top__label{
  color:var(--zl-gold-deep);
  letter-spacing:.16em;
  font-size:.82rem;
}

.prelude{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.prelude__lens{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  flex:1 1 620px;
}

.prelude__lens-item{
  border:1px solid var(--zl-line);
  border-radius:20px;
  background:rgba(255,255,255,.50);
  padding:12px;
  box-shadow:0 10px 34px rgba(65,42,16,.07);
}

.prelude__lens-icon{
  width:48px;
  height:48px;
  object-fit:contain;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.12));
}

.prelude__lens-name{
  color:var(--zl-ink);
  font-size:1.1rem;
}

.prelude__lens-text{
  color:var(--zl-muted);
}

.question-card{
  position:relative;
  border:1px solid rgba(159,116,52,.32);
  border-radius:32px;
  background:
    radial-gradient(circle at 50% -20%, rgba(217,177,104,.20), transparent 42%),
    rgba(255,255,255,.66);
  box-shadow:var(--zl-shadow);
  padding:clamp(28px,5vw,56px);
  overflow:hidden;
}

.question-card::before{
  content:"灯";
  position:absolute;
  top:18px;
  right:24px;
  font-size:5rem;
  line-height:1;
  color:rgba(159,116,52,.055);
  font-weight:700;
}

.question-card__breath{
  color:var(--zl-gold-deep);
  letter-spacing:.12em;
  font-size:.85rem;
}

.question-card__text{
  color:var(--zl-ink);
  font-size:clamp(1.45rem,3.5vw,2.45rem);
  line-height:1.75;
  letter-spacing:.04em;
}

/* Chat/input */
.chat-card,
.input-card,
.reflection-card{
  border:1px solid var(--zl-line);
  border-radius:26px;
  background:rgba(255,255,255,.58);
  box-shadow:0 16px 54px rgba(65,42,16,.08);
}

.input-card{
  margin-top:18px;
  padding:22px;
}

.input-card__label{
  color:var(--zl-gold-deep);
  letter-spacing:.12em;
}

.input-card__textarea{
  border:1px solid rgba(159,116,52,.22);
  border-radius:20px;
  background:rgba(255,255,255,.72);
  color:var(--zl-ink);
  box-shadow:inset 0 2px 12px rgba(65,42,16,.035);
}

.input-card__textarea:focus{
  outline:none;
  border-color:rgba(159,116,52,.48);
  box-shadow:0 0 0 4px rgba(217,177,104,.12);
}

.input-card__actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

/* Silence */
.silence{
  background:
    radial-gradient(circle at 50% 18%, rgba(185,168,221,.20), transparent 38%),
    linear-gradient(180deg,#17120e,#080706);
}

.silence__inner{
  border:1px solid rgba(255,255,255,.12);
  border-radius:34px;
  background:rgba(255,255,255,.045);
  box-shadow:var(--zl-shadow);
  backdrop-filter:blur(14px);
}

.silence__enso{
  filter:drop-shadow(0 14px 32px rgba(185,168,221,.20));
}

/* Panels */
.logs-stage,
.world-stage,
.what-is-stage,
.manifesto-stage{
  background:
    radial-gradient(circle at 50% 0%, rgba(217,177,104,.14), transparent 36%),
    linear-gradient(180deg,#fbf7ed,#eee2cf);
}

.logs-stage .question-shell,
.world-stage .question-shell,
.what-is-stage .question-shell,
.manifesto-stage .question-shell{
  color:var(--zl-ink);
}

/* Mobile */
@media(max-width:760px){
  .hero__inner{padding-top:22px}
  .hero__actions{gap:10px}
  .hero__prototype-note{border-radius:18px}
  .category-grid{grid-template-columns:1fr}
  .prelude{display:block}
  .prelude__lens{grid-template-columns:1fr; margin-bottom:14px}
  .question-card{border-radius:26px}
  .input-card__actions{justify-content:stretch}
  .input-card__actions .btn{flex:1 1 100%}
}



/* =========================================================
   ZEN LAMP App UI Refresh v1.5
   Hide the hero GIF/photo so the first view feels calmer and
   more consistent with the PROJECT site.
   ========================================================= */

.hero__lamp,
.hero__lamp-video,
.hero__lamp-image,
.hero__visual,
.hero__media,
.hero video,
.hero picture {
  display: none !important;
}

.hero__inner {
  padding-top: clamp(54px, 8vh, 92px);
}

.hero::before {
  content: "";
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 36%, #fff1b8 0 10%, #e6bd5e 11% 31%, #8c6229 32% 58%, transparent 59%),
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  border: 1px solid rgba(232, 195, 106, .42);
  box-shadow:
    0 0 30px rgba(232,195,106,.26),
    0 0 80px rgba(232,195,106,.10);
}

.hero__logo-image {
  margin-top: 0;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.28));
}

.hero__prototype-note {
  max-width: 760px;
}



/* ZEN LAMP App UI Refresh v1.6
   Smooth entry into the experience area after pressing "灯す". */
#app,
#categorySelect,
#questionStage {
  scroll-margin-top: 24px;
}

.category-select,
.question-stage {
  animation: zlFadeSlideIn .45s ease both;
}

@keyframes zlFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* =========================================================
   ZEN LAMP App UI Refresh v1.7
   Make the final/reflection card area light, so the question
   can be read calmly and the card feels printable/shareable.
   ========================================================= */

.reflection-card,
#reflectionCard {
  background:
    radial-gradient(circle at 50% 0%, rgba(217,177,104,.13), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #f4ead9 100%) !important;
  color: #19130d !important;
}

#reflectionCard .question-shell,
.reflection-card .question-shell {
  color: #19130d !important;
}

.reflection-card__panel,
.reflection-card__inner,
.reflection-card .card,
#reflectionCard .card,
.share-card,
.log-share-card {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(155,116,55,.28) !important;
  box-shadow: 0 22px 72px rgba(79, 52, 20, .14) !important;
  color: #19130d !important;
}

#cardQuestion,
#cardFirst,
#cardLast,
.reflection-card h2,
.reflection-card h3,
.reflection-card p,
#reflectionCard h2,
#reflectionCard h3,
#reflectionCard p {
  color: #19130d !important;
}

#cardDate,
#cardLabelQuestion,
#cardLabelFirst,
#cardLabelLast,
.shareLead,
#shareLead,
.reflection-card .muted,
#reflectionCard .muted {
  color: #756a5c !important;
}

#reflectionCard::before,
.reflection-card::before {
  opacity: .12;
}

#reflectionCard .btn--primary,
.reflection-card .btn--primary,
#reflectionCard .btn--paper,
.reflection-card .btn--paper {
  background: linear-gradient(135deg, #d9b168, #9f7434) !important;
  color: #1c1208 !important;
  border-color: rgba(255,255,255,.25) !important;
}

#reflectionCard .btn--dark,
.reflection-card .btn--dark {
  background: #fffaf0 !important;
  color: #19130d !important;
  border-color: rgba(155,116,55,.32) !important;
}

#reflectionCard img,
.reflection-card img {
  filter: drop-shadow(0 12px 28px rgba(79,52,20,.16));
}

/* If the result card uses a dark centered modal, lighten it too. */
.reflection-card__content,
.reflection-card__body,
.final-card,
.result-card,
#reflectionCard .reflection-card__content,
#reflectionCard .reflection-card__body,
#reflectionCard .final-card,
#reflectionCard .result-card {
  background: rgba(255,255,255,.82) !important;
  color: #19130d !important;
  border-color: rgba(155,116,55,.28) !important;
}



/* ZEN LAMP App UI Refresh v1.8
   Smooth slide for "これまでの灯" and "世界の灯" panels too. */
#logsStage,
#worldStage,
#whatIsStage,
#manifestoStage {
  scroll-margin-top: 24px;
}

.logs-stage,
.world-stage,
.what-is-stage,
.manifesto-stage {
  animation: zlFadeSlideIn .45s ease both;
}


/* =========================================================
   ZEN LAMP World Globe UI v2 (zoom enabled)
   More realistic glass-panel globe, region focus pills, and
   better zoomable interaction while preserving the calm tone.
   ========================================================= */

.world-map-wrap{
  position:relative;
  background:
    radial-gradient(circle at 50% 14%, rgba(113,152,205,.14), transparent 28%),
    radial-gradient(circle at 14% 8%, rgba(212,175,55,.10), transparent 24%),
    linear-gradient(180deg,#071018 0%, #060b11 100%);
  border-radius:32px;
  border:1px solid rgba(113,152,205,.16);
  padding:18px;
  overflow:hidden;
  box-shadow:0 26px 90px rgba(0,0,0,.18);
}

.world-map-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.10), transparent 1.2px),
    radial-gradient(circle at 74% 18%, rgba(255,255,255,.14), transparent 1.3px),
    radial-gradient(circle at 22% 78%, rgba(255,255,255,.11), transparent 1.2px),
    radial-gradient(circle at 54% 66%, rgba(255,255,255,.09), transparent 1.2px),
    radial-gradient(circle at 84% 72%, rgba(255,255,255,.12), transparent 1.2px);
  background-size:220px 220px;
  opacity:.52;
}

.world-map-controls{
  position:absolute;
  top:22px;
  right:22px;
  z-index:22;
  display:flex;
  gap:10px;
}

.world-map-container{
  position:relative;
  background:
    radial-gradient(circle at 50% 20%, rgba(140,179,255,.08), transparent 38%),
    linear-gradient(180deg,#03070b,#040b12);
  border-radius:26px;
  overflow:hidden;
  cursor:grab;
  min-height:500px;
  border:1px solid rgba(255,255,255,.05);
}

.world-map-container.is-dragging{cursor:grabbing}

.world-globe{
  position:relative;
  width:100%;
  height:600px;
  z-index:1;
}

.world-globe canvas{
  display:block;
  outline:none;
}

.world-map-hint{
  position:absolute;
  left:24px;
  top:24px;
  z-index:22;
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.24);
  background:rgba(7,12,18,.72);
  color:#ecd9b2;
  font-size:.84rem;
  letter-spacing:.04em;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(10px);
}

.world-map-legend{
  position:absolute;
  left:24px;
  bottom:22px;
  z-index:22;
  max-width:min(420px, calc(100% - 48px));
  padding:12px 16px;
  border-radius:18px;
  border:1px solid rgba(212,175,55,.18);
  background:rgba(8,14,20,.74);
  color:#e9dcc5;
  font-size:.84rem;
  line-height:1.5;
  backdrop-filter:blur(10px);
}

.world-map-legend__item{display:flex;align-items:center;gap:10px}
.world-map-legend__dot{
  width:10px;height:10px;border-radius:50%;
  background:#d4af37;
  box-shadow:0 0 14px rgba(212,175,55,.9), 0 0 26px rgba(212,175,55,.24);
  flex:0 0 auto;
}

.world-region-pills{
  position:absolute;
  left:24px;
  right:24px;
  top:76px;
  z-index:21;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.world-region-pill{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,12,18,.66);
  color:#e8d9bd;
  border-radius:999px;
  padding:10px 14px;
  font-size:.84rem;
  letter-spacing:.04em;
  box-shadow:0 8px 24px rgba(0,0,0,.16);
  backdrop-filter:blur(10px);
  transition:background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.world-region-pill:hover{
  transform:translateY(-1px);
  border-color:rgba(212,175,55,.34);
  background:rgba(22,30,40,.76);
  color:#fff2d2;
}

.world-region-pill.is-active{
  border-color:rgba(255,224,154,.48);
  background:linear-gradient(180deg, rgba(54,44,26,.92), rgba(26,20,12,.92));
  color:#fff2d2;
  box-shadow:0 10px 28px rgba(0,0,0,.18), 0 0 18px rgba(212,175,55,.14);
}

.world-region-pill--mine{
  border-color:rgba(255,231,148,.36);
}

.world-map-message{
  margin:14px 4px 0;
  color:#e7d6ac;
  font-size:.95rem;
  letter-spacing:.04em;
}

.world-stage__countries{
  margin-top:20px;
  background:linear-gradient(180deg,#fffdf8,#f7f1e7);
  border:1px solid var(--line);
  border-radius:26px;
  padding:20px;
}

.country-lights-list{display:flex;flex-wrap:wrap;gap:10px}
.country-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  background:#fffaf1;border:1px solid rgba(159,122,63,.2);color:var(--ink);font-size:.9rem
}
.country-chip__dot{
  width:8px;height:8px;border-radius:50%;background:#d4af37;
  box-shadow:0 0 8px rgba(212,175,55,.7)
}

@media (max-width:860px){
  .world-map-controls{
    top:unset;
    bottom:20px;
    right:20px;
  }
  .world-map-hint{
    top:18px;
    left:18px;
    right:18px;
    border-radius:16px;
    justify-content:center;
    text-align:center;
  }
  .world-region-pills{
    left:18px;
    right:18px;
    top:70px;
  }
  .world-map-legend{
    left:18px;
    right:18px;
    max-width:none;
    bottom:76px;
  }
}

@media (max-width:640px){
  .world-map-container{min-height:420px}
  .world-globe{height:460px}
  .world-map-controls{
    position:static;
    margin-bottom:12px;
    justify-content:stretch;
  }
  .world-map-controls .btn{
    width:auto;
    flex:1 1 0;
  }
  .world-map-hint{
    position:static;
    margin-bottom:12px;
    font-size:.8rem;
  }
  .world-region-pills{
    position:static;
    margin-bottom:12px;
  }
  .world-region-pill{
    flex:1 1 calc(50% - 10px);
    text-align:center;
    justify-content:center;
  }
  .world-map-legend{
    position:static;
    margin-top:12px;
  }
}



/* =========================================================
   ZEN LAMP App UI Refresh v2.2
   "空へ" / silence countdown screen should be white-paper toned,
   not dark. This is the screen with the enso image and countdown.
   ========================================================= */

#silenceSection,
.silence {
  background:
    radial-gradient(circle at 50% 8%, rgba(217,177,104,.16), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #f4ead9 100%) !important;
  color: #19130d !important;
}

#silenceSection .question-shell,
.silence .question-shell {
  color: #19130d !important;
}

#silencePanel,
.silence__inner,
#generatingPanel,
.generating-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(217,177,104,.10), transparent 42%),
    rgba(255, 255, 255, .76) !important;
  border: 1px solid rgba(155,116,55,.26) !important;
  box-shadow: 0 24px 76px rgba(79,52,20,.14) !important;
  color: #19130d !important;
}

#silenceTitle,
#timerText,
#silenceLead,
#generatingTitle,
#generatingPercent,
.silence h2,
.silence p,
.silence span,
.generating-panel h2,
.generating-panel p,
.generating-panel span {
  color: #19130d !important;
}

#silenceTitle,
.silence__title {
  color: #756a5c !important;
}

#timerText,
.silence__timer {
  color: #9f7434 !important;
  text-shadow: 0 8px 26px rgba(159,116,52,.14) !important;
}

#silenceLead,
.silence__lead {
  color: #756a5c !important;
}

#silenceSection img,
.silence img,
.silence__enso {
  filter: drop-shadow(0 16px 36px rgba(79,52,20,.16)) contrast(1.05) !important;
  opacity: .92 !important;
}

.generating-panel__bar,
#generatingBarWrap {
  background: #e8ddcc !important;
  border: 1px solid rgba(155,116,55,.16) !important;
}

.generating-panel__bar span,
#generatingBar {
  background: linear-gradient(90deg, rgba(217,177,104,.56), rgba(159,116,52,.86)) !important;
}

/* Keep the result/reflection card white too */
#reflectionCard,
.reflection-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(217,177,104,.13), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #f4ead9 100%) !important;
  color: #19130d !important;
}

#reflectionCard .reflection-card__inner,
.reflection-card__inner {
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(155,116,55,.28) !important;
  border-radius: 28px !important;
  box-shadow: 0 22px 72px rgba(79,52,20,.14) !important;
  padding: 32px 26px !important;
  color: #19130d !important;
}

#reflectionCard p,
#reflectionCard h2,
#reflectionCard h3,
.reflection-card p,
.reflection-card h2,
.reflection-card h3 {
  color: #19130d !important;
}


/* Mobile globe hard fix: initialize and display the 3D canvas at the real smartphone width. */
@media (max-width: 640px) {
  .world-map-wrap {
    padding: 12px;
  }

  .world-map-container {
    width: 100%;
    min-height: 420px;
    overflow: hidden;
  }

  .world-globe {
    width: 100% !important;
    height: 420px !important;
    max-width: 100% !important;
    margin: 0 auto;
    overflow: hidden;
  }

  .world-globe canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block;
  }
}
