@import url('https://fonts.googleapis.com/css2?family=Changa:wght@400;500;600;700;800&family=Lemonada:wght@400;500;600;700&display=swap');

:root {
  font-family: 'Changa', sans-serif;
  color: #25243a;
  background: #fffdf8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #25243a;
  --muted: #777487;
  --teal: #0f766e;
  --teal-dark: #075e58;
  --teal-soft: #e5f5ef;
  --coral: #fb7185;
  --coral-soft: #fff0f1;
  --yellow: #f5c94c;
  --paper: #fffdf8;
  --line: #eee9df;
  --shadow: 0 18px 50px rgba(46, 62, 58, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); overflow-x: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page-wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.page-noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .2; background-image: radial-gradient(#98a9a0 0.55px, transparent .55px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }

.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed #e3ded3; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 44px; height: 44px; background: var(--teal); color: white; border-radius: 12px 14px 11px 15px; transform: rotate(-5deg); box-shadow: 4px 4px 0 #b8e4d7; font-family: 'Lemonada', sans-serif; font-size: 16px; font-weight: 700; }
.brand-mark i { position: absolute; width: 7px; height: 7px; top: -2px; left: 5px; border-radius: 50%; background: var(--coral); border: 1px solid var(--paper); }
.brand-name { display: flex; flex-direction: column; font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.brand-name span { margin-top: 4px; color: #9995a5; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.lessons-nav { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; color: var(--teal-dark); background: #eaf7f1; border: 1px dashed #9bcdbd; border-radius: 10px 13px 9px 12px; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.lessons-nav:hover { background: #dff2e9; transform: translateY(-1px); }
.lessons-nav-count { display: grid; place-items: center; width: 19px; height: 19px; color: #a34f61; background: #ffe4e6; border-radius: 50%; font-size: 10px; }
.how-link { display: inline-flex; align-items: center; gap: 8px; color: #656274; font-size: 13px; transition: color .2s; }
.how-link:hover { color: var(--teal); }
.how-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }

.hero { min-height: 340px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-block: 40px 27px; }
.hero-copy { padding-block: 10px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.eyebrow-star { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #c55269; background: var(--coral-soft); border-radius: 7px; font-size: 13px; }
h1 { max-width: 570px; margin: 0; color: var(--ink); font-family: 'Lemonada', sans-serif; font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1.55; letter-spacing: -.06em; }
.title-mark { position: relative; z-index: 0; white-space: nowrap; }
.title-mark::after { position: absolute; z-index: -1; content: ''; right: 0; bottom: 4px; width: 100%; height: 12px; border-radius: 50%; background: #b9e6d8; transform: rotate(-2deg); }
.hero-intro { max-width: 470px; margin: 14px 0 20px; color: #686678; font-size: 16px; line-height: 2; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; color: #736b55; background: #fff7d9; border: 1px dashed #edcd60; border-radius: 9px 12px 8px 13px; font-size: 12px; transform: rotate(-1deg); }
.note-pin { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(251,113,133,.16); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.paper-stack { position: relative; width: 233px; height: 255px; padding: 29px 27px; background: #fff4cb; border: 1px solid #efd989; border-radius: 7px 13px 8px 11px; box-shadow: 13px 13px 0 #f7e6a2, 24px 22px 0 #f8eee0, 0 20px 38px rgba(69, 57, 28, .09); transform: rotate(4deg); }
.paper-stack::before { content: ''; position: absolute; inset: 9px; border: 1px dashed rgba(173, 141, 43, .29); border-radius: 3px 8px 4px 7px; pointer-events: none; }
.paper-tape { position: absolute; top: -12px; left: 82px; width: 64px; height: 22px; background: rgba(251,113,133,.67); transform: rotate(-7deg); clip-path: polygon(4% 0,96% 0,100% 100%,0 100%); }
.paper-small { display: block; color: #8e7940; font-size: 11px; }
.paper-question { display: block; margin-top: 12px; color: #3e3a2f; font-family: 'Lemonada', sans-serif; font-size: 28px; font-weight: 700; line-height: 1.65; }
.paper-big-number { position: absolute; top: 47px; left: 26px; color: var(--coral); font-family: 'Lemonada', sans-serif; font-size: 57px; font-weight: 700; line-height: 1; transform: rotate(-8deg); }
.paper-caption { display: block; margin-top: 11px; color: #a18539; font-size: 11px; }
.paper-stamp { position: absolute; left: 19px; bottom: 22px; padding: 3px 10px; color: var(--teal); border: 2px solid var(--teal); border-radius: 40%; font-size: 11px; font-weight: 700; transform: rotate(-11deg); }
.art-spark { position: absolute; color: var(--coral); font-size: 24px; }
.spark-one { top: 19px; right: 24%; transform: rotate(12deg); }
.spark-two { bottom: 31px; right: 12%; color: var(--teal); font-size: 19px; transform: rotate(-12deg); }
.art-loop { position: absolute; top: 15px; left: 17%; width: 35px; height: 23px; border: 2px solid var(--teal); border-radius: 48%; transform: rotate(28deg); }
.art-dash { position: absolute; width: 29px; height: 2px; background: var(--coral); border-radius: 4px; }
.dash-one { left: 19%; top: 40%; transform: rotate(-38deg); }
.dash-two { right: 19%; bottom: 23%; width: 21px; transform: rotate(36deg); }

.steps { display: flex; justify-content: center; align-items: center; gap: 14px; width: fit-content; margin: 0 auto 21px; padding: 10px 17px; color: #727084; background: rgba(255,255,255,.65); border: 1px solid #f0ece4; border-radius: 30px; font-size: 12px; }
.step { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.step-number { display: grid; place-items: center; width: 22px; height: 22px; color: var(--teal); background: var(--teal-soft); border-radius: 50%; font-weight: 700; }
.step-line { width: 25px; height: 1px; background: #ddd8ce; }
.game-area { max-width: 800px; margin: 0 auto; }
.game-card { padding: 30px 38px 33px; background: #fff; border: 1px solid #eeeae2; border-radius: 17px 21px 16px 20px; box-shadow: var(--shadow); position: relative; }
.game-card::before { content: ''; position: absolute; top: 13px; right: 13px; bottom: 13px; left: 13px; border: 1px dashed #e9e4d9; border-radius: 11px 16px 10px 13px; pointer-events: none; }
.name-step, .game-step { position: relative; z-index: 1; }
.card-heading { display: flex; align-items: center; gap: 14px; }
.mini-doodle { display: grid; place-items: center; width: 45px; height: 45px; color: var(--teal); background: var(--teal-soft); border-radius: 13px 9px 14px 10px; font-size: 23px; transform: rotate(4deg); }
.numbers-doodle { color: #a56710; background: #fff5d4; font-family: 'Lemonada', sans-serif; font-size: 15px; font-weight: 700; transform: rotate(-5deg); }
.section-kicker { margin-bottom: 2px; color: #a4a0af; font-size: 11px; }
h2 { margin: 0; color: var(--ink); font-family: 'Lemonada', sans-serif; font-size: 21px; font-weight: 600; line-height: 1.6; }
.name-form { margin-top: 23px; }
.name-form label { display: block; margin-bottom: 8px; color: #5e5b6c; font-size: 13px; font-weight: 600; }
.input-row { display: flex; gap: 11px; }
.input-row input { min-width: 0; flex: 1; height: 51px; padding: 0 16px; color: var(--ink); background: #fffefa; border: 1px solid #e9e5dd; border-radius: 10px 13px 9px 12px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.input-row input::placeholder { color: #b1adba; }
.input-row input:focus { border-color: #77b6a5; box-shadow: 0 0 0 4px rgba(15,118,110,.1); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px 12px 9px 13px; font-weight: 700; transition: transform .18s, box-shadow .18s, background .18s; }
.primary-button { min-width: 166px; padding: 0 18px; color: white; background: var(--teal); box-shadow: 0 4px 0 var(--teal-dark); }
.primary-button:hover { background: #0a8279; transform: translateY(-2px); box-shadow: 0 6px 0 var(--teal-dark); }
.primary-button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--teal-dark); }
.primary-button span { font-size: 20px; line-height: 1; }
.input-hint { margin: 8px 0 0; color: #a09cab; font-size: 11px; }
.game-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.text-button { padding: 8px 12px; color: var(--teal); background: transparent; border: 1px dashed #a4cfc3; border-radius: 9px; font-size: 12px; }
.text-button:hover { background: var(--teal-soft); }
.game-hint { margin: 14px 0 16px; color: #7e7a8a; font-size: 13px; }
.number-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.number-button { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; color: #4c495b; background: #fffdf8; border: 1px solid #ede9e0; border-radius: 11px 14px 10px 13px; font-size: 16px; font-weight: 700; transition: transform .17s, color .17s, border-color .17s, background .17s, box-shadow .17s; }
.number-button:nth-child(3n) { border-radius: 15px 9px 14px 10px; }
.number-button:hover { color: var(--teal); background: #f1faf6; border-color: #9bd0bf; transform: translateY(-3px) rotate(-2deg); box-shadow: 0 4px 10px rgba(15,118,110,.08); }
.number-button:focus-visible, .text-button:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible, .how-link:focus-visible, .site-footer a:focus-visible { outline: 3px solid #71c4b2; outline-offset: 3px; }
.number-button.is-selected { color: white; background: var(--teal); border-color: var(--teal); box-shadow: 0 3px 0 var(--teal-dark); transform: rotate(-3deg) scale(1.04); }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 20px; margin-top: 18px; color: #858191; font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.positive { background: var(--teal); }
.legend-dot.neutral { background: var(--yellow); }
.legend-dot.tease { background: var(--coral); }
.result-card { position: relative; margin-top: 24px; padding: 22px 24px 21px; overflow: hidden; background: #f1faf6; border: 1px solid #c4e6d8; border-radius: 13px 17px 12px 15px; animation: card-in .34s cubic-bezier(.2,.8,.2,1) both; }
.result-card::after { content: ''; position: absolute; right: -29px; bottom: -58px; width: 150px; height: 130px; border: 1px dashed #a7d1c1; border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.result-scribble { position: absolute; top: 10px; left: 18px; color: #e3b744; font-size: 24px; }
.result-label-row { display: flex; align-items: center; gap: 11px; }
.result-overline { margin: 0; color: var(--teal); font-size: 11px; font-weight: 700; }
.result-type { padding: 3px 9px; color: #9d6a00; background: #fff2c7; border-radius: 20px; font-size: 10px; }
.result-type.is-tease { color: #af4e61; background: #ffe1e4; }
.result-type.is-positive { color: var(--teal); background: #dcf3e9; }
.result-meta { display: flex; align-items: center; gap: 8px; margin: 12px 0 3px; color: #848092; font-size: 12px; }
.result-meta strong { color: var(--ink); font-weight: 700; }
.meta-divider { color: #c2bdc9; }
.result-card h3 { position: relative; z-index: 1; max-width: 600px; margin: 3px 0 16px; color: #28263b; font-family: 'Lemonada', sans-serif; font-size: clamp(17px, 2.3vw, 22px); font-weight: 500; line-height: 1.9; }
.secondary-button { position: relative; z-index: 1; padding: 8px 13px; color: var(--teal-dark); background: #fff; border: 1px solid #b7d9cd; font-size: 12px; }
.secondary-button:hover { background: white; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(15,118,110,.1); }
.secondary-button span { font-size: 17px; }
.under-card { margin: 12px 0 0; color: #a5a1ae; text-align: center; font-size: 11px; }

.lessons-section { max-width: 980px; margin: 43px auto 0; padding-top: 29px; border-top: 1px dashed #e3ded3; scroll-margin-top: 22px; }
.lessons-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.lessons-heading .section-kicker { margin-bottom: 3px; }
.lessons-heading h2 { font-family: 'Lemonada', sans-serif; font-size: 27px; }
.lessons-intro { margin: 5px 0 0; color: #7e7a8a; font-size: 13px; line-height: 1.8; }
.lesson-count { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; color: #716c7d; background: #fff7d9; border: 1px dashed #edcd60; border-radius: 9px 12px 8px 13px; font-size: 11px; white-space: nowrap; }
.lesson-count span { color: var(--coral); font-size: 15px; }
.lessons-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.lesson-card { min-width: 0; padding: 22px; background: #fff; border: 1px solid #eeeae2; border-radius: 14px 18px 13px 16px; box-shadow: 0 12px 35px rgba(46,62,58,.06); }
.lesson-card-science { border-top: 3px solid #73b8a1; }
.lesson-card-literature { border-top: 3px solid #f19aa7; }
.lesson-card-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lesson-icon { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 11px 9px 12px 10px; font-size: 20px; }
.science-icon { color: var(--teal); background: var(--teal-soft); }
.literature-icon { color: #bf5b71; background: var(--coral-soft); font-family: Georgia, serif; font-size: 25px; }
.lesson-subject { min-width: 0; color: #767283; font-size: 11px; font-weight: 600; }
.lesson-pages { margin-inline-start: auto; padding: 4px 8px; color: #8a8593; background: #f6f4ee; border-radius: 20px; font-size: 10px; white-space: nowrap; }
.lesson-card h3 { margin: 15px 0 7px; color: var(--ink); font-family: 'Lemonada', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.7; }
.lesson-description { min-height: 73px; margin: 0; color: #777384; font-size: 12px; line-height: 1.9; }
.lesson-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.lesson-tags span { padding: 4px 8px; color: #6e6a7b; background: #faf8f2; border: 1px solid #efebe2; border-radius: 8px 10px 7px 9px; font-size: 10px; }
.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin-top: 17px; }
.lesson-download, .lesson-fullscreen { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 7px 11px; border-radius: 9px 11px 8px 10px; font-size: 11px; font-weight: 700; }
.lesson-download { color: #fff; background: var(--teal); box-shadow: 0 3px 0 var(--teal-dark); }
.lesson-download:hover { background: #0a8279; transform: translateY(-1px); }
.lesson-fullscreen { color: var(--teal-dark); background: #f3faf6; border: 1px solid #c8e3d8; }
.lesson-fullscreen:hover { background: #e8f5ee; }
.lesson-viewer { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e7e2d9; }
.lesson-viewer summary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; color: #a34f61; background: #fff1f2; border: 1px dashed #f2b2bc; border-radius: 9px 11px 8px 10px; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.lesson-viewer summary::-webkit-details-marker { display: none; }
.lesson-viewer summary::after { content: '+'; font-size: 16px; font-weight: 500; line-height: 1; }
.lesson-viewer[open] summary::after { content: '−'; }
.lesson-viewer[open] summary { margin-bottom: 12px; }
.pdf-preview { padding: 8px; background: #f7f5ef; border: 1px solid #eee9df; border-radius: 10px; }
.pdf-preview iframe { display: block; width: 100%; height: min(68vh, 620px); min-height: 390px; background: #fff; border: 0; border-radius: 6px; }
.pdf-preview p { margin: 8px 3px 2px; color: #777384; font-size: 10px; }
.pdf-preview p a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

.closing-note { display: flex; justify-content: center; align-items: center; gap: 13px; margin: 41px 0 42px; color: #8a8694; text-align: center; font-family: 'Lemonada', sans-serif; font-size: 13px; }
.closing-note p { margin: 0; }
.closing-star { color: var(--coral); font-family: sans-serif; font-size: 17px; }
.site-footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed #e3ded3; color: #9a96a2; font-size: 11px; }
.footer-brand { color: var(--teal); font-weight: 800; letter-spacing: .05em; }
.site-footer a { color: var(--teal); }

@keyframes card-in { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 760px) {
  .page-wrap { width: min(100% - 36px, 620px); }
  .site-header { height: 76px; }
  .hero { min-height: 0; grid-template-columns: 1fr .62fr; gap: 8px; padding-block: 34px 22px; }
  h1 { font-size: clamp(29px, 6vw, 43px); }
  .hero-intro { max-width: 420px; font-size: 14px; line-height: 1.9; }
  .hero-note { font-size: 10px; }
  .hero-art { min-height: 230px; transform: scale(.82); transform-origin: center; }
  .paper-stack { width: 204px; height: 226px; padding: 24px 22px; }
  .paper-question { font-size: 24px; }
  .paper-big-number { top: 43px; left: 22px; font-size: 49px; }
  .steps { gap: 8px; padding: 8px 11px; font-size: 10px; }
  .step-line { width: 15px; }
  .game-card { padding: 26px 28px 29px; }
  .number-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
  .number-button { font-size: 14px; }
}
@media (max-width: 520px) {
  .page-wrap { width: calc(100% - 28px); }
  .site-header { height: 69px; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 39px; height: 39px; }
  .header-nav { gap: 7px; }
  .lessons-nav { gap: 4px; padding: 6px 8px; font-size: 10px; }
  .lessons-nav-count { width: 16px; height: 16px; font-size: 9px; }
  .how-link { gap: 5px; font-size: 10px; }
  .hero { position: relative; display: block; padding-block: 29px 18px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-intro { max-width: 100%; padding-left: 5px; }
  .hero-note { max-width: calc(100% - 104px); line-height: 1.7; }
  .hero-art { position: absolute; left: -47px; bottom: 2px; width: 170px; min-height: 190px; opacity: .4; transform: scale(.59); transform-origin: left bottom; }
  .steps { margin-bottom: 17px; }
  .game-card { padding: 23px 19px 24px; border-radius: 14px; }
  .game-card::before { inset: 9px; }
  .card-heading { gap: 10px; }
  .mini-doodle { width: 39px; height: 39px; font-size: 20px; }
  h2 { font-size: 17px; }
  .name-form { margin-top: 19px; }
  .input-row { flex-direction: column; gap: 12px; }
  .input-row input { flex: none; height: 48px; }
  .primary-button { min-height: 47px; width: 100%; }
  .game-topline { align-items: flex-start; gap: 9px; }
  .text-button { margin-top: 3px; padding: 7px 9px; white-space: nowrap; font-size: 10px; }
  .game-hint { font-size: 11px; }
  .number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .number-button { border-radius: 10px; font-size: 15px; }
  .legend { justify-content: flex-start; gap: 7px 13px; font-size: 10px; }
  .result-card { padding: 19px 17px; }
  .result-card h3 { font-size: 17px; }
  .lessons-section { margin-top: 32px; padding-top: 23px; }
  .lessons-heading { align-items: center; gap: 8px; margin-bottom: 14px; }
  .lessons-heading h2 { font-size: 22px; }
  .lessons-intro { max-width: 290px; font-size: 11px; }
  .lesson-count { padding: 6px 8px; font-size: 9px; }
  .lessons-grid { grid-template-columns: 1fr; gap: 12px; }
  .lesson-card { padding: 18px; }
  .lesson-card h3 { font-size: 17px; }
  .lesson-description { min-height: 0; font-size: 11px; }
  .pdf-preview iframe { height: 68vh; min-height: 350px; }
  .closing-note { gap: 7px; margin: 29px 0; font-size: 11px; }
  .site-footer { min-height: 59px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* لعبة الأسئلة المشتركة — تكمل أسلوب دفتر الشخبطة */
.class-game-nav { display: inline-flex; align-items: center; padding: 7px 11px; color: var(--teal-dark); background: #eaf7f1; border: 1px dashed #9bcdbd; border-radius: 10px 13px 9px 12px; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.class-game-nav:hover { background: #dff2e9; transform: translateY(-1px); }
.class-game-section { max-width: 980px; margin: 48px auto 0; padding: 29px 26px 26px; overflow: hidden; background: radial-gradient(circle at 8% 14%, rgba(251,113,133,.12), transparent 19%), linear-gradient(145deg, #eff8f2 0%, #f5f3eb 54%, #fff2e9 100%); border: 1px solid #e2e7d9; border-radius: 24px 17px 23px 18px; scroll-margin-top: 22px; }
.class-game-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 1px 10px 22px; }
.class-game-heading-copy { max-width: 680px; }
.class-game-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: var(--teal); font-size: 11px; font-weight: 700; }
.class-game-kicker span { color: var(--coral); font-size: 17px; }
.class-game-heading h2 { color: var(--ink); font-family: 'Lemonada', sans-serif; font-size: clamp(25px, 3.2vw, 35px); font-weight: 600; line-height: 1.65; }
.class-game-heading h2 span { position: relative; z-index: 0; white-space: nowrap; }
.class-game-heading h2 span::after { position: absolute; z-index: -1; right: 0; bottom: 4px; width: 100%; height: 9px; content: ''; background: #b9e6d8; border-radius: 50%; transform: rotate(-2deg); }
.class-game-intro { max-width: 600px; margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.class-game-sticker { position: relative; display: grid; place-items: center; flex: 0 0 112px; height: 95px; color: var(--teal-dark); background: #fffdf8; border: 1px dashed #9bcdbd; border-radius: 47% 53% 42% 58% / 51% 46% 54% 49%; box-shadow: 7px 6px 0 rgba(137,185,164,.25); font-size: 13px; font-weight: 700; text-align: center; transform: rotate(4deg); }
.class-game-board { padding: 23px; background: rgba(255,255,255,.94); border: 1px solid rgba(223,232,223,.95); border-radius: 17px 22px 16px 21px; box-shadow: 0 16px 40px rgba(46,62,58,.08); }
.class-game-privacy { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 11px 13px; color: #6f6755; background: #fff8df; border: 1px dashed #ecd888; border-radius: 10px 13px 9px 12px; }
.class-game-privacy > span { color: var(--coral); font-size: 17px; }
.class-game-privacy p { margin: 0; font-size: 11px; line-height: 1.8; }
.class-game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.class-game-status { margin: 0; color: #7b867b; font-size: 11px; line-height: 1.7; }
.class-game-status.is-error { color: #b04458; }
.class-game-status.is-success { color: var(--teal-dark); }
.class-game-refresh { flex: 0 0 auto; padding: 7px 11px; color: var(--teal-dark); background: #f3faf6; border: 1px solid #c8e3d8; border-radius: 9px 12px 8px 11px; font: inherit; font-size: 10px; font-weight: 700; }
.class-game-refresh:hover:not(:disabled) { background: #e7f5ed; }
.class-game-refresh:disabled { opacity: .65; cursor: wait; }
.class-question-list { display: grid; gap: 9px; }
.class-question-card { overflow: hidden; background: #fffefa; border: 1px solid #e9ede4; border-radius: 11px 15px 10px 14px; transition: border-color .18s, box-shadow .18s; }
.class-question-card.is-open { border-color: #a8d3c1; box-shadow: 0 5px 17px rgba(15,118,110,.06); }
.class-question-toggle { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 13px 14px; color: var(--ink); background: transparent; border: 0; text-align: right; font: inherit; }
.class-question-number { color: #a34f61; background: var(--coral-soft); padding: 4px 8px; border-radius: 8px 10px 7px 9px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.class-question-text { font-size: 12px; font-weight: 700; line-height: 1.8; }
.class-question-total { color: var(--teal-dark); background: #edf7ef; padding: 4px 8px; border-radius: 18px; font-size: 9px; white-space: nowrap; }
.class-question-options { padding: 0 13px 13px; }
.class-question-note { margin: 0 0 10px; color: #838a7d; font-size: 10px; line-height: 1.7; }
.class-vote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.class-vote-option { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 8px; padding: 9px 10px; color: #4f6057; background: #fff; border: 1px solid #e2eae1; border-radius: 9px 12px 8px 11px; text-align: right; font: inherit; transition: background .16s, border-color .16s, transform .16s; }
.class-vote-option:hover:not(:disabled) { background: #f3faf6; border-color: #8abda8; transform: translateY(-1px); }
.class-vote-option:disabled { cursor: default; }
.class-vote-option.is-leader { background: #eff8f1; border-color: #a7d2b7; }
.class-vote-option-copy { min-width: 0; display: flex; align-items: center; gap: 7px; }
.class-vote-option-label { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.class-vote-option-count { color: var(--teal-dark); font-size: 10px; }
.class-vote-leader { padding: 2px 6px; color: #a34f61; background: #ffe8ea; border-radius: 12px; font-size: 8px; white-space: nowrap; }
.class-vote-bar { grid-column: 1 / -1; display: block; height: 5px; overflow: hidden; background: #edf0e9; border-radius: 9px; }
.class-vote-bar-fill { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), #89b79e); border-radius: inherit; transition: width .3s ease; }
.class-game-refresh:focus-visible, .class-question-toggle:focus-visible, .class-vote-option:focus-visible, .class-game-nav:focus-visible { outline: 3px solid #f5c94c; outline-offset: 3px; }
@media (max-width: 760px) {
  .class-game-section { padding: 23px 18px 20px; }
  .class-game-board { padding: 19px; }
  .class-game-heading { gap: 10px; }
}
@media (max-width: 520px) {
  .header-nav { gap: 5px; }
  .class-game-nav { padding: 6px 7px; font-size: 9px; }
  .class-game-section { margin-top: 35px; padding: 19px 13px 15px; border-radius: 17px; }
  .class-game-heading { align-items: flex-start; padding: 0 3px 15px; }
  .class-game-heading h2 { font-size: 22px; }
  .class-game-intro { max-width: 300px; font-size: 11px; }
  .class-game-sticker { flex-basis: 72px; width: 72px; height: 66px; font-size: 9px; }
  .class-game-board { padding: 14px 11px; }
  .class-game-toolbar { align-items: flex-start; }
  .class-game-status { font-size: 10px; }
  .class-game-refresh { padding: 6px 8px; font-size: 9px; }
  .class-question-toggle { grid-template-columns: auto 1fr; gap: 7px; padding: 11px 10px; }
  .class-question-text { font-size: 11px; }
  .class-question-total { grid-column: 2; justify-self: start; }
  .class-question-options { padding: 0 9px 10px; }
  .class-vote-list { grid-template-columns: 1fr; gap: 6px; }
}


/* مساحة التعليقات العامة */
.comments-section { max-width: 980px; margin: 43px auto 0; padding: 28px 26px 26px; background: linear-gradient(145deg, #f1f8f2 0%, #fffaf0 58%, #fff2ed 100%); border: 1px solid #e3e9dc; border-radius: 22px 17px 24px 18px; scroll-margin-top: 22px; }
.comments-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 8px 17px; }
.comments-heading .section-kicker { margin-bottom: 2px; }
.comments-heading h2 { font-family: 'Lemonada', sans-serif; font-size: 25px; }
.comments-intro { margin: 5px 0 0; color: #777487; font-size: 12px; line-height: 1.8; }
.comments-sticker { display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 66px; color: var(--teal); background: #fffdf8; border: 1px dashed #9bcdbd; border-radius: 46% 54% 43% 57% / 55% 43% 57% 45%; box-shadow: 5px 5px 0 rgba(137,185,164,.2); font-size: 23px; transform: rotate(4deg); }
.comments-sticker small { margin-top: -17px; color: #a34f61; font-size: 9px; font-weight: 700; }
.comments-board { padding: 20px; background: rgba(255,255,255,.94); border: 1px solid rgba(223,232,223,.95); border-radius: 16px 21px 15px 20px; box-shadow: 0 13px 35px rgba(46,62,58,.06); }
.comments-public-note { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 17px; padding: 10px 12px; color: #71674d; background: #fff8df; border: 1px dashed #ecd888; border-radius: 10px 13px 9px 12px; }
.comments-public-note > span { color: var(--coral); font-size: 16px; }
.comments-public-note p { margin: 0; font-size: 10px; line-height: 1.8; }
.comment-form label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #565466; font-size: 12px; font-weight: 700; }
.comment-form label span { color: #9a96a2; font-size: 10px; font-weight: 500; }
.comment-form textarea { display: block; width: 100%; min-height: 112px; padding: 12px 14px; color: var(--ink); background: #fffefa; border: 1px solid #e5e8de; border-radius: 10px 14px 9px 12px; outline: none; resize: vertical; font: inherit; font-size: 12px; line-height: 1.9; transition: border-color .2s, box-shadow .2s; }
.comment-form textarea::placeholder { color: #aaa6b0; }
.comment-form textarea:focus { border-color: #83b8a2; box-shadow: 0 0 0 4px rgba(15,118,110,.1); }
.comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.comment-character-count { color: #9692a0; font-size: 10px; }
.comment-submit { min-height: 41px; padding: 7px 14px; font-size: 11px; }
.comment-submit:disabled { opacity: .65; cursor: wait; }
.comment-submit span { font-size: 17px; }
.comments-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 11px; padding-top: 13px; border-top: 1px dashed #e6e1d8; }
.comment-status { margin: 0; color: #83808d; font-size: 10px; line-height: 1.7; }
.comment-status.is-error { color: #b04458; }
.comment-status.is-success { color: var(--teal-dark); }
.comment-refresh { flex: 0 0 auto; padding: 6px 9px; color: var(--teal-dark); background: #f3faf6; border: 1px solid #c8e3d8; border-radius: 8px 11px 7px 10px; font: inherit; font-size: 9px; font-weight: 700; }
.comment-refresh:hover:not(:disabled) { background: #e7f5ed; }
.comment-refresh:disabled { opacity: .6; cursor: wait; }
.comment-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.comment-item { padding: 12px 14px 10px; background: #fffefa; border: 1px solid #ebece4; border-radius: 10px 14px 9px 12px; }
.comment-item-text { margin: 0; color: #454355; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; line-height: 1.9; }
.comment-item-time { display: block; margin-top: 6px; color: #a09cab; font-size: 9px; }
.comment-empty { padding: 15px 12px; color: #898593; background: #fbfaf6; border: 1px dashed #e8e3d9; border-radius: 10px 13px 9px 12px; text-align: center; font-size: 11px; line-height: 1.8; }
.comment-form textarea:focus-visible, .comment-submit:focus-visible, .comment-refresh:focus-visible { outline: 3px solid #f5c94c; outline-offset: 3px; }
@media (max-width: 760px) {
  .comments-section { padding: 23px 18px 20px; }
  .comments-board { padding: 17px; }
}
@media (max-width: 520px) {
  .comments-section { margin-top: 32px; padding: 19px 13px 15px; border-radius: 17px; }
  .comments-heading { gap: 10px; padding: 0 3px 14px; }
  .comments-heading h2 { font-size: 21px; }
  .comments-intro { max-width: 270px; font-size: 10px; }
  .comments-sticker { flex-basis: 58px; width: 58px; height: 54px; font-size: 20px; }
  .comments-sticker small { margin-top: -14px; font-size: 8px; }
  .comments-board { padding: 13px 11px; }
  .comment-form label { align-items: flex-start; font-size: 11px; }
  .comment-form textarea { min-height: 100px; padding: 10px 11px; font-size: 11px; }
  .comment-form-footer { gap: 8px; }
  .comment-submit { width: auto; min-width: 125px; min-height: 39px; padding-inline: 10px; font-size: 10px; }
  .comments-toolbar { align-items: flex-start; }
  .comment-item { padding: 10px 11px 8px; }
  .comment-item-text { font-size: 11px; }
}
