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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05050f;
}

/* ── Canvas ── */
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Logo ── */
.site-header {
  position: absolute;
  top: 28px;
  left: 36px;
}

.logo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.28);
}

/* ── Glass Card ── */
.glass-card {
  width: min(700px, 100%);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  padding: 44px 56px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 16px 48px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}

/* ── Weather Bar ── */
.weather-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.city {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.weather-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.w-icon {
  font-size: 17px;
  line-height: 1;
}

.temp {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.44);
  letter-spacing: 1px;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.1) 25%,
    rgba(255,255,255,0.1) 75%,
    transparent
  );
  margin-bottom: 40px;
}

/* ── Quote ── */
.quote-wrap {
  position: relative;
  padding: 0 12px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.q-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 90px;
  line-height: 0;
  color: rgba(255, 255, 255, 0.09);
  user-select: none;
  position: absolute;
  font-style: italic;
}

.q-mark.open  { top: 22px;   left: -8px; }
.q-mark.close { bottom: -8px; right: -8px; }

/* Cormorant Garamond italic — the quote itself */
.quote-text {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 2.8vw, 32px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.93);
  letter-spacing: 0.25px;
  transition: opacity 0.55s ease;
  padding: 0 20px;
}

.quote-text.fade {
  opacity: 0;
}

/* ── Bottom Bar ── */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 38px;
}

.time {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.26);
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  line-height: 1;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.75);
  transform: rotate(90deg);
}

/* ── Visitor Bar ── */
.visitor-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.visitor-label {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.18);
}

.comment-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.22);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.comment-toggle:hover { color: rgba(255, 255, 255, 0.6); }

/* ── Comment Panel ── */
.comment-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  z-index: 10;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.comment-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.comment-inner {
  margin: 0 16px 20px;
  background: rgba(10, 10, 24, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 55vh;
}

.comment-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.comment-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  word-break: break-word;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.c-emoji {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.c-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.c-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.no-comments {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  padding: 12px 0;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.name-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.name-input:focus { border-color: rgba(255, 255, 255, 0.2); }
.name-input::placeholder { color: rgba(255, 255, 255, 0.18); }

.comment-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  resize: none;
  height: 42px;
  outline: none;
  transition: border-color 0.2s;
}
.comment-input:focus { border-color: rgba(255, 255, 255, 0.25); }
.comment-input::placeholder { color: rgba(255, 255, 255, 0.22); }

.comment-submit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  padding: 0 16px;
  height: 42px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.comment-submit:hover { background: rgba(255,255,255,0.16); color: rgba(255,255,255,0.9); }
.comment-submit:disabled { opacity: 0.4; cursor: default; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .glass-card { padding: 30px 26px; border-radius: 22px; }
  .q-mark { font-size: 64px; }
}
