﻿/*
    KALP VE BEYİN — sahne stilleri.

    Bu sayfa sitenin geri kalanindan AYRI bir gorsel dunya: tam ekran 3B
    sahne, kendi tipografisi (IBM Plex + Instrument Serif) ve kendi paleti
    var. Bu yuzden site.css'e karistirilmadi; yalnizca /kalp-beyin
    sayfasinda yuklenir.

    Fontlar wwwroot/kalp-beyin/font altinda yerel olarak servis edilir —
    Google Fonts'a istek gitmez (cerez/gizlilik bildirimi gerektirmez).
*/

/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/fa6a185e.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/4a8d1529.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/cbd758d0.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/367e5c82.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/728e32e0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/kalp-beyin/font/ee6197a0.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/kalp-beyin/font/42cddc25.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/kalp-beyin/font/2a98b282.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/kalp-beyin/font/73057bf7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/kalp-beyin/font/cc992a58.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/18415eb6.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/d52abdca.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/9f9a141e.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/c1719a22.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/29ca0003.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/a11b0f7f.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/18415eb6.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/d52abdca.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/9f9a141e.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/c1719a22.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/29ca0003.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/a11b0f7f.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/18415eb6.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/d52abdca.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/9f9a141e.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/c1719a22.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/29ca0003.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/kalp-beyin/font/a11b0f7f.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/d3e5b50c.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/ac199309.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/934a6d2f.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/kalp-beyin/font/938d55e9.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


  html, body { margin: 0; height: 100%; background: #f2efe9; color: #2b2521;
    font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
    overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
  three-d-stage { touch-action: none; }
  three-d-stage:not(:defined) { visibility: hidden; }
  three-d-stage { display: block; width: 100vw; height: 100vh; }
  @media (min-width: 901px) { three-d-stage { width: calc(100vw - 430px); } }
  body[data-panel="closed"] three-d-stage { width: 100vw; }

  header { position: fixed; top: 26px; left: 30px; z-index: 12; max-width: 26ch; pointer-events: none; }
  header h1 { margin: 0 0 6px; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
    font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; }
  header p { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.6;
    letter-spacing: 0.06em; text-transform: uppercase; color: #7a6f65; }

  #focus { position: fixed; top: 132px; left: 30px; z-index: 12; display: flex; gap: 4px; padding: 4px;
    background: rgba(255,255,255,0.86); border: 1px solid rgba(43,37,33,0.12); backdrop-filter: blur(6px); }
  #focus button { appearance: none; border: 0; cursor: pointer; padding: 9px 13px; background: transparent;
    color: #4a423b; font: 500 11px/1 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; }
  #focus button:hover { background: rgba(43,37,33,0.06); }
  #focus button[aria-pressed="true"] { background: #2b2521; color: #f6f3ee; }

  #loading { position: fixed; left: 30px; top: 190px; z-index: 12;
    font: 500 11px/1.6 'IBM Plex Mono', monospace; letter-spacing: 0.08em;
    text-transform: uppercase; color: #8e3a34; }

  #markers { position: fixed; inset: 0; z-index: 13; pointer-events: none; }
  /* hotspots read as labels, not bare pins */
  .hs { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px;
    display: grid; place-items: center; border-radius: 50%; padding: 0;
    border: 1px solid rgba(43,37,33,0.3); background: rgba(255,255,255,0.92); color: #2b2521;
    cursor: pointer; pointer-events: auto;
    font: 400 15px/1 'IBM Plex Mono', monospace;
    transition: background .16s, color .16s, opacity .2s, border-color .16s, box-shadow .16s; }
  .hs .dot { display: none; }
  .hs[data-group="heart"] { border-color: rgba(142,58,52,0.55); }
  .hs[data-group="brain"] { border-color: rgba(125,91,142,0.55); }
  .hs[data-group="link"] { border-color: rgba(178,132,58,0.6); }
  .hs:hover { background: #2b2521; color: #f6f3ee; border-color: #2b2521; }
  .hs[data-active="true"] { background: #8e3a34; border-color: #8e3a34; color: #fff;
    box-shadow: 0 0 0 6px rgba(142,58,52,0.16); }
  .hs[data-hidden="true"] { opacity: 0; pointer-events: none; }
  .hs .txt { position: absolute; left: 38px; top: 50%; transform: translateY(-50%); white-space: nowrap;
    font: 500 10px/1 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase;
    color: #5c534a; background: rgba(242,239,233,0.9); padding: 4px 6px; opacity: 0;
    transition: opacity .16s; pointer-events: none; }
  .hs[data-side="l"] .txt { left: auto; right: 38px; }
  .hs:hover .txt, .hs[data-active="true"] .txt { opacity: 1; }

  #panel { position: fixed; top: 26px; right: 26px; bottom: 26px; z-index: 12; width: 380px;
    display: flex; flex-direction: column; background: rgba(255,255,255,0.93);
    border: 1px solid rgba(43,37,33,0.12); backdrop-filter: blur(8px); }
  #panel .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 22px 22px 14px; border-bottom: 1px solid rgba(43,37,33,0.1); }
  .head .acts { display: flex; gap: 6px; flex: none; }
  #kicker { font: 500 10px/1.4 'IBM Plex Mono', monospace; letter-spacing: 0.14em;
    text-transform: uppercase; color: #8e3a34; margin: 0 0 8px; }
  #title { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
    font-size: 25px; line-height: 1.15; }
  #close, #intro-link { appearance: none; border: 1px solid rgba(43,37,33,0.18); background: transparent;
    height: 26px; cursor: pointer; color: #4a423b; font: 500 9px/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.1em; text-transform: uppercase; }
  #close { width: 26px; font-size: 14px; }
  #intro-link { padding: 0 8px; }
  #close:hover, #intro-link:hover { background: #2b2521; color: #f6f3ee; }
  #body { padding: 18px 22px 24px; overflow-y: auto; overflow-x: hidden; font-size: 14.5px;
    line-height: 1.62; color: #3d352f; text-wrap: pretty; }
  #body p { margin: 0 0 12px; }
  #body ul { margin: 0 0 12px; padding-left: 18px; }
  #body li { margin-bottom: 5px; }
  #body em { font-style: italic; color: #6d635a; }
  #body .byline { font: 500 10px/1.6 'IBM Plex Mono', monospace; letter-spacing: 0.1em;
    text-transform: uppercase; color: #8a7f74; margin-top: 18px; }
  #nav { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    border-top: 1px solid rgba(43,37,33,0.1); }
  #nav button { appearance: none; cursor: pointer; background: transparent;
    border: 1px solid rgba(43,37,33,0.18); color: #4a423b; min-height: 40px; padding: 0 14px;
    font: 500 11px/1 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
  #nav button:hover:not(:disabled) { background: #2b2521; color: #f6f3ee; border-color: #2b2521; }
  #nav button:disabled { opacity: 0.35; cursor: default; }
  #nav .count { margin-left: auto; font: 500 10px/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.1em; color: #8a7f74; }
  #nav .arrows { display: flex; gap: 6px; }
  body[data-panel="closed"] #panel { display: none; }
  #reopen { position: fixed; top: 26px; right: 26px; z-index: 12; display: none; appearance: none;
    cursor: pointer; padding: 10px 14px; white-space: nowrap; background: rgba(255,255,255,0.9);
    border: 1px solid rgba(43,37,33,0.14); color: #2b2521; font: 500 11px/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.1em; text-transform: uppercase; }
  #reopen:hover { background: #2b2521; color: #f6f3ee; }
  body[data-panel="closed"] #reopen { display: block; }
  #ecg { position: fixed; left: 0; bottom: 0; z-index: 12; height: 148px;
    right: 430px; display: flex; align-items: stretch;
    background: rgba(255,255,255,0.9); border-top: 1px solid rgba(43,37,33,0.12);
    backdrop-filter: blur(6px); }
  body[data-panel="closed"] #ecg { right: 0; }
  #ecg .side { flex: none; width: 250px; padding: 14px 16px; display: flex; flex-direction: column;
    gap: 7px; border-right: 1px solid rgba(43,37,33,0.1); overflow: hidden; }
  #ecg .modes { display: flex; gap: 4px; }
  #ecg .modes button { appearance: none; cursor: pointer; flex: 1; min-height: 34px; padding: 0 6px;
    background: transparent; border: 1px solid rgba(43,37,33,0.16); color: #4a423b;
    font: 500 9.5px/1 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
  #ecg .modes button:hover { background: rgba(43,37,33,0.06); }
  #ecg .modes button[aria-pressed="true"] { background: #2b2521; color: #f6f3ee; border-color: #2b2521; }
  #ecg .read { display: flex; align-items: baseline; gap: 6px; }
  #ecg .bpm { font-family: 'Instrument Serif', Georgia, serif; font-size: 27px; line-height: 1; }
  #ecg .unit, #ecg .note { font: 500 9.5px/1.5 'IBM Plex Mono', monospace; letter-spacing: 0.08em;
    text-transform: uppercase; color: #8a7f74; }
  #ecg .note { text-transform: none; letter-spacing: 0.01em; font-size: 10px; line-height: 1.4; color: #6d635a; margin: 0; }
  #ecg canvas { flex: 1; display: block; width: 100%; height: 100%; }
  @media (max-width: 900px) {
    #ecg { right: 0; height: 120px; }
    #ecg .side { width: 168px; padding: 10px 12px; gap: 5px; }
    #ecg .note { font-size: 9px; }
    #ecg .bpm { font-size: 22px; }
    body[data-panel="open"] #ecg { display: none; }
    #panel { width: auto; left: 12px; right: 12px; top: auto; height: 52vh; bottom: 12px; }
    #panel .head { padding: 16px 16px 12px; }
    #title { font-size: 21px; }
    #body { padding: 14px 16px 18px; font-size: 14px; }
    header { top: 14px; left: 16px; max-width: 16ch; }
    header h1 { font-size: 27px; }
    #focus { top: 84px; left: 16px; }
    #reopen { top: 14px; right: 14px; }
    .hs { width: 34px; height: 34px; }
  }


