:root {
  --bg: #fbf8f4;
  --paper: rgba(255, 255, 255, 0.78);
  --ink: #23303a;
  --ink-soft: #5a6873;
  --rose: #f2cfd6;
  --sage: #d6e6db;
  --peach: #f8dfca;
  --mint: #dceeea;
  --gold: #b78f67;
  --card-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 20px 55px rgba(68, 88, 101, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 10% 10%, #fffaf6 0%, #f9f3ee 45%, #f4f0eb 100%);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-blur {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.bg-blur-a {
  width: 420px;
  height: 420px;
  background: var(--rose);
  top: -150px;
  left: -90px;
}

.bg-blur-b {
  width: 360px;
  height: 360px;
  background: var(--mint);
  right: -80px;
  top: 45vh;
}

.section {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-optimized {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.hero {
  margin-top: 1rem;
  min-height: 88vh;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.72) 10%, rgba(231, 246, 237, 0.26) 60%, rgba(255, 241, 228, 0.6) 100%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(7px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  width: min(640px, 90%);
  animation: lift 1.2s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  letter-spacing: 0.02em;
}

.hero-date,
.hero-place {
  margin: 0.8rem 0 0;
  color: #34434d;
}

.cta {
  margin-top: 1.5rem;
  display: inline-block;
  text-decoration: none;
  color: #26323b;
  font-weight: 600;
  background: linear-gradient(120deg, var(--rose), var(--mint));
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(105, 97, 93, 0.2);
}

.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.petal {
  position: absolute;
  width: 18px;
  height: 24px;
  background: url("./assets/petal-real.svg") center / contain no-repeat;
  transform-origin: center;
  will-change: transform, opacity;
  animation: fall linear infinite;
}

.card-section {
  margin-top: 4rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
  text-align: center;
}

.card p {
  color: #33424d;
  line-height: 1.8;
  margin: 1rem auto 0;
  max-width: 50ch;
}

.gallery-section {
  margin-top: 4.8rem;
}

.section-head {
  text-align: center;
}

.section-head h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

.section-head p {
  color: var(--ink-soft);
}

.gallery-slider {
  margin-top: 1.6rem;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  background: #fff;
}

.slides-track {
  width: 100%;
  height: clamp(280px, 54vw, 560px);
  position: relative;
  overflow: hidden;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 460ms ease, transform 680ms ease;
}

.slide-img.active {
  opacity: 1;
  transform: scale(1);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #344351;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.slider-nav.prev {
  left: 12px;
  padding-left: 1px;
}

.slider-nav.next {
  right: 12px;
}

.slider-controls {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #c7d0d6;
  cursor: pointer;
}

.dot.active {
  background: #6f7f8b;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 30, 0.56);
}

.gallery-modal-panel {
  position: relative;
  z-index: 2;
  margin: 4vh auto;
  width: min(980px, calc(100% - 1.2rem));
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
}

.gallery-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.gallery-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: #f0f4f7;
  color: #2f3f4c;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.gallery-modal-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eceff2;
  cursor: pointer;
}

.gallery-focus {
  display: grid;
  gap: 0.8rem;
  position: relative;
}

.gallery-focus img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #eceff2;
  background: #f8fafc;
}

.swipe-hint {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(20, 30, 38, 0.72);
  color: #f4f8fb;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.swipe-hint.show {
  opacity: 1;
  visibility: visible;
  animation: swipeHintPulse 1.1s ease-in-out infinite;
}

@keyframes swipeHintPulse {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateX(-50%) translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.85;
  }
}

.details-section {
  margin-top: 5rem;
  border-radius: 30px;
  padding: 3rem 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(234, 245, 238, 0.52));
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  right: -130px;
  top: -90px;
  width: min(520px, 60vw);
  opacity: 0.25;
  pointer-events: none;
}

.details-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

.detail-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.3rem;
  text-align: center;
  backdrop-filter: blur(5px);
}

.detail-card h3 {
  color: #31404a;
}

.detail-card p {
  color: #485a67;
  margin: 0.4rem 0 0;
}

.randombox-section {
  margin-top: 5rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(255, 251, 249, 0.85), rgba(237, 249, 242, 0.72));
  border: 1px solid var(--card-border);
  padding: 2.7rem 1rem 3.2rem;
}

.randombox-section .section-head {
  position: relative;
  z-index: 4;
}

.auth-panel {
  margin-top: 1rem;
  position: relative;
  z-index: 4;
}

.auth-notice {
  margin: 0 auto 0.8rem;
  max-width: 560px;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 4;
}

.auth-notice.success {
  background: #eaf7ee;
  border: 1px solid #c7e8d1;
  color: #28583b;
}

