* {
  box-sizing: border-box;
}

:root {
  --bg: #050814;
  --card-bg: rgba(9, 14, 32, 0.9);
  --accent: #58d3ff;
  --accent-soft: rgba(88, 211, 255, 0.16);
  --text-main: #f5f5f7;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    circle at top,
    #18233c 0,
    #050814 55%,
    #020309 100%
  );
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: 100%;
  max-width: 1100px;
  padding: 1.5rem;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: var(--card-bg);
  border-radius: 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(15, 23, 42, 0.4);
  padding: 1.4rem 1.4rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle at top left,
    rgba(88, 211, 255, 0.08),
    transparent 55%
  );
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.tagline {
  font-size: 0.9rem;
  margin: 0.1rem 0 0.5rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.canvas-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #070c1e, #050814 65%);
  padding: 0.75rem;
  margin-top: 0.4rem;
}

#myContainer {
  border-radius: 0.9rem;
  overflow: hidden;
}

.canvas-caption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-right: 0.25rem;
}

.dot--calm {
  background: #4ade80;
}

.dot--storm {
  background: #fb7185;
}

.panel-body {
  position: relative;
  z-index: 1;
}

h2 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.5rem;
}

p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-main);
}

.muted {
  color: var(--text-muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.6rem;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--text-muted);
}

.badge--accent {
  border-color: rgba(88, 211, 255, 0.8);
  color: var(--accent);
  background: var(--accent-soft);
}

.footer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  padding-top: 0.45rem;
  margin-top: 0.55rem;
}

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

a:hover {
  text-decoration: underline;
}


.scroll-block {
  max-height: 500px;         
  overflow-y: auto;
  padding-right: 0.4rem;     
  margin-top: 0.2rem;
}


.scroll-block {
  -webkit-overflow-scrolling: touch;
}


.scroll-block::-webkit-scrollbar {
  width: 6px;
}
.scroll-block::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-block::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}
