/* ESC MENÜSÜ = JACK'İN DATAPAD'İ (cihat 13.11: konsept A onaylandı; "efektli olsun, VHS ekran efekti, sayfa geçişlerinde cızırtı").
   Cihaz çerçevesi assets/ui/datapad_cerceve.png (SB_129, ekranı ve dışı saydam). Menü kartı o ekranın tam içine oturur (ekran kutusu görselden ölçüldü:
   sol %26,17 · üst %27,54 · en %48,05 · boy %54,88). Düzen ve sayfalar pause.js'teki gibi; burada yalnız görünüm var.
   Dikey telefonda cihaz sığmaz: çerçevesiz, aynı ekran efektleriyle tam genişlik panel. */
#pause { --dp-w: min(100vw, 156vh); background: rgba(3, 8, 8, .62); display: block; overflow: hidden; padding: 0; }
#pause .dp-cihaz { position: absolute; left: 50%; top: 50%; width: var(--dp-w); aspect-ratio: 1536 / 1024; transform: translate(-50%, -47%); animation: dpKalk .28s cubic-bezier(.2, .8, .3, 1.1) both; }
#pause .dp-cihaz::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: url(../assets/ui/datapad_cerceve.png) center / 100% 100% no-repeat; image-rendering: pixelated; }
@keyframes dpKalk { from { transform: translate(-50%, -30%) rotate(-2deg); opacity: 0; } to { transform: translate(-50%, -47%); opacity: 1; } }

