/* Tuğla Kırma — rekoroyun.com (2026-11-14). Oyun alanı canvas'ta; üst bant (yatay telefonda sol sütun), menü ve pencereler HTML/CSS. */
:root {
  --kart1: rgba(44, 24, 98, .97); --kart2: rgba(20, 10, 52, .97); --kart-kenar: rgba(170, 150, 255, .35);
  --sari: #ffd23f; --metin: #fdfbff; --soluk: #c6b9f2; --bant1: rgba(30, 16, 74, .92); --bant2: rgba(18, 9, 48, .88);
  --ust: 56px; --ui: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #1d1140; color: var(--metin); font-family: "Fredoka", "Trebuchet MS", Arial, sans-serif; font-weight: 500;
  user-select: none; -webkit-user-select: none; overscroll-behavior: none;
}
@media (min-width: 700px) and (min-height: 600px) { :root { --ui: 17px; } }
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; }
body.menude #ust { display: none; }
/* ---- üst bant ---- */
#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(var(--bant1), var(--bant2)); border-bottom: 1px solid var(--kart-kenar);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); 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, .16), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 2px 0 rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s;
}
.ikon:hover { background: rgba(255, 255, 255, .22); }
.ikon:active { transform: scale(.92); }
.ikon svg { width: 60%; height: 60%; fill: none; stroke: var(--metin); stroke-width: 2.6; 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) !important; }
body.mod-m #b-rekor { display: none; }
.cip {
  flex: 0 0 auto; /* 2026-11-21: 'BÖLÜM EN İYİ' dar telefonda yanındaki bölüm adına biniyordu; çip içeriği kadar, bölüm adı kısalır (…) */
  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, .25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.cip .ci { flex: 0 0 auto; width: calc(var(--ust) * .52); height: calc(var(--ust) * .52); border-radius: 50%; background: rgba(255, 255, 255, .1); 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) * .16); letter-spacing: .08em; color: var(--soluk); font-weight: 600; white-space: nowrap; }
.cip b { font-size: calc(var(--ust) * .32); font-weight: 700; color: var(--sari); font-variant-numeric: tabular-nums; white-space: nowrap; }
.puan-kutu { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; line-height: 1; min-width: 0; }
#puan { font-size: calc(var(--ust) * .56); font-weight: 700; color: var(--metin); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
#puan.zipla { animation: zipla .25s ease-out; }
@keyframes zipla { 40% { transform: scale(1.12); } }
#mod-etiket { font-size: calc(var(--ust) * .19); color: var(--soluk); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#canlar { display: flex; gap: 2px; flex: 0 0 auto; }
#canlar i { width: calc(var(--ust) * .3); height: calc(var(--ust) * .3); background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.3-8-11a4.6 4.6 0 0 1 8-3 4.6 4.6 0 0 1 8 3c0 5.7-8 11-8 11z' fill='%23ffffff' fill-opacity='.18'/%3E%3C/svg%3E"); }
#canlar i.dolu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.3-8-11a4.6 4.6 0 0 1 8-3 4.6 4.6 0 0 1 8 3c0 5.7-8 11-8 11z' fill='%23ff4d8d' stroke='%23ffffff' stroke-width='1.2'/%3E%3C/svg%3E"); }
.sag { display: flex; gap: calc(var(--ust) * .12); }
#alan { position: relative; flex: 1 1 auto; min-height: 0; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: none; }
body.menude #cv { cursor: default; }

/* yatay telefon: üst bant sol sütun olur */
/* puan artık oyun alanının içinde (canvas üst bandı); şeritte yalnız bölüm / kat etiketi */
#puan { display: none !important; }
#mod-etiket { font-size: calc(var(--ust) * .26); color: #fff; font-weight: 600; }

