@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+0304,U+0308,U+0329,U+2000-206F,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-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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+0304,U+0308,U+0329,U+2000-206F,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-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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+0304,U+0308,U+0329,U+2000-206F,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-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink: #1f2a3d;
  --ink-soft: #5b6679;
  --paper: #eef1f6;
  --card: rgba(255, 255, 255, 0.94);
  --uno-red: #ff3b4e;
  --uno-yellow: #ffc200;
  --uno-green: #10ac84;
  --uno-blue: #2272eb;
  --accent: #ff3b4e;
  --accent-dark: #c4303f;
  --go: #10ac84;         /* marka rengi (vurgu, halkalar) */
  --go-dark: #0a7c5f;
  --go-btn: #0ea67e;     /* beyaz yazılı düğmeler: okunur kontrast (≥4,3:1) */
  --go-btn-top: #1fd8a4;
  --go-btn-dark: #076d53;
  --bad-btn: #ff3b4e;
  --gold: #ffc200;
  --shadow: 0 18px 45px rgba(34, 114, 235, 0.22), 0 8px 24px rgba(255, 59, 78, 0.18), 0 0 20px rgba(255, 194, 0, 0.12);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --font: 'Fredoka', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
@keyframes unoBgFlow {
  0% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 50% 50%;
  }
  50% {
    background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%, 50% 50%;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 50% 50%;
  }
}
html, body { margin: 0; height: 100%; overflow: hidden; background: #fdfefe; color: var(--ink); font-family: var(--font);
  -webkit-user-select: none; user-select: none; overscroll-behavior: none; touch-action: none; }
#gl, #fx { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
canvas { display: block; }
#fx { pointer-events: none; }
#touch { position: fixed; inset: 0; touch-action: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, rgba(20, 30, 50, 0.08) 100%); }
button { font-family: inherit; }

/* Yüzen çubuk (dokunmatik) */
#joy { position: fixed; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%; pointer-events: none;
  border: 3px solid rgba(31, 42, 61, 0.18); background: rgba(255, 255, 255, 0.14); opacity: 0; transition: opacity .15s; }
#joy.on { opacity: 1; }
#joy i { position: absolute; left: 28px; top: 28px; width: 40px; height: 40px; border-radius: 50%; background: rgba(31, 42, 61, 0.28); }

/* Oyun içi göstergeler */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud .mine { position: absolute; left: calc(14px + var(--safe-l)); top: calc(10px + var(--safe-t)); display: flex; flex-direction: column; }
#pct { font-size: clamp(30px, 6vmin, 46px); font-weight: 700; color: #fff; letter-spacing: .5px;
  text-shadow: 0 3px 0 rgba(31, 42, 61, .35), 0 0 12px rgba(31, 42, 61, .25); line-height: 1; }
