/* Verbena: una imagen y unas pocas palabras. Sin marcos, sin paneles, sin iconos. */
:root { color-scheme: dark; --ink: #08080e; --text: #f4efe6; --dim: rgba(244, 239, 230, .62); --font: "DotGothic16", "Courier New", ui-monospace, monospace; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.35 var(--font); overflow: hidden; -webkit-font-smoothing: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; }
button:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
[hidden] { display: none !important; }
#world { position: fixed; inset: 0 auto auto 0; display: block; image-rendering: pixelated; cursor: crosshair; touch-action: manipulation; }

.song { position: fixed; left: max(28px, env(safe-area-inset-left, 0px)); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 56px); pointer-events: none; transition: opacity .6s; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink); }
.song p { color: var(--text) !important; }
.song h1 { margin: 0; font-size: 22px; font-weight: 400; }
.song p { margin: 0; font-size: 14px; color: var(--dim); }
.dock { position: fixed; right: max(28px, env(safe-area-inset-right, 0px)); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 22px; font-size: 15px; transition: opacity .5s; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px -2px 0 var(--ink); }
body:not(.live) .dock, body:not(.live) .song { opacity: 0; pointer-events: none; }
body:not(.live) .dock button { pointer-events: none; }
.idle .dock { opacity: 0; }
.idle .dock button { pointer-events: none; }
.idle #world { cursor: none; }
#like.active { color: #ffd98a; }

.rec .song h1::before { content: "● "; color: #ff6b5e; }
.hint { position: fixed; left: 50%; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); margin: 0; font-size: 15px; text-align: center; z-index: 1; pointer-events: none; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink); }

.start { position: fixed; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none !important; }
.start .name { font-size: 40px; letter-spacing: .02em; text-shadow: 0 2px 0 var(--ink); }
.start .go { font-size: 16px; color: var(--dim); }
.start .name, .start .go { text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink); }
.start:hover .go { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.sheet { width: min(520px, calc(100vw - 32px)); max-height: min(84vh, 760px); padding: 28px; border: 0; color: var(--text); background: rgba(8, 8, 14, .94); }
.sheet::backdrop { background: rgba(8, 8, 14, .35); }
.sheet form:first-child { position: absolute; right: 22px; top: 16px; margin: 0; }
.close { color: var(--dim); }
.sheet section { margin-bottom: 22px; }
.sheet h2 { margin: 0 0 6px; font-size: 13px; font-weight: 400; color: var(--dim); }
.words { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.words button { color: var(--dim); }
.words button.active { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.two { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.dots { display: flex; gap: 6px; align-items: center; height: 29px; }
.dots button { width: 10px; height: 10px; padding: 0; background: rgba(244, 239, 230, .2); }
.dots button.active { background: var(--text); }
.muted { color: var(--dim); }
.small { font-size: 14px; margin: 8px 0 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.list li > button:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.list small { color: var(--dim); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .x { color: var(--dim); font-size: 13px; }
.list .none { color: var(--dim); font-size: 14px; }
.numform { margin-top: 8px; }
.numform input { width: 100%; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid rgba(244, 239, 230, .3); color: var(--text); font: inherit; font-size: 14px; outline-offset: 3px; }

@media (max-width: 620px) {
  .song { left: 18px; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .song h1 { font-size: 18px; }
  .dock { left: 18px; right: 18px; justify-content: space-between; gap: 8px; }
  .sheet { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .song, .dock { transition: none; } }
