/* Domino - ortak kart kabuğunun (kart.css) üstüne: taşlar, pazar, uç işaretleri, bildirim - ver 1.0 (2026-11-21) */
:root{
	--masa: #0b6a52; --masa-koyu: #032a21;
}
/* masa: koyu yeşil çuha + ortada hafif ışık */
#masa{
	background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 60%);
}
/* ---------- taş ---------- */
.dm-tas{
	position: absolute; z-index: 10; border-radius: 9%/4.5%;
	transition: left .34s cubic-bezier(.2,.8,.25,1), top .34s cubic-bezier(.2,.8,.25,1), width .34s, height .34s, transform .15s, filter .15s, opacity .2s;
	filter: drop-shadow(0 2px 2px rgba(0,0,0,.45));
}
.dm-tas.anisiz{ transition: none !important; }
.dm-tas svg{ display: block; width: 100%; height: 100%; }
.dm-tas.elde{ z-index: 20; cursor: pointer; }
.dm-tas.elde.soluk{ filter: brightness(.62) saturate(.6) drop-shadow(0 2px 2px rgba(0,0,0,.45)); cursor: default; }
.dm-tas.elde.oynanir{ transform: translateY(-14%); filter: drop-shadow(0 0 6px rgba(255,213,74,.95)) drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
@media (hover: hover){ .dm-tas.elde.oynanir:hover{ transform: translateY(-20%); } }
.dm-tas.elde.secili{ transform: translateY(-24%); filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px rgba(255,213,74,1)); }
.dm-tas.son{ filter: drop-shadow(0 0 5px rgba(255,213,74,.9)) drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.dm-tas.salla{ animation: dm-salla .32s; }
@keyframes dm-salla{ 0%,100%{ translate: 0 0; } 25%{ translate: -4px 0; } 75%{ translate: 4px 0; } }
/* kapalı taş (rakip eli, pazar, uçan) */
.dm-arka{
	z-index: 12; pointer-events: none;
	background: linear-gradient(150deg, #2f2f36 0%, #141418 100%);
	border: 1px solid #000; box-shadow: inset 0 0 0 2px rgba(214,174,96,.55), inset 0 0 8px rgba(0,0,0,.6);
}
.dm-arka::after{ content: ''; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #f1d27a 0%, #b08d3c 60%, #6d5420 100%); }
.dm-arka.ucan{ z-index: 30; }
.dm-arka.yatay::after{ width: 11%; }
/* siyah taş seçeneğinde kapalı taş fildişi */
.dm-siyah .dm-arka{ background: linear-gradient(150deg, #fffaf0 0%, #ded4bb 100%); border-color: #a99c7d; box-shadow: inset 0 0 0 2px rgba(150,120,60,.5); }
/* ---------- uç işareti (iki uca da uyan taş için) ---------- */
.dm-hedef{
	position: absolute; z-index: 25; cursor: pointer; border-radius: 8px;
	border: 2px dashed #ffd54a; background: rgba(255,213,74,.18);
	animation: dm-nabiz 1s ease-in-out infinite;
}
@keyframes dm-nabiz{ 0%,100%{ box-shadow: 0 0 0 0 rgba(255,213,74,.6); } 50%{ box-shadow: 0 0 0 6px rgba(255,213,74,0); background: rgba(255,213,74,.32); } }
/* ---------- pazar ---------- */
#pazar{ position: absolute; z-index: 14; cursor: default; }
#pazar i{
	position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 9%/4.5%;
	background: linear-gradient(150deg, #2f2f36 0%, #141418 100%); border: 1px solid #000; box-shadow: inset 0 0 0 2px rgba(214,174,96,.55), 0 2px 3px rgba(0,0,0,.45);
}
#pazar i:nth-child(1){ transform: translate(-40%, 6%) rotate(-12deg); }
#pazar i:nth-child(2){ transform: translate(-18%, 2%) rotate(-5deg); }
.dm-siyah #pazar i{ background: linear-gradient(150deg, #fffaf0 0%, #ded4bb 100%); border-color: #a99c7d; }
#pazar b{
	position: absolute; right: -10px; top: -10px; z-index: 2; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px;
	background: #ffd54a; color: #2a2200; font: 700 13px/24px 'Poppins', sans-serif; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,.45);
}
#pazar span{
	position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap;
	font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: .06em; color: rgba(255,255,255,.75);
}
#pazar.cek{ cursor: pointer; }
#pazar.cek i:nth-child(3){ animation: dm-cek 1s ease-in-out infinite; }
#pazar.cek span{ color: #ffd54a; }
@keyframes dm-cek{ 0%,100%{ box-shadow: inset 0 0 0 2px rgba(214,174,96,.55), 0 0 0 0 rgba(255,213,74,.8); } 50%{ box-shadow: inset 0 0 0 2px #ffd54a, 0 0 14px 4px rgba(255,213,74,.75); } }
/* ---------- açılış ipucu ---------- */
#tahta-ipucu{
	position: absolute; z-index: 5; text-align: center; pointer-events: none;
	font-family: 'Bebas Neue', sans-serif; font-size: clamp(18px, 4vmin, 30px); letter-spacing: .05em; color: rgba(255,255,255,.3);
}
/* ---------- bildirim, oyuncu balonu (Papaz Kaçtı ile aynı dil) ---------- */
#bildirim{
	position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%) scale(.7);
	background: radial-gradient(ellipse at 50% 0%, rgba(214,174,96,.22) 0%, rgba(214,174,96,0) 65%), linear-gradient(180deg, var(--pl1) 0%, var(--pl2) 100%);
	box-shadow: 0 0 0 2px var(--kenar), 0 0 0 5px var(--pirinc), inset 0 2px 0 rgba(200,255,220,.14), 0 10px 30px rgba(0,0,0,.55), 0 0 6vmin rgba(255,200,58,.18);
	color: #ffcf3a; text-shadow: 0 .05em 0 rgba(0,0,0,.6), 0 0 .4em rgba(255,190,40,.4);
	padding: 6px 24px 2px; border-radius: 14px; max-width: calc(100vw - 24px);
	font-family: 'Bebas Neue', sans-serif; font-size: clamp(20px, 5vmin, 42px); letter-spacing: .03em; z-index: 25000;
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#bildirim.goster{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
#bildirim.kirmizi{ color: #ff6b5a; }
.oyuncu .balon{
	position: absolute; left: calc(var(--oy) * .7); top: calc(100% + 4px); z-index: 2; white-space: nowrap;
	min-width: calc(var(--oy) * .7); padding: .18em .5em .05em; border-radius: 8px;
	background: #ffeb3b; color: #2a2200; text-align: center;
	font-family: 'Bebas Neue', sans-serif; font-size: calc(var(--oy) * .4); line-height: 1.05;
	box-shadow: 0 2px 6px rgba(0,0,0,.4); pointer-events: none;
	opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s;
}
#oy-0 .balon{ top: auto; bottom: calc(100% + 4px); }
#oy-2 .balon{ left: calc(100% + 8px); top: 50%; margin-top: calc(var(--oy) * -.28); }
.oyuncu .balon.goster{ opacity: 1; transform: scale(1); }
.oyuncu .balon.cikti{ background: #4caf50; color: #fff; }
.oyuncu .balon.ceza{ background: #e53935; color: #fff; }
.oyuncu.yan .balon{ rotate: -90deg; }
#oy-3.yan .balon{ top: auto; bottom: calc(100% + 4px); }
/* kutudaki taş sayısı simgesi */
.ik.dm-tas{ position: static; filter: none; transition: none; border-radius: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="6.5" y="1.5" width="11" height="21" rx="2.2" fill="%23fffdf6" stroke="%23000" stroke-width="1.2"/><line x1="8" y1="12" x2="16" y2="12" stroke="%23555" stroke-width="1"/><circle cx="12" cy="6.8" r="1.5" fill="%23111"/><circle cx="9.7" cy="15" r="1.3" fill="%23111"/><circle cx="14.3" cy="19.2" r="1.3" fill="%23111"/></svg>') center / contain no-repeat; }
/* ---------- pencereler ---------- */
.kk-icerik table.genis td{ padding: 3px 4px; font-size: .9em; }
.kk-icerik table.genis td:first-child{ white-space: nowrap; }
.dm-kalan{ display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 30vmin; margin: 0 auto; }
.dm-kalan em{ font-style: normal; font-family: 'Bebas Neue', sans-serif; color: #7fe08a; font-size: 1.1em; }
.dm-mini{ display: inline-block; width: clamp(22px, 4.6vmin, 34px); aspect-ratio: 2 / 1; }
.dm-mini svg{ display: block; width: 100%; height: 100%; }
.kural-metin{ text-align: left; line-height: 1.45; }
.dm-ornek{ --kg: auto; padding: 4px 0; }
.dm-ornek svg{ width: clamp(48px, 10vmin, 70px); height: auto; aspect-ratio: 2 / 1; display: block; }
/* başlangıç menüsü yelpazesi: taşlar kart oranında değil */
.kk-baslangic .kk-logo .yelpaze i{ background-size: contain !important; background-repeat: no-repeat; background-position: center; border-radius: 0; box-shadow: none; background-color: transparent; }
@media (max-height: 420px){
	.dm-mini{ width: 20px; }
	.kk-icerik table.genis td{ padding: 1px 3px; }
}
/* ---------- NASIL OYNANIR: animasyonlu eğitim (2026-11-21; Pyramid eğitimi düzeninde) ---------- */
.kk-pencere.dm-egitim{ max-width: min(560px, calc(100vw - 16px)); }
.dm-egitim .kk-icerik{ text-align: center; }
.dm-egitim .kk-icerik p{ margin: .55em 0 .2em; line-height: 1.45; }
.eg-sahne{ --u: clamp(13px, min(6.6vw, 5.6vh), 30px); position: relative; width: calc(var(--u) * 12); height: calc(var(--u) * 5.3); margin: 0 auto;
	border-radius: 12px; background: radial-gradient(ellipse at 50% 40%, #15936f 0%, #0b6a52 55%, #064634 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 18px rgba(0,0,0,.35); overflow: hidden; }
.eg-sahne > div{ position: absolute; box-sizing: border-box; will-change: transform, opacity; }
.eg-t{ filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.eg-t svg{ display: block; width: 100%; height: 100%; }
.eg-arka{ border-radius: 9%/4.5%; background: linear-gradient(150deg, #2f2f36 0%, #141418 100%); border: 1px solid #000; box-shadow: inset 0 0 0 2px rgba(214,174,96,.55); }
.eg-arka::after{ content: ''; position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f1d27a 0%, #b08d3c 60%, #6d5420 100%); }
.dm-siyah .eg-arka{ background: linear-gradient(150deg, #fffaf0 0%, #ded4bb 100%); border-color: #a99c7d; }
.eg-dokun{ z-index: 30; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,.28); box-shadow: 0 0 10px rgba(255,255,255,.8); pointer-events: none; }
.eg-hedef{ border: 2px dashed #ffd54a; border-radius: 6px; background: rgba(255,213,74,.2); }
.eg-uc{ border: 3px solid #ffd54a; border-radius: 6px; box-shadow: 0 0 10px rgba(255,213,74,.9); }
.eg-yazi{ z-index: 20; display: flex; align-items: center; justify-content: center; white-space: nowrap; font-family: 'Bebas Neue', sans-serif; font-size: calc(var(--u) * .62); letter-spacing: .04em; color: rgba(255,255,255,.8); line-height: 1; }
.eg-yazi b{ color: #ffd54a; margin-left: .25em; }
.eg-yazi.altin{ color: #ffd54a; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.eg-yazi.kirmizi{ color: #ff7a6a; }
.eg-yazi.damga{ font-size: calc(var(--u) * 1.05); color: #ffd54a; text-shadow: 0 2px 0 #8f5c00, 0 4px 10px rgba(0,0,0,.5); }
.eg-yazi.puan{ font-size: calc(var(--u) * .95); color: #7dff8a; text-shadow: 0 2px 0 #0a4d24, 0 0 10px rgba(125,255,138,.6); }
.dm-noktalar{ display: flex; justify-content: center; gap: 6px; margin-top: .45em; }
.dm-noktalar i{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dm-noktalar i.sec{ background: #ffc83a; }
@media (max-height: 420px){ .eg-sahne{ --u: clamp(11px, min(3.6vw, 4.6vh), 22px); } .dm-egitim .kk-icerik p{ font-size: .88em; margin: .35em 0 .1em; } }
@media (prefers-reduced-motion: reduce){ .eg-sahne > div{ animation: none !important; } .eg-dokun{ display: none; } }
