/* =====================================================================
   97 TEAM — INTERACTIVE LAYER v3 (mobile-first)
   Snake + 4 yeni oyun + chip command bar + scroll progress + sahte CV
   ===================================================================== */

/* ---------- Cursor uyumu — sitenin HER yerine zorla ---------- */
.ix-layer, .ix-layer *,
.ix-layer input, .ix-layer textarea, .ix-layer button, .ix-layer canvas,
.ix-layer select, .ix-layer label, .ix-layer a,
#ix-arcade-modal, #ix-arcade-modal *,
#ix-cmd-bar, #ix-cmd-bar *,
#ix-cv-modal, #ix-cv-modal *,
#ix-konami-overlay, #ix-konami-overlay *,
#ix-scroll-progress, #ix-scroll-progress *,
.ix-ach-toast, .ix-ach-toast *,
.ix-card-tip, .ix-card-tip *,
canvas, input, textarea, select, button[type], a[href] {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjMDBGRjAwIi8+CjxyZWN0IHg9IjIiIHk9IjIiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzAwMDAwMCIvPgo8L3N2Zz4K') 12 12, crosshair !important;
}

/* ============================== 1. ARCADE LAUNCHER ============================== */
#ix-arcade-launcher {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9000;
    background: #000;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 9px 14px;
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), inset 0 0 8px rgba(0, 255, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    min-height: 44px;
}
#ix-arcade-launcher:hover, #ix-arcade-launcher:active {
    background: #00FF00;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
}
#ix-arcade-launcher .ix-blink {
    width: 8px;
    height: 8px;
    background: #00FF00;
    animation: ixBlink 1s steps(2) infinite;
}
#ix-arcade-launcher:hover .ix-blink { background: #000; }
@keyframes ixBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.2; }
}

