/* Gece sokağı: mor-lacivert zemin, asfalt grisi paneller, ayçiçeği sarısı vurgu. Butonlar oyundaki katmanlı çizimle uyumlu kalın tuşlar: alttaki gölge basınca kaybolur. */ :root { --bg: #251f3a; --panel: #342c4f; --panel-edge: #1c1730; --key: #46506a; --key-edge: #2c3346; --text: #fff6e6; --muted: #b8b0cc; --sun: #ffc93c; --sun-edge: #c8901a; --stop: #e2483d; --stop-edge: #9e2a22; --ok: #5fd3a5; --cini: #2f6fb2; --font: "Baloo 2", system-ui, sans-serif; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); } body { overflow: hidden; -webkit-tap-highlight-color: transparent; } /* HUD üstte, oyun alanı kalan yeri doldurur; butonlar oyun alanının üstünde saydam durur */ #app { height: 100dvh; display: grid; grid-template-rows: auto 1fr; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); } #hud { display: flex; align-items: center; gap: 10px; padding: 8px 10px 6px; font-weight: 800; } #hud-level { white-space: nowrap; padding: 2px 12px; border-radius: 999px; background: var(--panel); box-shadow: 0 3px 0 var(--panel-edge); font-size: 0.95rem; } #hud-timebar { flex: 1; height: 14px; background: var(--panel-edge); border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.25); } #hud-time { height: 100%; width: 100%; background: var(--ok); border-radius: 999px; transition: background 0.3s; } .hud-btn { display: grid; place-items: center; width: 36px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: 0 3px 0 var(--panel-edge); cursor: pointer; } .hud-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--panel-edge); } #hud-score { min-width: 4ch; text-align: right; font-size: 1.35rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--sun); } #hud-mic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); transition: color 0.15s, background 0.15s; } #hud-mic[hidden] { display: none; } #hud-mic.on { color: #10261d; background: var(--ok); } #debug { position: absolute; left: 6px; top: 6px; right: 6px; z-index: 5; padding: 4px 6px; font: 600 11px/1.3 ui-monospace, monospace; color: #fff; background: rgba(0, 0, 0, 0.6); border-radius: 6px; pointer-events: none; white-space: pre-line; } #debug[hidden] { display: none; } #stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; overflow: hidden; padding: 2px 6px 10px; } #board { position: relative; flex: none; } #cv { display: block; border-radius: 18px; touch-action: none; box-shadow: 0 6px 0 var(--panel-edge), 0 18px 40px rgba(0, 0, 0, 0.35); } #toast { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.9); padding: 8px 20px; border-radius: 16px; background: var(--text); color: var(--bg); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); font-size: 1.5rem; font-weight: 800; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 0.15s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); text-align: center; } #toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); } #toast small { display: block; font-size: 1rem; font-weight: 700; opacity: 0.75; } #toast.small { font-size: 1rem; top: 14%; white-space: normal; max-width: 90%; } /* ekran butonları: klavyedeki ok tuşları gibi tek küme, saydam; komut gelince yanıp söner */ #pad { position: absolute; right: 12px; bottom: 12px; pointer-events: none; user-select: none; -webkit-user-select: none; touch-action: none; } #app.no-controls #pad { display: none; } .keys { --k: clamp(46px, 13vmin, 62px); display: grid; grid-template-columns: repeat(3, var(--k)); grid-template-rows: var(--k) var(--k) calc(var(--k) * 0.7); grid-template-areas: ". up ." "left down right" "space space space"; gap: 6px; } .k-up { grid-area: up; } .k-left { grid-area: left; } .k-down { grid-area: down; } .k-right { grid-area: right; } .k-space { grid-area: space; } .keys button { pointer-events: auto; touch-action: none; display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 12px; border: 1.5px solid rgba(255, 246, 230, 0.35); background: rgba(37, 31, 58, 0.38); color: rgba(255, 246, 230, 0.9); box-shadow: 0 4px 0 rgba(20, 16, 34, 0.45); font: inherit; font-weight: 800; font-size: 0.95rem; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: background 0.18s, transform 0.18s, box-shadow 0.18s, color 0.18s, border-color 0.18s; } .keys .k-space { border-color: rgba(226, 72, 61, 0.65); background: rgba(226, 72, 61, 0.3); } .keys button.lit, .keys button.held { background: rgba(255, 201, 60, 0.88); border-color: var(--sun); color: var(--bg); transform: translateY(3px); box-shadow: 0 1px 0 rgba(20, 16, 34, 0.45); transition-duration: 0.04s; } .keys .k-space.lit, .keys .k-space.held { background: rgba(226, 72, 61, 0.92); border-color: var(--stop); color: var(--text); } /* hız kadranı: sol altta, butonlarla aynı saydam dil */ #gauge { position: absolute; left: 12px; bottom: 12px; width: clamp(84px, 22vmin, 112px); pointer-events: none; } #gauge svg { display: block; width: 100%; height: auto; overflow: visible; } .g-face { fill: rgba(37, 31, 58, 0.5); stroke: rgba(255, 246, 230, 0.35); stroke-width: 1.5; } .g-track, .g-arc { fill: none; stroke-width: 6; stroke-linecap: round; } .g-track { stroke: rgba(255, 246, 230, 0.14); } .g-arc { stroke: var(--sun); stroke-dasharray: 0 100; } .g-arc.rev { stroke: #c9e6ff; } .g-tick { stroke: rgba(255, 246, 230, 0.55); stroke-width: 1.4; stroke-linecap: round; } .g-tick.major { stroke: rgba(255, 246, 230, 0.9); stroke-width: 2; } .g-label { fill: rgba(255, 246, 230, 0.75); font: 700 7.5px var(--font); text-anchor: middle; dominant-baseline: middle; } .g-needle { fill: var(--stop); } .g-hub { fill: var(--text); } .g-num { fill: var(--text); font: 800 15px var(--font); text-anchor: middle; font-variant-numeric: tabular-nums; } .g-unit { fill: var(--muted); font: 600 7px var(--font); text-anchor: middle; } #g-gear { position: absolute; right: -4px; top: -4px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.85rem; background: var(--stop); color: var(--text); box-shadow: 0 3px 0 var(--stop-edge); } #g-gear.d { background: var(--ok); color: var(--bg); box-shadow: 0 3px 0 #3a9a74; } #g-gear.r { background: var(--text); color: var(--bg); box-shadow: 0 3px 0 #b9ad98; } button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; } .screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(37, 31, 58, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 16px; z-index: 10; } .screen.hidden { display: none; } .card { background: var(--panel); border-radius: 24px; padding: 24px 22px 20px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 8px 0 var(--panel-edge), 0 24px 60px rgba(0, 0, 0, 0.4); max-height: calc(100dvh - 32px); overflow-y: auto; } .card h1 { margin: 0 0 6px; font-size: 2.3rem; line-height: 0.95; font-weight: 800; color: var(--sun); text-shadow: 0 4px 0 var(--sun-edge); } .card h2 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; } .lead { margin: 8px 0 14px; line-height: 1.35; } /* menü butonları: kalın tuş, basınca alttaki gölge kaybolur */ .card button { font: inherit; font-weight: 800; border: 0; color: var(--text); cursor: pointer; touch-action: manipulation; background: var(--key); box-shadow: 0 5px 0 var(--key-edge); transition: transform 0.06s, box-shadow 0.06s; } .card button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--key-edge); } .card button { display: block; width: 100%; margin: 12px 0 0; padding: 12px; font-size: 1.15rem; border-radius: 16px; } .card button.primary { background: var(--sun); color: var(--bg); box-shadow: 0 5px 0 var(--sun-edge); } .card button.primary:active { box-shadow: 0 1px 0 var(--sun-edge); } /* başlangıçtaki anlatım: oyundaki tuş kümesinin aynısı, üstünde sesli komutlar */ .legend-title { margin: 4px 0 8px; font-weight: 700; } .keys.legend { --k: 84px; grid-template-rows: 62px 54px 40px; justify-content: center; margin: 0 auto; } .keys.legend span { display: grid; place-items: center; text-align: center; padding: 0 4px; border-radius: 12px; line-height: 1.05; border: 1.5px solid rgba(255, 246, 230, 0.35); background: rgba(37, 31, 58, 0.55); box-shadow: 0 4px 0 rgba(20, 16, 34, 0.45); font-weight: 800; font-size: 0.82rem; color: var(--text); } .keys.legend .k-space { border-color: rgba(226, 72, 61, 0.65); background: rgba(226, 72, 61, 0.3); } .legend-note { margin-top: 12px; } /* seviye: numara solda ortada, adı ve ipucu sağda ortada; uzun ipucu alt satıra kayar */ .levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .levels li { display: flex; } .card .levels button { margin: 0; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; text-align: left; line-height: 1.15; } .lv-num { color: var(--sun); font-size: 1.6rem; line-height: 1; min-width: 1ch; text-align: center; } .lv-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; } .lv-text b { font-size: 1.05rem; } .lv-text small { font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-top: 2px; overflow-wrap: anywhere; } kbd { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 0 8px; border-radius: 8px; background: var(--key); box-shadow: 0 2px 0 var(--key-edge); } .small { font-size: 0.8rem; color: var(--muted); line-height: 1.35; margin: 10px 0 0; } .small a { color: var(--muted); } .big { font-size: 3.4rem; font-weight: 800; margin: 0; line-height: 1; color: var(--sun); text-shadow: 0 4px 0 var(--sun-edge); } .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; } .stats div { background: var(--panel-edge); border-radius: 14px; padding: 6px 4px; } .stats b { display: block; font-size: 1.4rem; line-height: 1.2; } .stats span { color: var(--muted); font-size: 0.85rem; } .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .row button { font-size: 1rem; } .settings { display: grid; gap: 8px; text-align: left; } .settings label { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 10px 14px; border-radius: 14px; background: var(--panel-edge); font-weight: 700; } .settings small { display: block; font-weight: 500; color: var(--muted); font-size: 0.85rem; line-height: 1.2; } /* anahtar görünümlü onay kutusu */ .settings input { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; margin: 0; border-radius: 999px; background: var(--key); position: relative; cursor: pointer; transition: background 0.15s; } .settings input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); transition: transform 0.15s; } .settings input:checked { background: var(--ok); } .settings input:checked::after { transform: translateX(20px); } .settings input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; } .about { text-align: left; } .about h2 { text-align: center; } .about p { line-height: 1.4; margin: 0 0 10px; } .about a { color: var(--sun); } .credits { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--panel-edge); font-size: 0.9rem; } .credits dt { color: var(--muted); } .credits dd { margin: 0; } progress { width: 100%; height: 14px; accent-color: var(--sun); } @media (prefers-reduced-motion: reduce) { #toast, .keys button, .card button, .settings input, .settings input::after { transition: none; } } .tdk { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid var(--sun); border-radius: 12px; background: var(--panel-edge); font-size: 0.92rem; } .tdk p { margin: 0 0 4px; } .tdk i { color: var(--muted); } .tdk cite { display: block; margin-top: 6px; font-size: 0.8rem; font-style: normal; text-align: right; } .author { margin: 12px 0 4px; text-align: center; font-size: 0.9rem; } .author p { margin: 0 0 4px; } .author .links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; } [hidden] { display: none !important; } .version { margin: 12px -4px -6px; padding-top: 8px; border-top: 1px solid var(--panel-edge); font-size: 0.72rem; color: var(--muted); text-align: center; opacity: 0.8; } /* kısa ekranlar (telefon dikey): ana menü kaydırmadan sığsın */ @media (max-height: 880px) { .screen { padding: 10px; } .card { padding: 16px 16px 12px; max-height: calc(100dvh - 20px); } .card h1 { font-size: 1.9rem; } .lead { margin: 4px 0 8px; font-size: 0.95rem; } .legend-title { margin: 2px 0 6px; font-size: 0.9rem; } .keys.legend { --k: 76px; grid-template-rows: 54px 46px 34px; } .keys.legend span { font-size: 0.76rem; } .legend-note { margin-top: 8px; } .small { font-size: 0.72rem; margin-top: 8px; } .card button { margin-top: 9px; padding: 9px; font-size: 1.05rem; } .version { margin-top: 8px; padding-top: 6px; } } @media (max-height: 720px) { .legend-note, #screen-start .card > p.small:not(.legend-note) { display: none; } .keys.legend { --k: 70px; grid-template-rows: 46px 40px 30px; } .card h1 { font-size: 1.7rem; } } /* butonlar ve kadran: yatayda oyunun üstünde saydam; dikey ekranda (telefon) oyunun altında ayrı panelde, böylece park yerlerinin üstünü örtmezler */ #deck { position: absolute; inset: 0; pointer-events: none; } @media (orientation: portrait) { #board { display: flex; flex-direction: column; } #deck { position: static; display: flex; align-items: center; justify-content: space-between; padding: 12px 2px 0; } #deck #pad { position: static; } #deck #gauge { position: relative; left: auto; bottom: auto; } /* vites rozeti kadrana göre konumlanır */ #gauge { order: -1; width: clamp(96px, 28vw, 128px); } #pad .keys { --k: clamp(50px, 15vw, 64px); } }