/* yatay her ekran (masaüstü dahil): bilgi şeridi solda dikey cam panel */
body.yan #kap { flex-direction: row; }
body.yan #ust {
  flex: 0 0 var(--ust); width: var(--ust); height: auto; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center;
  padding: 12px 10px; gap: 10px 8px; border-bottom: 0; border-right: 1px solid rgba(190, 170, 255, .35);
  background: linear-gradient(160deg, rgba(70, 40, 160, .9), rgba(22, 10, 60, .94)); box-shadow: 6px 0 24px rgba(0, 0, 0, .35), inset -1px 0 0 rgba(255, 255, 255, .08);
}
/* yan şerit: üstte bilgi kartları (tam genişlik, aynı biçim), altta tek sırada eşit düğmeler */
body.yan .puan-kutu, body.yan .cip, body.yan #canlar { flex: 0 0 100%; min-width: 0; border-radius: 14px; background: rgba(0, 0, 0, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
body.yan .puan-kutu { order: 1; padding: 9px 8px; }
body.yan #mod-etiket { font-size: 14px; line-height: 1.25; white-space: normal; text-align: center; color: #fff; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.yan .cip { order: 2; height: auto; flex-direction: column; gap: 4px; padding: 9px 6px; }
body.yan .cip .ci { width: 26px; height: 26px; }
body.yan .cip > span { align-items: center; }
body.yan .cip small { font-size: 10px; letter-spacing: .06em; white-space: nowrap; }
body.yan .cip b { font-size: 21px; margin-top: 2px; }
body.yan #canlar { order: 3; justify-content: center; flex-wrap: wrap; gap: 3px; padding: 8px 4px; }
body.yan #canlar i { width: 18px; height: 18px; }
body.yan .sag { display: contents; }
body.yan #b-durak { order: 4; }
body.yan #b-ses { order: 5; }
body.yan #b-rekor { order: 6; }
body.yan #ust .ikon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; }
body.yan-alcak #ust { gap: 6px; padding: 6px; }
body.yan-alcak .puan-kutu { padding: 6px; }
body.yan-alcak #mod-etiket { font-size: 12px; }
body.yan-alcak .cip { padding: 6px 4px; gap: 2px; }
body.yan-alcak .cip .ci { display: none; }
body.yan-alcak .cip b { font-size: 17px; }
body.yan-alcak #canlar { padding: 5px 4px; }
body.yan-alcak #canlar i { width: 15px; height: 15px; }
body.yan-alcak #ust .ikon { width: 36px; height: 36px; flex-basis: 36px; }

/* ---- pencereler ---- */
.pencere { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 10px; background: rgba(8, 4, 24, .6); backdrop-filter: blur(3px); }
.pencere.acik { display: flex; animation: belir .22s ease-out; }
.pencere.saydam { background: rgba(8, 4, 24, .45); backdrop-filter: none; }
@keyframes belir { from { opacity: 0; } }
.kart {
  position: relative; background: linear-gradient(var(--kart1), var(--kart2)); 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, .15), 0 18px 50px rgba(0, 0, 0, .6); 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; }
.kart h3 { margin: .7em 0 .4em; font-size: calc(var(--ui) * 1.05); color: var(--sari); letter-spacing: .04em; }
.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(#ffe36b, #ff9f1c); 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, .1); color: var(--metin); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.dugme.buyuk { font-size: calc(var(--ui) * 1.45); padding: .5em 1.6em; width: 100%; margin: .45em 0 12px; font-weight: 700; letter-spacing: .04em; }
.dugme.tam { width: 100%; margin: .2em 0; }
.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) * .85); min-height: 1em; margin: .3em 0; }

