/* Checkmire · Yön D: kalın çizgili, dokulu, sert gölgeli */
:root {
  --ink: #0b0713; --bg: #150a24; --panel: #1d0f30; --panel2: #241238;
  --gold: #ffd23f; --blue: #2f8fe0; --red: #e0453a; --teal: #19a7a1; --orange: #ff6b2c;
  --common: #8a82a8; --rare: #1fb2a6; --legend: #ff9d2e; --card: #efe6ff; --cardtx: #2a1840;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: #fff; overscroll-behavior: none; }
body {
  font-family: 'Pixelify Sans', 'Courier New', monospace; font-weight: 500;
  -webkit-user-select: none; user-select: none; touch-action: manipulation; overflow: hidden;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
#app { position: fixed; inset: 0; }
.out { text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 4px 0 var(--ink); }

.screen {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px;
  padding: calc(14px + var(--sat)) calc(16px + var(--sar)) calc(14px + var(--sab)) calc(16px + var(--sal));
  overflow: hidden; max-width: 560px; margin: 0 auto;
}
.screen.scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.screen > * { position: relative; flex: none; }
.bg { position: fixed !important; inset: -40px; z-index: 0; pointer-events: none; overflow: hidden; }
.bg::before, .bg::after { content: ''; position: absolute; inset: 0; will-change: transform; }
.bg::before { background: conic-gradient(from 20deg at 28% 36%, #5a1459, #0f5f78, #8a1f3d, #2a1166, #5a1459); filter: blur(28px); opacity: .9; }
.bg::after { background: conic-gradient(from 200deg at 76% 70%, #0f6b66, #3a1470, #a02a45, #0f6b66); filter: blur(34px); opacity: .6; mix-blend-mode: screen; }
body[data-fx="2"] .bg::before { animation: spin 90s linear infinite; }
body[data-fx="2"] .bg::after { animation: spin 120s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg) scale(1.3); } }
body.crt::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 99; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
body[data-fx="0"] * { animation-duration: .001s !important; transition-duration: .001s !important; }

/* ---------- düğmeler ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 6px;
  min-height: 46px; padding: 6px 14px; font-size: 17px; font-weight: 700; color: #fff; background: var(--blue);
  border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 5px 0 #124a80, 0 5px 0 3px var(--ink);
  text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink), 0 3px 0 var(--ink); line-height: 1.05;
  transition: transform .06s, box-shadow .06s;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #124a80, 0 1px 0 3px var(--ink); }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .9; text-shadow: none; color: #e9dcff; margin-top: 2px; }
.btn.red { background: var(--red); box-shadow: 0 5px 0 #7a1a14, 0 5px 0 3px var(--ink); }
.btn.teal { background: var(--teal); box-shadow: 0 5px 0 #0c524f, 0 5px 0 3px var(--ink); }
.btn.gold { background: #c98a10; box-shadow: 0 5px 0 #6b4606, 0 5px 0 3px var(--ink); }
.btn.orange { background: var(--orange); box-shadow: 0 5px 0 #8a2f0a, 0 5px 0 3px var(--ink); }
.btn.dark { background: #3b2a58; box-shadow: 0 5px 0 #1d1230, 0 5px 0 3px var(--ink); }
.btn.gray { background: #4a3f63; color: #b7aacd; box-shadow: 0 5px 0 #231a33, 0 5px 0 3px var(--ink); }
.btn.small { min-height: 36px; font-size: 14px; padding: 4px 12px; }
.btn.big { min-height: 54px; font-size: 21px; }
.btn:disabled { filter: saturate(.3) brightness(.7); }
.btn:focus-visible, .icon-btn:focus-visible, .card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.icon-btn { width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(180deg, #5a3a96 0%, #3b2a68 55%, #2a1c4d 100%); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.28), inset 0 0 0 2px #c98a10; transition: transform .06s, box-shadow .06s; }
.icon-btn svg { display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); }
.icon-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.2), inset 0 0 0 2px #c98a10; }
.link { background: none; border: 0; color: #c9b8ee; font-size: 14px; padding: 8px; text-decoration: underline; }

/* ---------- ortak ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; z-index: 1; }
.title-sm { font-size: 21px; font-weight: 700; letter-spacing: .03em; }
.badge { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 5px 12px 5px 8px; box-shadow: 0 4px 0 var(--ink); }
.badge .v { font-size: 22px; font-weight: 700; }
.badge .cap, .cap { font-size: 13px; color: #c9b8ee; letter-spacing: .06em; }
.cap.y { color: var(--gold); }
.cap.center { text-align: center; margin-top: -4px; }
.sec-label { font-size: 12px; color: #c9b8ee; letter-spacing: .1em; margin-top: 6px; }
.note { font-size: 14px; color: #e8dcff; line-height: 1.25; }
.note.dim { color: #b7aacd; font-size: 12px; }
.hint { font-size: 13px; color: #c9b8ee; text-align: center; padding: 4px; }
.small-hint { font-size: 12px; }
.why { font-size: 12px; color: #c9b8ee; flex: 1; line-height: 1.2; }
.col { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.row2.tight { gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; }
.spacer { flex: 1 1 auto !important; min-height: 8px; }
.center { text-align: center; }
.lock { position: absolute; inset: 0; background: rgba(10,4,20,.94); display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 12px; border-radius: 7px; color: #ffd23f; }

/* ---------- ana menü ---------- */
.logo { text-align: center; padding-top: 8px; transform: rotate(-2deg); }
.logo-1 { font-size: 54px; font-weight: 700; line-height: .95; color: var(--gold); letter-spacing: .04em; }
.logo-2 { font-size: 54px; font-weight: 700; line-height: .95; color: #fff; letter-spacing: .04em; margin-top: -2px; }
.tagline { font-size: 14px; color: #c9b8ee; margin-top: 6px; letter-spacing: .12em; }
.menu-list { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 4px; }
.menu-list .btn { min-height: 56px; font-size: 19px; flex-direction: column; gap: 0; }
.lvl-chip { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 13px; color: #e8dcff; }
.lvl-chip.wide { justify-content: space-between; }
.bar { flex: 0 0 120px; height: 12px; background: #0b0713; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.lvl-chip.wide .bar { flex: 1; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }

/* ---------- ayarlar / form ---------- */
.set-list { display: flex; flex-direction: column; gap: 10px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); font-size: 16px; }
.set-row.col { flex-direction: column; align-items: stretch; }
.tog { width: 58px; height: 30px; flex: none; background: #3b2a58; border: 3px solid var(--ink); border-radius: 16px; position: relative; padding: 0; }
.tog i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #b7aacd; border: 2px solid var(--ink); border-radius: 50%; transition: transform .15s; }
.tog.on { background: var(--teal); }
.tog.on i { transform: translateX(28px); background: #fff; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 40px; background: #3b2a58; border: 3px solid var(--ink); border-radius: 8px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.seg button.on { background: var(--blue); }
.range { width: 100%; accent-color: var(--gold); height: 34px; }
.foe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foe { background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 4px; box-shadow: 0 4px 0 var(--ink); text-align: center; font-size: 14px; }
.foe small { display: block; font-size: 11px; color: #b7aacd; margin-top: 3px; }
.foe.on { background: var(--blue); box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--gold); }
.howto { display: flex; flex-direction: column; gap: 10px; }
.how-item { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 10px; box-shadow: 0 4px 0 var(--ink); }
.how-item p { margin: 0; font-size: 14px; line-height: 1.3; color: #efe6ff; }
.how-item .num { font-size: 22px; color: var(--gold); min-width: 22px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 10px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; font-size: 12px; color: #c9b8ee; }
.stat b { font-size: 22px; color: #fff; }
.big-lvl { font-size: 38px; text-align: center; color: var(--gold); }
.prof { display: flex; flex-direction: column; gap: 12px; }
.army-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); font-size: 16px; }
.army-row small { font-size: 12px; color: #c9b8ee; }
.army-row.on { box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--gold); background: #2c1650; }
.army-row.locked { opacity: .5; }
.end-title { font-size: 34px; text-align: center; font-weight: 700; margin-top: 18px; }
.end-title.win { color: var(--gold); }
.end-title.lose { color: #ff6b5a; }
.lvlup { text-align: center; font-size: 24px; color: var(--gold); }

/* ---------- kartlar ---------- */
.card {
  position: relative; width: 104px; height: 178px; padding: 0; text-align: left; flex: none;
  background: var(--card); color: var(--cardtx); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 6px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg)) translateY(6px); display: flex; flex-direction: column; overflow: visible;
  transition: transform .18s cubic-bezier(.3,1.4,.5,1), box-shadow .18s;
}
.card-art { margin: 5px 5px 0; height: 54px; border: 2px solid var(--ink); border-radius: 6px; background: linear-gradient(180deg, #6b7fd6, #3a4a9c); display: flex; align-items: center; justify-content: center; gap: 4px; }
.card.r-r .card-art { background: linear-gradient(180deg, #2fd0c2, #117a85); }
.card.r-l .card-art { background: linear-gradient(180deg, #ffd23f, #ff7a2c); }
.card-txt { padding: 8px 6px 0; }
.card-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.05; }
.card-desc { font-size: 11.5px; line-height: 1.08; margin-top: 4px; color: var(--cardtx); }
.price { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 0 10px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.price.short { background: #3b2a58; color: #e8dcff; font-size: 12.5px; padding: 1px 7px; }
.rar-tag { position: absolute; left: -3px; top: -3px; background: var(--common); color: #fff; border: 3px solid var(--ink); border-radius: 6px; padding: 0 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.card.r-r .rar-tag, .relic.r-r .rar-tag { background: var(--rare); color: #04312e; }
.card.r-l .rar-tag, .relic.r-l .rar-tag { background: var(--legend); color: #3a1c00; }
.once { position: absolute; right: 3px; top: 3px; font-size: 11px; background: var(--ink); color: #fff; padding: 0 4px; border-radius: 4px; }
.card.r-l::after { content: ''; position: absolute; inset: 0; border-radius: 7px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0) 20%, rgba(120,255,240,.3) 40%, rgba(255,120,220,.3) 55%, rgba(255,240,120,.3) 70%, rgba(255,255,255,0) 85%); }
.card.sel { transform: translateY(-10px) rotate(0); box-shadow: 0 6px 0 var(--ink), 0 0 0 4px var(--gold); }
.card.r-r.sel { box-shadow: 0 6px 0 var(--ink), 0 0 0 4px var(--rare); }
.card.dim { background: #d9cfee; opacity: .8; }
.card.compact { width: 100%; height: auto; min-height: 84px; flex-direction: row; align-items: stretch; transform: none; padding: 6px; gap: 8px; box-shadow: 0 4px 0 var(--ink); }
.card.compact .card-art { margin: 0; width: 54px; height: auto; flex: none; flex-direction: column; }
.card.compact .card-txt { padding: 0; flex: 1; }
.card.compact .price { display: none; }
.card.compact .rar-tag { top: -8px; }
.cards { display: flex; gap: 10px; justify-content: center; padding: 14px 0 20px; flex-wrap: nowrap; }
.cards.n4 { gap: 6px; }
.cards.n4 .card { width: 82px; height: 190px; }
.cards.n4 .card-desc { font-size: 11px; }
.cards.n4 .card-name { font-size: 12px; }
.cards.n2, .cards.n1 { gap: 14px; }
.col-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
.relic { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); color: var(--cardtx); border: 3px solid var(--ink); border-radius: 10px; padding: 10px; box-shadow: 0 5px 0 var(--ink); }
.relics .relic:nth-child(odd) { transform: rotate(-1.2deg); }
.relics .relic:nth-child(even) { transform: rotate(1deg); }
.relic-ic { width: 52px; height: 52px; flex: none; border: 3px solid var(--ink); border-radius: 8px; background: var(--common); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-shadow: 0 2px 0 var(--ink); }
.relic.r-r .relic-ic { background: var(--rare); }
.relic.r-l .relic-ic { background: var(--legend); }
.relic-tx { flex: 1; min-width: 0; }
.relic .price { position: static; transform: none; flex: none; }
.relic .rar-tag { top: -10px; }
.relic.dim { opacity: .55; }
.slots { display: flex; gap: 8px; justify-content: center; }
.slot { width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); background: var(--common); color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 2px 0 var(--ink); }
.slot.r-r { background: var(--rare); } .slot.r-l { background: var(--legend); }
.slot.empty { border: 3px dashed #8a82a8; background: transparent; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--card); color: var(--cardtx); border: 3px solid var(--ink); border-radius: 8px; padding: 2px 8px; font-size: 13px; box-shadow: 0 3px 0 var(--ink); }
.chip.r-r { background: #bdf1ea; } .chip.r-l { background: #ffe0b0; }
.chip.used { opacity: .6; text-decoration: line-through; }
.tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tg { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; border: 2px solid; border-radius: 6px; padding: 1px 6px; background: var(--panel); }

/* ---------- harita / durak ---------- */
.map { flex: 1 1 auto !important; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding: 6px 0; position: relative; }
.map::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: repeating-linear-gradient(180deg, var(--ink) 0 10px, transparent 10px 18px); }
.node { position: relative; z-index: 1; width: 160px; height: 62px; background: #4a3a6a; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink); transform: rotate(var(--rot)); opacity: .65; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.node small { font-size: 11px; color: #d9cfee; text-align: center; padding: 0 4px; }
.node.done { background: #2c6a55; opacity: .8; }
.node.cur { background: var(--gold); color: var(--ink); opacity: 1; box-shadow: 0 5px 0 var(--ink), 0 0 0 4px var(--rare); }
.node.cur .out { text-shadow: none; color: var(--ink); }
.node.cur small { color: var(--ink); }
.node.boss { background: var(--red); opacity: 1; }
.node.boss.cur { background: var(--red); box-shadow: 0 5px 0 var(--ink), 0 0 0 4px var(--gold); color: #fff; }
.node.boss.cur .out { color: #fff; text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink); }
.node.boss.cur small { color: #ffe; }
.next { background: var(--panel2); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 12px; box-shadow: 0 4px 0 var(--ink); }
.next .out { font-size: 16px; font-weight: 700; }
.next .desc { font-size: 12px; margin-top: 3px; color: #e8dcff; line-height: 1.25; }
.next .desc.dim { color: #b7aacd; }
.army-grid { display: flex; flex-direction: column; gap: 6px; }
.army-row8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.army-cell { position: relative; aspect-ratio: 1; padding: 0; background: var(--panel); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 0 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; }
.army-cell svg { width: 80%; height: 80%; filter: drop-shadow(0 2px 0 var(--ink)); }
.army-cell.off { opacity: .35; }
.army-cell.on { box-shadow: 0 3px 0 var(--ink), 0 0 0 3px var(--gold); background: #2c1650; }
.army-cell .badges { position: absolute; right: 1px; bottom: 0; display: flex; }

/* ---------- maç ---------- */
.screen.match { gap: 8px; padding-top: calc(10px + var(--sat)); padding-bottom: calc(10px + var(--sab)); }
.hud-top { display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.foe-dot { width: 28px; height: 28px; background: var(--orange); border: 3px solid var(--ink); border-radius: 6px; }
.badge .name { font-size: 16px; font-weight: 700; letter-spacing: .04em; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foe-chain { font-size: 12px; color: var(--orange); }
.status { text-align: center; font-size: 13px; color: #e8dcff; min-height: 18px; letter-spacing: .06em; z-index: 2; }
.status.foe { color: #ffb08a; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .5; } }
.board-wrap { z-index: 2; display: flex; align-items: center; justify-content: center; flex: 1 1 auto !important; min-height: 0; }
.board-frame { padding: 8px; background: var(--panel2); border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 2px #4a2a7a; }
.board-frame.shake { animation: shake .28s; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, -1px); } 80% { transform: translate(2px, 1px); } }
.board {
  --bs: max(220px, min(calc(100vw - 56px), calc(100dvh - 392px), 456px));
  position: relative; width: var(--bs); height: var(--bs); display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  background: linear-gradient(rgba(0,0,0,.45) 1px, transparent 1px) 0 0 / 12.5% 12.5%, linear-gradient(90deg, rgba(0,0,0,.45) 1px, transparent 1px) 0 0 / 12.5% 12.5%, repeating-conic-gradient(#21103b 0 25%, #53348f 0 50%) 0 0 / 25% 25%;
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 6px 12px rgba(0,0,0,.45); touch-action: manipulation;
}
.sq { position: relative; display: flex; align-items: center; justify-content: center; }
.sq .co { position: absolute; left: 2px; top: 1px; font-size: 9px; color: rgba(255,255,255,.55); font-style: normal; pointer-events: none; }
.sq.last { background: rgba(255,255,255,.13); }
.sq.selected { background: rgba(255,210,63,.32); box-shadow: inset 0 0 0 3px var(--gold); }
.sq.selected-foe { background: rgba(255,107,44,.28); box-shadow: inset 0 0 0 3px var(--orange); }
.sq.threat { background: rgba(255,107,44,.28); box-shadow: inset 0 0 0 2px rgba(255,107,44,.8); }
.sq.hint-move::after { content: ''; width: 24%; height: 24%; background: #f3eaff; border: 2px solid var(--ink); border-radius: 3px; z-index: 3; }
.sq.hint-cap::after { content: ''; position: absolute; inset: 2px; border: 3px solid var(--orange); border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); z-index: 3; }
.sq.hint-boost { box-shadow: inset 0 0 0 3px #38e8ff, inset 0 0 14px rgba(56,232,255,.6); }
.sq.hint-boost.hint-move::after { background: #38e8ff; }
.sq.check { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { background: rgba(255,60,60,.65); box-shadow: inset 0 0 0 3px #ff3c3c; } }
.sq.hl { animation: pulse 0.7s ease-in-out infinite; }
.pieces, .fx { position: absolute; inset: 0; pointer-events: none; }
.pc { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; display: flex; align-items: center; justify-content: center; z-index: 2;
  transform: translate(calc(var(--cx) * 100%), calc(var(--cy) * 100%)); transition: transform .24s cubic-bezier(.3,.8,.3,1); }
.pc svg.pcs { width: 90%; height: 90%; filter: drop-shadow(0 3px 0 var(--ink)); position: relative; }
.pc.boosted::before { content: ''; position: absolute; inset: 6%; border: 3px solid var(--gold); border-radius: 50%; box-shadow: 0 0 8px rgba(255,210,63,.8), inset 0 0 6px rgba(255,210,63,.5); animation: halo 2s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 14px rgba(255,210,63,1), inset 0 0 8px rgba(255,210,63,.7); } }
.pc.fog { opacity: 0; }
.pc.frozen svg.pcs { filter: drop-shadow(0 3px 0 var(--ink)) saturate(.35) brightness(.9); }
.pc.frozen::after { content: '❄'; position: absolute; left: 4%; top: 0; font-size: 12px; text-shadow: 0 1px 0 var(--ink); }
.pc.shadowed svg.pcs { opacity: .55; }
.pc.dead { z-index: 1; pointer-events: none; }
.pc.dead svg.pcs { animation: pop .34s forwards; }
@keyframes pop { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.25) rotate(8deg); opacity: 1; } 100% { transform: scale(.2) rotate(40deg); opacity: 0; } }
.pc.flash svg.pcs { animation: flash .5s; }
@keyframes flash { 50% { filter: drop-shadow(0 0 10px #fff) brightness(1.8); transform: scale(1.18); } }
.pc .badges { position: absolute; right: 0; bottom: 1px; display: flex; gap: 0; }
.float { position: absolute; transform: translate(-50%, 0); font-size: 20px; font-weight: 700; white-space: nowrap; z-index: 6; text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink), 0 3px 0 var(--ink); animation: rise 1s ease-out forwards; }
.float.gain { color: var(--gold); } .float.foe { color: #ff7060; } .float.comp { color: #8fe0ff; font-size: 15px; } .float.info { color: #fff; font-size: 14px; }
@keyframes rise { 0% { opacity: 0; margin-top: 8px; scale: .6; } 15% { opacity: 1; scale: 1.2; } 100% { opacity: 0; margin-top: -42px; scale: 1; } }
.plates { display: flex; align-items: center; justify-content: center; gap: 10px; z-index: 2; }
.plate { width: 118px; text-align: center; border: 3px solid var(--ink); border-radius: 10px; padding: 3px 0 5px; box-shadow: 0 4px 0 var(--ink); transform: rotate(-1.5deg); }
.plate.orange { transform: rotate(1.5deg); }
.plate.teal { background: var(--teal); } .plate.orange { background: var(--orange); }
.plate .cap { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.plate.teal .cap { color: #06302f; } .plate.orange .cap { color: #4a1a05; }
.plate .big { font-size: 30px; font-weight: 700; line-height: 1; }
.plate.hot { box-shadow: 0 4px 0 var(--ink), 0 0 14px rgba(255,107,44,.9); }
.plate.bounce { animation: bounce .32s cubic-bezier(.3,1.6,.5,1); }
@keyframes bounce { 40% { transform: scale(1.18) rotate(-3deg); } }
.times { font-size: 26px; font-weight: 700; }
.panel { position: relative; z-index: 2; min-height: 108px; background: var(--panel); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 10px 8px 10px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; gap: 6px; }
.panel .icon-btn { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; font-size: 18px; }
.panel .pinfo { padding-right: 46px; }
.pname { font-size: 17px; font-weight: 700; }
.pinfo .chips { margin-top: 4px; }
.pinfo .none { font-size: 12px; color: #b7aacd; }
.extra-row { display: flex; align-items: center; justify-content: space-between; padding-right: 46px; font-size: 16px; color: var(--gold); }
.panel .row .btn { flex: none; }
.coach { position: absolute; left: 14px; right: 14px; top: calc(60px + var(--sat)); z-index: 10; background: var(--card); color: var(--cardtx); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 12px; box-shadow: 0 5px 0 var(--ink); display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.25; }
.coach.hidden, .banner.hidden { display: none; }
.banner { position: absolute; left: 0; right: 0; top: 36%; text-align: center; z-index: 12; font-size: 46px; font-weight: 700; pointer-events: none; text-shadow: -3px 0 var(--ink), 3px 0 var(--ink), 0 -3px var(--ink), 0 3px var(--ink), 0 6px 0 var(--ink); animation: banner .5s cubic-bezier(.3,1.5,.5,1); }
.banner.check { color: #ff5a4a; } .banner.mate { color: var(--gold); font-size: 40px; }
@keyframes banner { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); z-index: 20; background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 6px 14px; box-shadow: 0 4px 0 var(--ink); font-size: 16px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; animation: toast 1.5s forwards; }
@keyframes toast { 0% { opacity: 0; translate: 0 10px; } 12%, 80% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.pwa-toast { position: fixed; left: 50%; bottom: calc(14px + var(--sab)); transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 3px solid var(--ink); border-radius: 10px; padding: 6px 12px; box-shadow: 0 4px 0 var(--ink); font-size: 15px; }

/* ---------- alt sayfa (sheet) ---------- */
.sheet-host { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.sheet-host > * { pointer-events: auto; }
.sheet-back { position: absolute; inset: 0; background: rgba(8,3,16,.62); display: flex; align-items: flex-end; justify-content: center; z-index: 30; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; background: var(--panel); border: 4px solid var(--ink); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 12px 14px calc(14px + var(--sab)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -4px 0 #4a2a7a; animation: slide .22s cubic-bezier(.3,1.2,.5,1); max-height: 92%; overflow-y: auto; }
@keyframes slide { from { transform: translateY(40%); opacity: 0; } }
.sheet-back > .sheet.info, .sheet-back > .sheet.menu, .sheet-back > .sheet.end { }
.sh-title { text-align: center; font-size: 19px; font-weight: 700; }
.vrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vbtn { min-width: 64px; min-height: 56px; }
.vbtn svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 0 var(--ink)); }
.sheet.end { gap: 12px; }
.sheet.end .end-title { margin: 0; }
.sheet.end.win .end-title { color: var(--gold); } .sheet.end.lose .end-title { color: #ff6b5a; }
.sheet.end .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.sheet.end .stats div { background: var(--panel2); border: 3px solid var(--ink); border-radius: 8px; padding: 4px 2px; display: flex; flex-direction: column; font-size: 11px; color: #c9b8ee; }
.sheet.end .stats b { font-size: 21px; color: #fff; }
.sheet.end .why { text-align: center; font-size: 14px; }

@media (max-height: 700px) {
  .logo-1, .logo-2 { font-size: 40px; }
  .menu-list { gap: 10px; }
  .menu-list .btn { min-height: 50px; font-size: 17px; }
  .panel { min-height: 92px; }
  .coach { top: calc(52px + var(--sat)); }
}
@media (min-width: 700px) {
  .screen { padding-left: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg::before, .bg::after { animation: none !important; }
}

/* ---------- düzen yardımcıları ---------- */
.qbody, .rbody, .cbody { display: flex; flex-direction: column; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.screen > .btn, .qbody > .btn, .rbody > .btn, .col > .btn { width: 100%; }

.panel .hint { padding-right: 46px; text-align: left; }

/* boost / yadigâr simgeleri */
.bicon { filter: drop-shadow(0 2px 0 rgba(11,7,19,.55)); flex: none; }
.card-art { position: relative; }
.card-art .art-tag { position: absolute; right: 3px; bottom: 3px; display: flex; }
.chip.used .bicon { opacity: .45; filter: grayscale(.8); }
.relic-ic .bicon, .slot .bicon { display: block; }
.relic-ic, .slot { padding: 0; }

/* ---- Saat ve çevrimiçi ---- */
.status.has-clk { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status .st-txt { flex: 1; text-align: center; }
.clk { min-width: 62px; text-align: center; font-size: 15px; font-weight: 700; padding: 3px 8px; border: 3px solid var(--ink); border-radius: 8px; background: var(--panel); color: #b7aacd; box-shadow: 0 3px 0 var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.status:not(.has-clk) .clk { display: none; }
.clk.run { color: #fff; background: #2c1650; box-shadow: 0 3px 0 var(--ink), 0 0 0 2px var(--gold); }
.clk.me.run { background: var(--teal); color: #fff; }
.clk.foe.run { background: var(--orange); color: #fff; }
.clk.low.run { background: var(--red); animation: blink .7s ease-in-out infinite; }
.code-box { text-align: center; font-size: 44px; font-weight: 700; letter-spacing: .18em; background: var(--panel2); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 6px; color: var(--gold); box-shadow: 0 4px 0 var(--ink); }
.text-in { width: 100%; min-height: 46px; padding: 6px 12px; font-size: 18px; background: #0b0713; color: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: inset 0 2px 0 rgba(255,255,255,.08); font-family: inherit; }
.text-in.code { text-align: center; letter-spacing: .25em; text-transform: uppercase; }
.spin { width: 54px; height: 54px; margin: 18px auto; border: 6px solid #3b2a58; border-top-color: var(--gold); border-radius: 50%; animation: spinr 1s linear infinite; }
@keyframes spinr { to { transform: rotate(360deg); } }
.center-col { display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; padding-top: 24px; }

/* ---- Oyun içi menü ---- */
.sheet.menu.pretty { gap: 12px; padding-top: 14px; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #2b1850, var(--panel) 60%); }
.menu-head { display: flex; align-items: center; gap: 12px; }
.menu-badge { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #5a3a96, #2a1c4d); box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.28), inset 0 0 0 2px #c98a10; }
.menu-badge.red { background: linear-gradient(180deg, #e8574c, #8a1f1a); box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.3), inset 0 0 0 2px #ffb0a0; }
.menu-head .sh-title { text-align: left; font-size: 21px; }
.menu-sub { font-size: 12px; color: #c9b8ee; letter-spacing: .05em; margin-top: 2px; }
.mbtn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
.mbtn svg { flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.mtog { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 15px; font-weight: 700; color: #b7aacd; background: #2a1c40; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
.mtog.on { color: #fff; background: #3b2a68; box-shadow: 0 4px 0 var(--ink), inset 0 0 0 2px var(--teal); }
.mtog:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.menu-sep { height: 3px; background: repeating-linear-gradient(90deg, #4a2a7a 0 8px, transparent 8px 14px); border-radius: 2px; }

/* ---- Bitiş ekranı ---- */
.sheet-back.center { align-items: center; padding: 0 12px; }
.sheet.end { max-width: 360px; border: 4px solid var(--ink); border-radius: 22px; padding: 0 14px 16px; gap: 10px; overflow: hidden; box-shadow: 0 8px 0 var(--ink), 0 0 0 4px #4a2a7a; background: linear-gradient(180deg, #34205f, var(--panel) 55%); animation: pop .42s cubic-bezier(.3,1.5,.5,1); position: relative; }
@keyframes pop { from { transform: scale(.7) translateY(30px); opacity: 0; } }
.sheet.end.lose { background: linear-gradient(180deg, #3a1a2e, #1a0f26 60%); }
.sheet.end.draw { background: linear-gradient(180deg, #1f3560, #1a1838 60%); }
.end-hero { position: relative; height: 150px; margin: 0 -14px; display: grid; place-items: center; overflow: hidden; }
.end-rays { position: absolute; width: 340px; height: 340px; left: 50%; top: 50%; margin: -170px 0 0 -170px; background: repeating-conic-gradient(from 0deg, rgba(255,210,63,.34) 0 10deg, transparent 10deg 22deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%); animation: spin 30s linear infinite; }
.sheet.end.lose .end-rays { background: radial-gradient(circle, rgba(224,69,58,.4), transparent 62%); animation: none; }
.sheet.end.draw .end-rays { background: repeating-conic-gradient(from 0deg, rgba(120,180,255,.3) 0 10deg, transparent 10deg 22deg); }
.emblem { position: relative; z-index: 1; animation: emblem .7s cubic-bezier(.3,1.6,.5,1) .15s both; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.sheet.end.win .emblem { animation: emblem .7s cubic-bezier(.3,1.6,.5,1) .15s both, float 2.6s ease-in-out .9s infinite; }
@keyframes emblem { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-5px); } }
.emblem .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 1.4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.55) rotate(25deg); opacity: .6; } }
.cf { position: absolute; top: -12px; width: 8px; height: 12px; border: 2px solid var(--ink); border-radius: 2px; animation: cfall 2.4s linear infinite; z-index: 2; }
@keyframes cfall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(190px) rotate(520deg); opacity: .9; } }
.end-ribbon { align-self: center; margin-top: -6px; padding: 8px 34px 10px; background: linear-gradient(180deg, #ffe28a, #ffb21f 55%, #e8870f); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); filter: drop-shadow(0 3px 0 var(--ink)); position: relative; }
.sheet.end.lose .end-ribbon { background: linear-gradient(180deg, #ff8a7a, #e0453a 55%, #8a1f1a); }
.sheet.end.draw .end-ribbon { background: linear-gradient(180deg, #cfe4ff, #8fb4e8 55%, #5a7fc0); }
.sheet.end .end-title { margin: 0; font-size: 30px; letter-spacing: .06em; color: #fff; }
.end-why { align-self: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #e8dcff; background: rgba(0,0,0,.35); border: 2px solid var(--ink); border-radius: 20px; padding: 3px 14px; }
.sheet.end .stats { gap: 7px; }
.sheet.end .stats div { flex-direction: column-reverse; padding: 6px 2px 5px; background: linear-gradient(180deg, #3b2a68, #241238); font-size: 10.5px; letter-spacing: .03em; box-shadow: 0 3px 0 var(--ink); }
.sheet.end .stats b { font-size: 24px; line-height: 1.1; }
.end-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.sheet.end.win .end-title, .sheet.end.lose .end-title, .sheet.end.draw .end-title { color: #fff; }
.end-btns .row2 > :only-child { grid-column: 1 / -1; }
.sheet.end .stats div { justify-content: center; align-items: center; min-height: 66px; gap: 3px; padding: 4px 2px; text-align: center; }
.sheet.end .stats b { display: block; width: 100%; text-align: center; line-height: 1; margin-top: -2px; }
.sheet.end .stats span { display: block; width: 100%; text-align: center; }
.sheet.end .stats div { flex-direction: column; }

.foe-dot.has-ic { width: 36px; height: 36px; background: radial-gradient(circle at 50% 40%, #5a3a96, #2a1c4d); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.foe-dot.has-ic svg { margin: -1px 0 0; }
.foe .bicon { display: block; margin: 0 auto 3px; }
.node { padding-left: 44px; }
.node-ic { position: absolute; left: 4px; top: 50%; margin-top: -19px; }
.node-ic svg { display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.next { position: relative; }
.next-ic { position: absolute; right: 10px; top: 10px; }
.next-ic svg { display: block; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }

/* ---- Yeni ana sayfa ---- */
.lvl-chip.pill { align-self: center; padding: 4px 14px; background: rgba(20,8,36,.7); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 3px 0 var(--ink); }
.logo { padding-top: 0; }
.logo-1, .logo-2 { font-size: 46px; }
.logo-1 { text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink), 0 5px 0 var(--ink), 0 0 22px rgba(255,210,63,.55); }
.home-hero { position: relative; height: 196px; margin: -4px -6px -6px; display: grid; place-items: center; overflow: visible; }
.home-rays { position: absolute; width: 380px; height: 380px; left: 50%; top: 50%; margin: -190px 0 0 -190px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,210,63,.26) 0 9deg, transparent 9deg 20deg); -webkit-mask: radial-gradient(circle, #000 14%, transparent 66%); mask: radial-gradient(circle, #000 14%, transparent 66%); animation: spin 60s linear infinite; pointer-events: none; }
.home-king { position: relative; z-index: 2; animation: kingbob 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
@keyframes kingbob { 50% { transform: translateY(-6px) rotate(1.2deg); } }
.orb { position: absolute; z-index: 1; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); animation: orbfloat 4s ease-in-out infinite; }
.orb svg { display: block; }
.orb.o0 { left: 8%; top: 10%; animation-delay: -.4s; } .orb.o1 { right: 9%; top: 6%; animation-delay: -1.6s; }
.orb.o2 { left: 2%; top: 52%; animation-delay: -2.4s; } .orb.o3 { right: 3%; top: 50%; animation-delay: -.9s; }
.orb.o4 { left: 19%; bottom: 0; animation-delay: -3s; } .orb.o5 { right: 20%; bottom: 2%; animation-delay: -2s; }
@keyframes orbfloat { 50% { transform: translateY(-8px) rotate(6deg); } }
.menu-list { gap: 10px; margin-top: 0; }
.cta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; color: #fff; background: linear-gradient(180deg, #4aa6ff, #2f8fe0 55%, #1e63b0); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 #0d3a6e, 0 6px 0 3px var(--ink), inset 0 2px 0 rgba(255,255,255,.35); transition: transform .06s, box-shadow .06s; }
.cta.cont { background: linear-gradient(180deg, #ff9a52, #ff6b2c 55%, #c8431a); box-shadow: 0 6px 0 #7a2a0a, 0 6px 0 3px var(--ink), inset 0 2px 0 rgba(255,255,255,.35); }
.cta:active { transform: translateY(5px); box-shadow: 0 1px 0 #0d3a6e, 0 1px 0 3px var(--ink); }
.cta-ic { flex: none; display: grid; place-items: center; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
.cta-tx { flex: 1; display: flex; flex-direction: column; } .cta-t { font-size: 23px; font-weight: 700; line-height: 1.05; }
.cta-tx small { font-size: 12px; color: #e9f2ff; margin-top: 3px; }
.cta-go { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 3px solid var(--ink); border-radius: 50%; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 9px; color: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.28); transition: transform .06s, box-shadow .06s; }
.tile:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.2); }
.tile.t1 { background: linear-gradient(180deg, #2fc7bf, #19a7a1 60%, #0f7a76); } .tile.t2 { background: linear-gradient(180deg, #8a6ee8, #6a4cc8 60%, #46308f); }
.tile.t3 { background: linear-gradient(180deg, #ffd04a, #e8a317 60%, #a8700a); } .tile.t4 { background: linear-gradient(180deg, #ff7aa0, #e0453a 60%, #96241f); }
.tile-ic { height: 46px; display: grid; place-items: center; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); } .tile-ic .pair { display: flex; align-items: flex-end; }
.tile-t { font-size: 16px; font-weight: 700; line-height: 1.1; text-align: center; }
.tile small { font-size: 11px; color: rgba(255,255,255,.9); text-align: center; line-height: 1.15; }
.dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 2px; }
.dock-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; font-size: 11.5px; font-weight: 700; color: #e8dcff; background: linear-gradient(180deg, #3b2a68, #241238); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.18); }
.dock-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.dock-btn svg { filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
@media (max-height: 740px) { .home-hero { height: 150px; } .home-king svg { height: 140px; width: 100px; } .orb svg { width: 34px; height: 34px; } .logo-1, .logo-2 { font-size: 38px; } }
.home-hero { height: 170px; margin-bottom: -10px; }
.logo-1, .logo-2 { font-size: 40px; }
.tagline { margin-top: 2px; font-size: 12px; }
.cta { padding: 8px 12px; }
.tile { padding: 6px 4px 7px; }
.tile-ic { height: 40px; }
.tile-ic svg { max-height: 40px; }
.tile-t { font-size: 14.5px; }
.tiles { gap: 8px; } .menu-list { gap: 8px; }

/* ---- Profil ve başarımlar ---- */
.prof { display: flex; flex-direction: column; gap: 10px; }
.prof-card { display: flex; gap: 12px; align-items: center; padding: 12px; background: linear-gradient(180deg, #3b2a68, #241238); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.2); }
.prof-av { flex: none; width: 92px; height: 108px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #8a1f3d, #2a0a24); border: 3px solid var(--ink); border-radius: 14px; box-shadow: inset 0 0 0 2px #c98a10; }
.prof-av svg { filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.prof-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prof-name-in { width: 100%; background: transparent; border: 0; border-bottom: 2px dashed #6a4aa8; color: #fff; font: inherit; font-size: 20px; font-weight: 700; padding: 0 0 2px; }
.prof-rank { font-size: 22px; color: var(--gold); letter-spacing: .04em; }
.prof-lvl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e8dcff; } .prof-lvl .bar { flex: 1; } .prof-lvl small { font-size: 11px; color: #b7aacd; }
.kupa-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: linear-gradient(180deg, #5a3e0a, #2e1d06); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink), inset 0 0 0 2px #c98a10; }
.kupa-ic { flex: none; width: 60px; height: 60px; display: grid; place-items: center; background: radial-gradient(circle, #ffe28a55, transparent 70%); } .kupa-ic svg { filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); width: 54px; height: 54px; }
.kupa-tx { flex: 1; display: flex; flex-direction: column; gap: 4px; } .kupa-tx small { font-size: 12px; color: #f3dca0; }
.kupa-n { font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1; } .kupa-n small { font-size: 14px; color: #f3dca0; text-shadow: none; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ps { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 5px; background: linear-gradient(180deg, #3b2a68, #241238); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); text-align: center; }
.ps b { font-size: 20px; line-height: 1.1; } .ps span { font-size: 10px; color: #c9b8ee; line-height: 1.1; }
.ps .bicon { filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.sec-label.ach-head { display: flex; align-items: center; justify-content: space-between; }
.sec-label i, .ach-cat-h i { font-style: normal; font-size: 12px; background: var(--gold); color: var(--ink); border-radius: 10px; padding: 1px 9px; margin-left: 8px; font-weight: 700; }
.ach-total { margin-top: -4px; }
.ach-bar { position: relative; height: 14px; background: #0b0713; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.ach-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 0 #000; }
.ach-bar.rank { height: 10px; } .ach-bar.rank i { background: linear-gradient(90deg, #ffb21f, #fff0a8); }
.ach-cat { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ach-cat-h { font-size: 15px; font-weight: 700; color: #ffe9a0; display: flex; align-items: center; margin-top: 4px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.ach.done { background: linear-gradient(180deg, #3a2c64, #241238); box-shadow: 0 3px 0 var(--ink), inset 0 0 0 2px rgba(255,210,63,.5); }
.ach-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ach-tx b { font-size: 15px; } .ach-tx small { font-size: 12px; color: #c9b8ee; line-height: 1.2; } .ach-tx em { font-style: normal; font-size: 11px; color: var(--gold); font-weight: 700; }
.ach:not(.done) .ach-tx b { color: #d9cfee; } .ach-tx .ach-bar { margin-top: 3px; height: 13px; }
.ach-pts { flex: none; font-size: 12px; font-weight: 700; color: #b7aacd; background: #0b0713; border: 2px solid var(--ink); border-radius: 10px; padding: 2px 8px; } .ach-pts.on { color: var(--ink); background: var(--gold); }
.medal { flex: none; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.4); }
.medal.bronze { background: radial-gradient(circle at 35% 30%, #f0b27a, #a8642a); } .medal.silver { background: radial-gradient(circle at 35% 30%, #ffffff, #9aa8c4); }
.medal.gold { background: radial-gradient(circle at 35% 30%, #fff3a8, #e8a317); } .medal.plat { background: radial-gradient(circle at 35% 30%, #e8fbff, #5fc8ea); box-shadow: 0 3px 0 var(--ink), 0 0 12px rgba(120,220,255,.7), inset 0 2px 0 rgba(255,255,255,.5); }
.medal svg { display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.medal.locked { background: #2a2040; box-shadow: 0 3px 0 var(--ink); } .medal.locked svg { filter: grayscale(1) brightness(.55); opacity: .75; }
.ach-toast { position: fixed; left: 50%; top: calc(14px + var(--sat)); z-index: 120; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: linear-gradient(180deg, #4a2f86, #2a1650); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink), 0 0 0 3px var(--gold), 0 0 22px rgba(255,210,63,.5); animation: achin .5s cubic-bezier(.3,1.5,.5,1), achout .4s ease 3s forwards; max-width: calc(100vw - 24px); }
.ach-toast small { display: block; font-size: 11px; color: var(--gold); letter-spacing: .06em; } .ach-toast b { font-size: 16px; }
@keyframes achin { from { transform: translate(-50%, -40px) scale(.8); opacity: 0; } }
@keyframes achout { to { transform: translate(-50%, -30px); opacity: 0; } }
.ach-toast { width: max-content; }
.ach-toast b { white-space: nowrap; }

/* ---- Yeni skor çubuğu (puan + zincir) ---- */
.plates { gap: 8px; }
.plates .times { display: none; }
.plate { width: auto; flex: 1; max-width: 176px; display: flex; align-items: center; gap: 8px; padding: 5px 12px 6px 8px; text-align: left; transform: none; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.3); }
.plate.orange { transform: none; }
.plate.teal { background: linear-gradient(180deg, #2fc7bf, #19a7a1 55%, #0f7a76); }
.plate.orange { background: linear-gradient(180deg, #ff9a52, #ff6b2c 55%, #c8431a); }
.plate-ic { flex: none; display: grid; place-items: center; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); } .plate-ic svg { display: block; }
.plate-tx { display: flex; flex-direction: column; min-width: 0; }
.plate .cap { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.85) !important; line-height: 1.1; }
.plate .big { font-size: 30px; line-height: 1; margin-top: 1px; }
.plate.orange .big::before { content: '×'; font-size: .62em; margin-right: 2px; opacity: .85; }
.plate.hot { box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.3), 0 0 16px rgba(255,150,40,.95); animation: hotpulse 1s ease-in-out infinite; }
@keyframes hotpulse { 50% { filter: brightness(1.18); } }
.plate.hot .plate-ic { animation: orbfloat 1s ease-in-out infinite; }
.foe-coin { display: grid; place-items: center; margin-right: 2px; } .foe-coin svg { display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }

/* ---- Skor çubuğu v2: tek kapsül (puan | zincir sayacı) ---- */
.hudbar { display: flex; align-items: stretch; z-index: 2; background: linear-gradient(180deg, #2f1b58, #170a2c); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.16), inset 0 0 0 2px rgba(255,210,63,.35); overflow: hidden; }
.hb-pts, .hb-chain { display: flex; align-items: center; gap: 9px; padding: 5px 14px 6px 10px; }
.hb-pts { flex: 0 0 41%; background: linear-gradient(180deg, rgba(255,210,63,.2), rgba(255,210,63,.04)); border-right: 3px solid var(--ink); }
.hb-chain { flex: 1; min-width: 0; transition: background .2s; }
.hb-ic { flex: none; display: grid; place-items: center; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); } .hb-ic svg { display: block; }
.hb-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hb-tx small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: #c9b8ee; line-height: 1; }
.hb-pts .hv { font-size: 30px; line-height: 1; color: var(--gold); }
.hb-pts.bounce { animation: bounce .32s cubic-bezier(.3,1.6,.5,1); }
.pips { display: flex; gap: 4px; height: 20px; align-items: center; }
.pip { flex: 1; max-width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 5px; background: #0b0713; box-shadow: inset 0 2px 0 rgba(255,255,255,.08); transform: skewX(-12deg); transition: background .15s, transform .15s; }
.pip.on { background: linear-gradient(180deg, #ffd23f, #ff6b2c); box-shadow: 0 0 8px rgba(255,150,40,.8), inset 0 2px 0 rgba(255,255,255,.5); transform: skewX(-12deg) translateY(-1px); }
.hb-mult { flex: none; font-size: 22px; font-weight: 700; color: #fff; min-width: 44px; text-align: right; line-height: 1; }
.hb-mult .hv { font-size: 26px; }
.hb-chain.hot { background: linear-gradient(180deg, rgba(255,107,44,.45), rgba(255,107,44,.08)); animation: hotpulse 1s ease-in-out infinite; }
.hb-chain.hot .hb-mult { color: #ffb15c; }
.hb-chain.hot .hb-ic { animation: orbfloat 1s ease-in-out infinite; }
.hb-chain.bounce .hb-mult { animation: bounce .32s cubic-bezier(.3,1.6,.5,1); }

/* ---- Yazı tipleri: başlık piksel, sayılar kalın oyun fontu, metin temiz ---- */
:root { --f-pixel: 'Pixelify Sans', 'Courier New', monospace; --f-num: 'Lilita One', 'Nunito', sans-serif; --f-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { font-family: var(--f-text); font-weight: 700; }
.out, .btn, .icon-btn, .sec-label, .card-name, .rar-tag, .seg button, .foe, .dock-btn, .mtog, .pwa-toast, .ach-tx b, .ach-cat-h, .prof-name-in, .sheet-title, .sh-title, .end-title, .title-sm, .logo-1, .logo-2, .once, .lvl-chip span, .army-row b, .node, .tile-t { font-family: var(--f-pixel); }
.hv, .hb-mult, .clk, .price, .sheet.end .stats b, .ps b, .kupa-n, .ach-pts, .ach-bar span, .badge .v, .badge .out.v, .float, .stat b, .foe-chain, .ach-cat-h i, .sec-label i, .prof-lvl small, .lvl-chip small, .big, .plate .big, .co, .node-n, .range-v { font-family: var(--f-num); font-weight: 400; letter-spacing: .02em; }
.ach-toast b, .ach-toast small, .status, .tagline { font-family: var(--f-text); font-weight: 800; }
.tagline { font-family: var(--f-pixel); }
.card-desc, .desc, .note, .hint, .why, .ds, small, .menu-sub, .sheet.end .stats span, .ps span, .ach-tx small, .tile small, .cta-tx small, .hb-tx small, .foe small { font-family: var(--f-text); font-weight: 700; }
.cta-t, .tile-t { font-family: var(--f-pixel); }

.tiles.one { grid-template-columns: 1fr; }
.tile.wide { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 2px 12px; padding: 12px 16px; text-align: left; }
.tile.wide .tile-ic { height: auto; flex: none; grid-row: span 2; }
.tile.wide .tile-t { font-size: 20px; flex: 1; text-align: left; }
.tile.wide > small { flex-basis: 100%; padding-left: 56px; margin-top: -14px; text-align: left; }
.foe-dot.has-ic { width: 40px; height: 40px; border: 0; background: none; border-radius: 0; overflow: visible; display: grid; place-items: center; }
.foe-dot.has-ic svg { width: 40px; height: 40px; margin: 0; display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }

.badge.pts-badge { min-width: 76px; justify-content: center; gap: 7px; padding: 5px 14px; height: 44px; }
.pts-badge .foe-coin { display: grid; place-items: center; margin: 0; line-height: 0; }
.pts-badge .out.v { display: block; font-size: 24px; line-height: 1; margin: -2px 0 0; padding: 0; text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink); }
.hud-top .badge { height: 44px; align-items: center; }
/* küçük isimlerde piksel fontun c/o karışıklığını önle */
.badge .name, .card-name, .ach-tx b, .foe .out, .army-row b, .tile-t, .node .out, .ach-cat-h { font-family: var(--f-num); font-weight: 400; letter-spacing: .03em; }
.badge .name { font-size: 17px; }


.diff-chip { display: inline-block; margin-top: 4px; padding: 1px 9px 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.diff-chip.d1 { background: #5fdc84; } .diff-chip.d2 { background: #ffd23f; } .diff-chip.d3 { background: #ff9a52; } .diff-chip.d4 { background: #ff5a4a; color: #fff; } .diff-chip.d5 { background: #8a1f3d; color: #fff; }
.next-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .next-name .diff-chip { margin-top: 0; }
.desc { line-height: 1.3; }
.next { padding-right: 78px !important; }
.next .row2, .next .desc.dim { max-width: 100%; }
.slots + .cap.center { margin-top: 12px; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1; }
.slots { padding-bottom: 4px; }

.tile.wide { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 14px 16px; }
.tile.wide .tile-ic { height: auto; flex: none; width: 48px; display: grid; place-items: center; }
.tile.wide .tile-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; text-align: left; }
.tile.wide .tile-t { font-size: 21px; line-height: 1.1; text-align: left; }
.tile.wide .tile-tx small { flex-basis: auto; padding: 0; margin: 0; font-size: 13px; line-height: 1.25; text-align: left; color: rgba(255,255,255,.92); }

/* ---- Derece, sıralama, bulut ---- */
.hidden { display: none !important; }
.rate-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: linear-gradient(180deg, #3b2a68, #241238); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink), inset 0 0 0 2px var(--tc, #6a4aa8); position: relative; }
.rate-card.off { justify-content: center; color: #c9b8ee; box-shadow: 0 4px 0 var(--ink); }
.rate-ic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 45%, transparent), transparent 70%); } .rate-ic svg { filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.rate-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rate-n .out { font-size: 30px; line-height: 1; color: var(--tc, #fff); } .rate-n small { font-size: 12px; color: #c9b8ee; }
.rate-t { font-size: 14px; font-weight: 800; color: var(--tc, #fff); letter-spacing: .04em; } .rate-tx small { font-size: 11.5px; color: #c9b8ee; }
.rate-on { position: absolute; right: 10px; top: 8px; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #9fe8b5; } .rate-on i { width: 8px; height: 8px; border-radius: 50%; background: #5fdc84; box-shadow: 0 0 6px #5fdc84; }
.rated-note { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255,210,63,.12); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink), inset 0 0 0 2px rgba(255,210,63,.45); } .rated-note b { display: block; font-size: 15px; color: var(--gold); } .rated-note small { font-size: 12px; color: #e8dcff; }
.wait-clock { font-family: var(--f-num); font-size: 44px; color: var(--gold); text-shadow: 0 3px 0 var(--ink); line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip-b { padding: 6px 12px; min-height: 36px; font-size: 13px; background: #3b2a58; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); color: #fff; } .chip-b.on { background: var(--blue); box-shadow: 0 3px 0 var(--ink), 0 0 0 2px var(--gold); }
.lb { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.lb-row.me { box-shadow: 0 3px 0 var(--ink), inset 0 0 0 2px var(--gold); background: #2c1650; }
.lb-rank { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--f-num); font-size: 16px; background: #0b0713; border-radius: 50%; border: 2px solid var(--ink); }
.lb-row.top1 .lb-rank { background: #ffd23f; color: var(--ink); } .lb-row.top2 .lb-rank { background: #cdd6ea; color: var(--ink); } .lb-row.top3 .lb-rank { background: #c98745; color: var(--ink); }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; } .lb-rec { font-size: 12px; color: #c9b8ee; } .lb-rate { font-family: var(--f-num); font-size: 20px; color: var(--gold); min-width: 52px; text-align: right; }
.rating-box { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #2a1c40; box-shadow: 0 3px 0 var(--ink); }
.rating-box .out { font-size: 26px; } .rating-box.up .out { color: #7dffa4; } .rating-box.down .out { color: #ff8a7a; } .rating-box small { font-size: 12px; color: #c9b8ee; }
.cloud-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: linear-gradient(180deg, #243a6a, #16203f); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink), inset 0 0 0 2px rgba(120,200,255,.4); }
.cloud-h { display: flex; align-items: center; gap: 10px; } .cloud-h b { display: block; font-size: 16px; } .cloud-h small, .cloud-st { font-size: 12px; color: #bcd2ff; }
.cloud-code { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #0b0713; border: 2px solid var(--ink); border-radius: 10px; } .cloud-code b { font-family: monospace; font-size: 13px; word-break: break-all; color: var(--gold); user-select: text; } .cloud-code small { font-size: 12px; color: #ffb0a0; }
.text-in.long { letter-spacing: .02em; font-size: 13px; text-transform: none; }

/* ---- Rehber ve ipuçları ---- */
.sheet-back.fixed { position: fixed; z-index: 150; }
.sheet.intro { max-width: 340px; align-items: center; text-align: center; gap: 12px; padding: 20px 18px 18px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink), 0 0 0 4px #4a2a7a; background: linear-gradient(180deg, #34205f, var(--panel) 60%); animation: pop .35s cubic-bezier(.3,1.5,.5,1); }
.intro-ic { width: 108px; height: 108px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.3), transparent 70%); } .intro-ic svg { filter: drop-shadow(0 4px 0 rgba(0,0,0,.4)); }
.intro-t { font-size: 24px; }
.intro-d { font-size: 15.5px; line-height: 1.45; color: #e8dcff; }
.dots { display: flex; gap: 8px; justify-content: center; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #0b0713; border: 2px solid var(--ink); } .dots i.on { background: var(--gold); box-shadow: 0 0 8px rgba(255,210,63,.7); }
.sheet.intro .row2, .sheet.intro .btn { width: 100%; }
.tip-banner { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; background: rgba(255,210,63,.14); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink), inset 0 0 0 2px rgba(255,210,63,.5); font-size: 13.5px; line-height: 1.35; color: #fff1c0; } .tip-banner > span { flex: 1; }
.tip-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: #0b0713; color: #fff; font-size: 18px; line-height: 1; }
.logo-1, .logo-2 { font-family: var(--f-num) !important; font-weight: 400; font-size: 52px; letter-spacing: .05em; line-height: .92; }
.logo-2 { margin-top: 0; }
@media (max-height: 740px) { .logo-1, .logo-2 { font-size: 42px; } }
/* Logo: Press Start 2P (8bit, C ile O ayırt edilir) */
.logo-1, .logo-2 { font-family: 'Press Start 2P', var(--f-pixel) !important; font-size: 42px; letter-spacing: 0; line-height: 1.05; }
.logo-2 { margin-top: 4px; }
@media (max-height: 740px) { .logo-1, .logo-2 { font-size: 34px; } }
/* Kilitli kart: siluet + ??? + kilit rozeti (içerik ipucu verir ama açılmadan görünmez) */
.is-locked { opacity: .92; }
.is-locked .card-name, .is-locked.relic .card-name { color: #b7aacd; }
.is-locked .card-art, .is-locked .relic-ic { background: #2d2347 !important; }
.is-locked .card-art .bicon, .is-locked .relic-ic .bicon, .is-locked .card-art svg, .is-locked .relic-ic svg { filter: brightness(0) opacity(.55); }
.is-locked .art-tag, .is-locked > .rar-tag, .is-locked > .once { display: none; }
.lock-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 2px 9px 2px 5px; border: 2px solid var(--ink); border-radius: 10px; background: #231a3b; color: #ffd23f; font-size: 12px; font-weight: 800; box-shadow: 0 2px 0 var(--ink); }
.lock-chip svg { flex: none; }
.card.r-l.is-locked::after { display: none; }
/* Ana sayfa: tüm görünür boşluklar eşit (--g), alt gölgeler hesaba katılır */
.home-menu, .menu-list { --g: 10px; }
.menu-list { gap: 0; margin: 0; }
.menu-list > .cta { margin-bottom: calc(var(--g) + 9px); }
.tiles { column-gap: var(--g); row-gap: calc(var(--g) + 5px); }
.dock { --g: 10px; gap: var(--g); margin-top: calc(var(--g) - 7px); }
@media (max-height: 740px) { .menu-list, .dock { --g: 8px; } }

/* Nasıl oynanır */
.hw { gap: 18px; }
.hw-hero { display: flex; align-items: center; gap: 12px; padding: 12px; background: linear-gradient(180deg, #5a35b8, #3b2380); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.2); }
.hw-hero-ic { flex: none; display: grid; place-items: center; width: 74px; height: 74px; background: rgba(0,0,0,.25); border: 3px solid var(--ink); border-radius: 50%; }
.hw-hero-t { font-size: 20px; color: var(--gold); line-height: 1.1; }
.hw-hero p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.3; color: #efe6ff; font-family: var(--f-text); font-weight: 700; }
.hw-sec { display: flex; flex-direction: column; gap: 10px; }
.hw-h { font-size: 17px; color: #fff; }
.hw-note { margin: 0; font-size: 13px; line-height: 1.35; color: #cdbdf0; font-family: var(--f-text); font-weight: 700; }
.hw-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.hw-choice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.3); color: #fff; }
.hw-choice.a { background: linear-gradient(180deg, #2fc9b9, #1a8f8a); }
.hw-choice.b { background: linear-gradient(180deg, #8a6bef, #5a3fbf); }
.hw-choice b { font-size: 16px; font-family: var(--f-num); font-weight: 400; text-shadow: 0 2px 0 var(--ink); }
.hw-choice small { font-size: 12px; line-height: 1.25; color: #fff; font-family: var(--f-text); font-weight: 700; }
.hw-ic { display: grid; place-items: center; height: 44px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.hw-or { font-size: 14px; color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.hw-chain { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hw-chain i { font-style: normal; font-size: 26px; color: #8f7fc0; }
.hw-mult { min-width: 64px; text-align: center; padding: 8px 10px; font-size: 24px; font-family: var(--f-num); color: #fff; background: #3b2a66; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); text-shadow: 0 2px 0 var(--ink); }
.hw-mult.on { background: linear-gradient(180deg, #ffd23f, #f29a1a); }
.hw-step { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--panel); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.hw-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-size: 20px; font-family: var(--f-num); color: #fff; background: #2f8fe0; border: 3px solid var(--ink); border-radius: 50%; text-shadow: 0 2px 0 var(--ink); }
.hw-step b { display: block; font-size: 14.5px; color: #fff; font-family: var(--f-text); font-weight: 800; }
.hw-step small { display: block; font-size: 12.5px; color: #cdbdf0; margin-top: 1px; font-family: var(--f-text); font-weight: 700; }
.hw-tips { display: flex; flex-direction: column; gap: 8px; }
.hw-tip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--panel); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.hw-tip svg { flex: none; }
.hw-tip p { margin: 0; font-size: 13.5px; line-height: 1.3; color: #efe6ff; font-family: var(--f-text); font-weight: 700; }
.hw-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hw-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 6px; background: var(--panel); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.hw-mini b { font-size: 15px; color: var(--gold); font-family: var(--f-num); font-weight: 400; text-shadow: 0 2px 0 var(--ink); }
.hw-mini small { font-size: 11.5px; line-height: 1.25; color: #d9ccf5; font-family: var(--f-text); font-weight: 700; }
.hw-mic { display: grid; place-items: center; height: 44px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.hw-h, .hw-hero-t { font-family: var(--f-num); font-weight: 400; letter-spacing: .02em; }
.hw-h { font-size: 19px; }
.hw-hero-t { font-size: 22px; }

/* Parçacık efektleri: yeme (parça saçılması), boost (halka + kıvılcım) */
.burst { position: absolute; width: 0; height: 0; z-index: 5; pointer-events: none; }
.burst .sp { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: #fff6df; border: 2px solid var(--ink); border-radius: 2px; box-sizing: content-box; margin: -2px; animation: spk .55s cubic-bezier(.2,.8,.3,1) forwards; }
.burst.cap .sp { background: var(--gold); }
.burst.buy .sp { background: #7ad0ff; border-radius: 50%; }
.burst.legend .sp { background: #ff9bf0; border-radius: 50%; }
.burst .ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,.8); animation: ringout .5s ease-out forwards; }
.burst.legend .ring { border-color: #ff9bf0; }
@keyframes spk { 0% { transform: translate(0, 0) scale(var(--s)); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0) rotate(180deg); opacity: 0; } }
@keyframes ringout { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* Alt panel boşta: yönlendirme + yadigârlar */
.pinfo.idle { display: flex; flex-direction: column; gap: 4px; padding-right: 48px; }
.idle-d { font-size: 13px; line-height: 1.3; color: #cdbdf0; font-family: var(--f-text); font-weight: 700; }
.idle-relics { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.idle-rel { display: grid; place-items: center; width: 34px; height: 34px; background: #3b2a66; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 0 2px 0 var(--ink); }
.idle-rel svg { display: block; }
.idle-rel { padding: 0; cursor: pointer; } .idle-rel:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
/* Seviye çubuğu: yazı asla alta kırılmasın, çubuk gerekirse daralsın */
.lvl-chip span { white-space: nowrap; flex: none; }
.lvl-chip .bar { flex: 0 1 120px; min-width: 56px; }
.lvl-chip.pill { max-width: calc(100% - 24px); }
