/* صفحة المسرحيات (مستقلة عن ألعاب الموقع): مسرح خشبي وستارة مخمل وسدو */
:root {
  --night: #120804; --wood-950: #1f0f07; --wood-900: #2b150a; --wood-800: #3d1f0f; --wood-500: #8a5530;
  --gold: #d6a548; --gold-hi: #f6dc9a; --gold-lo: #8f6420;
  --velvet-dd: #3a0610; --velvet-d: #5c0c1b; --velvet: #821628; --velvet-l: #ad2c40;
  --cream: #fbf1dc; --ink: #2a160b;
  --f-title: 'El Messiri', 'Tajawal', serif; --f-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; font-family: var(--f-body); color: var(--cream);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #3a1a0b, var(--night) 70%);
}
a { color: inherit; }
.hero { position: relative; overflow: hidden; padding: 56px 16px 64px; text-align: center; border-bottom: 4px solid var(--gold); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: url('/maryam/img/sadu.svg') center / auto 100% repeat-x; border-top: 1px solid var(--gold-lo); }
.curtain-l, .curtain-r {
  position: absolute; top: 0; bottom: 0; width: 18%;
  background: repeating-linear-gradient(90deg, var(--velvet-dd) 0, var(--velvet-d) 14px, var(--velvet) 28px, var(--velvet-l) 38px, var(--velvet) 48px, var(--velvet-d) 62px, var(--velvet-dd) 76px);
  box-shadow: 0 0 40px rgba(0, 0, 0, .7);
}
.curtain-l { left: 0; border-bottom-right-radius: 60% 30%; }
.curtain-r { right: 0; border-bottom-left-radius: 60% 30%; }
.hero-in { position: relative; z-index: 1; }
.kick { margin: 0; color: var(--gold); font-weight: 700; font-size: 15px; }
h1 { margin: 6px 0; font: 700 clamp(34px, 6vw, 64px)/1.25 var(--f-title); background: linear-gradient(var(--gold-hi), var(--gold) 60%, #a8762a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0 auto; max-width: 560px; color: #e9d6b4; font-size: 17px; line-height: 1.7; }

.plays { display: grid; gap: 22px; max-width: 980px; margin: 36px auto; padding: 0 16px; }
.play {
  display: grid; grid-template-columns: 260px 1fr; overflow: hidden; border-radius: 22px;
  background: linear-gradient(160deg, rgba(61, 31, 15, .95), rgba(31, 15, 7, .95));
  border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(43, 21, 10, .9), 0 0 0 7px var(--gold-lo), 0 24px 50px rgba(0, 0, 0, .55);
}
.play-art { position: relative; min-height: 240px; background: url('/maryam/img/room.webp') center / cover; }
.play-art { overflow: hidden; }
.play-art::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(270deg, rgba(31, 15, 7, 0) 70%, rgba(31, 15, 7, .85)); }
.play-art img { position: absolute; bottom: -4%; }
.pa-1 { right: 44%; height: 64%; z-index: 1; }
.pa-2 { right: 2%; height: 80%; }
.play-body { padding: 22px 24px 24px; }
.tag { margin: 0; color: var(--gold); font-weight: 700; font-size: 14px; }
.play h2 { margin: 4px 0 6px; font: 700 32px/1.3 var(--f-title); color: var(--gold-hi); }
.lesson { margin: 0 0 12px; color: #e9d6b4; line-height: 1.7; }
.steps { margin: 0 0 16px; padding-inline-start: 20px; line-height: 1.8; color: #f3e6cc; }
.steps b { color: var(--gold-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn, .btn-line { display: inline-block; text-decoration: none; border-radius: 999px; padding: 12px 26px; font: 700 18px var(--f-title); }
.btn { border: 0; color: #2a1407; background: linear-gradient(var(--gold-hi), var(--gold) 60%, #b98a35); box-shadow: 0 4px 0 #7a531b, 0 10px 20px rgba(0, 0, 0, .4); cursor: pointer; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7a531b; }
.btn-line { border: 1.5px solid rgba(246, 220, 154, .6); color: var(--gold-hi); }
.note { margin: 14px 0 0; font-size: 14px; color: rgba(233, 214, 180, .7); line-height: 1.7; }
.soon { opacity: .75; }
.soon-art { display: grid; place-items: center; font-size: 90px; color: rgba(239, 77, 111, .6); background: radial-gradient(circle at 50% 45%, #2a1a3a, #120a18 75%); }
.soon-art::after { display: none; }
.badge-soon { display: inline-block; margin: 0; padding: 6px 18px; border-radius: 999px; background: rgba(214, 165, 72, .15); border: 1px solid var(--gold-lo); color: var(--gold-hi); font-weight: 700; }
.foot { padding: 20px 16px 30px; text-align: center; font-size: 13px; color: rgba(233, 214, 180, .45); }
@media (max-width: 720px) { .play { grid-template-columns: 1fr; } .play-art { min-height: 200px; } }

/* شاشة رمز المعلمة */
body.login { display: grid; place-items: center; padding: 16px; background: linear-gradient(rgba(18, 8, 4, .7), rgba(18, 8, 4, .9)), url('/maryam/img/room.webp') center / cover, var(--night); }
.login-card {
  width: min(420px, 100%); padding: 28px 22px; text-align: center; border-radius: 22px;
  background: linear-gradient(160deg, rgba(43, 21, 10, .95), rgba(25, 11, 5, .96)); border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(43, 21, 10, .9), 0 0 0 7px var(--gold-lo), 0 24px 50px rgba(0, 0, 0, .6);
}
.login-card h1 { font-size: 36px; }
.login-card form { display: grid; gap: 10px; margin-top: 18px; }
.login-card input {
  width: 100%; padding: 14px; text-align: center; letter-spacing: .3em; color: #fff; font: 700 26px var(--f-title);
  background: rgba(255, 244, 220, .06); border: 2px solid rgba(214, 165, 72, .5); border-radius: 16px; outline: none;
}
.login-card input:focus { border-color: var(--gold-hi); }
.err { min-height: 1.4em; margin: 0; color: #ffb1a8; }