/* ---- menü ---- */
.pencere.menu-p { background: radial-gradient(ellipse at 50% 40%, rgba(20, 10, 50, .5), rgba(10, 5, 30, .8)); backdrop-filter: none; padding: 14px; }
.menu-sahne { display: flex; flex-direction: column; gap: calc(var(--ui) * .7); width: min(94vw, 450px); max-height: 100%; overflow: auto; padding: calc(var(--ui) * .9); border-radius: 28px; background: linear-gradient(160deg, rgba(90, 60, 200, .32), rgba(20, 10, 60, .55)); border: 1.5px solid rgba(200, 180, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 20px 60px rgba(0, 0, 0, .5); backdrop-filter: blur(6px); animation: kartGel .35s cubic-bezier(.2, 1.4, .4, 1); }
.logo { display: flex; justify-content: center; }
#logo-cv { width: min(100%, 360px); height: auto; aspect-ratio: 360 / 132; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; padding: 5px; border-radius: 20px; background: rgba(0, 0, 0, .38); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1); }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; border-radius: 15px; background: transparent; color: var(--soluk); font-size: calc(var(--ui) * .82); font-weight: 600; transition: background .15s, color .15s, transform .1s; }
.seg button svg { width: calc(var(--ui) * 1.9); height: calc(var(--ui) * 1.9); }
.seg button span { white-space: nowrap; }
.seg button.secili { background: linear-gradient(#8a6bff, #4b2fd0 55%, #6a4cff); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(255, 255, 255, .2), 0 3px 0 #1f0f66, 0 0 18px rgba(140, 110, 255, .55); }
.seg button:active { transform: scale(.95); }
.mod-acik { margin: 0; text-align: center; color: var(--soluk); font-size: calc(var(--ui) * .86); min-height: 2.5em; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.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(#ffe36b, #ff9a1f); color: #4a2400; margin-bottom: 8px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 6px 0 #b55d00, 0 10px 22px rgba(0, 0, 0, .45); 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.08); } }
.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.05; min-width: 0; }
.o-y b { font-size: calc(var(--ui) * 1.75); font-weight: 700; letter-spacing: .06em; }
.o-y small { font-size: calc(var(--ui) * .76); font-weight: 600; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.yeni-dugme { display: none; align-self: center; padding: .4em 1.4em; font-size: calc(var(--ui) * .9); }
.yeni-dugme.acik { display: inline-flex; }
.m-ikonlar { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--ui) * .45); }
.mi-b { display: flex; align-items: center; justify-content: center; gap: 8px; padding: calc(var(--ui) * .55) 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); font-size: calc(var(--ui) * .95); 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: var(--metin); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- harita ---- */
.harita-kart { width: min(96vw, 520px); padding: calc(var(--ui) * .8); }
.h-ust { display: flex; align-items: center; gap: 10px; margin-bottom: .5em; }
.h-ust .ikon { --ust: 52px; }
.h-ust h2 { margin: 0; flex: 1 1 auto; text-align: left; font-size: calc(var(--ui) * 1.45); }
.yildiz-toplam { color: var(--sari); font-weight: 700; font-size: calc(var(--ui) * .95); white-space: nowrap; }
.dunya-sekme { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: .7em; }
.dsek { border-radius: 12px; padding: 6px 2px 5px; background: linear-gradient(var(--d1), var(--d2)); color: #2a1350; font-weight: 700; font-size: calc(var(--ui) * 1.1); line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 rgba(0, 0, 0, .35); opacity: .6; transition: opacity .15s, transform .1s; }
.dsek small { display: block; font-size: calc(var(--ui) * .56); font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsek.secili { opacity: 1; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 2.5px #fff, 0 5px 0 rgba(0, 0, 0, .35); }
.dsek.kilitli { filter: grayscale(1) brightness(.6); }
.bolumler { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bol { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; background: linear-gradient(var(--d1), var(--d2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 4px 0 rgba(0, 0, 0, .35); transition: transform .1s; }
.bol b { font-size: calc(var(--ui) * 1.45); font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); line-height: 1; }
.bol span { display: flex; gap: 1px; }
.bol span i { width: calc(var(--ui) * .78); height: calc(var(--ui) * .78); background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z' fill='%23000' fill-opacity='.28'/%3E%3C/svg%3E"); }
.bol span i.d { 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.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z' fill='%23ffd23f' stroke='%23a06000' stroke-width='1.2'/%3E%3C/svg%3E"); }
.bol:active { transform: scale(.93); }
.bol.kilitli { filter: grayscale(1) brightness(.45); }
.bol.kilitli::after { content: ""; position: absolute; inset: 30%; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10' width='14' height='11' rx='2' fill='%23fff'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E"); }
.bol.boss { background: linear-gradient(#ff7a8a, #8f1d3a); }
.bol.boss::before { content: "☠"; position: absolute; top: 3px; right: 6px; font-size: calc(var(--ui) * .8); opacity: .85; }
.bol.simdi { animation: simdi 1.2s ease-in-out infinite; }
@keyframes simdi { 50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 0 0 3px #fff, 0 0 18px #fff; } }

/* ---- ayarlar / nasıl ---- */
.a-bolum { margin: .5em 0 .6em; }
.a-baslik { font-size: calc(var(--ui) * .74); letter-spacing: .12em; color: var(--soluk); margin-bottom: .4em; font-weight: 600; }
.a-satir { display: flex; gap: .5em; margin-bottom: .4em; }
.a-satir .dugme { flex: 1 1 0; min-height: calc(var(--ui) * 2.6); }
.seg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.seg3 button { padding: .5em 0; border-radius: 10px; background: transparent; color: var(--soluk); font-weight: 600; }
.seg3 button.secili { background: var(--sari); color: #4a2400; }
.nasil-kart { width: min(96vw, 520px); }
.nasil { list-style: none; padding: 0; margin: 0 0 .4em; text-align: left; }
.nasil li { display: flex; gap: .7em; align-items: center; padding: .4em 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: calc(var(--ui) * .9); line-height: 1.3; }
.n-no { flex: 0 0 calc(var(--ui) * 1.9); height: calc(var(--ui) * 1.9); border-radius: 30%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #4a2400; background: linear-gradient(#ffe36b, #ff9f1c); }
.g-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; text-align: left; }
.g-liste div { display: flex; align-items: center; gap: 8px; font-size: calc(var(--ui) * .82); line-height: 1.2; }
.g-liste canvas { flex: 0 0 auto; width: 32px; height: 32px; }
.g-liste.tug canvas { width: 46px; height: 21px; }
.g-liste .kotu span { color: #ff9a9a; }
.nasil-not { font-size: calc(var(--ui) * .82); color: var(--soluk); text-align: left; line-height: 1.35; }

/* ---- kart seçimi ---- */
.kart-sec { width: min(96vw, 620px); background: linear-gradient(rgba(44, 24, 98, .95), rgba(20, 10, 52, .95)); }
.ks-ust { margin-bottom: .5em; }
.ks-ust span { display: inline-block; font-size: calc(var(--ui) * .8); color: var(--sari); letter-spacing: .1em; font-weight: 700; }
.ks-ust h2 { margin: .1em 0 0; }
.kartlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kartb {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 18px;
  background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 2px var(--kr), 0 6px 0 rgba(0, 0, 0, .35), 0 0 22px color-mix(in srgb, var(--kr) 40%, transparent);
  animation: kartDon .45s cubic-bezier(.2, 1.4, .4, 1) backwards; transition: transform .12s;
}
.kartb:nth-child(2) { animation-delay: .08s; } .kartb:nth-child(3) { animation-delay: .16s; }
@keyframes kartDon { from { transform: rotateY(90deg) scale(.8); opacity: 0; } }
.kartb:hover { transform: translateY(-4px); }
.kartb:active { transform: scale(.95); }
.kartb canvas { width: calc(var(--ui) * 3.6); height: calc(var(--ui) * 3.6); }
.kartb b { font-size: calc(var(--ui) * 1.02); line-height: 1.1; }
.kartb span { font-size: calc(var(--ui) * .78); color: var(--soluk); line-height: 1.25; min-height: 2.5em; }
.kartb em { display: flex; gap: 3px; }
.kartb em i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.kartb em i.dolu { background: var(--kr); }
.kartb em i.yeni { background: #fff; animation: nabizK 1s ease-in-out infinite; }
.kartb small { position: absolute; top: 6px; left: 9px; font-size: calc(var(--ui) * .72); color: var(--soluk); opacity: .7; }

/* ---- bölüm sonu ---- */
.yildizlar { display: flex; justify-content: center; gap: 6px; margin: .2em 0 .5em; }
.yildizlar i { width: calc(var(--ui) * 3.4); height: calc(var(--ui) * 3.4); background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z' fill='%23000' fill-opacity='.35' stroke='%23ffffff' stroke-opacity='.25'/%3E%3C/svg%3E"); }
.yildizlar i:nth-child(2) { transform: translateY(-10px) scale(1.15); }
.yildizlar i.dolu { 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.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z' fill='%23ffd23f' stroke='%23a06000' stroke-width='1'/%3E%3C/svg%3E"); animation: yildizGel .45s cubic-bezier(.2, 1.8, .4, 1); filter: drop-shadow(0 0 8px rgba(255, 210, 63, .8)); }
@keyframes yildizGel { from { transform: scale(2.2) rotate(-30deg); opacity: 0; } }
.yildizlar i.dolu:nth-child(2) { animation-name: yildizGel2; transform: translateY(-10px) scale(1.15); }
@keyframes yildizGel2 { from { transform: translateY(-10px) scale(2.5) rotate(-30deg); opacity: 0; } }

/* ---- 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(#ff5fc8, #c41f8e); 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 #6d0b4c, 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 rgba(90, 50, 0, .8); 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) * .84); }
.s-bilgi span { background: rgba(0, 0, 0, .28); padding: .2em .6em; border-radius: 999px; }
.s-bilgi b { color: var(--metin); }
.s-bilgi em { font-style: normal; }
.canlan {
  width: 100%; margin: .5em 0 12px; 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, .25); }
.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 .dugme.ana { margin-bottom: 4px; }
.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, .22); 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; }
.durak-kart { width: min(92vw, 380px); }

/* 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; }

/* geniş ve alçak ekran: menü iki sütun */
@media (min-aspect-ratio: 5/4) and (max-height: 600px) {
  .menu-sahne { display: grid; grid-template-columns: 1fr 1fr; width: min(96vw, 800px); align-items: center; column-gap: calc(var(--ui) * 1.2); }
  .menu-sahne .logo { grid-row: 1 / span 5; }
  .kartlar { gap: 8px; }
  .kartb { padding: 8px 6px; gap: 3px; }
  .kartb canvas { width: calc(var(--ui) * 2.6); height: calc(var(--ui) * 2.6); }
  .bolumler { grid-template-columns: repeat(10, 1fr); gap: 5px; }
  .harita-kart { width: min(96vw, 760px); }
}
@media (max-height: 440px) {
  .kart { padding: .55em .8em; }
  .kart h2 { font-size: calc(var(--ui) * 1.3); margin-bottom: .2em; }
  .s-puan { font-size: calc(var(--ui) * 2.4); }
  .dugme.buyuk { font-size: calc(var(--ui) * 1.2); margin: .25em 0 11px; padding: .35em 1em; }
  .canlan { margin: .3em 0 11px; padding: .35em 1em; }
  .rekor-form { margin: .3em 0 .1em; padding: .4em; }
  .oyna { padding: calc(var(--ui) * .3) calc(var(--ui) * 1); }
  .oyna svg { width: calc(var(--ui) * 1.5); height: calc(var(--ui) * 1.5); }
  .o-y b { font-size: calc(var(--ui) * 1.35); }
  .menu-sahne { gap: calc(var(--ui) * .45); }
  .sonuc-kart { width: min(94vw, 560px); }
  .seg button { padding: 5px 2px; } .seg button svg { width: calc(var(--ui) * 1.4); height: calc(var(--ui) * 1.4); }
  .mod-acik { min-height: 0; font-size: calc(var(--ui) * .78); }
  .yildizlar i { width: calc(var(--ui) * 2.4); height: calc(var(--ui) * 2.4); }
}

/* alçak + geniş ekran (yatay telefon): oyun sonu iki sütun, şerit içeride */
@media (max-height: 520px) and (min-aspect-ratio: 5/4) {
  .sonuc-kart { display: flex; gap: 14px; align-items: center; width: min(96vw, 760px); padding-top: calc(var(--ui) * .9); }
  .s-sol { flex: 1 1 0; min-width: 0; }
  .s-sag { flex: 1.15 1 0; min-width: 0; }
  .serit { top: 6px; left: 8px; transform: rotate(-4deg); font-size: calc(var(--ui) * .85); padding: .15em .7em; }
  @keyframes serit { to { transform: rotate(3deg) scale(1.05); } }
  .canlan small { display: none; }
  .bolum-kart .yildizlar { margin: 0 0 .2em; }
}
@media (min-height: 900px) and (min-width: 900px) { :root { --ui: 19px; } }
