* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body {
  display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% 35%, #6b2a72, #2c0f33 75%);
  font: 15px/1.3 system-ui, "Segoe UI", sans-serif; color: #fff;
}
button, input { font: inherit; color: inherit; }
button {
  background: rgba(255,255,255,.12); border: 0; border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
}
button:hover { background: rgba(255,255,255,.24); }
button:disabled { opacity: .25; cursor: default; }

#sahne { flex: 1; min-height: 0; display: flex; align-items: center; gap: 8px; padding: 14px 10px 6px; }
#alan { flex: 1; align-self: stretch; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ok { font-size: 34px; line-height: 1; padding: 14px 14px 18px; flex: none; }

#kitap { position: relative; touch-action: none; user-select: none; cursor: pointer; }
.yuz { position: absolute; top: 0; overflow: hidden; background: #fff; }
.yuz img { display: block; width: 100%; height: 100%; pointer-events: none; }
.sol { box-shadow: -4px 10px 30px rgba(0,0,0,.45); }
.sag { box-shadow: 4px 10px 30px rgba(0,0,0,.45); }
/* cilt ortasındaki gölge */
.cift .sol::after, .cift .sag::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none; }
.cift .sol::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.2), transparent); }
.cift .sag::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.2), transparent); }
.cilt { position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none; }
.cilt-sol { right: 0; background: linear-gradient(to left, rgba(0,0,0,.2), transparent); }
.cilt-sag { left: 0; background: linear-gradient(to right, rgba(0,0,0,.2), transparent); }
.kanat { transform-origin: 0 0; box-shadow: none; }
.kanat.bos img { opacity: .12; transform: scaleX(-1); }
.golge { position: absolute; left: 0; top: 0; pointer-events: none; transform-origin: 0 50%; }

#cubuk { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
#no { width: 3.6em; text-align: center; background: rgba(255,255,255,.12); border: 0; border-radius: 6px; padding: 6px; }
#no::-webkit-inner-spin-button { display: none; }

#serit { position: fixed; left: 0; right: 0; bottom: 62px; display: flex; gap: 14px; overflow-x: auto; padding: 14px; background: rgba(20,5,25,.94); z-index: 5; }
#serit button { flex: none; display: flex; gap: 0; padding: 4px; flex-wrap: wrap; justify-content: center; max-width: 240px; }
#serit img { width: 96px; height: 96px; display: block; }
#serit span { width: 100%; font-size: 12px; padding-top: 3px; }
#serit button.secili { background: #f6a21a; color: #2c0f33; }

#buyuk { position: fixed; inset: 0; z-index: 10; background: rgba(15,4,20,.96); display: flex; flex-direction: column; }
#buyukUst { display: flex; justify-content: flex-end; gap: 8px; padding: 10px; }
#buyukKaydir { flex: 1; overflow: auto; display: flex; padding: 10px; cursor: grab; }
#buyukSayfalar { display: flex; margin: auto; }
#buyukSayfalar img { display: block; flex: none; -webkit-user-drag: none; }

@media (max-width: 640px) {
  .ok { display: none; }
  #sahne { padding: 8px; }
  #cubuk button { padding: 7px 10px; }
}
