/* Yılan — rekoroyun.com (2026-11-11; 1.10 görsel yenileme: bahçe teması, simgeli üst bant, oyuna özel menü) */
:root {
  --zemin1: #13503a; --zemin2: #05201a;
  --kart: rgba(10, 38, 28, .94); --kart-kenar: rgba(255, 214, 92, .3);
  --sari: #ffd25a; --turuncu: #ff9d2e; --yesil: #5fd36a; --metin: #f4f7ee; --soluk: #a9c4b4;
  --ust: 56px; --ui: 16px; --mk: calc(var(--ui) * 3.6);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(120, 200, 110, .14), transparent 45%),
    radial-gradient(ellipse at 85% 95%, rgba(255, 210, 90, .07), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.025'%3E%3Cpath d='M20 30c8-10 22-10 26 0-8 10-22 10-26 0z'/%3E%3Cpath d='M80 85c8-10 22-10 26 0-8 10-22 10-26 0z'/%3E%3Cpath d='M75 20c4-9 15-11 19-4-4 9-15 11-19 4z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 35%, var(--zemin1), var(--zemin2) 78%);
  color: var(--metin); font-family: "Fredoka", "Trebuchet MS", Arial, sans-serif; font-weight: 500;
  user-select: none; -webkit-user-select: none; overscroll-behavior: none;
}
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; }
svg { display: block; }

