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

:root {
  --celeste:       #00A8E0;
  --celeste-dim:   #007aaa;
  --celeste-glow:  rgba(0, 168, 224, 0.25);
  --bg:            #020508;
  --chrome:        #0e1419;
  --chrome-border: #1a2530;
  --white:         #d0e8f0;
  --muted:         #3a6070;
  --green:         #28c840;
  --red:           #ff5f57;
  --yellow:        #febc2e;

  --font: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", "Courier New", monospace;
  --font-size: 13px;
  --line: 1.65;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line);
  background-color: #000;
  background-image: url('https://gremio.blob.core.windows.net/imgs-site/lg-noticias-feliz-aniversa-rio--gra-mio--24544.jpg');
  background-size: cover;
  background-position: center top;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: inherit;
  filter: grayscale(0.9) blur(5px) brightness(0.25);
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

.crt-flicker {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: rgba(0, 168, 224, 0.012);
  animation: flicker 8s infinite;
}

@keyframes flicker {
  0%, 94%, 96%, 98%, 100% { opacity: 1; }
  95%                      { opacity: 0.88; }
  97%                      { opacity: 0.94; }
  99%                      { opacity: 0.92; }
}

.os-chrome {
  width: min(920px, 96vw);
  height: min(600px, 92vh);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--chrome-border),
    0 0 60px rgba(0, 168, 224, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 2;
  animation: winboot 0.4s ease-out;
}

@keyframes winboot {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.chrome-bar {
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  user-select: none;
}

.chrome-dots  { display: flex; gap: 7px; }

.chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: filter 0.15s;
}
.chrome-dot:hover { filter: brightness(1.3); }
.dot-close { background: var(--red); }
.dot-min   { background: var(--yellow); }

.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.chrome-spacer { width: 40px; }

.terminal-window {
  flex: 1;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px 8px;
  cursor: text;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.terminal-window::-webkit-scrollbar       { width: 4px; }
.terminal-window::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

.terminal-output { flex: 1; }

.output-line {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: calc(var(--font-size) * var(--line));
  color: var(--white);
}

.output-line.cmd        { color: var(--celeste); }
.output-line.info       { color: var(--white); }
.output-line.dim        { color: var(--muted); }
.output-line.error      { color: #ff6b6b; }
.output-line.success    { color: var(--green); }
.output-line.banner-sub { color: var(--muted); }

.hl-key    { color: var(--celeste); }
.hl-str    { color: #cab811; }
.hl-num    { color: #e8c87a; }
.hl-bool   { color: #e88080; }
.hl-header { color: var(--celeste); font-weight: bold; }
.hl-role   { color: #fff; font-weight: bold; }
.hl-period { color: var(--muted); }
.hl-file   { color: var(--white); }
.hl-link   { color: var(--celeste); text-decoration: underline; cursor: pointer; }
.hl-sep    { color: var(--muted); }

.terminal-input-row {
  display: flex;
  align-items: center;
  padding-top: 2px;
  flex-shrink: 0;
}

.prompt {
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 8px;
  user-select: none;
}

.prompt-user   { color: var(--celeste); }
.prompt-at     { color: var(--muted); }
.prompt-host   { color: var(--celeste-dim); }
.prompt-sep    { color: var(--muted); }
.prompt-path   { color: #5bafd6; }
.prompt-dollar { color: var(--white); margin-left: 4px; }

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line);
  caret-color: transparent;
  padding: 0;
  min-width: 4px;
}

.cursor-block {
  display: inline-block;
  width: 8px;
  height: calc(var(--font-size) * 1.15);
  background: var(--celeste);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  box-shadow: 0 0 6px var(--celeste-glow);
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 600px) {
  :root { --font-size: 11px; }
  .os-chrome { border-radius: 0; width: 100vw; height: 100vh; }
}
