:root { --paper:#f4e9d2; --ink:#1b1712; --red:#d7261e; --yellow:#ffcc1a; --blue:#2a7fd4; --green:#2e9e3e; --orange:#f07c12; --cork:#b88a55; --c:#d7261e;
  --grain: 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='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .1  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); }
body { color: var(--ink); font: 500 17px/1.6 'Cairo', system-ui, sans-serif; overflow-x: hidden; direction: rtl; }
#app { position: relative; min-height: 100vh; overflow-x: hidden; background-color: var(--paper); background-image: var(--grain), radial-gradient(rgba(27,23,18,.07) 1.4px, transparent 1.6px); background-size: 160px 160px, 14px 14px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, .ttl, .lalezar { font-family: 'Lalezar', 'Cairo', sans-serif; font-weight: 400; }
.hand { font-family: 'Aref Ruqaa', 'Cairo', serif; font-weight: 700; }
.sticker-load { position: fixed; z-index: 9999; left: 50%; top: 40%; transform: translateX(-50%) rotate(-4deg); background: var(--yellow); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 14px 26px; font: 400 28px 'Lalezar', sans-serif; transition: opacity .4s; }
.sticker-load.done { opacity: 0; pointer-events: none; }

/* sticker buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 8px 22px; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); border-radius: 14px 10px 13px 9px; box-shadow: 5px 5px 0 var(--ink); font: 900 19px 'Cairo', sans-serif; text-decoration: none; cursor: pointer; transform: rotate(-1.5deg); transition: transform .1s, box-shadow .1s; touch-action: manipulation; }
.btn:nth-child(even) { transform: rotate(1.5deg); }
.btn:active { transform: translate(4px, 4px) rotate(0); box-shadow: 1px 1px 0 var(--ink); }
.btn.cream { background: #fff8e6; }
.btn.big { font-size: 22px; min-height: 56px; padding: 10px 28px; }
.btn.col { background: var(--c); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .4; cursor: default; }
.btn.sm { min-height: 44px; font-size: 16px; padding: 4px 14px; }

/* common scrapbook */
.sec { position: relative; padding: 64px 16px 20px; max-width: 1100px; margin: 0 auto; }
.sec h2 { text-align: center; font-size: clamp(34px, 9vw, 52px); line-height: 1.3; color: var(--ink); }
.wob { display: block; width: min(220px, 60%); height: 14px; margin: 2px auto 10px; }
.sub { text-align: center; font: 700 clamp(19px, 5vw, 24px)/1.5 'Aref Ruqaa', serif; color: #5a4a36; margin: 0 auto 28px; max-width: 560px; }
.tape, .pin { position: relative; }
.tape::before { content: ''; position: absolute; top: -14px; left: 50%; width: 92px; height: 28px; margin-left: -46px; background: rgba(240, 214, 130, .85); border-left: 2px dashed rgba(0,0,0,.18); border-right: 2px dashed rgba(0,0,0,.18); transform: rotate(-3deg); z-index: 3; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pin::after { content: ''; position: absolute; top: -10px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a90 0 18%, #d7261e 20% 70%, #7d120d 100%); box-shadow: 2px 3px 3px rgba(0,0,0,.4); z-index: 3; }
.pin.blue::after { background: radial-gradient(circle at 35% 35%, #9cc8f5 0 18%, #2a7fd4 20% 70%, #174a85 100%); }
.paper { background: #fffaf0; border: 3px solid var(--ink); border-radius: 6px 9px 5px 10px; box-shadow: 5px 6px 0 rgba(27,23,18,.9); }
.corkboard { background-color: var(--cork); background-image: radial-gradient(rgba(70,40,10,.35) 1.5px, transparent 2px), radial-gradient(rgba(255,235,190,.25) 1px, transparent 1.6px), var(--grain); background-size: 11px 11px, 7px 7px, 160px 160px; border: 8px solid #7a5230; border-radius: 6px; box-shadow: inset 0 0 20px rgba(0,0,0,.35), 6px 6px 0 var(--ink); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 24px 12px 36px; border-bottom: 6px solid var(--ink); }
.hero.corkboard { border-width: 0 0 6px; border-radius: 0; box-shadow: inset 0 0 40px rgba(0,0,0,.4); }
.poster { position: absolute; width: 120px; background: #fff; padding: 5px 5px 16px; box-shadow: 3px 5px 8px rgba(0,0,0,.45); animation: sway 5s ease-in-out infinite alternate; transform-origin: 50% 8px; }
.poster img { width: 100%; aspect-ratio: 800/1135; object-fit: cover; }
.poster::after { content: ''; position: absolute; top: -6px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a90 0 18%, #d7261e 20% 70%, #7d120d 100%); box-shadow: 1px 2px 2px rgba(0,0,0,.5); }
@keyframes sway { from { transform: rotate(var(--r)); } to { transform: rotate(calc(var(--r) + 2.5deg)); } }
.hcard { position: relative; z-index: 2; width: min(100%, 440px); background: #fbf2de; border: 3px solid var(--ink); padding: 34px 18px 26px; text-align: center; transform: rotate(-2deg); box-shadow: 7px 8px 0 rgba(27,23,18,.85); animation: slam .9s cubic-bezier(.2,1.4,.4,1) both; border-radius: 4px 8px 4px 9px; background-image: var(--grain); }
.hcard::before { content: ''; position: absolute; top: -16px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: rgba(240,214,130,.9); border-left: 2px dashed rgba(0,0,0,.2); border-right: 2px dashed rgba(0,0,0,.2); transform: rotate(2deg); }
@keyframes slam { 0% { transform: scale(3) rotate(-8deg); opacity: 0; } 55% { transform: scale(.92) rotate(-2deg); opacity: 1; } 75% { transform: scale(1.05) rotate(-2deg); } 100% { transform: scale(1) rotate(-2deg); } }
.hcard h1 { font-size: clamp(68px, 22vw, 112px); line-height: 1.15; color: #fff; -webkit-text-stroke: 0; text-shadow: 4px 4px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 0 4px 0 var(--ink), 4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 -3px 0 var(--ink); }
.torn { display: inline-block; background: var(--red); color: #fff; padding: 2px 26px 4px; font: 400 clamp(30px, 9vw, 44px)/1.4 'Lalezar', sans-serif; transform: rotate(-3deg); clip-path: polygon(0 8%, 6% 0, 14% 7%, 24% 0, 36% 6%, 50% 0, 62% 7%, 75% 0, 88% 6%, 100% 0, 98% 40%, 100% 62%, 97% 100%, 85% 93%, 72% 100%, 58% 94%, 44% 100%, 30% 93%, 18% 100%, 7% 94%, 0 100%, 2% 60%); margin-top: -4px; }
.tag { margin: 14px 0 20px; font: 700 clamp(21px, 5.6vw, 26px)/1.5 'Aref Ruqaa', serif; color: #3c3123; }
.hbtns { display: flex; flex-wrap: wrap; gap: 14px 12px; justify-content: center; }

/* index cards */
.cards { display: grid; gap: 52px 28px; grid-template-columns: 1fr; padding-top: 14px; max-width: 460px; margin: 0 auto; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; max-width: none; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: #fffaf0; border: 3px solid var(--ink); border-radius: 4px 8px 4px 9px; box-shadow: 5px 6px 0 var(--ink); padding: 12px 12px 18px; opacity: 0; transform: translateY(60px) rotate(var(--rot)); transition: opacity .6s, transform .7s cubic-bezier(.2,1.2,.4,1); display: flex; flex-direction: column; gap: 8px; }
.card.in { opacity: 1; transform: rotate(var(--rot)); }
.card::before { content: ''; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px; background: rgba(240,214,130,.88); border-left: 2px dashed rgba(0,0,0,.18); border-right: 2px dashed rgba(0,0,0,.18); transform: rotate(-3deg); z-index: 4; }
.cover { position: relative; border: 3px solid var(--ink); background: var(--c); overflow: hidden; cursor: pointer; }
.cover img { width: 100%; aspect-ratio: 800/1135; object-fit: cover; }
.word { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) scale(0) rotate(-12deg); font: 400 clamp(60px, 18vw, 84px)/1 'Lalezar', sans-serif; color: #fff; text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink); white-space: nowrap; pointer-events: none; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.cover.pop .word { transform: translate(-50%, -50%) scale(1) rotate(-12deg); }
.starburst { position: absolute; top: 8px; right: 8px; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; }
.starburst::before { content: ''; position: absolute; inset: 0; background: var(--yellow); clip-path: polygon(50% 0, 61% 14%, 79% 7%, 80% 25%, 96% 31%, 87% 46%, 100% 60%, 83% 68%, 85% 86%, 67% 84%, 58% 100%, 47% 86%, 29% 94%, 26% 76%, 8% 71%, 18% 56%, 4% 41%, 22% 33%, 20% 15%, 38% 18%); filter: drop-shadow(2px 2px 0 var(--ink)); }
.starburst b { position: relative; font: 400 21px/1 'Lalezar', sans-serif; text-align: center; transform: rotate(-8deg); max-width: 58px; }
.stamp-done { position: absolute; bottom: 14px; left: 8px; z-index: 3; color: var(--green); border: 4px solid var(--green); border-radius: 8px; padding: 0 12px; font: 400 28px/1.5 'Lalezar', sans-serif; transform: rotate(-12deg) scale(0); background: rgba(255,250,240,.85); transition: transform .35s cubic-bezier(.2,1.8,.4,1); }
.stamp-done.on { transform: rotate(-12deg) scale(1); }
.card h3 { font-size: 29px; line-height: 1.3; color: var(--c); }
.blurb { font-weight: 700; flex: 1; }
.note { font: 700 22px/1.4 'Aref Ruqaa', serif; color: var(--blue); transform: rotate(-1.5deg); }
.card .btn { align-self: flex-start; }

/* album */
.album { max-width: 680px; margin: 0 auto; padding: 26px 16px 24px; transform: rotate(-.8deg); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; justify-items: center; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(5, 1fr); } }
.slot { width: 100%; max-width: 110px; text-align: center; font: 700 15px 'Cairo', sans-serif; }
.slot .disc { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px dashed #b9a784; background: #eadcbb; display: flex; align-items: center; justify-content: center; font: 400 44px 'Lalezar', sans-serif; color: #b9a784; overflow: hidden; position: relative; }
.slot.got .disc { border: 4px solid var(--ink); border-style: solid; background: var(--c); box-shadow: 3px 3px 0 var(--ink); }
.slot.got img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.slot.got.fresh .disc { animation: popin .7s cubic-bezier(.2,1.8,.4,1); }
@keyframes popin { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: none; } }
.prog { text-align: center; font: 700 26px 'Aref Ruqaa', serif; margin-top: 16px; }
.cert { max-width: 720px; margin: 28px auto 0; padding: 12px; background: #fffaf0; border: 4px solid var(--ink); box-shadow: 6px 7px 0 var(--ink); transform: rotate(.8deg); }
.cert-in { border: 3px double var(--red); outline: 2px solid var(--ink); outline-offset: -9px; padding: 28px 16px 24px; text-align: center; position: relative; }
.cert h3 { font-size: 38px; color: var(--red); }
.cert p { font: 700 22px/1.7 'Aref Ruqaa', serif; }
.cert input { display: block; margin: 8px auto; width: min(100%, 360px); font: 700 34px 'Aref Ruqaa', serif; text-align: center; border: 0; border-bottom: 3px dashed var(--ink); background: transparent; color: var(--blue); min-height: 54px; }
.seal { width: 118px; height: 118px; margin: 10px auto; display: flex; align-items: center; justify-content: center; position: relative; }
.seal::before { content: ''; position: absolute; inset: 0; background: var(--yellow); clip-path: polygon(50% 0, 61% 10%, 75% 4%, 79% 18%, 93% 21%, 89% 35%, 100% 46%, 90% 57%, 96% 71%, 82% 75%, 79% 90%, 65% 87%, 55% 100%, 45% 88%, 31% 96%, 26% 82%, 10% 80%, 14% 66%, 2% 55%, 12% 44%, 5% 30%, 19% 26%, 21% 11%, 36% 14%); filter: drop-shadow(2px 2px 0 var(--ink)); }
.seal b { position: relative; font: 400 22px/1.1 'Lalezar', sans-serif; transform: rotate(-10deg); }

/* heroes */
.heroes { display: grid; gap: 150px 22px; grid-template-columns: 1fr; padding-top: 150px; max-width: 420px; margin: 0 auto; }
@media (min-width: 700px) { .heroes { grid-template-columns: 1fr 1fr; max-width: none; } }
@media (min-width: 1000px) { .heroes { grid-template-columns: repeat(4, 1fr); } }
.hc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 150px 12px 18px; background: var(--c); border: 4px solid var(--ink); border-radius: 10px 6px 11px 7px; box-shadow: 6px 7px 0 var(--ink); color: #fff; font: inherit; cursor: pointer; text-align: center; min-height: 220px; overflow: visible; }
.hc:nth-child(odd) { transform: rotate(-1.6deg); } .hc:nth-child(even) { transform: rotate(1.6deg); }
.rays { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,.28) 0 8deg, rgba(0,0,0,.08) 8deg 16deg); }
.himg { position: absolute; top: -128px; left: 50%; width: 180px; margin-left: -90px; aspect-ratio: 560/746; object-fit: cover; border: 4px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); background: #fff; transform: rotate(-3deg); transition: transform .3s; }
.hc.on .himg { animation: jump .7s; }
@keyframes jump { 0%,100% { transform: translateY(0) rotate(-3deg); } 40% { transform: translateY(-30px) rotate(4deg) scale(1.05); } }
.bubble { position: absolute; top: -178px; left: 50%; z-index: 4; transform: translate(-50%, 8px) scale(0); transform-origin: bottom center; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 50% 48% 52% 46% / 60% 55% 45% 50%; padding: 6px 18px; font: 700 22px/1.3 'Aref Ruqaa', serif; white-space: nowrap; box-shadow: 3px 4px 0 var(--ink); transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.bubble::after { content: ''; position: absolute; bottom: -14px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 14px solid var(--ink); }
.hc.on .bubble { transform: translate(-50%, 0) scale(1); }
.hname { position: relative; font: 400 32px/1.2 'Lalezar', sans-serif; text-shadow: 2px 2px 0 var(--ink); }
.chip { position: relative; background: #fffaf0; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 0 12px; font: 700 16px/1.7 'Cairo', sans-serif; }

/* villains */
.wanted-grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; padding-top: 12px; }
@media (min-width: 700px) { .wanted-grid { grid-template-columns: 1fr 1fr; max-width: 820px; } }
.wanted { position: relative; padding: 16px 14px 18px; background: #e8d49a; background-image: var(--grain); border: 3px solid #6b5326; box-shadow: 5px 6px 0 rgba(27,23,18,.85); transform: rotate(var(--rot)); text-align: center; }
.wanted::before { content: ''; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px; background: rgba(240,214,130,.88); border-left: 2px dashed rgba(0,0,0,.18); border-right: 2px dashed rgba(0,0,0,.18); transform: rotate(-3deg); z-index: 4; }
.wanted h3 { font-size: 46px; line-height: 1.1; color: var(--red); letter-spacing: 1px; }
.pic { position: relative; border: 3px solid var(--ink); margin: 6px 0 10px; overflow: hidden; background: #fff; }
.pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: sepia(.35) contrast(1.05); }
.vstamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg) scale(0); border: 5px solid; border-radius: 8px; padding: 0 16px; font: 400 36px/1.5 'Lalezar', sans-serif; white-space: nowrap; background: rgba(255,250,240,.55); transition: transform .4s cubic-bezier(.2,1.8,.4,1); }
.wanted.in .vstamp { transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
.vstamp.g { color: var(--green); border-color: var(--green); } .vstamp.r { color: var(--red); border-color: var(--red); }
.wanted h4 { margin: 0; font: 400 28px 'Lalezar', sans-serif; }
.vrow { text-align: right; font-weight: 700; margin-top: 4px; }
.vrow span { color: var(--red); font-weight: 900; }

/* designer */
.designer { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; padding: 22px 16px; transform: rotate(.5deg); }
@media (min-width: 680px) { .designer { grid-template-columns: 260px 1fr; align-items: start; } }
.dview { text-align: center; }
.dview svg { width: min(260px, 70vw); height: auto; background: #fff7e2; border: 3px solid var(--ink); border-radius: 8px; }
.dline { font: 700 26px/1.4 'Aref Ruqaa', serif; color: var(--blue); margin-top: 8px; min-height: 40px; }
.dctl h4 { margin: 12px 0 6px; font: 400 24px 'Lalezar', sans-serif; }
.sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sw button { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); cursor: pointer; padding: 0; }
.sw button.on { outline: 4px solid var(--yellow); outline-offset: 2px; transform: scale(1.1); }
.pw { display: flex; flex-wrap: wrap; gap: 10px; }
.pw .btn { font-size: 17px; }
.pw .btn.on { background: var(--red); color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.field { width: 100%; min-height: 50px; font: 700 22px 'Cairo', sans-serif; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 10px; background: #fffaf0; color: var(--ink); }

/* coloring */
.colwrap { max-width: 560px; margin: 0 auto; padding: 18px 14px 22px; }
.thumbs { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 4px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; box-shadow: 2px 3px 0 var(--ink); }
.thumbs button.on { outline: 4px solid var(--yellow); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.canv { width: 100%; max-width: 440px; margin: 0 auto 14px; display: block; border: 3px solid var(--ink); background: #fff; touch-action: manipulation; cursor: crosshair; }
.crayons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.crayons button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); padding: 0; cursor: pointer; }
.crayons button.on { outline: 4px solid var(--yellow); outline-offset: 2px; transform: scale(1.12); }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* drawings */
.board { padding: 24px 14px 30px; min-height: 260px; max-width: 900px; margin: 0 auto; display: grid; gap: 30px 18px; grid-template-columns: repeat(2, 1fr); align-content: start; }
@media (min-width: 700px) { .board { grid-template-columns: repeat(3, 1fr); } }
.dr { position: relative; background: #fff; padding: 7px 7px 10px; box-shadow: 3px 5px 8px rgba(0,0,0,.45); transform: rotate(var(--rot)); }
.dr img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.dr .btn { margin-top: 6px; width: 100%; min-height: 44px; font-size: 15px; padding: 2px 8px; }
.empty { grid-column: 1/-1; text-align: center; font: 700 24px/1.6 'Aref Ruqaa', serif; background: rgba(255,250,240,.9); border: 3px dashed var(--ink); padding: 18px; border-radius: 8px; }
.stat { text-align: center; font: 700 17px 'Cairo', sans-serif; color: #5a4a36; margin: 10px auto; max-width: 520px; }

/* video */
.polaroid { max-width: 640px; margin: 0 auto; background: #fff; padding: 12px 12px 54px; border: 2px solid #d8cdb4; box-shadow: 4px 8px 14px rgba(0,0,0,.4); transform: rotate(-1.4deg); position: relative; }
.polaroid video { width: 100%; height: auto; aspect-ratio: 16/9; background: #000; display: block; }
.polaroid .cap { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 700 28px 'Aref Ruqaa', serif; }
.vtxt { text-align: center; margin: 30px auto 0; max-width: 520px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vtxt h2 { font-size: 46px; }
.arrow { font: 700 28px 'Aref Ruqaa', serif; color: var(--red); transform: rotate(-4deg); }

/* issue 6 */
.six { position: relative; margin: 0 auto; max-width: 860px; background: #111; color: #fff; padding: 28px 16px 30px; border: 4px solid var(--ink); box-shadow: 7px 8px 0 var(--ink); transform: rotate(.6deg); overflow: hidden; text-align: center; isolation: isolate; }
.rays6 { position: absolute; left: 50%; top: 28%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; background: repeating-conic-gradient(rgba(255,204,26,.35) 0 8deg, transparent 8deg 16deg); animation: spin 40s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
.six h2 { font-size: clamp(40px, 11vw, 64px); color: var(--yellow); text-shadow: 3px 3px 0 var(--red); }
.sil { width: 150px; height: 190px; margin: 6px auto; }
.six p { font: 700 24px/1.5 'Aref Ruqaa', serif; margin: 8px auto 18px; max-width: 520px; }
.votes { display: grid; gap: 22px; grid-template-columns: 1fr; text-align: right; max-width: 420px; margin: 0 auto; }
@media (min-width: 760px) { .votes { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.vc { position: relative; background: #fffaf0; color: var(--ink); border: 4px solid var(--ink); border-radius: 8px; padding: 14px 14px 12px; font: inherit; cursor: pointer; text-align: right; transform: rotate(var(--rot)); display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.vc h4 { margin: 0; font: 400 30px 'Lalezar', sans-serif; }
.vc.mine { outline: 5px solid var(--yellow); }
.mine-sticker { position: absolute; top: -16px; left: -10px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); font: 400 22px 'Lalezar', sans-serif; padding: 0 14px; transform: rotate(-9deg); box-shadow: 2px 3px 0 var(--ink); }
.bar { height: 22px; border: 3px solid var(--ink); border-radius: 12px 8px 11px 7px; background: #eadcbb; overflow: hidden; margin-top: auto; }
.bar i { display: block; height: 100%; background: var(--c); width: 0; transition: width .8s cubic-bezier(.2,1,.4,1); border-right: 3px solid var(--ink); }
.pct { font: 700 20px 'Cairo', sans-serif; }

/* footer */
.foot { text-align: center; padding: 60px 20px 90px; font: 700 clamp(24px, 6vw, 32px)/1.7 'Aref Ruqaa', serif; }
.foot small { display: block; margin-top: 14px; font: 500 13px/1.6 'Cairo', sans-serif; color: #6b5a44; }
.ios { position: relative; max-width: 360px; margin: 20px auto 0; background: #fff2a8; border: 2px solid var(--ink); padding: 10px 14px; font: 700 20px/1.5 'Aref Ruqaa', serif; transform: rotate(-1.5deg); box-shadow: 3px 4px 0 rgba(0,0,0,.6); }
.ios::before { content: ''; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(240,214,130,.9); transform: rotate(3deg); }

/* reader */
.reader { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bar-top { position: relative; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 10px 12px; background: var(--c); border-bottom: 4px solid var(--ink); color: #fff; box-shadow: 0 4px 0 rgba(27,23,18,.2); }
.bar-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: repeating-linear-gradient(90deg, var(--c) 0 10px, transparent 10px 14px); opacity: .5; }
.bar-top h1 { flex: 1; font-size: clamp(17px, 4.6vw, 24px); line-height: 1.3; text-shadow: 2px 2px 0 var(--ink); text-align: center; }
.counter { min-width: 66px; text-align: center; background: #fffaf0; color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 2px 8px; font: 900 17px 'Cairo', sans-serif; }
.stage { flex: 1; display: flex; align-items: center; padding: 16px 0 6px; min-height: 0; }
.car { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; padding: 8px calc((100% - min(80vw, 440px)) / 2) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; align-items: center; outline: none; }
.car::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(80vw, 440px); scroll-snap-align: center; padding: 0 6px; transition: transform .35s, opacity .35s; transform: scale(.86) rotate(var(--tilt, 2deg)); opacity: .55; }
.slide.cur { transform: none; opacity: 1; }
.slide.d2 { transform: scale(.78) rotate(var(--tilt, 2deg)); opacity: .3; }
.slide img { width: 100%; aspect-ratio: 800/1135; object-fit: cover; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 6px 0 rgba(27,23,18,.85); }
.endcard { width: 100%; min-height: 100%; aspect-ratio: 800/1135; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 6px 0 rgba(27,23,18,.85); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; overflow-y: auto; background-image: radial-gradient(rgba(0,0,0,.12) 1.6px, transparent 2px); background-size: 12px 12px; }
.endcard.long { aspect-ratio: auto; }
.endcard h2 { font-size: 40px; line-height: 1.1; color: var(--red); text-shadow: 2px 2px 0 var(--ink); }
.q { font: 900 18px/1.4 'Cairo', sans-serif; background: #fffaf0; border: 3px solid var(--ink); border-radius: 8px; padding: 6px 10px; width: 100%; }
.ans { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ans button { min-height: 48px; font: 900 18px 'Cairo', sans-serif; border: 3px solid var(--ink); border-radius: 10px; background: #fffaf0; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; padding: 4px 10px; }
.ans button.wrong { background: #f6a09a; }
.ans button.right { background: #7fd58b; }
.fb { font: 700 22px/1.3 'Aref Ruqaa', serif; min-height: 30px; }
.got-sticker { display: flex; align-items: center; gap: 10px; background: #fffaf0; border: 3px solid var(--ink); padding: 6px 10px; border-radius: 12px; font: 400 22px/1.2 'Lalezar', sans-serif; animation: popin .7s cubic-bezier(.2,1.8,.4,1); }
.got-sticker img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; object-position: 50% 18%; }
.nxt { display: flex; gap: 10px; align-items: center; background: #fffaf0; border: 3px solid var(--ink); padding: 6px; border-radius: 8px; width: 100%; font: 900 15px/1.3 'Cairo', sans-serif; text-align: right; }
.nxt img { width: 54px; aspect-ratio: 800/1135; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px 16px; }
.dots { display: flex; }
.dot { width: 30px; height: 44px; padding: 0; border: 0; background: transparent; position: relative; cursor: pointer; }
.dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; border: 3px solid var(--ink); background: #fffaf0; transition: transform .2s, background .2s; }
.dot.on::after { background: var(--c); transform: scale(1.35); }

/* transition */
#trans { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; }
#trans.on { pointer-events: all; }
.tr-burst { position: absolute; width: 200px; height: 200px; margin: -100px 0 0 -100px; background: var(--tc); clip-path: polygon(50% 0%, 56% 14%, 67% 3%, 69% 17%, 82% 9%, 80% 25%, 95% 21%, 88% 35%, 100% 40%, 90% 50%, 100% 60%, 88% 65%, 95% 79%, 80% 75%, 82% 91%, 69% 83%, 67% 97%, 56% 86%, 50% 100%, 44% 86%, 33% 97%, 31% 83%, 18% 91%, 20% 75%, 5% 79%, 12% 65%, 0% 60%, 10% 50%, 0% 40%, 12% 35%, 5% 21%, 20% 25%, 18% 9%, 31% 17%, 33% 3%, 44% 14%); }
.tr-burst::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.28) 3px, transparent 3.5px); background-size: 14px 14px; }
.tr-ink { position: absolute; width: 200px; height: 200px; margin: -100px 0 0 -100px; background: var(--ink); clip-path: inherit; }
.tr-word { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 14px; opacity: 0; }
.tr-word .big { display: block; font: 400 clamp(90px, 30vw, 190px)/1.1 'Lalezar', sans-serif; color: #fff; text-shadow: 6px 6px 0 var(--ink), -4px -4px 0 var(--ink), 4px -4px 0 var(--ink), -4px 4px 0 var(--ink), 0 6px 0 var(--ink), 6px 0 0 var(--ink), -6px 0 0 var(--ink), 0 -4px 0 var(--ink); transform: rotate(-6deg); }
.tr-word .cap { display: inline-block; margin-top: 10px; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 6px 18px; font: 900 clamp(18px, 5vw, 26px) 'Cairo', sans-serif; transform: rotate(2.5deg); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 9500; background: rgba(27,23,18,.78); display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal[hidden] { display: none; }
.mbox { background: #fffaf0; border: 4px solid var(--ink); box-shadow: 6px 7px 0 var(--ink); padding: 14px; max-width: 520px; width: 100%; max-height: 92vh; overflow: auto; text-align: center; border-radius: 6px; }
.mbox img { margin: 0 auto 10px; max-height: 60vh; width: auto; border: 3px solid var(--ink); }
.mbox p { font: 700 20px/1.5 'Aref Ruqaa', serif; margin-bottom: 10px; }
#print-area { display: none; }
@media print { body > *:not(#print-area) { display: none !important; } #print-area { display: block; } #print-area img { width: 100%; max-height: 100vh; object-fit: contain; } @page { size: A4; margin: 10mm; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .card { opacity: 1; transform: rotate(var(--rot)); } #trans { display: none; } }
