:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --accent-a: #ff8b6b;
  --accent-b: #ffa14a;
  --accent-c: #5bc0f8;
  --accent-d: #7f6bff;
  --bg-gradient: radial-gradient(circle at top, rgba(34, 35, 62, 0.55), rgba(8, 10, 22, 0.95));
}

* {
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(145deg, rgba(3, 7, 19, 0.95), rgba(14, 27, 45, 0.98)), var(--bg-gradient);
  color: #f6f7fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px;
  animation: fadeIn 0.6s ease-out;
}

main {
  width: min(1100px, 100%);
}

header.page-header {
  text-align: center;
  margin-bottom: 32px;
  animation: slideUp 0.8s ease-out;
}

header.page-header h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
}

header.page-header p {
  margin: 8px auto 0;
  max-width: 680px;
  color: rgba(239, 243, 255, 0.75);
}

.map-board {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(2, 5, 12, 0.55);
  animation: scaleIn 1s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.map-board img {
  display: block;
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-hotspot {
  pointer-events: auto;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  border: 2px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.map-hotspot span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 5, 14, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.map-hotspot:hover,
.map-hotspot:focus {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-4px) scale(1.02);
}

.map-hotspot:hover span,
.map-hotspot:focus span {
  background: linear-gradient(135deg, rgba(255, 171, 64, 0.82), rgba(118, 82, 255, 0.88));
}

.home-footer {
  margin-top: 32px;
  text-align: center;
  color: rgba(239, 243, 255, 0.65);
  font-size: 0.9rem;
}

.home-footer a {
  color: #76b9ff;
  text-decoration: none;
}

.home-footer a:hover,
.home-footer a:focus {
  text-decoration: underline;
}

.back-link {
  align-self: flex-start;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover,
.back-link:focus {
  color: #ffffff;
  transform: translateX(-4px);
}

.hall-header {
  text-align: center;
  margin-bottom: 32px;
  animation: slideUp 0.8s ease-out;
}

.hall-header h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.hall-header p {
  margin: 0 auto;
  max-width: 620px;
  color: rgba(235, 240, 255, 0.7);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  animation: fadeIn 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

a.room-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 26px 50px rgba(5, 10, 25, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.room-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

a.room-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

a.room-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 153, 102, 0.85), rgba(96, 67, 255, 0.9));
}

a.room-card.breakout::before {
  background: linear-gradient(150deg, rgba(91, 192, 248, 0.85), rgba(64, 224, 208, 0.9));
}

a.room-card.stage::before {
  background: linear-gradient(160deg, rgba(255, 139, 107, 0.85), rgba(255, 161, 74, 0.9));
}

a.room-card.workplace::before {
  background: linear-gradient(160deg, rgba(130, 92, 255, 0.88), rgba(91, 72, 255, 0.95));
}

a.room-card.breakout,
a.room-card.stage,
a.room-card.workplace {
  background: rgba(15, 20, 45, 0.85);
}

a.room-card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

a.room-card:hover,

a.room-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px rgba(8, 14, 35, 0.6);
}

a.room-card:hover p,

a.room-card:focus p {
  color: rgba(255, 255, 255, 0.92);
}

.room-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.room-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

a.room-card:hover .room-icon,
a.room-card:focus .room-icon {
  transform: scale(1.1) rotate(3deg);
}

a.room-card:nth-child(1) {
  animation: slideUp 0.6s ease-out;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

a.room-card:nth-child(2) {
  animation: slideUp 0.6s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

a.room-card:nth-child(3) {
  animation: slideUp 0.6s ease-out;
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

.room-card-content {
  position: relative;
  z-index: 2;
}

footer.page-footer {
  margin-top: 40px;
  text-align: center;
  color: rgba(235, 240, 255, 0.6);
  font-size: 0.85rem;
}

.zone-a,
.zone-b,
.zone-c,
.zone-d,
.zone-e,
.zone-f,
.zone-g,
.zone-h,
.zone-i,
.zone-j,
.zone-k,
.zone-l {
  width: 25%;
  height: 33.3333%;
}

.zone-a {
  top: 0;
  left: 0;
}

.zone-b {
  top: 0;
  left: 25%;
}

.zone-c {
  top: 0;
  left: 50%;
}

.zone-d {
  top: 0;
  left: 75%;
}

.zone-e {
  top: 33.3333%;
  left: 0;
}

.zone-f {
  top: 33.3333%;
  left: 25%;
}

.zone-g {
  top: 33.3333%;
  left: 50%;
}

.zone-h {
  top: 33.3333%;
  left: 75%;
}

.zone-i {
  top: 66.6666%;
  left: 0;
}

.zone-j {
  top: 66.6666%;
  left: 25%;
}

.zone-k {
  top: 66.6666%;
  left: 50%;
}

.zone-l {
  top: 66.6666%;
  left: 75%;
}

@media (max-width: 720px) {
  body {
    padding: 32px 12px 48px;
  }

  .map-hotspot span {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
}
@keyframes toastSlideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(91, 192, 248, 0.3);
  }
  50% {
    box-shadow: 0 10px 60px rgba(91, 192, 248, 0.5);
  }
}

#expo-notifications {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 400px;
}

.expo-notification {
  background: linear-gradient(135deg, rgba(16, 24, 50, 0.95), rgba(27, 38, 72, 0.95));
  border: 1px solid rgba(91, 192, 248, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: toastSlideIn 0.4s ease-out, pulseGlow 2s ease-in-out infinite;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(91, 192, 248, 0.3);
}

.expo-notification__message {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
}

.expo-notification__action {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(91, 192, 248, 0.9), rgba(118, 82, 255, 0.9));
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.expo-notification__action:hover,
.expo-notification__action:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 192, 248, 0.4);
}
