:root {
  --gold: #f2c14e; --pink: #ff5fa2; --ink: #0b0d14; --glass: rgba(14, 16, 26, 0.62); --line: rgba(255, 255, 255, 0.12);
  --st: env(safe-area-inset-top, 0px); --sb: max(10px, env(safe-area-inset-bottom, 0px)); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; margin: 0; height: 100%; overflow: hidden; background: #000; color: #fff; font-family: Rubik, system-ui, -apple-system, sans-serif; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
#c { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
.hide { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; }

/* ---------- açılış ---------- */
#load { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; }
.load-bg { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 45%, rgba(11,13,20,0) 0%, rgba(11,13,20,0.45) 100%); }
.load-in { position: relative; text-align: center; padding: 26px 24px 20px; width: min(400px, 92vw); background: rgba(11, 13, 20, 0.5); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.logo { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: clamp(52px, 15vw, 80px); letter-spacing: 0.08em; padding-left: 0.08em; padding-right: 0.02em; line-height: 1.15; background: linear-gradient(180deg, #fff6d8, #f2c14e 60%, #c98a1a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 10px 40px rgba(242, 193, 78, 0.25); }
.tag { margin-top: -4px; font-size: 15px; letter-spacing: 0.35em; text-transform: uppercase; opacity: 0.85; }
.bar { margin: 20px auto 10px; height: 6px; width: 76%; border-radius: 6px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--pink)); border-radius: 6px; transition: width 0.25s; }
.load-msg { font-size: 13px; opacity: 0.75; min-height: 18px; }
.pick { margin-top: 22px; }
.pick-t { font-weight: 700; margin-bottom: 10px; }
.pick-row { display: flex; gap: 12px; justify-content: center; }
.pick-b { flex: 1; max-width: 150px; padding: 14px 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); border: 2px solid transparent; font-weight: 700; font-size: 15px; display: grid; gap: 4px; }
.pick-b svg { width: 46px; height: 46px; margin: 0 auto 2px; color: #f4ecd8; }
.pick-b.on { border-color: var(--gold); background: rgba(242, 193, 78, 0.18); }
.go { margin-top: 22px; padding: 16px 44px; border-radius: 30px; font-size: 18px; font-weight: 800; background: linear-gradient(135deg, #ffe08a, #f2c14e 45%, #ff7aa8); color: #2a1300; box-shadow: 0 12px 40px rgba(255, 140, 120, 0.35); }
.load-note { margin-top: 26px; font-size: 11px; opacity: 0.5; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#top { position: absolute; top: calc(var(--st) + 10px); left: calc(var(--sl) + 10px); right: calc(var(--sr) + 10px); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
#top > * { pointer-events: auto; }
.loc { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); padding: 8px 14px; border-radius: 16px; display: grid; line-height: 1.15; }
.loc b { font-size: 15px; }
.loc span { font-size: 11.5px; opacity: 0.75; }
.loc-w { display: grid; gap: 6px; justify-items: start; }
.loc-r { display: flex; gap: 8px; align-items: center; }
#backBtn .ic { width: 22px; height: 22px; }
.load-back { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 12px); left: calc(env(safe-area-inset-left, 0px) + 12px); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stay { display: inline-flex; align-items: center; gap: 6px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); color: #fff; font: inherit; font-size: 12px; font-weight: 700; padding: 6px 11px 6px 9px; border-radius: 99px; cursor: pointer; }
.stay .ic { width: 15px; height: 15px; }
.stay.on { color: var(--gold); border-color: rgba(255, 214, 102, 0.5); }
.stay-how { display: grid; gap: 9px; margin: 0 0 14px; font-size: 13.5px; line-height: 1.4; }
.stay-how div { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.stay-how .ic { width: 20px; height: 20px; color: var(--gold); }
.inbox { display: grid; gap: 8px; margin-bottom: 14px; max-height: 46vh; overflow: auto; }
.inbox div { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; line-height: 1.35; }
.inbox b { color: var(--gold); }
.inbox small { opacity: 0.55; margin-left: 6px; }
.card-s.away { color: #9fd3ff; }
.top-r { display: flex; gap: 8px; }
.chip, .ico { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); height: 40px; border-radius: 20px; padding: 0 14px; font-size: 15px; }
.chip b { color: #9fe7ff; }
.ico { width: 40px; padding: 0; }
#guest { position: absolute; top: calc(var(--st) + 62px); left: 50%; transform: translateX(-50%); background: rgba(255, 95, 162, 0.9); padding: 7px 14px; border-radius: 14px; font-size: 12.5px; white-space: nowrap; font-weight: 600; }
#guest a { color: #fff; font-weight: 800; }
#newsBar { position: absolute; top: calc(var(--st) + 62px); left: 50%; transform: translateX(-50%); width: min(560px, 92vw); display: grid; gap: 6px; pointer-events: none; }
.news { background: linear-gradient(135deg, rgba(40, 18, 50, 0.92), rgba(80, 20, 60, 0.9)); border: 1px solid rgba(242, 193, 78, 0.5); padding: 10px 14px; border-radius: 16px; font-size: 13.5px; text-align: center; animation: nin 0.5s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.news b { color: var(--gold); }
@keyframes nin { from { transform: translateY(-20px) scale(0.9); opacity: 0; } }
#chatlog { position: absolute; left: calc(var(--sl) + 10px); bottom: calc(var(--sb) + 150px); width: min(340px, 64vw); max-height: 30vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; pointer-events: none; mask-image: linear-gradient(to top, #000 70%, transparent); -webkit-mask-image: linear-gradient(to top, #000 70%, transparent); }
.cl { background: rgba(10, 12, 20, 0.5); padding: 4px 9px; border-radius: 10px; font-size: 13px; line-height: 1.3; width: fit-content; max-width: 100%; word-wrap: break-word; text-shadow: 0 1px 2px #000; }
.cl b { color: var(--gold); font-weight: 700; }
.cl.sys { color: #ffd6e7; font-style: italic; }
#joy { position: absolute; left: calc(var(--sl) + 26px); bottom: calc(var(--sb) + 26px); width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.16)); border: 2px solid rgba(255, 255, 255, 0.22); pointer-events: none; opacity: 0.65; transition: opacity 0.2s; }
#joy.on { opacity: 1; }
#joy i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }
#actions { position: absolute; right: calc(var(--sr) + 12px); bottom: calc(var(--sb) + 18px); display: grid; grid-template-columns: repeat(2, 54px); gap: 10px; }
#actions button { width: 54px; height: 54px; border-radius: 50%; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); font-size: 24px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
#actions button:active { transform: scale(0.92); }
#actions button.on { background: rgba(255, 95, 162, 0.75); }
#enter { position: absolute; left: 50%; bottom: calc(var(--sb) + 150px); transform: translateX(-50%); padding: 13px 22px; border-radius: 24px; font-weight: 800; font-size: 15px; background: linear-gradient(135deg, #ffe08a, #f2c14e); color: #2a1300; box-shadow: 0 10px 30px rgba(242, 193, 78, 0.4); animation: pulse 1.6s infinite; white-space: nowrap; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.05); } }
@media (max-width: 600px) { #enter { bottom: calc(var(--sb) + 214px); font-size: 14px; padding: 12px 18px; } }
#emotes { position: absolute; right: calc(var(--sr) + 12px); bottom: calc(var(--sb) + 220px); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: grid; grid-template-columns: repeat(4, 50px); gap: 6px; }
#emotes button { height: 50px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-size: 26px; }
#chatbar { position: absolute; left: calc(var(--sl) + 10px); right: calc(var(--sr) + 10px); bottom: calc(var(--sb) + 10px); display: flex; gap: 8px; z-index: 5; }
#chatbar input { flex: 1; height: 48px; border-radius: 24px; border: 1px solid var(--line); background: rgba(14, 16, 26, 0.9); color: #fff; padding: 0 18px; font-size: 16px; font-family: inherit; outline: none; -webkit-user-select: text; user-select: text; }
#chatbar button { height: 48px; padding: 0 20px; border-radius: 24px; font-weight: 800; background: var(--gold); color: #2a1300; }

/* ---------- alt panel ---------- */
#sheetWrap { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.35); display: flex; align-items: flex-end; justify-content: center; }
#sheet { width: min(560px, 100vw); max-height: 82vh; max-height: 82dvh; overflow-y: auto; background: linear-gradient(180deg, rgba(26, 22, 38, 0.97), rgba(12, 12, 20, 0.98)); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 18px 18px calc(var(--sb) + 16px); animation: sin 0.28s cubic-bezier(.2, .9, .3, 1); -webkit-user-select: none; }
@keyframes sin { from { transform: translateY(60px); opacity: 0; } }
#sheetWrap.look { background: transparent; }
#sheetWrap.look #sheet { max-height: 52vh; max-height: 52dvh; }
@media (min-width: 821px) { #sheetWrap.look { justify-content: flex-end; align-items: center; padding-right: 24px; } #sheetWrap.look #sheet { border-radius: 26px; border-bottom: 1px solid var(--line); max-height: 86vh; width: 440px; } }
@media (orientation: landscape) and (max-height: 520px) { #sheet { max-height: 92dvh; width: min(620px, 80vw); } #chatlog { bottom: calc(var(--sb) + 140px); max-height: 22vh; } }
.sh-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sh-h h3 { margin: 0; font-size: 20px; flex: 1; }
.sh-x { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 18px; }
.sh-sub { font-size: 13px; opacity: 0.7; margin: -8px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.item { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 18px; padding: 12px 8px; text-align: center; display: grid; gap: 3px; font-size: 13px; }
.item .e { font-size: 34px; }
.item .n { font-weight: 700; }
.item .p { color: #9fe7ff; font-weight: 700; }
.item .d { font-size: 11px; opacity: 0.6; min-height: 26px; }
.item.own { border-color: rgba(120, 255, 170, 0.5); }
.item.own .p { color: #7dffad; }
.btn { padding: 12px 16px; border-radius: 16px; font-weight: 800; font-size: 14.5px; background: rgba(255, 255, 255, 0.1); }
.btn.gold { background: linear-gradient(135deg, #ffe08a, #f2c14e); color: #2a1300; }
.btn.pink { background: linear-gradient(135deg, #ff8fc0, #ff4f8f); }
.btn.red { background: rgba(255, 70, 90, 0.2); color: #ff9aa8; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btns .wide { grid-column: 1 / -1; }
.card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.av { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, #3b1d5e, #c2416b); flex: none; }
.card-n { font-size: 20px; font-weight: 800; }
.card-s { font-size: 13px; opacity: 0.75; margin-top: 2px; }
.relbox { background: rgba(255, 95, 162, 0.1); border: 1px solid rgba(255, 95, 162, 0.3); border-radius: 18px; padding: 12px 14px; }
.rel-l { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; }
.meter { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; margin: 8px 0 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #ff8fc0, #ff4f8f); border-radius: 8px; }
.rel-h { font-size: 12px; opacity: 0.7; }
.steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: 18px; }
.steps span { opacity: 0.3; } .steps span.on { opacity: 1; }
.sec { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; opacity: 0.6; margin: 18px 0 8px; text-transform: uppercase; }
.sw { display: flex; gap: 8px; flex-wrap: wrap; }
.sw button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid transparent; }
.sw button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.sw button.lock { opacity: 0.35; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-weight: 700; border: 2px solid transparent; }
.seg button.on { border-color: var(--gold); background: rgba(242, 193, 78, 0.15); }
.lb { display: grid; gap: 6px; }
.lb-r { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; font-size: 14px; }
.lb-r b { color: var(--gold); font-weight: 600; text-align: right; }
.lb-r.on { background: rgba(242, 193, 78, 0.14); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.35); }
.map { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map button { padding: 16px 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); text-align: left; display: grid; gap: 2px; }
.map button b { font-size: 15px; } .map button span { font-size: 12px; opacity: 0.65; }
.ask { text-align: center; padding: 10px 4px; }
.ask .big { font-size: 64px; animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.12); } }
.ask p { font-size: 17px; font-weight: 700; margin: 10px 0 4px; }
.ppl { display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.ppl button { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); font-weight: 700; }
.note { font-size: 11.5px; opacity: 0.55; margin-top: 12px; line-height: 1.45; }

#toasts { position: fixed; left: 50%; top: calc(var(--st) + 110px); transform: translateX(-50%); z-index: 40; display: grid; gap: 8px; width: min(420px, 90vw); pointer-events: none; }
.toast { background: rgba(14, 16, 26, 0.92); border: 1px solid var(--line); padding: 11px 16px; border-radius: 16px; font-size: 14px; text-align: center; animation: nin 0.35s; }
#bigfx { position: fixed; inset: 0; z-index: 35; pointer-events: none; display: grid; place-items: center; }
.bigt { font-family: 'Playfair Display', serif; font-size: clamp(30px, 8vw, 56px); font-weight: 800; text-align: center; padding: 0 20px; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6); animation: bt 3.6s forwards; color: #fff6d8; }
@keyframes bt { 0% { transform: scale(0.6); opacity: 0; } 12% { transform: scale(1.06); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* ---------- karakter atölyesi ---------- */
body.atl-open #hud, body.atl-open #sheetWrap { display: none !important; }
#atl { position: fixed; inset: 0; z-index: 40; pointer-events: none; --pw: 440px; }
#atl > * { pointer-events: auto; }
.atl-stage { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.atl-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(var(--st) + 10px) calc(var(--sr) + 12px) 10px calc(var(--sl) + 12px); background: linear-gradient(180deg, rgba(8, 8, 14, 0.75), rgba(8, 8, 14, 0)); }
.atl-x { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 16px; backdrop-filter: blur(8px); }
.atl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atl-t b { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; letter-spacing: 0.02em; background: linear-gradient(180deg, #fff6d8, #f2c14e); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-t small { font-size: 12px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .atl-t b { font-size: 18px; } .atl-cost:not(.hide) ~ .atl-save { padding: 10px 12px; font-size: 13px; } .atl-top:has(.atl-cost:not(.hide)) .atl-t small { display: none; } }
.atl-cost { padding: 8px 12px; border-radius: 14px; background: rgba(255, 95, 162, 0.18); border: 1px solid rgba(255, 95, 162, 0.45); font-weight: 800; font-size: 13px; white-space: nowrap; }
.atl-save { padding: 11px 18px; border-radius: 16px; font-weight: 900; font-size: 14.5px; background: linear-gradient(135deg, #ffe08a, #f2c14e); color: #2a1300; box-shadow: 0 8px 24px rgba(242, 193, 78, 0.35); white-space: nowrap; }
.atl-views { position: absolute; left: calc(var(--sl) + 10px); top: calc(var(--st) + 72px); display: flex; flex-direction: column; gap: 6px; padding: 5px; border-radius: 18px; background: rgba(10, 10, 18, 0.55); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.atl-views button { padding: 7px 12px; border-radius: 13px; font-weight: 700; font-size: 12.5px; background: transparent; opacity: 0.8; }
.atl-views button.on { background: rgba(242, 193, 78, 0.22); opacity: 1; color: #ffe08a; }
.atl-views .undo { font-size: 16px; padding: 4px 10px; }
.atl-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 50dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(24, 20, 34, 0.94), rgba(10, 10, 16, 0.97)); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; backdrop-filter: blur(14px); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.35); animation: sin 0.3s cubic-bezier(.2, .9, .3, 1); }
.atl-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px 10px 6px; scrollbar-width: none; flex: none; }
.atl-tabs::-webkit-scrollbar { display: none; }
.atl-tabs button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 7px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 10.5px; font-weight: 700; opacity: 0.75; }
.atl-tabs button i { font-style: normal; font-size: 20px; line-height: 1.1; }
.atl-tabs button.on { background: rgba(242, 193, 78, 0.18); box-shadow: inset 0 0 0 1.5px rgba(242, 193, 78, 0.7); opacity: 1; }
.atl-body { flex: 1; overflow-y: auto; padding: 4px 14px calc(var(--sb) + 14px); overscroll-behavior: contain; }
.atl-sec { display: flex; align-items: baseline; gap: 8px; margin: 14px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ffe08a; }
.atl-sec small { font-size: 10.5px; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.atl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.atl-grid.sm { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.atl-grid.pz { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.atl-grid.pz .atl-it img, .atl-grid.pz .atl-it.none i { aspect-ratio: 240 / 310; object-position: top; }
.atl-grid.pz .atl-it span { font-size: 12px; }
.atl-it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 7px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 2px solid transparent; min-height: 96px; }
.atl-it img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; background: radial-gradient(circle at 50% 35%, #3a3346, #17151d); }
.atl-grid.eye .atl-it img { border-radius: 50%; transform: scale(0.92); }
.atl-it span { font-size: 10.5px; font-weight: 600; line-height: 1.15; text-align: center; opacity: 0.85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.atl-it em { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 9px; background: rgba(10, 8, 16, 0.82); color: #ffd6ea; border: 1px solid rgba(255, 95, 162, 0.5); }
.atl-it.on { border-color: var(--gold); background: rgba(242, 193, 78, 0.12); box-shadow: 0 0 18px rgba(242, 193, 78, 0.18); }
.atl-it.none i { font-style: normal; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 11px; font-size: 26px; opacity: 0.5; background: rgba(255, 255, 255, 0.04); }
.atl-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.atl-sw button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.2); }
.atl-sw button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.atl-sw button.lock { opacity: 0.35; }
.atl-sw button.orig { background: rgba(255, 255, 255, 0.08); font-size: 15px; }
.atl-seg { display: flex; gap: 8px; }
.atl-seg button { flex: 1; padding: 11px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); font-weight: 700; font-size: 13.5px; border: 2px solid transparent; }
.atl-seg button.on { border-color: var(--gold); background: rgba(242, 193, 78, 0.15); }
.atl-seg.dice { margin-top: 10px; }
.atl-seg.dice button { background: linear-gradient(135deg, rgba(255, 95, 162, 0.22), rgba(120, 90, 255, 0.22)); }
.atl-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.atl-types button { padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); font-weight: 700; font-size: 13px; }
.atl-types button:active { background: rgba(242, 193, 78, 0.2); }
.atl-sl { display: grid; grid-template-columns: 112px 1fr 34px; align-items: center; gap: 10px; padding: 7px 2px; font-size: 13px; }
.atl-sl span { opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-sl b { font-size: 11px; text-align: right; opacity: 0.55; font-variant-numeric: tabular-nums; }
.atl-sl input { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; touch-action: pan-y; }
.atl-sl input::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, rgba(120, 140, 255, 0.45), rgba(255, 255, 255, 0.22) 50%, rgba(255, 95, 162, 0.5)); }
.atl-sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8.5px; border-radius: 50%; background: #fff6d8; border: 3px solid var(--gold); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.atl-sl input::-moz-range-track { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); }
.atl-sl input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff6d8; border: 3px solid var(--gold); }
#atl.wide .atl-panel { left: auto; top: calc(var(--st) + 74px); right: calc(var(--sr) + 16px); bottom: 16px; width: var(--pw); height: auto; border-radius: 26px; border: 1px solid var(--line); }
#atl.wide .atl-tabs { flex-wrap: wrap; overflow: visible; }
#atl.wide .atl-views { top: auto; flex-direction: row; left: calc((100vw - var(--pw) - 32px) / 2); transform: translateX(-50%); bottom: 22px; }
#atl.wide .atl-top { padding-right: calc(var(--sr) + 16px); }
@media (orientation: landscape) and (max-height: 520px) {
  #atl .atl-panel { left: auto; top: 0; right: 0; bottom: 0; width: min(380px, 52vw); height: auto; border-radius: 22px 0 0 22px; }
  #atl .atl-views { top: auto; flex-direction: row; left: calc((100vw - min(380px, 52vw)) / 2); transform: translateX(-50%); bottom: 10px; }
  #atl .atl-top { right: min(380px, 52vw); }
}

.atl-cred { margin: 18px 2px 6px; font-size: 11px; color: rgba(255,255,255,.55); }
.atl-cred summary { cursor: pointer; font-weight: 600; color: rgba(255,255,255,.7); }
.atl-cred p { margin: 4px 0; line-height: 1.35; word-break: break-word; }

/* ---------- ikonlar ---------- */
.ic { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -0.22em; }
.dm { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -0.18em; }
.pr { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #9fe7ff; }
.pr b { font-weight: 800; }
.pr.free { color: #7dffad; }
#actions button { display: grid; place-items: center; position: relative; color: #f4f1ea; }
#actions button .ic { width: 25px; height: 25px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff4f8f; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip b { color: #e9f9ff; font-weight: 800; }
.ico { display: grid; place-items: center; color: #f4f1ea; }
.ico .ic { width: 21px; height: 21px; }
#emotes { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 250px; }
#emotes button { height: 44px; font-size: 14px; font-weight: 700; padding: 0 8px; display: flex; align-items: center; gap: 6px; }
#emotes button img { width: 28px; height: 28px; flex: none; }
#emotes button span { flex: 1; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#enter { display: inline-flex; align-items: center; gap: 8px; }
#enter .ic { width: 20px; height: 20px; }

/* ---------- sohbet paneli ---------- */
#chatPanel { position: fixed; left: calc(var(--sl) + 10px); bottom: calc(var(--sb) + 8px); width: min(400px, calc(100vw - 20px)); height: min(46vh, 380px); z-index: 20; display: flex; flex-direction: column; background: rgba(12, 13, 22, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); animation: sin 0.22s cubic-bezier(.2, .9, .3, 1); }
body.chat-open #actions, body.chat-open #joy, body.chat-open #chatlog, body.chat-open #enter { display: none; }
.cp-tabs { display: flex; gap: 6px; padding: 8px 8px 0; align-items: center; }
.cp-tabs button { padding: 9px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.cp-tabs button.on { background: var(--gold); color: #2a1300; }
.cp-tabs i { font-style: normal; background: #ff4f8f; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11.5px; line-height: 18px; }
.cp-tabs .cp-x { margin-left: auto; width: 36px; height: 36px; padding: 0; justify-content: center; }
.cp-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; -webkit-user-select: text; user-select: text; }
.cm { font-size: 14.5px; line-height: 1.35; word-break: break-word; }
.cm b { color: var(--gold); font-weight: 700; margin-right: 4px; cursor: pointer; }
.cm.sys { color: #ffd6e7; font-size: 13px; opacity: 0.9; }
.cp-empty { margin: auto; text-align: center; opacity: 0.55; font-size: 13.5px; max-width: 260px; line-height: 1.45; }
.cp-in { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--line); }
.cp-in input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); color: #fff; padding: 0 16px; font-size: 16px; font-family: inherit; outline: none; -webkit-user-select: text; user-select: text; }
.cp-in input:focus { border-color: rgba(242, 193, 78, 0.6); }
.cp-in button { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #2a1300; display: grid; place-items: center; flex: none; }
.cp-in button:disabled { opacity: 0.4; }
.cp-in button .ic { width: 20px; height: 20px; }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); text-align: left; }
.cp-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3b1d5e, #c2416b); font-weight: 800; flex: none; }
.cp-rn { display: grid; flex: 1; min-width: 0; }
.cp-rn small { opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-u { font-style: normal; background: #ff4f8f; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 800; line-height: 20px; }
.cp-foot { padding: 8px; border-top: 1px solid var(--line); display: grid; }
.cp-th { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cp-th span { font-size: 12px; opacity: 0.55; margin-left: auto; } .cp-th span.on { color: #7dffad; opacity: 1; }
.cp-b { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; }
.cb { max-width: 82%; align-self: flex-start; background: rgba(255, 255, 255, 0.1); padding: 8px 12px; border-radius: 16px 16px 16px 4px; font-size: 14.5px; line-height: 1.35; word-break: break-word; }
.cb.me { align-self: flex-end; background: #f2c14e; color: #2a1300; border-radius: 16px 16px 4px 16px; }
.cb small { display: block; font-size: 10.5px; opacity: 0.55; text-align: right; margin-top: 2px; }
@media (min-width: 821px) { #chatPanel { height: min(52vh, 460px); } }
#dmPop { position: fixed; top: calc(var(--st) + 64px); left: 50%; transform: translateX(-50%); z-index: 42; max-width: min(380px, 90vw); background: rgba(12, 13, 22, 0.94); border: 1px solid rgba(242, 193, 78, 0.5); border-radius: 18px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; animation: nin 0.35s; cursor: pointer; }
#dmPop b { color: var(--gold); } #dmPop span { font-size: 13.5px; opacity: 0.9; display: block; }

/* ---------- ürün kartı ---------- */
.prod { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.pimg { width: 124px; height: 124px; flex: none; border-radius: 22px; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)); border: 1px solid var(--line); display: grid; place-items: center; }
.pimg img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4)); }
.prod-i { flex: 1; min-width: 0; }
.prod-s { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; font-weight: 700; }
.prod-i p { margin: 6px 0 10px; font-size: 14px; line-height: 1.4; opacity: 0.85; }
.prod-p { font-size: 20px; }
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.btn.arm { background: linear-gradient(135deg, #ff9fc6, #ff4f8f); color: #fff; animation: pulse2 0.9s infinite; }
@keyframes pulse2 { 50% { filter: brightness(1.15); } }
.btn:disabled { opacity: 0.55; }
.ppl button { align-items: center; }
.pn { display: inline-flex; align-items: center; gap: 8px; } .pd { opacity: 0.6; font-size: 13px; }
.sh-x { display: grid; place-items: center; }
.sh-x .ic { width: 18px; height: 18px; }

/* ---------- tezgâhtar diyaloğu ---------- */
#talk { position: fixed; left: 50%; bottom: calc(var(--sb) + 12px); transform: translateX(-50%); width: min(520px, calc(100vw - 20px)); z-index: 25; background: linear-gradient(180deg, rgba(28, 24, 40, 0.97), rgba(12, 12, 20, 0.98)); border: 1px solid rgba(242, 193, 78, 0.35); border-radius: 24px; padding: 14px 16px 14px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); animation: sin 0.25s cubic-bezier(.2, .9, .3, 1); }
.tk-h { display: flex; align-items: center; gap: 12px; }
.tk-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #f2c14e, #c2416b); display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #2a1300; flex: none; }
.tk-n { display: grid; flex: 1; line-height: 1.2; } .tk-n b { font-size: 16.5px; } .tk-n span { font-size: 12px; opacity: 0.65; }
.tk-x { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; }
.tk-t { margin: 12px 2px 12px; font-size: 16px; line-height: 1.45; min-height: 46px; }
.tk-o { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-b { padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.09); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-align: left; display: inline-flex; gap: 8px; align-items: center; }
.tk-b.hl { background: linear-gradient(135deg, #ffe08a, #f2c14e); color: #2a1300; font-weight: 800; border: 0; }
.tk-b.dim { opacity: 0.7; }
@media (max-width: 600px) { #talk { bottom: calc(var(--sb) + 6px); padding: 12px 14px; } .tk-t { font-size: 15px; } }
body:has(#talk:not(.hide)) #actions, body:has(#talk:not(.hide)) #joy, body:has(#talk:not(.hide)) #chatlog, body:has(#talk:not(.hide)) #enter { display: none; }
.item .gi { width: 70px; height: 70px; margin: 0 auto 2px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.item.arm { border-color: #ff6fa5; background: rgba(255, 79, 143, 0.18); }
.av .ic { width: 30px; height: 30px; }
.steps { font-size: 12px; font-weight: 700; } .steps span { padding: 3px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.atl-x { display: grid; place-items: center; } .atl-x .ic { width: 18px; height: 18px; }
.atl-tabs button i .ic { width: 23px; height: 23px; }
.atl-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.atl-it em .dm, .atl-cost .dm { width: 11px; height: 11px; vertical-align: -1px; }
.atl-cost { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- cami: dua / namaz / tesbih / abdest / ezan ---------- */
@font-face { font-family: 'Amiri'; font-weight: 400; font-display: swap; src: url('./fonts/amiri-400.woff2') format('woff2'); }
@font-face { font-family: 'Amiri'; font-weight: 700; font-display: swap; src: url('./fonts/amiri-700.woff2') format('woff2'); }
.ibd { position: fixed; left: 50%; bottom: calc(var(--sb) + 8px); transform: translateX(-50%); z-index: 32; width: min(560px, 94vw); max-height: min(34vh, 330px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 30, 22, 0.88), rgba(8, 18, 16, 0.92)); border: 1px solid rgba(217, 179, 90, 0.45); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); color: #f4ead2; backdrop-filter: blur(8px); }
.ibd.hide, .ezan.hide { display: none; }
.ibd-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; color: #e8c766; font-size: 15px; }
.ibd-x { background: rgba(255, 255, 255, 0.08); border: 0; color: #f4ead2; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.ibd-s { overflow-y: auto; padding: 0 18px 14px; scrollbar-width: none; mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 26px), transparent 100%); }
.ibd-s::-webkit-scrollbar { display: none; }
.ibd-pad { height: 18vh; max-height: 160px; }
.ibd section { padding: 14px 0; border-bottom: 1px solid rgba(217, 179, 90, 0.18); text-align: center; }
.ibd h4 { margin: 0 0 8px; color: #e8c766; font-size: 15px; letter-spacing: 0.3px; }
.ibd h4 small { color: rgba(244, 234, 210, 0.55); font-weight: 500; font-size: 12px; margin-left: 4px; }
.ibd .ar { font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 25px; line-height: 1.9; margin: 0 0 6px; color: #fff6dc; direction: rtl; }
.ibd .ok { margin: 0 0 6px; font-style: italic; color: #f1dca2; line-height: 1.5; font-size: 15px; }
.ibd .an { margin: 0; color: rgba(244, 234, 210, 0.82); line-height: 1.5; font-size: 14px; }
.ibd section.ic .an { font-size: 16px; color: #fff6dc; padding: 18px 0; }
.ibd section.amin .ar { font-size: 40px; }
.ibd-f { display: flex; gap: 8px; padding: 0 14px 14px; justify-content: center; }
.ibd.slim { max-height: none; }
.nm { text-align: center; padding: 2px 0 6px; }
.nm-r { color: #e8c766; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.nm-c { font-size: 16px; line-height: 1.45; min-height: 46px; }
.nm-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-top: 10px; }
.nm-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9b35a, #f2d48a); transition: width 0.25s linear; }
.tb { text-align: center; }
.tb-n { font-size: 44px; font-weight: 800; color: #e8c766; line-height: 1.1; margin: 4px 0 2px; }
.tb-n small { font-size: 18px; color: rgba(244, 234, 210, 0.6); font-weight: 600; }
.tb-d { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.tb-d i { width: 28px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.tb-d i.on { background: #d9b35a; } .tb-d i.cur { background: #f2d48a; box-shadow: 0 0 8px #f2d48a; }
.ab { text-align: center; padding: 4px 0 6px; }
.ab-k { color: rgba(244, 234, 210, 0.6); font-size: 12px; margin-bottom: 2px; }
.ezan { position: fixed; left: 50%; top: calc(var(--st) + 64px); transform: translateX(-50%); z-index: 33; width: min(520px, 92vw); text-align: center; pointer-events: auto;
  background: linear-gradient(180deg, rgba(10, 30, 22, 0.86), rgba(8, 18, 16, 0.9)); border: 1px solid rgba(217, 179, 90, 0.45); border-radius: 16px; color: #f4ead2; padding: 8px 14px 12px; backdrop-filter: blur(8px); }
.ez-h { display: flex; align-items: center; justify-content: center; gap: 10px; color: #e8c766; font-size: 13px; font-weight: 700; position: relative; }
.ez-h button { position: absolute; right: -4px; top: -2px; background: none; border: 0; color: #f4ead2; font-size: 20px; cursor: pointer; }
.ez-l { overflow: hidden; height: 128px; position: relative; }
.ez-i { animation: ezUp 4.2s ease-in-out forwards; padding-top: 6px; }
.ez-i .ar { font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 30px; margin: 0; color: #fff6dc; direction: rtl; line-height: 1.7; }
.ez-i .ok { margin: 0; font-style: italic; color: #f1dca2; }
.ez-i .an { margin: 2px 0 0; font-size: 13px; color: rgba(244, 234, 210, 0.75); }
@keyframes ezUp { 0% { transform: translateY(40px); opacity: 0; } 15% { transform: translateY(0); opacity: 1; } 85% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.ez-s { font-size: 12px; color: rgba(244, 234, 210, 0.7); margin-top: 2px; }
