/* ==========================================================================
   The Internet Challenge — Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Box Model
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure [hidden] always wins over display:flex/grid in CSS */
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #000;
  --text: #f5f5f5;
  --muted: #888;
  --dim: #444;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-w: 72rem;
  --section-py: clamp(4rem, 9vw, 7rem);
  --radius: 4px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-py);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Section Tag
   -------------------------------------------------------------------------- */
.section-tag {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Body Text
   -------------------------------------------------------------------------- */
.body-text {
  max-width: 60ch;
  color: #ccc;
  line-height: 1.8;
  margin-block: 1.25rem;
}

/* --------------------------------------------------------------------------
   Negotiating Banner
   -------------------------------------------------------------------------- */
.negotiating-banner {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 101;
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 15vw, 10rem);
}

.hero-inner {
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  color: var(--muted);
  margin-block: 1.5rem 3rem;
  max-width: 50ch;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Live Clock
   -------------------------------------------------------------------------- */
.live-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 0.5rem;
}

.clock-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clock-val {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.clock-lbl {
  font-size: 0.7rem;
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

.clock-colon {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--dim);
  align-self: flex-start;
  padding-top: 0.15rem;
  line-height: 1;
  font-family: var(--font-mono);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #ccc;
  border-color: #ccc;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Action Group
   -------------------------------------------------------------------------- */
.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Quotes Grid
   -------------------------------------------------------------------------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
}

.quote-card {
  background: var(--card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background 0.2s;
}

.quote-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.quote-icon {
  color: var(--text);
  opacity: 0.7;
}

.quote-card blockquote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #ccc;
  flex: 1;
  quotes: none;
}

.quote-card cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

.quote-card--mystery {
  background: rgba(255, 255, 255, 0.015);
}

.quote-card--mystery .still-trying {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted);
}

@keyframes breathe {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.quote-icon--breathe {
  animation: breathe 4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Stats Grid
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--card);
  padding: 2rem 1.5rem;
}

.stat-val {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Top Countries
   -------------------------------------------------------------------------- */
.top-countries {
  margin-top: 2rem;
}

.top-countries-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.countries-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.country-rank {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 1.5rem;
  flex-shrink: 0;
}

.country-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.country-bar-fill {
  height: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: width 0.8s ease;
}

.country-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-width: 2rem;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Prediction
   -------------------------------------------------------------------------- */
.prediction-form {
  margin-top: 2rem;
}

.prediction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.text-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.text-input::placeholder {
  color: var(--dim);
}

.text-input:focus {
  border-color: var(--border-hover);
}

input.text-input[type="number"] {
  width: 12rem;
  flex-shrink: 0;
}

/* Remove number input spinners */
input.text-input[type="number"]::-webkit-inner-spin-button,
input.text-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.text-input[type="number"] {
  -moz-appearance: textfield;
}

.prediction-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-hover);
}

.timeline-day {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-desc {
  font-size: 1rem;
  margin-top: 0.25rem;
  color: #ccc;
}

/* --------------------------------------------------------------------------
   Wall
   -------------------------------------------------------------------------- */
.wall-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}

.textarea-wrapper {
  position: relative;
}

.wall-textarea {
  resize: vertical;
  min-height: 5rem;
}

.char-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: var(--dim);
  pointer-events: none;
  transition: color 0.2s;
}

/* Activity indicator */
.wall-activity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 0.5rem;
}

.wall-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Messages list */
.messages-container {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
}

/* Chat-style compact card */
.message-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.4rem 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: fadeInUp 0.35s ease both;
}

