﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg: #07111f;
  --surface: #0d1a2b;
  --surface-2: #10233a;
  --text: #f5f8ff;
  --muted: #95a4c1;
  --accent: #2cd4a6;
  --accent-2: #26b0ff;
  --warn: #ffc857;
  --danger: #ff6b6b;
  --ring: rgba(38, 176, 255, 0.3);
  --card: rgba(13, 26, 43, 0.8);
  --border: rgba(149, 164, 193, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, #132a46 0%, var(--bg) 45%),
    linear-gradient(180deg, #07111f 0%, #081527 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  padding-bottom: 150px;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: saturate(1.1) contrast(1.06);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

.notice-bar {
  background: linear-gradient(90deg, #1ed7a5, #3bc1ff);
  color: #032022;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.92rem;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 31, 0.85);
  border-bottom: 1px solid rgba(149, 164, 193, 0.15);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: #08263f;
  background: linear-gradient(135deg, var(--warn), #fff3bf);
}

.brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-main {
  color: #031826;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 25px rgba(38, 176, 255, 0.35);
}

.btn-soft {
  color: var(--text);
  background: rgba(16, 35, 58, 0.72);
  border: 1px solid var(--border);
}

.btn-ghost {
  color: var(--muted);
  background: rgba(16, 35, 58, 0.35);
  border: 1px dashed rgba(149, 164, 193, 0.4);
}

.avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, #2cd4a6, #26b0ff);
  color: #052132;
  font-weight: 800;
}

.main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 16px 0;
}

.hero-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(3, 7, 14, 0.35);
}

.video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 16 / 9;
  background: #030a14;
}

.video-wrap iframe,
.video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-title {
  margin: 14px 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.15;
}

.hero-sub {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.badges {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 35, 58, 0.6);
  color: #d8e8ff;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.timer-box {
  background: linear-gradient(165deg, rgba(38, 176, 255, 0.2), rgba(44, 212, 166, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  text-align: center;
  padding: 10px 8px;
}

.timer-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}

.timer-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-box {
  background: rgba(16, 35, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat-value {
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.18rem;
  margin: 0 0 10px;
}

.claim-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: #c5d4ee;
  font-size: 0.83rem;
  font-weight: 700;
}

.input,
.select,
textarea {
  border: 1px solid rgba(149, 164, 193, 0.32);
  border-radius: 12px;
  background: rgba(10, 20, 35, 0.8);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  font-family: inherit;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: #26b0ff;
  box-shadow: 0 0 0 4px var(--ring);
}

.help {
  color: var(--muted);
  font-size: 0.82rem;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.code-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 35, 58, 0.7);
  color: #ddedff;
  padding: 9px;
  font-family: 'Sora', sans-serif;
  font-size: 0.93rem;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
}

.code-btn.active {
  color: #03222f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 22px rgba(38, 176, 255, 0.4);
}

.code-btn.occupied {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

.flex-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-tag {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  font-size: 0.78rem;
}

.tag-ok {
  background: rgba(44, 212, 166, 0.2);
  color: #a8ffe7;
}

.tag-bad {
  background: rgba(255, 107, 107, 0.2);
  color: #ffd0d0;
}

.ticket-code {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  letter-spacing: 0.22em;
  margin: 6px 0;
  color: #fff5cc;
}

.board-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.list {
  display: grid;
  gap: 8px;
}

.list-row {
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 35, 58, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.name-muted {
  color: #c3d1e8;
  font-weight: 700;
}

.small {
  font-size: 0.82rem;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 16, 0.7);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 15px;
}

.modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(13, 26, 43, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 16px;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-family: 'Sora', sans-serif;
}

.modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #f5f8ff;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.check-grid {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.check-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  background: rgba(16, 35, 58, 0.45);
}

.check-item input {
  margin-top: 2px;
}

.toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 140;
  background: linear-gradient(120deg, #2cd4a6, #26b0ff);
  color: #04212f;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(3, 15, 24, 0.45);
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-panel {
  position: fixed;
  right: 14px;
  top: 72px;
  z-index: 90;
  width: min(430px, calc(100% - 28px));
  background: rgba(9, 18, 31, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.45);
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.live-popup {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 80;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 20, 33, 0.88);
  backdrop-filter: blur(10px);
  max-height: 148px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.live-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  background: rgba(9, 20, 33, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2cd4a6;
  box-shadow: 0 0 12px #2cd4a6;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
    transform: scale(0.6);
  }
}

.live-row {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.live-row:last-child {
  border-bottom: 0;
}

.live-time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.74rem;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 24px 0 8px;
}

.alert {
  margin-top: 8px;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert.error {
  background: rgba(255, 107, 107, 0.15);
  color: #ffd6d6;
}

.alert.success {
  background: rgba(44, 212, 166, 0.15);
  color: #b9ffe9;
}

@media (max-width: 980px) {
  .hero-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .timer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .btn {
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .nav-inner {
    padding: 10px 12px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .main {
    padding: 10px 12px 0;
  }

  .card {
    padding: 13px;
    border-radius: 15px;
  }
}
