@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url(vendor/fonts/fredoka-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url(vendor/fonts/fredoka-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(vendor/fonts/fredoka-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(vendor/fonts/fredoka-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(vendor/fonts/fredoka-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(vendor/fonts/fredoka-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #2b2d42; --paper: #ffffff; --accent: #39c5ff; --go: #ffb703; --go-d: #e07c00; --alt: #a45cff; --alt-d: #7a35d6;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #a8dcff; font-family: 'Fredoka', system-ui, 'Hiragino Sans', 'Noto Sans JP', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans Arabic', sans-serif; color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }

/* ---------- yükleme ---------- */
#loading { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: linear-gradient(#a8dcff, #d9f1ff); transition: opacity .4s; }
#loading.hide { opacity: 0; pointer-events: none; }
#loading .lg, .logo span { font-weight: 700; font-size: min(64px, 12vw); white-space: nowrap; letter-spacing: 2px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
#loading .bar { width: 220px; height: 14px; border-radius: 99px; background: rgba(43,45,66,.15); overflow: hidden; }
#loading .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .3s; }
#loading span { font-weight: 500; opacity: .7; }

/* ---------- sanal çubuk ---------- */
#stick { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .15s; }
#stick.on { opacity: 1; }
#stick::before { content: ''; position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.55); }
#stick i { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 3px 8px rgba(0,0,0,.2); }

/* ---------- oyun arayüzü ---------- */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; transition: opacity .3s; }
.hud.hidden { opacity: 0; visibility: hidden; }
.hudTop { position: absolute; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; align-items: flex-start; gap: 8px; }
.timer { display: flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 16px; padding: 8px 12px; font-weight: 700; font-size: 22px; box-shadow: 0 4px 0 rgba(43,45,66,.18); min-width: 92px; }
.timer i { font-style: normal; font-size: 18px; }
.timer.low { background: #ff4d5e; color: #fff; }
.timer.beat { animation: beat .35s; }
.goals { flex: 1; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.goal { position: relative; width: 64px; height: 70px; background: var(--paper); border-radius: 16px; box-shadow: 0 4px 0 rgba(43,45,66,.18); display: grid; justify-items: center; align-content: start; padding-top: 2px; }
.goal img { width: 48px; height: 48px; }
.goal b { font-weight: 700; font-size: 18px; line-height: 1; margin-top: -4px; }
.goal i { display: none; position: absolute; inset: 0; border-radius: 16px; background: rgba(46,194,126,.9); color: #fff; font-style: normal; font-size: 34px; font-weight: 700; place-content: center; }
.goal.done i { display: grid; }
.goal.pop { animation: pop .3s; }
.pauseBtn { pointer-events: auto; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); box-shadow: 0 4px 0 rgba(43,45,66,.18); font-weight: 700; font-size: 16px; }
.lvlTag { position: absolute; top: calc(92px + var(--safe-t)); left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 15px; color: #fff; background: rgba(43,45,66,.35); padding: 3px 12px; border-radius: 99px; }
.hint { position: absolute; bottom: calc(18% + var(--safe-b)); left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 24px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; white-space: nowrap; transition: opacity .4s; animation: bob 1.4s ease-in-out infinite; }
.hint span { display: inline-block; animation: swipe 1.4s ease-in-out infinite; }
.hint.gone { opacity: 0; }
img.fly { position: fixed; left: 0; top: 0; width: 56px; height: 56px; z-index: 12; pointer-events: none; transition: transform .5s cubic-bezier(.5,-0.3,.7,1); filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.float { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-weight: 700; font-size: 26px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; animation: rise 1.2s ease-out forwards; white-space: nowrap; }
.float.grow { font-size: 30px; color: #ffe066; }
.float.combo { font-size: 34px; color: #ff8fc7; }
.float.time { color: #9ff0ff; }

/* ---------- pencereler ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); opacity: 0; transition: opacity .25s; }
.overlay.in { opacity: 1; }
.overlay:not(.menu):not(.home) { background: rgba(20,24,44,.45); }
.card { width: min(360px, 100%); background: var(--paper); border-radius: 28px; padding: 22px 20px 20px; text-align: center; box-shadow: 0 8px 0 rgba(43,45,66,.25); transform: scale(.85); transition: transform .3s cubic-bezier(.3,1.6,.6,1); }
.overlay.in .card { transform: none; }
.card h2 { margin: 0; font-size: 34px; font-weight: 700; }
.card .sub { opacity: .55; font-weight: 600; margin-top: 2px; }
.btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.btns.col { flex-direction: column; align-items: stretch; }
.big { font-weight: 700; font-size: 24px; letter-spacing: 1px; padding: 14px 34px; border-radius: 20px; color: #fff; -webkit-text-stroke: 1.5px rgba(0,0,0,.25); paint-order: stroke fill; transition: transform .1s; }
.big:active, .mid:active, .round:active { transform: translateY(3px); }
.big.play { background: var(--go); box-shadow: 0 6px 0 var(--go-d); }
.big.alt { background: var(--alt); box-shadow: 0 6px 0 var(--alt-d); }
.big .ad { font-size: 18px; margin-right: 4px; }
.mid { font-weight: 600; font-size: 18px; padding: 11px; border-radius: 16px; background: #eef2f7; box-shadow: 0 4px 0 #d3dae4; }
.mid.ghost { background: transparent; box-shadow: none; opacity: .6; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.stars i { font-style: normal; font-size: 54px; color: #dfe4ec; line-height: 1; }
.stars i.on { color: #ffc93c; -webkit-text-stroke: 2px #e09a00; animation: star .45s both; }
.sad { font-size: 64px; margin: 10px 0 0; }
.reward { font-weight: 700; font-size: 22px; }
.reward i, .coins i { font-style: normal; color: #ffc93c; -webkit-text-stroke: 1.5px #e09a00; }

.menu { align-items: stretch; justify-items: stretch; grid-template-rows: auto 1fr auto; }
.menuTop { display: flex; justify-content: space-between; align-items: center; }
.coins { display: flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 99px; padding: 6px 14px 6px 10px; font-weight: 700; font-size: 20px; box-shadow: 0 4px 0 rgba(43,45,66,.18); }
.round { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); font-size: 24px; box-shadow: 0 4px 0 rgba(43,45,66,.18); }
.logo { display: grid; justify-items: center; align-content: start; margin-top: 6vh; }
.logo span { font-size: min(78px, 11vw); animation: bob 2.4s ease-in-out infinite; }
.logo em { font-style: normal; font-weight: 600; font-size: 18px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; letter-spacing: 1px; margin-top: 6px; }
.menuBottom { display: grid; justify-items: center; gap: 12px; margin-bottom: 7vh; }
.lvlPill { font-weight: 700; font-size: 20px; background: rgba(43,45,66,.5); color: #fff; padding: 6px 18px; border-radius: 99px; }
.menu .big.play { font-size: 34px; padding: 18px 64px; animation: breathe 1.6s ease-in-out infinite; }

.settings .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; font-weight: 600; font-size: 19px; border-bottom: 1px solid #eef2f7; }
.settings .row.col { flex-direction: column; align-items: stretch; gap: 10px; }
.tog { width: 58px; height: 32px; border-radius: 99px; background: #d3dae4; position: relative; transition: background .2s; }
.tog i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.tog.on { background: #2ec27e; }
.tog.on i { transform: translateX(26px); }
.segs { display: flex; gap: 6px; }
.seg { flex: 1; padding: 9px 4px; border-radius: 12px; background: #eef2f7; font-weight: 600; font-size: 14px; }
.seg.on { background: var(--ink); color: #fff; }
.note { font-size: 13px; opacity: .5; margin-top: 8px; }

@media (max-width: 480px) {
  .hudTop { left: 8px; right: 8px; gap: 6px; }
  .timer { font-size: 19px; padding: 7px 9px; min-width: 76px; gap: 4px; }
  .timer i { font-size: 15px; }
  .goals { gap: 6px; flex-wrap: nowrap; }
  .goal { width: 54px; height: 62px; border-radius: 14px; }
  .goal img { width: 42px; height: 42px; }
  .goal b { font-size: 16px; }
  .pauseBtn { width: 42px; height: 42px; }
  .lvlTag { top: calc(80px + var(--safe-t)); font-size: 13px; }
}
@keyframes pop { 50% { transform: scale(1.25); } }
@keyframes beat { 50% { transform: scale(1.12); } }
@keyframes bob { 50% { transform: translate(var(--bx, 0), -6px); } }
.hint { --bx: -50%; }
@keyframes swipe { 0%, 100% { transform: translateX(-10px) rotate(-10deg); } 50% { transform: translateX(10px) rotate(10deg); } }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
@keyframes star { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3) rotate(10deg); } 100% { transform: none; } }
@keyframes breathe { 50% { transform: scale(1.06); } }

/* ================= v0.2: ana menü, mağaza, güçlendiriciler, arena ================= */
.hud.hidden, .deadMsg.hidden { display: none; }
.chip { display: flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 99px; padding: 5px 12px 5px 8px; font-weight: 700; font-size: 18px; box-shadow: 0 4px 0 rgba(43,45,66,.18); }
.chip .coins { box-shadow: none; padding: 0; background: none; }
.chip em { font-style: normal; background: #2ec27e; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1; }
.chip.lives i { font-style: normal; color: #ff4d5e; font-size: 22px; }
.chip.lives small { font-size: 12px; font-weight: 600; opacity: .6; min-width: 34px; }
.menuTop { gap: 8px; }
.menuTop .round { margin-left: auto; }
.home { align-items: stretch; justify-items: stretch; grid-template-rows: auto 1fr auto; }
.modes { display: flex; gap: 8px; width: min(420px, 100%); }
.mode { flex: 1; background: rgba(255,255,255,.92); border-radius: 18px; padding: 10px 8px; box-shadow: 0 4px 0 rgba(43,45,66,.18); display: grid; gap: 2px; text-align: center; }
.mode b { font-size: 16px; }
.mode small { font-size: 11px; font-weight: 500; opacity: .6; }
.mode.locked { opacity: .55; filter: grayscale(.7); }
.navBar { display: flex; gap: 6px; width: min(420px, 100%); }
.navBar button { flex: 1; position: relative; display: grid; justify-items: center; gap: 2px; background: rgba(43,45,66,.55); color: #fff; border-radius: 16px; padding: 8px 4px; font-weight: 600; font-size: 13px; }
.navBar span { font-size: 22px; }
.navBar .dot { position: absolute; top: 6px; right: 18%; width: 12px; height: 12px; background: #ff4d5e; border-radius: 50%; border: 2px solid #fff; }
.home .menuBottom { gap: 10px; margin-bottom: 3vh; }
.home .big.play { font-size: 32px; padding: 16px 60px; animation: breathe 1.6s ease-in-out infinite; }
.card.wide { width: min(460px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.card .lbl { font-weight: 700; font-size: 14px; opacity: .55; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .5px; }
.goalRow { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.goalRow .goal { box-shadow: 0 3px 0 #d3dae4; background: #f4f6fa; }
.goalRow .goal.big { width: 110px; }
.goalRow .goal.big b { font-size: 14px; }
.preRow { display: flex; justify-content: center; gap: 10px; }
.preB { position: relative; display: grid; justify-items: center; width: 96px; padding: 10px 6px 8px; border-radius: 16px; background: #eef2f7; box-shadow: 0 4px 0 #d3dae4; border: 3px solid transparent; }
.preB span { font-size: 28px; }
.preB small { font-size: 12px; font-weight: 600; }
.preB b { position: absolute; top: -8px; right: -8px; background: #ff4d5e; color: #fff; border-radius: 99px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; padding: 0 5px; }
.preB.on { border-color: #2ec27e; background: #e6fbf0; }
.bigIcon { font-size: 56px; line-height: 1.1; }
.bigIcon.sm { font-size: 34px; }
.overlay.sub { background: rgba(20,24,44,.55); z-index: 30; }
.btns .coins { background: rgba(255,255,255,.25); box-shadow: none; padding: 2px 8px; font-size: 17px; margin-left: 4px; -webkit-text-stroke: 0; }
.mid .coins { background: none; box-shadow: none; padding: 0; font-size: 16px; justify-content: center; }
.toast { position: fixed; left: 50%; top: calc(18px + var(--safe-t)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 600; animation: toast 2.2s both; pointer-events: none; white-space: nowrap; }
.toast.ok { background: #2ec27e; } .toast.err { background: #ff4d5e; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
/* mağaza */
.shopHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.shopHead .coins { box-shadow: 0 3px 0 #d3dae4; background: #f4f6fa; }
.tabs { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; overflow-y: auto; padding: 4px 2px 8px; min-height: 0; }
.item { background: #f4f6fa; border-radius: 18px; padding: 10px 8px; display: grid; justify-items: center; gap: 4px; align-content: start; box-shadow: 0 3px 0 #d3dae4; }
.item b { font-size: 15px; }
.item small { font-size: 11px; opacity: .6; min-height: 28px; }
.item em { font-style: normal; font-weight: 700; font-size: 13px; opacity: .7; }
.item .mid { width: 100%; padding: 8px; font-size: 15px; background: #fff; }
.item.skin.on { outline: 3px solid #2ec27e; }
.skinDot { width: 76px; height: 76px; border-radius: 50%; background: var(--rim); display: grid; place-items: center; margin: 4px; box-shadow: 0 6px 12px rgba(0,0,0,.18); }
.skinDot i { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, var(--in), #000 75%); }
.skinDot.stars i { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 75% 25%, #fff, transparent), radial-gradient(1px 1px at 35% 80%, #fff, transparent), radial-gradient(circle at 50% 30%, var(--in), #000 75%); }
.skinDot.glow { box-shadow: 0 0 18px var(--rim), 0 6px 12px rgba(0,0,0,.18); }
/* günlük */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.day { background: #f4f6fa; border-radius: 16px; padding: 10px 4px; display: grid; gap: 4px; box-shadow: 0 3px 0 #d3dae4; }
.day small { font-weight: 600; opacity: .55; }
.day b { font-size: 15px; }
.day.last { grid-column: span 3; background: #fff4d6; }
.day.got { opacity: .45; }
.day.now { outline: 3px solid var(--go); background: #fff8e1; animation: breathe 1.4s infinite; }
/* güçlendirici çubuğu */
.boostBar { position: absolute; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 10px; pointer-events: auto; }
.boost { position: relative; width: 58px; height: 58px; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 rgba(43,45,66,.2); font-size: 26px; overflow: hidden; }
.boost span { position: relative; z-index: 1; }
.boost b { position: absolute; top: 2px; right: 4px; z-index: 2; font-size: 13px; font-weight: 700; background: #ff4d5e; color: #fff; border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 4px; }
.boost.empty b { background: #2ec27e; }
.boost.locked { opacity: .5; filter: grayscale(1); }
.boost.locked b { background: #8d99ae; }
.boost i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: rgba(57,197,255,.35); transform-origin: bottom; transform: scaleY(0); }
.boost.active { box-shadow: 0 0 0 3px #39c5ff, 0 4px 0 rgba(43,45,66,.2); }
.timer.frozen { background: #9ff0ff; color: #0b4f6c; }
.coinCard img { filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
/* pusula okları */
.arrows { position: absolute; inset: 0; pointer-events: none; }
.arrow { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.arrow img { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; background: rgba(255,255,255,.9); border-radius: 50%; padding: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.arrow i { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; }
.arrow i::after { content: ''; position: absolute; right: -8px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 12px solid #ff4d5e; }
.arrow.on i::after { display: none; }
.arrow.on img { animation: bob 1s ease-in-out infinite; }
/* arena */
.board { background: rgba(255,255,255,.9); border-radius: 14px; padding: 6px 8px; min-width: 150px; box-shadow: 0 4px 0 rgba(43,45,66,.18); font-size: 13px; font-weight: 600; margin-left: auto; }
.board div { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.board div i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.board div span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.board div.me { color: #0077cc; }
.board.big { margin: 12px auto 0; font-size: 16px; box-shadow: none; background: #f4f6fa; width: 100%; text-align: left; }
.hud .goals:has(.board) { justify-content: flex-end; }
.nameTag { position: fixed; left: 0; top: 0; z-index: 8; pointer-events: none; font-weight: 700; font-size: 13px; color: #fff; -webkit-text-stroke: 3px rgba(0,0,0,.55); paint-order: stroke fill; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.nameTag i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 2px solid #fff; }
.nameTag.me { font-size: 15px; color: #ffe066; }
.nameTag.lead::before { content: '👑'; -webkit-text-stroke: 0; }
.deadMsg { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(20,24,44,.75); color: #fff; padding: 16px 22px; border-radius: 20px; text-align: center; display: grid; gap: 4px; }
.deadMsg b { font-size: 22px; } .deadMsg span { opacity: .8; }
.countdown { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 25; font-weight: 700; font-size: 120px; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; pointer-events: none; }
.countdown.pulse { animation: cd .8s ease-out; }
.countdown.go { color: #ffe066; animation: cd .6s ease-out forwards; }
@keyframes cd { 0% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: .0; transform: translate(-50%, -50%) scale(.8); } }
.float.lose { color: #ff4d5e; }
/* test reklamı */
.adFake { position: fixed; inset: 0; z-index: 90; background: #111; color: #fff; display: grid; place-items: center; }
.adFake div { display: grid; gap: 8px; text-align: center; }
.adFake b { font-size: 40px; } .adFake span { opacity: .7; }
input.nameIn { font: inherit; font-size: 18px; padding: 10px 12px; border-radius: 12px; border: 2px solid #d3dae4; outline: none; user-select: text; -webkit-user-select: text; }
input.nameIn:focus { border-color: var(--accent); }
.note a { color: inherit; }
@media (max-width: 480px) {
  .boost { width: 52px; height: 52px; font-size: 23px; }
  .board { min-width: 128px; font-size: 12px; }
  .board div span { max-width: 80px; }
  .home .big.play { font-size: 28px; padding: 14px 50px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .logo { margin-top: 0; } .logo span { font-size: 54px; }
  .home .menuBottom { margin-bottom: 0; gap: 6px; }
  .modes, .navBar { width: min(520px, 100%); }
}
.reward { display: flex; justify-content: center; margin-top: 6px; }
.reward .coins { box-shadow: 0 3px 0 #d3dae4; background: #f4f6fa; font-size: 22px; padding: 6px 16px 6px 12px; }
.cg { font-style: normal; color: #ffc93c; -webkit-text-stroke: 1.5px #e09a00; margin-right: 2px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: #dfe4ec; transition: background .3s; }
.dots i.on { background: #2ec27e; }
.dots.wait i { animation: waitDot 1.2s ease-in-out infinite; }
.dots.wait i:nth-child(2) { animation-delay: .15s; } .dots.wait i:nth-child(3) { animation-delay: .3s; } .dots.wait i:nth-child(4) { animation-delay: .45s; } .dots.wait i:nth-child(5) { animation-delay: .6s; }
@keyframes waitDot { 0%, 100% { background: #dfe4ec; transform: scale(1); } 40% { background: #2ec27e; transform: scale(1.25); } }
.bigIcon.spin { display: inline-block; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.onlineTag { position: absolute; top: calc(92px + var(--safe-t)); left: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(46,194,126,.85); padding: 2px 10px; border-radius: 99px; }
.onlineTag.off { background: rgba(255,140,66,.9); }

/* ---- yerleşim düzeltmeleri (küçük ekran / dokunma hedefleri) ---- */
.card { max-height: calc(100vh - 32px - var(--safe-t) - var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }
.mid.ghost { min-width: 44px; min-height: 44px; font-size: 20px; }
.tog { flex: none; width: 58px; height: 34px; }
.tog i { top: 4px; left: 4px; }
.settings .row { min-height: 52px; }
.item .mid { min-height: 40px; }
.board.big div span { max-width: none; }
@media (max-height: 600px) {
  .card { padding: 16px 16px 14px; }
  .card h2 { font-size: 28px; }
  .settings .row { padding: 6px 4px; min-height: 46px; }
  .big { padding: 12px 28px; font-size: 21px; }
}
/* yatay kısa ekran (telefon yan): ana menü iki sütun */
@media (max-height: 500px) and (orientation: landscape) {
  .logo { margin-top: 0; } .logo span { font-size: 40px; -webkit-text-stroke: 2px var(--ink); text-shadow: 0 4px 0 var(--ink); } .logo em { display: none; }
  .home .menuBottom { display: grid; grid-template-columns: auto min(440px, 56vw); grid-template-areas: "pill ." "play nav"; gap: 8px 16px; justify-content: center; justify-items: stretch; align-items: center; margin-bottom: 0; }
  .home .lvlPill { grid-area: pill; justify-self: center; }
  .home .playRow { grid-area: play; width: auto; }
  .home .playRow .big.play { font-size: 26px; padding: 12px 34px; }
  .home .modeSel { height: 58px; }
  .home .navBar { grid-area: nav; width: auto; }
  .mode { padding: 6px; } .mode small { display: none; }
  .navBar button { padding: 4px; flex-direction: row; } .navBar span { font-size: 18px; }
}

/* ================= sosyal: arkadaşlar, sıralama, profil, oda, davet ================= */
.navBar button { font-size: 12px; padding: 7px 2px; }
.navBar span { font-size: 21px; }
.grid1 { display: grid; gap: 8px; overflow-y: auto; min-height: 120px; padding: 2px; align-content: start; }
.myCode { display: flex; align-items: center; gap: 8px; background: #f4f6fa; border-radius: 16px; padding: 8px 10px; margin-bottom: 10px; flex-wrap: wrap; justify-content: center; }
.myCode:empty { display: none; }
.myCode small { width: 100%; text-align: center; font-weight: 600; opacity: .55; font-size: 12px; }
.myCode b { font-size: 26px; letter-spacing: 3px; font-weight: 700; }
.myCode .mid { padding: 8px 12px; font-size: 15px; min-height: 40px; }
.fRow { display: flex; align-items: center; gap: 10px; background: #f4f6fa; border-radius: 16px; padding: 8px 10px; text-align: left; }
.fRow.dim { opacity: .6; }
.fRow.me { outline: 3px solid var(--go); background: #fff8e1; }
.fInfo { flex: 1; min-width: 0; display: grid; }
.fInfo b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fInfo small { font-size: 12px; opacity: .65; display: flex; align-items: center; gap: 5px; }
.fAct { display: flex; gap: 6px; align-items: center; }
.fAct .mid { padding: 8px 12px; font-size: 14px; min-height: 40px; }
.fAct .mid.ok, .mid.ok { background: #2ec27e; color: #fff; box-shadow: 0 4px 0 #1f9960; }
.fAct .mid.inv { background: var(--go); color: #fff; box-shadow: 0 4px 0 var(--go-d); }
.mid.x { font-size: 16px; opacity: .45; }
.st { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #adb5bd; }
.st-menu { background: #2ec27e; } .st-level, .st-arena { background: #ffb703; }
.skinDot.sm { width: 40px; height: 40px; margin: 0; flex: none; box-shadow: none; }
.skinDot.sm i { width: 32px; height: 32px; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 24px 8px; font-size: 34px; }
.empty p { font-size: 15px; font-weight: 500; opacity: .7; margin: 0; }
.spinner { animation: spin 1.2s linear infinite; font-size: 28px; }
.addBox { display: flex; gap: 8px; align-items: center; }
.addBox input { flex: 1; min-width: 0; font: inherit; font-size: 18px; font-weight: 600; letter-spacing: 1px; padding: 12px; border-radius: 14px; border: 2px solid #d3dae4; outline: none; text-transform: uppercase; user-select: text; -webkit-user-select: text; }
.addBox input:focus { border-color: var(--accent); }
.addBox .big { padding: 12px 20px; font-size: 18px; }
.addBox .mid { min-height: 48px; }
.rankNote { font-size: 13px; font-weight: 600; opacity: .6; margin: -4px 0 8px; min-height: 16px; }
.fRow.rank .rk { width: 26px; text-align: center; font-weight: 700; font-size: 16px; }
.fRow.rank .sc { font-size: 18px; }
.profTop { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.profTop .skinDot.sm { width: 56px; height: 56px; } .profTop .skinDot.sm i { width: 46px; height: 46px; }
.nameRow { flex: 1; display: flex; gap: 6px; }
.nameRow .nameIn { flex: 1; min-width: 0; }
.statGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.statGrid div { background: #f4f6fa; border-radius: 14px; padding: 8px 4px; display: grid; }
.statGrid b { font-size: 22px; } .statGrid small { font-size: 11px; opacity: .6; font-weight: 600; }
.secret { display: flex; gap: 8px; align-items: center; justify-content: center; }
.secret code { font-size: 15px; font-weight: 700; background: #f4f6fa; padding: 8px 10px; border-radius: 10px; user-select: all; -webkit-user-select: all; word-break: break-all; }
.roomCode { display: grid; justify-items: center; gap: 4px; margin: 10px 0; background: #f4f6fa; border-radius: 16px; padding: 10px; }
.roomCode small { font-weight: 600; opacity: .55; }
.roomCode b { font-size: 34px; letter-spacing: 6px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; }
.slot { background: #f4f6fa; border-radius: 12px; padding: 8px 10px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.slot i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.slot.me { outline: 2px solid var(--accent); }
.slot.empty { opacity: .35; justify-content: center; }
.slot em { font-style: normal; font-size: 11px; background: var(--go); color: #fff; border-radius: 99px; padding: 1px 6px; }
.sub.big2 { font-size: 18px; margin: 6px 0; }
.inviteBanner { position: fixed; left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); z-index: 70; width: min(440px, calc(100% - 20px)); background: #fff; border-radius: 18px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; align-items: center; gap: 8px; animation: slideDown .35s cubic-bezier(.3,1.4,.6,1); }
.inviteBanner span { flex: 1; font-size: 14px; font-weight: 500; }
.inviteBanner .mid { padding: 8px 12px; min-height: 40px; }
@keyframes slideDown { from { transform: translate(-50%, -120%); } }
@media (max-width: 360px) { .navBar button { font-size: 10px; } .navBar span { font-size: 18px; } .myCode b { font-size: 22px; } }
/* dar ekran: giriş + düğme satırları alta kaysın */
.addBox, .nameRow { flex-wrap: wrap; }
.addBox input, .nameRow input { flex: 1 1 150px; width: 0; }
.addBox > button, .nameRow > button { flex: 1 0 auto; }
.btns.col .addBox { width: 100%; }
.slot span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* ipuçları + bölüm yolu */
.tips { margin-top: 12px; display: grid; gap: 6px; }
.tips p { margin: 0; background: #fff4d6; border-radius: 12px; padding: 8px 10px; font-size: 14px; font-weight: 500; text-align: left; line-height: 1.35; }
.road { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2px; }
.road u { width: 14px; height: 4px; background: rgba(255,255,255,.7); border-radius: 2px; }
.rd { position: relative; width: 38px; height: 38px; border-radius: 50%; background: rgba(43,45,66,.45); color: #fff; display: grid; place-items: center; font-style: normal; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.rd b { font-size: 15px; }
.rd.done { background: #2ec27e; }
.rd.now { width: 50px; height: 50px; background: var(--go); box-shadow: 0 4px 0 var(--go-d), 0 0 0 4px rgba(255,255,255,.8); }
.rd.now b { font-size: 20px; }
.rd.bonus { background: #ffd166; }
/* zor bölümler */
.rd.tier1:not(.done) { background: #ff5a4e; box-shadow: 0 3px 0 #c0362c; }
.rd.tier2:not(.done) { background: #8d3df0; box-shadow: 0 3px 0 #5d22b0; }
.rd.now.tier1 { box-shadow: 0 4px 0 #c0362c, 0 0 0 4px rgba(255,255,255,.8); }
.rd.now.tier2 { box-shadow: 0 4px 0 #5d22b0, 0 0 0 4px rgba(255,255,255,.8); }
.rd em { position: absolute; top: -12px; right: -8px; font-style: normal; font-size: 15px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.lvlPill.tier1, .lvlTag.tier1 { background: rgba(230,60,50,.9); }
.lvlPill.tier2, .lvlTag.tier2 { background: rgba(125,50,220,.92); }
.tierTag { display: inline-block; margin: 0 auto 6px; padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; color: #fff; background: #ff5a4e; box-shadow: 0 3px 0 #c0362c; }
.tierTag.tier2 { background: #8d3df0; box-shadow: 0 3px 0 #5d22b0; }
.card.tier1 { box-shadow: 0 0 0 4px #ff5a4e, 0 10px 30px rgba(0,0,0,.25); }
.card.tier2 { box-shadow: 0 0 0 4px #8d3df0, 0 10px 30px rgba(0,0,0,.25); }
.end .stars + .tierTag { margin-top: 8px; }
/* kaybedince kalan hedefler */
.sad.sm { font-size: 44px; margin-top: 4px; }
.near .lbl { font-weight: 700; font-size: 16px; margin: 6px 0 4px; opacity: .8; text-transform: none; letter-spacing: 0; }
.near.close .lbl { color: #e8442f; opacity: 1; font-size: 19px; animation: pop .5s .2s both; }
.near .goalRow .goal { width: 58px; height: 64px; }
.near .goalRow .goal img { width: 42px; height: 42px; }
.rd.gap { visibility: hidden; }
.rd s { position: absolute; bottom: -13px; text-decoration: none; font-size: 10px; color: #ffc93c; -webkit-text-stroke: 1px #b07a12; letter-spacing: -1px; white-space: nowrap; }
.mode.fresh { animation: fresh 1.2s ease-in-out 3; outline: 3px solid var(--go); }
@keyframes fresh { 50% { box-shadow: 0 4px 0 rgba(43,45,66,.18), 0 0 0 6px rgba(255,183,3,.45); } } /* büyütmek yerine parlama: yan yana düğmeler kutudan taşmasın */
@media (max-height: 500px) and (orientation: landscape) { .road { display: none; } }
.toast { white-space: normal; max-width: calc(100% - 24px); text-align: center; width: max-content; }
/* okunabilirlik: en küçük yazı 12px, soluk düğmeler daha belirgin */
.mode small, .item small, .statGrid small, .fInfo small { font-size: 12px; }
@media (max-width: 360px) { .navBar button { font-size: 11px; } }
.mid.x { opacity: .65; }
.mid.ghost { opacity: .8; }
.fRow.rank .sc small { font-size: 11px; opacity: .6; font-weight: 600; }

/* ---------- hesaplı (meta) kip: şerit, gem, görevler, sezon, klan, pazar ---------- */
.gemChip i { font-style: normal; font-size: 18px; }
.gemChip b { min-width: 18px; }
.rail { position: absolute; left: 12px; top: calc(78px + var(--safe-t)); display: grid; gap: 8px; z-index: 1; }
.rail button { position: relative; display: grid; justify-items: center; gap: 1px; width: 64px; padding: 6px 2px; border-radius: 16px; background: rgba(43,45,66,.55); color: #fff; font-weight: 600; font-size: 11px; line-height: 1.1; }
.rail span { font-size: 22px; }
.rail .dot { position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; background: #ff4d5e; border-radius: 50%; border: 2px solid #fff; }
.gemAmt { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.gems { display: inline-flex; align-items: center; gap: 4px; background: #f4f6fa; border-radius: 99px; padding: 4px 12px; font-weight: 700; box-shadow: 0 3px 0 #d3dae4; margin-left: auto; margin-right: 8px; }
.cg { font-style: normal; color: #ffb703; margin-right: 2px; }
.qBar { position: relative; height: 18px; border-radius: 99px; background: #dfe5ee; overflow: hidden; margin-top: 4px; }
.qBar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2ec27e, #7be0a8); border-radius: 99px; }
.qBar { display: flex; align-items: center; justify-content: center; }
.qBar span { position: relative; font-size: 12px; font-weight: 700; line-height: 1; }
.qBar.big { height: 22px; flex: 1; margin-top: 0; }
.fRow.quest .fInfo { flex: 1; }
.qRew { font-style: normal; font-weight: 700; opacity: .7; }
.sHead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.sTier { display: flex; align-items: baseline; font-weight: 700; } .sTier b { font-size: 30px; } .sTier small { opacity: .5; }
.sBtns { display: flex; gap: 8px; width: 100%; justify-content: center; }
.mid.prem { background: linear-gradient(90deg, #ffd166, #ff9f1c); color: #3d2c05; box-shadow: 0 4px 0 #c47a00; }
.premTag { font-weight: 700; color: #c47a00; }
.tiers { max-height: 46vh; }
.tierHead, .tierRow { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 6px; align-items: center; }
.tierHead small { font-weight: 700; opacity: .55; font-size: 12px; }
.tierRow b { font-weight: 700; opacity: .45; }
.tierRow.reached b { opacity: 1; color: #2ec27e; }
.rw { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 42px; background: #f4f6fa; border-radius: 12px; font-weight: 700; font-size: 14px; position: relative; }
.rw small { font-size: 10px; opacity: .6; }
.rw.prem { background: #fff4d6; }
.rw.lock { opacity: .55; }
.rw.got::after { content: '✓'; position: absolute; right: 6px; top: 2px; color: #2ec27e; font-size: 14px; }
.clanTag { min-width: 44px; padding: 4px 6px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; text-align: center; letter-spacing: 1px; }
.clanTag.big { font-size: 20px; padding: 8px 10px; }
.clanCard { display: flex; gap: 12px; align-items: center; background: #f4f6fa; border-radius: 16px; padding: 10px; text-align: left; }
.clanCard > div:last-child { display: grid; gap: 2px; } .clanCard small { opacity: .6; font-size: 12px; }
.addBox.col { flex-direction: column; align-items: stretch; }
.addBox.col input { width: 100%; flex: none; }
.addBox .clanQ, .addBox .cName { text-transform: none; letter-spacing: 0; }
.addBox .clanQ::placeholder, .addBox .cName::placeholder { text-transform: none; }
.big .cost { font-size: 18px; margin-left: 6px; opacity: .9; }
.note.warn { opacity: 1; color: #c0392b; font-weight: 600; }
.priceIn { width: 70px; padding: 8px; border-radius: 12px; border: 2px solid #d3dae4; font: inherit; font-weight: 600; text-align: center; }
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.book small { font-weight: 700; opacity: .55; font-size: 12px; display: block; margin-bottom: 4px; }
.book .lvl { display: flex; justify-content: space-between; padding: 3px 8px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.book .lvl.ask { background: #ffe8ea; } .book .lvl.bid { background: #e3f7ec; } .book .lvl.empty { justify-content: center; opacity: .4; }
.exForm { display: grid; gap: 8px; background: #f4f6fa; border-radius: 16px; padding: 10px; }
.exForm label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.exForm input { width: 110px; padding: 8px; border-radius: 12px; border: 2px solid #d3dae4; font: inherit; font-weight: 600; text-align: center; }
.exSum { font-size: 13px; font-weight: 600; opacity: .7; }
.exForm .big { font-size: 20px; padding: 10px; }
@media (max-width: 380px) { .rail button { width: 56px; font-size: 10px; } .rail span { font-size: 19px; } }
.big .cost .cg { color: #fff; }
.fRow.quest .fInfo b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
.qBar span { color: var(--ink); -webkit-text-stroke: 0; opacity: .85; }
/* dar telefon: hesaplı kipte üst çubukta 4 öğe var (can, altın, gem, ayar) */
@media (max-width: 380px) {
  .menuTop { gap: 5px; }
  .menuTop .chip { font-size: 15px; padding: 4px 8px 4px 6px; gap: 4px; min-width: 0; min-height: 38px; }
  .menuTop .chip .coins { font-size: 15px; gap: 4px; }
  .menuTop .chip.lives small { display: none; }
  .menuTop .chip em { width: 18px; height: 18px; font-size: 14px; }
  .menuTop .round { width: 42px; height: 42px; font-size: 20px; flex: none; }
  .gemChip i { font-size: 14px; }
}
/* yan şerit varken logo şeridin üstüne binmesin */
@media (max-width: 460px) {
  .home.hasRail .logo { padding-left: 72px; }
  .home.hasRail .logo span { font-size: min(50px, calc((100vw - 96px) / 7)); }
  .home.hasRail .logo em { font-size: 15px; }
}
/* arena turbosu */
.turboBtn { pointer-events: auto; position: absolute; right: 16px; bottom: calc(22px + var(--safe-b)); width: 76px; height: 76px; border-radius: 50%; background: rgba(43,45,66,.55); color: #fff; overflow: hidden; display: grid; place-items: center; box-shadow: 0 5px 0 rgba(0,0,0,.2); touch-action: none; }
.turboBtn span { position: relative; z-index: 1; font-size: 34px; line-height: 1; filter: grayscale(1); opacity: .6; transition: transform .15s; }
.turboBtn i { position: absolute; inset: 0; background: rgba(0,0,0,.35); transform-origin: bottom; }
.turboBtn small { position: absolute; bottom: 9px; font-size: 9px; font-weight: 700; letter-spacing: 1px; opacity: .7; z-index: 1; }
.turboBtn.ready { background: #ffb703; box-shadow: 0 5px 0 #e07c00; }
.turboBtn.ready span { filter: none; opacity: 1; }
.turboBtn.on span { transform: scale(1.25); }
@media (pointer: coarse) { .turboBtn small { display: none; } }
/* arkadaşını davet et */
.rail .inviteR { background: linear-gradient(135deg, #ff5da2, #ffb703); }
.refHow { display: grid; gap: 6px; margin: 4px 0 2px; }
.refHow div { display: flex; align-items: center; gap: 10px; background: #f4f6fa; border-radius: 14px; padding: 8px 10px; text-align: left; font-weight: 600; font-size: 14px; }
.refHow b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--go); color: #fff; display: grid; place-items: center; }
.refMs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.refMs > div { background: #f4f6fa; border-radius: 12px; padding: 6px 2px; display: grid; justify-items: center; gap: 2px; font-size: 13px; font-weight: 700; opacity: .55; }
.refMs > div > small { font-size: 11px; opacity: .7; }
.refMs > div.next { opacity: 1; outline: 2px solid var(--go); }
.refMs > div.done { opacity: 1; background: #e3f7ec; }
.refProg { display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; align-items: center; min-width: 120px; }
.refProg small { font-size: 11px; opacity: .6; }
.refProg .qBar { margin: 0; height: 14px; } .refProg .qBar span { font-size: 10px; }
.okTag { font-style: normal; font-weight: 700; color: #2ec27e; }
.noTag { font-style: normal; font-weight: 600; font-size: 12px; color: #c0392b; }
@media (max-height: 700px) { .rail { gap: 5px; } .rail button { padding: 4px 2px; } .rail span { font-size: 18px; } }
.invite h2 { font-size: 27px; line-height: 1.1; }
.refMs .msName { display: block; font-size: 9px; font-weight: 600; opacity: .8; margin-top: 1px; }
.refMs .skinDot.sm { width: 28px; height: 28px; } .refMs .skinDot.sm i { width: 18px; height: 18px; }

/* yıldız sandığı */
.chestBtn { position: absolute; right: 12px; top: calc(78px + var(--safe-t)); z-index: 1; display: grid; justify-items: center; gap: 3px; width: 64px; padding: 6px 4px 5px; border-radius: 16px; background: rgba(43,45,66,.55); color: #fff; font-weight: 700; font-size: 11px; line-height: 1.1; }
.chestBtn span { font-size: 26px; line-height: 1; }
.chestBtn .cbar { width: 50px; height: 6px; }
.chestBtn.ready { background: linear-gradient(#ffd34d, #ffb703); color: #6a3d00; box-shadow: 0 4px 0 #e07c00; animation: beat 1s ease-in-out infinite; }
.chestBtn.ready span { animation: wiggle 1.2s ease-in-out infinite; }
.cbar { position: relative; height: 10px; border-radius: 99px; background: rgba(0,0,0,.18); overflow: hidden; }
.cbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffc93c, #ffb703); border-radius: 99px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.cbar.big { height: 26px; margin: 12px 4px 4px; background: #eef1f6; }
.cbar.big b { position: relative; display: block; text-align: center; font-size: 15px; line-height: 26px; }
.chest .chestBox { font-size: 84px; line-height: 1.1; margin: 8px 0 2px; }
.chest .chestBox.ready { animation: wiggle 1.2s ease-in-out infinite; }
.chest .chestBox.opened { animation: pop .5s both; }
.chest .how { margin-top: 2px; }
.loot { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lootI { display: flex; align-items: center; gap: 6px; background: #f4f6fa; border-radius: 14px; padding: 6px 12px; font-weight: 700; box-shadow: 0 3px 0 #d3dae4; }
.lootI span { font-size: 22px; }
.lootI .coins { box-shadow: none; background: none; padding: 0; font-size: 18px; }
.loot.got .lootI { animation: pop .45s both; }
.loot.got .lootI:nth-child(2) { animation-delay: .12s; } .loot.got .lootI:nth-child(3) { animation-delay: .24s; }
.chestProg { display: flex; align-items: center; gap: 8px; margin: 10px 6px 0; font-weight: 700; font-size: 14px; }
.chestProg span { font-size: 24px; }
.chestProg .cbar { flex: 1; height: 12px; background: #eef1f6; }
.chestProg.ready.fill b { color: #e07c00; animation: pop .5s both; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
@media (max-width: 380px) { .chestBtn { width: 56px; font-size: 10px; } .chestBtn span { font-size: 22px; } .chestBtn .cbar { width: 42px; } }

/* mod seçimi: "Oyna"nın yanında seçili mod; dokununca 3 mod */
.playRow { display: flex; align-items: stretch; justify-content: center; gap: 10px; width: min(420px, 100%); padding: 0 8px; } /* nefes animasyonu (büyüme) kutudan taşmasın */
.playRow .big.play { flex: 1; padding-left: 12px; padding-right: 12px; }
.modeSel { flex: none; width: 112px; display: grid; justify-items: center; align-content: center; gap: 0; padding: 4px 6px; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 6px 0 rgba(43,45,66,.22); line-height: 1.1; }
.modeSel span { font-size: 22px; }
.modeSel small { font-size: 10px; font-weight: 600; opacity: .55; text-transform: uppercase; letter-spacing: .5px; }
.modeSel b { font-size: 13px; white-space: nowrap; }
.modeSel:active { transform: translateY(3px); }
.modeSel.fresh { animation: fresh 1.2s ease-in-out 4; outline: 3px solid var(--go); }
.modeList { display: grid; gap: 10px; margin-top: 12px; }
.modeCard { display: flex; align-items: stretch; gap: 6px; border-radius: 18px; background: #f4f6fa; box-shadow: 0 4px 0 #d3dae4; overflow: hidden; }
.modeCard.on { background: #fff4d6; box-shadow: 0 4px 0 #f0c34e, 0 0 0 3px var(--go); }
.modeCard.locked { opacity: .55; filter: grayscale(.7); }
.mcMain { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 12px; text-align: left; min-height: 64px; }
.mcMain span { font-size: 32px; }
.mcMain b { display: block; font-size: 18px; }
.mcMain small { display: block; font-size: 12.5px; font-weight: 500; opacity: .65; line-height: 1.3; }
.mcRoom { flex: none; width: 70px; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 22px; background: rgba(164,92,255,.12); color: var(--alt-d); }
.mcRoom small { font-size: 10.5px; font-weight: 700; }
@media (max-width: 360px) { .modeSel { width: 98px; } .modeSel b { font-size: 12px; } }
.road[hidden] { display: none; }
/* ---- dil desteği: dil seçici, uzun metinler, sağdan sola (ar) ---- */
select.langSel { font: inherit; font-size: 17px; font-weight: 600; padding: 10px 12px; border-radius: 12px; border: 2px solid #d3dae4; background: #fff; color: inherit; outline: none; }
select.langSel:focus { border-color: var(--accent); }
.seg, .big, .mid, .navBar button, .modeSel b { overflow-wrap: anywhere; hyphens: auto; }
/* oyun içi gösterge (HUD) yerleşimi her dilde aynı kalsın; metinler kendi yönünde akar */
[dir=rtl] .hud, [dir=rtl] .onlineTag { direction: ltr; }

/* ---- 1.0: hesap, güvenlik, mağaza ---- */
.big.danger { background: #ff4d5e; box-shadow: 0 6px 0 #c92a3a; }
.mid.dangerT { color: #d6283a; }
.settings .acct { margin-top: 6px; gap: 8px; }
.settings .acct .mid { font-size: 16px; min-height: 46px; }
.note.legal { opacity: .7; line-height: 1.7; }
.note.legal a, .note.terms a { color: #0077cc; text-decoration: underline; }
.board div.tap { cursor: pointer; border-radius: 8px; }
.board div.tap:active { background: #e3e8f0; }
.board .more { font-style: normal; opacity: .45; font-weight: 700; padding: 0 4px; }
.fRow.rank.tap { cursor: pointer; }
.fRow.rank.tap:active { background: #e8ecf3; }
.report .reasons { gap: 8px; }
.report .reasons .mid.on { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #11121c; }
.report .chk { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; font-weight: 600; font-size: 15px; }
.report .chk input { width: 22px; height: 22px; accent-color: #ff4d5e; }
.welcome .row.col { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; font-weight: 600; font-size: 18px; }
.welcome .yearSel { font: inherit; font-size: 18px; padding: 12px; border-radius: 14px; border: 2px solid #d3dae4; background: #fff; color: var(--ink); }
.welcome .note.terms { opacity: .8; font-size: 14px; margin-top: 16px; line-height: 1.5; }
.welcome .big.play:disabled, .report .big.play:disabled { opacity: .45; animation: none; }
.iapI.starter { outline: 3px solid var(--go); background: #fff8e1; }
.iapI.noads { background: #eef7ff; }
.iapI .tagBest { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #2ec27e; border-radius: 8px; padding: 1px 8px; min-height: 18px; }
.iapI .tagBest:empty { background: none; }
.iapI small { min-height: 2.4em; }
.iapFoot { grid-column: 1 / -1; display: flex; justify-content: center; }
.iapFoot .mid.ghost { font-size: 15px; opacity: .75; }
