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

:root {
  --bg: #000000;
  --bg-subtle: #111111;
  --text: #d67757;
  --text-dim: #9b5540;
  --accent: #d67757;
  --prompt-color: #d67757;
  --command-color: #d67757;
  --success: #d67757;
  --warning: #d67757;
  --font-mono: "Berkeley Mono", "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", "Consolas", monospace;
}

html, body {
  height: 100%;
  background: #333333;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}

#terminal-wrapper {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#terminal-frame {
  width: 900px;
  max-width: 100%;
  height: 90vh;
  min-width: 400px;
  min-height: 300px;
  background: var(--bg);
  border: 1px solid #222;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  resize: both;
}

#title-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #111;
  border-bottom: 1px solid #222;
  gap: 6px;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
}

#title-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
  background-clip: padding-box;
}

#title-bar:hover .dot::before,
#title-bar:hover .dot::after {
  opacity: 1;
}

#title-bar .dot::before,
#title-bar .dot::after {
  content: '';
  position: absolute;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

/* Red X */
#title-bar .dot.red::before,
#title-bar .dot.red::after {
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: #4d0000;
  transform-origin: center;
}
#title-bar .dot.red::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#title-bar .dot.red::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Yellow minus */
#title-bar .dot.yellow::before {
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: #5c3a00;
  transform: translate(-50%, -50%);
}

/* Green maximize (two triangles pointing toward each other) */
#title-bar .dot.green::before {
  top: 1.5px;
  left: 1.5px;
  width: 5px;
  height: 5px;
  background: #003300;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
#title-bar .dot.green::after {
  bottom: 1.5px;
  right: 1.5px;
  width: 5px;
  height: 5px;
  background: #003300;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

#title-bar .dot.red { background: #ff5f57; }
#title-bar .dot.yellow { background: #febc2e; }

#terminal-frame.minimized {
  transform: translateY(100vh) scale(0.3);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

#minimized-bar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: none;
  gap: 10px;
  z-index: 100;
}

#minimized-bar.visible {
  display: flex;
}

#minimized-bar button {
  padding: 10px 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #333;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}

#minimized-bar button:hover {
  border-color: var(--accent);
}

#fake-button .lol {
  color: #994444;
  font-weight: normal;
  margin-left: 4px;
}
#title-bar .dot.green { background: #28c840; }

#title-bar .title-text {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

#terminal {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#output {
  flex: 1;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#output .line {
  min-height: 1.6em;
}

#output .line.title {
  color: var(--accent);
  font-weight: bold;
  font-size: 15px;
}

#output .line.subtitle {
  color: var(--text-dim);
}

#output .line.ascii {
  color: var(--accent);
  line-height: 1.15;
  font-size: 12px;
}

#output .line.command-name {
  color: var(--command-color);
}

#output .line.dim {
  color: var(--text-dim);
}

#output .line.prompt-line {
  color: var(--text-dim);
}

#output .line.prompt-line .typed-command {
  color: var(--text);
}

#output .line.help-header {
  color: var(--text);
  margin-top: 0.5em;
}

#output .line.help-item {
  color: var(--text-dim);
}

#output .line.help-item .cmd {
  color: var(--command-color);
}

/* Input line */
#input-line {
  display: flex;
  align-items: center;
  padding: 2px 0;
  flex-shrink: 0;
}

#input-line.hidden {
  display: none;
}

#input-line .prompt {
  color: var(--prompt-color);
  font-weight: bold;
  margin-right: 8px;
  user-select: none;
}

#command-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  flex: 1;
  caret-color: var(--accent);
}

#command-input::placeholder {
  color: var(--text-dim);
  opacity: 0.4;
}

/* Blinking cursor for typing animation */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Scrollbar */
#terminal::-webkit-scrollbar {
  width: 8px;
}

#terminal::-webkit-scrollbar-track {
  background: var(--bg);
}

#terminal::-webkit-scrollbar-thumb {
  background: var(--bg-subtle);
  border-radius: 4px;
}

#terminal::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Venue info below date */
#output .line.venue {
  color: var(--text);
  font-weight: normal;
  margin-top: 4px;
  line-height: 1.4;
  font-size: 14.4px;
  font-variant: small-caps;
  text-transform: lowercase;
}

.venue-link {
  color: var(--text);
  text-decoration: none;
}

.venue-link:hover {
  text-decoration: underline;
}

/* Separator line (Claude Code CLI style) */
.separator {
  height: 1px;
  background: #3a3a3a;
  margin: 4px 0;
  width: 100%;
}

/* Organizer images */
.orga-images {
  display: flex;
  gap: 32px;
  padding: 8px 0;
  align-items: flex-end;
}

.orga-card {
  text-align: center;
}

.orga-img {
  width: 160px;
  height: auto;
  border-radius: 4px;
  background: transparent;
  clip-path: inset(0 0 100% 0);
  animation: reveal-scanline 1.6s steps(40) forwards;
}

@keyframes reveal-scanline {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.orga-card:nth-child(2) .orga-img {
  animation-delay: 0.3s;
}

.orga-name {
  color: var(--accent);
  font-weight: bold;
  margin-top: 6px;
  font-size: 13px;
}

.orga-name a {
  color: var(--accent);
  text-decoration: none;
}

.orga-name a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  html, body {
    font-size: 12px;
    overflow: auto;
  }

  #terminal-wrapper {
    height: auto;
    min-height: 100vh;
    padding: 0;
  }

  #terminal-frame {
    height: auto;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  #title-bar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  #terminal {
    padding: 16px;
    overflow-y: visible;
    height: auto;
  }

  #output .line.ascii {
    font-size: 8px;
    line-height: 1.05;
  }
}