.auth-notice.error {
  background: #fff2f2;
  border: 1px solid #f2c8c8;
  color: #8c2e2e;
}

.auth-status {
  margin: 0.2rem 0 0.8rem;
  font-weight: 600;
  color: #374856;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hidden {
  display: none !important;
}

body.auth-pending #authNotice,
body.auth-pending .auth-panel,
body.auth-pending .box-wrap,
body.auth-pending #resultText,
body.auth-pending #gifticonPanel {
  visibility: hidden;
}

.location-section {
  margin-top: 4.8rem;
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.84), rgba(236, 246, 239, 0.74));
  border: 1px solid var(--card-border);
  padding: 2.2rem 1rem 2rem;
}

.map-card {
  margin-top: 1.2rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: relative;
  box-shadow: var(--shadow);
}

.map-card img {
  width: 100%;
  height: clamp(180px, 28vw, 300px);
  object-fit: cover;
  display: block;
}

.map-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(22, 34, 40, 0.64));
  color: #fff;
}

.map-overlay strong {
  display: block;
  font-size: 1rem;
}

.map-overlay p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #f2f4f7;
}

.map-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.map-btn {
  text-decoration: none;
  border: 0;
  padding: 0.78rem 0.8rem;
  border-radius: 999px;
  text-align: center;
  background: linear-gradient(120deg, var(--rose), var(--mint));
  color: #23303a;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(80, 94, 92, 0.17);
}

.map-btn-ghost {
  background: #ffffffc9;
  border: 1px solid #dde6df;
}

.box-wrap {
  margin-top: 1.4rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-top: 0.6rem;
}

.random-box {
  border: 0;
  background: transparent;
  position: relative;
  width: 208px;
  height: 196px;
  cursor: pointer;
  touch-action: pan-y;
  transition: transform 0.22s ease;
}

.random-box:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.random-box:active {
  transform: scale(0.98);
}

.bow {
  position: absolute;
  top: 8px;
  width: 50px;
  height: 30px;
  border: 5px solid #f7efe5;
  border-radius: 50%;
  background: transparent;
  z-index: 5;
}

.bow-left {
  left: 50%;
  transform: translateX(-98%);
}

.bow-right {
  left: 50%;
  transform: translateX(-2%);
}

.box-body,
.box-lid {
  position: absolute;
  left: 22px;
  width: 164px;
  border-radius: 12px;
  background: linear-gradient(160deg, #efc2cb, #d99aa8);
  box-shadow: 0 13px 24px rgba(110, 79, 84, 0.24);
}

.box-body {
  bottom: 16px;
  height: 128px;
  z-index: 2;
}

.box-lid {
  top: 36px;
  height: 46px;
  transform-origin: 16px 40px;
  transition: transform 0.5s ease;
  z-index: 4;
}

.box-front {
  position: absolute;
  left: 22px;
  bottom: 16px;
  width: 164px;
  height: 58px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #d48f9f, #be788a);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.22);
  z-index: 3;
}

.box-ribbon {
  position: absolute;
  left: 97px;
  top: 36px;
  width: 14px;
  height: 136px;
  border-radius: 10px;
  background: linear-gradient(#fffaf0, #efe2ce);
  box-shadow: inset 0 -1px 2px rgba(131, 102, 67, 0.2);
  z-index: 5;
}

.tap {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #66737e;
}

.random-box.open .box-lid {
  transform: rotate(-18deg) translate(-6px, -10px);
}

.result-text {
  margin: 1.4rem 0 0;
  min-height: 1.4em;
  font-weight: 600;
  color: #34414d;
}

.result-text.win {
  color: #9a6d2b;
}

.result-text.lose {
  color: #546472;
}

.gifticon-panel {
  margin: 1rem auto 0;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.gifticon-panel img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #eceff2;
}

.gifticon-code {
  margin: 0;
  color: #364653;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mini-games-section {
  margin-top: 4.8rem;
  margin-bottom: 2.4rem;
}

.mini-games-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini-game-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.game-top-ranking {
  border-radius: 14px;
  padding: 0.65rem;
  border: 1px solid #e4ece8;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, #f7fbfa, #eef6f2);
  box-shadow: 0 6px 16px rgba(57, 74, 87, 0.07);
  transform-origin: top;
  animation: rankingCardPop 420ms ease both;
  position: relative;
  overflow: hidden;
}

.game-top-ranking.ranking-wave::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.55) 45%, transparent 80%);
  transform: translateX(-120%);
  animation: rankingWave 760ms ease;
  pointer-events: none;
}

.ranking-title {
  margin: 0 0 0.45rem;
  color: #2f3f4a;
  font-weight: 700;
  font-size: 0.9rem;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #e7efeb;
  animation: rankingItemRise 360ms ease both;
}