/* ============================== 2. ARCADE MODAL ============================== */
#ix-arcade-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Courier Prime', monospace;
}
#ix-arcade-modal.open { display: flex; animation: ixFadeIn 0.25s ease; }
@keyframes ixFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ix-arcade-window {
    width: 100%;
    max-width: 780px;
    max-height: 92vh;
    background: #050a05;
    border: 2px solid #00FF00;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.4), inset 0 0 30px rgba(0, 255, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.ix-arcade-window::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,0,0.04) 2px, rgba(0,255,0,0.04) 3px);
    z-index: 1;
}
.ix-arcade-window > * { position: relative; z-index: 2; }
.ix-arc-titlebar {
    background: linear-gradient(180deg, #001a00, #000800);
    border-bottom: 1px solid #00FF00;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #00FF00;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.08em;
    gap: 10px;
}
.ix-arc-titlebar .ix-title-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ix-arc-titlebar .ix-dots { display: flex; gap: 6px; flex-shrink: 0; }
.ix-arc-titlebar .ix-dots span {
    width: 10px; height: 10px;
    border: 1px solid #00FF00;
    background: #000;
}
.ix-arc-titlebar .ix-dots span:nth-child(2) { background: rgba(34,211,238,0.2); }
.ix-arc-titlebar .ix-dots span:nth-child(3) { background: rgba(250,204,21,0.2); }
.ix-arc-close {
    background: #000;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 4px 12px;
    font-weight: bold;
    font-family: inherit;
    font-size: 13px;
    min-height: 32px;
    min-width: 36px;
    flex-shrink: 0;
}
.ix-arc-close:hover, .ix-arc-close:active { background: #ef4444; color: #000; }

.ix-arc-tabs {
    display: flex;
    border-bottom: 1px solid #003300;
    background: #000;
    overflow-x: auto;
    scrollbar-width: none;
}
.ix-arc-tabs::-webkit-scrollbar { display: none; }
.ix-arc-tab {
    flex: 1;
    min-width: 110px;
    background: transparent;
    border: none;
    border-right: 1px solid #003300;
    color: #4ade80;
    padding: 12px 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    white-space: nowrap;
    min-height: 44px;
}
.ix-arc-tab:last-child { border-right: none; }
.ix-arc-tab:hover, .ix-arc-tab:active { background: rgba(0, 255, 0, 0.05); color: #00FF00; }
.ix-arc-tab.active {
    background: #001a00;
    color: #facc15;
    box-shadow: inset 0 -3px 0 #facc15;
}

.ix-arc-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    color: #4ade80;
    font-size: 13px;
    line-height: 1.6;
    min-height: 380px;
    -webkit-overflow-scrolling: touch;
}
.ix-arc-body h3 {
    color: #22d3ee;
    font-size: 14px;
    margin: 0 0 4px;
    letter-spacing: 0.08em;
}
.ix-arc-body p.ix-desc {
    color: #4ade80;
    font-size: 11px;
    margin: 0 0 12px;
    opacity: 0.85;
}
.ix-arc-footer {
    border-top: 1px solid #003300;
    background: #000;
    padding: 8px 14px;
    color: #4ade80;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    letter-spacing: 0.08em;
}
.ix-arc-footer .ix-stat-pill {
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
    padding: 2px 8px;
    background: rgba(250, 204, 21, 0.05);
}

/* ============================== 3. BUTTONS ============================== */
.ix-btn {
    background: #000;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 8px 16px;
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.08em;
    transition: all 0.15s ease;
    min-height: 40px;
    cursor: inherit;
}
.ix-btn:hover, .ix-btn:active { background: #00FF00; color: #000; }
.ix-btn.ix-btn-amber { border-color: #facc15; color: #facc15; }
.ix-btn.ix-btn-amber:hover, .ix-btn.ix-btn-amber:active { background: #facc15; color: #000; }
.ix-btn.ix-btn-red { border-color: #ef4444; color: #ef4444; }
.ix-btn.ix-btn-red:hover, .ix-btn.ix-btn-red:active { background: #ef4444; color: #fff; }
.ix-btn.ix-btn-cyan { border-color: #22d3ee; color: #22d3ee; }
.ix-btn.ix-btn-cyan:hover, .ix-btn.ix-btn-cyan:active { background: #22d3ee; color: #000; }

/* ============================== 4. GENERIC HUD ============================== */
.ix-hud {
    display: flex;
    justify-content: space-between;
    color: #facc15;
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.ix-hud span { color: #00FF00; }

/* ============================== 5. SNAKE ============================== */
.ix-snake-header {
    margin-bottom: 4px;
}
.ix-snake-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ix-snake-control-row .ix-ms-difficulty {
    margin-bottom: 0;
}
.ix-snake-control-row .ix-hud {
    margin-bottom: 0;
    gap: 16px;
}
#ix-snake-board {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 0;
    background: #000;
    border: 2px solid #00FF00;
    padding: 4px;
    aspect-ratio: 24 / 16;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    user-select: none;
    touch-action: none;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.15), inset 0 0 25px rgba(0, 255, 0, 0.05);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent calc(100%/16 - 1px), rgba(0, 255, 0, 0.06) calc(100%/16 - 1px), rgba(0, 255, 0, 0.06) calc(100%/24)),
        repeating-linear-gradient(90deg, transparent, transparent calc(100%/24 - 1px), rgba(0, 255, 0, 0.06) calc(100%/24 - 1px), rgba(0, 255, 0, 0.06) calc(100%/24));
}
#ix-snake-board .ix-cell {
    background: transparent;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(8px, 1.3vw, 13px);
    color: #000;
    font-weight: bold;
    font-family: 'Courier Prime', monospace;
    line-height: 1;
}
#ix-snake-board .ix-cell.head {
    position: relative;
    background: #00FF00;
    color: #000;
    box-shadow: 0 0 12px #00FF00, inset 0 0 4px rgba(255, 255, 255, 0.5);
    z-index: 3;
}
#ix-snake-board .ix-cell.head::before,
#ix-snake-board .ix-cell.head::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 2px #fff;
}
#ix-snake-board .ix-cell.head.dir-right { border-radius: 2px 6px 6px 2px; }
#ix-snake-board .ix-cell.head.dir-right::before { top: 25%; right: 25%; }
#ix-snake-board .ix-cell.head.dir-right::after  { bottom: 25%; right: 25%; }

#ix-snake-board .ix-cell.head.dir-left { border-radius: 6px 2px 2px 6px; }
#ix-snake-board .ix-cell.head.dir-left::before { top: 25%; left: 25%; }
#ix-snake-board .ix-cell.head.dir-left::after  { bottom: 25%; left: 25%; }

#ix-snake-board .ix-cell.head.dir-up { border-radius: 6px 6px 2px 2px; }
#ix-snake-board .ix-cell.head.dir-up::before { left: 25%; top: 25%; }
#ix-snake-board .ix-cell.head.dir-up::after  { right: 25%; top: 25%; }

#ix-snake-board .ix-cell.head.dir-down { border-radius: 2px 2px 6px 6px; }
#ix-snake-board .ix-cell.head.dir-down::before { left: 25%; bottom: 25%; }
#ix-snake-board .ix-cell.head.dir-down::after  { right: 25%; bottom: 25%; }

#ix-snake-board .ix-cell.body {
    background: linear-gradient(135deg, #009f00, #007700);
    border-radius: 3px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.4), 0 0 4px rgba(0, 255, 0, 0.05);
    z-index: 2;
}
#ix-snake-board .ix-cell.food {
    background: transparent;
    color: #facc15;
    font-size: clamp(12px, 2.5vw, 19px);
    text-shadow: 0 0 10px #facc15, 0 0 5px #facc15;
    font-weight: bold;
    animation: ixFoodPulse 0.7s ease-in-out infinite;
    z-index: 1;
}
@keyframes ixFoodPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #facc15); }
    50% { transform: scale(1.25); filter: drop-shadow(0 0 8px #facc15); }
}
.ix-snake-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    border: 2px solid transparent;
    animation: ixFadeIn 0.25s ease;
}
.ix-snake-overlay.over { border-color: #ef4444; color: #ef4444; }
.ix-snake-overlay.paused { border-color: #22d3ee; color: #22d3ee; }
.ix-snake-overlay .ix-ov-title {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.15em;
}
.ix-snake-overlay.over .ix-ov-title { text-shadow: 0 0 12px #ef4444; }
.ix-snake-overlay.paused .ix-ov-title { text-shadow: 0 0 12px #22d3ee; }

.ix-snake-dpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 172px;
    margin: 12px auto 0;
}
@media (hover: hover) and (pointer: fine) {
    .ix-snake-dpad { display: none; }
}
.ix-snake-dpad .ix-pad {
    background: rgba(0, 16, 0, 0.55);
    border: 2px solid #00FF00;
    color: #00FF00;
    aspect-ratio: 1;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.15), inset 0 0 8px rgba(0, 255, 0, 0.05);
    transition: all 0.1s ease;
}
.ix-snake-dpad .ix-pad:active {
    background: #00FF00;
    color: #000;
    transform: scale(0.9);
    box-shadow: 0 0 20px #00FF00;
}
.ix-snake-dpad .ix-pad.ix-pad-center {
    background: rgba(0, 25, 35, 0.6);
    border-color: #22d3ee;
    color: #22d3ee;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.15);
}
.ix-snake-dpad .ix-pad.ix-pad-center:active {
    background: #22d3ee;
    color: #000;
    box-shadow: 0 0 20px #22d3ee;
}
.ix-snake-dpad .ix-pad-empty { background: transparent; border: none; }

/* ============================== 6. CANVAS GAMES (Runner/Stack/Pong) ============================== */
.ix-canvas-wrap {
    position: relative;
    background: #000;
    border: 2px solid #00FF00;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 3/2;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 25px rgba(0, 255, 0, 0.04);
    touch-action: none;
    user-select: none;
}
.ix-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.ix-canvas-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #facc15;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    text-align: center;
    padding: 16px;
    z-index: 5;
}
.ix-canvas-overlay .ix-ov-title {
    font-size: clamp(18px, 4vw, 28px);
    color: #ef4444;
    letter-spacing: 0.15em;
}
.ix-canvas-overlay .ix-ov-sub {
    color: #00FF00;
    font-size: 13px;
    margin-top: 10px;
    max-width: 80%;
}
.ix-canvas-overlay.start .ix-ov-title { color: #22d3ee; }
.ix-canvas-tap-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 255, 0, 0.5);
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    pointer-events: none;
    animation: ixBlink 1.2s steps(2) infinite;
}

/* ============================== 7. MINESWEEPER ============================== */
.ix-ms-wrap {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
.ix-ms-grid {
    display: grid;
    gap: 2px;
    background: #001a00;
    padding: 4px;
    border: 1px solid #00FF00;
    user-select: none;
    touch-action: manipulation;
}
.ix-ms-cell {
    background: #002200;
    border: 1px solid #004400;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    font-size: clamp(10px, 3vw, 16px);
    color: #00FF00;
    min-height: 28px;
    min-width: 28px;
}
.ix-ms-cell:hover { background: #003300; }
.ix-ms-cell.open {
    background: #000;
    border-color: #003300;
}
.ix-ms-cell.flag {
    background: #1a0000;
    border-color: #ef4444;
    color: #ef4444;
}
.ix-ms-cell.mine {
    background: #ef4444;
    color: #000;
    border-color: #fff;
}
.ix-ms-cell.n1 { color: #22d3ee; }
.ix-ms-cell.n2 { color: #00FF00; }
.ix-ms-cell.n3 { color: #facc15; }
.ix-ms-cell.n4 { color: #f97316; }
.ix-ms-cell.n5 { color: #ec4899; }
.ix-ms-cell.n6 { color: #a855f7; }
.ix-ms-cell.n7 { color: #ef4444; }
.ix-ms-cell.n8 { color: #fff; }

.ix-ms-difficulty {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.ix-ms-difficulty button {
    background: #000;
    border: 1px solid #003300;
    color: #4ade80;
    padding: 6px 12px;
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    font-weight: bold;
    min-height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ix-ms-difficulty button:hover {
    border-color: #22d3ee;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
}
.ix-ms-difficulty button.active {
    border-color: #facc15;
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
}
.ix-ms-difficulty button.active:hover {
    background: rgba(250, 204, 21, 0.18);
}

/* ============================== 8. COMMAND BAR ============================== */
#ix-cmd-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 130%);
    z-index: 9000;
    width: calc(100% - 32px);
    max-width: 720px;
    background: rgba(0, 0, 0, 0.97);
    border: 2px solid #00FF00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    font-family: 'Courier Prime', monospace;
    transition: transform 0.25s ease;
    backdrop-filter: blur(10px);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}
#ix-cmd-bar.open { transform: translate(-50%, 0); }
.ix-cmd-output {
    overflow-y: auto;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.65;
    border-bottom: 1px solid #003300;
    max-height: 40vh;
}
.ix-cmd-output:empty { display: none; }
.ix-cmd-output .ix-line { color: #4ade80; word-break: break-word; }
.ix-cmd-output .ix-line.user { color: #22d3ee; }
.ix-cmd-output .ix-line.ok { color: #00FF00; }
.ix-cmd-output .ix-line.warn { color: #facc15; }
.ix-cmd-output .ix-line.err { color: #ef4444; }
.ix-cmd-output .ix-line.dim { color: #335533; }
.ix-cmd-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #003300;
}
.ix-cmd-prompt .ix-prefix {
    color: #22d3ee;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}
.ix-cmd-prompt input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00FF00;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    caret-color: #00FF00;
    min-height: 28px;
}
.ix-cmd-chips {
    padding: 8px 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.ix-cmd-chips::-webkit-scrollbar { height: 4px; }
.ix-cmd-chips::-webkit-scrollbar-thumb { background: #003300; }
.ix-cmd-chip {
    flex-shrink: 0;
    background: #001500;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 7px 12px;
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    min-height: 36px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ix-cmd-chip:hover, .ix-cmd-chip:active {
    background: #00FF00;
    color: #000;
}
.ix-cmd-chip.amber { border-color: #facc15; color: #facc15; }
.ix-cmd-chip.amber:hover, .ix-cmd-chip.amber:active { background: #facc15; color: #000; }
.ix-cmd-chip.cyan { border-color: #22d3ee; color: #22d3ee; }
.ix-cmd-chip.cyan:hover, .ix-cmd-chip.cyan:active { background: #22d3ee; color: #000; }

#ix-cmd-toggle {
    position: fixed;
    left: 16px;
    bottom: 70px;
    z-index: 9000;
    background: #000;
    border: 2px solid #22d3ee;
    color: #22d3ee;
    padding: 8px 12px;
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.3);
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
}
#ix-cmd-toggle:hover, #ix-cmd-toggle:active {
    background: #22d3ee;
    color: #000;
}

/* ============================== 9. ACHIEVEMENT TOASTS ============================== */
#ix-ach-stack {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9700;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 320px;
}
.ix-ach-toast {
    background: #000;
    border: 2px solid #facc15;
    color: #facc15;
    padding: 10px 14px;
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.5), inset 0 0 12px rgba(250, 204, 21, 0.1);
    transform: translateX(110%);
    transition: transform 0.35s ease;
    pointer-events: auto;
    min-width: 240px;
}
.ix-ach-toast.show { transform: translateX(0); }
.ix-ach-toast .ix-ach-title { color: #fff; font-size: 10px; letter-spacing: 0.15em; border-bottom: 1px solid rgba(250, 204, 21, 0.3); padding-bottom: 3px; margin-bottom: 5px; }
.ix-ach-toast .ix-ach-name { color: #facc15; font-weight: bold; font-size: 13px; }
.ix-ach-toast .ix-ach-desc { color: #4ade80; font-size: 10px; margin-top: 2px; }

/* ============================== 10. CARD HOVER TIP ============================== */
.ix-card-tip {
    position: fixed;
    z-index: 9100;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #22d3ee;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
    color: #4ade80;
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    line-height: 1.7;
    padding: 8px 12px;
    pointer-events: none;
    max-width: 260px;
    display: none;
}
.ix-card-tip.show { display: block; }
.ix-card-tip .ix-tip-h { color: #22d3ee; font-weight: bold; font-size: 11px; border-bottom: 1px solid #003366; padding-bottom: 3px; margin-bottom: 4px; letter-spacing: 0.08em; }
.ix-card-tip .ix-tip-k { color: #6b7280; }
.ix-card-tip .ix-tip-v { color: #00FF00; }
.ix-card-tip .ix-tip-bar { display: inline-block; height: 6px; background: #00FF00; vertical-align: middle; margin-left: 4px; box-shadow: 0 0 5px #00FF00; }

/* ============================== 11. KONAMI OVERLAY ============================== */
#ix-konami-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Courier Prime', monospace;
    color: #facc15;
    pointer-events: none;
    padding: 16px;
    text-align: center;
}
#ix-konami-overlay.show { display: flex; animation: ixFadeIn 0.3s; }
#ix-konami-overlay .ix-k-big {
    font-size: clamp(22px, 5vw, 56px);
    font-weight: bold;
    letter-spacing: 0.08em;
    text-shadow: 0 0 20px #facc15;
    animation: ixGlitchK 0.4s steps(3) infinite;
}
#ix-konami-overlay .ix-k-sub {
    margin-top: 12px;
    color: #00FF00;
    font-size: 13px;
    letter-spacing: 0.15em;
}
@keyframes ixGlitchK {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-3px, 1px); color: #ef4444; }
    66% { transform: translate(3px, -1px); color: #22d3ee; }
    100% { transform: translate(0, 0); color: #facc15; }
}

/* ============================== 12. SIDE SCROLL PROGRESS ============================== */
#ix-scroll-progress {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 50;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0 100px;
    box-sizing: border-box;
    font-family: 'Courier Prime', monospace;
    color: #00FF00;
}
#ix-scroll-progress .ix-sp-track {
    flex: 1;
    width: 4px;
    background: rgba(0, 255, 0, 0.08);
    border-radius: 2px;
    position: relative;
}
#ix-scroll-progress .ix-sp-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #00FF00, #22d3ee);
    box-shadow: 0 0 12px #00FF00;
    height: 0%;
    border-radius: 2px;
}
#ix-scroll-progress .ix-sp-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    letter-spacing: 0.3em;
    margin-bottom: 6px;
    color: #00FF00;
    text-transform: uppercase;
}
#ix-scroll-progress .ix-sp-pct {
    margin-top: 6px;
    font-size: 9px;
    color: #facc15;
    font-weight: bold;
}
@media (max-width: 640px) {
    #ix-scroll-progress { width: 20px; padding: 70px 0; }
    #ix-scroll-progress .ix-sp-label { font-size: 8px; letter-spacing: 0.2em; }
}

/* ============================== 13. SAHTE CV MODAL ============================== */
#ix-cv-modal {
    position: fixed;
    inset: 0;
    z-index: 9600;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Courier Prime', monospace;
}
#ix-cv-modal.open { display: flex; animation: ixFadeIn 0.25s; }
.ix-cv-window {
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    background: #000;
    border: 2px solid #ef4444;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.ix-cv-titlebar {
    background: linear-gradient(180deg, #1a0000, #000);
    border-bottom: 1px solid #ef4444;
    padding: 10px 14px;
    color: #ef4444;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: ixCvAlarm 1.2s ease-in-out infinite;
}
@keyframes ixCvAlarm {
    0%, 100% { box-shadow: inset 0 -3px 0 #ef4444, 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: inset 0 -3px 0 #ef4444, 0 0 25px rgba(239, 68, 68, 0.5); }
}
.ix-cv-close {
    background: #000;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 4px 12px;
    font-family: inherit;
    font-weight: bold;
    font-size: 13px;
}
.ix-cv-body {
    padding: 18px;
    overflow-y: auto;
    font-size: 12px;
    color: #4ade80;
    line-height: 1.7;
}
.ix-cv-body .ix-cv-section { margin-bottom: 16px; }
.ix-cv-body .ix-cv-h {
    color: #ef4444;
    font-size: 11px;
    letter-spacing: 0.15em;
    border-bottom: 1px dashed #4a0000;
    padding-bottom: 3px;
    margin-bottom: 6px;
}
.ix-cv-body .ix-cv-row { display: flex; gap: 12px; }
.ix-cv-body .ix-cv-row .ix-k { color: #6b7280; width: 100px; flex-shrink: 0; }
.ix-cv-body .ix-cv-row .ix-v { color: #00FF00; }
.ix-cv-body .ix-cv-row .ix-v.warn { color: #facc15; }
.ix-cv-body .ix-cv-row .ix-v.danger { color: #ef4444; }
.ix-cv-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border: 4px solid #ef4444;
    color: #ef4444;
    padding: 6px 22px;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 0.2em;
    opacity: 0.55;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}
.ix-cv-leak-banner {
    background: rgba(239, 68, 68, 0.15);
    border-bottom: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 14px;
    font-size: 10px;
    text-align: center;
    letter-spacing: 0.1em;
    animation: ixBlink 1s steps(2) infinite;
}

/* ============================== 14. HACK PROGRESS NOTIFY ============================== */
.ix-hack-flash {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 24px 36px;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 0.2em;
    z-index: 9800;
    box-shadow: 0 0 40px #00FF00;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
.ix-hack-flash.show { opacity: 1; }
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 24px 36px;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 0.2em;
    z-index: 9800;
    box-shadow: 0 0 40px #00FF00;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
.ix-hack-flash.show { opacity: 1; }

/* ============================== 16. FEEDBACK / DILEK_BOX ============================== */
#ix-fb-modal {
    position: fixed;
    inset: 0;
    z-index: 9650;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Courier Prime', monospace;
}
#ix-fb-modal.open { display: flex; animation: ixFadeIn 0.25s; }
.ix-fb-window {
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    background: #050a05;
    border: 2px solid #22d3ee;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.ix-fb-window::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(34, 211, 238, 0.04) 2px, rgba(34, 211, 238, 0.04) 3px);
    z-index: 1;
}
.ix-fb-window > * { position: relative; z-index: 2; }
.ix-fb-titlebar {
    background: linear-gradient(180deg, #001a1f, #000); 
    border-bottom: 1px solid #22d3ee;
    padding: 10px 14px;
    color: #22d3ee;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.ix-fb-titlebar .ix-fb-tit-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-fb-close {
    background: #000;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 4px 12px;
    font-family: inherit;
    font-weight: bold;
    font-size: 13px;
    min-height: 32px;
}
.ix-fb-close:hover, .ix-fb-close:active { background: #ef4444; color: #000; }
.ix-fb-banner {
    background: rgba(34, 211, 238, 0.08);
    border-bottom: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
    padding: 6px 14px;
    font-size: 10px;
    text-align: center;
    letter-spacing: 0.1em;
}
.ix-fb-banner .ix-fb-live {
    display: inline-block;
    width: 7px; height: 7px;
    background: #00FF00;
    border-radius: 50%;
    box-shadow: 0 0 6px #00FF00;
    margin-right: 6px;
    animation: ixBlink 1.2s steps(2) infinite;
}
.ix-fb-body {
    padding: 18px;
    overflow-y: auto;
    color: #4ade80;
    font-size: 12px;
    line-height: 1.6;
}
.ix-fb-row { margin-bottom: 14px; }
.ix-fb-label {
    color: #facc15;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}
.ix-fb-radios, .ix-fb-stars {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ix-fb-radios label {
    background: #000;
    border: 1px solid #003300;
    color: #4ade80;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ix-fb-radios label.checked {
    border-color: #22d3ee;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}
.ix-fb-radios input { display: none; }
.ix-fb-stars button {
    background: #000;
    border: 1px solid #003300;
    color: #335533;
    width: 40px;
    height: 40px;
    font-size: 22px;
    font-weight: bold;
    padding: 0;
    transition: all 0.15s;
}
.ix-fb-stars button.on {
    color: #facc15;
    border-color: #facc15;
    text-shadow: 0 0 8px #facc15;
}
.ix-fb-stars button:hover { color: #facc15; border-color: #facc15; }
.ix-fb-input, .ix-fb-textarea {
    width: 100%;
    background: #000;
    border: 1px solid #003300;
    color: #00FF00;
    padding: 10px 12px;
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    min-height: 40px;
}
.ix-fb-input:focus, .ix-fb-textarea:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}
.ix-fb-textarea { resize: vertical; min-height: 100px; }
.ix-fb-counter {
    text-align: right;
    font-size: 10px;
    color: #4ade80;
    margin-top: 4px;
    letter-spacing: 0.1em;
}
.ix-fb-counter.warn { color: #facc15; }
.ix-fb-counter.full { color: #ef4444; }
.ix-fb-anon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: 12px;
    padding: 6px 0;
    cursor: inherit;
}
.ix-fb-anon input {
    width: 18px; height: 18px;
    accent-color: #22d3ee;
}
.ix-fb-submit {
    width: 100%;
    background: #000;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 12px;
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.12em;
    margin-top: 8px;
    min-height: 48px;
    box-shadow: 0 0 18px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 255, 0, 0.05);
}
.ix-fb-submit:hover, .ix-fb-submit:active {
    background: #00FF00; color: #000;
}
.ix-fb-submit:disabled {
    opacity: 0.5;
    background: #001500;
    color: #335533;
    border-color: #335533;
}

/* PACKET_SENT animation */
.ix-fb-sent {
    padding: 30px 20px;
    text-align: center;
    color: #00FF00;
    font-family: 'Courier Prime', monospace;
}
.ix-fb-sent .ix-fb-sent-lines {
    text-align: left;
    background: #000;
    border: 1px solid #003300;
    padding: 14px 16px;
    margin: 18px 0;
    min-height: 140px;
    font-size: 12px;
    line-height: 1.7;
}
.ix-fb-sent .ix-fb-sent-lines .ix-l { color: #4ade80; }
.ix-fb-sent .ix-fb-sent-lines .ix-l.ok { color: #00FF00; }
.ix-fb-sent .ix-fb-sent-lines .ix-l.warn { color: #facc15; }
.ix-fb-sent .ix-fb-final {
    color: #facc15;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px #facc15;
    margin-top: 8px;
}

/* Admin feedback list */
.ix-fb-admin-pwd {
    padding: 24px;
    text-align: center;
}
.ix-fb-admin-pwd input {
    background: #000;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 10px 14px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.2em;
    width: 80%;
    max-width: 280px;
    margin: 12px 0;
    outline: none;
}
.ix-fb-admin-pwd input:focus { box-shadow: 0 0 15px rgba(239,68,68,0.4); }
.ix-fb-list { padding: 14px 16px; }
.ix-fb-item {
    background: #000;
    border: 1px solid #003300;
    border-left: 3px solid #22d3ee;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.ix-fb-item .ix-fb-item-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    color: #4ade80;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    border-bottom: 1px dashed #003300;
    padding-bottom: 4px;
}
.ix-fb-item .ix-fb-cat {
    color: #facc15;
    font-weight: bold;
}
.ix-fb-item .ix-fb-rating { color: #facc15; font-weight: bold; }
.ix-fb-item .ix-fb-msg { color: #00FF00; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.ix-fb-item .ix-fb-meta { color: #6b7280; font-size: 10px; margin-top: 6px; }
.ix-fb-item.bug { border-left-color: #ef4444; }
.ix-fb-item.ozellik { border-left-color: #facc15; }
.ix-fb-item.sikayet { border-left-color: #f97316; }
.ix-fb-item.tesekkur { border-left-color: #00FF00; }

/* Inline feedback button (injected to SYSTEM CONNECTION) */
.ix-fb-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    border: 2px solid #22d3ee;
    color: #22d3ee;
    padding: 10px 18px;
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-top: 16px;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
    transition: all 0.2s;
    min-height: 44px;
}
.ix-fb-trigger:hover, .ix-fb-trigger:active {
    background: #22d3ee;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.6);
}
.ix-fb-trigger .ix-fb-trigger-dot {
    width: 8px; height: 8px;
    background: #22d3ee;
    border-radius: 50%;
    animation: ixBlink 1.2s steps(2) infinite;
}
.ix-fb-trigger:hover .ix-fb-trigger-dot { background: #000; }

@media (max-width: 640px) {
    .ix-fb-window { max-height: 100vh; height: 100vh; max-width: 100%; }
    .ix-fb-radios label { padding: 6px 8px; font-size: 10px; }
    .ix-fb-stars button { width: 36px; height: 36px; font-size: 18px; }
}

@media (max-width: 640px) {
    #ix-arcade-launcher { font-size: 11px; padding: 8px 12px; left: 8px; bottom: 8px; }
    #ix-cmd-toggle { left: 8px; bottom: 58px; padding: 6px 10px; font-size: 10px; }
    #ix-arcade-modal, #ix-fb-modal, #ix-cv-modal { padding: 0; }
    .ix-arcade-window { max-width: 100%; max-height: 100vh; height: 100vh; border-width: 0; border-top: 2px solid #00FF00; border-bottom: 2px solid #00FF00; }
    .ix-arc-body { padding: 12px; min-height: 0; }
    .ix-arc-tab { font-size: 10px; padding: 10px 6px; min-width: 90px; }
    #ix-ach-stack { right: 8px; left: 8px; top: 12px; bottom: auto; max-width: none; }
    .ix-ach-toast { min-width: 0; transform: translateY(-150%); }
    .ix-ach-toast.show { transform: translateY(0); }
    .ix-cv-window { max-height: 100vh; height: 100vh; max-width: 100%; }
    #ix-cmd-bar { width: calc(100% - 16px); bottom: 8px; max-height: 85vh; }
    .ix-canvas-wrap { aspect-ratio: 4/3; }
    /* Card tip → mobilde rahatsız etmesin, dokunmatikte gizle */
    .ix-card-tip { display: none !important; }
    
    /* Prevent Minesweeper cells from overflowing narrow viewports */
    .ix-ms-cell { min-width: 0; min-height: 0; }
    
    /* Prevent iOS Safari input focus layout auto-zooming */
    .ix-cmd-prompt input,
    .ix-fb-input,
    .ix-fb-textarea,
    .ix-fb-admin-pwd input {
        font-size: 16px !important;
    }
    
    /* Mobil Snake Layout Optimizasyonu */
    .ix-snake-header {
        margin-bottom: 2px;
    }
    .ix-snake-header h3 {
        font-size: 12px;
        margin: 0;
    }
    .ix-snake-header p.ix-desc {
        display: none !important;
    }
    .ix-snake-control-row {
        gap: 6px;
        margin-bottom: 8px;
    }
    .ix-snake-control-row .ix-ms-difficulty button {
        padding: 4px 8px;
        font-size: 9px;
        min-height: 28px;
    }
    .ix-snake-control-row .ix-hud {
        font-size: 11px;
        gap: 8px;
    }
    .ix-snake-dpad {
        width: 136px;
        margin: 8px auto 0;
        gap: 4px;
    }
    .ix-snake-dpad .ix-pad {
        font-size: 16px;
        min-height: 42px;
        min-width: 42px;
        border-radius: 8px;
    }
    .ix-snake-dpad .ix-pad.ix-pad-center {
        font-size: 12px;
    }
}
