/* =====================================================================
   OYUN MERKEZİ v2 — oyun merkezi, açık lobiler, lobi sayfası, lobi kur / kodla katıl,
   arkadaş paneli. Altın çerçeveli koyu lacivert, serif başlıklar (Cinzel, kendi sunucumuzda).
   ===================================================================== */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('../assets/fonts/cinzel-latin-ext.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+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('../assets/fonts/cinzel-latin.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; }

:root { --hb-gold: #f2c14e; --hb-gold2: #c8891f; --hb-line: rgba(242, 193, 78, .55); --hb-navy: #0a1430; --hb-navy2: #101d44; --hb-teal: #2ec4b6; --hb-blue: #2f6fe0; --hb-text: #e9eefc; --hb-muted: #93a3c9; }
.game-hub .home { background: linear-gradient(180deg, rgba(6, 11, 28, .25), rgba(6, 11, 28, .85) 55%, #060b1c), url('../assets/backgrounds/hub.webp') center top / cover no-repeat fixed, #060b1c; }
.hb { max-width: 1480px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 40px) 40px; color: var(--hb-text); }

/* ---- başlık alanı */
.hb-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 6px 0 22px; }
.hb-kicker { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .14em; font-size: 13px; color: #c9d4f2; }
.hb-kicker::after { content: ''; width: 54px; height: 1px; background: var(--hb-line); }
.hb-kicker a { color: inherit; text-decoration: none; } .hb-kicker a:hover { color: var(--hb-gold); }
.hb-h1 { font-family: 'Cinzel', 'Exo 2', serif; font-weight: 800; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.05; margin: 8px 0 6px; color: #f4f1ea; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 24px rgba(0,0,0,.6); }
.hb-h1 span { color: var(--hb-gold); background: linear-gradient(180deg, #ffe08a, #e0a133); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }
.hb-deco { display: flex; align-items: center; gap: 12px; color: #dfe6f8; font-style: italic; font-size: clamp(14px, 1.4vw, 19px); }
.hb-deco i { flex: 0 0 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--hb-gold)); position: relative; }
.hb-deco i:last-child { background: linear-gradient(90deg, var(--hb-gold), transparent); }
.hb-deco i::after { content: ''; position: absolute; top: -4px; width: 7px; height: 7px; border: 1.5px solid var(--hb-gold); transform: rotate(45deg); right: -4px; }
.hb-deco i:last-child::after { right: auto; left: -4px; }
.hb-back { display: inline-flex; align-items: center; gap: 8px; color: #dfe6f8; text-decoration: none; font-weight: 700; } .hb-back:hover { color: var(--hb-gold); }
.hb-vis { color: #6ee7b7; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }

/* ---- düğmeler */
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px; color: #fff; white-space: nowrap; transition: transform .12s, filter .12s, box-shadow .12s; }
.hb-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); } .hb-btn:active:not(:disabled) { transform: translateY(1px); }
.hb-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.hb-btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; } .hb-btn.lg { padding: 13px 26px; font-size: 18px; border-radius: 12px; }
.hb-btn.gold { color: #2a1700; background: linear-gradient(180deg, #ffe08a, #f2b636 55%, #d48d1c); border-color: #ffe9a8; box-shadow: 0 4px 0 #8a5510, 0 8px 18px rgba(242, 182, 54, .35), inset 0 1px 0 rgba(255,255,255,.6); }
.hb-btn.blue { background: linear-gradient(180deg, #4d8bff, #2a5fd6 60%, #1d47ab); border-color: #8db4ff; box-shadow: 0 4px 0 #10306f, 0 8px 18px rgba(47, 111, 224, .35), inset 0 1px 0 rgba(255,255,255,.35); }
.hb-btn.red { background: linear-gradient(180deg, #e2475f, #b3203c 60%, #8c1530); border-color: #ff9aa9; box-shadow: 0 4px 0 #5c0b1d, inset 0 1px 0 rgba(255,255,255,.3); }
.hb-btn.ghost { background: linear-gradient(180deg, #1b2b5c, #122048); border-color: rgba(141, 180, 255, .45); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.hb-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .hb-row.end { justify-content: flex-end; margin-top: auto; } .hb-row.center { justify-content: center; }

/* ---- seçili deste */
.hb-deck { min-width: min(560px, 100%); padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(16, 29, 68, .92), rgba(9, 17, 42, .92)); border: 1px solid var(--hb-line); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04); }
.hb-deck-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .hb-deck-h small { display: block; color: var(--hb-muted); font-size: 12px; }
.hb-deck-h b { font-size: 18px; } .hb-ok { font-style: normal; color: #4ade80; font-size: 12px; font-weight: 800; margin-left: 6px; }
.hb-deck-p { display: flex; gap: 6px; margin-top: 10px; } .hb-deck-p > * { flex: 1; min-width: 0; }

/* ---- mod kartları */
.hb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 880px) { .hb-modes { grid-template-columns: 1fr; } }
.hb-mode { position: relative; overflow: hidden; min-height: 300px; padding: 26px 28px; border-radius: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--art) right center / auto 100% no-repeat, linear-gradient(90deg, #0b1530 35%, #13234d); box-shadow: 0 18px 40px rgba(0,0,0,.5); isolation: isolate; }
.hb-mode::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 14, 34, .96) 22%, rgba(8, 14, 34, .55) 50%, transparent 75%); }
.hb-mode::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 2px solid; }
.hb-mode.quick::after { border-color: #f2c14e; box-shadow: inset 0 0 30px rgba(242, 193, 78, .25), 0 0 26px rgba(242, 193, 78, .35); }
.hb-mode.bots::after { border-color: #2ec4b6; box-shadow: inset 0 0 30px rgba(46, 196, 182, .2), 0 0 22px rgba(46, 196, 182, .25); }
.hb-ic { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; font-size: 30px; }
.hb-ic svg { width: 32px; height: 32px; }
.quick .hb-ic { color: #ffd166; background: rgba(60, 38, 8, .7); border: 2px solid #c8891f; }
.bots .hb-ic { color: #5eead4; background: rgba(6, 50, 50, .7); border: 2px solid #2ec4b6; }
.hb-mode h2 { font-family: 'Cinzel', 'Exo 2', serif; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); margin: 0; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.5); }
.quick h2 { background: linear-gradient(180deg, #ffe7a0, #f0b43b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bots h2 { background: linear-gradient(180deg, #a7f3d0, #34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hb-mode-sub { margin: 4px 0 0; font-size: 20px; color: #e5ebfa; font-weight: 600; }
.hb-mode .hb-row { margin-top: auto; }
.hb-note { font-size: 13px; color: var(--hb-muted); margin: 4px 0 auto; padding-bottom: 14px; max-width: 55%; }
@media (max-width: 560px) { .hb-note { max-width: 100%; } .hb-mode { min-height: 260px; background-size: auto 70%; background-position: right bottom; } }

/* ---- alt kısayollar */
.hb-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 30px 0 10px; flex-wrap: wrap; }
.hb-line { flex: 1 1 60px; max-width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--hb-gold)); position: relative; }
.hb-line:last-child { background: linear-gradient(90deg, var(--hb-gold), transparent); }
.hb-line::after { content: ''; position: absolute; top: -5px; right: -5px; width: 9px; height: 9px; border: 1.5px solid var(--hb-gold); transform: rotate(45deg); background: #0a1430; }
.hb-line:last-child::after { right: auto; left: -5px; }
.hb-tile { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: 250px; padding: 16px 26px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800; font-size: 21px; color: #fff;
  background: linear-gradient(180deg, rgba(27, 43, 92, .95), rgba(14, 24, 54, .95)); border: 1px solid rgba(141, 180, 255, .45); box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1); transition: transform .12s, border-color .12s; }
.hb-tile:hover { transform: translateY(-2px); border-color: var(--hb-gold); }
.hb-tile svg { width: 26px; height: 26px; color: #9cc0ff; }
@media (max-width: 860px) { .hb-tile { min-width: 0; flex: 1 1 200px; font-size: 17px; padding: 13px 16px; } .hb-line { display: none; } }
.hb-live { text-align: center; color: var(--hb-muted); font-size: 13px; } .hb-live b { color: #fff; }

/* ---- panel (lobi listesi, lobi) */
.hb-panel { position: relative; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(13, 24, 56, .94), rgba(8, 15, 38, .96)); border: 2px solid var(--hb-line); box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 40px rgba(242, 193, 78, .06); }
.hb-panel.teal { border-color: rgba(46, 196, 182, .6); box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 40px rgba(46, 196, 182, .06); display: flex; flex-direction: column; }
.hb-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hb-search { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 460px; padding: 10px 14px; border-radius: 10px; background: #0a1430; border: 1px solid rgba(141, 180, 255, .4); color: var(--hb-muted); }
.hb-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; }
.hb-sep { width: 1px; height: 30px; background: var(--hb-line); } .hb-sep.grow { margin-left: auto; }
.hb-chip { padding: 9px 22px; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 800; color: #e5ebfa; background: #14224c; border: 1px solid rgba(141, 180, 255, .4); }
.hb-chip.on { color: #2a1700; background: linear-gradient(180deg, #ffe08a, #f2b636); border-color: #ffe9a8; }
.hb-table { border-radius: 12px; overflow: hidden; border: 1px solid rgba(141, 180, 255, .2); }
.hb-tr { display: grid; grid-template-columns: 2.2fr 1fr 1.6fr .9fr 1fr 150px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.hb-tr:nth-child(even) { background: rgba(255,255,255,.02); }
.hb-th { border-top: 0; background: #0d1a3d; color: #c9d4f2; font-weight: 700; font-size: 14px; }
.hb-tr.closed { opacity: .65; }
.hb-lname { display: flex; align-items: center; gap: 12px; min-width: 0; } .hb-lname img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hb-line); flex: 0 0 auto; }
.hb-lname b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-host, .hb-time, .hb-cnt { display: flex; align-items: center; gap: 6px; color: #dfe6f8; }
.hb-dots { display: inline-flex; gap: 3px; margin-left: 8px; } .hb-dots i { width: 12px; height: 7px; border-radius: 2px; background: #2a3a66; } .hb-dots i.on { background: linear-gradient(180deg, #ffe08a, #e0a133); }
.hb-st { font-style: normal; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.hb-st::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.hb-st.open { color: #4ade80; } .hb-st.open::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.hb-st.full { color: #f87171; } .hb-st.full::before { background: #f87171; }
.hb-st.game { color: #fbbf24; } .hb-st.game::before { background: #fbbf24; }
.hb-foot { display: flex; justify-content: space-between; margin-top: 12px; color: #c9d4f2; font-size: 14px; } .hb-foot span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .hb-th { display: none; } .hb-tr { grid-template-columns: 1fr auto; } .hb-tr > span:nth-child(2), .hb-tr > span:nth-child(4) { display: none; } .hb-dots { display: none; } }

/* ---- lobi sayfası */
.hb-lobby { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 980px) { .hb-lobby { grid-template-columns: 1fr; } }
.hb-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--hb-gold); }
.hb-ph h2 { margin: 0; font-family: 'Cinzel', 'Exo 2', serif; font-size: 26px; color: #ffd56b; }
.hb-ph svg { width: 26px; height: 26px; } .hb-ph b { margin-left: auto; font-size: 22px; color: #fff; }
.hb-pl { flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, var(--hb-gold), transparent); }
.teal .hb-ph { color: var(--hb-teal); } .teal .hb-ph h2 { color: #ffd56b; }
.hb-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 620px) { .hb-slots { grid-template-columns: repeat(2, 1fr); } }
.hb-slot { position: relative; min-height: 140px; border-radius: 12px; border: 1.5px dashed rgba(141, 180, 255, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; color: #dfe6f8; }
.hb-slot .ui-img { width: 46px; height: 46px; opacity: .85; } .hb-slot b { font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-slot.on { border: 2px solid rgba(141, 180, 255, .45); background: linear-gradient(180deg, rgba(27, 43, 92, .6), rgba(14, 24, 54, .6)); }
.hb-slot.me { border-color: var(--hb-gold); box-shadow: 0 0 18px rgba(242, 193, 78, .3); }
.hb-slot.off { opacity: .6; }
.hb-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #2a1700; background: linear-gradient(180deg, #ffe08a, #e0a133); border: 2px solid #fff3c4; }
.hb-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.hb-tags em { font-style: normal; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 4px; }
.t-host { color: #2a1700; background: linear-gradient(180deg, #ffe08a, #e0a133); } .t-me { color: #04263a; background: #5ec8ff; } .t-off { color: #fbbf24; background: rgba(251, 191, 36, .15); }
.hb-kick { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.3); color: #fca5a5; cursor: pointer; }
.hb-set { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.hb-set label { display: grid; grid-template-columns: 26px 1fr 1.4fr; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 16px; }
.hb-set label > svg { width: 22px; height: 22px; color: #c9d4f2; }
.hb-set input, .hb-set select, .hb-form input, .hb-form select { width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 10px; background: #0a1430; border: 1px solid rgba(141, 180, 255, .45); color: #fff; font: inherit; font-size: 16px; font-weight: 700; }
.hb-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; border-radius: 14px; background: rgba(9, 17, 42, .85); border: 1px solid rgba(141, 180, 255, .35); }
.hb-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(141, 180, 255, .35); color: #9cc0ff; min-width: 0; flex: 1 1 240px; }
.hb-link input { background: none; border: 0; outline: 0; color: #fff; font: inherit; width: 100%; min-width: 0; }
.hb-code { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 800; font-size: 20px; color: var(--hb-gold); background: #0a1430; border: 1px solid var(--hb-line); }
.hb-count { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: rgba(9, 17, 42, .85); border: 1px solid var(--hb-line); font-size: 16px; }
.hb-count b { font-size: 34px; color: var(--hb-gold); }

/* ---- pencereler: lobi kur, kodla katıl */
.modal-box.hb-mbox { max-width: min(640px, 94vw) !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.hb-modal { position: relative; padding: 22px 34px 26px; border-radius: 18px; background: linear-gradient(180deg, #101d44, #0a1430); border: 2px solid var(--hb-gold); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 24px 60px rgba(0,0,0,.7), inset 0 0 40px rgba(242, 193, 78, .08); text-align: left; }
.hb-modal::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: -2px; height: 3px; background: linear-gradient(90deg, transparent, #ffe08a, transparent); }
.hb-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: none; color: #fff; cursor: pointer; } .hb-x svg { width: 24px; height: 24px; }
.hb-mh { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 6px; font-family: 'Cinzel', 'Exo 2', serif; font-size: 32px; color: #f4f1ea; }
.hb-mh span { display: inline-flex; align-items: center; gap: 12px; } .hb-mh svg { width: 34px; height: 34px; color: var(--hb-gold); }
.hb-ml { flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--hb-gold)); position: relative; } .hb-ml.r { background: linear-gradient(90deg, var(--hb-gold), transparent); }
.hb-ml::after { content: ''; position: absolute; top: -4px; right: -4px; width: 7px; height: 7px; border: 1.5px solid var(--hb-gold); transform: rotate(45deg); } .hb-ml.r::after { right: auto; left: -4px; }
.hb-msub { text-align: center; font-style: italic; color: #dfe6f8; margin: 0 0 16px; } .hb-msub.sm { font-style: normal; color: var(--hb-muted); font-size: 14px; margin: 10px 0 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.hb-form { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hb-form label, .hb-frow { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; font-weight: 800; font-size: 17px; }
@media (max-width: 560px) { .hb-form label, .hb-frow { grid-template-columns: 1fr; gap: 6px; } .hb-modal { padding: 20px 16px; } }
.hb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hb-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 800; color: #fff; background: #0a1430; border: 1px solid rgba(141, 180, 255, .45); }
.hb-seg button.on { color: #2a1700; background: linear-gradient(180deg, #ffe08a, #f2b636); border-color: #ffe9a8; }
.hb-otp { display: flex; justify-content: center; gap: 14px; margin: 18px 0 4px; }
.hb-otp input { width: 66px; height: 74px; text-align: center; font: inherit; font-weight: 800; font-size: 34px; color: #fff; background: #0a1430; border: 2px solid rgba(141, 180, 255, .5); border-radius: 12px; outline: 0; text-transform: uppercase; }
.hb-otp input:focus { border-color: #5ec8ff; box-shadow: 0 0 0 3px rgba(94, 200, 255, .25); }
@media (max-width: 480px) { .hb-otp { gap: 8px; } .hb-otp input { width: 48px; height: 58px; font-size: 26px; } }

/* ---- arkadaş paneli */
.g-fr { position: relative; width: 46px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #dfe6f8; background: #14224c; border: 1px solid rgba(141, 180, 255, .4); }
.g-fr svg { width: 22px; height: 22px; } .g-fr.on { border-color: var(--hb-gold); color: var(--hb-gold); }
.g-fr-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--hb-gold); color: #2a1700; font: 800 11px/18px 'Exo 2', sans-serif; font-style: normal; }
.fr-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100vw); display: flex; flex-direction: column; gap: 12px; padding: 18px; box-sizing: border-box;
  background: linear-gradient(180deg, #0f1c42, #091330); border-left: 2px solid var(--hb-line); box-shadow: -20px 0 50px rgba(0,0,0,.55); transform: translateX(105%); transition: transform .22s ease-out; color: var(--hb-text); }
.fr-drawer.in { transform: none; }
.fr-dh { display: flex; align-items: center; gap: 12px; } .fr-dh svg { width: 28px; height: 28px; color: #c9d4f2; } .fr-dh h2 { margin: 0; font-family: 'Cinzel', 'Exo 2', serif; font-size: 26px; }
.fr-dx { margin-left: auto; width: 36px; height: 36px; border: 0; background: none; color: #fff; cursor: pointer; } .fr-dx svg { width: 26px; height: 26px; }
.fr-drawer .fr-add { display: flex; gap: 8px; margin: 0; } .fr-drawer .fr-add input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; background: #0a1430; color: #fff; border: 1px solid rgba(141, 180, 255, .45); font: inherit; }
.fr-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #0a1430; border: 1px solid rgba(141, 180, 255, .3); }
.fr-tabs button { padding: 9px; border-radius: 9px; border: 1px solid transparent; background: none; color: #dfe6f8; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.fr-tabs button.on { border-color: var(--hb-gold); background: linear-gradient(180deg, rgba(242, 193, 78, .18), rgba(242, 193, 78, .05)); }
.fr-tn { font-style: normal; min-width: 20px; height: 20px; border-radius: 99px; background: var(--hb-gold); color: #2a1700; font-size: 12px; line-height: 20px; }
.fr-dbody { flex: 1; overflow-y: auto; }
.fr-drawer .fr-h { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #c9d4f2; }
.fr-drawer .fr-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hb-line), transparent); } .fr-drawer .fr-h.on { color: #ffd56b; }
.fr-drawer .fr-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; background: none; margin: 0; }
.fr-drawer .fr-row:hover { background: rgba(255,255,255,.04); } .fr-drawer .fr-row.off { opacity: .7; }
.fr-drawer .fr-av { width: 52px; height: 52px; border-radius: 10px; font-size: 20px; }
.fr-drawer .fr-n b { font-size: 17px; } .fr-drawer .fr-n small { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.fr-drawer .fr-dot { width: 9px; height: 9px; display: inline-block; }
.fr-inv-b { display: inline-flex; align-items: center; gap: 1px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(141, 180, 255, .45); background: #1b2b5c; color: #dfe6f8; cursor: pointer; }
.fr-inv-b svg { width: 16px; height: 16px; } .fr-inv-b svg:first-child { width: 11px; height: 11px; }
.fr-inv-b:disabled { opacity: .4; cursor: not-allowed; }
.fr-dfoot { display: flex; align-items: center; gap: 10px; margin: 0; color: #c9d4f2; font-style: italic; font-size: 14px; justify-content: center; }
.fr-dfoot i { flex: 0 1 50px; height: 1px; background: var(--hb-line); }
.hb-titles { flex: 1 1 420px; }
.hb-deck { flex: 0 1 620px; min-width: 0; }
.hb-deck-p { justify-content: space-between; }
.hb-deck-p > * { flex: 0 0 auto; width: clamp(40px, 3.6vw, 62px); height: clamp(40px, 3.6vw, 62px); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.04); }
.hb-deck-p img { width: 100%; height: 100%; object-fit: contain; }
.modal-box.hb-mbox { width: min(640px, 94vw) !important; overflow: visible !important; }
.hb-seg button { white-space: nowrap; font-size: 15px; }
/* ---- telefon (yatay, kısa ekran) */
@media (max-width: 980px) { .g-tabs a span { display: none; } .g-tabs a { padding: 8px 11px; } }
@media (max-height: 520px) {
  .hb { padding: 8px 12px 20px; }
  .hb-hero { margin: 0 0 10px; gap: 10px; align-items: center; }
  .hb-h1 { font-size: 26px; margin: 2px 0; } .hb-kicker { font-size: 11px; } .hb-deco { font-size: 13px; }
  .hb-deck { padding: 8px 10px; } .hb-deck-h b { font-size: 15px; } .hb-deck-p { margin-top: 6px; } .hb-deck-p > * { width: 34px; height: 34px; }
  .hb-modes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hb-mode { min-height: 170px; padding: 14px 16px; } .hb-ic { width: 40px; height: 40px; margin-bottom: 4px; } .hb-ic svg { width: 22px; height: 22px; }
  .hb-mode h2 { font-size: 24px; } .hb-mode-sub { font-size: 14px; } .hb-note { display: none; } .hb-mode .hb-btn.lg { padding: 9px 16px; font-size: 15px; margin-top: auto; }
  .hb-actions { margin: 12px 0 4px; gap: 10px; } .hb-tile { padding: 9px 12px; font-size: 15px; } .hb-tile svg { width: 20px; height: 20px; }
  .hb-lobby { grid-template-columns: 1.4fr 1fr; gap: 12px; } .hb-slot { min-height: 84px; } .hb-av { width: 36px; height: 36px; font-size: 16px; } .hb-slots { gap: 8px; }
  .hb-ph h2 { font-size: 20px; } .hb-set label { padding: 6px 0; font-size: 14px; } .hb-btn.lg { padding: 9px 16px; font-size: 15px; }
  .hb-modal { padding: 14px 18px; } .hb-mh { font-size: 24px; } .hb-form { gap: 8px; } .hb-otp input { width: 50px; height: 56px; font-size: 26px; }
}

.lb-chip { position: fixed; left: 12px; bottom: 12px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; color: #e9eefc; background: linear-gradient(180deg, #16234d, #0b1330); border: 2px solid var(--hb-gold); box-shadow: 0 10px 26px rgba(0,0,0,.55); }
.lb-chip b { color: #2a1700; background: linear-gradient(180deg, #ffe08a, #f2b636); padding: 4px 10px; border-radius: 8px; }
.fr-drawer { height: auto; }
body:has(#opening:not([hidden])) .lb-chip, body:has(#modal:not([hidden])) .lb-chip { display: none; }

/* dar ekran (dikey telefon): mod kartında yazı resmin üstüne binmesin */
@media (max-width: 560px) {
  .hb-mode { min-height: 230px; background-size: cover; background-position: center; }
  .hb-mode::before { background: linear-gradient(180deg, rgba(8, 14, 34, .94) 0, rgba(8, 14, 34, .6) 38%, rgba(8, 14, 34, .15) 62%, rgba(8, 14, 34, .7) 100%); }
  .hb-mode h2 { font-size: 30px; } .hb-mode-sub { font-size: 16px; } .hb-note { display: none; }
  .hb-mode .hb-btn.lg { margin-top: auto; }
  .hb-mode { min-height: 200px; padding: 20px 18px 18px; gap: 4px; }
  .hb-mode .hb-row { margin-top: auto; flex-wrap: wrap; gap: 8px; }
  .hb-mode .hb-row .hb-btn.lg { margin-top: 0; }
  .hb-mh { font-size: 26px; gap: 8px; } .hb-ml { display: none; }
  .lb-chip { left: 8px; bottom: 8px; padding: 7px 10px; font-size: 13px; }
}
/* kısa ekran: lobi kur / kodla katıl penceresi her zaman sığar, gerekirse kaydırılır */
@media (max-height: 520px) {
  .modal-box.hb-mbox { max-height: calc(100vh - 16px) !important; overflow-y: auto !important; }
  .hb-modal { padding: 10px 18px 12px; } .hb-mh { font-size: 22px; margin: 0; } .hb-mh svg { width: 24px; height: 24px; }
  .hb-msub { margin: 0 0 8px; font-size: 13px; } .hb-msub.sm { margin: 6px 0 8px; }
  .hb-form { gap: 6px; padding-bottom: 8px; } .hb-form label, .hb-frow { font-size: 14px; grid-template-columns: 120px 1fr; }
  .hb-form input, .hb-form select { padding: 7px 10px; font-size: 14px; } .hb-seg button { padding: 7px; font-size: 13px; }
  .hb-modal .hb-btn.lg { padding: 9px 18px; font-size: 15px; }
}
/* dikey telefon: oyun üst çubuğunda dört sekme, Mana ve hesap birlikte sığar */
@media (max-width: 480px) {
  .g-top { gap: 6px !important; padding: 6px !important; }
  .g-logo img { height: 30px !important; }
  .g-tabs { gap: 2px; padding: 3px; flex: 0 1 auto; min-width: 0; }
  .g-tabs a { padding: 7px 8px !important; } .g-tabs a svg { width: 18px; height: 18px; }
  .g-right { gap: 5px; } .g-cur { padding: 4px 7px; font-size: 13px; } .g-cur .ic { width: 16px; height: 16px; }
  .g-fr { width: 36px; height: 36px; } .g-top .acc-caret { display: none; }
}
