@font-face { font-family: 'SynAref'; src: url('fonts/aref.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'SynCairo'; src: url('fonts/cairo.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fdfcfa; color: #251f21; font: 15px/26px 'SynCairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; -webkit-text-size-adjust: 100%; }
.page { max-width: 640px; margin: 0 auto; padding: 24px 20px 48px; }
.hero { background: radial-gradient(120% 90% at 50% 0%, #f8f0df 0%, #f0e3c8 100%); border: 1px solid #e3d5ba; border-radius: 24px; padding: 28px 20px 22px; text-align: center; animation: pop .6s ease; }
.brand { display: flex; align-items: center; justify-content: center; gap: 14px; direction: ltr; }
.name { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 40px; letter-spacing: .02em; color: #5a3a22; }
.tag { font-family: 'SynCairo', system-ui, sans-serif; margin: 8px 0 18px; color: #7a5a3f; font-size: 16px; line-height: 26px; font-weight: 500; }
.overall { background: rgba(255,255,255,.55); border-radius: 16px; padding: 12px 14px; }
.overall-title { font-family: 'SynAref', serif; font-size: 18px; color: #5a3a22; margin-bottom: 4px; }
.note { margin: 14px 0 0; color: #585254; font-size: 13px; line-height: 22px; }
.chapter { margin-top: 28px; transition: opacity .6s ease, transform .6s ease; }
.chapter.hidden { opacity: 0; transform: translateY(16px); }
.ch-num { font-family: 'SynCairo', system-ui, sans-serif; font-size: 13px; color: #a8672f; }
.ch-title { margin: 2px 0 0; font-family: 'SynAref', serif; font-weight: 700; font-size: 30px; line-height: 44px; color: #3d2a1a; }
.bar { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.bar-track { flex: 1; height: 10px; background: #eadfc8; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #a8672f, #5a3a22); border-radius: 999px; transition: width .5s ease; }
.bar-label { flex: none; min-width: 52px; font-size: 12px; color: #7a5a3f; text-align: end; }
.list { display: flex; flex-direction: column; gap: 10px; }
.card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #faf5ea; border: 1px solid #e7dcc4; border-radius: 14px; min-height: 52px; transition: transform .15s ease, box-shadow .15s ease, background .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(90,58,34,.12); }
.card:active { transform: scale(.985); }
.card.done { background: #f1ead6; }
.card.done .card-title { color: #7a5a3f; }
.card-text { flex: 1; min-width: 0; }
.card-title { font-weight: 600; color: #3d2a1a; line-height: 22px; }
.card-detail { color: #585254; font-size: 13px; margin-top: 2px; }
.card.soon .card-title { color: #6b5540; }
.check { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #a8672f; background: #fff; color: #fff; font: 16px/1 sans-serif; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; transition: background .2s ease; }
.check::after { content: ''; position: absolute; inset: -9px; }
.check[aria-pressed="true"] { background: #5a3a22; border-color: #5a3a22; animation: tick .25s ease; }
.check.off { border-color: #d9ccb0; background: transparent; cursor: default; }
.pill { flex: none; font-size: 12px; color: #8a6b4d; background: #efe3cb; border-radius: 999px; padding: 4px 12px; }
.btn { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 8px; background: #fff; color: #251f21; text-decoration: none; font-weight: 600; border: 1px solid #e7dcc4; }
.btn:hover { background: #f4efec; }
.btn:focus-visible, .check:focus-visible { outline: 2px solid #5a3a22; outline-offset: 2px; }
.sub { font-family: 'SynCairo', system-ui, sans-serif; margin: 16px 0 8px; font-weight: 700; color: #5a3a22; font-size: 15px; }
.closing { margin: 32px 0 0; color: #585254; font-size: 13px; line-height: 22px; }
.drop { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); } to { transform: none; } }
@keyframes tick { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* splash */
#splash { position: fixed; inset: 0; z-index: 99; background: #f3ead9; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease; cursor: pointer; }
#splash.out { opacity: 0; pointer-events: none; }
.sp-inner { text-align: center; direction: ltr; }
.sp-mark { display: block; margin: 0 auto 10px; overflow: visible; }
.sp-mark { animation: sp-down .6s ease both; }
.sp-drops circle { animation: sp-drop 1s ease-in .4s both; }
.sp-drops circle:nth-child(2) { animation-delay: .5s; } .sp-drops circle:nth-child(3) { animation-delay: .6s; } .sp-drops circle:nth-child(4) { animation-delay: .7s; } .sp-drops circle:nth-child(5) { animation-delay: .8s; } .sp-drops circle:nth-child(6) { animation-delay: .9s; }
.sp-name { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 44px; letter-spacing: .02em; color: #5a3a22; animation: sp-fade .6s ease .6s both; }
@keyframes sp-down { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes sp-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-drop { from { opacity: 0; transform: translateY(-26px); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } #splash { display: none; } }
