/* 69minutes.app · coming soon */
:root {
  --bg: #0b0708;
  --text: #f6ede8;
  --muted: #b39a98;
  --dim: #7d6664;
  --hot: #ff2340;
  --blush: #ffb9bf;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mx: 50vw;
  --my: 40vh;
}
html[lang="ru"] { --serif: "Cormorant", "Instrument Serif", Georgia, serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  caret-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--hot); color: #fff; }

/* ---------- atmosphere ---------- */
#embers, .glow, .spot, .grain { position: fixed; inset: 0; pointer-events: none; }
#embers { z-index: 0; width: 100%; height: 100%; }
.glow {
  z-index: 0;
  background:
    radial-gradient(42vmax 34vmax at 50% 38%, rgba(255, 35, 64, .22), transparent 70%),
    radial-gradient(60vmax 40vmax at 50% 120%, rgba(255, 35, 64, .16), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
  opacity: 0;
  animation-delay: .4s;
}
@keyframes breathe {
  0%   { opacity: .55; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.06); }
  100% { opacity: .55; transform: scale(1); }
}
.spot {
  z-index: 0;
  background: radial-gradient(240px 240px at var(--mx) var(--my), rgba(255, 185, 191, .07), transparent 70%);
}
.grain {
  z-index: 3;
  opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}
/* vignette */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .65) 100%);
}

/* ---------- header ---------- */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) clamp(18px, 4vw, 44px) 0;
  animation: fadeDown .9s 1.6s both cubic-bezier(.2, .8, .2, 1);
}
.brand { text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 15px; }
.brand .b69 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--hot); font-size: 1.35em; margin-right: 1px; }
.brand .b69 { font-family: "Instrument Serif", Georgia, serif !important; }
.brand { direction: ltr; }
.brand .dot { color: var(--dim); font-weight: 600; }
.langs { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px 8px 11px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
  background: rgba(20, 12, 14, .6); backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--text);
  transition: border-color .25s, background .25s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: rgba(255, 35, 64, .6); background: rgba(255, 35, 64, .12); }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn svg:first-child { color: var(--hot); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .25s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none;
  width: 264px; max-height: min(62vh, 520px); overflow-y: auto; overflow-x: hidden;
  padding: 6px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
  background: rgba(22, 13, 15, .96); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 35, 64, .08);
  animation: menuIn .22s cubic-bezier(.2, .8, .2, 1);
  transform-origin: top right;
}
.lang-menu[hidden] { display: none; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; transform-origin: top left; }
html:is([lang="ar"], [lang="he"], [lang="ja"], [lang="ko"], [lang="zh"]) .kicker { font-size: 14px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 13px; color: var(--muted); text-align: start;
  transition: background .2s, color .2s;
}
.lang-menu button b { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--dim); min-width: 20px; font-family: var(--sans); }
.lang-menu button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(255, 255, 255, .06); color: var(--text); outline: none; }
.lang-menu button[aria-checked="true"] { background: var(--hot); color: #fff; }
.lang-menu button[aria-checked="true"] b { color: rgba(255, 255, 255, .8); }
.lang-btn:focus-visible, .logo:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }

/* scripts without a matching italic serif */
html[lang="vi"] { --serif: "Cormorant", "Instrument Serif", Georgia, serif; }
html[lang="ar"] { --serif: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif; }
html[lang="he"] { --serif: "Times New Roman", "David", "Noto Serif Hebrew", serif; }
html[lang="ja"] { --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
html[lang="ko"] { --serif: "AppleMyungjo", "Batang", "Noto Serif KR", serif; }
html[lang="zh"] { --serif: "Songti SC", "SimSun", "Noto Serif SC", serif; }
html:is([lang="ar"], [lang="he"], [lang="ja"], [lang="ko"], [lang="zh"]) :is(.title, .title em, .ready, .love, .track span:nth-child(3n)) { font-style: normal; }
html:is([lang="ar"], [lang="he"], [lang="ja"], [lang="ko"], [lang="zh"]) .title { font-weight: 600; letter-spacing: 0; line-height: 1.22; font-size: clamp(28px, min(5vw, 6vh), 62px); max-width: 15em; }
html:is([lang="ja"], [lang="ko"], [lang="zh"]) .title { max-width: 13em; line-break: strict; }
html[lang="ko"] .title, html[lang="ko"] .sub { word-break: keep-all; }
html:is([lang="ar"], [lang="he"], [lang="ja"], [lang="ko"], [lang="zh"]) .kicker { letter-spacing: .08em; }
html:is([lang="ar"], [lang="he"]) .track span { letter-spacing: 0; }
html[lang="vi"] .title { font-weight: 500; }
html:is([lang="de"], [lang="fr"], [lang="es"], [lang="it"], [lang="nl"], [lang="pt"], [lang="ms"], [lang="vi"]) .title { max-width: 19ch; }

/* ---------- stage ---------- */
.stage {
  position: relative; z-index: 4;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(10px, 3vh, 36px) 20px clamp(18px, 3vh, 32px);
}

.logo {
  position: relative;
  width: clamp(150px, min(34vmin, 30vh), 320px);
  aspect-ratio: 1;
  display: block;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: -2px;
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.six {
  clip-path: inset(100% -30% -30% -30%);
  animation: reveal 1.35s .35s forwards cubic-bezier(.65, 0, .25, 1), impact .5s 1.55s ease-out;
  filter: drop-shadow(0 0 28px rgba(255, 35, 64, .35));
}
@keyframes reveal { to { clip-path: inset(-30% -30% -30% -30%); } }
@keyframes impact {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-3px, 4px) rotate(-1.2deg); }
  45% { transform: translate(2px, -2px) rotate(.8deg); }
  70% { transform: translate(-1px, 1px) rotate(-.3deg); }
  100% { transform: none; }
}
.kiss {
  transform-origin: 74% 22%;
  opacity: 0;
  animation: stamp .62s 1.32s forwards cubic-bezier(.2, 1.4, .4, 1), pout 6s 3.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}
@keyframes stamp {
  0%   { opacity: 0; transform: translate(18%, -22%) scale(2.4) rotate(-18deg); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes pout {
  0%, 78%, 100% { transform: none; }
  84% { transform: scale(1.07) rotate(-3deg); }
  90% { transform: scale(.97) rotate(1deg); }
}
.logo.again .kiss { animation: restamp .55s cubic-bezier(.2, 1.4, .4, 1); opacity: 1; }
@keyframes restamp {
  0% { transform: translate(10%, -14%) scale(1.8) rotate(-14deg); opacity: .2; }
  100% { transform: none; opacity: 1; }
}
.ring {
  position: absolute; left: 74%; top: 22%;
  width: 40%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid var(--blush);
  opacity: 0; transform: scale(.2);
  animation: ring .9s 1.62s ease-out;
}
.logo.again .ring { animation: ring .9s .3s ease-out; }
@keyframes ring {
  0% { opacity: .9; transform: scale(.2); }
  100% { opacity: 0; transform: scale(2.6); border-width: 1px; }
}
.heart {
  position: absolute; z-index: 6; pointer-events: none;
  width: 16px; height: 16px; left: 74%; top: 22%;
  color: var(--blush);
  animation: fly 1.1s ease-out forwards;
}
@keyframes fly {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); }
}

.minutes {
  font-weight: 800; font-size: clamp(11px, 1.5vmin, 14px);
  letter-spacing: .55em; margin-right: -.55em;
  color: var(--text);
  opacity: 0;
  animation: track 1.2s 1.45s forwards cubic-bezier(.2, .8, .2, 1);
}
@keyframes track {
  0% { opacity: 0; letter-spacing: 1.4em; filter: blur(6px); }
  100% { opacity: 1; letter-spacing: .55em; filter: blur(0); }
}

.rise { opacity: 0; animation: rise .9s both cubic-bezier(.2, .8, .2, 1); }
.d1 { animation-delay: 1.9s; } .d2 { animation-delay: 2.05s; } .d3 { animation-delay: 2.25s; }
.d4 { animation-delay: 2.45s; } .d5 { animation-delay: 2.65s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.kicker {
  margin-top: clamp(18px, 3.4vh, 34px);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blush);
  padding: 8px 16px 8px 13px;
  border: 1px solid rgba(255, 185, 191, .22);
  border-radius: 999px;
  background: rgba(255, 35, 64, .07);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 35, 64, .7); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 35, 64, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 35, 64, 0); } }