#hud .mine.dead { opacity: .45; }
#pct.hurt { animation: hurt .6s; }
@keyframes hurt { 0%, 60% { color: #ff3b4e; transform: scale(1.12); } 100% { color: #fff; transform: none; } }
#pct { transform-origin: left center; }
#sub { margin-top: 4px; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 2px 0 rgba(31, 42, 61, .35); }
#lb { position: absolute; right: calc(10px + var(--safe-r)); top: calc(10px + var(--safe-t)); margin: 0; padding: 6px 6px; list-style: none;
  width: min(210px, 46vw); background: rgba(31, 42, 61, .28); border-radius: 12px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#lb:empty { display: none; }
#lb li { display: flex; align-items: center; gap: 6px; padding: 3px 6px; font-size: 13px; font-weight: 600; color: #fff; border-radius: 8px; }
#lb li.me { background: rgba(255, 255, 255, .22); }
#lb i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
#lb b { width: 14px; text-align: right; opacity: .8; font-weight: 600; }
#lb span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#lb em { font-style: normal; font-variant-numeric: tabular-nums; opacity: .95; }
#feed { position: absolute; left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
#feed div { padding: 4px 12px; border-radius: 999px; background: rgba(31, 42, 61, .45); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
#feed div.mine { background: rgba(255, 59, 78, .85); }
#net { position: absolute; left: calc(12px + var(--safe-l)); bottom: calc(8px + var(--safe-b)); font-size: 12px; color: rgba(31, 42, 61, .55); font-weight: 600; }
@media (max-width: 560px) {
  #feed { top: auto; bottom: calc(118px + var(--safe-b)); max-width: 64vw; } /* mini harita ve alttaki düğmelerin üstünde */
  #feed div { font-size: 12px; padding: 3px 10px; white-space: normal; text-align: center; }
  #lb { width: min(170px, 44vw); padding: 4px; }
  #lb li { font-size: 12px; padding: 2px 5px; }
  #lb li:nth-child(n+4):not(.me) { display: none; }
  #tut { font-size: 15px; padding: 9px 14px; bottom: calc(150px + var(--safe-b)); }
  #hud:has(#tut:not([hidden])) #feed { display: none; } /* öğretici ile ölüm akışı üst üste binmesin */
}

/* Ekranlar */
.screen { position: fixed; inset: 0; display: flex; padding: 16px; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain;
  padding-top: calc(16px + var(--safe-t)); padding-bottom: calc(16px + var(--safe-b)); padding-left: calc(16px + var(--safe-l)); padding-right: calc(16px + var(--safe-r)); }
.screen > .card { margin: auto; } /* ortalı; sığmazsa üstten kırpılmadan kaydırılır */
.screen[hidden] { display: none; }
#menu {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 59, 78, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(255, 194, 0, 0.48) 0%, transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(16, 172, 132, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(34, 114, 235, 0.45) 0%, transparent 45%),
    linear-gradient(135deg, rgba(255, 235, 238, 0.8) 0%, rgba(255, 250, 230, 0.8) 33%, rgba(230, 252, 246, 0.8) 66%, rgba(235, 244, 255, 0.8) 100%);
  background-size: 140% 140%, 140% 140%, 140% 140%, 140% 140%, 100% 100%;
  animation: unoBgFlow 16s ease-in-out infinite alternate;
}
#over, #winBox, #endBox {
  background: radial-gradient(circle at 20% 80%, rgba(16, 172, 132, 0.22), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 194, 0, 0.22), transparent 50%),
              rgba(20, 28, 45, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card {
  width: min(360px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 100%) padding-box,
              linear-gradient(135deg, #ff3b4e 0%, #ffc200 33%, #10ac84 66%, #2272eb 100%) border-box;
  border: 4px solid transparent;
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 48px rgba(34, 114, 235, 0.22),
              0 8px 24px rgba(255, 59, 78, 0.18),
              0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: pop .28s cubic-bezier(.2, 1.4, .4, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff3b4e 0%, #ffc200 33%, #10ac84 66%, #2272eb 100%);
  z-index: 2;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

.logo { margin: 2px 0 6px; display: flex; justify-content: center; gap: 6px; font-size: 58px; font-weight: 700; line-height: 1; }
.logo span { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.logo span:nth-child(1) { background: linear-gradient(180deg, #ff4f60, #ff2a3f); box-shadow: 0 7px 0 #b31f2f, 0 8px 16px rgba(255, 59, 78, 0.35); transform: rotate(-6deg); }
.logo span:nth-child(2) { background: linear-gradient(180deg, #ffd026, #f5a600); box-shadow: 0 7px 0 #b37400, 0 8px 16px rgba(255, 194, 0, 0.35); transform: rotate(4deg) translateY(-3px); }
.logo span:nth-child(3) { background: linear-gradient(180deg, #22d3aa, #0c9b76); box-shadow: 0 7px 0 #076d53, 0 8px 16px rgba(16, 172, 132, 0.35); transform: rotate(-3deg) translateY(2px); }
.logo span:nth-child(4) { background: linear-gradient(180deg, #3d8bff, #1558d6); box-shadow: 0 7px 0 #0f40a1, 0 8px 16px rgba(34, 114, 235, 0.35); transform: rotate(6deg); }

/* Conquest tab and LAND logo removed */
.logo, .modeTabs, #tabFetih, #tabLand { display: none !important; }
@media (max-height: 700px) { #skins { max-height: 116px; } }
/* Default semantic column wrappers (display: contents keeps original single-column flow in portrait) */
.menuBody, .menuLeft, .menuRight,
.overHead, .overBody, .overLeft, .overRight,
.endBody, .endLeft, .endRight {
  display: contents;
}
@media (max-height: 520px) { #skins { max-height: 66px; } .logo { font-size: 40px; } .logo span { width: 44px; height: 44px; border-radius: 12px; } .card { gap: 8px; padding: 14px 18px 12px; } }

#nick { width: 100%; font: inherit; font-size: 20px; font-weight: 700; text-align: center; color: var(--ink); padding: 12px 14px;
  border: 2px solid rgba(226, 232, 240, 0.95); border-radius: 16px; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); outline: none; cursor: default; -webkit-user-select: none; user-select: none; pointer-events: none; letter-spacing: 0.5px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); }
#nick:focus { border-color: #2272eb; }
/* Ayarlar */
.card { position: relative; }
.topRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -6px 0; min-height: 44px; }
.gear, .friendsBtn { position: relative; flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: #eef1f6; font-size: 20px; cursor: pointer; color: var(--ink-soft); transition: transform .12s, background .12s; }
.gear:hover, .friendsBtn:hover { background: #e2e8f0; transform: translateY(-1px); }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.seg { display: flex; gap: 4px; background: linear-gradient(135deg, #f0f4f8, #e8edf5); padding: 5px; border-radius: 16px; border: 1px solid #e2e8f0; }
.seg button { border: 0; background: transparent; padding: 8px 10px; min-height: 40px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; white-space: nowrap; transition: all .15s ease; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 3px 8px rgba(31, 42, 61, .15); }
/* Ayarlar: bağlantılar */
.setLinks { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.link { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: underline; min-height: 44px; padding: 0 12px; cursor: pointer; }
.link.bad { color: var(--bad-btn); }
.link.bad.arm { background: var(--bad-btn); color: #fff; text-decoration: none; border-radius: 12px; }
.link[hidden] { display: none; }
#settings, #friends, #sheet, #doc {
  background: radial-gradient(circle at 20% 20%, rgba(255, 59, 78, 0.2), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(34, 114, 235, 0.2), transparent 50%),
              rgba(20, 28, 45, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}
#settings h2 { margin: 0; font-size: 26px; }

/* Arkadaşlar */
#frBadge { position: absolute; right: -5px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3b4e; color: #fff;
  font-size: 12px; font-style: normal; font-weight: 700; line-height: 20px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
#frBadge[hidden] { display: none; }
#friends .card, #settings .card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%) padding-box, linear-gradient(135deg, #ff3b4e 0%, #ffc200 33%, #10ac84 66%, #2272eb 100%) border-box; }
.card.fr { width: min(420px, 100%); max-height: min(720px, calc(100dvh - 32px)); gap: 10px; text-align: left; }
.frHead { display: flex; align-items: center; justify-content: space-between; }
.frHead h2 { margin: 0; font-size: 26px; }
.icon.x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #eef1f6; font-size: 16px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
#frOn { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
#frOn[hidden], #frOff[hidden] { display: none; }
#frOff { text-align: center; color: var(--ink-soft); font-weight: 600; display: flex; flex-direction: column; gap: 10px; }
.myCode { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #eafaf6, #eef3ff); }
.myCode div { flex: 1; display: flex; flex-direction: column; }
.myCode small { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.myCode b { font-size: 26px; letter-spacing: 2px; font-weight: 700; white-space: nowrap; }
@media (max-width: 400px) { .myCode { flex-wrap: wrap; } .myCode div { flex-basis: 100%; } .myCode .chip { flex: 1; } }
.addRow { display: flex; gap: 8px; }
.addRow input { flex: 1; min-width: 0; font: inherit; font-size: 18px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 12px;
  border: 3px solid #dfe4ec; border-radius: 14px; outline: none; -webkit-user-select: text; user-select: text; }
.addRow input:focus { border-color: #b8c3d6; }
.chip { border: 0; border-radius: 12px; padding: 9px 12px; min-height: 42px; min-width: 44px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; background: #e3e8f0; color: var(--ink-soft);
  white-space: nowrap; box-shadow: 0 3px 0 #c9d1dd; }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9d1dd; }
.chip.go { background: #15806b; color: #fff; box-shadow: 0 3px 0 var(--go-btn-dark); }
.chip.bad { background: var(--bad-btn); color: #fff; box-shadow: 0 3px 0 #9c2330; }
.chip.ghost { background: transparent; box-shadow: none; padding: 9px 8px; }
.chip.gold { background: linear-gradient(180deg, #ffd23f, #ffb300); color: #4a3000; box-shadow: 0 3px 0 #c98a00; }
.chip:disabled { opacity: .5; }
#frList { overflow-y: auto; min-height: 60px; flex: 1; margin: 0 -6px; padding: 0 6px 4px; overscroll-behavior: contain; touch-action: pan-y; }
#frList h3 { margin: 10px 2px 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); }
#frList h3 em { font-style: normal; background: #eef1f6; border-radius: 8px; padding: 1px 7px; margin-left: 4px; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 14px; }
.fr-row:hover { background: #f5f7fa; }
.fr-row .av { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.fr-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-row .who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-row .who small { font-size: 12px; color: var(--ink-soft); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.fr-row .act { display: flex; gap: 10px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b8c1ce; display: inline-block; flex: none; }
.dot.on { background: #2ec4a6; box-shadow: 0 0 0 3px rgba(46, 196, 166, .2); }
.dot.mid { background: #ffc93c; }
.empty { color: var(--ink-soft); font-size: 14px; font-weight: 500; margin: 4px 2px 8px; }
.muted { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
#inv { position: fixed; left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); width: min(440px, calc(100vw - 20px)); overflow: hidden;
  animation: invIn .35s cubic-bezier(.2, 1.4, .4, 1); }
#inv[hidden] { display: none; }
@keyframes invIn { from { transform: translate(-50%, -30px); opacity: 0; } }
#inv .av { width: 44px; height: 44px; flex: none; }
#inv p { flex: 1; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
/* oyun sırasında: küçük davet (göstergeleri kapatmasın), altta */
#inv.mini { top: auto; bottom: calc(66px + var(--safe-b)); width: min(360px, calc(100vw - 120px)); padding: 6px 8px; gap: 8px; border-radius: 16px; }
#inv.mini .av { width: 32px; height: 32px; }
#inv.mini .av canvas { width: 32px !important; height: 32px !important; }
#inv.mini p { font-size: 13px; }
@keyframes invUp { from { transform: translate(-50%, 30px); opacity: 0; } }
#inv.mini { animation-name: invUp; }
#invBar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--go); transform-origin: left; }

/* Skin seçici */
.skinHead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 4px -4px; font-size: 15px; }
.skinHead b { font-weight: 700; }
.skinHead span { font-size: 12px; color: var(--ink-soft); font-weight: 600; text-align: right; flex: 1; }
.skinHead em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: #eef1f6; border-radius: 8px; padding: 1px 7px; }
.skinHead em:empty { display: none; }
#skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 164px; overflow-y: auto; padding: 4px 2px 6px;
  scrollbar-width: thin; overscroll-behavior: contain; touch-action: pan-y; }
/* kaydırılabilir olduğunu göster: altta solan kenar (kilitli görünümler aşağıda) */
#skins.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
#skins button { position: relative; height: 56px; border-radius: 14px; border: 2px solid transparent; background: #f1f4f8; cursor: pointer; display: grid; place-items: center;
  transition: transform .12s, background .12s, border-color .12s, box-shadow .12s; padding: 0; }
#skins button:hover { background: #e7ecf3; transform: translateY(-1px); }
#skins button.on { background: #fff; border-color: #10ac84; box-shadow: 0 0 0 2px #10ac84, 0 4px 12px rgba(16, 172, 132, .35); transform: translateY(-1px); }
#skins button.locked canvas { filter: grayscale(.85) brightness(1.15); opacity: .55; }
#skins button > i { position: absolute; right: 3px; bottom: 2px; font-size: 13px; font-style: normal; }
#skins button b.st { position: absolute; left: 3px; top: 2px; font-size: 10px; font-weight: 700; color: #c98a00; }
#skins button.buy > i { font-size: 10px; font-weight: 700; color: #7a5a00; background: #ffe7a0; border-radius: 6px; padding: 0 4px; bottom: 3px; }

.btn { font-size: 18px; font-weight: 700; letter-spacing: .6px; border: 0; border-radius: 16px; padding: 13px 16px; cursor: pointer; color: #fff; transition: transform .08s, box-shadow .08s, filter .08s; }
.btn.big { font-size: 24px; padding: 15px 16px; background: linear-gradient(180deg, var(--go-btn-top), var(--go-btn)); box-shadow: 0 6px 0 var(--go-btn-dark), 0 8px 22px rgba(16, 172, 132, 0.4);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.btn.big:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.big:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--go-btn-dark); }
.btn.ghost { background: #e3e8f0; color: var(--ink-soft); box-shadow: 0 4px 0 #c9d1dd; }
.btn.ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9d1dd; }
.btn:disabled { filter: grayscale(.6); opacity: .7; }
.hint { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.hint.small { margin-top: -6px; font-size: 12px; }
.hint:empty { display: none; }

#over h2, #winBox h2 { margin: 4px 0 0; font-size: 34px; font-weight: 700; }
#overWhy, #winSub { margin: 0; font-size: 17px; color: var(--ink-soft); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.stats div { background: #f1f4f8; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; }
.stats b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.card.win h2 { font-size: 38px; background: linear-gradient(90deg, #ff3b4e, #ffc200, #10ac84, #2272eb); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Oyun içi: mini harita, açılır yazılar, öğretici, çıkış */
#mini { position: absolute; left: calc(12px + var(--safe-l)); bottom: calc(24px + var(--safe-b)); width: 118px; height: 118px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 6px 16px rgba(31, 42, 61, .25); background: rgba(190, 198, 212, .55); }
@media (max-width: 560px), (max-height: 480px) { #mini { width: 84px; height: 84px; } }
#pop { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.6); font-size: clamp(28px, 7vmin, 54px); font-weight: 700; color: #fff;
  white-space: nowrap; opacity: 0; text-shadow: 0 4px 0 rgba(31, 42, 61, .35), 0 0 18px rgba(31, 42, 61, .25); pointer-events: none; }
#pop.on { animation: popin 1.3s cubic-bezier(.2, 1.4, .4, 1) forwards; }
#pop.hot { color: #ffd23f; }
#pop.gold { color: #ffe066; }
@keyframes popin { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  25% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
#tut { position: absolute; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); padding: 12px 20px; border-radius: 18px;
  background: rgba(31, 42, 61, .82); color: #fff; font-size: 18px; font-weight: 600; white-space: nowrap; max-width: 92vw; white-space: normal; text-align: center; }
#tut.bump { animation: bump .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { from { transform: translateX(-50%) scale(.8); opacity: 0; } }
#exit { position: absolute; right: calc(10px + var(--safe-r)); bottom: calc(62px + var(--safe-b)); width: 44px; height: 44px; border-radius: 14px; border: 0; white-space: nowrap;
  background: rgba(255, 255, 255, .75); box-shadow: 0 3px 0 rgba(31, 42, 61, .15); font-size: 16px; font-weight: 700; color: var(--ink-soft); cursor: pointer; pointer-events: auto;
  transition: width .2s, background .2s, color .2s; }
#exit.arm { width: 96px; background: var(--bad-btn); color: #fff; }

/* 3 Dakika modu */
.seg.modes { align-self: stretch; }
.seg.modes button { flex: 1; font-size: 15px; padding: 9px 6px; }
#timer { position: absolute; left: 50%; top: calc(10px + var(--safe-t)); transform: translateX(-50%); padding: 4px 16px; border-radius: 14px;
  background: rgba(31, 42, 61, .55); color: #fff; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
#timer[hidden] { display: none; }
#timer.low { background: #ff3b4e; animation: bump .5s infinite alternate; }
#timer:not([hidden]) ~ #feed { top: calc(56px + var(--safe-t)); }
/* Dar ekran: sayaç yüzdenin altında, solda (sıralama tablosuyla çakışmasın). Temel kuraldan SONRA gelmeli. */
@media (max-width: 560px) {
  #timer { left: calc(14px + var(--safe-l)); top: calc(76px + var(--safe-t)); transform: none; font-size: 19px; padding: 3px 12px; }
  #timer.low { animation: none; }
  #timer:not([hidden]) ~ #feed { top: auto; }
}
#endBox { background: rgba(31, 42, 61, .28); }
#endBox h2 { margin: 0; font-size: 32px; }
#podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 6px; }
#podium .pl { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; }
#podium .pl b { font-size: 14px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#podium .pl em { font-style: normal; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
#podium .st { width: 100%; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 700; }
#podium .p1 .st { height: 84px; background: linear-gradient(180deg, #ffd23f, #f5a300); }
#podium .p2 .st { height: 60px; background: linear-gradient(180deg, #cfd6e2, #9aa6b8); }
#podium .p3 .st { height: 44px; background: linear-gradient(180deg, #e5a36b, #b8733d); }
#podium .pl.me b { color: #10ac84; }
#endMe { margin: 4px 0 0; font-weight: 700; font-size: 17px; }

/* Sonuç ekranı */
#addKiller { align-self: center; margin-top: -4px; }
#addKiller[hidden] { display: none; }
#record { align-self: center; padding: 4px 14px; border-radius: 999px; background: linear-gradient(90deg, #ffc200, #ff7a18); color: #fff; font-weight: 700;
  font-size: 15px; letter-spacing: .5px; animation: bump .5s cubic-bezier(.2, 1.6, .4, 1); }
#record[hidden], #unlock[hidden] { display: none; }
#unlock { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff7e0; font-weight: 600; font-size: 14px;
  text-align: left; animation: bump .5s .3s both cubic-bezier(.2, 1.6, .4, 1); }
.btn.gold { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 21px; padding: 11px 16px 13px;
  background: linear-gradient(180deg, #ffd23f, #ffb300); color: #5a3b00; box-shadow: 0 6px 0 #c98a00; }
.btn.gold small { font-size: 12px; font-weight: 600; opacity: .8; letter-spacing: 0; }
.btn.gold i:not(.gi) { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(90, 59, 0, .35); transform-origin: left; transition: transform .1s linear; }
.btn.gold:active { transform: translateY(4px); box-shadow: 0 2px 0 #c98a00; }
.btn.gold[hidden] { display: none; }
.trophy { font-size: 64px; line-height: 1; animation: bump .6s cubic-bezier(.2, 1.6, .4, 1); }

#mute { position: fixed; right: calc(10px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); z-index: 5; width: 44px; height: 44px; border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, .75); box-shadow: 0 3px 0 rgba(31, 42, 61, .15); font-size: 18px; cursor: pointer; }
#toast { position: fixed; left: 50%; bottom: calc(70px + var(--safe-b)); transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 14px;
  background: rgba(31, 42, 61, .88); color: #fff; font-weight: 600; font-size: 15px; opacity: 0; transition: .25s; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 10px; z-index: 25; }
#err[hidden] { display: none; }
#err { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: #e9edf3; font-size: 18px; text-align: center; }

/* ---------------- Meta: seviye, coin, günlük, görevler, haftalık, koleksiyon ---------------- */
/* coin ve elmas: client/icons.js çizimi (açılışta .cn/.gm sınıflarına bağlanır) */
.cn { display: inline-block; width: 1.18em; height: 1.18em; flex: none; vertical-align: -0.24em; margin-right: .22em; background: no-repeat center/contain; }
#prof { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
#prof[hidden] { display: none; }
#prof button { border: 0; font: inherit; cursor: pointer; min-height: 44px; }
.lv { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 14px; background: #eef1f6; min-width: 0; }
.lv b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 5px; border-radius: 11px; background: linear-gradient(180deg, #3d8bff, #1558d6);
  color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 2px 0 #0f40a1; }
.xp { display: block; width: 56px; height: 8px; border-radius: 4px; background: #d7deea; overflow: hidden; }
.xp > i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #2272eb, #00d2d3); transition: width .6s; }
.coin { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 14px; background: linear-gradient(180deg, #fff9e6, #fff1c2); color: #7a5a00; font-size: 17px; font-weight: 700; border: 1px solid rgba(255, 194, 0, 0.25); }
.coin b { font-variant-numeric: tabular-nums; }
.coin.bump { animation: bump .5s cubic-bezier(.2, 1.6, .4, 1); }
#metaRow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; } /* görünen düğme sayısı kadar sütun: hiçbiri alt satıra düşmez */
#metaRow[hidden] { display: none; }
#metaRow button { position: relative; border: 1.5px solid #edf2f7; border-radius: 14px; background: #ffffff; min-height: 52px; padding: 5px 2px 4px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink-soft); box-shadow: 0 3px 0 #dde3ec, 0 4px 10px rgba(0, 0, 0, 0.03); transition: transform .12s, box-shadow .12s; }
#metaRow button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #dde3ec, 0 8px 16px rgba(0, 0, 0, 0.06); }
#metaRow button:active { transform: translateY(2px); box-shadow: 0 1px 0 #dde3ec; }
#metaRow button[data-p="daily"] span { color: #ff3b4e; }
#metaRow button[data-p="missions"] span { color: #ffc200; }
#metaRow button[data-p="weekly"] span { color: #10ac84; }
#metaRow button[data-p="shop"] span { color: #2272eb; }
#metaRow button[data-p="invite"] span { color: #8338ec; }
#metaRow span { font-size: 22px; line-height: 1; display: grid; place-items: center; height: 28px; }
#metaRow small { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.badge { position: absolute; right: 4px; top: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad-btn); color: #fff;
  font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; animation: bump .6s cubic-bezier(.2, 1.6, .4, 1); }
.badge[hidden] { display: none; }
#sheet, #doc { background: rgba(31, 42, 61, .45); z-index: 10; }
#sheet .card, #doc .card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card.sh { width: min(440px, 100%); max-height: min(760px, calc(100dvh - 32px)); gap: 10px; text-align: left; }
#shBody { overflow-y: auto; min-height: 0; flex: 1; margin: 0 -6px; padding: 0 6px 6px; overscroll-behavior: contain; touch-action: pan-y; display: flex; flex-direction: column; gap: 10px; }
.sh .note { margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.sh .note.warn { background: #fff6e0; border: 2px solid #f3d38a; border-radius: 12px; padding: 8px 10px; color: #8a6412; }
.sh .sku[disabled] { opacity: .55; cursor: default; }
.sh .foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
/* Günlük seri */
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { position: relative; border-radius: 16px; background: #f1f4f8; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 700; }
.day small { font-size: 11px; color: var(--ink-soft); }
.day b { font-size: 15px; display: flex; align-items: center; gap: 4px; }
.day.done { background: #e6f7f2; }
.day.done::after { content: ''; position: absolute; right: 5px; top: 4px; width: 16px; height: 16px; background: var(--gi-check) no-repeat center/contain; }
.day.today { background: #fff6d8; box-shadow: 0 0 0 3px var(--gold); }
.day.big { grid-column: span 2; flex-direction: row; justify-content: center; gap: 10px; background: linear-gradient(135deg, #fff1e6, #ffe3e3); }
.day.big div { display: flex; flex-direction: column; align-items: flex-start; }
.sh .btn.big { font-size: 20px; padding: 12px 16px; }
/* Görevler */
.mis { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #f5f7fa; }
.mis .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mis .mt b { font-size: 15px; }
.bar { height: 10px; border-radius: 5px; background: #dfe5ee; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2ec4a6, #35b8ff); }
.mis .mt small { font-size: 12px; color: var(--ink-soft); font-weight: 600; display: flex; justify-content: space-between; }
.mis .ok { color: #15806b; font-weight: 700; font-size: 14px; }
.mis.done { background: #eefaf6; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #fff6d8; color: #6b4b00; font-size: 13px; font-weight: 700; }
.tag.off { background: #f1f4f8; color: var(--ink-soft); }
/* Haftalık */
.lead { display: flex; flex-direction: column; gap: 2px; }
.lr { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 12px; font-weight: 600; }
.lr.me { background: #e6f7f2; }
.lr > b { width: 30px; text-align: center; font-size: 15px; color: var(--ink-soft); flex: none; }
.lr .av { width: 30px; height: 30px; flex: none; }
.lr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 700; }
/* Koleksiyon */
.skd { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, #f3f6fb, #eef3ff); }
.skd .pv { flex: none; width: 96px; height: 96px; display: grid; place-items: center; }
.skd .inf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.skd h3 { margin: 0; font-size: 22px; }
.stars { color: #d8dee8; font-size: 18px; letter-spacing: 1px; }
.stars b { color: #f0a800; font-weight: 400; }
.skd .fx { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.skd .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.skd .acts .chip { display: inline-flex; align-items: center; gap: 6px; }
.skd s { opacity: .6; font-weight: 600; }
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.deal { position: relative; border: 0; border-radius: 16px; background: #fff6d8; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; }
.deal small { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.deal s { font-size: 11px; color: var(--ink-soft); }
.deal::before { content: '-25%'; position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--bad-btn); border-radius: 6px; padding: 1px 5px; }
.deal.own { background: #eefaf6; }
.deal.own::before { content: '✓'; background: #15806b; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.cgrid button { position: relative; height: 62px; border: 0; border-radius: 14px; background: #f1f4f8; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cgrid button.on { background: #fff; box-shadow: 0 0 0 3px #4c6fff; }
.cgrid button.locked canvas { filter: grayscale(.85) brightness(1.15); opacity: .55; }
.cgrid button > i { position: absolute; right: 3px; bottom: 2px; font-size: 12px; font-style: normal; }
.cgrid button b { position: absolute; left: 4px; top: 2px; font-size: 10px; color: #c98a00; }
.sh h4 { margin: 4px 2px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); }
/* Ödül (ölüm ekranı / podyum) */
.reward { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.reward[hidden] { display: none; }
.reward > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; font-weight: 700; font-size: 17px; animation: bump .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.reward .rc { background: #fff6d8; color: #6b4b00; }
.reward .rx { background: #eaefff; color: #2e47b8; animation-delay: .12s; }
.reward .rt { background: linear-gradient(90deg, #ff8a3d, #ff4d5e); color: #fff; font-size: 13px; animation-delay: .25s; }
.rwNote[hidden] { display: none; }
/* Oyun içi: izleme etiketi, devam geri sayımı */
#spec { position: absolute; left: 50%; bottom: calc(118px + var(--safe-b)); transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(31, 42, 61, .6);
  color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
#spec[hidden], #resume[hidden] { display: none; }
#resume { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 700; color: #fff; background: rgba(31, 42, 61, .25);
  text-shadow: 0 6px 0 rgba(31, 42, 61, .35); }
#resume.tick { animation: bump .5s cubic-bezier(.2, 1.6, .4, 1); }
/* Yasal satır (OYNA altında: şartlar + gizlilik) */
.legalLine { margin: 0; font-size: 12px; line-height: 1.35; }
.legalLine a { color: inherit; text-decoration: underline; cursor: pointer; }
.legalLine[hidden] { display: none; }
/* Ölüm ekranı: arkadaş ekle + şikâyet/engelle */
.killerRow { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.killerRow:not(:has(button:not([hidden]))) { display: none; }
/* Şikâyet düğmesi (sıralama satırı) */
.rpBtn { margin-left: auto; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700; font-size: 18px; min-width: 40px; min-height: 36px; border-radius: 10px; cursor: pointer; }
.lr .rpBtn + em, .lr em + .rpBtn { margin-left: 4px; }
/* Ödüllü reklam düğmesi */
.chip.ad, .btn.ad { background: linear-gradient(180deg, #6d8bff, #4c6fff); color: #fff; box-shadow: 0 3px 0 #2f4bcc; }
.reward .chip.ad { flex-basis: 100%; margin-top: 4px; }
/* Mağaza (uygulama içi satın alma) */
.skus { display: flex; flex-direction: column; gap: 8px; }
.sku { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 16px; padding: 10px 12px; background: #f1f4f9; color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 3px 0 #d5dce7; }
.sku:active { transform: translateY(2px); box-shadow: 0 1px 0 #d5dce7; }
.sku .si { font-size: 26px; min-width: 40px; display: grid; place-items: center; }
.sku .st { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sku .st b { font-size: 16px; } .sku .st small { color: var(--ink-soft); font-size: 13px; }
.sku em { font-style: normal; font-weight: 700; background: #15806b; color: #fff; border-radius: 12px; padding: 8px 12px; white-space: nowrap; }
.sku.hot { background: linear-gradient(180deg, #fff6d6, #ffe9a3); box-shadow: 0 3px 0 #e2bf54; }
.sku.best { outline: 3px solid #ffb300; }
.sku:disabled { opacity: .6; }
/* Menüde ses düğmesi yok (ayarlarda var): kartın altını kapatmasın */
body.inMenu #mute { display: none; }
@media (max-height: 880px) { #skins { max-height: 144px; } } /* dünya kartı menüye bir satır ekledi: görünüm ızgarası kısalır */
@media (max-height: 740px) { .logo { font-size: 44px; } .logo span { width: 48px; height: 48px; border-radius: 13px; } .card { gap: 10px; } }

/* Kısa ekranlar (telefon dikey 640–760 px): menü kartı kaydırmadan sığsın. Temel kurallardan SONRA gelmeli. */
@media (max-height: 760px) {
  #skins { max-height: 96px; }
  #worldCard { padding: 4px 9px; } #worldCard b { font-size: 12px; margin-bottom: 2px; }
  .card { gap: 9px; }
  .logo { font-size: 40px; margin: 0 0 4px; } .logo span { width: 44px; height: 44px; border-radius: 12px; }
}
@media (max-height: 680px) {
  .card { padding: 16px 16px 14px; gap: 8px; }
  #menu #stats { display: none; }
  #nick { padding: 9px 12px; font-size: 18px; }
  .btn { padding: 11px 16px; } .btn.big { padding: 11px 16px; font-size: 22px; }
  #metaRow button { min-height: 46px; justify-content: center; } #metaRow small { display: none; } #metaRow span { font-size: 22px; }
  #skins { max-height: 106px; }
}
/* Yatay telefon: ayarlar iki sütun */
@media (max-height: 520px) {
  #settings .card { width: min(680px, 100%); display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 8px; align-items: center; }
  #settings h2, #settings .setLinks, #settings #setClose, #settings #ver { grid-column: 1 / -1; }
  #skins { max-height: 170px; }
}
.topRow .gear { margin-left: auto; } /* arkadaş düğmesi / şerit gizliyken de sağda */
/* Davet */
.refHero { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #e6faf5, #eef1ff); text-align: center; }
.refHero > b { font-size: 20px; }
.refHero p { margin: 0; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.refHero .btn.big { font-size: 19px; padding: 12px 14px; }
.rstep { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: #f5f7fa; font-size: 14px; font-weight: 600; }
.rstep i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #4c6fff; color: #fff; font-style: normal; font-weight: 700; }
.rstep span { flex: 1; }
.rstep em { font-style: normal; font-weight: 700; color: #6b4b00; white-space: nowrap; font-size: 13px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 14px; background: #f1f4f8; font-size: 13px; }
.tier small { color: var(--ink-soft); font-weight: 700; }
.tier.got { background: #fff6d8; box-shadow: 0 0 0 2px var(--gold); }
.lr em.bad { color: var(--bad-btn); font-size: 12px; }
.lr em { font-size: 12px; text-align: right; }
/* Mod sekmeleri: LAND · FETİH (aynı hesap, aynı coin) */
.modeTabs { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: linear-gradient(135deg, #ffe5ec, #fff3cd, #e6faf5, #e0f2fe); border: 1px solid rgba(0, 0, 0, 0.05); }
.modeTabs a, .modeTabs span { flex: 1; min-height: 38px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink-soft); text-decoration: none; transition: all .15s ease; }
.modeTabs .on { background: #fff; color: var(--ink); box-shadow: 0 3px 8px rgba(31, 42, 61, .15); }
.langSel { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: #eef1f6; border: 0; border-radius: 12px; padding: 10px 12px; min-height: 44px; max-width: 60%; cursor: pointer; }
html.rtl .card, html.rtl .sheet, html.rtl #toast { direction: rtl; }
/* sağdan sola dillerde: logo ve sayısal/yön bildiren öğeler soldan sağa kalır */
html[dir="rtl"] .logo, html[dir="rtl"] .bar, html[dir="rtl"] #hud canvas { direction: ltr; }

/* Sezon Kartı: alt düğme satırında 6. düğme (panel Fetih sayfasında) */
#metaRow.six { grid-template-columns: none; }
#metaRow a { position: relative; border-radius: 14px; min-height: 52px; padding: 5px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none;
  color: #b4501a; background: #fff1e6; box-shadow: 0 3px 0 #f3cfb4; }
#metaRow a[hidden] { display: none; }
#metaRow a:active { transform: translateY(2px); box-shadow: 0 1px 0 #f3cfb4; }

/* Güç çubuğu (maç içi): sağ altta yuvarlak düğmeler — simge, kalan hak, bekleme halkası */
#powers[hidden], #powers button[hidden] { display: none; }
#powers { position: absolute; right: calc(10px + var(--safe-r)); bottom: calc(116px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
#powers button { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; font-size: 24px; line-height: 1;
  background: rgba(255, 255, 255, .92); box-shadow: 0 3px 0 rgba(31, 42, 61, .18), 0 6px 14px rgba(31, 42, 61, .2); color: #1f2a3d; cursor: pointer;
  display: grid; place-items: center; transition: transform .1s, opacity .15s; -webkit-tap-highlight-color: transparent; }
#powers button:active { transform: scale(.92); }
#powers button[disabled] { opacity: .4; }
#powers button b { position: absolute; right: -2px; bottom: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #ffc93c; color: #1f2a3d;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 0 rgba(31, 42, 61, .25); padding: 0 4px; }
#powers button i:not(.gi) { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(31, 42, 61, .45) var(--cd, 0turn), transparent 0); }
@media (max-width: 420px) { #powers button { width: 48px; height: 48px; font-size: 20px; } }

/* Elmas sayacı ve güç kartları */
#gemBtn[hidden] { display: none; }
.gm { display: inline-block; width: 1.12em; height: 1.12em; flex: none; vertical-align: -0.22em; background: no-repeat center/contain; }
.pwList { display: grid; gap: 10px; }
.pwCard { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; background: rgba(255, 255, 255, .7); border-radius: 16px; padding: 10px 12px; }
.pwCard .ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 2px 0 rgba(31, 42, 61, .12); }
.pwCard h5 { margin: 0 0 2px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.pwCard h5 em { font-style: normal; font-size: 12px; font-weight: 700; color: #58667e; background: rgba(31, 42, 61, .08); border-radius: 8px; padding: 1px 7px; }
.pwCard p { margin: 0 0 7px; font-size: 12.5px; color: #58667e; line-height: 1.3; }
.pwCard .row { display: flex; gap: 8px; flex-wrap: wrap; }
.pwSeg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #eef2f7; border-radius: 14px; padding: 4px; }
.pwSeg button { border: 0; background: transparent; border-radius: 11px; padding: 7px 4px; font: inherit; font-weight: 800; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.pwSeg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgba(31, 42, 61, .1); }
.chip.gem { background: linear-gradient(180deg, #d98bff, #a855f7); color: #fff; display: inline-flex; align-items: center; gap: 5px; }

/* Dünya Turu kartı: tek büyük hedef — her maç bu çubuğu doldurur */
#worldCard { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; width: 100%; border: 0; cursor: pointer; font: inherit;
  background: linear-gradient(180deg, #ffffff, #f1f4f8); border-radius: 14px; padding: 5px 10px; box-shadow: 0 3px 0 #dde3ec; text-align: left; }
#worldCard:active { transform: translateY(2px); box-shadow: 0 1px 0 #dde3ec; }
#worldCard[hidden] { display: none; }
#worldCard .wf { font-size: 16px; line-height: 1; display: grid; place-items: center; }
#worldCard b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 3px; }
#worldCard .bar { display: block; height: 6px; border-radius: 4px; background: #dde3ec; overflow: hidden; }
#worldCard .bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #35b8ff, #6d8bff); transition: width .5s cubic-bezier(.2,1,.3,1); }
#worldCard em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.wList { display: grid; gap: 6px; }
.wRow { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.65); font-size: 13px; font-weight: 700; }
.wRow.on { background: linear-gradient(90deg, #e8f3ff, #f6f9ff); box-shadow: inset 0 0 0 2px #9bdcff; }
.wRow.done { opacity: .55; }
.wRow em { font-style: normal; font-size: 12px; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.btn.gemBtn { background: linear-gradient(180deg, #d98bff, #a855f7); color: #fff; box-shadow: 0 4px 0 #7c3aed; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.gemBtn:active { box-shadow: 0 1px 0 #7c3aed; }
/* Büyük başlangıç: dünya kartının sağındaki küçük reklam düğmesi (menüye yükseklik eklemez) */
.bsChip { border: 0; border-radius: 9px; padding: 3px 7px; line-height: 1.25; font: inherit; font-weight: 800; font-size: 11.5px; white-space: nowrap; cursor: pointer;
  background: linear-gradient(180deg, #8ee06b, #5fc53f); color: #fff; box-shadow: 0 2px 0 #3f9b27; }
.bsChip:active { transform: translateY(1px); box-shadow: 0 1px 0 #3f9b27; }
.bsChip[hidden] { display: none; }

/* Maç içi ilerleme çubuğu: şu anki pay + kişisel rekor işareti */
.pbar { position: relative; display: block; width: 104px; height: 7px; margin-top: 5px; border-radius: 4px; background: rgba(31, 42, 61, .18); overflow: visible; }
.pbar[hidden] { display: none; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #ffd34d, #ff9f1c); transition: width .25s linear; }
.pbar b { position: absolute; top: -3px; width: 3px; height: 13px; border-radius: 2px; background: #1f2a3d; opacity: .75; transform: translateX(-1px); }
.pbar b::after { content: 'BEST'; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 8px; font-weight: 800; letter-spacing: .5px; color: #1f2a3d; opacity: .75; }
.mine.dead .pbar { opacity: .4; }

/* Mola ekranı: tam ekran reklam suratına çarpmasın — oyunun kendi temasında kısa bir geçiş */
#break { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(31, 42, 61, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#break[hidden] { display: none; }
#break .bk { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border-radius: 22px; padding: 22px 30px; box-shadow: 0 10px 30px rgba(31, 42, 61, .3); }
#break .bkIcon { font-size: 34px; animation: bump 1.1s ease-in-out infinite; }
#break b { font-size: 16px; color: var(--ink); }
#break .bkBar { width: 150px; height: 6px; border-radius: 3px; background: #e6eaf1; overflow: hidden; }
#break .bkBar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #35b8ff, #6d8bff); transform-origin: left; animation: bkFill 1.2s linear forwards; }
@keyframes bkFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Koleksiyon = görev panosu: kilitli görünümün ilerleme çubuğu */
.needBar { position: relative; display: block; height: 16px; border-radius: 8px; background: #e6eaf1; overflow: hidden; margin-top: 4px; }
.needBar > i { display: block; height: 100%; background: linear-gradient(90deg, #5fd08a, #2ec4a6); }
.needBar b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 800; color: #1f2a3d; }
.needBar b .gi { width: 13px; height: 13px; vertical-align: 0; }
/* Yeni açılan sekme: dikkat çeksin */
#metaRow button.fresh { box-shadow: 0 3px 0 #dde3ec, 0 0 0 2px var(--gold); animation: bump .7s cubic-bezier(.2, 1.6, .4, 1) 2; }
#metaRow button[hidden] { display: none; }

/* Sandıklar ve güç seviyeleri */
.chestRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chestCard { display: grid; gap: 3px; justify-items: center; border: 0; border-radius: 16px; padding: 10px 6px; font: inherit; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f1f4f8); box-shadow: 0 3px 0 #dde3ec; color: var(--ink); text-align: center; }
.chestCard:active { transform: translateY(2px); box-shadow: 0 1px 0 #dde3ec; }
.chestCard[disabled] { opacity: .55; cursor: default; }
.chestCard .ci { font-size: 38px; line-height: 1; height: 46px; display: grid; place-items: center; }
.chestCard b { font-size: 13px; }
.chestCard small { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; line-height: 1.25; }
.chestCard em { font-style: normal; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.pwCard .ic { position: relative; }
.pwCard .ic .lvl { position: absolute; right: -2px; bottom: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #35b8ff; color: #fff;
  font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 0 rgba(31,42,61,.25); }
.pwCard .st { display: block; margin-top: 2px; font-size: 11.5px; color: #35b8ff; }
.pwCard .maxLv { font-size: 12px; font-weight: 700; color: #2ec4a6; margin-bottom: 6px; }
.pwCard .needBar { margin-bottom: 7px; }

/* Arena adı: tur başında ortada birkaç saniye (hangi ülkede oynuyoruz) */
#arenaName { position: absolute; left: 50%; top: calc(96px + var(--safe-t)); transform: translateX(-50%); display: flex; align-items: center; gap: 7px;
  background: rgba(31, 42, 61, .55); color: #fff; border-radius: 14px; padding: 6px 14px; font-weight: 800; font-size: 15px; white-space: nowrap;
  animation: arenaFade 4s ease forwards; pointer-events: none; }
#arenaName[hidden] { display: none; }
@keyframes arenaFade { 0% { opacity: 0; transform: translateX(-50%) translateY(-8px); } 12% { opacity: 1; transform: translateX(-50%) translateY(0); } 75% { opacity: 1; } 100% { opacity: 0; } }

/* Etkinlik paneli */
.evHero { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fff3d9, #ffe9f3); text-align: center; }
.evHero > b { font-size: 19px; }
.evHero p { margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.needBar.big { height: 22px; border-radius: 11px; }
.needBar.big b { font-size: 12.5px; }
.evList { display: grid; gap: 6px; }
.evRow { display: grid; grid-template-columns: 54px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.65); font-weight: 700; font-size: 13px; }
.evRow > b { font-size: 15px; color: var(--ink-soft); }
.evRow.ready { background: #fff6d8; box-shadow: 0 0 0 2px var(--gold); }
.evRow.got { opacity: .55; }
.evRow em { font-style: normal; font-size: 12px; color: var(--ink-soft); }

/* ---------------- İkon seti (client/icons.js) ---------------- */
.gi.off { filter: grayscale(1) brightness(1.15); opacity: .35; }
.icon .gi { width: 22px; height: 22px; vertical-align: middle; }
#exit .gi, #mute .gi { width: 22px; height: 22px; }
img.flag { width: 1.45em; height: 1.09em; object-fit: cover; border-radius: 3px; vertical-align: -.2em; box-shadow: 0 0 0 1.5px rgba(31, 42, 61, .18); }
#goHint { position: absolute; left: 50%; top: calc(50% + 62px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; pointer-events: none;
  padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(20, 28, 45, .72); color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(20, 28, 45, .25); animation: goPulse 1.6s ease-in-out infinite; }
#goHint[hidden] { display: none; }
#goHint .gi { width: 30px; height: 30px; animation: goSwipe 1.6s ease-in-out infinite; }
@keyframes goSwipe { 0%, 100% { transform: translateX(-6px) rotate(-8deg); } 50% { transform: translateX(8px) rotate(8deg); } }
@keyframes goPulse { 0%, 100% { opacity: .92; } 50% { opacity: 1; } }
/* çok düğme: etiket küçülür ama kalır (yalnız ikonla hangi düğmenin ne olduğu anlaşılmıyordu) */
#metaRow.many small { font-size: 9.5px; letter-spacing: -.15px; }
#metaRow.many button, #metaRow.many a { min-height: 52px; justify-content: center; padding-left: 1px; padding-right: 1px; }
#metaRow.many span { height: 26px; font-size: 22px; }
#play { display: flex; align-items: center; justify-content: center; gap: 10px; }
#play .playIc { width: .95em; height: .95em; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .18)); }

/* Teklif penceresi (maç sonu, seyrek): başlangıç paketi (geri sayımlı) / reklamları kaldır */
.offer { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(20, 27, 40, .55);
  animation: ofFade .2s ease-out; }
.ofCard { position: relative; width: min(340px, 100%); padding: 22px 18px 14px; border-radius: 26px; text-align: center; color: var(--ink);
  background: linear-gradient(180deg, #fff8e6, #fff 46%); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 0 0 3px var(--gold);
  animation: ofPop .42s cubic-bezier(.2, 1.5, .4, 1); }
.ofCard.noads { background: linear-gradient(180deg, #e9f7f3, #fff 46%); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 0 0 3px var(--go); }
.ofCard h3 { margin: 6px 0 10px; font-size: 26px; line-height: 1.1; }
.ofTag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); padding: 5px 14px; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 15px; letter-spacing: .5px; white-space: nowrap; box-shadow: 0 4px 0 var(--accent-dark); }
.ofX { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 12px; background: #eef1f6; color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer; }
.ofX .gi { width: 18px; height: 18px; }
.ofArt { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 8px; }
.ofSkin canvas { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); animation: ofBob 2.2s ease-in-out infinite; }
.ofGets { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ofGets b { font-size: 28px; display: flex; align-items: center; gap: 6px; }
.ofGets b .cn { width: 26px; height: 26px; }
.ofGets small { font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.ofTimer { margin: 0 0 12px; font-weight: 700; color: var(--accent-dark); display: flex; align-items: center; justify-content: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ofTimer .gi { width: 18px; height: 18px; }
.ofBig .gi { width: 74px; height: 74px; margin-top: 4px; }
.ofSub { margin: 0 0 14px; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }
.ofBuy { width: 100%; }
.ofLater { margin-top: 6px; border: 0; background: none; color: var(--ink-soft); font: inherit; font-weight: 600; font-size: 15px; padding: 8px 12px; cursor: pointer; }
@keyframes ofFade { from { opacity: 0; } }
@keyframes ofPop { from { opacity: 0; transform: scale(.82) translateY(16px); } }
@keyframes ofBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ofTimer[hidden] { display: none; }

/* ==========================================================================
   MOBILE LANDSCAPE MODE OPTIMIZATIONS (Responsive on all phones & small screens)
   ========================================================================== */
@media (orientation: landscape) and (max-height: 600px) {
  /* Screens and general viewport */
  .screen {
    padding: 6px calc(14px + var(--safe-r)) 6px calc(14px + var(--safe-l));
    padding-top: calc(4px + var(--safe-t));
    padding-bottom: calc(4px + var(--safe-b));
    align-items: center;
    justify-content: center;
  }
  .card {
    padding: 10px 16px 8px;
    gap: 6px;
    border-radius: 20px;
    border-width: 3px;
  }

  /* ----------------------------------------------------
     1. MAIN MENU (#menu) in Landscape
     ---------------------------------------------------- */
  #menu .card {
    width: min(740px, calc(100vw - 20px - var(--safe-l) - var(--safe-r)));
    max-height: calc(100dvh - 10px);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  #menu .topRow {
    min-height: 36px;
    margin: 0;
    gap: 6px;
  }
  #menu .gear, #menu .friendsBtn {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 17px;
  }
  #prof .lv, #prof .coin {
    min-height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
  .menuBody {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    width: 100% !important;
    align-items: stretch !important;
    min-height: 0 !important;
    flex: 1 !important;
  }
  .menuLeft {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }
  .menuRight {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    justify-content: center !important;
  }
  #nick {
    padding: 7px 10px;
    font-size: 16px;
    min-height: 36px;
    border-radius: 12px;
  }
  .skinHead {
    margin: 0;
    font-size: 13px;
  }
  #skins {
    flex: 1 !important;
    min-height: 85px !important;
    max-height: calc(100dvh - 150px) !important;
    overflow-y: auto !important;
    padding: 2px !important;
  }
  #skins button {
    width: 44px;
    height: 44px;
  }
  #modes {
    padding: 3px;
    border-radius: 12px;
  }
  #modes button {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 13px;
  }
  #worldCard {
    padding: 3px 8px;
    min-height: 28px;
    border-radius: 10px;
  }
  #worldCard b {
    font-size: 11px;
  }
  #play {
    min-height: 44px;
    padding: 9px 16px;
    font-size: 20px;
    border-radius: 14px;
  }
  #metaRow {
    gap: 6px;
  }
  #metaRow button, #metaRow a {
    min-height: 38px;
    padding: 3px 4px;
    border-radius: 11px;
  }
  #metaRow span {
    font-size: 18px;
  }
  #metaRow small {
    font-size: 9px;
  }
  #menu #stats {
    font-size: 11px;
    margin: 0;
    line-height: 1.2;
    display: block !important;
  }
  #menu #online {
    font-size: 11px;
    margin: 0;
    line-height: 1.2;
  }

  /* ----------------------------------------------------
     2. GAME OVER (#over) in Landscape
     ---------------------------------------------------- */
  #over .card {
    width: min(660px, calc(100vw - 20px - var(--safe-l) - var(--safe-r)));
    max-height: calc(100dvh - 10px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 18px 8px;
  }
  .overHead {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: center !important;
  }
  #overTitle {
    font-size: 24px;
    margin: 0;
    line-height: 1.1;
  }
  #overWhy {
    font-size: 13px;
    margin: 0;
  }
  .overBody {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .overLeft {
    flex: 1.1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: center !important;
  }
  .overRight {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  #over .stats {
    gap: 10px;
    margin: 2px 0;
  }
  #over .stats b {
    font-size: 18px;
  }
  #over .stats span {
    font-size: 11px;
  }
  .reward > span {
    font-size: 14px;
    padding: 5px 8px;
  }
  #record {
    padding: 3px 10px;
    font-size: 12px;
  }
  .killerRow {
    gap: 4px;
  }
  .killerRow .chip {
    padding: 4px 8px;
    font-size: 12px;
  }
  #revive, #reviveGem {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 14px;
  }
  #again {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 19px;
  }
  #toMenu {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 14px;
  }

  /* ----------------------------------------------------
     3. MATCH END & PODIUM (#endBox) in Landscape
     ---------------------------------------------------- */
  #endBox .card {
    width: min(640px, calc(100vw - 20px - var(--safe-l) - var(--safe-r)));
    max-height: calc(100dvh - 10px);
    padding: 10px 16px 8px;
    gap: 6px;
    display: flex;
    flex-direction: column;
  }
  #endTitle {
    font-size: 22px;
    margin: 0;
  }
  .endBody {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: center !important;
    justify-content: space-around !important;
    width: 100% !important;
  }
  .endLeft {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
  }
  .endRight {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: center !important;
  }
  #podium {
    height: 96px;
    gap: 8px;
  }
  #podium .pl {
    width: 58px;
  }
  #podium .pl .st {
    height: 36px;
  }
  #podium .pl b {
    font-size: 11px;
  }
  #podium .pl em {
    font-size: 10px;
  }

  /* ----------------------------------------------------
     4. MODAL SHEETS & PANELS (#sheet, #friends, #settings)
     ---------------------------------------------------- */
  .card.sh, .card.fr {
    width: min(700px, calc(100vw - 20px - var(--safe-l) - var(--safe-r))) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 10px 16px 8px !important;
    gap: 6px !important;
  }
  .frHead h2 {
    font-size: 20px !important;
  }
  #shBody {
    max-height: calc(100dvh - 60px) !important;
    gap: 6px !important;
  }
  /* Daily Rewards 7-day row in landscape */
  .days {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
  }
  .day {
    padding: 5px 2px !important;
    border-radius: 10px !important;
  }
  .day b {
    font-size: 13px !important;
  }
  .day small {
    font-size: 10px !important;
  }
  .day.big {
    grid-column: span 1 !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  .day.big div {
    align-items: center !important;
  }
  .day.big span[data-pv] {
    transform: scale(.8);
  }
  /* Missions in landscape */
  .mis {
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }
  .mis .mt b {
    font-size: 13px !important;
  }
  .mis .mt small {
    font-size: 11px !important;
  }
  /* Collection / Skins in landscape */
  .skd {
    padding: 8px 10px !important;
    gap: 10px !important;
  }
  .skd .pv {
    width: 64px !important;
    height: 64px !important;
  }
  .skd h3 {
    font-size: 18px !important;
  }
  .cgrid {
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)) !important;
    gap: 4px !important;
  }
  .cgrid button {
    height: 48px !important;
    border-radius: 10px !important;
  }
  /* Powers & Chests */
  .chestRow {
    gap: 6px !important;
  }
  .chestCard {
    padding: 6px 4px !important;
  }
  .pwCard {
    padding: 6px 8px !important;
  }
  /* Settings 2-column layout */
  #settings .card {
    width: min(640px, calc(100vw - 20px - var(--safe-l) - var(--safe-r))) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 10px 16px 8px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 16px !important;
    row-gap: 4px !important;
    align-items: center !important;
  }
  #settings h2, #settings .setLinks, #settings #setClose, #settings #ver, #settings #delData {
    grid-column: 1 / -1 !important;
  }
  #settings h2 {
    font-size: 20px !important;
    margin: 0 !important;
  }
  #settings .srow {
    min-height: 32px !important;
    font-size: 13px !important;
  }
  #settings .seg button {
    min-height: 28px !important;
    padding: 3px 6px !important;
    font-size: 12px !important;
  }
  #settings .link {
    min-height: 28px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
  }
  #settings #setClose {
    min-height: 34px !important;
    padding: 6px 10px !important;
  }

  /* ----------------------------------------------------
     5. IN-GAME HUD (#hud) in Landscape
     ---------------------------------------------------- */
  #hud .mine {
    left: calc(12px + var(--safe-l)) !important;
    top: calc(8px + var(--safe-t)) !important;
  }
  #pct {
    font-size: clamp(24px, 5vmin, 34px) !important;
  }
  #sub {
    font-size: 12px !important;
    margin-top: 2px !important;
  }
  /* Leaderboard: Compact top 3 + me, avoiding power buttons */
  #lb {
    right: calc(10px + var(--safe-r)) !important;
    top: calc(8px + var(--safe-t)) !important;
    width: min(160px, 28vw) !important;
    padding: 4px !important;
  }
  #lb li {
    font-size: 11px !important;
    padding: 2px 4px !important;
  }
  #lb li:nth-child(n+4):not(.me) {
    display: none !important;
  }
  /* Minimap: Bottom-left thumb friendly */
  #mini {
    left: calc(10px + var(--safe-l)) !important;
    bottom: calc(10px + var(--safe-b)) !important;
    width: 72px !important;
    height: 72px !important;
  }
  /* Net speed: above minimap */
  #net {
    left: calc(10px + var(--safe-l)) !important;
    bottom: calc(86px + var(--safe-b)) !important;
    font-size: 10px !important;
  }
  /* Mute and exit buttons */
  #mute {
    right: calc(10px + var(--safe-r)) !important;
    bottom: calc(8px + var(--safe-b)) !important;
    width: 38px !important;
    height: 38px !important;
  }
  #exit {
    right: calc(10px + var(--safe-r)) !important;
    bottom: calc(52px + var(--safe-b)) !important;
    width: 38px !important;
    height: 38px !important;
  }
  /* In-game powers: horizontal row along bottom right next to mute/exit */
  #powers {
    right: calc(54px + var(--safe-r)) !important;
    bottom: calc(8px + var(--safe-b)) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
  }
  #powers button {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }
  #feed {
    top: calc(6px + var(--safe-t)) !important;
    bottom: auto !important;
    max-width: 50vw !important;
  }
  #feed div {
    font-size: 11px !important;
    padding: 2px 8px !important;
  }
  #spec {
    bottom: calc(10px + var(--safe-b)) !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
  }
}