/* ekran */
#pause .dp-cihaz .card.esc { position: absolute; left: 26.17%; top: 27.54%; width: 48.05%; height: 54.88%; box-sizing: border-box; margin: 0; z-index: 1;
  border: 0; border-radius: 0; box-shadow: none; padding: clamp(8px, 2.2vh, 22px) clamp(12px, 3vw, 34px); overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
  background: radial-gradient(120% 90% at 50% 45%, #0f5a54 0%, #0a3d3a 55%, #052523 100%); color: #c8fff4; font-family: var(--font); animation: dpTitre 5.5s steps(1) infinite; }
#pause .dp-cihaz .card.esc::-webkit-scrollbar { display: none; }
/* tarama çizgileri + ekran kararması (içerikle birlikte kaymasın diye ekran kutusuna sabit ayrı katman) */
#pause .dp-efekt { position: absolute; left: 26.17%; top: 27.54%; width: 48.05%; height: 54.88%; z-index: 2; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .22) 2px 3px), radial-gradient(110% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .5) 100%); mix-blend-mode: multiply; }
/* VHS izleme bandı: yukarıdan aşağı yavaşça kayan parlak şerit */
#pause .dp-efekt::before { content: ''; position: absolute; left: 0; right: 0; height: 18%; top: -20%; background: linear-gradient(to bottom, transparent, rgba(190, 255, 245, .16) 45%, rgba(190, 255, 245, .05) 55%, transparent); animation: dpBant 6.5s linear infinite; mix-blend-mode: screen; }
@keyframes dpBant { from { top: -20%; } to { top: 110%; } }
@keyframes dpTitre { 0%, 100% { filter: none; } 47% { filter: brightness(1.06); } 48% { filter: brightness(.93) hue-rotate(-4deg); } 49% { filter: none; } 83% { filter: brightness(1.04); } 84% { filter: none; } }
/* sayfa geçişi: cızırtı (gürültü dokusu --dp-ciz pause.js'ten gelir) + yatay kayma + renk ayrışması */
#pause .dp-ciz { position: absolute; left: 26.17%; top: 27.54%; width: 48.05%; height: 54.88%; z-index: 2; pointer-events: none; opacity: 0; background: var(--dp-ciz, none) 0 0 / 160px 160px; image-rendering: pixelated; }
#pause.ciz .dp-ciz { animation: dpCiz .3s steps(6) both; }
#pause.ciz .dp-cihaz .card.esc > section:not([hidden]) { animation: dpKay .3s steps(5) both; }
@keyframes dpCiz { 0% { opacity: .95; background-position: 0 0; } 20% { opacity: .8; background-position: -37px 51px; } 40% { opacity: .6; background-position: 23px -19px; } 60% { opacity: .45; background-position: -61px 7px; } 80% { opacity: .2; background-position: 11px 33px; } 100% { opacity: 0; } }
@keyframes dpKay { 0% { transform: translateX(-14px) skewX(-9deg); opacity: .2; filter: hue-rotate(40deg); } 25% { transform: translateX(9px) skewX(5deg); opacity: .6; } 50% { transform: translateX(-5px) scaleY(1.04); opacity: .8; filter: hue-rotate(-20deg); } 75% { transform: translateX(3px); opacity: .95; } 100% { transform: none; opacity: 1; filter: none; } }

/* ekran içi yazı ve düğmeler: fosforlu camgöbeği, hafif renk kayması */
#pause .dp-cihaz .esc section { gap: clamp(5px, 1.4vh, 12px); }
#pause .dp-cihaz .esc h2 { font-size: clamp(14px, 2.6vh, 24px); letter-spacing: .14em; color: #d6fff6; margin: 0; text-shadow: 1.5px 0 0 rgba(255, 60, 90, .45), -1.5px 0 0 rgba(60, 220, 255, .55), 0 0 10px rgba(110, 255, 235, .5); display: flex; align-items: center; gap: 10px; justify-self: stretch; justify-content: center; }
#pause .dp-cihaz .esc h2::before, #pause .dp-cihaz .esc h2::after { content: ''; flex: 0 1 46px; height: 2px; background: #5fe9d8; opacity: .7; }
#pause .dp-cihaz .esc .btn, #pause .dp-cihaz .esc .big { position: relative; min-height: clamp(26px, 5.4vh, 46px); padding: 2px 10px; font-size: clamp(11px, 2vh, 16px); border-radius: 6px; border: 1px solid rgba(110, 235, 220, .45);
  background: linear-gradient(rgba(60, 190, 175, .28), rgba(20, 110, 100, .28)); color: #d6fff6; box-shadow: inset 0 0 12px rgba(120, 255, 240, .08); text-shadow: 0 0 6px rgba(110, 255, 235, .45); }
#pause .dp-cihaz .esc .btn:hover, #pause .dp-cihaz .esc .big:hover, #pause .dp-cihaz .esc .btn:focus-visible { border-color: #9dfff2; background: linear-gradient(rgba(90, 230, 210, .42), rgba(30, 140, 128, .42)); filter: none; }
#pause .dp-cihaz .esc .big, #pause .dp-cihaz .esc-sekme .btn.on { border-color: #9dfff2; background: linear-gradient(rgba(90, 235, 215, .5), rgba(30, 150, 136, .45)); box-shadow: 0 0 14px rgba(110, 255, 235, .35), inset 0 0 14px rgba(160, 255, 245, .15); color: #fff; }
/* seçili düğmenin köşe ayraçları (konseptteki gibi) */
#pause .dp-cihaz .esc .big::before, #pause .dp-cihaz .esc .big::after { content: ''; position: absolute; top: -4px; bottom: -4px; width: 9px; border: 2px solid #9dfff2; pointer-events: none; }
#pause .dp-cihaz .esc .big::before { left: -5px; border-right: 0; } #pause .dp-cihaz .esc .big::after { right: -5px; border-left: 0; }
#pause .dp-cihaz .esc .btn:disabled { opacity: .35; }
#pause .dp-cihaz .esc-liste { gap: clamp(4px, 1.3vh, 10px); padding: 0 6%; }
#pause .dp-cihaz .esc .set label { color: #c8fff4; font-size: clamp(11px, 1.9vh, 15px); } #pause .dp-cihaz .esc .set { min-height: 0; gap: clamp(5px, 1.4vh, 12px); }
#pause .dp-cihaz .esc .set input[type=range], #pause .dp-cihaz .esc .set input[type=checkbox] { accent-color: #7dffee; }
#pause .dp-cihaz .esc-tus { font-size: clamp(9px, 1.55vh, 13px); gap: 2px 12px; grid-template-columns: auto 1fr auto 1fr; } #pause .dp-cihaz .esc-tus dt { color: #7dffee; }
#pause .dp-cihaz .kayit-yuva .btn.yuva { min-height: clamp(30px, 6.4vh, 52px); padding: 3px 10px; } #pause .dp-cihaz .kayit-yuva .btn.yuva b { color: #7dffee; } #pause .dp-cihaz .kayit-yuva .btn.yuva span { color: #c8fff4; font-size: clamp(10px, 1.7vh, 13px); }
#pause .dp-cihaz .kayit-yuva [data-yuva-not] { color: #ffd98a; }
/* sinyal ve pil: ekranın sağ üstü */
#pause .dp-durum { position: absolute; z-index: 2; pointer-events: none; left: calc(26.17% + 48.05% - 15%); top: calc(27.54% + 1.6%); width: 13%; display: flex; justify-content: flex-end; align-items: flex-end; gap: 8px; color: #7dffee; }
#pause .dp-durum i { display: flex; align-items: flex-end; gap: 2px; height: 12px; } #pause .dp-durum i b { width: 3px; background: currentColor; box-shadow: 0 0 4px currentColor; }
#pause .dp-durum i b:nth-child(1) { height: 30%; } #pause .dp-durum i b:nth-child(2) { height: 55%; } #pause .dp-durum i b:nth-child(3) { height: 78%; } #pause .dp-durum i b:nth-child(4) { height: 100%; animation: dpSinyal 2.6s steps(1) infinite; }
@keyframes dpSinyal { 0%, 100% { opacity: 1; } 60% { opacity: .2; } 72% { opacity: 1; } }
#pause .dp-durum u { width: 22px; height: 10px; border: 2px solid currentColor; border-radius: 2px; position: relative; text-decoration: none; box-shadow: 0 0 4px currentColor; }
#pause .dp-durum u::before { content: ''; position: absolute; inset: 1px 30% 1px 1px; background: currentColor; } #pause .dp-durum u::after { content: ''; position: absolute; right: -5px; top: 2px; width: 2px; height: 4px; background: currentColor; }

/* kısa ekran (yatay telefon): cihaz biraz daha büyür, liste iki sütun */
@media (max-height: 520px) { #pause { --dp-w: min(124vw, 190vh); } #pause .dp-cihaz .esc-liste { grid-template-columns: 1fr 1fr; padding: 0 3%; } #pause .dp-cihaz .esc-liste .big { grid-column: 1 / -1; } }
/* dikey telefon: cihaz sığmaz → çerçevesiz ekran paneli (aynı efektler) */
@media (orientation: portrait) and (max-width: 700px) {
  #pause .dp-cihaz { width: calc(100vw - 20px); aspect-ratio: auto; animation: none; transform: translate(-50%, -50%); } #pause .dp-cihaz::after, #pause .dp-durum { display: none; }
  #pause .dp-cihaz .card.esc { position: relative; left: 0; top: 0; width: 100%; height: auto; max-height: calc(100dvh - 40px); border: 3px solid #44552f; border-radius: 12px; box-shadow: 0 0 0 2px #1c2414, 0 14px 40px #000c; padding: 18px 16px; }
  #pause .dp-efekt, #pause .dp-ciz { left: 0; top: 0; width: 100%; height: 100%; border-radius: 12px; }
  #pause .dp-cihaz .esc .btn, #pause .dp-cihaz .esc .big { min-height: 44px; font-size: 15px; } #pause .dp-cihaz .esc h2 { font-size: 20px; } #pause .dp-cihaz .esc-tus { grid-template-columns: auto 1fr; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { #pause .dp-cihaz, #pause .dp-cihaz .card.esc, #pause .dp-efekt::before { animation: none; } }
@media (max-height: 520px) { #pause .dp-cihaz .esc-liste #menuDon { grid-column: 1 / -1; } }
/* İKMAL (A13, 21.11): ana sayfanın altındaki şerit (bandaj · kit · enerji içeceği · kahve sayıları → İkmal sayfası) ve sayfanın satırları */
#pause .esc-ikmal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px clamp(6px, 1.6vh, 14px); margin: 0 6%; padding: clamp(3px, .8vh, 6px) 8px; cursor: pointer;
  border: 1px dashed rgba(125, 255, 238, .55); border-radius: 6px; background: rgba(4, 30, 28, .45); color: #c8fff4; font: inherit; font-size: clamp(10px, 1.8vh, 14px); }
#pause .esc-ikmal:hover, #pause .esc-ikmal:focus-visible { border-style: solid; border-color: #9dfff2; background: rgba(40, 150, 136, .35); }
#pause .esc-ikmal .ik-cip { display: inline-flex; align-items: center; gap: 3px; } #pause .esc-ikmal .ik-cip b { color: #fff; }
#pause .esc-ikmal img, #pause .ik-satir img { width: clamp(16px, 3.4vh, 26px); height: clamp(16px, 3.4vh, 26px); object-fit: contain; image-rendering: pixelated; }
#pause .esc-ikmal .ik-ne { color: #ffd98a; }
#pause .ikmal-alt { margin: 0; text-align: center; color: #ffd98a; font-size: clamp(9px, 1.7vh, 13px); }
#pause .ikmal-liste { display: grid; gap: clamp(3px, .9vh, 8px); }
#pause .ik-satir { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: start; padding: clamp(2px, .6vh, 5px) 6px; border-left: 2px solid rgba(125, 255, 238, .55); background: rgba(4, 30, 28, .35); }
#pause .ik-satir b { display: block; color: #d6fff6; font-size: clamp(10px, 1.9vh, 14px); } #pause .ik-satir b i { font-style: normal; color: #ffd98a; margin-left: 4px; }
#pause .ik-satir p { margin: 1px 0 0; color: #c8fff4; font-size: clamp(9px, 1.65vh, 12.5px); line-height: 1.25; } #pause .ik-satir p em { font-style: normal; color: #7dffee; margin-right: 4px; }
@media (max-height: 520px) { #pause .esc-ikmal { margin: 0 3%; } #pause .ik-satir img { display: none; } #pause .ik-satir { grid-template-columns: 1fr; } }
@media (max-height: 520px) { #pause .ikmal-liste { gap: 2px; } #pause .ik-satir p { line-height: 1.15; } #pause [data-sayfa="ikmal"] .esc-geri { min-height: 24px; } }
/* Fable 5.2 denetimi (21.11): şerit düğme gibi dursun (dolu kenar, diğer düğmelerle aynı yükseklik), sayılar büyük, elde olmayan soluk */
#pause .esc-ikmal { border-style: solid; min-height: clamp(26px, 5.4vh, 46px); background: linear-gradient(rgba(60, 200, 182, .22), rgba(20, 110, 100, .22)); }
#pause .esc-ikmal .ik-cip b { font-size: 1.2em; } #pause .esc-ikmal .ik-cip.yok, #pause .ik-satir.yok b i { opacity: .45; } #pause .ik-satir.yok b i { color: #ff9a8a; opacity: 1; }
@media (max-height: 520px) { #pause .ikmal-alt { display: none; } #pause [data-sayfa="ikmal"] .esc-geri { min-height: 30px; } }
