/* =====================================================================================================
   ELLE TOPLA · "ÇİY HASADI" (2026-11-29) — bitki toplamanın elle oyunu, yer penceresinin içinde (.twp-mg > .cy-oy)
   Yapı js/oyun-bitki.js (MGK_OT.game). Taslak: tasarim/bitki-oyun.html. Bütün sınıflar cy- önekli (Çiy; bk- / .bk başka yerlerde kullanılıyor).
   Dil öbür elle oyunlarla (css/pc-oyun-odun.css) aynıdır; sapların ve kökün can çubukları, boğum, arı ve orak izi tuvalde çizilir.
   ===================================================================================================== */
.cy-oy { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .55em; user-select: none; -webkit-user-select: none; }
.cy-oy .num { font-family: var(--fn); font-variant-numeric: tabular-nums; }

/* başlık (öbür elle oyunlarla aynı dil) */
.cy-hd { flex: none; display: flex; align-items: center; gap: .7em; padding: 0 0 .55em; border-bottom: 1px solid rgba(109, 94, 59, .32); }
.cy-tt { display: grid; gap: .28em; min-width: 0; margin-right: auto; padding-left: .15em; }
.cy-tt small { font: 500 .78em/1 var(--fs); letter-spacing: .12em; color: var(--g-l); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cy-tt small i { font-style: normal; }
.cy-tt b { font: 700 1.4em/1.04 var(--fs); letter-spacing: .02em; color: var(--g-t); white-space: nowrap; }
.cy-st { display: flex; gap: .4em; }
.cy-st span { display: grid; justify-items: start; gap: .22em; padding: .34em .72em .38em; border-radius: 7px; background: linear-gradient(180deg, #201d1b, #191716);
  box-shadow: 0 0 0 1px #0b0a0a, inset 0 1px 0 rgba(255, 240, 210, .045), inset 0 0 0 1px rgba(255, 236, 200, .03); }
.cy-st small { font: 500 .72em/1 var(--fs); letter-spacing: .08em; color: var(--mu); white-space: nowrap; }
.cy-st b { font: 600 1.05em/1 var(--fn); font-variant-numeric: tabular-nums; color: var(--t1); white-space: nowrap; }
.cy-ib { flex: none; width: 2em; height: 2em; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; font-size: 1em; cursor: pointer; color: var(--mu);
  background: radial-gradient(circle at 50% 35%, #2a2522, #171513 75%); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px rgba(109, 94, 59, .55); transition: color .15s, box-shadow .15s, transform .15s; }
.cy-ib[data-mg="snd"] { color: var(--g-ic); } .cy-ib.off { color: #6f665d; }
.cy-ib svg { width: 1em; height: 1em; } .cy-ib .ic { width: .95em; height: .95em; }
.cy-ib:hover { color: var(--t1); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px rgba(231, 194, 106, .7); transform: scale(1.06); }

/* oyun alanı */
.cy-fld { position: relative; flex: 1; min-height: 0; border-radius: 9px; overflow: hidden; background: #141a17; }
.cy-fld::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(109, 94, 59, .38), inset 0 0 40px rgba(0, 0, 0, .45); z-index: 2; }
.cy-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: none; touch-action: none; }

/* üst: seri + akıntı (sol), heybe (sağ) */
.cy-ak { position: absolute; left: .7em; top: .6em; display: flex; align-items: center; gap: .6em; pointer-events: none; z-index: 3; }
.cy-sr { display: grid; place-items: center; min-width: 2.5em; height: 2.5em; padding: 0 .35em; border-radius: 99px; background: rgba(14, 12, 10, .72); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px rgba(109, 94, 59, .5); }
.cy-sr small { font: 500 .56em/1 var(--fs); letter-spacing: .12em; color: var(--mu); }
.cy-sr b { font: 700 .98em/1 var(--fn); color: var(--t1); margin-top: -2px; }
.cy-sr.is-hot b { color: var(--g-ic); }
.cy-mt { display: grid; gap: 3px; }
.cy-mt small { font: 500 .62em/1 var(--fs); letter-spacing: .14em; color: var(--g-l); text-shadow: 0 1px 2px #000; }
.cy-mt small em { font-style: normal; font-family: var(--fn); color: var(--t1); letter-spacing: 0; margin-left: .3em; }
.cy-bar { position: relative; width: 8.2em; height: .42em; border-radius: 99px; background: rgba(10, 9, 8, .8); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px rgba(109, 94, 59, .45); overflow: hidden; }
.cy-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5f7f3a, #b9d27a); transition: width .45s ease; }
.cy-ak.is-on .cy-bar i { overflow: hidden; background: linear-gradient(90deg, #a58549, #e8cb7f, #a58549) 0 0 / 200% 100%; }
.cy-ak.is-on .cy-bar i::after { content: ''; position: absolute; top: 0; bottom: 0; left: -200%; width: 400%; background: linear-gradient(90deg, #a58549, #e8cb7f, #a58549) 0 0 / 50% 100%; animation: cyAk 1.6s linear infinite; }   /* FPS 2026-12-02: akan şerit arka plan kaydırması yerine iki kat genişlikteki katman kayar (transform, GPU); görünüm aynı */
@keyframes cyAk { to { transform: translateX(50%); } }
.cy-ak.is-on .cy-mt small { color: var(--g-ic); }
.cy-hb { position: absolute; right: .7em; top: .6em; display: flex; align-items: center; gap: .35em; z-index: 3; pointer-events: none; }
.cy-hb > small { font: 500 .62em/1 var(--fs); letter-spacing: .14em; color: var(--g-l); margin-right: .2em; text-shadow: 0 1px 2px #000; }
.cy-sl { position: relative; width: 2.3em; height: 2.3em; border-radius: 7px; display: grid; place-items: center; background: rgba(14, 12, 10, .72); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px var(--qb, rgba(109, 94, 59, .5)); }
.cy-sl img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 1px 1px #000); }
.cy-sl b { position: absolute; right: -3px; bottom: -4px; font: 700 .62em/1 var(--fn); color: var(--t1); padding: 1px 3px; border-radius: 4px; background: #14110f; box-shadow: 0 0 0 1px #0b0a0a; }
.cy-sl.is-pop { animation: cyPop .35s ease; }
@keyframes cyPop { 40% { transform: scale(1.18); } }

/* ipucu */
.cy-hint { position: absolute; left: 0; right: 0; bottom: .9em; text-align: center; font: 400 .8em/1.2 var(--fb); color: rgba(240, 225, 195, .72); text-shadow: 0 1px 2px #000; pointer-events: none; z-index: 3; }
.cy-hint b { font-weight: 700; color: var(--g-ic); }
.cy-hint kbd { font: 600 .82em/1 var(--fn); padding: 1px 4px; border-radius: 3px; color: var(--t2); background: rgba(20, 16, 12, .8); box-shadow: inset 0 0 0 1px rgba(109, 94, 59, .7); }

/* duyuru ve yazılar */
.cy-ann { position: absolute; left: 50%; top: 27%; translate: -50% -50%; font: 700 1.55em/1 var(--fs); letter-spacing: .06em; color: var(--g-ic); white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9), 0 0 22px rgba(231, 194, 106, .25); pointer-events: none; opacity: 0; z-index: 4; }
.cy-ann.is-bad { color: #f2a08c; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.cy-ann.is-cool { color: #c8e3a6; text-shadow: 0 2px 10px rgba(0, 0, 0, .9), 0 0 22px rgba(170, 220, 140, .2); }
.cy-ann small { display: block; margin-top: .35em; font: 500 .42em/1 var(--fs); letter-spacing: .16em; color: var(--t3); text-align: center; }
.cy-fl { position: absolute; translate: -50% -100%; font: 700 .82em/1 var(--fs); letter-spacing: .05em; white-space: nowrap; color: var(--t1); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .6); pointer-events: none; z-index: 4; }
.cy-fl.is-g { color: var(--g-ic); } .cy-fl.is-b { color: #f2a08c; } .cy-fl.is-c { color: #c8e3a6; } .cy-fl.is-s { font-size: .68em; color: var(--t3); }

/* yakalama kartı */
.cy-card { position: absolute; left: 50%; bottom: 2.9em; translate: -50% 0; display: flex; align-items: center; gap: .9em; padding: .7em 1.1em .7em .7em; border-radius: 11px; z-index: 5;
  background: linear-gradient(180deg, rgba(38, 35, 33, .97), rgba(26, 24, 23, .97)); box-shadow: 0 0 0 1.5px #0b0a0a, 0 14px 30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 240, 210, .08), inset 0 0 0 1px var(--cq, rgba(109, 94, 59, .4));
  opacity: 0; pointer-events: none; }
.cy-card.is-on { pointer-events: auto; }
.cy-im { position: relative; width: 4.6em; height: 4.6em; border-radius: 9px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2b2622, #151210 72%); box-shadow: inset 0 0 0 1px rgba(109, 94, 59, .45); }
.cy-im::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, var(--cg, transparent), transparent); }
.cy-im img { position: relative; width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.cy-tx { display: grid; gap: 3px; min-width: 9.5em; }
.cy-tx small { font: 500 .64em/1 var(--fs); letter-spacing: .14em; color: var(--g-l); }
.cy-tx b { font: 700 1.15em/1.05 var(--fs); color: var(--t1); }
.cy-ms { font: 600 .82em/1.15 var(--fn); color: var(--t2); white-space: nowrap; }
.cy-ms em { font-style: normal; color: var(--mu); font-weight: 500; }
.cy-rk { justify-self: start; margin-top: 2px; padding: 2px 7px; border-radius: 99px; font: 700 .6em/1.2 var(--fs); letter-spacing: .14em; color: #241a08; background: linear-gradient(180deg, #d0b264, #a58549); }
.cy-pt { display: grid; gap: 4px; padding-left: .9em; margin-left: .1em; border-left: 1px solid rgba(109, 94, 59, .4); }
.cy-pt > small { font: 500 .6em/1 var(--fs); letter-spacing: .14em; color: var(--mu); }
.cy-pt > div { display: flex; gap: .35em; }
.cy-pi { position: relative; width: 2.4em; height: 2.4em; border-radius: 7px; display: grid; place-items: center; background: #15120f; box-shadow: inset 0 0 0 1px var(--qb); }
.cy-pi.cy-q2 { box-shadow: inset 0 0 0 1px var(--qb), 0 0 8px rgba(130, 192, 246, .35); }
.cy-pi.cy-q3 { box-shadow: inset 0 0 0 1px var(--qb), 0 0 10px rgba(237, 160, 82, .45); }
.cy-pi img { width: 84%; height: 84%; object-fit: contain; }
.cy-pi b { position: absolute; right: -3px; bottom: -4px; font: 700 .6em/1 var(--fn); color: var(--t1); padding: 1px 3px; border-radius: 4px; background: #14110f; box-shadow: 0 0 0 1px #0b0a0a; }
.cy-gr { display: grid; justify-items: center; gap: 2px; padding-left: .9em; border-left: 1px solid rgba(109, 94, 59, .4); }
.cy-gr small { font: 500 .58em/1 var(--fs); letter-spacing: .14em; color: var(--mu); }
.cy-gr b { font: 700 1.6em/1 var(--fs); color: var(--g-ic); }

/* sonuç */
.cy-res { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; background: radial-gradient(ellipse at 50% 50%, rgba(10, 9, 8, .55), rgba(10, 9, 8, .82)); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cy-res.is-on { opacity: 1; pointer-events: auto; }
.cy-rc { width: 27em; padding: 1.1em 1.3em 1.1em; border-radius: 12px; display: grid; gap: .8em; background: linear-gradient(180deg, #262321, #1c1a19); box-shadow: 0 0 0 1.5px #0b0a0a, 0 20px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 240, 210, .08); }
.cy-rh { display: flex; align-items: center; gap: .9em; }
.cy-dg { width: 3.4em; height: 3.4em; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at 50% 35%, #2e2924, #171412 75%); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1.5px rgba(231, 194, 106, .65); }
.cy-dg small { font: 500 .55em/1 var(--fs); letter-spacing: .14em; color: var(--mu); }
.cy-dg b { font: 700 1.5em/1 var(--fs); color: var(--g-ic); }
.cy-rh small { font: 500 .66em/1 var(--fs); letter-spacing: .14em; color: var(--g-l); }
.cy-rh b.cy-t { display: block; font: 700 1.2em/1.1 var(--fs); color: var(--t1); }
.cy-rh em { font-style: normal; font-size: .82em; color: var(--mu); }
.cy-rs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; }
.cy-rs span { display: grid; gap: 3px; padding: .45em .55em; border-radius: 8px; background: rgba(12, 10, 9, .5); box-shadow: inset 0 0 0 1px rgba(109, 94, 59, .35); }
.cy-rs small { font: 500 .58em/1 var(--fs); letter-spacing: .12em; color: var(--mu); }
.cy-rs b { font: 600 1em/1 var(--fn); color: var(--t1); }
.cy-rl { display: flex; flex-wrap: wrap; gap: .35em; min-height: 2.6em; }
.cy-rl .cy-pi { width: 2.5em; height: 2.5em; }
.cy-bt { justify-self: end; display: flex; gap: .5em; }
.cy-bt button { padding: .45em 1.05em; border: 0; border-radius: 99px; cursor: pointer; font: 700 .8em/1 var(--fs); letter-spacing: .08em; color: #241a08; background: linear-gradient(180deg, #d0b264, #a58549); box-shadow: 0 0 0 1px #0b0a0a; }
.cy-bt kbd { font: 600 .8em/1 var(--fn); margin-left: .4em; opacity: .7; }
.cy-pz { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: .3em; z-index: 7; background: rgba(10, 9, 8, .6); }
.cy-pz b { font: 700 1.2em/1 var(--fs); color: var(--t1); } .cy-pz small { font-size: .8em; color: var(--mu); }
.cy-pz.is-on { display: grid; }
/* hasar sayıları (can ve hasar, 2026-11-29): normal beyaz, kritik altın ve büyük "✦", kıymıkta kısık kırmızı, sıçrayan hasar yeşilimsi */
.cy-fl.is-d { font: 700 .74em/1 var(--fn); letter-spacing: 0; color: #f3ead6; }
.cy-fl.is-crit { font: 800 1em/1 var(--fn); letter-spacing: 0; color: #ffd36b; text-shadow: 0 1px 3px #000, 0 0 10px rgba(255, 190, 80, .55); }
.cy-fl.is-ky { font: 700 .74em/1 var(--fn); letter-spacing: 0; color: #f2a08c; }
.cy-fl.is-sp { font: 700 .72em/1 var(--fn); letter-spacing: 0; color: #c8e3a6; }

/* hasar sayılarına ek: tırpan zinciri etiketi, toprak / ezik gibi kısık yazılar */
.cy-fl.is-sw { font: 700 .9em/1 var(--fs); letter-spacing: .06em; color: #d6f0a8; text-shadow: 0 1px 3px #000, 0 0 12px rgba(190, 240, 140, .45); }

/* üst orta: öbek ilerleyişi (bitki noktaları + kök) ve öbek olayı */
.cy-ob { position: absolute; left: 50%; top: .6em; translate: -50% 0; display: grid; justify-items: center; gap: 4px; pointer-events: none; z-index: 3; }
.cy-ob small { font: 500 .6em/1 var(--fs); letter-spacing: .14em; color: var(--g-l); text-shadow: 0 1px 2px #000; white-space: nowrap; }
.cy-ob small em { font-style: normal; color: var(--t3); }
.cy-dots { display: flex; align-items: center; gap: 4px; }
.cy-dots i { width: .62em; height: .62em; border-radius: 50%; background: rgba(10, 9, 8, .8); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px rgba(109, 94, 59, .55); transition: background .2s, box-shadow .2s; }
.cy-dots i.is-b { position: relative; z-index: 0; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1.5px #f4dc8e; }
.cy-dots i.is-b::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; box-shadow: 0 0 0 1px #0b0a0a, 0 0 6px rgba(244, 220, 142, .5); animation: fxOut 1s ease-in-out infinite; }
.cy-dots i.is-b::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; box-shadow: 0 0 0 1px #0b0a0a, 0 0 1px rgba(244, 220, 142, .1); opacity: 0; animation: fxIn 1s ease-in-out infinite; }   /* FPS 2026-12-02: box-shadow canlandırılmıyor; değişen parıltı iki katmanda (::before söner, ::after yanar), yalnız opaklık canlanır (GPU). Uçlarda görünüm birebir aynı. */
@keyframes cyBl { 50% { box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1.5px #f4dc8e, 0 0 1px rgba(244, 220, 142, .1); } }
.cy-dots i.is-t { background: radial-gradient(circle at 40% 35%, #fff0b0, #c99b45); box-shadow: 0 0 0 1px #0b0a0a, 0 0 6px rgba(231, 194, 106, .55); }
.cy-dots i.is-h { background: #8fa86a; }
.cy-dots i.is-e { background: #a0705e; }
.cy-dots i.is-k { background: #4a2c26; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px rgba(240, 139, 122, .45); }
.cy-dots i.is-sh { outline: 1px solid rgba(255, 210, 120, .7); outline-offset: 1px; }
.cy-dots b { width: .7em; height: .7em; margin-left: 4px; rotate: 45deg; border-radius: 2px; background: rgba(10, 9, 8, .8); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px rgba(160, 120, 80, .6); }
.cy-dots b.is-cur { box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1.5px #e2be68, 0 0 6px rgba(226, 190, 104, .5); }
.cy-dots b.is-t { background: linear-gradient(135deg, #d8bc76, #a6743a); box-shadow: 0 0 0 1px #0b0a0a, 0 0 6px rgba(231, 194, 106, .55); }
.cy-dots b.is-k { background: #5a3e2a; }
.cy-ev { font: 700 .62em/1 var(--fs); letter-spacing: .12em; color: #c8e3a6; min-height: 1em; }
.cy-hb.is-pop { animation: cyPop .3s ease; }
