/* ZETY ARCADE - hub (lobi). Koyu, premium arcade salonu. */
:root {
  --bg: #07080f;
  --panel: rgba(18, 19, 32, .72);
  --line: rgba(255, 255, 255, .09);
  --text: #eceaf6;
  --muted: #8d8aa6;
  --gold: #ffd166;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); touch-action: manipulation;
  -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { min-height: 100vh; overflow-x: hidden; }
@supports (height: 100dvh) { body { min-height: 100dvh; } }
body.hid *, body.hid *::before, body.hid *::after { animation-play-state: paused !important; }
button, input, a { font-family: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- arka plan ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #06070d 0%, #0a0b16 55%, #0c0a18 100%); }
.bg-glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; }
.g1 { left: -25vmax; top: -22vmax; background: radial-gradient(circle, rgba(34, 245, 255, .30), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.g2 { right: -28vmax; top: 18vh; background: radial-gradient(circle, rgba(179, 136, 255, .30), transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.g3 { left: 5vmax; bottom: -34vmax; background: radial-gradient(circle, rgba(255, 179, 138, .24), transparent 62%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-9vmax, -4vmax, 0) scale(.92); } }
.bg-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%); mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%); }
.bg-grain { position: absolute; inset: 0; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.bg-vig { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%); }

/* ---------- iskelet ---------- */
.wrap { position: relative; z-index: 2; max-width: 1020px; margin: 0 auto;
  padding: calc(12px + var(--sat)) calc(16px + var(--sar)) calc(28px + var(--sab)) calc(16px + var(--sal)); }

.top { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark { width: 38px; height: 38px; flex: none; }
.mark .m { stroke-width: 1.6; fill: none; transform-box: fill-box; transform-origin: center; animation: mk 4s ease-in-out infinite; }
.m1 { stroke: #22F5FF; fill: rgba(34, 245, 255, .22); }
.m2 { stroke: #FFB38A; fill: rgba(255, 179, 138, .22); animation-delay: .6s; }
.m3 { stroke: #B388FF; fill: rgba(179, 136, 255, .22); animation-delay: 1.2s; }
.m4 { stroke: #F2C14E; fill: rgba(242, 193, 78, .22); animation-delay: 1.8s; }
@keyframes mk { 0%, 70%, 100% { transform: scale(1); opacity: .8; } 85% { transform: scale(.82); opacity: 1; } }
.brand-txt { min-width: 0; }
.logo { margin: 0; font-size: 25px; line-height: 1; letter-spacing: .14em; font-weight: 800; white-space: nowrap; }
.logo-a, .logo-b { background: linear-gradient(100deg, #fff 0%, #22F5FF 22%, #B388FF 46%, #FFB38A 70%, #fff 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shine 7s linear infinite; }
.logo-b { font-weight: 300; animation-delay: -1.2s; }
@keyframes shine { to { background-position: -260% 0; } }
.sub { margin: 5px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }

.nick-box { display: flex; flex-direction: column; gap: 3px; }
.nick-l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nick { width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 9, 18, .7); color: var(--text);
  font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.nick:focus { outline: none; border-color: #22F5FF; box-shadow: 0 0 0 3px rgba(34, 245, 255, .18); }
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(18, 19, 32, .8); color: var(--text); cursor: pointer; padding: 0; transition: transform .1s, border-color .2s; }
.icon-btn:hover { border-color: rgba(255, 255, 255, .25); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .slash { opacity: 0; }
.icon-btn[aria-pressed="false"] { color: var(--muted); }
.icon-btn[aria-pressed="false"] .waves { opacity: 0; }
.icon-btn[aria-pressed="false"] .slash { opacity: 1; }
/* takma ad: mobilde ikinci satır */
.top .nick-box { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: center; gap: 10px; }
.top .nick-box .nick-l { flex: none; }
.top .nick-box .nick { flex: 1; min-width: 0; }

.sec-h { margin: 6px 2px 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- kartlar ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { position: relative; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.card:nth-child(2) { animation-delay: .07s; } .card:nth-child(3) { animation-delay: .14s; } .card:nth-child(4) { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ac) 55%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 34px color-mix(in srgb, var(--ac) 22%, transparent); }
}
.pv { position: relative; height: 118px; background: #000; }
.pv::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(18, 19, 32, .85)); pointer-events: none; }
.pv canvas { display: block; width: 100%; height: 100%; }
.cb { padding: 10px 14px 14px; }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-name { margin: 0; font-size: 18px; letter-spacing: .1em; font-weight: 800; color: #fff; }
.tag { flex: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; font-weight: 700;
  color: var(--ac); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); background: color-mix(in srgb, var(--ac) 12%, transparent); }
.c-desc { margin: 6px 0 10px; font-size: 13px; line-height: 1.4; color: #b4b1c9; min-height: 2.8em; }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-stats { margin: 0; display: flex; gap: 14px; min-width: 0; }
.c-stats div { min-width: 0; }
.c-stats dt { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.c-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; font-family: var(--mono); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 128px; }
.play { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 118px; height: 48px; padding: 0 22px; border-radius: 14px;
  font-size: 16px; font-weight: 800; letter-spacing: .16em; text-decoration: none; color: #0a0a14;
  background: linear-gradient(135deg, var(--ac), var(--ac2)); box-shadow: 0 6px 18px color-mix(in srgb, var(--ac) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .12s, filter .2s; position: relative; overflow: hidden; }
.play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 4.5s ease-in-out infinite; }
.card:nth-child(2) .play::after { animation-delay: 1.1s; } .card:nth-child(3) .play::after { animation-delay: 2.2s; } .card:nth-child(4) .play::after { animation-delay: 3.3s; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.play:hover { filter: brightness(1.1); }
.play:active { transform: scale(.95); }

/* ---------- liderlik ---------- */
.lb { margin-top: 26px; }
.tabs-wrap { overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); min-width: max-content; }
.tab { min-height: 44px; padding: 0 16px; background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .06em; cursor: pointer; transition: color .2s; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: var(--ac); }
.tab-ind { position: absolute; left: 0; bottom: -1px; height: 3px; width: 10px; border-radius: 3px 3px 0 0; background: var(--ac, #22F5FF);
  box-shadow: 0 0 12px var(--ac, #22F5FF); transform: translateX(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s; }
.lb-panel { margin-top: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); padding: 6px; min-height: 120px; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list.swap { animation: swap .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes swap { from { opacity: 0; transform: translateX(16px); } }
.lb-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; }
.lb-row + .lb-row { border-top: 1px solid rgba(255, 255, 255, .04); }
.lb-row.me { background: color-mix(in srgb, var(--cur, #22F5FF) 12%, transparent); }
.rk { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; font-family: var(--mono); color: var(--muted); }
.rk.m1 { background: linear-gradient(135deg, #ffe08a, #d9a024); color: #3a2800; box-shadow: 0 0 12px rgba(255, 209, 102, .45); }
.rk.m2 { background: linear-gradient(135deg, #f1f3f8, #a7adbd); color: #20232d; }
.rk.m3 { background: linear-gradient(135deg, #f0b98a, #b36b3a); color: #2c1606; }
.nm { min-width: 0; }
.nm b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc { font-family: var(--mono); font-weight: 800; font-size: 16px; color: #fff; }
.lb-msg { margin: 0; padding: 22px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.lb-msg:empty { display: none; }
.foot { margin-top: 26px; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #5f5d78; }

/* ---------- sayfa geçişi ---------- */
.warp { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; place-items: center; opacity: 0;
  clip-path: inset(var(--wt, 0) var(--wr, 0) var(--wb, 0) var(--wl, 0) round 20px); }
.warp.go { opacity: 1; clip-path: inset(0 0 0 0 round 0); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1), opacity .1s; pointer-events: auto; }
.warp-name { font-size: clamp(22px, 7vw, 40px); font-weight: 800; letter-spacing: .18em; color: #fff; opacity: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); transition: opacity .3s .2s; }
.warp.go .warp-name { opacity: 1; }

/* ---------- geniş ekran ---------- */
@media (min-width: 760px) {
  .wrap { padding-top: calc(26px + var(--sat)); }
  .top { grid-template-columns: 1fr auto auto; align-items: end; margin-bottom: 22px; }
  .top .nick-box { grid-column: 2; grid-row: 1; flex-direction: column; align-items: stretch; gap: 3px; }
  .top .icon-btn { grid-column: 3; grid-row: 1; }
  .top .nick-box .nick { width: 220px; flex: none; }
  .logo { font-size: 34px; }
  .mark { width: 48px; height: 48px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pv { height: 180px; }
  .cb { padding: 14px 18px 18px; }
  .c-name { font-size: 20px; }
  .c-desc { font-size: 14px; }
  .lb { margin-top: 38px; }
  .lb-row { padding: 11px 14px; }
}
@media (max-width: 359px) { .logo { font-size: 21px; letter-spacing: .1em; } .mark { width: 32px; height: 32px; } .c-stats { gap: 10px; } .play { min-width: 96px; padding: 0 14px; } }
@media (orientation: landscape) and (max-height: 500px) and (max-width: 759px) { .cards { grid-template-columns: 1fr 1fr; } .c-desc { display: none; } .pv { height: 90px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .card, .tab-ind, .warp-name { transition: none !important; }
  .warp.go { transition: none !important; }
}
