/* Existing SilkWord tokens, card spacing and restrained purple distinction. */
body .anakart:has(.ik-asmaca){--k:#8B5CF6}
.asmaca{max-width:760px;margin-inline:auto;min-width:0}
.asmaca .oyust h2{margin-bottom:8px}
.asmaca-intro{display:flex;gap:18px;align-items:center;margin:8px 0 22px}
.asmaca-intro p{margin:0;color:var(--muted);line-height:1.6}
.asmaca-emblem{flex:none;width:70px;height:70px;border:2px solid #8B5CF6;border-radius:18px;display:grid;place-items:center;font:800 2.4rem var(--f-display);color:#8B5CF6;position:relative;background:var(--card)}
.asmaca-emblem span{position:absolute;right:-7px;bottom:-7px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#8B5CF6;color:#fff;font-size:1.2rem}
.asmaca-status{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:var(--muted);font-weight:700;font-size:.86rem;margin:14px 0}
.asmaca-status b{color:var(--ink)}
.asmaca-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;list-style:none;margin:0 0 16px;padding:0}
.asmaca-players li{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--line);padding:10px;border-radius:12px;background:var(--card);min-width:0;font-size:.85rem}
.asmaca-players li.on{border-color:#8B5CF6;box-shadow:inset 0 0 0 1px #8B5CF6}
.asmaca-players span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.asmaca-players b{flex:none;color:var(--good)}
.asmaca-players small{display:block;font-size:.72rem;font-weight:500;color:var(--muted);margin-top:4px;white-space:normal}
.asmaca-players .asmaca-player-name{white-space:normal;overflow-wrap:anywhere}
.asmaca-players b{text-align:right}
.asmaca-round-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:430px;margin:18px auto;font-weight:800}
.asmaca-round-choice select{min-height:44px;min-width:105px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit}
.asmaca-round-choice select:focus-visible{outline:3px solid #8B5CF6;outline-offset:2px}
.asmaca-round-choice select:disabled{opacity:1;color:var(--muted)}
.asmaca-content{min-width:0;width:100%}
.asmaca-rules{max-width:560px;margin:18px auto;border:1px solid var(--line);border-radius:12px;background:var(--card);text-align:left}
.asmaca-rules summary{min-height:44px;padding:12px 14px;font-weight:800;cursor:pointer;color:var(--ink)}
.asmaca-rules summary:focus-visible{outline:3px solid #8B5CF6;outline-offset:3px;border-radius:10px}
.asmaca-rules p{padding:0 14px 14px;margin:0;line-height:1.7}
.asmaca-drawing{width:min(220px,100%);margin:0 auto;height:142px;flex:none;color:var(--ink)}
.asmaca-drawing svg{display:block;width:100%;height:142px;overflow:visible}
.asmaca-person{transform-origin:135px 83px;transform-box:view-box;filter:drop-shadow(0 2px 1px rgb(64 40 70 / .10))}
.asmaca-new-part{animation:asmaca-part-in .24s ease-out both}
.asmaca-happy .asmaca-person{animation:asmaca-cheer .4s ease-out}
@keyframes asmaca-part-in{from{opacity:0}to{opacity:1}}
@keyframes asmaca-cheer{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-3px) rotate(-4deg)}70%{transform:translateY(-1px) rotate(3deg)}}
.asmaca-health{display:flex;gap:7px;justify-content:center;margin:8px 0 12px}
.asmaca-health span{width:24px;height:7px;border-radius:8px;background:var(--good)}
.asmaca-health .used{background:var(--line)}
.asmaca-word{display:flex;justify-content:center;gap:5px;flex-wrap:nowrap;margin:18px 0;width:100%}
.asmaca-tile{min-width:0;flex:0 1 45px;aspect-ratio:4/5;display:grid;place-items:center;border:1.5px dashed var(--line);border-radius:9px;font:800 clamp(.95rem,4.3vw,1.7rem) var(--f-display);background:var(--slot);color:var(--muted)}
.asmaca-tile.found{border-style:solid;border-color:var(--tile-edge);background:var(--tile);color:var(--tile-ink)}
.asmaca-turn{text-align:center;font-weight:800;margin:10px 0 15px;min-height:1.5em}
.asmaca-keyboard{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;width:100%;max-width:430px;margin:0 auto}
.asmaca-key{min-width:0;min-height:44px;padding:5px 0;border:1px solid var(--line);border-radius:9px;background:var(--tile);color:var(--tile-ink);font:800 1.02rem var(--f-display);box-shadow:0 2px 0 var(--tile-edge);cursor:pointer;touch-action:manipulation}
.asmaca-key:focus-visible{outline:3px solid #8B5CF6;outline-offset:2px}
.asmaca-key:active:not(:disabled){transform:translateY(2px);box-shadow:none}
.asmaca-key:disabled{opacity:.48;cursor:default;box-shadow:none}
.asmaca-key.hit{background:var(--good);border-color:var(--good);color:#fff;opacity:.8}
.asmaca-key.miss{background:var(--slot);border-color:var(--line);color:var(--muted);opacity:.5}
.asmaca-message{min-height:1.5em;text-align:center;font-size:.87rem;line-height:1.5;color:var(--muted);margin:16px 0}
.asmaca-reveal{padding:16px;background:var(--card);border:1px solid var(--line);border-radius:15px;text-align:center;margin:16px 0}
.asmaca-reveal>b{font:800 1.6rem var(--f-display);color:var(--ink);word-break:break-word}
.asmaca-reveal p{font-family:var(--f-dict);line-height:1.5;margin:10px 0 0;color:var(--muted)}
.asmaca-roomline{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:15px 0;font-size:.8rem;color:var(--muted)}
.asmaca-roomline .btn{min-height:44px;font-size:.8rem;padding:8px 12px}
.asmaca-code{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--card);margin:16px 0}
.asmaca-code>b{font:800 1.6rem var(--f-display);letter-spacing:.16em}
.asmaca-code>span{font-size:.8rem;color:var(--muted)}
.asmaca-lobby{list-style:none;margin:16px 0;padding:0;display:grid;gap:8px}
.asmaca-lobby li{display:flex;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);min-width:0}
.asmaca-lobby span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.asmaca-lobby small{color:var(--muted)}
.asmaca-join{display:flex;flex-direction:column;gap:12px;max-width:360px;margin:15px auto}
.asmaca-join label{font-weight:800}
.asmaca-join input{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:var(--card);color:var(--ink);font:800 1.5rem var(--f-display);letter-spacing:.18em;text-align:center}
.asmaca .btn{min-height:44px}
.asmaca .anaiki{display:flex;gap:8px;flex-wrap:wrap}
.asmaca .anaiki>.btn{flex:1}
@media(max-width:480px){.asmaca-keyboard{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:360px){.asmaca-keyboard{gap:4px;grid-template-columns:repeat(5,minmax(0,1fr))}.asmaca-word{gap:3px}.asmaca-tile{border-radius:6px}.asmaca-intro{gap:12px}.asmaca-emblem{width:55px;height:55px;font-size:2rem}}
@media(prefers-reduced-motion:reduce){.asmaca-key{transition:none}.asmaca-new-part,.asmaca-happy .asmaca-person{animation:none}}

/* ===== Görünüm: kabartmalı / düz taşlar =====
   <html data-view="raised|flat"> değerini tema.js koyar (tercih: localStorage "silkword-gorunum", varsayılan kabartmalı).
   Kapsam: Kelime Zinciri ve Eşzit taşları (.tile/.slot), Kelime Tahtası ve Harf Kulesi (.tc/.tt, tahta.js), Adam Asmaca (.asmaca-*).
   Yalnız gölge ve ışık: renk, yazı ve ölçü değişmez; odak halkaları ve seçili durum çerçeveleri korunur.
   Harf Kulesi'nde kat sayısını gösteren üst üste gölgeler (.tc.k2-k5) oyun bilgisidir; iki görünümde de dokunulmaz. */
html[data-view="raised"] .tile{box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 4px 0 var(--tile-edge),0 8px 10px -6px rgba(46,34,48,.5)}
html[data-view="raised"] .tile:active{transform:translateY(3px);box-shadow:inset 0 2px 3px rgba(0,0,0,.18),0 1px 0 var(--tile-edge)}
html[data-view="raised"] .slot{box-shadow:inset 0 2px 4px rgba(46,34,48,.14)}
html[data-view="raised"] .slot.full{box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 0 var(--tile-edge)}
html[data-view="raised"] .slot.lock,html[data-view="raised"] .slot.win{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 0 rgba(0,0,0,.25)}
html[data-view="raised"] #tgrid .tc:not(.dolu):not(.gecici){box-shadow:inset 0 1px 2px rgba(46,34,48,.2),inset 0 -1px 0 rgba(255,255,255,.35)}
html[data-view="raised"] #tgrid:not(.kule) .tc.dolu{box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 -2px 0 var(--tile-edge),0 2px 2px -1px rgba(46,34,48,.45)}
html[data-view="raised"] #tgrid:not(.kule) .tc.gecici{box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 -2px 0 #E0B53A,0 2px 3px -1px rgba(46,34,48,.5)}
html[data-view="raised"] #tgrid .tc:active:not(.dolu):not(.gecici){box-shadow:inset 0 2px 4px rgba(46,34,48,.3)}
html[data-view="raised"] .tt:not(.bos){box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 -1px 0 rgba(0,0,0,.06),0 3px 0 var(--tile-edge),0 7px 10px -6px rgba(46,34,48,.5)}
html[data-view="raised"] .tt:not(.bos):active{transform:translateY(2px);box-shadow:inset 0 2px 3px rgba(0,0,0,.18),0 1px 0 var(--tile-edge)}
html[data-view="raised"] .tt.sec{box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 3px 0 #E0B53A,0 12px 12px -8px rgba(46,34,48,.5)}
html[data-view="raised"] .asmaca-tile{box-shadow:inset 0 2px 4px rgba(46,34,48,.1)}
html[data-view="raised"] .asmaca-tile.found{box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 0 var(--tile-edge)}
html[data-view="raised"] .asmaca-key:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 3px 0 var(--tile-edge),0 6px 8px -5px rgba(46,34,48,.45)}
html[data-view="raised"] .asmaca-key:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 3px rgba(0,0,0,.2),0 1px 0 var(--tile-edge)}
html[data-view="raised"] .asmaca-key:disabled{box-shadow:inset 0 2px 3px rgba(0,0,0,.16)}

html[data-view="flat"] :is(.tile,.slot.full,.tt:not(.bos),.asmaca-tile.found,.asmaca-key:not(:disabled)){box-shadow:inset 0 0 0 1px var(--tile-edge)}
html[data-view="flat"] :is(.slot.lock,.slot.win){box-shadow:none}
html[data-view="flat"] :is(.tile,.tt,.asmaca-key):active:not(:disabled){transform:none;filter:brightness(.92)}
html[data-view="flat"] .tt:not(.bos):not(.sec):not(.isaret){background:var(--tile)}
html[data-view="flat"] .tt.sec{background:#FFE08A}
html[data-view="flat"] .tt.isaret{background:#F6B9C6}
html[data-view="flat"] #tgrid:not(.kule) .tc.dolu{background:var(--tile);box-shadow:inset 0 0 0 1px var(--tile-edge)}
html[data-view="flat"] #tgrid .tc.gecici{background:#FFE08A}
html[data-view="flat"] #tgrid:not(.kule) .tc.gecici{box-shadow:none}
html[data-view="flat"] #tgrid .tc.orta:not(.dolu){background:#F2A7B5}
html[data-view="flat"] #tgrid:not(.kule) .tc.k3:not(.dolu):not(.gecici){background:#C84B4B}
html[data-view="flat"] #tgrid:not(.kule) .tc.k2:not(.dolu):not(.gecici){background:#F2A7B5}
html[data-view="flat"] #tgrid:not(.kule) .tc.h3:not(.dolu):not(.gecici){background:#3F7FB5}
html[data-view="flat"] #tgrid:not(.kule) .tc.h2:not(.dolu):not(.gecici){background:#B3D4EE}
@media (forced-colors:active){.tile,.slot,.tt:not(.bos),.tc,.asmaca-key,.asmaca-tile{border:1px solid ButtonText!important}}
