/* İsim kartları: oyuncunun adının yazdığı plaka. Ölçüler em cinsindendir; plaka bulunduğu yerin
   yazı boyutuna göre ölçeklenir (masadaki oyuncu kartı, profil, önizleme).
   Yapı: <span class="plate nc-KOD"><i class="pf"></i><i class="po"></i><b>ad</b></span>
     .pf      plakanın çerçevesi (biçime göre kırpılır); ::before hareketli ışık, ::after iç dolgu
     .po      üst/arka süs (kristal, kalkan, mücevher)
     ::before / ::after  iki uçtaki süs (elmas taşı, perçin) */

.plate { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  height: 2.5em; min-width: 8em; max-width: 100%; padding: 0 2.3em; vertical-align: middle;
  --pf: linear-gradient(180deg, #fff1c4, #c99a45 30%, #f7dc96 52%, #8d5c1c 78%, #e8c27a);
  --pi: linear-gradient(180deg, #4a2f1b, #2a180d 60%, #1c1009);
  --tx: #f6ead0; --cut: 1.15em; --bw: .17em;
  --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%); }
.plate > b { position: relative; z-index: 4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 1.3em/1 Georgia, 'Times New Roman', serif; color: var(--tx); letter-spacing: .01em; text-shadow: 0 .08em .12em #000c; }
.plate > .pf { position: absolute; inset: 0; z-index: 1; clip-path: var(--shape); background: var(--pf); overflow: hidden;
  filter: drop-shadow(0 .15em .25em #000a); }
.plate > .pf::before, .plate > .pf::after, .plate::before, .plate::after, .plate > .po { content: ""; position: absolute; pointer-events: none; }
.plate > .pf::after { inset: var(--bw); clip-path: var(--shape); background: var(--pi);
  box-shadow: inset 0 .12em .2em #ffffff22, inset 0 -.2em .3em #0008; }
.plate > .po { display: none; z-index: 0; }

/* Perçin (iki uçta küçük metal top) */
.rivets::before, .rivets::after { top: 50%; width: .62em; height: .62em; margin-top: -.31em; border-radius: 50%; z-index: 5;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--rv, #d9a441) 50%, #6b4512); box-shadow: 0 .06em .1em #000a; }
.rivets::before { left: .85em; } .rivets::after { right: .85em; }

/* Elmas taşı (iki uçta) */
.gems::before, .gems::after { top: 50%; width: 1.55em; height: 1.35em; margin-top: -.66em; z-index: 5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28'%3E%3Cpath d='M8 1h16l7 8-15 18L1 9z' fill='%2389dcff' stroke='%23e9fbff' stroke-width='1.2'/%3E%3Cpath d='M1 9h30L16 27z' fill='%232b8fd8'/%3E%3Cpath d='M8 1l3.5 8h9L24 1z' fill='%23d8f6ff'/%3E%3Cpath d='M11.5 9 16 27l4.5-18z' fill='%2353b9f2'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 .25em #7fd8ffcc); }
.gems::before { left: -.35em; } .gems::after { right: -.35em; }

/* ---------------------------------------------------------------- Klasik pirinç (herkes) */
.plate.nc-std { --cut: .55em; --tx: #2a1606;
  --pf: linear-gradient(180deg, #fff2c8, #a8742a 45%, #f3d48c 70%, #7a4c16);
  --pi: linear-gradient(180deg, #f2d495, #d3a552 45%, #b8862f 55%, #e3bd6c);
  --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 30%, 100% 70%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 70%, 0 30%); }
.plate.nc-std > b { text-shadow: 0 .06em 0 #fff6; }

/* ---------------------------------------------------------------- Gümüş */
.plate.nc-s1, .plate.nc-s2, .plate.nc-s3, .plate.nc-s4, .plate.nc-s5 {
  --pf: linear-gradient(180deg, #ffffff, #9ea8b4 32%, #eef2f6 52%, #66707d 76%, #d5dbe2);
  --pi: linear-gradient(180deg, #3d4652, #1f252d 60%, #14181d); --rv: #c9d1da; }
.plate.nc-s2 > .pf::after { box-shadow: inset 0 0 0 .12em #0f1318, inset 0 0 0 .22em #c9d1da, inset 0 -.2em .3em #0008; }
.plate.nc-s3 { --pf: linear-gradient(180deg, #f2f6ff, #8ea6cf 40%, #f3f7ff 60%, #5f78a3); --pi: linear-gradient(180deg, #2c3e5c, #121b2c); }
.plate.nc-s3 > .po { display: block; z-index: 5; top: -.75em; left: 50%; width: 1.3em; height: 1.3em; margin-left: -.65em; border-radius: 50%;
  box-shadow: inset -.32em .1em 0 0 #e8f0ff; filter: drop-shadow(0 0 .3em #bcd4ff); transform: rotate(-20deg); }
.plate.nc-s4, .plate.nc-g2 { --cut: .7em;
  --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }

/* Kalkan: plakanın arkasında, üstten ve alttan taşan arma */
.plate.nc-s5 > .po, .plate.nc-g3 > .po, .plate.nc-d5 > .po { display: block; left: 50%; top: -.75em; width: 3.4em; height: 4em; margin-left: -1.7em;
  clip-path: polygon(50% 0, 100% 16%, 94% 62%, 50% 100%, 6% 62%, 0 16%); background: var(--pf);
  filter: drop-shadow(0 .1em .2em #000a); }
.plate.nc-s5 > .po::after, .plate.nc-g3 > .po::after, .plate.nc-d5 > .po::after { content: ""; position: absolute; inset: .2em;
  clip-path: polygon(50% 0, 100% 16%, 94% 62%, 50% 100%, 6% 62%, 0 16%); background: var(--pi); }

/* ---------------------------------------------------------------- Altın */
.plate.nc-g1, .plate.nc-g2, .plate.nc-g3, .plate.nc-g4, .plate.nc-g5 {
  --pf: linear-gradient(180deg, #fff6cf, #e3ad38 30%, #fff1b0 50%, #a8710f 74%, #f5d27a);
  --pi: linear-gradient(180deg, #4e3712, #24180a 60%, #170f05); --rv: #f0c040; }
.plate.nc-g4 { --pi: linear-gradient(180deg, #9a2a2a, #5a1010 55%, #330606); }
.plate.nc-g4 > .pf::after { box-shadow: inset 0 0 0 .1em #f5d27aaa, inset 0 -.2em .3em #0008; }
.plate.nc-g4 > .po { display: block; z-index: 5; top: -.62em; left: 50%; width: 1.15em; height: 1.15em; margin-left: -.575em; transform: rotate(45deg);
  background: radial-gradient(circle, #ff5a6a 0 32%, transparent 34%), linear-gradient(135deg, #fff4c4, #d9a234); box-shadow: 0 0 0 .07em #6b1a1a, 0 .1em .2em #000a; }
.plate.nc-g5 { --shape: inset(0 round 1.25em); }

/* ---------------------------------------------------------------- Elmas (hareketli) */
.plate.nc-d1, .plate.nc-d2, .plate.nc-d3, .plate.nc-d4, .plate.nc-d5 {
  --pf: linear-gradient(180deg, #ffffff, #8fd2f0 30%, #f2fbff 50%, #3c8fc4 72%, #cdefff);
  --pi: linear-gradient(180deg, #2d5f86, #173c5c 45%, #0c2238); }
/* Işıltı: üzerinden geçen parıltı */
.plate.nc-d1 > .pf::after { background: linear-gradient(110deg, transparent 38%, #ffffff55 50%, transparent 62%) 0 0 / 260% 100% no-repeat, var(--pi);
  animation: ncSweep 2.8s ease-in-out infinite; }
/* Kristal: üstte buz kristalleri, dönen buz ışığı */
.plate.nc-d2 > .pf::before { inset: -150%; background: conic-gradient(from 0deg, #e8fbff, #7fd3f2, #2a6fd6, #bff0ff, #ffffff, #2a6fd6, #e8fbff); animation: ncSpin 4s linear infinite; }
.plate.nc-d2 > .po { display: block; z-index: 0; left: 50%; top: -1.15em; width: 3.2em; height: 1.9em; margin-left: -1.6em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 38'%3E%3Cg stroke='%23eaf9ff' stroke-width='.8'%3E%3Cpath d='M32 0l6 22H26z' fill='%23bfeeff'/%3E%3Cpath d='M32 0l6 22h-6z' fill='%237fcff2'/%3E%3Cpath d='M20 8l8 16h-12z' fill='%239fe2ff'/%3E%3Cpath d='M44 8l4 16H36z' fill='%235bb8ea'/%3E%3Cpath d='M10 18l9 10H6z' fill='%23d8f6ff'/%3E%3Cpath d='M54 18l4 10H45z' fill='%2389d4f5'/%3E%3C/g%3E%3C/svg%3E") center bottom / contain no-repeat;
  filter: drop-shadow(0 0 .3em #9fe2ffaa); }
.plate.nc-d2::before, .plate.nc-d2::after { top: 50%; width: 1.6em; height: 2.2em; margin-top: -1.1em; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 36'%3E%3Cpath d='M26 18L0 4l8 14-8 14z' fill='%23a6e4ff' stroke='%23eaf9ff' stroke-width='.8'/%3E%3Cpath d='M26 18H8L0 4z' fill='%23d8f6ff'/%3E%3C/svg%3E") center / contain no-repeat; }
.plate.nc-d2::before { left: -1.15em; } .plate.nc-d2::after { right: -1.15em; transform: scaleX(-1); }
/* Gece mavisi: lacivert, üstte mavi taş, nabız gibi ışık */
.plate.nc-d3 { --pf: linear-gradient(180deg, #e9f1ff, #8fa6d8 35%, #ffffff 52%, #4f68a8 75%, #c8d6f5);
  --pi: radial-gradient(120% 140% at 50% 0%, #2d52c4, #14287a 55%, #0a1442); }
.plate.nc-d3 > .pf::before { inset: 0; z-index: 2; background: radial-gradient(circle at 50% 0%, #9fc0ff88, transparent 60%); animation: ncPulse 2.2s ease-in-out infinite; }
.plate.nc-d3 > .pf::after { z-index: 1; }
.plate.nc-d3 > .po { display: block; z-index: 5; left: 50%; top: -.85em; width: 1.4em; height: 1.2em; margin-left: -.7em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28'%3E%3Cpath d='M8 1h16l7 8-15 18L1 9z' fill='%234f8dff' stroke='%23e9f1ff' stroke-width='1.4'/%3E%3Cpath d='M1 9h30L16 27z' fill='%231d46c9'/%3E%3Cpath d='M8 1l3.5 8h9L24 1z' fill='%23b9d0ff'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 .3em #6f9cffcc); }
.plate.nc-d3::before, .plate.nc-d3::after { top: 50%; width: 1.5em; height: 2em; margin-top: -1em; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M22 16C14 16 8 10 10 4c1-3 5-3 6 0M22 16c-8 0-14 6-12 12 1 3 5 3 6 0' fill='none' stroke='%23d6e2ff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.plate.nc-d3::before { left: -.95em; } .plate.nc-d3::after { right: -.95em; transform: scaleX(-1); }
/* Gökkuşağı: dönen renkli çerçeve */
.plate.nc-d4 > .pf::before { inset: -150%; background: conic-gradient(#ff5e5e, #ffb35e, #f7ff5e, #5effa1, #5ed2ff, #8a5eff, #ff5ec4, #ff5e5e); animation: ncSpin 3.2s linear infinite; }
/* Buz kalkanı: arkada gümüş-buz kalkan, dönen ışık */
.plate.nc-d5 > .pf::before { inset: -150%; background: conic-gradient(from 90deg, #ffffff, #5fc8ee, #1a5f9c, #bfefff, #ffffff); animation: ncSpin 5s linear infinite; }
.plate.nc-d5::before, .plate.nc-d5::after { top: 50%; width: 1.7em; height: 1.4em; margin-top: -.7em; z-index: 0;
  background: linear-gradient(180deg, #e9fbff, #6fb8e0); clip-path: polygon(100% 15%, 0 50%, 100% 85%, 70% 50%); }
.plate.nc-d5::before { left: -1.25em; } .plate.nc-d5::after { right: -1.25em; transform: scaleX(-1); }

@keyframes ncSpin { to { transform: rotate(360deg); } }
@keyframes ncSweep { 0% { background-position: 130% 0, 0 0; } 60%, 100% { background-position: -40% 0, 0 0; } }
@keyframes ncPulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plate *, .plate::before, .plate::after { animation: none !important; } }

/* Avatarlı plaka (profil ve önizleme): yuvarlak avatar plakanın soluna biner */
.aplate { display: inline-flex; align-items: center; max-width: 100%; }
.aplate > .avr { position: relative; z-index: 6; flex: none; width: 3.6em; height: 3.6em; border-radius: 50%; padding: .18em; margin-right: -1.5em;
  background: linear-gradient(160deg, #ffe7a8, #a8742a 45%, #f6d48a 60%, #7a4c16); box-shadow: 0 .15em .35em #000b; }
.aplate > .avr .av { width: 100%; height: 100%; font-size: 1.9em; }
.aplate > .plate { flex: 1 1 auto; padding-left: 2.3em; }

/* Avatarlı plakada sol uç süsü avatarın altında kalmasın */
.aplate > .plate.gems::before { left: 1.3em; }
.aplate > .plate.nc-d2::before, .aplate > .plate.nc-d3::before, .aplate > .plate.nc-d5::before { display: none; }
.aplate > .plate.gems { padding-left: 3.3em; }
