/* ⚡ ترتيب البرق: بنفس ثيم النيون (neon-theme.css ينحط بعده) */
.or h1 { color: #fde047; text-shadow: 0 0 16px rgba(250, 204, 21, .55); }
.or-tag { margin: -4px 0 14px; text-align: center; color: #b9b2dc; }
.or-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.or-level { min-height: 74px; padding: 8px 4px; border: 2px solid rgba(236, 72, 153, .45); border-radius: 16px; background: rgba(236, 72, 153, .08); color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.or-level b { font-size: 18px; font-weight: 800; }
.or-level small { color: #fbcfe8; font-size: 12px; }
.or-level:hover, .or-level:focus-visible { background: linear-gradient(135deg, #ec4899, #a855f7); }
.or-timebar { height: 8px; margin: 0 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.or-timebar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #34d399, #22d3ee); transition: width .25s linear; }
.or-timebar.low i { background: linear-gradient(90deg, #ef4444, #f97316); }
.or-q { margin: 0 0 2px; text-align: center; font-size: 21px; font-weight: 800; color: #fff; }
.or-q .way { display: inline-block; margin-inline-start: 6px; padding: 1px 10px; border-radius: 99px; background: rgba(250, 204, 21, .18); color: #fde047; font-size: 14px; }
.or-hint { margin: 0 0 12px; text-align: center; color: #b9b2dc; font-size: 13px; }
.or-slots { display: grid; gap: 8px; margin-bottom: 12px; }
.or-slot { min-height: 58px; border: 2px dashed rgba(250, 204, 21, .35); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: rgba(250, 204, 21, .5); font-weight: 800; }
.or-slot.full { border-style: solid; border-color: #facc15; background: rgba(250, 204, 21, .14); color: #fff; }
.or-slot.full small { display: none; }
.or-items { display: grid; gap: 8px; }
.or-item { min-height: 78px; border: 2px solid rgba(34, 211, 238, .45); border-radius: 16px; background: rgba(34, 211, 238, .08); color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .12s; touch-action: manipulation; }
.or-item:active { transform: scale(.95); }
.or-item .e { font-size: 30px; line-height: 1.15; font-weight: 800; }
.or-item .t { font-size: 13.5px; font-weight: 800; color: #cffafe; }
.or-item.used { visibility: hidden; }
.or-item.bad { border-color: #ef4444; background: rgba(239, 68, 68, .3); animation: or-shake .3s; }
.or-item.right { border-color: #34d399; background: rgba(52, 211, 153, .25); }
.or-item[disabled] { cursor: default; }
@keyframes or-shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.or .pz-win p { white-space: pre-line; }
@media (prefers-reduced-motion: reduce) { .or-item.bad { animation: none; } }

/* ⚡ برق اليوم */
/* 🎮 زر «العب على راحتك» (علي 22/11) */
.or-free { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 0 0 18px; padding: 12px 16px; border: 2px solid #a855f7; border-radius: 20px; background: linear-gradient(160deg, rgba(168, 85, 247, .22), rgba(34, 211, 238, .1)); color: #fff; box-shadow: 0 0 18px rgba(168, 85, 247, .35); font: inherit; text-align: start; cursor: pointer; }
.or-free i { font-size: 30px; font-style: normal; }
.or-free span { display: grid; gap: 3px; flex: 1; }
.or-free b { font-size: 17px; font-weight: 800; }
.or-free small { color: #d8c7ff; font-size: 12.5px; line-height: 1.5; }
.or-free em { font-style: normal; font-size: 26px; color: #c4a5ff; transition: transform .2s; }
.or-free.on em { transform: rotate(-90deg); }
.or-free:active { transform: scale(.98); }
.od-card {margin: 0 0 18px; padding: 14px; border: 2px solid #facc15; border-radius: 20px; background: linear-gradient(160deg, rgba(250, 204, 21, .14), rgba(168, 85, 247, .12)); box-shadow: 0 0 22px rgba(250, 204, 21, .3); }
.od-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.od-head h2 { margin: 0; font-size: 22px; color: #fde047; }
.od-next { color: #fde68a; font-size: 13px; font-weight: 800; }
.od-rule { margin: 6px 0 10px; color: #e9d5ff; font-size: 13.5px; line-height: 1.6; }
.od-rule b { color: #fde047; }
.od-top { display: grid; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.od-top li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(20, 10, 51, .55); font-weight: 800; }
.od-top li .r { min-width: 26px; color: #fde047; }
.od-top li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-top li .s { color: #67e8f9; }
.od-top li.me { outline: 2px solid #22d3ee; }
.od-top .empty { justify-content: center; color: #c4b5fd; font-weight: 400; }
.od-y, .od-mine { margin: 4px 0; font-size: 14px; font-weight: 800; text-align: center; }
.od-y { color: #fde68a; } .od-mine { color: #6ee7b7; }
.od-go { font-size: 18px; }
/* الرسومات ثلاثية الأبعاد بدل الإيموجي */
.or-item img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.or-item .big { font-size: 22px; font-weight: 800; color: #fde047; text-shadow: 0 0 10px rgba(250, 204, 21, .5); line-height: 1.2; text-align: center; }
.or-item.textonly { background: linear-gradient(135deg, rgba(236, 72, 153, .18), rgba(168, 85, 247, .18)); border-color: rgba(236, 72, 153, .6); }
.or-slot img { width: 34px; height: 34px; object-fit: contain; }
.or-slot .st { font-size: 12px; font-weight: 800; color: #fff; text-align: center; line-height: 1.2; padding: 2px; }
/* الترتيب الصح بعد الإجابة */
.or-reveal { display: grid; gap: 5px; margin: 10px 0 0; padding: 10px; border-radius: 14px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .45); list-style: none; counter-reset: rv; }
.or-reveal li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; counter-increment: rv; }
.or-reveal li::before { content: counter(rv); min-width: 20px; color: #6ee7b7; }
.or-reveal li img { width: 26px; height: 26px; object-fit: contain; }
.or-reveal li .v { margin-inline-start: auto; color: #fde68a; font-size: 13px; }

/* شكل 2 (اختيار علي 2026-11-11): 3D كبير بدون إطار، والاسم بكبسولة ذهبية */
.or-item.pic { border: 0; background: radial-gradient(circle at 50% 42%, rgba(250, 204, 21, .24), transparent 70%); }
.or-item.pic img { width: 70px; height: 70px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.or-item.pic .t { padding: 2px 12px; border-radius: 99px; background: rgba(250, 204, 21, .18); color: #fde047; }
.or-item.pic:hover img, .or-item.pic:focus-visible img { transform: scale(1.06); }
.or-item.pic.bad { background: radial-gradient(circle at 50% 42%, rgba(239, 68, 68, .45), transparent 72%); }
.or-slot img { width: 40px; height: 40px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.or .or-item.pic { border: 0 !important; box-shadow: none !important; }

/* 📏 الجولة بشاشة وحدة بدون نزول (علي 27/11): الإجابات تاخذ اللي يبقى من الشاشة (assets/round-fit.js) — شكل بس */
.or #game.rf > .rf-items { display: block; flex: 1 1 0; min-height: 0; container-type: normal; }
.or #game.rf > .rf-items > .or-items { width: 100% !important; height: 100%; grid-auto-rows: minmax(0, 1fr); }
.or #game.rf .or-item { min-height: 0; }
@media (orientation: portrait) and (max-height: 700px) {
  .or #game .or-timebar { margin-bottom: 6px; }
  .or #game .or-hint { margin-bottom: 6px; }
  .or #game .or-slots { gap: 6px; margin-bottom: 6px; }
  .or #game .or-slot { min-height: 44px; font-size: 20px; }
  .or #game .or-items { gap: 6px; }
}
/* الجوال بالعرض: السؤال والعدادات جهة، والخانات والإجابات جهة */
@media (orientation: landscape) and (max-height: 560px) {
  .or #game.rf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 14px; align-content: stretch; }
  .or #game.rf > * { grid-column: 1; }
  .or #game.rf > #slots { grid-column: 2; grid-row: 1; }
  .or #game.rf > .rf-items { grid-column: 2; grid-row: 2 / span 12; height: auto; }
  .or #game .or-slot { min-height: 40px; font-size: 20px; }
}
