:root {
    --bg: #1a1412;
    --panel: #251d1a;
    --panel-2: #302622;
    --line: #443732;
    --text: #f6eee6;
    --muted: #b1a196;
    --accent: #ffb454;
    --accent-2: #ff7a59;
    --radius: 16px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1000px 520px at 50% -10%, #4a2e22 0%, var(--bg) 62%) fixed; color: var(--text); }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
main { max-width: 860px; margin: 0 auto; padding: 16px 16px 48px; }

header { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
header h1 { white-space: nowrap; font: 700 clamp(1.05rem, 5vw, 1.3rem) Georgia, "Times New Roman", serif; margin: 0; color: var(--accent); letter-spacing: .04em; }
header .right { display: flex; gap: 10px; align-items: center; }
h2 { font: 700 1.9rem/1.15 Georgia, "Times New Roman", serif; margin: .2em 0 .4em; }
p { margin: .5em 0; }
section { display: flex; flex-direction: column; gap: 14px; }
.hero { max-width: 640px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin: 0; }
.fine { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }
.scene { font: italic 1.15rem Georgia, "Times New Roman", serif; text-align: center; margin: 0; color: var(--muted); }

.btn { appearance: none; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 999px; cursor: pointer; min-height: 46px; }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #2a1408; border-color: transparent; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 15px 22px; font-size: 1.05rem; }
.btn:focus-visible, .link:focus-visible, input:focus-visible, .chipbtn:focus-visible, .spot:focus-visible, .crumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.link { white-space: nowrap; background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }
.chip { white-space: nowrap; display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }

label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .9rem; }
input { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: .85rem; }
.chipbtn:hover { color: var(--text); border-color: var(--accent); }
.shared { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 10px 14px; }
.shared p { margin: .2em 0 0; color: var(--muted); }

.stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.stage > img, .stage .blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .blank { background: linear-gradient(135deg, #3a2a22, #251d1a); }
.stage.busy > img { filter: blur(6px) brightness(.7); transform: scale(1.03); }
.veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 20px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.veil p { font: italic 1.2rem Georgia, "Times New Roman", serif; margin: 0; }
.veil small { color: #e9dccf; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); animation: spin 1s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.finding { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(20, 14, 12, .82); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }

.spot { position: absolute; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.spot .dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(255, 244, 224, .92); box-shadow: 0 0 0 4px rgba(255, 180, 84, .55), 0 2px 10px rgba(0, 0, 0, .5); animation: pulse 1.8s ease-in-out infinite; }
.spot .tag { position: absolute; left: 50%; top: calc(50% + 18px); transform: translateX(-50%); background: rgba(20, 14, 12, .85); color: var(--text); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.spot.up .tag { top: auto; bottom: calc(50% + 18px); }
.spot:hover .dot, .spot:focus-visible .dot { background: var(--accent); animation: none; transform: scale(1.25); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 180, 84, .15), 0 2px 10px rgba(0, 0, 0, .5); } }

.crumbs { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.crumb { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .72rem; padding: 0; }
.crumb img { width: 92px; height: 69px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.crumb.on img { border-color: var(--accent); }
.crumb.on { color: var(--text); }
.crumb span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: var(--muted); flex: 0 0 auto; margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.error { background: #3d1c1a; border: 1px solid #ff8066; color: #ffddd5; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .spinner, .spot .dot { animation: none; } }

.powered { max-width: 860px; margin: 0 auto; padding: 0 16px 28px; color: var(--muted); font-size: .8rem; text-align: center; }
.powered a { color: inherit; }
