
.tb { position: sticky; top: 0; z-index: 40; --tb-h: 70px;
    --grad: linear-gradient(100deg, #ffd23f 0%, #49c6ff 48%, #ff7a2f 100%); --deep: #060c22; --panel: #111f4a;
  --text: #ffffff; --muted: #a3b2d6; --yellow: #ffd23f; --cyan: #49c6ff;
  --display: 'Anton', Impact, sans-serif; --body: 'Barlow', system-ui, sans-serif; font-family: var(--body); }
.tb-bar { position: relative; z-index: 2; background: rgba(6, 12, 34, 0); transition: background .35s ease, box-shadow .35s ease; }
.tb-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: 50% 50%; opacity: .7; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tb.is-scrolled .tb-bar, .tb.is-open .tb-bar { background: rgba(6, 12, 34, .9); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tb.is-scrolled .tb-bar::after, .tb.is-open .tb-bar::after { transform: scaleX(1); }
.tb-inner { width: min(1220px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 10px; height: var(--tb-h); transition: height .3s cubic-bezier(.2, .8, .2, 1); }

.tb-brand { display: flex; align-items: center; text-decoration: none; margin-right: 18px; flex: none; }
.tb-word { display: block; height: 40px; width: auto; opacity: .95; transition: opacity .2s; }
.tb-brand:hover .tb-word { opacity: 1; }

.tb-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tb-item { position: relative; }
.tb-link { position: relative; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-decoration: none;
  font: 400 17px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); transition: color .2s, background .2s; }
.tb-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.tb-link:hover, .tb-item.is-open > .tb-link { color: var(--text); }
.tb-link:hover::after, .tb-item.is-open > .tb-link::after { transform: scaleX(1); }
.tb-link:focus-visible, .tb-acct:focus-visible, .tb-burger:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tb-chev { width: 12px; height: 12px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.tb-item.is-open > button .tb-chev { transform: rotate(180deg); }

.tb-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.tb-acct { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 5px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer;
  font: 400 16px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; transition: background .2s; }
.tb-acct:hover, .tb-item.is-open > .tb-acct { background: rgba(255, 255, 255, .12); }
.tb-avatar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); }
.tb-avatar::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--grad); z-index: -1; opacity: 0; transition: opacity .3s; }
.tb-avatar { isolation: isolate; }
.tb-acct:hover .tb-avatar::before, .tb-item.is-open .tb-avatar::before { opacity: 1; }
.tb-avatar svg { width: 18px; height: 18px; }
.tb-acct-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb.is-member .tb-acct-label { text-transform: none; font: 600 15px/1 var(--body); letter-spacing: 0; }
.tb-drawer-name { margin: 0 0 12px; font: 400 22px/1.1 var(--display); letter-spacing: .03em; color: var(--text); }
.tb-wish { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; white-space: nowrap; text-decoration: none;
  font: 400 16px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--deep); }
.tb-wish::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: filter .15s, transform .15s; will-change: transform; }
.tb-wish > span { display: block; transition: transform .15s; will-change: transform; }
.tb-wish:hover::before { filter: brightness(1.08); transform: translateY(-2px); }
.tb-wish:hover > span { transform: translateY(-2px); }

.tb-panel { position: absolute; top: calc(100% + 12px); left: 0; min-width: 260px; padding: 10px; border-radius: 16px; background: rgba(13, 24, 60, .97); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 60px rgba(0, 0, 0, .55); visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 30px 0;
  transition: opacity .18s ease, transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s; }
.tb-panel::before { content: ""; position: absolute; top: -6px; left: 30px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(255, 255, 255, .07); border-radius: 2px; }
.tb-panel::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.tb-item.is-open > .tb-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.tb-panel.is-right { left: auto; right: 0; transform-origin: calc(100% - 30px) 0; }
.tb-panel.is-right::before { left: auto; right: 30px; }

