/* Uta Box / Teto theme over the FM-1 emulator page (style.css keeps its layout).
   Loaded after style.css: only colours and a couple of accents change. */
:root {
  --red: #e0203c;
  --red-hi: #ff3b5c;
  --red-deep: #8c1224;
  --room: #140a0e;
  --bar: #1d0d12;
  --well: #2a141a;
  --line: #5b2b37;
  --rule: #4a2130;
  --ink: #f6ecef;
  --dim: #cbaab2;
  --faint: #a4818b;
  --amber: #e0203c;
  --amber-hi: #ff3b5c;
  --green: #8ad6a4;
}

html, body {
  background: radial-gradient(1100px 520px at 50% -12%, #3d1520 0%, var(--room) 58%);
}

a { color: var(--red); }
a:hover { color: var(--red-hi); }

header.site {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #2a1017 0%, var(--bar) 100%);
}

.brand .logo { color: var(--red); }

h1, h2, h3 { letter-spacing: .04em; }

button, .btn, input[type="button"], input[type="file"]::file-selector-button {
  border-color: var(--line);
  background: var(--well);
  color: var(--ink);
}
button:hover, .btn:hover { border-color: var(--red); }

button.primary, .primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
button.primary:hover, .primary:hover { background: var(--red-hi); }

.card, .panel, .box, details, section { border-color: var(--line); }

canvas#screen, .screen, .panel canvas {
  box-shadow: 0 0 0 1px var(--line), 0 10px 34px -14px var(--red-deep);
  border-radius: 10px;
}

kbd {
  border: 1px solid var(--line);
  background: var(--well);
  color: var(--ink);
}

h1::before, header.site .brand::before {
  content: "●";
  color: var(--red);
  margin-right: .45em;
  font-size: .8em;
  vertical-align: .08em;
}

::selection { background: var(--red-deep); color: #fff; }

#flashbox {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  font: 13px/1.4 system-ui, "Segoe UI", "Ying Gothic UI", sans-serif;
}
#flashbox button {
  background: #e0203c; border: 1px solid #e0203c; color: #fff; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  box-shadow: 0 8px 24px -10px #8c1224;
}
#flashbox button:hover { background: #ff3b5c; }
#flashbox button:disabled { opacity: .7; cursor: default; }
#flashmsg {
  max-width: 300px; text-align: right; color: #cbaab2; background: #1d0d12cc;
  padding: 6px 10px; border-radius: 8px; border: 1px solid #4a2130;
}

#lyrtoggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 60;
  background: #2a141a; color: #f6ecef; border: 1px solid #5b2b37;
  padding: 10px 16px; border-radius: 10px; cursor: pointer; font: 600 13px system-ui, sans-serif;
}
#lyrtoggle:hover { border-color: #e0203c; }
#lyrbox {
  position: fixed; left: 18px; bottom: 70px; z-index: 60; width: 302px; max-height: 74vh;
  overflow: auto; background: #1d0d12f2; border: 1px solid #4a2130; border-radius: 14px;
  padding: 12px; font: 13px/1.45 system-ui, "Yu Gothic UI", sans-serif; color: #f6ecef;
  box-shadow: 0 18px 44px -18px #000;
}
.lyrhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lyrhead span { color: #cbaab2; font-size: 12px; }
.lyrsongs { display: flex; gap: 4px; margin-bottom: 8px; }
.lyrsongs button, .lyrpages button {
  flex: 1; padding: 5px 0; font-size: 12px; background: #2a141a; color: #f6ecef;
  border: 1px solid #5b2b37; border-radius: 7px; cursor: pointer;
}
.lyrsongs button.on, .lyrgrid + .lyrrow .on { background: #e0203c; border-color: #e0203c; color: #fff; }
#lyrpages { display: flex; gap: 4px; margin-top: 6px; }
.lyrrow { display: flex; gap: 6px; margin: 8px 0; }
#lyrbox input[type="text"], #lyrbox textarea {
  flex: 1; min-width: 0; background: #140a0e; color: #f6ecef; border: 1px solid #5b2b37;
  border-radius: 8px; padding: 7px 9px; font: inherit;
}
#lyrbox button { font: inherit; }
.lyrrow button {
  padding: 7px 12px; background: #2a141a; color: #f6ecef; border: 1px solid #5b2b37;
  border-radius: 8px; cursor: pointer;
}
.lyrrow button:hover { border-color: #e0203c; }
.lyrrow button.primary { background: #e0203c; border-color: #e0203c; color: #fff; font-weight: 600; }
.lyrgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 6px; }
.lyrgrid button {
  padding: 8px 0; font-size: 16px; background: #2a141a; color: #f6ecef;
  border: 1px solid #5b2b37; border-radius: 8px; cursor: pointer;
}
.lyrgrid button:hover { border-color: #e0203c; }
#lyrmsg { margin-top: 8px; color: #cbaab2; font-size: 12px; min-height: 32px; }

#lyrbox .lyrrow.wide { display: block; }
#lyrbox input[type="text"] {
  width: 100%; box-sizing: border-box; display: block;
  background: #140a0e; color: #f6ecef; border: 1px solid #5b2b37; border-radius: 8px;
  padding: 9px 10px; font: 15px/1.3 "Yu Gothic UI", "Meiryo", "MS Gothic", system-ui, sans-serif;
  caret-color: #e0203c;
}
#lyrbox input[type="text"]::placeholder { color: #8a6a72; }
#lyrbox input[type="text"]:focus { outline: none; border-color: #e0203c; }
#lyropen {
  display: block; width: 100%; text-align: center; text-decoration: none;
  padding: 7px 12px; border: 1px solid #5b2b37; border-radius: 8px; color: #f6ecef;
  background: #2a141a; font-size: 12px;
}
#lyropen:hover { border-color: #e0203c; color: #ff8fa3; }

#flashwhich {
  background: #1d0d12; color: #f6ecef; border: 1px solid #4a2130; border-radius: 8px;
  padding: 6px 10px; font: 12px system-ui, sans-serif; min-width: 190px;
}
