.hero,
.panel,
.card,
.artifact-card,
.empty-state {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1;
  margin: 8px 0;
}

.mobile-game-home {
  align-items: center;
  display: grid;
  gap: 18px;
  isolation: isolate;
  min-height: calc(100vh - 190px);
  overflow: hidden;
  padding: 34px 14px 22px;
  place-items: center;
  position: relative;
  text-align: center;
}

.mobile-game-home::before,
.mobile-game-home::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.mobile-game-home::before {
  background-image: url("/assets/img/IMG_2200.JPG");
  background-position: center;
  background-size: cover;
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.02);
  z-index: 0;
}

.mobile-game-home::after {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 212, 0, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(5, 12, 32, 0.14), rgba(4, 9, 28, 0.58));
  z-index: 0;
}

.mobile-game-home > :not(.bubble) {
  position: relative;
  z-index: 2;
}

.mobile-game-home--dashboard {
  min-height: 360px;
}

.game-logo {
  position: relative;
  z-index: 2;
}

.game-logo h1 {
  color: var(--color-secondary);
  font-size: clamp(54px, 16vw, 104px);
  font-weight: 1000;
  line-height: 0.86;
  margin: 0;
  text-shadow: 6px 7px 0 #062f78, 0 0 18px #fff;
  text-transform: none;
  transform: rotate(-4deg);
  -webkit-text-stroke: 3px #0c4aaf;
}

.game-logo strong {
  color: #10275d;
  display: block;
  font-size: clamp(58px, 17vw, 112px);
  font-weight: 1000;
  line-height: 0.9;
  text-shadow: 4px 5px 0 rgba(255, 255, 255, 0.32);
  -webkit-text-stroke: 3px #fff;
}

.tagline {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  max-width: 320px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.74);
}

.game-actions {
  display: grid;
  gap: 12px;
  max-width: 340px;
  position: relative;
  width: min(82vw, 340px);
  z-index: 3;
}

.bubble {
  animation: floatBubble 3.6s ease-in-out infinite;
  background: radial-gradient(circle at 30% 25%, #fff 0 14%, #ff85d1 28%, #7438ff 72%);
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 63, 164, 0.82);
  display: block;
  position: absolute;
  z-index: 1;
}

.bubble::after {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  content: "";
  height: 14px;
  left: 18%;
  position: absolute;
  top: 16%;
  width: 14px;
}

.bubble--one {
  height: 78px;
  right: 7%;
  top: 30%;
  width: 78px;
}

.bubble--two {
  animation-delay: 0.4s;
  height: 54px;
  left: 8%;
  top: 23%;
  width: 54px;
}

.bubble--three {
  animation-delay: 0.9s;
  bottom: 18%;
  height: 58px;
  right: 20%;
  width: 58px;
}

.bubble--four {
  animation-delay: 1.2s;
  bottom: 31%;
  height: 42px;
  left: 21%;
  width: 42px;
}

.eyebrow,
.muted {
  color: var(--color-text-muted);
}

.shortcut-grid,
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.card,
.panel,
.empty-state {
  padding: 18px;
}

.card span {
  color: var(--color-text-muted);
  display: block;
  font-size: 14px;
  margin-top: 5px;
}

.button {
  align-items: center;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-button);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  box-shadow: var(--shadow-press);
  text-transform: uppercase;
}

.button--primary {
  background: var(--gradient-pink);
  color: #fff;
}

.form {
  display: grid;
  gap: 14px;
}

.filters-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin: 16px 0;
}

.form label {
  color: var(--color-text-muted);
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  min-height: 110px;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
}

.alert--error {
  background: rgba(245, 66, 66, 0.14);
  color: #fecaca;
}

.alert--success {
  background: rgba(48, 201, 93, 0.14);
  color: #bbf7d0;
}

.is-hidden {
  display: none;
}

.check-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.is-ok {
  color: #bbf7d0;
}

.is-bad {
  color: #fecaca;
}

.artifact-card {
  overflow: hidden;
}

.card {
  background: var(--gradient-blue);
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-press);
  color: #fff;
}

.card--pink {
  background: var(--gradient-pink);
}

.card--blue {
  background: var(--gradient-blue);
}

.card--green {
  background: var(--gradient-green);
}

.card--purple {
  background: var(--gradient-purple);
}

.card--gold {
  background: var(--gradient-gold);
  color: #153a94;
}

.card strong {
  font-size: 18px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.artifact-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.artifact-image-button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.image-lightbox {
  align-items: center;
  background: rgba(2, 6, 23, 0.94);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 58px 14px 18px;
  position: fixed;
  z-index: 1000;
}

.image-lightbox[hidden] {
  display: none;
}

body.has-open-lightbox {
  overflow: hidden;
}

.image-lightbox img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.image-lightbox__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 999px;
  color: #06122e;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  left: 14px;
  line-height: 1;
  position: fixed;
  top: 14px;
  width: 42px;
}