.ranking-item.rank-up {
  animation: rankingItemRise 360ms ease both, rankJump 520ms ease;
}

.ranking-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ranking-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #20303a;
  background: #e6efeb;
  flex-shrink: 0;
}

.ranking-item.rank-1 .ranking-badge {
  background: linear-gradient(130deg, #ffe8a9, #ffd16f);
}

.ranking-item.rank-2 .ranking-badge {
  background: linear-gradient(130deg, #eceff3, #d7dde4);
}

.ranking-item.rank-3 .ranking-badge {
  background: linear-gradient(130deg, #f2dfd0, #dcb28d);
}

.ranking-name {
  color: #2a3b46;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-score {
  color: #1f3340;
  font-weight: 700;
}

.ranking-empty {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  color: #637481;
  background: rgba(255, 255, 255, 0.6);
}

.mini-game-card h3 {
  font-size: 1.1rem;
}

.mini-game-desc {
  margin: 0;
  color: #51616d;
  font-size: 0.92rem;
}

.mini-game-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #31404a;
  font-weight: 600;
  font-size: 0.92rem;
}

.mini-game-target {
  border: 0;
  height: 92px;
  border-radius: 14px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #22303a;
  background: linear-gradient(130deg, #f8dbe0, #dff0e8);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.mini-game-target:active {
  transform: scale(0.98);
}

.mini-game-heart {
  width: 92px;
  height: 92px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
  background: radial-gradient(circle at 30% 30%, #ff9fb2 0%, #f56f8f 45%, #e25579 100%);
  box-shadow: 0 10px 18px rgba(226, 85, 121, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
  touch-action: none;
}

.mini-game-heart:active,
.mini-game-heart.pop {
  transform: scale(0.94);
  box-shadow: 0 6px 12px rgba(226, 85, 121, 0.32);
}

.mini-game-start {
  justify-self: start;
}

.petal-catch-field {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  border: 1px solid #dde7e1;
  background: linear-gradient(180deg, #f7fcfa, #ecf5f1);
  overflow: hidden;
  touch-action: pan-y;
}

.petal-catch-petal {
  position: absolute;
  width: 24px;
  height: 24px;
  background: url("./assets/blossom-mini.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(95, 55, 72, 0.24)) saturate(1.08);
  opacity: 0.98;
  pointer-events: none;
}

.petal-basket {
  position: absolute;
  bottom: 10px;
  left: calc(50% - 32px);
  width: 64px;
  height: 30px;
  border-radius: 12px 12px 16px 16px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.13) 0 3px,
      rgba(0, 0, 0, 0.04) 3px 6px
    ),
    linear-gradient(180deg, #e0b88e, #ba7f55);
  border: 1px solid rgba(129, 79, 48, 0.35);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.25), 0 4px 8px rgba(90, 60, 40, 0.24);
}

.petal-basket::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -12px;
  height: 14px;
  border: 3px solid rgba(145, 94, 62, 0.85);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.petal-basket::after {
  content: "";
  position: absolute;
  inset: 4px 7px auto 7px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.petal-catch-field.game-over {
  animation: catchGameOverPulse 520ms ease;
  box-shadow: inset 0 0 0 2px rgba(244, 155, 185, 0.55);
}

.tap-confetti {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 120;
  animation: tapConfettiBurst 980ms ease-out forwards;
}

@keyframes tapConfettiBurst {
  to {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.2) rotate(280deg);
  }
}

@keyframes catchGameOverPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rankingCardPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes rankJump {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes rankingWave {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.sparkle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: burst 900ms ease-out forwards;
}

.footer {
  text-align: center;
  color: #55626d;
  padding-bottom: 2rem;
}

.admin-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.admin-card {
  text-align: left;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.admin-status {
  margin: 1rem 0;
  color: #41515d;
  font-weight: 600;
}

.admin-table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #e6ebef;
  background: #ffffffd8;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf1f4;
  padding: 0.75rem;
  font-size: 0.92rem;
  color: #32414c;
  text-align: left;
  white-space: nowrap;
}

.admin-table thead th {
  background: #f7fafb;
  color: #2a3944;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes fall {
  from {
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  to {
    transform: translate3d(18px, 110vh, 0) rotate(320deg);
  }
}

@keyframes burst {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.1);
  }
}

@media (max-width: 960px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-actions {
    grid-template-columns: 1fr;
  }

  .mini-games-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .hero {
    min-height: 78vh;
    border-radius: 24px;
  }

  .hero-content {
    padding: 2rem 1.2rem;
  }

  .gallery-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .slider-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-modal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .randombox-section {
    padding: 2.3rem 0.7rem 2.8rem;
  }

  .map-btn {
    font-size: 0.95rem;
  }

  .auth-actions {
    flex-direction: column;
  }

  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
