@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap");

:root{
  --bg:#070f14;
  --bg2:#0d1a21;
  --panel:#07131a;
  --line:#1f3742;
  --text:#d9fff5;
  --muted:#8dc6ba;
  --cyan:#23f0d8;
  --red:#ff5a64;
  --green:#7ef769;
  --amber:#ffc86a;
}

*{ box-sizing:border-box; }

html,body{
  min-height:100%;
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 10%, #12303b 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, #2a1a2b 0%, transparent 35%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  font-family:"VT323", "Courier New", monospace;
  letter-spacing:0.2px;
  line-height:1.6;
}

.crt-overlay{
  pointer-events:none;
  position:fixed;
  inset:0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 4px
    );
  opacity:0.16;
  z-index:1;
}

.wrap{
  position:relative;
  z-index:2;
  max-width:980px;
  margin:24px auto;
  padding:0 18px;
}

.site-header{
  border-bottom:1px solid var(--line);
  background:rgba(7, 15, 20, 0.84);
  backdrop-filter: blur(1px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.site-title{
  margin:0;
  font-family:"Press Start 2P", "VT323", monospace;
  font-size:14px;
  letter-spacing:1px;
}

.site-title a{
  text-decoration:none;
  color:var(--cyan);
  text-shadow:0 0 10px rgba(35,240,216,0.45);
}

.site-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.site-nav a{
  color:var(--amber);
  text-decoration:none;
  border:1px solid #3a464e;
  padding:2px 10px;
  background:#111f27;
}

.site-nav a:hover{
  border-color:var(--cyan);
  color:var(--cyan);
}

.terminal-shell{
  border:2px solid #325160;
  box-shadow:
    0 0 0 2px #111e26,
    0 12px 30px rgba(0,0,0,0.45);
  background:var(--panel);
}

.terminal-titlebar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-bottom:1px solid #24414c;
  background:linear-gradient(90deg, #09171f, #0f2230);
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}

.dot-red{ background:var(--red); }
.dot-cyan{ background:var(--cyan); }

.terminal-title{
  margin-left:6px;
  color:var(--muted);
}

.content{
  padding:16px;
}

h1,h2,h3{
  margin-top:1.2em;
  color:var(--text);
}

h1{
  font-family:"Press Start 2P", "VT323", monospace;
  font-size:22px;
  color:var(--cyan);
  text-shadow:0 0 12px rgba(35,240,216,0.3);
}

h2{
  font-size:28px;
  border-left:4px solid var(--red);
  padding-left:10px;
}

h3{
  font-size:24px;
  color:var(--amber);
}

a{
  color:var(--cyan);
}

a:hover{
  color:#95fff0;
}

pre, code{
  font-family:"VT323", "Courier New", monospace;
}

pre{
  background:#031018;
  border:1px solid #24505f;
  color:var(--green);
  padding:12px;
  overflow:auto;
}

code{
  color:#9cfde7;
  background:rgba(3,16,24,0.65);
  border:1px solid #204a58;
  padding:1px 5px;
}

blockquote{
  border-left:4px solid var(--cyan);
  padding:8px 14px;
  color:var(--muted);
  background:#0b1b22;
}

table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0;
}

th,td{
  border:1px solid #25424e;
  padding:8px;
}

th{
  color:var(--amber);
  background:#11242f;
}

img, video{
  max-width:100%;
  height:auto;
  border:2px solid #274a57;
  background:#000;
}

.site-footer{
  border-top:1px solid var(--line);
  padding:12px 0;
  margin-top:30px;
  color:var(--muted);
}

.playground-wrap{
  border:1px solid #2d505e;
  background:#051018;
  box-shadow: inset 0 0 0 1px #132a35;
}

.playground-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border-bottom:1px solid #1f3f4b;
  background:linear-gradient(180deg, #0a1a23, #07141c);
}

.playground-btn{
  border:1px solid #2f5b6a;
  background:#0f2732;
  color:var(--amber);
  padding:4px 10px;
  font:inherit;
  cursor:pointer;
}

.playground-btn:hover{
  border-color:var(--cyan);
  color:var(--cyan);
}

.playground-terminal{
  padding:12px;
  min-height:420px;
  background:
    radial-gradient(circle at 12% 5%, rgba(35,240,216,0.08), transparent 40%),
    #03090f;
}

.playground-output{
  min-height:360px;
  white-space:pre-wrap;
  word-break:break-word;
  color:var(--green);
}

.playground-line{
  margin:0 0 4px;
}

.playground-line.prompt{ color:var(--cyan); }
.playground-line.error{ color:var(--red); }
.playground-line.info{ color:var(--muted); }

.playground-input-row{
  display:flex;
  align-items:center;
  gap:8px;
  border-top:1px dashed #29505d;
  padding-top:10px;
  margin-top:10px;
}

.playground-shell-prompt{
  color:var(--cyan);
  white-space:nowrap;
}

.playground-input{
  flex:1;
  border:1px solid #2f5b6a;
  background:#04131b;
  color:var(--text);
  padding:5px 8px;
  font:inherit;
}

.playground-input:focus{
  outline:none;
  border-color:var(--cyan);
  box-shadow:0 0 0 2px rgba(35,240,216,0.18);
}

.playground-note{
  margin-top:8px;
  color:var(--muted);
}

@media (max-width: 760px) {
  .site-title{ font-size:12px; }
  .header-inner{ align-items:flex-start; flex-direction:column; }
  h1{ font-size:18px; }
  .playground-terminal{ min-height:360px; }
  .playground-output{ min-height:300px; }
}