.artifact-card div {
  padding: 14px;
}

.map-canvas {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  min-height: 62vh;
  justify-content: center;
  margin-top: 16px;
  overflow: hidden;
}

.map-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 12px 0;
}

.map-pin {
  align-items: center;
  border: 3px solid #0f172a;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  display: flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.map-popup {
  color: #0f172a;
  display: grid;
  gap: 7px;
  min-width: 180px;
}

.map-popup img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.image-preview {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-soft);
  background-position: center;
  background-size: cover;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.artifact-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.artifact-detail__image {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.artifact-detail__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.stats-row,
.actions-row,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination {
  align-items: center;
  color: var(--color-text-muted);
  justify-content: center;
  margin-top: 18px;
}

.stats-row span {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  padding: 8px 12px;
}

.vote-panel {
  display: grid;
  gap: 10px;
}

.favorite-panel,
.comments-panel {
  display: grid;
  gap: 12px;
}

.rating-row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rating-button {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  cursor: pointer;
  min-height: 40px;
}

.rating-button.is-selected {
  background: var(--color-secondary);
  color: #0f172a;
  font-weight: 800;
}

.comments-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: 18px;
  padding: 18px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  align-items: start;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 1fr;
  padding: 12px;
}

.comment-item p {
  margin: 0 0 6px;
}

.comment-delete-form {
  margin-top: 10px;
}

.button--secondary {
  background: var(--gradient-blue);
  color: var(--color-text);
}

.button--small {
  min-height: 40px;
  padding: 0 14px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 54px 1fr auto;
  padding: 12px;
}

.ranking-row img,
.avatar-dot {
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  width: 54px;
}

.avatar-dot {
  align-items: center;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
}

.avatar-dot img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.avatar-dot--small {
  border-radius: 10px;
  font-size: 13px;
  width: 34px;
}

.avatar-dot--tiny {
  border-radius: 8px;
  font-size: 11px;
  width: 24px;
}

.author-inline {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.author-inline a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.author-inline a:hover {
  text-decoration: underline;
}

.ranking-row small {
  color: var(--color-text-muted);
  display: block;
  margin-top: 3px;
}

.ranking-row small.author-inline {
  display: inline-flex;
}

.profile-page {
  display: grid;
  gap: 18px;
}

.profile-hero {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  padding: 18px;
}

.profile-hero h1 {
  margin: 4px 0 8px;
}

.profile-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: var(--color-primary);
  border-radius: 18px;
  color: #fff;
  display: flex;
  font-size: 42px;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  width: 112px;
}

.profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-grid,
.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.metric-grid div {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px;
}

.metric-grid strong {
  display: block;
  font-size: 26px;
}

.metric-grid span {
  color: var(--color-text-muted);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-pill {
  background: rgba(255, 212, 0, 0.14);
  border: 1px solid rgba(255, 212, 0, 0.32);
  border-radius: 999px;
  color: #fde68a;
  font-weight: 700;
  padding: 8px 12px;
}

.profile-edit {
  display: grid;
  gap: 18px;
}

.section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.notification-list,
.notifications-page {
  display: grid;
  gap: 12px;
}

.notification-item {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.notification-item.is-unread {
  border-color: rgba(255, 212, 0, 0.52);
}

.notification-item p {
  margin: 0 0 5px;
}

.report-box {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px;
}

.report-box summary {
  cursor: pointer;
  font-weight: 700;
}

.report-box--compact {
  margin-top: 10px;
}

.admin-page,
.report-list {
  display: grid;
  gap: 12px;
}

.report-item {
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 14px;
}

.report-item h2 {
  margin: 4px 0 8px;
}

.admin-user-list {
  display: grid;
  gap: 12px;
}

.admin-user-item {
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: 54px 1fr;
  padding: 14px;
}

.admin-user-item h2 {
  margin: 0 0 4px;
}

.admin-user-actions {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.admin-user-form {
  display: grid;
  gap: 8px;
}

.admin-reassign-form {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.admin-reassign-form input {
  min-width: 0;
  width: 100%;
}

@media (min-width: 720px) {
  .shortcut-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-hero {
    grid-template-columns: 132px 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .report-item {
    grid-template-columns: 1fr auto;
  }

  .admin-user-item {
    grid-template-columns: 54px 1fr 280px;
  }

  .admin-user-actions {
    grid-column: auto;
  }

  .filters-bar {
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  }
}