/*
    SITEYE DONUS baglantisi. Sayfa _Layout kullanmadigi icin navbar yok;
    kullaniciyi tam ekran sahnede kilitli birakmamak icin tek bir cikis
    baglantisi konur. Sahnenin ustunde ama panelin altinda durur.
*/
.za-geri {
  position: fixed; top: 26px; right: 30px; z-index: 13;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #6b6058; text-decoration: none;
  background: rgba(242, 239, 233, 0.88);
  border: 1px solid rgba(107, 96, 88, 0.22);
  border-radius: 999px; padding: 7px 14px;
  backdrop-filter: blur(6px);
}
.za-geri:hover { color: #2b2521; border-color: rgba(107, 96, 88, 0.45); }

@media (min-width: 901px) {
  body:not([data-panel="closed"]) .za-geri { right: 450px; }
}
@media (max-width: 900px) {
  .za-geri { top: auto; bottom: 16px; right: 16px; }
}

/*
    UZAY TEMASI — sahne artik koyu bir zemin uzerinde: altta #uzay tuvali
    (uzay.js: yildizlar + noron agi), ustunde alfa WebGL sahnesi. Yukaridaki
    kagit-tonu kurallar burada ezilir; sirada sonra geldigi icin ayni
    seciciler bunlari kazanir. Sahneyi tekrar acik tona dondurmek icin bu
    blogu ve uzay.js'i kaldirmak yeterlidir.
*/
html, body { background: #070b14; color: #e9eef7; }
#uzay { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
three-d-stage { position: relative; z-index: 1; --stage-bg: transparent; }

header h1 { color: #f3f6fb; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
header p { color: #9aa7bd; }

#focus { background: rgba(10,16,30,0.72); border-color: rgba(255,255,255,0.14); }
#focus button { color: #b9c4d8; }
#focus button:hover { background: rgba(255,255,255,0.08); }
#focus button[aria-pressed="true"] { background: #e9eef7; color: #0b1020; }

.hs { background: rgba(10,16,30,0.82); border-color: rgba(255,255,255,0.35); color: #e9eef7;
  box-shadow: 0 0 0 4px rgba(120,170,230,0.10); }
.hs[data-group="heart"] { border-color: rgba(255,160,120,0.7); }
.hs[data-group="brain"] { border-color: rgba(150,196,255,0.7); }
.hs[data-group="link"] { border-color: rgba(255,214,140,0.7); }
.hs:hover { background: #e9eef7; color: #0b1020; border-color: #e9eef7; }
.hs[data-active="true"] { background: #ff8a65; border-color: #ff8a65; color: #1a0d08;
  box-shadow: 0 0 0 6px rgba(255,138,101,0.22), 0 0 24px rgba(255,138,101,0.35); }
.hs .txt { color: #d6deec; background: rgba(10,16,30,0.9); }

#panel { background: rgba(10,16,30,0.80); border-color: rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
#panel .head { border-bottom-color: rgba(255,255,255,0.10); }
#kicker { color: #ffb36b; }
#title { color: #f3f6fb; }
#close, #intro-link { border-color: rgba(255,255,255,0.2); color: #c3cde0; }
#close:hover, #intro-link:hover { background: #e9eef7; color: #0b1020; }
#body { color: #cdd6e6; }
#body em { color: #9aa7bd; }
#body strong { color: #f3f6fb; }
#body .byline { color: #8a97ad; }
#nav { border-top-color: rgba(255,255,255,0.10); }
#nav button { border-color: rgba(255,255,255,0.2); color: #c3cde0; }
#nav button:hover:not(:disabled) { background: #e9eef7; color: #0b1020; border-color: #e9eef7; }
#nav .count { color: #8a97ad; }
#reopen { background: rgba(10,16,30,0.8); border-color: rgba(255,255,255,0.16); color: #e9eef7; }
#reopen:hover { background: #e9eef7; color: #0b1020; }

#ecg { background: rgba(10,16,30,0.78); border-top-color: rgba(255,255,255,0.12); }
#ecg .side { border-right-color: rgba(255,255,255,0.10); }
#ecg .modes button { border-color: rgba(255,255,255,0.18); color: #c3cde0; }
#ecg .modes button:hover { background: rgba(255,255,255,0.08); }
#ecg .modes button[aria-pressed="true"] { background: #e9eef7; color: #0b1020; border-color: #e9eef7; }
#ecg .bpm { color: #ffb36b; }
#ecg .unit { color: #8a97ad; }
#ecg .note { color: #aab5c9; }

.za-geri { color: #c3cde0; background: rgba(10,16,30,0.78); border-color: rgba(255,255,255,0.16); }
.za-geri:hover { color: #f3f6fb; border-color: rgba(255,255,255,0.4); }

/*
    YUKLEME EKRANI — modeller inerken bos sahne yerine tam ekran bir kart:
    ilerleme halkasi, kisa bir bilgi cumlesi ve hazir olunca "Kesfetmeye
    Basla" dugmesi. Dugme bilincli: hem kullanici sahneye hazir olarak
    girer hem de ilk dokunus WebGL/ses icin kullanici hareketi sayilir.
*/
#loading { position: fixed; inset: 0; z-index: 9000; left: 0; top: 0; display: grid; place-items: center;
  /* OPAK: sahne yuklenirken arkada gorunmesin — yari saydamken kullanici
     'zaten yuklenmis' saniyor, dugmeye basinca da fark hissetmiyordu. */
  background: radial-gradient(ellipse at 50% 40%, #0f1a30, #05080f);
  font: inherit; letter-spacing: normal; text-transform: none; color: #e9eef7;
  transition: opacity .6s ease; }
#loading.kapan { opacity: 0; pointer-events: none; }
/* Hazir olunca overlay'in tamami tiklanabilir: imlec bunu soyler. */
#loading:has(#yk-basla:not([hidden])) { cursor: pointer; }
.yk-kart { position: relative; width: min(78vw, 340px); aspect-ratio: 1; display: grid; place-items: center; }
/* pointer-events:none SART: halka SVG'si konumlandirilmis (absolute) oldugu icin
   boyama sirasinda static olan yazi ve dugmenin USTUNE cikiyor; tiklama SVG'ye
   gidiyor, dugmeye ulasmiyordu. .yk-ic de kendi katmanina alinir. */
.yk-halka { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.yk-halka circle { fill: none; stroke-width: 3; }
.yk-iz { stroke: rgba(255,255,255,0.10); }
/* Parilti icin CSS filter KULLANILMAZ: drop-shadow SVG'nin dikdortgen kutusunu
   ayri katmanda birlestiriyor ve halkanin etrafinda kare bir leke birakiyordu.
   Parilti, altta genis ve soluk ikinci bir halka ile cizilir. */
.yk-dolgu { stroke: #7fd3ff; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
  transition: stroke-dashoffset .5s ease; }
.yk-parilti { stroke: rgba(127,211,255,0.28); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3; transition: stroke-dashoffset .5s ease; }
.yk-ic { position: relative; z-index: 1; text-align: center; padding: 0 34px; }
.yk-ust { margin: 0 0 12px; font-family: 'Instrument Serif', Georgia, serif; font-size: 28px; line-height: 1.1; color: #f3f6fb; }
.yk-bilgi { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: #aab5c9; }
.yk-durum { margin: 0; font: 500 10.5px/1.6 'IBM Plex Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #7fd3ff; }
#yk-basla { appearance: none; margin-top: 16px; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 22px;
  background: #ffb36b; color: #1a0d08; font: 600 12px/1 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(255,179,107,0.5); animation: yk-nabiz 1.6s ease-out infinite; }
#yk-basla:hover { background: #ffc48a; }
#yk-basla[hidden] { display: none; }
@keyframes yk-nabiz { 0% { box-shadow: 0 0 0 0 rgba(255,179,107,0.28); } 100% { box-shadow: 0 0 0 12px rgba(255,179,107,0); } }

/* Kalp sesi dugmesi: odak secicinin altinda, ayni dil. */
#ses { position: fixed; top: 190px; left: 30px; z-index: 12; display: inline-flex; align-items: center; gap: 8px;
  appearance: none; cursor: pointer; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,16,30,0.72); color: #b9c4d8; backdrop-filter: blur(6px);
  font: 500 11px/1 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; }
#ses .ikon { font-size: 14px; line-height: 1; }
#ses:hover { background: rgba(255,255,255,0.08); color: #e9eef7; }
#ses[aria-pressed="false"] { opacity: 0.7; }
@media (max-width: 900px) { #ses { top: 138px; left: 16px; } #ses .etiket { display: none; } }

/* Canli sinyal akisi karti — sol sutun, ses dugmesinin altinda. */
#akis { position: fixed; left: 30px; top: 240px; z-index: 12; width: 250px; padding: 14px 16px 12px;
  background: rgba(10,16,30,0.72); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(6px); }
.akis-baslik { font: 500 10px/1.4 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7fd3ff; margin-bottom: 12px; }
.akis-hat { display: flex; align-items: center; gap: 10px; }
.akis-uc { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.akis-kalp { color: #ffb36b; }
.akis-beyin { color: #7fd3ff; }
.akis-cizgi { position: relative; flex: 1; height: 40px; }
.akis-cizgi::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, rgba(255,179,107,0.6), rgba(255,255,255,0.18) 50%, rgba(127,211,255,0.6)); }
.akis-ekg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 5px;
  background: #0b1424; border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; color: #cdd6e6; display: grid; place-items: center; }
.akis-nokta { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  pointer-events: none; will-change: left, opacity; }
.akis-nokta.sicak { background: #ffb36b; box-shadow: 0 0 10px 3px rgba(255,179,107,0.55); }
.akis-nokta.soguk { background: #7fd3ff; box-shadow: 0 0 10px 3px rgba(127,211,255,0.55); }
.akis-aciklama { display: flex; gap: 14px; margin-top: 10px; font: 500 9.5px/1.4 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em; text-transform: uppercase; color: #8a97ad; }
.akis-aciklama span { display: inline-flex; align-items: center; gap: 6px; }
.akis-nk { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.akis-nk-kalp { background: #ffb36b; } .akis-nk-beyin { background: #7fd3ff; }
/* Telefonda yer yok: EKG paneli ve kart zaten ekrani dolduruyor. */
@media (max-width: 900px) { #akis { display: none; } }
