:root { --ink: #0b0b0b; --paper: #f2efe8; --hot: #c8ff2e; --mute: #8f8b82; --line: #3a3833; --bad: #ff6b5b;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100svh; display: flex; flex-direction: column; background: var(--ink); color: var(--paper); font: 15px/1.5 var(--mono);
	padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--hot); }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: max(14px, env(safe-area-inset-top)) 0 14px; border-bottom: 2px solid var(--line); }
.mark { color: var(--paper); text-decoration: none; font-weight: 800; font-size: 30px; letter-spacing: -.06em; line-height: 1; }
.eye { display: inline-block; transform-origin: 50% 62%; animation: blink 6.5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.tag { margin: 0; color: var(--mute); flex: 1 1 200px; }
.go { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.go label { color: var(--mute); font-size: 13px; }
.go input { width: 6.2em; padding: 7px 9px; background: var(--ink); border: 2px solid var(--paper); text-transform: lowercase; letter-spacing: .12em; }
.go button, .row button, .say button, .ideas button, .mine button, .report button, .open {
	padding: 7px 12px; background: var(--paper); color: var(--ink); border: 2px solid var(--paper); font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--hot); }
.go button:hover, .row button:hover, .say button:hover, .ideas button:hover, .mine button:hover, .report button:hover, .open:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hot); }
button:disabled { opacity: .5; cursor: default; transform: none !important; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }

.banner { margin: 12px 0 0; padding: 10px 14px; border: 2px solid var(--hot); color: var(--paper); }

.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 18px; min-height: 0; }
.stage.has-page { grid-template-columns: minmax(320px, 5fr) minmax(0, 6fr); }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.start h1 { margin: 6vh 0 10px; font-size: clamp(30px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.start p { margin: 0 0 18px; color: var(--mute); max-width: 46em; }
.ideas, .mine { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.ideas button { background: var(--ink); color: var(--paper); text-align: left; box-shadow: 3px 3px 0 var(--line); }
.mine { align-items: center; color: var(--mute); }
.mine button { padding: 4px 10px; letter-spacing: .1em; }

.log { list-style: none; margin: 0; padding: 0 2px 0 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1 1 auto; min-height: 120px; }
.msg { max-width: 88%; padding: 10px 14px; border: 2px solid var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; border-color: var(--hot); box-shadow: -4px 4px 0 var(--hot); }
.msg.y0 { align-self: flex-start; box-shadow: 4px 4px 0 var(--line); }
.msg.y0::before { content: "y00r"; display: block; margin-bottom: 4px; color: var(--hot); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.msg.me::before { content: "you"; display: block; margin-bottom: 4px; color: var(--mute); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.msg.bad { border-color: var(--bad); }
.msg .note { display: block; margin-top: 8px; color: var(--mute); font-size: 12.5px; }
.msg .note.hot { color: var(--hot); }
.dots::after { content: ""; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.say { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; }
.say textarea { flex: 1; min-height: 52px; max-height: 40vh; resize: vertical; padding: 10px 12px; background: var(--ink); border: 3px solid var(--paper); box-shadow: 5px 5px 0 var(--hot); }
.say button { min-width: 6em; }
.fine { margin: 10px 0 0; color: var(--mute); font-size: 12px; }

.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; }
.card { border: 3px solid var(--paper); padding: 14px 16px; box-shadow: 8px 8px 0 var(--hot); }
.label { margin: 0 0 4px; color: var(--mute); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.addr { display: inline-block; font-size: clamp(18px, 2.6vw, 26px); font-weight: 800; word-break: break-all; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.id { padding: 6px 10px; border: 2px dashed var(--hot); letter-spacing: .08em; }
.id strong { color: var(--hot); letter-spacing: .14em; }
.keep { margin: 10px 0 0; color: var(--mute); font-size: 12.5px; }
.ptitle { margin: 4px 0 0; color: var(--paper); font-weight: 800; overflow-wrap: anywhere; }
.msg .again { display: block; margin-top: 10px; padding: 5px 10px; background: var(--paper); color: var(--ink); border: 2px solid var(--paper); font-weight: 800; box-shadow: 3px 3px 0 var(--hot); }
.msg .again:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hot); }
.frame { flex: 1; min-height: 52vh; border: 3px solid var(--paper); background: #fff; }
.frame iframe { display: block; width: 100%; height: 100%; min-height: 52vh; border: 0; background: #fff; }
.flash { animation: flash .9s ease-out 1; }
@keyframes flash { from { box-shadow: 0 0 0 6px var(--hot); } to { box-shadow: 0 0 0 0 transparent; } }

.report { max-width: 520px; width: calc(100% - 32px); padding: 22px; background: var(--ink); color: var(--paper); border: 3px solid var(--paper); box-shadow: 10px 10px 0 var(--hot); }
.report::backdrop { background: rgba(0, 0, 0, .7); }
.report h2 { margin: 0 0 8px; }
.report textarea { width: 100%; padding: 10px; background: var(--ink); border: 2px solid var(--paper); }
.report-done { color: var(--hot); }
.report-done.bad { color: var(--bad); }

@media (max-width: 860px) {
	.stage.has-page { grid-template-columns: minmax(0, 1fr); }
	.side { order: -1; }
	.frame, .frame iframe { min-height: 46vh; }
	.log { max-height: none; }
	.msg { max-width: 96%; }
}
@media (prefers-reduced-motion: reduce) { .eye, .dots::after, .flash { animation: none; } }
[hidden] { display: none !important; }