.message-card:last-child { border-bottom: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* New-message slide-in (from top, with brief highlight) */
@keyframes slideInNew {
  0%   { opacity: 0; transform: translateY(-10px); background: rgba(255,255,255,0.06); }
  40%  { background: rgba(255,255,255,0.04); }
  100% { opacity: 1; transform: none; background: transparent; }
}

.message-card--new {
  animation: slideInNew 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  border-radius: 4px;
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 1px;
}

.message-avatar canvas { display: block; }

/* Header line: country flag + time on same row */
.message-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.message-country {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.message-time {
  font-size: 0.7rem;
  color: var(--dim);
  font-family: var(--font-mono);
  margin-left: auto;
}

.message-text {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.55;
  grid-column: 2;
  word-break: break-word;
}

.message-actions {
  grid-column: 2;
  display: flex;
  gap: 1rem;
  margin-top: 0.2rem;
}

.react-btn {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  transition: color 0.15s;
  font-family: var(--font-mono);
  line-height: 1;
}

.react-btn:hover       { color: var(--text); }
.react-btn.reacted     { color: #e55; }
.react-btn:disabled    { cursor: not-allowed; }

.wall-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.wall-empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--muted);
}

.wall-empty p {
  font-size: 1rem;
}

.wall-empty-arrow {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Tabs */
.wall-tabs {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.wall-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
  letter-spacing: 0.02em;
}

.wall-tab:hover {
  color: var(--text);
}

.wall-tab--active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Skeleton loaders */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius);
}

.skeleton-card {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.skeleton-line {
  height: 0.75rem;
  border-radius: 3px;
}

/* Load more */
.wall-load-more {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

/* Heart pop animation */
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.react-btn .heart-icon {
  display: inline-block;
  line-height: 1;
}

.react-btn.pop .heart-icon {
  animation: heartPop 0.35s ease both;
}

/* --------------------------------------------------------------------------
   Visitor moment
   -------------------------------------------------------------------------- */
@keyframes momentIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.visitor-moment {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: momentIn 0.5s ease both;
}

.visitor-moment .vm-num {
  color: var(--text);
  font-weight: 500;
}

.visitor-moment .vm-badge {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Subscribe block
   -------------------------------------------------------------------------- */
.subscribe-block {
  margin-bottom: 2.5rem;
}

.subscribe-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 28rem;
  margin-inline: auto;
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Crypto / Fuel section
   -------------------------------------------------------------------------- */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-width: 780px;
}

.crypto-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s;
}
.crypto-card:hover {
  border-color: rgba(255,255,255,0.14);
}

.crypto-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crypto-symbol {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.crypto-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.crypto-ticker {
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crypto-qr {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.crypto-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  min-width: 0;
}

.crypto-address {
  font-size: 0.6rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  user-select: all;
}

.crypto-copy {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}
.crypto-copy:hover { color: var(--text); }
.crypto-copy.copied { color: #4a9; }

/* --------------------------------------------------------------------------
   Negotiate modal channels
   -------------------------------------------------------------------------- */
.negotiate-channel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.negotiate-channel:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.negotiate-channel-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.negotiate-channel > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.negotiate-channel-label {
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.negotiate-channel-handle {
  font-size: 0.88rem;
  font-weight: 500;
}
.negotiate-channel-arrow {
  color: var(--muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 4rem;
  text-align: center;
}

.footer-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  font-weight: 600;
  max-width: 40ch;
  margin-inline: auto;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-block: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar (WebKit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */

/* Hide clock colons on very small screens to prevent overflow */
@media (max-width: 380px) {
  .clock-colon {
    display: none;
  }

  .live-clock {
    gap: 1rem;
  }

  .clock-seg {
    align-items: flex-start;
  }
}

/* Stack prediction row on small screens */
@media (max-width: 480px) {
  .prediction-row {
    flex-direction: column;
  }

  input.text-input[type="number"] {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .action-group .btn {
    width: auto;
  }
}

/* Tighten quote grid on mobile */
@media (max-width: 560px) {
  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    padding: 1.5rem 1.25rem;
  }
}

/* Stats: 2 col always on very small */
@media (max-width: 360px) {
  .stat-card {
    padding: 1.5rem 1rem;
  }
}

/* Message grid fix on very narrow screens */
@media (max-width: 360px) {
  .message-card {
    grid-template-columns: 1fr;
  }

  .message-text,
  .message-actions {
    grid-column: 1;
  }

  .message-avatar {
    display: none;
  }
}
