:root {
  color-scheme: light;
  --bg: #F5F3EE;
  --surface: #fffdf8;
  --surface-strong: #eeeae1;
  --ink: #1C2B24;
  --muted: #6f746d;
  --gold: #1F5A46;
  --gold-strong: #164535;
  --date: #2E7A5E;
  --rose: #b86243;
  --line: #E4E1D8;
  --shadow: 0 14px 36px rgba(31, 50, 42, 0.09);
  --radius: 14px;
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(23, 79, 62, 0.12), transparent 28rem),
    linear-gradient(135deg, rgba(250, 246, 238, 0.98), rgba(239, 231, 216, 0.98)),
    url("../../images/al-istiraha-pattern.svg");
  background-color: var(--bg);
  background-size: auto, auto, 230px;
}

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid rgba(46, 122, 94, 0.72);
  outline-offset: 3px;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  place-items: center;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 30rem),
    linear-gradient(160deg, #f7f4ee 0%, #ebe4d8 58%, #dfe8df 100%);
  transition: opacity 0.22s ease, visibility 0.22s ease;
  animation: splash-shell-out 0.22s ease 0.65s forwards;
  will-change: opacity;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 80%, rgba(31, 90, 70, 0.10), transparent 18rem),
    radial-gradient(circle at 78% 20%, rgba(216, 182, 101, 0.12), transparent 16rem);
  pointer-events: none;
}

.splash-card {
  position: relative;
  z-index: 1;
  width: min(86vw, 330px);
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 2.15rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 24px 58px rgba(31, 50, 42, 0.14);
  backdrop-filter: blur(10px);
  animation: splash-card-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  contain: layout paint;
}

.splash img {
  width: 112px;
  height: 112px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 16px 24px rgba(31, 90, 70, 0.18));
  animation: splash-mark-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.03s both;
}

.splash strong,
.splash span {
  animation: splash-text-in 0.3s ease 0.06s both;
}

.splash strong {
  color: var(--gold);
  font-size: 2.08rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
}

.splash span {
  color: var(--gold-strong);
  font-size: 1.05rem;
  font-weight: 700;
}

.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes splash-card-in {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splash-mark-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes splash-text-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splash-shell-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 640px) {
  .splash-card {
    width: min(84vw, 290px);
    min-height: 244px;
    border-radius: 24px;
    padding: 1.75rem 1.25rem;
  }

  .splash img {
    width: 92px;
    height: 92px;
  }

  .splash strong {
    font-size: 1.72rem;
  }
}
