:root {
  --bg: #0b0b0a;
  --ink: #ebe6d8;
  --ink-strong: #f6f1e4;
  --ink-muted: rgba(235, 230, 216, 0.65);
  --ink-dim: rgba(235, 230, 216, 0.32);

  --signal: #e8662a;
  --mint: #8ec07c;
  --danger: #d95d56;

  --font-poster: "Anton", Impact, "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.accent-bar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: clamp(20px, 3vw, 44px);
  width: 2px;
  background: rgba(232, 102, 42, 0.45);
  z-index: 6;
}

.wrap {
  position: relative;
  z-index: 5;
  height: 100%;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.giant {
  padding-left: clamp(16px, 1.8vw, 22px);
  margin: auto 0;
}

.giant h1 {
  margin: 0;
  font-family: var(--font-poster);
  font-size: clamp(7.2rem, 23vw, 22rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 400;
  user-select: none;
}

.sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}

.pill {
  background: var(--signal);
  color: var(--bg);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  user-select: none;
}

.sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.bottom {
  padding-left: clamp(18px, 2.2vw, 28px);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  border-top: 1px solid rgba(235, 230, 216, 0.14);
  padding-top: 24px;
}

.gate-col {
  width: min(100%, 420px);
}

.gate {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  transition: border-color 0.18s ease;
}

.gate:focus-within {
  border-bottom-color: var(--signal);
}

.gate.is-shake {
  animation: shake 0.32s ease;
  border-bottom-color: var(--danger);
}

.gate input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 0;
  color: var(--ink-strong);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.gate input::placeholder {
  color: var(--ink-dim);
}

.gate button {
  background: transparent;
  border: 0;
  color: var(--signal);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  cursor: pointer;
  padding: 6px;
  transition: opacity 0.15s ease;
}

.gate button:hover:not(:disabled) {
  opacity: 0.8;
}

.gate button:disabled {
  opacity: 0.4;
  cursor: wait;
}

.status-line {
  margin-top: 10px;
  min-height: 1.2em;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(235, 230, 216, 0.32);
  text-transform: uppercase;
}

.status-line.is-error { color: var(--danger); }
.status-line.is-warn  { color: var(--signal); }
.status-line.is-ok    { color: var(--mint); }

.clearance {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #101210;
  border: 1px solid rgba(142, 192, 124, 0.36);
  border-left: 2px solid var(--mint);
}

.clearance[hidden] {
  display: none;
}

.c-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mint);
  margin-bottom: 8px;
}

.c-file-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.c-file {
  font-size: 13px;
  color: var(--ink-strong);
  word-break: break-all;
}

.c-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.c-sha {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 8px;
  background: #090a09;
  border: 1px solid rgba(235, 230, 216, 0.1);
  font-size: 10px;
  color: rgba(235, 230, 216, 0.5);
}

.c-sha code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
}

.c-copy {
  background: transparent;
  border: 1px solid rgba(235, 230, 216, 0.22);
  color: var(--ink);
  padding: 2px 7px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  flex-shrink: 0;
}

.c-copy:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.c-dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--mint);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.c-dl:hover {
  background: #9fcb8e;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22%      { transform: translateX(-6px); }
  48%      { transform: translateX(6px); }
  74%      { transform: translateX(-3px); }
}

@media (max-width: 680px) {
  .gate-col {
    width: 100%;
  }
}
