/* ---------- nav: "Ne oynasam?" ---------- */
.nav__quiz {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  padding: 6px 14px 6px 6px; border: 1px solid currentColor; border-radius: 99px;
  transition: background-color .3s, border-color .3s, color .3s;
}
.nav__quiz::before {
  content: '?'; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #0c0b0a; font-size: 12px; font-weight: 600; letter-spacing: 0;
  transition: background-color .3s, color .3s;
}
.nav__quiz:hover { background: var(--accent); border-color: var(--accent); color: #0c0b0a; }
.nav__quiz:hover::before { background: #0c0b0a; color: var(--accent); }
@media (max-width: 760px) {
  .nav__quiz { font-size: 0; letter-spacing: 0; gap: 0; padding: 4px; }
  .nav__quiz::before { width: 26px; height: 26px; font-size: 14px; }
}

/* ---------- sorgu odası ---------- */
.qz {
  --qc: var(--accent); --qci: #0c0b0a;
  --sheet: #ebe1ca; --pen: #1b1712; --pen2: #5c5244; --red: #c8102e;
  --fg: var(--ink);
  position: fixed; inset: 0; z-index: 200;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  color: var(--ink);
  background: radial-gradient(ellipse 60% 62% at 50% 46%, #2c2219 0%, #120e0b 55%, #050404 100%);
}
.qz[hidden] { display: none; }
.qz__glow {
  position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease-out);
  background: radial-gradient(ellipse 55% 50% at 50% 58%, color-mix(in srgb, var(--qc) 28%, transparent), transparent 72%);
}
.qz.is-res .qz__glow { opacity: 1; }
.qz__in { position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }

/* lamba: tavandan sarkar, hafif sallanır */
.qz__lamp { position: absolute; top: 0; left: 0; right: 0; margin: auto; width: clamp(76px, 10vw, 140px); pointer-events: none; }
.qz__swing { position: relative; display: grid; justify-items: center; transform-origin: 50% 0; animation: qz-swing 5.2s ease-in-out infinite; }
.qz__swing i { display: block; }
.qz__cord { width: 2px; height: clamp(18px, 6vh, 76px); background: linear-gradient(#000, #3b352e); }
.qz__shade {
  width: 100%; aspect-ratio: 2.1; position: relative; z-index: 1;
  border-radius: 50% 50% 6% 6% / 100% 100% 6% 6%;
  background: linear-gradient(90deg, #171a17 0%, #4b544b 38%, #2a2f2a 62%, #121412 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .6);
}
.qz__shade::before { content: ''; position: absolute; left: 50%; top: -6px; width: 16%; height: 10px; margin-left: -8%; border-radius: 3px 3px 0 0; background: #262a26; }
.qz__bulb {
  width: 34%; aspect-ratio: 2.2; margin-top: -3px; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: #fff7dd; box-shadow: 0 0 22px 8px rgba(255, 222, 160, .55), 0 0 70px 26px rgba(255, 190, 110, .22);
}
.qz__light {
  position: absolute; top: 100%; left: 50%; width: 1200px; height: 115vh; margin-left: -600px; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0, rgba(255, 226, 170, .2) 0deg, rgba(255, 226, 170, .15) 12deg, transparent 25deg, transparent 335deg, rgba(255, 226, 170, .15) 348deg, rgba(255, 226, 170, .2) 360deg);
  -webkit-mask-image: linear-gradient(#000 25%, transparent 92%); mask-image: linear-gradient(#000 25%, transparent 92%);
}
@keyframes qz-swing { 0%, 100% { transform: rotate(2.2deg); } 50% { transform: rotate(-2.2deg); } }
@keyframes qz-sway { 0%, 100% { transform: translateX(-5%); } 50% { transform: translateX(5%); } }

.qz__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px var(--pad) 0; }
.qz__id { display: grid; gap: 6px; }
.qz__rec { display: flex; align-items: center; gap: 8px; color: #ff4b3e; font-size: 10px; }
.qz__rec i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.4s infinite; }
.qz__title { font-size: 15px; font-weight: 600; letter-spacing: .24em; }
.qz__sub { font-size: 15px; font-style: italic; color: rgba(239, 233, 223, .62); max-width: 24ch; }
.qz__x {
  display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 10px 16px; border-radius: 99px;
  border: 1px solid rgba(239, 233, 223, .35); transition: background-color .3s, color .3s, border-color .3s;
}
.qz__x:hover { background: var(--ink); color: var(--night); border-color: var(--ink); }
.qz__x kbd { font: inherit; font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 1px solid currentColor; opacity: .55; }
@media (hover: none), (pointer: coarse) { .qz__x kbd { display: none; } }

.qz__stage { position: relative; z-index: 1; display: grid; align-content: center; padding: clamp(64px, 11vh, 130px) var(--pad) clamp(28px, 6vh, 64px); }

/* dosya kâğıdı */
.qz__card {
  --fg: var(--pen);
  position: relative; width: min(640px, 100%); margin: 0 auto; isolation: isolate;
  padding: clamp(20px, 3.4vw, 40px); border-radius: 4px; color: var(--pen); rotate: -.6deg;
  background-color: var(--sheet);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .28 0 0 0 0 .17 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #f4ecd9, #e2d5b8);
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* lambanın ışığı kâğıdın üstünde salınır */
.qz__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 251, 236, .6), transparent 70%);
  animation: qz-sway 5.2s ease-in-out infinite;
}
.qz__card--res { width: min(920px, 100%); }
.qz__top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--pen2); padding-bottom: 10px; border-bottom: 1px dashed rgba(27, 23, 18, .32); }
.qz__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 clamp(18px, 3vh, 28px); }
.qz__bar i { height: 3px; border-radius: 2px; background: rgba(27, 23, 18, .16); }
.qz__bar .is-done { background: var(--pen); }
.qz__bar .is-now { background: var(--accent); }
.qz__q { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.02; letter-spacing: -.035em; }
.qz__ans { display: grid; gap: 10px; margin-top: clamp(20px, 3.4vh, 30px); }
.qz__a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  width: 100%; min-height: 60px; padding: 14px 18px; text-align: left;
  border: 1.5px solid var(--pen); border-radius: 10px; background: rgba(255, 255, 255, .22);
  font-family: var(--sans); font-weight: 600; font-size: clamp(18px, 2vw, 22px); line-height: 1.15; letter-spacing: -.01em;
  transition: background-color .25s, color .25s;
}
.qz__a i { font-style: normal; font-size: 20px; transition: transform .4s var(--ease-out); }
.qz__key { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 7px; transition: background-color .25s, color .25s, border-color .25s; }
.qz__a:hover, .qz__a.is-on { background: var(--pen); color: var(--sheet); }
.qz__a:hover .qz__key, .qz__a.is-on .qz__key { background: var(--accent); border-color: var(--accent); color: #0c0b0a; }
.qz__a:hover i { transform: translateX(6px); }
.qz__note { margin-top: 16px; text-align: right; font-family: 'Caveat', cursive; font-weight: 700; font-size: 25px; line-height: 1; color: var(--red); rotate: -3deg; }

/* sonuç */
.qz__res { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 52px); align-items: start; margin-top: clamp(18px, 3vh, 28px); }
.qz__ev { position: relative; padding: 14px 4px 64px; }
.qz__pol { position: relative; margin: 0; padding: 10px 10px 0; background: #fbf8f1; rotate: 4deg; box-shadow: 0 22px 34px -12px rgba(0, 0, 0, .5), 0 2px 4px rgba(0, 0, 0, .2); }
.qz__pol::before { content: ''; position: absolute; top: -13px; left: 50%; width: 38%; height: 26px; margin-left: -19%; rotate: -5deg; background: rgba(255, 252, 235, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.qz__pol img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: #0c0b0a; }
.qz__pol figcaption { font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; text-align: center; padding: 6px 4px 10px; color: #1d1a16; overflow-wrap: anywhere; }
.qz__hand { position: absolute; right: 0; bottom: 4px; display: flex; align-items: flex-end; gap: 2px; font-family: 'Caveat', cursive; font-weight: 700; font-size: 28px; line-height: 1; color: var(--red); rotate: -6deg; }
.qz__hand svg { width: 62px; height: 39px; margin-bottom: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qz__stamp {
  position: absolute; right: -16px; top: 26%; z-index: 3; pointer-events: none; rotate: -12deg; opacity: .95;
  font-family: var(--display); font-weight: 900; font-size: clamp(15px, 1.9vw, 23px); line-height: .95; letter-spacing: .04em; text-align: center;
  color: #e3241b; padding: 9px 13px; border: 4px solid currentColor; border-radius: 8px; outline: 2px solid currentColor; outline-offset: 3px;
  background: rgba(255, 236, 228, .55);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, .55) 56%, #000 70%); mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, .55) 56%, #000 70%);
}
.qz__body { min-width: 0; }
.qz__name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 74px); line-height: .9; letter-spacing: -.045em; overflow-wrap: anywhere; }
.qz__line { margin-top: 14px; font-size: 11px; color: var(--pen2); }
.qz__quip { margin-top: 18px; font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: .01em; color: #3f382e; }
.qz__quip span { color: color-mix(in srgb, var(--qc) 55%, #000); font-weight: 600; }
.qz__why { margin-top: 16px; font-size: 16px; line-height: 1.45; max-width: 46ch; }
.qz__why b { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--red); }
.qz__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3.4vh, 32px); }
.qz__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 22px;
  border: 1.5px solid var(--pen); border-radius: 99px; font-weight: 600; font-size: 16px;
  transition: background-color .3s, color .3s;
}
.qz__btn:hover { background: var(--pen); color: var(--sheet); }
.qz__btn--go { background: var(--qc); color: var(--qci); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding-right: 10px; }
.qz__btn--go i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--qci); color: var(--qc); transition: transform .5s var(--ease-out); }
.qz__btn--go:hover i { transform: rotate(45deg); }
.qz__share { margin-top: 16px; padding: 6px 0; font-size: 11px; color: var(--pen2); text-decoration: underline; text-underline-offset: 4px; }
.qz__share:hover { color: var(--pen); }

@media (max-width: 700px) {
  .qz__title { font-size: 13px; letter-spacing: .16em; }
  .qz__sub { font-size: 14px; max-width: 17ch; }
  .qz__x { padding: 9px 13px; }
  .qz__res { grid-template-columns: 1fr; }
  .qz__ev { width: 76%; margin: 0 auto; padding-bottom: 54px; }
  .qz__btns { flex-direction: column; }
  .qz__btn { width: 100%; }
  .qz__a { gap: 12px; padding: 12px 14px; }
}

.reduce-motion .qz__swing, .reduce-motion .qz__card::before, .reduce-motion .qz__rec i { animation: none; }
@media (forced-colors: active) { .qz__light, .qz__glow, .qz__card::before { display: none; } }
