/* ============ CLOSED · سوسو is upset ============
   Injected by closed.js. While the site is closed this screen owns the
   whole page: a crying heart, tears that fall into a lake, and the lake
   keeps rising until the page is full — and it stays full. */

html.is-closed,
html.is-closed body {
  height: 100%;
  overflow: hidden;
  background: #140D16;
  overscroll-behavior: none;
}
html.is-closed body > *:not(.sulk) { display: none !important; }

.sulk {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3.4vw, 1.7rem);
  padding: calc(env(safe-area-inset-top, 0px) + 2rem) 1.35rem calc(env(safe-area-inset-bottom, 0px) + 1.4rem);
  background: radial-gradient(125% 85% at 50% 14%, #3A2330 0%, #26182A 44%, #130C15 100%);
  color: #F6DCE3;
  font-family: 'Thmanyah Sans', system-ui, sans-serif;
  line-height: 1.7;
  text-align: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  animation: sulk-in 1.2s cubic-bezier(0.32, 0.72, 0, 1) both;
}
@keyframes sulk-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- the crying heart ---- */
.sulk-face {
  position: relative;
  z-index: 1;
  width: min(44vw, 176px);
  flex: none;
  transform-origin: 50% 70%;
  animation: sulk-sob 4.6s ease-in-out infinite;
  will-change: transform, filter;
}
.sulk-face svg { display: block; width: 100%; height: auto; overflow: visible; }
.sulk-heart {
  fill: rgba(217, 108, 138, 0.14);
  stroke: #EDA6BA;
  stroke-width: 5;
  stroke-linejoin: round;
  filter: drop-shadow(0 18px 46px rgba(217, 108, 138, 0.3));
}
.sulk-line {
  fill: none;
  stroke: #FCDDE6;
  stroke-width: 5.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sulk-track { fill: none; stroke: rgba(196, 226, 255, 0.5); stroke-width: 3.4; stroke-linecap: round; }
.sulk-track.b { animation-delay: 1.1s; }
.sulk-track { animation: sulk-track 4.6s ease-in-out infinite; }
@keyframes sulk-track { 0%, 100% { opacity: 0.25; } 45% { opacity: 0.7; } }

@keyframes sulk-sob {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  7%  { transform: translateY(-7px) scale(1.04) rotate(-1.2deg); }
  13% { transform: translateY(1px) scale(0.985) rotate(0.6deg); }
  19% { transform: translateY(-3px) scale(1.015) rotate(-0.5deg); }
  27% { transform: translateY(0) scale(1) rotate(0deg); }
}

/* ---- under the water: he chokes, gasps and struggles ---- */
.sulk-mouth { transition: opacity 0.7s ease; }
.sulk-gasp {
  fill: rgba(18, 10, 22, 0.5);
  stroke: #FCDDE6;
  stroke-width: 4.6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.7s ease;
}
.sulk.is-flooded .sulk-mouth { opacity: 0; }
.sulk.is-flooded .sulk-track { opacity: 0; animation: none; }
.sulk.is-flooded .sulk-gasp { opacity: 1; animation: sulk-gasp 1.9s ease-in-out infinite; }
.sulk.is-flooded .sulk-face { animation: sulk-choke 2.7s ease-in-out infinite; }
@keyframes sulk-gasp {
  0%, 100% { transform: scale(1, 0.7); }
  22% { transform: scale(1.06, 1.2); }
  48% { transform: scale(0.95, 0.6); }
  70% { transform: scale(1.03, 1.06); }
}
@keyframes sulk-choke {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  9%  { transform: translateY(7px) rotate(2.4deg) scale(0.97); }
  18% { transform: translateY(-5px) rotate(-3.2deg) scale(1.035); }
  28% { transform: translateY(6px) rotate(2.8deg) scale(0.975); }
  40% { transform: translateY(-3px) rotate(-1.6deg) scale(1.015); }
  58% { transform: translateY(4px) rotate(1.2deg) scale(0.99); }
  76% { transform: translateY(-1px) rotate(-0.6deg) scale(1.005); }
}

/* ---- tears + the lake ---- */
.sulk-water {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- the words (always above the water) ---- */
.sulk-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.62rem;
  max-width: 31rem;
}
.sulk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(246, 220, 227, 0.5);
}
.sulk-kicker::before,
.sulk-kicker::after {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.sulk-title {
  font-size: clamp(1.45rem, 6.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 28px rgba(8, 4, 10, 0.6);
}
.sulk-title .ar { color: #F9C9D7; }
.sulk-sub {
  font-size: clamp(0.92rem, 3.5vw, 1rem);
  font-weight: 300;
  color: rgba(246, 220, 227, 0.74);
  text-shadow: 0 4px 22px rgba(8, 4, 10, 0.55);
}
/* ---- the message that comes up out of the drowning heart ---- */
.sulk-msg { display: none; }
.sulk.is-flooded .sulk-msg {
  display: block;
  position: relative;
  z-index: 3;
  max-width: min(84vw, 23rem);
  padding: 0.6rem 1.15rem;
  border: 1px solid rgba(206, 234, 255, 0.34);
  border-radius: 1.15rem;
  background: rgba(170, 208, 247, 0.17);
  box-shadow: 0 14px 36px -20px rgba(6, 16, 40, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #EDF5FF;
  font-size: clamp(0.88rem, 3.4vw, 0.98rem);
  font-weight: 300;
  line-height: 1.6;
  animation: sulk-msg-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             sulk-msg-float 4.6s ease-in-out 0.9s infinite;
}
.sulk.is-flooded .sulk-msg::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(186, 218, 250, 0.22);
  border-top: 1px solid rgba(206, 234, 255, 0.34);
  border-left: 1px solid rgba(206, 234, 255, 0.34);
  border-top-left-radius: 4px;
}
.sulk-msg-text { display: inline-block; opacity: 0; transition: opacity 0.45s ease; }
.sulk-msg-text.show { opacity: 1; }
@keyframes sulk-msg-in { from { opacity: 0; transform: translateY(12px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes sulk-msg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.sulk-count {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(246, 220, 227, 0.4);
}

/* ---- her one button, which never works ---- */
.sulk-sorry {
  margin-top: 0.3rem;
  padding: 0.62rem 1.6rem;
  border: 1px solid rgba(246, 220, 227, 0.26);
  border-radius: 999px;
  background: rgba(246, 220, 227, 0.07);
  color: #F6DCE3;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), background 0.4s ease, border-color 0.4s ease;
}
.sulk-sorry:hover { background: rgba(246, 220, 227, 0.12); border-color: rgba(246, 220, 227, 0.4); }
.sulk-sorry:active { background: rgba(246, 220, 227, 0.2); }
.sulk-reply {
  min-height: 1.3em;
  font-size: 0.85rem;
  font-weight: 300;
  color: #F9C9D7;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.sulk-reply.show { opacity: 1; transform: translateY(0); }

@media (max-height: 680px) {
  .sulk { gap: 0.8rem; }
  .sulk-face { width: min(32vw, 124px); }
  .sulk-sub { font-size: 0.86rem; }
  .sulk-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sulk, .sulk-face, .sulk-track, .sulk-gasp, .sulk-msg { animation: none !important; }
}
