:root{--bg:#050506;--bg2:#0d0c0a;--gold1:#faecc8;--gold2:#d9b66a;--gold3:#b08a3e;--line:rgba(217,182,106,.28);--text:#efe6d2}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:"Cairo","Segoe UI",system-ui,sans-serif;line-height:1.7;min-height:100vh;
background-image:radial-gradient(ellipse at 50% -10%,rgba(176,138,62,.16),transparent 55%),radial-gradient(ellipse at 50% 110%,rgba(176,138,62,.10),transparent 50%)}
body[dir=ltr]{font-family:"Cormorant Garamond","Cairo",Georgia,serif}
.gold{background:linear-gradient(180deg,var(--gold1),var(--gold2) 55%,var(--gold3));-webkit-background-clip:text;background-clip:text;color:transparent}
a{color:var(--gold2);text-decoration:none}
.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:12px 28px;background:rgba(5,5,6,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:42px;width:auto}
.nav{display:flex;gap:22px;align-items:center}
.nav a{color:var(--text);font-size:1.02rem;padding:4px 2px;border-bottom:1px solid transparent}
.nav a.active,.nav a:hover{color:var(--gold2);border-color:var(--gold2)}
.lang{display:flex;gap:6px}
.lang button{background:transparent;color:var(--gold2);border:1px solid var(--line);padding:3px 10px;border-radius:20px;cursor:pointer;font:inherit;font-size:.85rem}
.lang button.on{background:linear-gradient(180deg,var(--gold1),var(--gold3));color:#111;border-color:transparent}
.hero{text-align:center;padding:90px 20px 70px;position:relative}
.hero img.logo{width:120px;margin:0 auto 18px;display:block;filter:drop-shadow(0 0 22px rgba(217,182,106,.35))}
.hero h1{font-size:clamp(2.6rem,8vw,5.4rem);font-weight:800;line-height:1.15}
.hero .role{font-size:clamp(1.2rem,3vw,1.8rem);letter-spacing:.35em;color:var(--gold2);margin-top:6px}
body[dir=rtl] .hero .role{letter-spacing:.1em}
.hero .tag{margin-top:22px;color:#cdbf9f;font-size:1.1rem}
.divider{width:160px;height:1px;margin:28px auto;background:linear-gradient(90deg,transparent,var(--gold2),transparent)}
section{max-width:1180px;margin:0 auto;padding:40px 20px}
h2.sec{font-size:clamp(1.8rem,4vw,2.6rem);text-align:center}
p.sub{text-align:center;color:#bfb293;margin:6px 0 30px}
.grid{display:flex;flex-wrap:wrap;justify-content:center;gap:26px}
.grid .card{width:calc(25% - 20px);min-width:240px}
.card{background:var(--bg2);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.6);transition:transform .35s,border-color .35s}
.card:hover{transform:translateY(-6px);border-color:var(--gold2)}
.card img.art{width:100%;display:block;aspect-ratio:3/4;object-fit:cover}
.player{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line);background:linear-gradient(180deg,#0f0d09,#070706);direction:ltr}
.pbtn{flex:none;width:42px;height:42px;border-radius:50%;border:1px solid var(--gold2);background:radial-gradient(circle at 30% 30%,#2a2113,#0a0907);color:var(--gold1);cursor:pointer;display:grid;place-items:center;font-size:15px}
.pbtn:hover{background:linear-gradient(180deg,var(--gold1),var(--gold3));color:#111}
.pbtn[disabled]{opacity:.35;cursor:not-allowed}
.bar{flex:1;height:5px;background:rgba(217,182,106,.18);border-radius:4px;cursor:pointer;position:relative}
.bar i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,var(--gold3),var(--gold1));border-radius:4px}
.time{font-size:.78rem;color:#bfb293;min-width:76px;text-align:right;font-family:system-ui,sans-serif}
.soon{font-size:.8rem;color:#8d8266;flex:1;text-align:center;direction:inherit}
.about p{max-width:760px;margin:0 auto;text-align:center;font-size:1.18rem;color:#d8ceb6}
.social{display:flex;justify-content:center;gap:16px;margin-top:26px;flex-wrap:wrap}
.social a{border:1px solid var(--gold2);padding:9px 24px;border-radius:30px;color:var(--gold1);transition:.3s}
.social a:hover{background:linear-gradient(180deg,var(--gold1),var(--gold3));color:#111}
/* poems page */
.video-wrap{max-width:900px;margin:0 auto;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#000;box-shadow:0 14px 50px rgba(0,0,0,.7)}
.video-wrap video{width:100%;display:block;max-height:560px;background:#000}
.video-ph{aspect-ratio:16/9;display:grid;place-items:center;color:#8d8266}
.poem{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:34px;align-items:start;margin:0 auto 54px;max-width:1040px;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,rgba(18,15,10,.9),rgba(7,7,6,.9))}
.poem:nth-child(even){direction:ltr}
.poem .pic{border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.poem .pic img{width:100%;display:block;aspect-ratio:3/4;object-fit:cover}
.poem h3{font-size:clamp(1.6rem,3vw,2.2rem)}
.poem .cn{color:var(--gold2);letter-spacing:.2em;font-size:.95rem;text-transform:uppercase}
.poem .player{margin:14px 0;border:1px solid var(--line);border-radius:12px}
.toggle{background:transparent;border:1px solid var(--gold2);color:var(--gold1);padding:8px 22px;border-radius:30px;cursor:pointer;font:inherit}
.toggle:hover{background:linear-gradient(180deg,var(--gold1),var(--gold3));color:#111}
.text{direction:rtl;text-align:right;white-space:pre-line;font-family:"Amiri","Cairo",serif;font-size:1.28rem;line-height:2.1;color:#ecdfc0;max-height:0;overflow:hidden;transition:max-height .7s ease,margin .4s;margin-top:0}
.text.open{max-height:3600px;margin-top:20px}
.text .q{color:var(--gold2);font-size:.8em;vertical-align:super}
.note{max-width:760px;margin:0 auto 40px;text-align:center;color:#8d8266;font-size:.85rem}
footer{border-top:1px solid var(--line);margin-top:50px;padding:40px 20px 50px;text-align:center;background:linear-gradient(180deg,transparent,#0a0907)}
footer .rights{color:#bfb293;margin-bottom:16px}
footer .by{cursor:pointer;display:inline-block;padding:6px 16px;border-radius:10px;transition:.3s}
footer .by:hover{background:rgba(217,182,106,.08)}
footer .by b{font-size:1.15rem}
footer .by small{display:block;color:#a99d7f;font-size:.88rem;line-height:1.5}
footer .contact{margin-top:10px;color:#a99d7f;font-size:.92rem;direction:ltr}
footer .contact a{color:var(--gold2)}
.overlay{position:fixed;inset:0;z-index:999;background:rgba(0,0,0,.25);display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .5s}
.overlay.show{opacity:1;pointer-events:auto;cursor:pointer}
.overlay img{width:min(86vw,560px);max-height:84vh;object-fit:contain}
@media(max-width:760px){.poem{grid-template-columns:1fr}.topbar{padding:10px 14px;flex-wrap:wrap;gap:8px}.nav{gap:14px}}
/* theme toggle */
.tools{display:flex;align-items:center;gap:10px}
.theme-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--gold2);background:transparent;color:var(--gold2);cursor:pointer;display:grid;place-items:center;padding:0;transition:.3s}
.theme-btn:hover{background:rgba(217,182,106,.15)}
.theme-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .moon{display:none}
body.light .theme-btn .sun{display:none}
body.light .theme-btn .moon{display:block}
body,.topbar,.card,.player,.poem,footer{transition:background-color .4s,color .4s,border-color .4s}
/* day mode */
body.light{--bg:#f7f0dc;--bg2:#fffaf0;--gold1:#c9a24a;--gold2:#8a6420;--gold3:#6b4a12;--line:rgba(138,100,32,.35);--text:#2e2412;
background-image:radial-gradient(ellipse at 50% -10%,rgba(255,244,205,.9),transparent 60%),radial-gradient(ellipse at 50% 110%,rgba(222,190,110,.35),transparent 55%)}
body.light .gold{background:linear-gradient(180deg,#b8893a,#8a6420 55%,#5e400e);-webkit-background-clip:text;background-clip:text;color:transparent}
body.light .topbar{background:rgba(250,243,224,.9)}
body.light .lang button.on,body.light .pbtn:hover,body.light .toggle:hover,body.light .social a:hover{background:linear-gradient(180deg,#c9a24a,#8a6420);color:#fffaf0}
body.light .hero .tag{color:#5c4a28}
body.light p.sub,body.light .time,body.light footer .rights{color:#6b5a38}
body.light .about p{color:#3d3016}
body.light .card{box-shadow:0 10px 30px rgba(110,80,20,.22)}
body.light .player{background:linear-gradient(180deg,#fffaf0,#f1e6c6)}
body.light .pbtn{background:radial-gradient(circle at 30% 30%,#fffaf0,#ead9aa);color:#6b4a12}
body.light .bar{background:rgba(138,100,32,.22)}
body.light .bar i{background:linear-gradient(90deg,#8a6420,#c9a24a)}
body.light .soon{color:#7a6a46}
body.light .social a,body.light .toggle{color:#6b4a12}
body.light .video-wrap{box-shadow:0 14px 40px rgba(110,80,20,.3)}
body.light .video-ph{color:#8a6420}
body.light .poem{background:linear-gradient(180deg,rgba(255,252,242,.95),rgba(244,233,203,.95));box-shadow:0 10px 30px rgba(110,80,20,.15)}
body.light .text{color:#2e2412}
body.light footer{background:linear-gradient(180deg,transparent,#eadfbc)}
body.light footer .by small,body.light footer .contact{color:#6b5a38}
body.light footer .by:hover{background:rgba(138,100,32,.1)}
body.light .hero img.logo{filter:drop-shadow(0 0 18px rgba(138,100,32,.35))}
body.light .brand img{filter:brightness(.42) contrast(1.4) saturate(1.5)}
body.light .hero img.logo{filter:brightness(.42) contrast(1.4) saturate(1.5) drop-shadow(0 0 14px rgba(138,100,32,.3))}
html.pre-light{background:#f7f0dc}
/* v0.5 */
html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
img{-webkit-user-drag:none;user-drag:none}
.card img,.poem img,.brand img,.hlogo{pointer-events:none}
.dtwarn{display:none}
body.dtopen .dtwarn{display:grid;place-items:center;position:fixed;inset:0;z-index:999;font-size:4rem;color:#d9b66a}
/* hero banner */
.herob{position:relative;container-type:inline-size;aspect-ratio:16/9;max-height:82vh;width:100%;background:#050506 url(../assets/img/hero/hero-bg.webp) center/cover no-repeat;overflow:hidden;border-bottom:1px solid var(--line)}
.herob-txt{position:absolute;top:0;bottom:0;left:3%;width:56%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;direction:rtl}
.herob-txt .hlogo{height:19cqw;max-height:30%;width:auto;margin-bottom:1.2cqw}
.hname{font-size:6.2cqw;font-weight:800;line-height:1.2;background:linear-gradient(180deg,#faecc8,#d9b66a 55%,#b08a3e);-webkit-background-clip:text;background-clip:text;color:transparent}
body[dir=ltr] .hname{font-size:5.4cqw}
.hrole{font-size:2.6cqw;color:#e6c887;margin-top:.4cqw;letter-spacing:.1em}
.hdiv{width:20cqw;height:1px;margin:1.8cqw auto;background:linear-gradient(90deg,transparent,#d9b66a,transparent)}
.hquote{font-size:2.9cqw;line-height:1.5;color:#f3e3bb;font-family:"Amiri","Cairo",serif;max-width:92%}
body[dir=ltr] .hquote{font-style:italic;font-size:2.6cqw}
/* players */
.player{flex-direction:column;align-items:stretch;gap:6px;padding:12px 14px 12px;direction:ltr}
.prow{display:flex;align-items:center;gap:10px}
.tc{font-size:.76rem;color:#bfb293;min-width:34px;font-family:system-ui,sans-serif;font-variant-numeric:tabular-nums}
.tc.dur{text-align:right}
.bar{flex:1;height:30px;background:none;position:relative;cursor:pointer;touch-action:none;display:flex;align-items:center}
.bar .track{position:absolute;left:0;right:0;top:50%;height:5px;margin-top:-2.5px;background:rgba(217,182,106,.22);border-radius:4px;overflow:hidden}
.bar i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,var(--gold3),var(--gold1));border-radius:4px}
.bar .knob{position:absolute;top:50%;left:0;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--gold1);box-shadow:0 0 0 3px rgba(217,182,106,.25)}
.ctrl{display:flex;align-items:center;justify-content:center;gap:16px}
.sk{min-width:58px;height:34px;border-radius:20px;border:1px solid var(--line);background:transparent;color:var(--gold2);cursor:pointer;font:600 .85rem system-ui,sans-serif;padding:0 10px}
.sk:hover{border-color:var(--gold2)}
.sk[disabled],.pbtn[disabled]{opacity:.35;cursor:not-allowed}
.player.off .prow{display:none}
.player .soon{text-align:center}
.poem .player{margin:14px 0}
/* card label in the black strip */
.artw{position:relative;container-type:inline-size}
.clabel{text-align:center;padding:13px 12px 3px}
.clabel .ccn{color:var(--gold2);letter-spacing:.18em;font-size:.95rem;line-height:1.5}
.clabel .cttl{font-size:1.4rem;font-weight:700;line-height:1.45}
body.light .clabel .ccn{color:#8a6420}
/* Syrian new flag (green/white/black, 3 red stars) */
.flag-img{width:24px;height:auto;border-radius:3px;vertical-align:middle;box-shadow:0 0 0 1px rgba(217,182,106,.45)}
.cn .flag-img{width:22px;vertical-align:-4px}
body.light .tc{color:#6b5a38}
body.light .bar .track{background:rgba(138,100,32,.25)}
body.light .bar .knob{background:#8a6420;box-shadow:0 0 0 3px rgba(138,100,32,.25)}
body.light .sk{color:#6b4a12}
@media(max-width:700px){
 /* Mobile keeps the agreed hero layout: text overlaid on the LEFT of the image,
    never stacked underneath it (same fix as the approved copy).
    Phones use the LANDSCAPE Palestine hero (16/9) at its own aspect ratio so
    nothing is cropped. No vertical hero images anywhere. */
 .herob{aspect-ratio:16/9;min-height:0;max-height:82vh;background-image:url(../assets/img/hero/hero-bg-mobile.webp)}
 .herob-txt{position:absolute;top:0;bottom:0;left:2%;width:64%;padding:14px 8px 36px 12px;container-type:inline-size;background:linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.5) 65%,rgba(0,0,0,0) 100%)}
 .herob-txt .hlogo{width:36%;height:auto;max-height:none}
 .hname{font-size:12.5cqw}body[dir=ltr] .hname{font-size:11cqw}
 .hrole{font-size:5.2cqw}.hquote{font-size:6.4cqw}body[dir=ltr] .hquote{font-size:5.8cqw}
 .hdiv{width:30cqw;margin:3cqw auto}
 .grid .card{width:100%;max-width:400px;min-width:0}
 .topbar{padding:8px 12px}.brand img{height:34px}.nav a{font-size:.95rem}
 section{padding:28px 14px}
}

/* v0.6 */
.hquote{white-space:pre-line}
.credit{position:absolute;left:2.2%;bottom:3%;color:#fff;font:500 1.55cqw/1 "Cormorant Garamond",Georgia,serif;letter-spacing:.04em;direction:ltr;text-shadow:0 1px 6px rgba(0,0,0,.8);z-index:3}
.credit-fixed{display:inline-block;position:relative;color:#fff;background:rgba(5,5,6,.78);border:1px solid rgba(217,182,106,.35);border-radius:20px;padding:6px 14px;font:500 .95rem "Cormorant Garamond",Georgia,serif;letter-spacing:.04em;direction:ltr}
.page-credit{position:static;text-align:center;padding:10px 14px 32px;margin-top:8px;direction:ltr}
body{position:relative}
@media(max-width:700px){.credit{position:absolute;left:3%;bottom:3%;font-size:.8rem;padding:0;text-shadow:0 1px 6px rgba(0,0,0,.8)}}

/* v0.7 logo */
.brand img{height:48px;width:auto}
.lg-d{display:none}
body.light .lg-n{display:none}
body.light .lg-d{display:block}
body.light .brand img,body.light .hero img.logo{filter:none}
.herob-txt .hlogo{height:auto;width:27cqw;max-height:none;margin-bottom:1.5cqw}
@media(max-width:700px){.herob-txt .hlogo{width:36%;height:auto}.brand img{height:30px}}

/* v0.8 loader */
#loader{position:fixed;inset:0;z-index:99999;background:radial-gradient(circle at 50% 50%,#14100a 0,#050506 70%);display:flex;align-items:center;justify-content:center;opacity:1;transition:opacity .9s ease,visibility .9s;animation:ldfail .9s ease 7s forwards}
#loader.done{opacity:0;visibility:hidden;pointer-events:none}
@keyframes ldfail{to{opacity:0;visibility:hidden}}
.ld-wrap{position:relative;width:min(520px,82vw);aspect-ratio:400/260;display:flex;align-items:center;justify-content:center}
.ld-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ld-ring ellipse{fill:none;stroke-linecap:round}
.ld-base{stroke:rgba(201,154,46,.22);stroke-width:1.5}
.ld-arc{stroke:url(#ldg);stroke-width:3;stroke-dasharray:28 72;transform-origin:200px 130px;animation:ldspin 2.4s linear infinite;filter:drop-shadow(0 0 6px rgba(240,200,100,.8))}
.ld-arc2{stroke-width:2;stroke-dasharray:10 90;animation-duration:3.6s;animation-direction:reverse;opacity:.8}
@keyframes ldspin{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
.ld-logo{width:66%;height:auto;animation:ldglow 2.2s ease-in-out infinite,ldin 1s ease both;filter:drop-shadow(0 0 14px rgba(232,190,90,.55))}
@keyframes ldglow{0%,100%{filter:drop-shadow(0 0 8px rgba(232,190,90,.35))}50%{filter:drop-shadow(0 0 22px rgba(255,214,110,.85))}}
@keyframes ldin{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
.hquote{color:#fff!important;font-weight:700;text-shadow:0 2px 10px rgba(0,0,0,.85),0 0 3px rgba(0,0,0,.7)}
body[dir=ltr] .herob-txt{direction:ltr}body[dir=ltr] .hquote,body[dir=ltr] .hname,body[dir=ltr] .hrole{direction:ltr;unicode-bidi:plaintext}
.text .pnote{font-size:.8em;color:var(--gold2);opacity:.85;border:1px dashed rgba(201,154,46,.45);border-radius:10px;padding:6px 12px;margin-bottom:12px;line-height:1.7;background:rgba(201,154,46,.06)}

/* ================= Luxury upgrade (ported from the approved black copy; red v1.6 kept) ================= */

/* ---------- Fixed background layer: portrait on phones, wide on landscape/desktop.
   A fixed div (not background-attachment:fixed, which is unreliable on phones). */
.bg-layer{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background-image:url("../assets/bg-night.webp");
  background-size:cover;background-position:center top;background-repeat:no-repeat;
}
.bg-layer::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(rgba(0,0,0,.58),rgba(0,0,0,.58));
}
@media (min-aspect-ratio:1/1){
  .bg-layer{background-image:url("../assets/bg-night-wide.webp");background-position:center center}
}
body.light .bg-layer{
  background-image:url("../assets/bg-day.webp");
}
body.light .bg-layer::after{
  background:linear-gradient(rgba(255,248,231,.52),rgba(255,248,231,.52));
}
@media (min-aspect-ratio:1/1){
  body.light .bg-layer{background-image:url("../assets/bg-day-wide.webp");background-position:center center}
}
/* Content sits above the fixed background + waves canvas. */
main,footer{position:relative;z-index:2}
.page-credit{z-index:3}

/* ---------- KM watermark: centered logo, day (light) mode only.
   Sits ABOVE the fixed background layer (z-index 0) and BELOW the
   content (main/footer z-index 2). Hidden in dark mode. */
.wm{display:none}
body.light .wm{
  display:block;position:fixed;top:50%;left:50%;
  width:min(72vmin,540px);aspect-ratio:1/1;
  transform:translate(-50%,-50%);
  background:url("../assets/logo/km-watermark.webp") center/contain no-repeat;
  opacity:.40;pointer-events:none;z-index:1;
}

/* ---------- Luxury cards: gradient gold frame, ornament, reveal on scroll ---------- */
.card,.poem{
  position:relative;
  opacity:0;transform:translateY(18px);
  transition:opacity .6s ease,transform .6s ease,border-color .25s ease,box-shadow .25s ease;
}
.card{
  border:1px solid transparent;
  background:
    linear-gradient(var(--bg2),var(--bg2)) padding-box,
    linear-gradient(135deg,rgba(217,182,106,.75),rgba(217,182,106,.18) 35%,rgba(217,182,106,.08) 60%,rgba(217,182,106,.6)) border-box;
  box-shadow:0 10px 40px rgba(0,0,0,.6),0 0 26px rgba(217,182,106,.08);
}
.poem{
  border:1px solid transparent;
  background:
    linear-gradient(rgba(18,15,10,.9),rgba(7,7,6,.9)) padding-box,
    linear-gradient(135deg,rgba(217,182,106,.75),rgba(217,182,106,.18) 35%,rgba(217,182,106,.08) 60%,rgba(217,182,106,.6)) border-box;
  box-shadow:0 10px 40px rgba(0,0,0,.6),0 0 26px rgba(217,182,106,.08);
}
body.light .card{
  background:
    linear-gradient(var(--bg2),var(--bg2)) padding-box,
    linear-gradient(135deg,rgba(138,100,32,.8),rgba(138,100,32,.22) 35%,rgba(138,100,32,.12) 60%,rgba(138,100,32,.65)) border-box;
  box-shadow:0 10px 30px rgba(110,80,20,.22),0 0 26px rgba(138,100,32,.12);
}
body.light .poem{
  background:
    linear-gradient(rgba(255,252,242,.95),rgba(244,233,203,.95)) padding-box,
    linear-gradient(135deg,rgba(138,100,32,.8),rgba(138,100,32,.22) 35%,rgba(138,100,32,.12) 60%,rgba(138,100,32,.65)) border-box;
  box-shadow:0 10px 30px rgba(110,80,20,.15),0 0 26px rgba(138,100,32,.12);
}
.card.revealed,.poem.revealed{opacity:1;transform:translateY(0)}
.card.revealed:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 54px rgba(0,0,0,.6),0 0 38px rgba(217,182,106,.22);
}
.poem.revealed:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 48px rgba(0,0,0,.6),0 0 34px rgba(217,182,106,.2);
}
/* Small gold ornament in the card's top corner */
.card::before{
  content:"✦";position:absolute;top:8px;inset-inline-start:12px;z-index:2;
  color:var(--gold2);font-size:.85rem;opacity:.85;pointer-events:none;
  text-shadow:0 0 8px rgba(217,182,106,.6);
}
/* Thin gold rule under each poem title (poems page) and under the card label */
.poem h3::after{
  content:"";display:block;width:56px;height:2px;margin:8px 0 0;border-radius:2px;
  background:linear-gradient(90deg,var(--gold2),transparent);
}

/* ---------- Hero name: slow gold shimmer ---------- */
.hname{
  background:linear-gradient(90deg,#faecc8 0%,#d9b66a 25%,#fff6c9 50%,#d9b66a 75%,#faecc8 100%);
  background-size:200% auto;
  -webkit-background-clip:text;background-clip:text;
  color:transparent;
  animation:hero-shine 7s linear infinite;
}
@keyframes hero-shine{to{background-position:200% center}}

/* ---------- Play button: gentle pulse only while playing ---------- */
.player.playing .pbtn{animation:play-pulse 1.6s ease-in-out infinite}
@keyframes play-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(217,182,106,.45)}
  50%{box-shadow:0 0 0 10px rgba(217,182,106,0)}
}

/* ---------- Floating action buttons (two per corner, lifted above phone nav bar) ---------- */
.fab-stack{
  position:fixed;z-index:900;display:flex;flex-direction:column;gap:12px;
  bottom:calc(84px + env(safe-area-inset-bottom,0px));
}
.fab-left{left:16px}
.fab-right{right:16px}
.fab{
  width:52px;height:52px;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(217,182,106,.55);
  background:rgba(5,5,6,.82);
  box-shadow:0 8px 22px rgba(0,0,0,.5),0 0 16px rgba(217,182,106,.18);
  transition:transform .2s ease,box-shadow .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.fab:hover,.fab:active{transform:translateY(-2px) scale(1.05);box-shadow:0 12px 26px rgba(0,0,0,.55),0 0 22px rgba(217,182,106,.3)}
.fab-top{
  color:var(--gold1);
  font-size:1.5rem;line-height:1;font-family:inherit;
}
body.light .fab-top{background:rgba(255,250,240,.92);color:#6b4a12}
.fab-poet img{width:40px;height:auto;filter:drop-shadow(0 0 6px rgba(217,182,106,.55))}
body.light .fab-poet{background:rgba(255,250,240,.92)}
@media (min-width:701px){
  .fab{width:56px;height:56px}
  .fab-stack{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
}

/* ---------- Poet logo popup: 3 seconds, glow + travelling gold oval ---------- */
.poet-overlay{
  position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.72);
  display:flex;align-items:center;justify-content:center;
}
.poet-overlay[hidden]{display:none}
.poet-popup{
  position:relative;width:min(320px,76vw);aspect-ratio:1/1;
  display:flex;align-items:center;justify-content:center;
  animation:km-in .3s ease;
}
.poet-popup img{
  position:relative;z-index:2;width:78%;height:auto;
  filter:drop-shadow(0 0 22px rgba(217,182,106,.85)) drop-shadow(0 0 48px rgba(217,182,106,.4));
}
.poet-oval{position:absolute;inset:0;width:100%;height:100%}
.poet-oval .base{fill:none;stroke:rgba(217,182,106,.28);stroke-width:1.5}
.poet-oval .arc{
  fill:none;stroke:#f2dd9e;stroke-width:3;stroke-linecap:round;
  filter:drop-shadow(0 0 8px rgba(242,221,158,.95)) drop-shadow(0 0 18px rgba(217,182,106,.6));
  stroke-dasharray:28 72;animation:arc-travel 3s linear infinite;
}
@keyframes arc-travel{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@keyframes km-in{from{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}

/* ---------- Footer: extra bottom space so FABs never cover the rights/credit lines ---------- */
footer{padding-bottom:150px}
@media (min-width:701px){footer{padding-bottom:120px}}
@media (max-width:700px){
  footer .rights,footer .by,footer .contact{display:block}
}

/* ---------- Reduced motion: static waves, instant cards, no shimmer/pulse ---------- */
@media (prefers-reduced-motion:reduce){
  .card,.poem{opacity:1;transform:none;transition:border-color .25s ease,box-shadow .25s ease}
  .hname{animation:none}
  .player.playing .pbtn{animation:none}
  html{scroll-behavior:auto}
}

/* ---------- Menu dropdown ---------- */
.menu-wrap{position:relative}
.menu-btn{background:transparent;color:var(--gold1);border:1px solid var(--gold2);padding:7px 18px;border-radius:20px;cursor:pointer;font:inherit;font-size:1rem;font-weight:600}
.menu-btn:hover{background:rgba(217,182,106,.15)}
.menu-drop{position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:210px;max-width:min(280px,calc(100vw - 24px));background:var(--bg2);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.65);padding:6px;z-index:100}
.menu-drop[hidden]{display:none}
.menu-drop a,.menu-drop button.menu-about{display:block;width:100%;text-align:start;background:none;border:none;color:var(--text);font:inherit;font-size:1rem;padding:10px 14px;border-radius:8px;cursor:pointer;text-decoration:none}
.menu-drop a:hover,.menu-drop button.menu-about:hover{background:rgba(217,182,106,.14);color:var(--gold1)}
.menu-drop a.active{color:var(--gold2)}
body.light .menu-btn{color:#6b4a12}
body.light .menu-btn:hover{background:rgba(138,100,32,.12)}
body.light .menu-drop{background:#fffaf0;box-shadow:0 16px 40px rgba(110,80,20,.3)}
body.light .menu-drop a:hover,body.light .menu-drop button.menu-about:hover{background:rgba(138,100,32,.12);color:#6b4a12}

/* ---------- About the poet card (feather image background) ---------- */
.about-overlay{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.about-overlay[hidden]{display:none}
.about-card{position:relative;width:min(640px,96vw);aspect-ratio:639/544;container-type:size;min-height:0;display:block;padding:0;border:0;border-radius:0;overflow:visible;color:#3a2410;background:url(../assets/img/about-parchment.webp) center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 18px 30px rgba(0,0,0,.6))}
@media(max-width:600px){.about-card{aspect-ratio:639/640}}
.about-card .atxt{position:absolute;left:11%;right:8%;top:27%;bottom:12%;display:block;text-align:center;overflow:hidden}
.about-card .atxt i{display:block;pointer-events:none}
.about-card .atxt .s1{float:left;width:15cqw;height:21cqh}
.about-card .atxt .s2{float:right;width:23cqw;height:37cqh}
.about-card .atxt .s3{float:right;clear:right;width:23cqw;height:24cqh}
.about-card h2{font-size:6cqw;color:#5a3a12;margin:0 0 1.5cqw;text-shadow:none;line-height:1.3}
.about-card p{font-size:4cqw;line-height:1.55;color:#3a2410;text-shadow:none;margin:0}
.about-card .about-logo{width:170px;max-width:62%;height:auto;margin:0 auto auto;display:block;padding:10px 12px;border-radius:18px;background:radial-gradient(ellipse at center,rgba(0,0,0,.62) 0%,rgba(0,0,0,.42) 55%,rgba(0,0,0,0) 82%);filter:drop-shadow(0 3px 10px rgba(0,0,0,.85))}
.about-close{position:absolute;top:24%;right:6%;left:auto;width:34px;height:34px;border-radius:50%;border:1px solid #5a3a12;background:rgba(58,36,16,.85);color:#f3dfae;cursor:pointer;font-size:1rem;line-height:1}
.about-close:hover{background:rgba(217,182,106,.25)}

/* ---------- Footer creator logo ---------- */
.by-logo{height:72px;width:auto;vertical-align:middle;margin-inline-end:10px}

/* ================= v1.7 ================= */
/* Menu dropdown: anchor to the button's OUTER edge so it never leaves the screen (RTL + LTR) */
.menu-drop{inset-inline-start:auto}
.menu-drop a,.menu-drop button.menu-about{white-space:normal}

/* Page-2 intro + section titles: readable over the busy calligraphy background (night + day) */
.hero{background:radial-gradient(ellipse at 50% 50%,rgba(0,0,0,.55),rgba(0,0,0,0) 72%)}
.hero h1.gold{background:linear-gradient(180deg,#fff6d8,#f3d68a 55%,#e2b24f);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 6px rgba(0,0,0,.9)) drop-shadow(0 0 18px rgba(0,0,0,.55))}
.hero .tag{color:#fff3d3;font-weight:600;text-shadow:0 2px 8px rgba(0,0,0,.95),0 0 3px rgba(0,0,0,.8)}
.note{color:#f2e7c9;background:rgba(0,0,0,.5);border:1px solid rgba(217,182,106,.3);border-radius:12px;padding:8px 14px;text-shadow:0 1px 4px rgba(0,0,0,.8)}
h2.sec.gold{background:linear-gradient(180deg,#fff6d8,#f3d68a 55%,#e2b24f);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 6px rgba(0,0,0,.85))}
p.sub{color:#f0e4c4;text-shadow:0 2px 6px rgba(0,0,0,.9)}
.divider{background:linear-gradient(90deg,transparent,#f3d68a,transparent)}

body.light .hero{background:radial-gradient(ellipse at 50% 50%,rgba(255,250,236,.78),rgba(255,250,236,0) 72%)}
body.light .hero h1.gold{background:linear-gradient(180deg,#6b4a12,#4a3008 60%,#2e1d04);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 1px 3px rgba(255,248,226,.9))}
body.light .hero .tag{color:#2e2412;text-shadow:0 1px 4px rgba(255,248,226,.9)}
body.light .note{color:#3d3016;background:rgba(255,250,236,.8);border-color:rgba(138,100,32,.4);text-shadow:none}
body.light h2.sec.gold{background:linear-gradient(180deg,#6b4a12,#4a3008 60%,#2e1d04);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 1px 3px rgba(255,248,226,.9))}
body.light p.sub{color:#3d3016;text-shadow:0 1px 4px rgba(255,248,226,.85)}
body.light .divider{background:linear-gradient(90deg,transparent,#8a6420,transparent)}
@media(max-width:780px){.note{margin-left:14px;margin-right:14px}}