#kap { position: absolute; inset: 0; display: flex; flex-direction: column; touch-action: none; }
/* ---- üst bant: simgeli rozetler ---- */
#ust {
  flex: 0 0 var(--ust); height: var(--ust); display: flex; align-items: center; gap: calc(var(--ust) * .14);
  padding: 0 calc(var(--ust) * .16); background: linear-gradient(rgba(6, 30, 22, .92), rgba(5, 24, 18, .88)); border-bottom: 1px solid rgba(255, 210, 90, .16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); position: relative; z-index: 3;
}
.ikon {
  width: calc(var(--ust) * .74); height: calc(var(--ust) * .74); flex: 0 0 auto; border-radius: 30%;
  background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 0 rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s;
}
.ikon:hover { background: rgba(255, 255, 255, .18); }
.ikon:active { transform: scale(.92); }
.ikon svg { width: 60%; height: 60%; fill: none; stroke: #e9f5e4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#b-ses .carpi { display: none; }
#b-ses.kapali .dalga { display: none; }
#b-ses.kapali .carpi { display: block; stroke: #ff7a6b; }
.rekor-dugme svg { stroke: var(--sari); }
.cip {
  display: flex; align-items: center; gap: calc(var(--ust) * .1); min-width: 0; height: calc(var(--ust) * .7);
  padding: 0 calc(var(--ust) * .2) 0 calc(var(--ust) * .08); border-radius: 999px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.cip .ci { flex: 0 0 auto; width: calc(var(--ust) * .52); height: calc(var(--ust) * .52); border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.cip .ci svg { width: 78%; height: 78%; }
.cip > span { display: flex; flex-direction: column; line-height: 1; }
.cip small { font-size: calc(var(--ust) * .17); letter-spacing: .1em; color: var(--soluk); font-weight: 600; white-space: nowrap; }
body.menude #kap { visibility: hidden; } /* menüde oyun alanı ve üst bant görünmez (menü karışmasın) */
.cip b { font-size: calc(var(--ust) * .36); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-eniyi b { color: var(--sari); }
.c-hiz b { color: #8fe8ff; }
.c-hiz.parla { animation: parla .7s ease-out; }
@keyframes parla { 30% { box-shadow: 0 0 0 3px #5fd3ff, 0 0 16px #5fd3ff; } }
#puan.zipla { animation: zipla .28s ease-out; }
@keyframes zipla { 40% { transform: scale(1.25); color: var(--sari); } }
.sag { margin-left: auto; display: flex; gap: calc(var(--ust) * .12); }
#kombo-kap { display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; min-width: calc(var(--ust) * 1.15); }
#kombo-kap.acik { opacity: 1; transform: scale(1); }
#kombo { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: calc(var(--ust) * .36); color: #ff9d2e; text-shadow: 0 2px 0 #7a3600; line-height: 1; }
#kombo svg { width: calc(var(--ust) * .38); height: calc(var(--ust) * .38); }
#kombo.k3 { color: #ff6a3d; } #kombo.k4 { color: #ff3d6e; } #kombo.k5 { color: #c86bff; }
#kombo.k4 svg, #kombo.k5 svg { animation: alev .35s ease-in-out infinite alternate; }
@keyframes alev { to { transform: scale(1.15) rotate(-6deg); } }
#kombo-kap.yeni #kombo { animation: zipla .3s ease-out; }
#kombo-bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
#kombo-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6a3d, #ffd25a); transform-origin: left; }

/* ---- oyun alanı: ahşap çerçeve (duvarlı) / mavi geçit (duvarsız) ---- */
#orta { flex: 1 1 auto; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
#alan { position: relative; flex: 0 0 auto; }
#cv {
  display: block; border-radius: 10px;
  box-shadow: 0 0 0 4px #8a5a2b, 0 0 0 7px #4a2c12, 0 0 0 8px rgba(255, 220, 160, .15), 0 14px 34px rgba(0, 0, 0, .55);
  transition: box-shadow .3s;
}
#alan.gecis #cv { box-shadow: 0 0 0 3px #2bd4ff, 0 0 0 6px rgba(20, 70, 90, .9), 0 0 22px rgba(43, 212, 255, .45), 0 14px 34px rgba(0, 0, 0, .55); }
#yazi {
  position: absolute; left: 0; right: 0; top: 42%; text-align: center; pointer-events: none; font-weight: 700;
  font-size: calc(var(--ui) * 2.6); color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(0, 0, 0, .4); opacity: 0;
}
#yazi.goster { animation: yazi 1s ease-out forwards; }
#yazi.sayi { animation: sayi .8s ease-out forwards; font-size: calc(var(--ui) * 5); color: var(--sari); -webkit-text-stroke: 2px #6b4300; }
#yazi.kalici { opacity: 1; animation: nabiz 1.2s ease-in-out infinite; font-size: calc(var(--ui) * 1.6); }
@keyframes yazi { 0% { opacity: 0; transform: scale(.6); } 20% { opacity: 1; transform: scale(1.1); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-20px); } }
@keyframes sayi { 0% { opacity: 0; transform: scale(2); } 25% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(.8); } }
@keyframes nabiz { 50% { transform: scale(1.06); } }
#mod-etiket { position: absolute; left: 10px; bottom: 7px; font-size: calc(var(--ui) * .78); color: rgba(255, 255, 255, .6); pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* ilk oyun ipucu */
#ipucu { position: absolute; left: 50%; top: 64%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#ipucu.acik { display: flex; animation: belir .3s ease-out; }
#ipucu .ip-yazi { background: rgba(0, 0, 0, .55); padding: .35em .9em; border-radius: 999px; font-size: calc(var(--ui) * .95); white-space: nowrap; }
#ipucu .ip-el { display: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 8px rgba(255, 255, 255, .25); animation: kaydirEl 1.6s ease-in-out infinite; }
#ipucu.kaydir .ip-el, #ipucu.yon .ip-el { display: block; }
@keyframes kaydirEl { 0% { transform: translateX(-50px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateX(50px); opacity: 1; } 100% { transform: translateX(50px); opacity: 0; } }
#ipucu .ip-tuslar { display: none; grid-template-columns: repeat(3, 34px); grid-template-rows: 34px 34px; gap: 4px; }
#ipucu.klavye .ip-tuslar { display: grid; }
#ipucu .ip-tuslar span { display: flex; align-items: center; justify-content: center; border-radius: 7px; background: rgba(255, 255, 255, .9); color: #123; font-size: 15px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); animation: tus 1.6s ease-in-out infinite; }
#ipucu .ip-tuslar span:nth-child(1) { grid-column: 2; grid-row: 1; }
#ipucu .ip-tuslar span:nth-child(2) { grid-column: 1; grid-row: 2; animation-delay: .4s; }
#ipucu .ip-tuslar span:nth-child(3) { grid-column: 2; grid-row: 2; animation-delay: .8s; }
#ipucu .ip-tuslar span:nth-child(4) { grid-column: 3; grid-row: 2; animation-delay: 1.2s; }
@keyframes tus { 10% { transform: translateY(3px); background: var(--sari); box-shadow: 0 0 0 rgba(0, 0, 0, .35); } 25% { transform: none; } }

/* ---- kontrol tuşları: k-yon (4 yön), k-donus (sola / sağa dön), k-kaydir (tuş yok) ---- */
#dpad { display: none; position: relative; width: var(--dp); height: var(--dp); flex: 0 0 auto; }
body.k-yon #dpad, body.k-donus #dpad { display: block; }
#dpad button {
  position: absolute; display: none; border-radius: 24%; background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 -4px 0 rgba(0, 0, 0, .25); align-items: center; justify-content: center; touch-action: none;
  transition: transform .06s;
}
body.k-yon #dpad .d-ust, body.k-yon #dpad .d-alt, body.k-yon #dpad .d-sol, body.k-yon #dpad .d-sag { display: flex; width: 36%; height: 36%; }
body.k-donus #dpad .d-dsol, body.k-donus #dpad .d-dsag { display: flex; }
#dpad button.bas { background: rgba(255, 210, 90, .5); transform: scale(.93); }
#dpad svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.d-ust { left: 32%; top: 0; } .d-alt { left: 32%; bottom: 0; } .d-sol { left: 0; top: 32%; } .d-sag { right: 0; top: 32%; }
body.k-donus.dikey #dpad { width: calc(100vw - 16px); height: var(--dp); }
body.k-donus.dikey #dpad .d-dsol, body.k-donus.dikey #dpad .d-dsag { top: 0; width: 46%; height: 100%; border-radius: 28px; }
body.k-donus.dikey #dpad .d-dsol { left: 0; } body.k-donus.dikey #dpad .d-dsag { right: 0; }
.d-dsol svg, .d-dsag svg { width: min(54%, 70px) !important; }
body.dikey #orta { flex-direction: column; gap: 12px; }

/* yan düzen (yatay telefon / tablet): sol sütun puanlar, sağ sütun düğmeler; tuşlar alt köşelerde, tahtanın üstüne yarı saydam binebilir */
body.yan #kap { padding: 0 var(--S); }
body.yan #ust {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--S); height: auto; flex-direction: column; justify-content: flex-start;
  align-items: stretch; border-bottom: 0; border-right: 1px solid rgba(255, 210, 90, .14); padding: 10px 7px; gap: 7px; background: linear-gradient(90deg, rgba(6, 30, 22, .95), rgba(5, 24, 18, .85));
}
body.yan #b-menu { align-self: center; }
body.yan .cip { height: auto; padding: 5px 6px; border-radius: 14px; }
body.yan .cip .ci { display: none; }
body.yan .cip > span { width: 100%; align-items: center; }
body.yan #kombo-kap { min-width: 0; width: 100%; }
body.yan .sag {
  position: fixed; right: 0; top: 0; bottom: 0; width: var(--S); margin: 0; padding: 10px 6px; display: flex; flex-wrap: wrap;
  justify-content: center; align-content: flex-start; gap: 8px; background: linear-gradient(270deg, rgba(6, 30, 22, .95), rgba(5, 24, 18, .85)); border-left: 1px solid rgba(255, 210, 90, .14);
}
body.yan #orta { flex-direction: row; }
body.yan #dpad { position: static; width: 0; height: 0; }
body.yan #dpad button { position: fixed; width: var(--B) !important; height: var(--B) !important; z-index: 5; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .24), 0 4px 12px rgba(0, 0, 0, .25); backdrop-filter: blur(2px); }
body.yan #dpad button.bas { background: rgba(255, 210, 90, .5); }
body.yan.k-yon .d-ust { left: 10px; top: auto; bottom: calc(var(--B) + 22px); }
body.yan.k-yon .d-alt { left: 10px; top: auto; bottom: 12px; }
body.yan.k-yon .d-sol { right: calc(var(--B) + 20px); left: auto; top: auto; bottom: calc(12px + var(--B) / 2 + 5px); }
body.yan.k-yon .d-sag { right: 10px; top: auto; bottom: calc(12px + var(--B) / 2 + 5px); }
body.yan.k-donus #dpad .d-dsol { left: 10px; bottom: 12px; border-radius: 50%; }
body.yan.k-donus #dpad .d-dsag { right: 10px; bottom: 12px; border-radius: 50%; }

/* ---- pencereler ---- */
.pencere {
  position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 10px;
  background: rgba(3, 18, 12, .55); backdrop-filter: blur(2px);
}
.pencere.acik { display: flex; animation: belir .22s ease-out; }
.pencere.saydam { background: rgba(3, 18, 12, .42); backdrop-filter: none; }
@keyframes belir { from { opacity: 0; } }
.kart {
  position: relative; background: linear-gradient(rgba(16, 54, 40, .96), rgba(8, 32, 24, .96)); border: 1.5px solid var(--kart-kenar); border-radius: 24px;
  padding: calc(var(--ui) * 1.1); width: min(94vw, 440px); max-height: 100%; overflow: auto; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 50px rgba(0, 0, 0, .55); animation: kartGel .3s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes kartGel { from { transform: translateY(18px) scale(.94); opacity: 0; } }
.kart h2 { margin: 0 0 .4em; font-size: calc(var(--ui) * 1.7); font-weight: 700; letter-spacing: .02em; }
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; border-radius: 16px; padding: .55em 1.1em;
  font-size: calc(var(--ui) * 1.02); font-weight: 600; transition: transform .1s, filter .15s; line-height: 1.1;
}
.dugme:active { transform: scale(.95); }
.dugme:hover { filter: brightness(1.08); }
.dugme.ana { background: linear-gradient(#ffdd6b, #ff9f22); color: #4a2400; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 #b55d00, 0 6px 14px rgba(0, 0, 0, .3); }
.dugme.ikincil { background: rgba(255, 255, 255, .09); color: var(--metin); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.dugme.buyuk { font-size: calc(var(--ui) * 1.45); padding: .5em 1.6em; width: 100%; margin: .45em 0; font-weight: 700; letter-spacing: .04em; }
.satir { display: flex; gap: .5em; justify-content: center; flex-wrap: wrap; }
.satir .dugme { flex: 1 1 0; }
.not { color: var(--soluk); font-size: calc(var(--ui) * .82); min-height: 1em; margin: .3em 0; }

/* ---- menü: bahçe sahnesi (kart yok; arkada demo yılan) ---- */
.pencere.menu-p { background: radial-gradient(ellipse at 50% 30%, rgba(95, 211, 106, .12), transparent 60%); backdrop-filter: none; padding: 14px; }
.menu-sahne {
  display: grid; grid-template-columns: 1fr; gap: calc(var(--ui) * .7); width: min(96vw, 470px); max-height: 100%; overflow: auto;
  animation: kartGel .35s cubic-bezier(.2, 1.4, .4, 1);
}
.m-sol, .m-sag { display: flex; flex-direction: column; gap: calc(var(--ui) * .6); min-width: 0; }
.logo { display: flex; justify-content: center; }
.logo svg { width: min(100%, 300px); height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); overflow: visible; }
.logo-dil { animation: dil 2.4s ease-in-out infinite; transform-origin: 284px 88px; }
@keyframes dil { 0%, 70%, 100% { transform: scaleX(0); } 78%, 92% { transform: scaleX(1); } }
.vitrin {
  position: relative; border-radius: 20px; padding: 6px 6px 8px; background:
    repeating-conic-gradient(rgba(255, 255, 255, .035) 0 25%, transparent 0 50%) 0 0 / 28px 28px, linear-gradient(#2f7a3c, #24622f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1), inset 0 -10px 20px rgba(0, 0, 0, .2), 0 8px 20px rgba(0, 0, 0, .35);
}
.vitrin.secili { box-shadow: inset 0 0 0 2px var(--sari), inset 0 -10px 20px rgba(0, 0, 0, .2), 0 8px 20px rgba(0, 0, 0, .35); }
#vitrin-cv { display: block; width: 100%; height: clamp(56px, 12vh, 96px); cursor: pointer; }
.vitrin.kilitli #vitrin-cv { filter: grayscale(.85); }
.v-alt { display: flex; align-items: center; gap: 8px; }
.v-ok { flex: 0 0 auto; width: calc(var(--ui) * 2.3); height: calc(var(--ui) * 2.3); border-radius: 50%; background: rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.v-ok:active { transform: scale(.9); }
.v-ok svg { width: 55%; height: 55%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v-ad { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 0; }
.v-ad b { font-size: calc(var(--ui) * 1.1); }
.v-ad small { font-size: calc(var(--ui) * .74); color: #d8f0d0; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vitrin.kilitli .v-ad small { color: var(--sari); opacity: 1; }
.modlar { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--ui) * .45); }
.mod {
  display: flex; align-items: center; gap: calc(var(--ui) * .55); text-align: left; padding: calc(var(--ui) * .5) calc(var(--ui) * .6); border-radius: 16px;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .09); transition: background .15s, box-shadow .15s, transform .1s; min-width: 0;
}
.mod:hover { background: rgba(255, 255, 255, .08); }
.mod:active { transform: scale(.97); }
.mod.secili { background: rgba(255, 210, 90, .13); box-shadow: inset 0 0 0 2px var(--sari), 0 0 16px rgba(255, 210, 90, .18); }
.mod-ik { flex: 0 0 auto; width: calc(var(--ui) * 2.3); height: calc(var(--ui) * 2.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(95, 211, 106, .16); color: #9ff08f; }
.mod-ik svg { width: 66%; height: 66%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mod-ik.ik-gecis { background: rgba(43, 212, 255, .15); color: #8fe8ff; }
.mod-ik.ik-gun { background: rgba(255, 210, 90, .15); color: var(--sari); }
.mod.secili .mod-ik { background: var(--sari); color: #4a2400; }
.mod-y { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.mod b { font-size: calc(var(--ui) * 1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod small { font-size: calc(var(--ui) * .72); color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod em { font-style: normal; font-size: calc(var(--ui) * .76); color: var(--sari); min-height: 1em; }
.oyna {
  display: flex; align-items: center; justify-content: center; gap: calc(var(--ui) * .6); width: 100%; padding: calc(var(--ui) * .5) calc(var(--ui) * 1);
  border-radius: 999px; background: linear-gradient(#ffe070, #ff9a1f); color: #4a2400;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 6px 0 #b55d00, 0 10px 22px rgba(0, 0, 0, .4); transition: transform .1s;
  animation: oynaNabiz 2.2s ease-in-out infinite;
}
.oyna:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 3px 0 #b55d00, 0 6px 14px rgba(0, 0, 0, .4); }
@keyframes oynaNabiz { 50% { filter: brightness(1.07); } }
.oyna svg { width: calc(var(--ui) * 2); height: calc(var(--ui) * 2); fill: #4a2400; flex: 0 0 auto; }
.o-y { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.o-y b { font-size: calc(var(--ui) * 1.75); font-weight: 700; letter-spacing: .06em; }
.o-y small { font-size: calc(var(--ui) * .78); font-weight: 600; opacity: .75; }
.m-ikonlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--ui) * .4); }
.mi-b {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: calc(var(--ui) * .4) 4px; border-radius: 14px;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1); font-size: calc(var(--ui) * .78); min-width: 0;
}
.mi-b:active { transform: scale(.95); }
.mi-b svg { width: calc(var(--ui) * 1.4); height: calc(var(--ui) * 1.4); fill: none; stroke: #e9f5e4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mi-b.rekor-dugme svg { stroke: var(--sari); }
.mi-b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mi-b b { font-weight: 600; }
/* geniş ekranda iki sütun */
@media (min-aspect-ratio: 5/4) {
  .menu-sahne { grid-template-columns: 1fr 1.05fr; width: min(96vw, 860px); align-items: center; gap: calc(var(--ui) * 1.2); }
}

/* nasıl */
.nasil { list-style: none; padding: 0; margin: 0 0 .8em; text-align: left; }
.nasil li { display: flex; gap: .7em; align-items: center; padding: .38em 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: calc(var(--ui) * .92); line-height: 1.3; }
.nasil i { flex: 0 0 calc(var(--ui) * 2); height: calc(var(--ui) * 2); border-radius: 50%; background-size: contain; background-repeat: no-repeat; background-position: center; }
.y-elma { background-image: radial-gradient(circle at 38% 38%, #ff8a7a 0 12%, #e8262e 40%, #9c0f1c 72%, transparent 74%); }
.y-altin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.5 7 .8-5.2 4.8 1.4 7L12 17.6 5.8 21l1.4-7L2 9.3l7-.8z' fill='%23ffc928' stroke='%23b37400' stroke-width='1.2'/%3E%3C/svg%3E"); }
.y-buz { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8.7 5v10L12 22l-8.7-5V7z' fill='%238fe3ff' stroke='%231f7fc9' stroke-width='1.2'/%3E%3Cpath d='M7 9l10 6M17 9L7 15M12 6v12' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E"); }
.y-makas { background-image: radial-gradient(circle at 38% 38%, #e0a8ff 0 12%, #9b3fd9 42%, #55167f 72%, transparent 74%); }
.y-kombo { background: linear-gradient(#ffd85e, #ff9f22); border-radius: 30%; position: relative; }
.y-kombo::after { content: "×5"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #5a2a00; font-style: normal; font-weight: 700; font-size: calc(var(--ui) * .85); }
.y-tus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9f5e4' stroke-width='2' stroke-linecap='round'%3E%3Crect x='8' y='2' width='8' height='8' rx='2'/%3E%3Crect x='2' y='13' width='8' height='8' rx='2'/%3E%3Crect x='14' y='13' width='8' height='8' rx='2'/%3E%3C/svg%3E"); }

/* oyun sonu */
.sonuc-kart { overflow: visible; padding-top: calc(var(--ui) * 1.3); }
.serit {
  display: none; position: absolute; left: 50%; top: calc(var(--ui) * -1.1); transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(#ff5d73, #d9234a); color: #fff; font-weight: 700; padding: .25em 1.1em; border-radius: 10px;
  font-size: calc(var(--ui) * 1.15); letter-spacing: .06em; box-shadow: 0 4px 0 #8d0f2b, 0 8px 18px rgba(0, 0, 0, .35); white-space: nowrap;
  animation: serit 1s ease-in-out infinite alternate;
}
.sonuc-kart.rekor .serit { display: block; }
@keyframes serit { to { transform: translateX(-50%) rotate(3deg) scale(1.05); } }
.s-puan { font-size: calc(var(--ui) * 3.4); font-weight: 700; line-height: 1; color: var(--sari); text-shadow: 0 4px 0 #6b4300; font-variant-numeric: tabular-nums; }
.s-bilgi { display: flex; justify-content: center; flex-wrap: wrap; gap: .4em; margin: .5em 0 .2em; color: var(--soluk); font-size: calc(var(--ui) * .86); }
.s-bilgi span { background: rgba(0, 0, 0, .25); padding: .2em .6em; border-radius: 999px; }
.s-bilgi b { color: #fff; }
.ilerleme { margin: .45em 0 .1em; text-align: left; }
.il-ust { display: flex; align-items: center; gap: .45em; font-size: calc(var(--ui) * .78); color: var(--soluk); }
.il-ust i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.il-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 4px; }
.il-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #5fd36a, #c9ff6b); transition: width .8s ease-out; }
.canlan {
  width: 100%; margin: .5em 0 .2em; display: none; flex-wrap: wrap; justify-content: center; column-gap: .45em;
  background: linear-gradient(#6be887, #23a649); color: #06321a; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 4px 0 #136b2c, 0 6px 14px rgba(0, 0, 0, .3);
  font-size: calc(var(--ui) * 1.2); font-weight: 700;
}
.canlan.acik { display: inline-flex; animation: nabizK 1.4s ease-in-out infinite; }
@keyframes nabizK { 50% { transform: scale(1.025); filter: brightness(1.08); } }
.canlan svg { width: 1em; height: 1em; fill: #06321a; }
.canlan small { flex: 0 0 100%; font-size: .6em; font-weight: 600; opacity: .8; }
.rekor-form { display: none; margin: .5em 0 .2em; padding: .6em; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.rekor-form.acik { display: block; }
.rf-baslik { font-size: calc(var(--ui) * .85); color: var(--soluk); margin-bottom: .35em; }
.rf-satir { display: flex; gap: .4em; }
.rf-satir input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: calc(var(--ui) * 1.05); padding: .45em .7em; border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .3); color: #fff; outline: none; user-select: text; -webkit-user-select: text;
}
.rf-satir input:focus { border-color: var(--sari); }
.rf-durum { font-size: calc(var(--ui) * .82); min-height: 1.2em; margin-top: .3em; color: var(--soluk); }
.rf-durum.hata { color: #ff8a7a; }
.rf-durum.tamam { color: #7df08d; }

/* rekor tablosu (ortak servisin HTML'i) */
#rekor-kap { position: fixed; inset: 0; z-index: 1000; background: #f5f5f5; overflow: hidden; }
#rekor-kap .rekor-yukleniyor { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; font-size: 18px; line-height: 1.6; color: #555; }
#rekor-kap .rekor-yukleniyor button { margin-top: 10px; background: #2e7d4f; color: #fff; border-radius: 8px; padding: 0 1.2em; height: 40px; }

/* alçak ekran (yatay telefon): sıkışık */
@media (max-height: 440px) {
  .kart { padding: .55em .8em; }
  .kart h2 { font-size: calc(var(--ui) * 1.3); margin-bottom: .2em; }
  .menu-sahne { gap: calc(var(--ui) * .5); }
  .m-sol, .m-sag { gap: calc(var(--ui) * .4); }
  .logo svg { width: min(100%, 230px); }
  #vitrin-cv { height: clamp(48px, 18vh, 80px); }
  .mod { padding: calc(var(--ui) * .32) calc(var(--ui) * .45); }
  .mod-ik { width: calc(var(--ui) * 1.8); height: calc(var(--ui) * 1.8); }
  .oyna { padding: calc(var(--ui) * .3) calc(var(--ui) * 1); }
  .o-y b { font-size: calc(var(--ui) * 1.4); }
  .oyna svg { width: calc(var(--ui) * 1.5); height: calc(var(--ui) * 1.5); }
  .mi-b { flex-direction: row; justify-content: center; padding: calc(var(--ui) * .3) 4px; }
  .mi-b svg { width: calc(var(--ui) * 1.1); height: calc(var(--ui) * 1.1); }
  .dugme.buyuk { font-size: calc(var(--ui) * 1.2); margin: .25em 0; padding: .35em 1em; }
  .sonuc-kart { padding-top: .8em; }
  .s-puan { font-size: calc(var(--ui) * 2.4); }
  .s-bilgi { margin: .2em 0 .1em; }
  .ilerleme { margin: .2em 0 0; }
  .canlan { margin: .3em 0 .1em; padding: .35em 1em; }
  .rekor-form { margin: .3em 0 .1em; padding: .4em; }
  .nasil li { padding: .2em 0; font-size: calc(var(--ui) * .82); }
  .nasil { margin-bottom: .4em; }
}
@media (max-height: 360px) { .ilerleme { display: none !important; } .s-bilgi span { padding: .1em .45em; } }
.mod-y { justify-content: center; }
.mod em:empty { display: none; }
.mod b { white-space: normal; overflow-wrap: anywhere; line-height: 1.1; }

/* 2026-11-11 (8): sade ana menü + Ayarlar penceresi */
.menu-sahne { width: min(92vw, 420px) !important; grid-template-columns: 1fr !important; justify-items: stretch; gap: calc(var(--ui) * .8) !important; }
.menu-sahne .logo svg { width: min(100%, 360px); }
.m-ozet { display: flex; justify-content: center; flex-wrap: wrap; gap: .5em; font-size: calc(var(--ui) * .9); color: var(--soluk); }
.m-ozet span { background: rgba(0, 0, 0, .25); padding: .25em .8em; border-radius: 999px; }
.m-ozet span:empty { display: none; }
#m-ozet-en { color: var(--sari); }
.menu-sahne .m-ikonlar { grid-template-columns: 1fr 1fr; }
.menu-sahne .mi-b { flex-direction: row; justify-content: center; gap: .5em; padding: calc(var(--ui) * .6) 6px; font-size: calc(var(--ui) * 1); }
.menu-sahne .mi-b svg { width: calc(var(--ui) * 1.4); height: calc(var(--ui) * 1.4); }
.ayar-kart { width: min(94vw, 460px); text-align: left; }
.ayar-kart h2 { text-align: center; }
.a-bolum { margin: 0 0 calc(var(--ui) * .7); }
.a-baslik { font-size: calc(var(--ui) * .72); letter-spacing: .18em; color: var(--soluk); font-weight: 600; margin-bottom: calc(var(--ui) * .35); }
.secim3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.kt { padding: .55em .3em; border-radius: 10px; font-size: calc(var(--ui) * .82); font-weight: 600; background: transparent; color: var(--soluk); line-height: 1.15; }
.kt.secili { background: var(--sari); color: #4a2400; box-shadow: 0 2px 0 #b55d00; }
.a-bolum .not { margin: .35em 0 0; text-align: center; }
.a-satir { display: flex; gap: .5em; margin-bottom: .2em; }
.a-satir .dugme { flex: 1 1 0; }
.ayar-kart .vitrin { margin: 0; }
@media (max-height: 440px) {
  .menu-sahne { width: min(70vw, 420px) !important; gap: calc(var(--ui) * .45) !important; }
  .menu-sahne .logo svg { width: min(100%, 220px); }
  .menu-sahne .mi-b { padding: calc(var(--ui) * .35) 6px; }
  .ayar-kart { width: min(96vw, 620px); display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--ui) * .8); }
  .ayar-kart h2, .ayar-kart > .dugme.buyuk { grid-column: 1 / -1; }
  .a-bolum { margin-bottom: calc(var(--ui) * .4); }
}
#oyna-mod { display: none; }
.ayar-kart .a-satir { align-self: end; align-items: stretch; }
.ayar-kart .a-satir .dugme { height: auto; min-height: calc(var(--ui) * 2.6); }
@media (min-aspect-ratio: 5/4) {
  .ayar-kart { width: min(96vw, 680px); display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--ui) * 1); }
  .ayar-kart h2, .ayar-kart > .dugme.buyuk { grid-column: 1 / -1; }
}

/* alçak yan ekran: HIZ rozeti sütundan kalkar, rozetler sıkışır (tuşlara yer) */
body.alcak.yan .c-hiz { display: none; }
body.alcak.yan #ust { gap: 4px; padding-top: 6px; }
body.alcak.yan .cip { padding: 3px 5px; }

/* 2026-11-11 (10): ana menü — OYNA'nın 3B gölgesi alttaki satıra binmesin; yatay alçak ekranda iki sütun (solda logo, sağda düğmeler) */
.menu-sahne .oyna { margin-bottom: 8px; }
.menu-sahne .m-ozet { margin-bottom: 2px; }
.menu-sahne .m-ikonlar { gap: calc(var(--ui) * .6); }
@media (max-height: 520px) and (min-aspect-ratio: 5/4) {
  .menu-sahne { width: min(94vw, 780px) !important; grid-template-columns: 1.1fr 1fr !important; grid-template-rows: auto auto auto; column-gap: calc(var(--ui) * 2) !important; row-gap: 12px !important; align-items: center; }
  .menu-sahne .logo { grid-column: 1; grid-row: 1 / span 3; }
  .menu-sahne .logo svg { width: min(100%, 340px); }
  .menu-sahne .m-ozet, .menu-sahne .oyna, .menu-sahne .m-ikonlar { grid-column: 2; }
  .menu-sahne .m-ozet { flex-direction: column; align-items: stretch; text-align: center; gap: 6px; }
  .menu-sahne .oyna { padding: 10px 14px; }
  .menu-sahne .m-ikonlar { grid-template-columns: 1fr; gap: 8px; }
  .menu-sahne .mi-b { padding: 9px 6px; }
}

/* 2026-11-11 (12): 3B gölgeli düğmelerin (turuncu / yeşil) altındaki satıra değmemesi — gölge 4–6 px aşağı taşar */
.kart .dugme.ana.buyuk { margin-top: .45em; margin-bottom: 12px; }
.kart .canlan { margin-bottom: 12px; }
.kart .satir { margin-top: 0; }
.rf-satir .dugme.ana { margin-bottom: 4px; }
@media (max-height: 440px) {
  .kart .dugme.ana.buyuk { margin-top: .3em; margin-bottom: 11px; }
  .kart .canlan { margin-bottom: 11px; }
}

/* ===== 2026-11-11 (14) ana menüde mod seçici: sekmeler (kullanıcı 3 tasarımdan bunu seçti) ===== */
.m-ozet { display: none; } /* sekmeler modu zaten gösteriyor */
@media (max-height: 520px) and (min-aspect-ratio: 5/4) { .menu-sahne .mv { grid-column: 2; } .menu-sahne .logo { grid-row: 1 / span 4 !important; } }

/* 1: sekmeler */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 18px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.seg-b { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 14px; background: transparent; color: var(--soluk); font-size: calc(var(--ui) * .8); font-weight: 600; transition: background .15s, color .15s; min-width: 0; }
.seg-b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seg-ik svg { width: calc(var(--ui) * 1.4); height: calc(var(--ui) * 1.4); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg-b.secili { background: var(--sari); color: #4a2400; box-shadow: 0 3px 0 #b55d00; }
@media (max-height: 440px) { .seg-b { flex-direction: row; justify-content: center; padding: 7px 2px; } .seg-ik svg { width: calc(var(--ui) * 1.1); height: calc(var(--ui) * 1.1); } }

.menu-sahne { overflow: visible !important; } /* açılır liste kesilmesin (menü içeriği her ölçüde sığıyor: menu_bak.mjs) */

/* 2026-11-11 (19): odak kaybı — koyulaşan arka plan, kısa uyarı, DEVAM */
.pencere.odak-p { background: rgba(0, 0, 0, .62); backdrop-filter: none; }
.odak-kutu { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: kartGel .25s cubic-bezier(.2, 1.4, .4, 1); }
.odak-kutu p { margin: 0; font-size: calc(var(--ui) * 1.15); font-weight: 600; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.odak-kutu .dugme { font-size: calc(var(--ui) * 1.3); font-weight: 700; padding: .5em 2.2em; margin-bottom: 8px; letter-spacing: .05em; }
#kap:focus { outline: none; }