.title {
  margin-top: clamp(14px, 2.4vh, 22px);
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(32px, min(6vw, 7vh), 76px);
  line-height: 1.02; letter-spacing: -.01em;
  max-width: 17ch;
  text-wrap: balance;
}
html[lang="ru"] .title { font-weight: 500; font-size: clamp(32px, min(5.8vw, 6.8vh), 72px); max-width: 16ch; }
.title em {
  font-style: italic; color: var(--hot);
  background: linear-gradient(100deg, var(--hot) 0%, var(--hot) 40%, var(--blush) 50%, var(--hot) 60%, var(--hot) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s 3.4s ease-in-out infinite;
  padding-right: .08em;
}
@keyframes shine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }

.sub {
  margin-top: clamp(12px, 2vh, 18px);
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- 69:00 clock ---------- */
.clock { margin-top: clamp(20px, 3.6vh, 34px); display: flex; flex-direction: column; align-items: center; }
.digits {
  font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -.02em; line-height: 1;
  color: var(--text);
  text-shadow: 0 0 22px rgba(255, 35, 64, .45);
}
.digits .c { color: var(--hot); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.fuse {
  position: relative;
  width: clamp(180px, 24vw, 260px); height: 2px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
}
.fuse .burn {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--left, 100%);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 35, 64, .35), var(--hot));
  transition: width 1s linear;
}
.fuse .spark {
  position: absolute; top: 50%; left: var(--left, 100%);
  width: 10px; height: 10px; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, #ffd1a6 30%, var(--hot) 60%, transparent 72%);
  box-shadow: 0 0 14px 4px rgba(255, 35, 64, .6);
  transition: left 1s linear;
  animation: flicker .18s infinite alternate;
}
@keyframes flicker { from { transform: scale(.85); opacity: .85; } to { transform: scale(1.2); opacity: 1; } }
.clock-cap { margin-top: 10px; font-size: 12.5px; color: var(--dim); letter-spacing: .02em; }

.ready {
  margin-top: clamp(16px, 3vh, 28px);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--blush);
}

/* ---------- marquee ---------- */
.band {
  position: relative; z-index: 4;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 35, 64, .06);
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: fadeIn 1s 2.8s both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.track span {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-weight: 900; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.track span i { width: 6px; height: 6px; border-radius: 50%; background: var(--hot); display: inline-block; }
.track span:nth-child(3n+2) { color: var(--text); }
.track span:nth-child(3n) { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 19px; color: var(--blush); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 4;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 16px clamp(18px, 4vw, 44px) max(16px, env(safe-area-inset-bottom));
  font-size: 13px; color: var(--dim);
  animation: fadeIn 1s 2.9s both;
}
.adult { display: inline-flex; align-items: center; gap: 10px; }
.adult b {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--hot); color: var(--hot);
  font-size: 11.5px; font-weight: 900; letter-spacing: -.02em;
}
.love {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--blush);
}
.love svg { width: 14px; height: 14px; fill: var(--hot); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } 40% { transform: scale(.95); } }
.track, .fuse, .digits, .lang-menu { direction: ltr; }

@media (max-width: 560px) {
  .foot { justify-content: center; text-align: center; flex-direction: column; }
  .kicker { letter-spacing: .22em; }
  .brand { font-size: 14px; }
}
@media (max-height: 640px) and (orientation: landscape) {
  .logo { width: clamp(120px, 26vmin, 200px); }
  .title { font-size: clamp(28px, 4.4vw, 48px); max-width: 22ch; }
  .clock, .ready { margin-top: 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .six { clip-path: none; }
  .kiss, .minutes, .rise, .glow, .band, .foot, .top { opacity: 1; }
  .glow { opacity: .8; }
  .ring, #embers { display: none; }
  .title em { -webkit-text-fill-color: var(--hot); background: none; }
  .track { flex-wrap: wrap; justify-content: center; width: auto; }
  .track span[aria-hidden="true"] { display: none; }
}
