:root{color-scheme:dark;--bg: #0f0f14;--panel: #17171f;--fg: #f2eee8;--muted: #8d8896;--accent: #ff8f6b;--accent-soft: rgba(255, 143, 107, .16);--danger: #ff7a7a}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,sans-serif}body{min-height:100dvh;display:grid;place-items:center}#app{width:100%;max-width:32rem;padding:2rem 1.5rem}.shell{text-align:center}.eyebrow{margin:0 0 .75rem;color:var(--muted);font-size:.75rem;letter-spacing:.18em;text-transform:uppercase}h1{margin:0;font-size:clamp(2.2rem,8vw,3.4rem);font-weight:600;letter-spacing:.04em}.subtitle{margin:.75rem 0 2rem;color:var(--accent);font-size:1.05rem}.notice{margin:0 0 1.5rem;padding:.75rem 1rem;border-radius:.75rem;background:var(--panel);color:var(--fg);font-size:.95rem}.notice.error{color:var(--danger)}.actions{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem}button{font:inherit;cursor:pointer;border-radius:999px;border:1px solid transparent;padding:.85rem 1.4rem;transition:background .15s ease,border-color .15s ease,transform .1s ease}button:active{transform:scale(.98)}.primary{background:var(--accent);color:#22120c;font-weight:600}.primary:hover{background:#ffa184}.secondary{background:transparent;border-color:#f2eee840;color:var(--fg)}.secondary:hover{border-color:var(--accent)}.install-hint{margin:0 0 1.5rem;color:var(--muted);font-size:.85rem}[data-install][hidden],[data-install-hint][hidden]{display:none}.words-form{display:flex;flex-direction:column;gap:.6rem;text-align:left}.words-form label{color:var(--muted);font-size:.9rem}.words-row{display:flex;gap:.5rem}.words-row input{flex:1;min-width:0}input[type=text],input:not([type]){background:var(--panel);border:1px solid rgba(242,238,232,.15);border-radius:.75rem;color:var(--fg);font:inherit;padding:.8rem 1rem}input:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}.form-error{margin:0;color:var(--danger);font-size:.9rem}.invite-card{background:var(--panel);border-radius:1.25rem;padding:1.25rem;margin-bottom:1.5rem;text-align:left}.label{margin:0 0 .5rem;color:var(--muted);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}.copy-row{display:flex;gap:.5rem}.copy-row input{flex:1;min-width:0;font-size:.85rem}.qr-slot{display:grid;place-items:center;min-height:0;margin:1rem 0 0}.qr{width:12rem;height:12rem;border-radius:.75rem;image-rendering:pixelated}.word-code{margin:0;font-size:1.35rem;letter-spacing:.04em;color:var(--accent)}.status{margin:0;color:var(--muted);font-size:.95rem}.room{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;padding:max(.75rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.75rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left))}.room-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem .75rem}.room-code{color:var(--muted);font-size:.85rem;letter-spacing:.06em}.presence{font-size:.85rem;color:var(--muted)}.presence.online{color:var(--accent)}.room-toolbar{display:flex;justify-content:flex-end;gap:.5rem;padding:.4rem .25rem 0}.room-action{min-height:44px;padding:0 1.2rem}.room-stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:1.5rem;background:radial-gradient(circle at 30% 20%,rgba(255,143,107,.08),transparent 60%),var(--panel)}.stage-canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.scene-captured{visibility:hidden}.style-panel{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem .75rem;margin-top:.75rem;padding:.5rem .75rem;border-radius:1rem;background:#17171fe0}.style-group{display:flex;align-items:center;gap:.4rem}.style-chip,.color-chip{min-width:44px;min-height:44px;touch-action:manipulation}.style-chip{padding:0 .85rem;background:transparent;border-color:#f2eee82e;color:var(--muted);font-size:.85rem}.style-chip.active{background:var(--accent-soft);border-color:var(--accent);color:var(--fg)}.color-chip{width:44px;height:44px;padding:0;border-radius:50%;border:2px solid transparent;background:var(--chip)}.color-chip.active{border-color:var(--fg);box-shadow:0 0 0 3px var(--accent-soft)}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;flex-direction:column;gap:.75rem;background:var(--bg);padding:max(.75rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.75rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left))}.overlay-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.25rem .25rem 0}.overlay-title{margin:0;font-size:1.15rem;font-weight:600;letter-spacing:.02em}.overlay-close{min-height:44px;min-width:44px;padding:0 1.1rem;flex:none}.overlay-body{flex:1;min-height:0;display:flex}.memory-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:.5rem;overflow-y:auto;padding-right:.25rem}.memory-list[hidden]{display:none}.memory-day{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;min-height:56px;padding:.75rem 1rem;border-radius:1rem;border:1px solid rgba(242,238,232,.12);background:var(--panel);color:var(--fg);text-align:left}.memory-day:hover{border-color:var(--accent)}.memory-day-left{display:flex;flex-direction:column;gap:.15rem;min-width:0}.memory-day-date{font-size:1rem}.memory-day-key{color:var(--muted);font-size:.78rem;letter-spacing:.04em}.memory-day-count{flex:none;padding:.3rem .7rem;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.85rem}.memory-empty{margin:auto;padding:1.5rem;color:var(--muted);text-align:center}.memory-empty[hidden]{display:none}.replay-stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:1.5rem;background:radial-gradient(circle at 30% 20%,rgba(255,143,107,.08),transparent 60%),var(--panel)}.replay-canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;touch-action:none}.replay-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;margin:0;padding:1.5rem;color:var(--muted);text-align:center}.replay-empty[hidden]{display:none}.replay-controls{display:flex;flex-direction:column;gap:.6rem;padding:0 .25rem .25rem}.replay-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.replay-toggle{min-height:48px;min-width:9rem;padding:0 1.2rem}.replay-time{color:var(--muted);font-size:.9rem;font-variant-numeric:tabular-nums}.replay-progress{height:.6rem;border-radius:999px;background:#f2eee81f;overflow:hidden}.replay-progress-fill{width:0%;height:100%;border-radius:inherit;background:var(--accent)}.note-action{display:inline-flex;align-items:center;gap:.4rem}.note-action.offline{color:var(--muted);border-style:dashed}.notes-badge{display:grid;place-items:center;min-width:1.4rem;height:1.4rem;padding:0 .35rem;border-radius:999px;background:var(--accent);color:#22120c;font-size:.75rem;font-weight:600;line-height:1}.notes-badge[hidden]{display:none}button:disabled{opacity:.55;cursor:not-allowed}.notes-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:.5rem;overflow-y:auto;padding-right:.25rem}.notes-list[hidden]{display:none}.note-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;min-height:56px;padding:.75rem 1rem;border-radius:1rem;border:1px solid rgba(242,238,232,.12);background:var(--panel);color:var(--fg);text-align:left}.note-item:hover{border-color:var(--accent)}.note-item-left{display:flex;flex-direction:column;gap:.15rem;min-width:0}.note-item-date{font-size:1rem}.note-item-meta{color:var(--muted);font-size:.78rem;letter-spacing:.04em}.note-item-unread{flex:none;width:.7rem;height:.7rem;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.notes-empty{margin:auto;padding:1.5rem;color:var(--muted);text-align:center}.notes-empty[hidden]{display:none}.notes-actions{display:flex;justify-content:flex-end;padding:0 .25rem}.notes-create{min-height:48px;min-width:10rem;padding:0 1.2rem}.notes-status{margin:0;padding:0 .25rem .25rem;color:var(--danger);font-size:.9rem}.notes-status[hidden]{display:none}.note-capture-stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:1.5rem;background:radial-gradient(circle at 30% 20%,rgba(255,143,107,.08),transparent 60%),var(--panel)}.note-capture-canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.note-capture-footer{display:flex;flex-direction:column;gap:.5rem;padding:0 .25rem .25rem}.note-capture-counter{display:flex;justify-content:space-between;gap:.75rem;color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums}.note-capture-actions{display:flex;justify-content:space-between;gap:.75rem}.note-capture-cancel,.note-capture-save{min-height:48px;min-width:9rem;padding:0 1.2rem}.note-capture-status{margin:0;color:var(--danger);font-size:.9rem}.note-capture-status[hidden]{display:none}.daily-banner{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.35rem .75rem;margin:0;padding:.35rem .75rem 0;font-size:.9rem}.daily-word{color:var(--accent);letter-spacing:.02em}.daily-status{color:var(--muted);font-size:.82rem}.ritual-action.offline{color:var(--muted);border-style:dashed}.ritual-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:.85rem;padding:.5rem .25rem;overflow-y:auto}.ritual-word{margin:0;font-size:1.4rem;font-weight:600;color:var(--accent)}.ritual-status{margin:0;font-size:1rem}.ritual-utc-note{margin:0;padding:.75rem 1rem;border-radius:.9rem;background:var(--panel);color:var(--muted);font-size:.88rem;line-height:1.45}.ritual-error{margin:0;padding:.75rem 1rem;border-radius:.9rem;background:#ff7a7a1f;color:var(--danger);font-size:.9rem}.ritual-error[hidden]{display:none}.ritual-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem;margin-top:auto}.ritual-panel-action,.ritual-refresh{min-height:48px;min-width:9rem;padding:0 1.2rem;flex:1 1 9rem}.ritual-panel-action[hidden]{display:none}.replay-subtitle{margin:0;padding:0 .25rem;color:var(--muted);font-size:.85rem}@media(max-width:420px){.style-panel{gap:.4rem}.style-chip{padding:0 .6rem}.room-toolbar{flex-wrap:wrap}.room-action{flex:1 1 auto}.daily-banner{font-size:.85rem}}