.tb-item.is-open .tb-rise { animation: tb-rise .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }
@keyframes tb-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tb-kicker { display: block; padding: 6px 10px 8px; font: 700 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tb-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font: 600 15px var(--body); transition: background .18s, transform .18s; }
.tb-row:hover, .tb-row:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.tb-row:hover .tb-go { transform: translateX(3px); opacity: 1; }
.tb-row svg { width: 20px; height: 20px; flex: none; color: var(--cyan); }
.tb-row small { display: block; font: 500 12px var(--body); color: var(--muted); }
.tb-go { margin-left: auto; opacity: .45; transition: transform .2s, opacity .2s; }

.tb-games { display: grid; grid-template-columns: 300px 200px; gap: 8px; }
.tb-game { position: relative; display: block; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--deep); }
.tb-game::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.tb-game:hover::after, .tb-game:focus-visible::after { opacity: 1; }
.tb-game-art { display: block; aspect-ratio: 462 / 174; overflow: hidden; }
.tb-game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.tb-game:hover .tb-game-art img { transform: scale(1.06); }
.tb-game-text { display: block; padding: 12px 14px 14px; }
.tb-game-name { display: block; font: 400 22px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.tb-game-genre { display: block; margin-top: 4px; font: 600 13px var(--body); color: var(--muted); }
.tb-tags { display: flex; gap: 6px; margin-top: 10px; }
.tb-tag { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tb-tag.is-hot { background: rgba(255, 210, 63, .14); color: var(--yellow); }

.tb-community { display: grid; grid-template-columns: repeat(2, 200px); gap: 2px 6px; }
.tb-community .tb-kicker { grid-column: 1 / -1; }

.tb-account { width: 300px; padding: 16px; }
.tb-acct-title { margin: 0; font: 400 22px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.tb-acct-sub { margin: 6px 0 14px; font: 500 14px/1.45 var(--body); color: var(--muted); }
.tb-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; text-decoration: none; overflow: hidden;
  font: 400 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; transition: transform .2s, filter .2s, background .2s; }
.tb-btn + .tb-btn { margin-top: 8px; }
.tb-btn-main { background: var(--grad); color: var(--deep); }
.tb-btn-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-120%); }
.tb-btn-main:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.tb-btn-main:hover { transform: translateY(-1px); filter: brightness(1.06); }
.tb-btn-alt { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.tb-btn-alt:hover { background: rgba(255, 255, 255, .11); }
.tb-sep { height: 1px; margin: 14px 2px 8px; background: rgba(255, 255, 255, .08); }

.tb-scrim { position: fixed; inset: 0; z-index: 1; background: rgba(3, 6, 18, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.tb.is-open .tb-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

.tb-burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.tb-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.tb-burger span:nth-child(1) { top: 15px; } .tb-burger span:nth-child(2) { top: 21px; } .tb-burger span:nth-child(3) { top: 27px; }
.tb.is-drawer .tb-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tb.is-drawer .tb-burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.tb.is-drawer .tb-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.tb-drawer { position: fixed; top: var(--tb-h); right: 0; bottom: 0; z-index: 3; width: min(380px, 88vw); padding: 14px 18px 24px; overflow-y: auto; background: rgba(9, 18, 48, .98);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5); transform: translateX(104%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s; }
.tb.is-drawer .tb-drawer { transform: none; visibility: visible; transition-delay: 0s; }
.tb.is-drawer .tb-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
.tb-acc { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tb-acc > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 6px; border: 0; background: none; color: var(--text); cursor: pointer;
  font: 400 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tb-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2, .8, .2, 1); }
.tb-acc-body > div { overflow: hidden; }
.tb-acc.is-open .tb-acc-body { grid-template-rows: 1fr; }
.tb-acc.is-open > button .tb-chev { transform: rotate(180deg); }
.tb-drawer .tb-plain { display: block; padding: 16px 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--text); text-decoration: none; font: 400 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tb-drawer-acct { margin-top: 22px; }
.tb-drawer .tb-game { margin: 4px 0 10px; }

@media (max-width: 1020px) {
  .tb-nav, .tb-account-item { display: none; }
  .tb-burger { display: block; }
}
@media (max-width: 520px) {
  .tb-word { height: 32px; }
  .tb-wish { padding: 10px 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb *, .tb *::before, .tb *::after { transition-duration: 1ms !important; animation: none !important; }
}
