/* Antropy visual system: shared by index.html and overlay.html */
:root {
  --pit: #0A0B0C;
  --steel: #4E545B;
  --bone: #CFC8B8;
  --housing: #E6E3DA;
  --ink: #1B1C1E;
  --label: #4A4841;
  --signal: #F2A20C;
  --needle: #D2451E;
  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --dots: Doto, "Courier New", monospace;
}

/* ---- the instrument face ---- */
.ant-face {
  box-sizing: border-box;
  color: var(--ink);
  font-family: var(--sans);
  background: linear-gradient(180deg, #EDEAE1, #DCD8CC);
}
.ant-mark { font-size: 21px; font-weight: 500; font-stretch: 112%; letter-spacing: 0.01em; margin: 0; }
.ant-label { font-size: 13px; font-stretch: 118%; letter-spacing: 0.04em; color: var(--label); }
.ant-dots { font-family: var(--dots); font-weight: 900; }

.ant-part svg { display: block; width: 100%; height: auto; }
.ant-grille { width: 100%; max-width: 380px; margin: 0 auto; }
.ant-scale-label { font: 12px var(--sans); fill: var(--label); }
.ant-needle-label { font: 900 15px var(--dots); fill: var(--ink); }
.ant-needle { transition: opacity 0.5s; }
.ant-needle.ant-out { opacity: 0; }
.ant-lit { animation: ant-fade 2.4s ease-out forwards; }
@keyframes ant-fade { 0%, 25% { opacity: 1; } 100% { opacity: 0; } }

.ant-lamps { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ant-lamp-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-stretch: 118%; letter-spacing: 0.04em; color: var(--label); }
.ant-lamp {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #C9C4B6, #A8A395);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.ant-lamp.is-lit {
  background: radial-gradient(circle at 40% 35%, #FFE7A8, #F2A20C 45%, #9C5F00);
  box-shadow: 0 0 10px #F2A20C;
}
.ant-lamp.is-signal.is-lit {
  background: radial-gradient(circle at 35% 35%, #FF9A7D, #C9301F 55%, #6D140B);
  box-shadow: 0 0 9px rgba(201, 48, 31, 0.7);
}

/* ---- the housing ---- */
.ant-frame { position: absolute; inset: 0; pointer-events: none; }
.ant-frame svg { display: block; width: 100%; height: 100%; }

/* ---- site page ---- */
.site { margin: 0; min-height: 100vh; }
.site-wrap { max-width: 1296px; margin: 0 auto; padding: 28px clamp(20px, 5vw, 72px) 56px; display: flex; flex-direction: column; gap: 28px; }
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-head a { color: var(--ink); font-size: 16px; padding: 14px 0; }
.site-head a:hover { color: var(--label); }
.site-main { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.site-stage { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.site-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.site-group { display: flex; flex-direction: column; gap: 8px; }
.site-lede { font-size: 19px; line-height: 1.45; max-width: 58ch; color: #33322E; margin: 0; }

.player { position: relative; padding: 26px; background: #060708; border-radius: 30px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.player-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.player-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.relay-note { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px; border: 1px solid #A8A395; border-radius: 10px; }
.relay-note p { margin: 0; font-size: 17px; line-height: 1.4; }

.site select, .site button {
  font: inherit; font-size: 17px; color: var(--ink);
  min-height: 48px; padding: 0 16px;
  background: #F4F2EA; border: 1px solid #6F6B60; border-radius: 24px;
}
.site select { width: 100%; }
.site button { cursor: pointer; }
.site button:hover { background: #fff; }
.site button:active { background: var(--ink); color: #F4F2EA; }
.site :focus-visible { outline: 2px solid var(--needle); outline-offset: 2px; }

.notes-log { margin: 0; padding: 0; list-style: none; min-height: 7.2em; font-family: var(--dots); font-weight: 900; font-size: 19px; line-height: 1.45; }
.notes-log li { display: flex; gap: 20px; }
.notes-log .ch { width: 3.2em; }
.notes-log .cmd { width: 5.2em; }
.notes-empty { font-size: 15px; color: var(--label); margin: 0; min-height: 7.2em; }
.list-enter-active { transition: opacity 0.2s; }
.list-enter { opacity: 0.3; }

.synth { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.synth label { display: flex; flex-direction: column; gap: 4px; }
.synth input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; margin: 0; }
.synth-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.synth-keys button { min-width: 48px; padding: 0; text-transform: lowercase; }
.adsr-visual { margin: 0; font: 11px/1.15 "Courier New", monospace; color: var(--ink); overflow: auto; }

@media (prefers-reduced-motion: reduce) {
  .ant-lit { animation-duration: 2.4s; animation-timing-function: step-end; }
  .ant-needle, .list-enter-active { transition: none; }
}

/* ---- entropy and encryption page ---- */
.entropy .ant-mark { color: var(--ink); text-decoration: none; }
.page-title { margin: 8px 0 0; font-size: clamp(30px, 4vw, 44px); font-weight: 500; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.1; }
.panel { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; border-top: 1px solid #A8A395; }
.site-wrap > .panel:first-child { border-top: 0; padding-top: 0; }
.panel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.panel h2 { margin: 0; font-size: 24px; font-weight: 500; font-stretch: 112%; }
.panel h3 { margin: 0; font-size: 17px; font-weight: 600; }
.panel p { margin: 0; font-size: 17px; line-height: 1.45; max-width: 64ch; }
.panel p.ant-label { font-size: 14px; }
.panel .container { display: flex; flex-direction: column; gap: 22px; }
.split { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: flex-start; }
.split > * { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hash-now { font-family: var(--dots); font-weight: 900; font-size: 20px; line-height: 1.3; word-break: break-all; min-height: 1.3em; }
.figures { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; }
.figures div { display: flex; flex-direction: column; gap: 2px; }
.figures dt { font-size: 13px; font-stretch: 118%; letter-spacing: 0.04em; color: var(--label); }
.figures dd { margin: 0; font-family: var(--dots); font-weight: 900; font-size: 26px; }
.hash-log { margin: 0; padding: 0; list-style: none; max-height: 260px; overflow-y: auto; }
.hash-log li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 8px 0; border-top: 1px solid #C9C4B6; }
.hash-log code { font-family: var(--dots); font-weight: 900; font-size: 16px; word-break: break-all; flex: 1 1 240px; }
.site .small-button, .record-actions button, .hash-log button { min-height: 44px; font-size: 15px; padding: 0 14px; }

.card { padding: 22px; border: 1px solid #A8A395; border-radius: 10px; }
.site input[type=text] {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%; box-sizing: border-box;
  min-height: 48px; padding: 0 14px; background: #F4F2EA; border: 1px solid #6F6B60; border-radius: 6px;
}
.ant-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; cursor: pointer; }
.ant-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ant-file .pick { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; background: #F4F2EA; border: 1px solid #6F6B60; border-radius: 24px; font-size: 17px; }
.ant-file:focus-within .pick { outline: 2px solid var(--needle); outline-offset: 2px; }
.ant-file .name { font-size: 15px; color: var(--label); word-break: break-all; }
.site button:disabled { color: #8E897C; border-color: #B9B4A6; background: transparent; cursor: default; }
.site button.primary:not(:disabled) { background: var(--ink); color: #F4F2EA; border-color: var(--ink); }
.site button.primary:not(:disabled):hover { background: #33322E; }
.steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.45; max-width: 64ch; }

.records { margin: 0; padding: 0; list-style: none; }
.record { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 14px 0; border-top: 1px solid #C9C4B6; }
.record-file, .record-key { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.record-file { flex: 1 1 200px; word-break: break-all; }
.record-key { flex: 2 1 320px; }
.record-key code { font-size: 15px; word-break: break-all; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* messages built by encryption-ui.js (it uses these class names) */
.entropy .notification {
  box-sizing: border-box; padding: 16px 18px; border-radius: 10px; font-size: 16px; line-height: 1.4;
  background: var(--ink); color: #EDEAE1; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.entropy .notification.is-error, .entropy .notification.is-warning { border-left: 6px solid var(--signal); }
.entropy .notification h5 { margin: 0 0 6px; font-size: 17px; }
.entropy .notification pre { background: rgba(255, 255, 255, 0.1) !important; color: inherit; overflow: auto; }
.entropy .notification p { color: inherit !important; }
.entropy .notification .delete { float: right; margin: -4px -6px 6px 12px; min-height: 36px; font-size: 14px; padding: 0 12px; background: transparent; color: #EDEAE1; border-color: #8E897C; }
.entropy .notification .button { margin: 4px 6px 4px 0; }
