:root {
  --bg: #000000;
  --text: #ffffff;
  --dim-text: #888888;
  --border: #333333;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: #ffffff;
  color: #000000;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #222222;
  border: 1px solid #333333;
}
::-webkit-scrollbar-thumb:hover {
  background: #444444;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #222222 #000000;
  color-scheme: dark;
  height: 100%;
}

/* CRT Scanline Overlay */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%);
  background-size: 100% 4px;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.55;
}

body {
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 0 16px;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3.2%2C1.8%20C2.2%2C1.8%201.6%2C2.5%201.6%2C3.5%20L1.6%2C18.2%20C1.6%2C19.4%202.8%2C20.3%203.9%2C19.8%20L4.8%2C19.3%20C6.2%2C18.5%207.5%2C17.6%209%2C16.6%20L14.8%2C14.8%20C15.8%2C14.4%2016.4%2C13.6%2016.4%2C12.6%20C16.4%2C11.8%2015.8%2C11%2015%2C10.2%20L4.5%2C2.2%20C4.1%2C1.9%203.7%2C1.8%203.2%2C1.8%20Z%22%20fill%3D%22%23080808%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") 2 2, default;
}

a, button {
  cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M8.5%2C2%20C7.5%2C2%206.8%2C2.8%206.8%2C3.8%20L6.8%2C11.5%20C6.3%2C11.2%205.5%2C11%204.8%2C11.5%20C3.8%2C12.2%203.5%2C13.5%204.2%2C14.5%20L7.5%2C19.5%20C8.8%2C21.5%2010.8%2C22.5%2013.2%2C22.5%20L15.5%2C22.5%20C18.5%2C22.5%2020.2%2C20.5%2020.2%2C17.5%20L20.2%2C11.5%20C20.2%2C10.2%2019.2%2C9.5%2018%2C9.5%20C17.5%2C9.5%2017%2C9.8%2016.5%2C10.2%20C16.2%2C9.2%2015.2%2C8.5%2014.2%2C8.5%20C13.7%2C8.5%2013.2%2C8.7%2012.8%2C9%20C12.5%2C8%2011.5%2C7.5%2010.5%2C7.5%20L10.5%2C3.8%20C10.5%2C2.8%209.5%2C2%208.5%2C2%20Z%22%20fill%3D%22%23080808%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") 8 2, pointer;
}

.main-viewport {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ascii-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ascii-wrapper::-webkit-scrollbar {
  display: none;
}

pre {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: pre;
  user-select: text;
}

.ascii-logo {
  font-size: clamp(3.5px, 0.6vw, 10px);
  color: #ffffff;
  text-align: center;
}

.ascii-subtitle {
  margin-top: 28px;
  font-size: clamp(4.5px, 0.85vw, 13.5px);
  color: #e0e0e0;
  text-align: center;
}

.btn-container {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 9001;
  max-width: 900px;
}

.azqu-btn {
  background: #000000;
  color: #cccccc;
  border: 1px solid #333333;
  padding: 8px 16px;
  font-family: 'DotGothic16', monospace, sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  transition: all 0.15s ease;
  user-select: none;
}

.azqu-btn .key-hint {
  color: #ffffff;
  font-weight: bold;
  margin-right: 6px;
}

.azqu-btn .badge {
  color: #777777;
  margin-left: 6px;
  font-size: 12px;
}

.azqu-btn:hover,
.azqu-btn.active-key {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.azqu-btn:hover .key-hint,
.azqu-btn.active-key .key-hint,
.azqu-btn:hover .badge,
.azqu-btn.active-key .badge {
  color: #000000;
}

.terminal-shortcuts-hint {
  margin-top: 14px;
  font-family: 'DotGothic16', monospace, sans-serif;
  font-size: 12px;
  color: #555555;
  letter-spacing: 0.08em;
  text-align: center;
  user-select: none;
}

.terminal-shortcuts-hint span.trigger-key {
  color: #888888;
  cursor: pointer;
  text-decoration: underline;
}

.static-footer {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 60px;
  z-index: 9001;
}

.domain-attribution {
  font-family: 'DotGothic16', monospace, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #666666;
  user-select: none;
}

@media (max-width: 768px) {
  .azqu-btn {
    font-size: 13px;
    padding: 7px 12px;
  }
  .btn-container {
    gap: 8px;
  }
  .static-footer {
    padding-bottom: 32px;
  }
}
