﻿:root {
  --bg-main: #060d14;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at 15% 10%, #12273a 0%, #060d14 45%, #040a10 100%);
}

body {
  overflow-x: hidden;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}

.orb-a {
  top: -120px;
  left: -80px;
  background: #35d08f;
}

.orb-b {
  right: -90px;
  bottom: -120px;
  background: #2d7ff9;
}

.board-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 35%);
}

#board {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: #06111b;
}

.overlay {
  background: rgba(5, 12, 20, 0.68);
  backdrop-filter: blur(4px);
}

.game-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas:
    "board info"
    "board notifications";
  align-items: start;
}

.board-column {
  grid-area: board;
}

.info-column {
  grid-area: info;
}

.notifications-column {
  grid-area: notifications;
}

.touch-controls {
  display: none;
  margin-top: 12px;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  grid-template-areas:
    ". up ."
    "left restart right"
    ". down .";
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.touch-btn {
  border: 1px solid rgba(126, 180, 214, 0.45);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(16, 41, 62, 0.88), rgba(9, 24, 38, 0.9));
  color: #d9efff;
  font-size: 20px;
  min-height: 56px;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.touch-btn:active {
  transform: scale(0.96);
}

.touch-btn.up { grid-area: up; }
.touch-btn.left { grid-area: left; }
.touch-btn.restart { grid-area: restart; font-size: 18px; }
.touch-btn.right { grid-area: right; }
.touch-btn.down { grid-area: down; }

.notifications-panel {
  background: #05121eb3;
  border-radius: 12px;
  padding: 10px;
}

.notifications-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4d7e5cc;
}

.notifications-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: hidden;
  overflow-x: hidden;
  padding-right: 2px;
  scroll-behavior: smooth;
}

.notifications-list.is-reviewing {
  overflow-y: auto;
}

.notifications-list.is-reviewing::-webkit-scrollbar {
  width: 6px;
}

.notifications-list.is-reviewing::-webkit-scrollbar-track {
  background: rgba(9, 27, 44, 0.45);
  border-radius: 999px;
}

.notifications-list.is-reviewing::-webkit-scrollbar-thumb {
  background: rgba(118, 177, 214, 0.7);
  border-radius: 999px;
}

.notification-item {
  border-radius: 10px;
  background: #091f33b3;
  padding: 8px 10px;
  transform-origin: top center;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.notification-app {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(162, 234, 201, 0.95);
}

.notification-from {
  color: #b892ff;
}

.notification-time {
  font-size: 10px;
  color: rgba(173, 194, 210, 0.8);
}

.notification-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.32;
  color: rgba(225, 238, 248, 0.93);
}

footer {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10;
}

@media (max-width: 640px) {
  .game-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "notifications"
      "board"
      "info";
  }

  .bg-orb {
    width: 260px;
    height: 260px;
  }

  #fx-canvas {
    opacity: 0.6;
  }

  .touch-controls {
    display: grid;
  }

  .notifications-list {
    max-height: 140px;
  }

  footer {
    position: static;
    margin-top: 8px;
  }
}
