/* One classic shell across every section, aligned to the Blogs reference. */
body.classic166,body.classic166.page-blogs{background:linear-gradient(#7eb1cf 0,#b5d1df 180px,#e1e9ed 330px,#f7fafb 1000px)!important;background-attachment:fixed!important;color:#5d5d5d!important}
/* The header scrolls with the document; relative positioning keeps its menus anchored. */
body.classic166 #tg-shell{position:relative!important;top:auto!important}

/* Match the visible width of the original Blogs wordmark. */
@media(min-width:1001px){
 body.classic166 #tg-shell:not([hidden]) .tg-shell-logo{
  width:230px!important;
  flex-basis:230px!important;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-logo .new-wordmark455{
  width:190px!important;
  height:55px!important;
 }
 body.classic166 #tg-shell .new-wordmark455 img[src$='/tenga-net-20261125.png']{
  padding-right:32px;
 }
}
body.classic166>.wrap,body.classic166>.page{box-sizing:border-box!important;width:981px!important;max-width:calc(100% - 24px)!important;margin:0 auto!important;padding:0!important;background:transparent!important}
body.classic166>.wrap>main,body.classic166>.page>main{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:16px!important;border-left:1px solid #e3eff6!important;border-bottom:1px solid #eff6fa!important;border-radius:16px 0 0 0!important;background:white!important;box-shadow:none!important;min-width:0}
body.classic166 .community-footer{box-sizing:border-box;max-width:981px!important;margin-left:auto!important;margin-right:auto!important;padding:12px!important}
body.classic166 #tg-shell .tg-menu-panel{z-index:2000!important;background:#fff!important;box-shadow:0 4px 15px #50677840!important;border:1px solid #d9e6ee!important;overflow:auto!important}
body.classic166 #tg-shell .tg-menu-panel a{min-height:30px;display:block;padding:5px 10px!important;color:#4682b4!important}
body.classic166 #tg-shell .tg-account-menu:not(.has-avatar) summary{min-width:26px;min-height:30px}
body.classic166 #tg-shell .tg-menu-panel a[aria-current=page]{color:#ff536d!important;background:#f7fafc!important}
@media(max-width:760px){body.classic166>.wrap,body.classic166>.page{width:calc(100% - 16px)!important;max-width:none!important}body.classic166>.wrap>main,body.classic166>.page>main{padding:12px!important}}
body.classic166 #tg-shell{width:981px!important;max-width:calc(100% - 24px)!important;margin:0 auto!important;background:none!important;min-height:50px!important;padding:0!important;border:0!important}
body.classic166 #tg-shell .tg-community-strip,body.classic166 #tg-shell .tg-header-games{display:none!important}
body.classic166 #tg-shell .tg-shell-top{display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:0!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:50px!important;min-height:50px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.classic166 #tg-shell .tg-shell-logo{display:flex!important;align-items:flex-start!important;align-self:flex-start!important;flex:0 0 230px!important;width:230px!important;height:50px!important;padding:0!important;margin:0!important;font-size:0!important;line-height:0!important;background:none!important;border:0!important;text-shadow:none!important;transform:none!important}
body.classic166 #tg-shell .tg-shell-logo:before,body.classic166 #tg-shell .tg-shell-logo:after{display:none!important}
body.classic166 #tg-shell .tg-shell-logo .blogs-tv162{display:block;width:40px!important;height:43px!important;max-width:none!important;margin:0!important}
body.classic166 #tg-shell .tg-shell-logo .blogs-logo162{display:block;width:190px!important;height:55px!important;max-width:none!important;margin:0!important}
body.classic166 #tg-shell .tg-shell-nav{display:flex!important;position:static!important;flex:0 1 auto!important;flex-wrap:nowrap!important;align-items:flex-end!important;justify-content:flex-end!important;gap:2px!important;width:auto!important;max-width:none!important;min-width:0!important;height:30px!important;margin:20px 0 0 auto!important;padding:0!important;overflow:visible!important;transform:none!important;background:none!important}
body.classic166 #tg-shell .tg-shell-nav a{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-width:0!important;min-height:30px!important;height:30px!important;padding:6px 7px 8px!important;margin:0!important;border:0!important;border-right:1px solid #93a3b6!important;border-radius:6px 6px 0 0!important;box-shadow:none!important;background:#d2dbe8!important;color:#49759a!important;text-shadow:0 1px 1px #fcfcfc!important;font:bold 14px/16px Arial!important;white-space:nowrap!important}
body.classic166 #tg-shell .tg-shell-nav a[aria-current=page]{color:#ff536d!important;background:white!important}
body.classic166 #tg-shell .tg-shell-nav a[data-section=home],body.classic166 #tg-shell .tg-shell-nav a[data-section=hall-of-fame],body.classic166 #tg-shell .tg-shell-nav a[hidden]{display:none!important}
body.classic166 #tg-shell [data-section=blogs]{order:1}body.classic166 #tg-shell [data-section=groups]{order:2}body.classic166 #tg-shell [data-section=designs]{order:3}body.classic166 #tg-shell [data-section=shop]{order:4}body.classic166 #tg-shell [data-section=mafias]{order:5}body.classic166 #tg-shell [data-section=minijuegos]{order:6}body.classic166 #tg-shell [data-section=games]{order:7}
body.classic166 #tg-shell .tg-tab-icon{width:13px!important;height:13px!important;margin:0 3px 0 0!important;flex:0 0 13px!important}body.classic166 #tg-shell .tg-tab-icon svg{width:13px!important;height:13px!important}
body.classic166 #tg-shell .tg-account-menu{position:relative!important;align-self:flex-end!important;margin:0 0 0 4px!important;flex:none!important}
body.classic166 #tg-shell .tg-account-menu:not(.has-avatar){display:block!important}
body.classic166 #tg-shell .tg-menu-panel{left:auto!important;right:0!important;top:100%!important}
@media(max-width:1000px){body.classic166 #tg-shell{width:calc(100% - 16px)!important;max-width:none!important}body.classic166 #tg-shell .tg-shell-top{height:auto!important;min-height:50px!important;flex-wrap:wrap!important;align-items:center!important}body.classic166 #tg-shell .tg-shell-logo{order:0;flex:0 0 230px!important}body.classic166 #tg-shell .tg-account-menu{order:1;margin-left:auto!important;align-self:center!important}body.classic166 #tg-shell .tg-shell-nav{order:2;flex:1 1 100%!important;flex-wrap:wrap!important;justify-content:flex-start!important;width:100%!important;height:auto!important;min-height:30px!important;margin:0!important;gap:2px!important;padding-bottom:3px!important}body.classic166 #tg-shell .tg-shell-nav a{flex:1 0 auto!important;font-size:12px!important;min-height:34px!important;height:34px!important;padding:6px!important;border-radius:4px 4px 0 0!important}body.classic166 #tg-shell .tg-menu-panel{position:absolute!important;width:230px!important;max-width:calc(100vw - 32px)!important;max-height:65vh!important}}

body.classic166 .tg-skip{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}body.classic166 .tg-skip:focus{left:8px!important;top:8px!important;width:auto!important;height:auto!important;z-index:9999;background:white;padding:8px}

body.classic166 .casting-system-notice{background:#fffbe1!important;border:1px solid #eee4bd!important;color:#746c46}body.classic166 .casting-system-notice .arena-event-body{display:block!important;text-align:left!important;padding:8px}

body.classic166 #tg-shell .tg-shell-nav a[data-section=shop],body.classic166 #tg-shell .tg-shell-nav a[data-section=minijuegos]{display:flex!important}body.classic166 #tg-shell .tg-shell-nav a.blogs-auth162{display:none!important}

/* Promotional GIFs are shown only after confirming a guest session. */
body.classic166:not(.session-ready168) .profile-classic-banner,body.classic166.authenticated168 .profile-classic-banner,body.classic166:not(.session-ready168) #blogPromo,body.classic166.authenticated168 #blogPromo{display:none!important}
body.classic166 .user-color168{display:inline-block!important;width:10px!important;height:10px!important;min-width:10px!important;margin:0 3px 0 0!important;padding:0!important;border:1px solid #b9c9d3;box-sizing:border-box;vertical-align:baseline;background-size:100% 100%!important;pointer-events:none}
body.classic166 a.user-mention168{white-space:normal;overflow-wrap:anywhere}

/* Active games remain in normal flow: one link per line on every screen. */
body.classic166 #tg-shell .tg-shell-top{height:auto!important;flex-wrap:wrap!important}
body.classic166 #tg-shell #tg-header-games{display:flex!important;position:static!important;order:3!important;flex:1 0 100%!important;flex-flow:column nowrap!important;align-items:flex-end!important;justify-content:flex-start!important;gap:2px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:3px 0!important;padding:0!important}
body.classic166 #tg-shell #tg-header-games[hidden]{display:none!important}
body.classic166 #tg-shell #tg-header-games>a{display:block!important;box-sizing:border-box!important;width:140px!important;max-width:100%!important;min-height:28px!important;flex:none!important;padding:6px 9px!important;background:#f5f8fa!important;border-left:3px solid #b6d0df!important;color:#49759a!important;font:12px/16px Arial!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.classic166 #tg-shell #tg-header-games>a:focus-visible{outline:2px solid #49759a;outline-offset:1px}

@media(min-width:1320px){body.classic166 #tg-shell #tg-header-games{position:absolute!important;left:var(--active-games-left,100%)!important;right:auto!important;top:100%!important;width:140px!important;max-width:140px!important;margin:0!important}}
/* Sin hueco a la derecha de la pagina, los juegos van en fila y no empujan el contenido. */
@media(max-width:1319px){body.classic166 #tg-shell #tg-header-games{flex-flow:row wrap!important;justify-content:flex-end!important;align-items:stretch!important}body.classic166 #tg-shell #tg-header-games>a{width:auto!important;white-space:nowrap!important;overflow-wrap:normal!important}}


/* Keep the original TV and leave room for navigation at narrower widths. */
body.classic166 #tg-shell{background:linear-gradient(#7eb1cf 0,#b5d1df 180px,#e1e9ed 330px,#f7fafb 1000px)!important;background-attachment:fixed!important}
body.classic166 #tg-shell .tg-shell-logo{flex-basis:285px!important;width:285px!important}
body.classic166 #tg-shell .tg-shell-logo .blogs-logo162{width:245px!important;height:auto!important}
body.classic166 #tg-shell .tg-shell-logo .blogs-tv162{flex:0 0 40px!important}
@media(max-width:1120px){
 body.classic166 #tg-shell .tg-shell-logo{flex-basis:250px!important;width:250px!important}
 body.classic166 #tg-shell .tg-shell-logo .blogs-logo162{width:210px!important}
}
@media(max-width:380px){
 body.classic166 #tg-shell .tg-shell-logo{flex-basis:222px!important;width:222px!important}
 body.classic166 #tg-shell .tg-shell-logo .blogs-logo162{width:182px!important}
}

/* The supplied PNG has transparent margins. Scale its visible lettering
   to the old wordmark height while keeping the original navigation slot. */
body.classic166 #tg-shell .tg-shell-logo .new-wordmark455{
 position:relative;aspect-ratio:795/165;overflow:hidden;flex:none
}
body.classic166 #tg-shell .tg-shell-logo .new-wordmark455 img{
 display:block;position:absolute;left:-6.26%;top:0;width:68%;height:auto;
 max-width:none;margin:0;transform:none
}

/* Reserve the wordmark box even before either image decodes. */
body.classic166 #tg-shell .tg-shell-logo .new-wordmark455{
 min-width:0;height:50px!important
}
@media(max-width:1000px){
 body.classic166 #tg-shell .tg-shell-logo{
  flex:0 1 auto!important;min-width:0;max-width:calc(100% - 54px)!important
 }
 body.classic166 #tg-shell .tg-shell-logo .new-wordmark455{flex:0 1 auto}
 body.classic166 #tg-shell .tg-shell-nav a{box-sizing:border-box}
 body.classic166 #tg-shell #tg-header-games>a{
  white-space:normal!important;overflow-wrap:anywhere!important
 }
}

@media(min-width:1320px){
 body.classic166 #tg-shell.active-games-inline457 #tg-header-games{
  position:static!important;width:100%!important;max-width:100%!important;
  flex-flow:row wrap!important;justify-content:flex-end!important
 }
 body.classic166 #tg-shell.active-games-inline457 #tg-header-games>a{width:auto!important}
}

@media(min-width:1320px){
 body.classic166 #tg-shell .tg-shell-top > .tg-shell-logo,
 body.classic166 #tg-shell .tg-shell-top > .tg-shell-nav,
 body.classic166 #tg-shell .tg-shell-top > .tg-account-menu{
  position:relative!important;left:var(--desktop-header-shift,0px)!important
 }
}

/* Keep the original lettering and dot. The orange suffix uses fixed outlines
   so its shape and spacing are independent of the device's installed fonts. */
body.classic166 #tg-shell .tg-shell-logo .new-wordmark455 img{
 clip-path:polygon(0 0,68.5% 0,68.5% 55%,70.2% 61%,70.2% 100%,0 100%)
}
body.classic166 #tg-shell .tg-shell-logo .tenga-net-suffix{
 position:absolute;left:-6.26%;top:0;width:68%;height:auto;pointer-events:none
}

/* Keep navigation and active games in the measured header, independent of page width. */
body.classic166 #tg-shell:not([hidden]) .tg-shell-top {
 display:grid!important;
 grid-template-columns:auto minmax(0,1fr) auto!important;
 grid-template-rows:auto auto auto!important;
 align-items:end!important;
 column-gap:4px!important;
 height:auto!important;
}
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-logo,
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-nav,
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-account-menu {
 left:auto!important;
 transform:none!important;
}
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-logo {grid-column:1;grid-row:1!important}
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-account-menu {grid-column:3!important;grid-row:1!important}
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-nav {
 grid-column:2!important;grid-row:1!important;
 flex-wrap:wrap!important;
 height:auto!important;
 margin:0!important;
}
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-nav > a {
 flex:0 0 auto!important;
 width:auto!important;
 white-space:nowrap!important;
}
body.classic166 #tg-shell:not([hidden]) #tg-header-games {
 grid-column:1/-1!important;grid-row:3!important;
 position:static!important;
 width:100%!important;max-width:100%!important;
 flex-flow:row wrap!important;
 justify-content:flex-end!important;
 align-items:stretch!important;
 margin:3px 0!important;
}
body.classic166 #tg-shell:not([hidden]) #tg-header-games>a {width:auto!important}
@media(max-width:1000px){
 body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-nav {
  grid-column:1/-1!important;grid-row:2!important;
  justify-content:flex-start!important;
 }
}

body.classic166 #tg-shell:not([hidden]) .tg-shell-nav a:is([data-section=shop],[data-section=minijuegos]):not([hidden]){display:flex!important}
body.classic166 #tg-shell:not([hidden]) #tg-header-games[hidden]{display:none!important}
body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-account-menu {display:block!important}
body.classic166 #tg-shell:not([hidden]) .tg-shell-nav [data-section=minijuegos]{order:6!important}
body.classic166 #tg-shell:not([hidden]) .tg-shell-nav [data-section=games]{order:7!important}

@media(max-width:1000px){
 body.classic166 #tg-shell:not([hidden]) .tg-shell-top {
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  row-gap:4px!important;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-logo {
  grid-column:1!important;
  width:min(100%,224px)!important;
  max-width:100%!important;
  height:53px!important;
  min-width:0!important;
  align-self:center!important;
  align-items:center!important;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-logo .blogs-tv162 {
  flex:0 0 35px!important;
  width:35px!important;height:38px!important;
  object-fit:contain;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-logo .new-wordmark455 {
  flex:1 1 0!important;min-width:0!important;
  width:auto!important;height:53px!important;
  aspect-ratio:auto!important;overflow:hidden!important;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-logo .new-wordmark455 > img,
 body.classic166 #tg-shell:not([hidden]) .tg-shell-logo .new-wordmark455 > svg {
  position:absolute!important;
  left:-9%!important;top:50%!important;
  width:109%!important;height:auto!important;
  max-width:none!important;max-height:none!important;
  transform:translateY(-50%)!important;margin:0!important;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-account-menu {
  grid-column:2!important;
  justify-self:end!important;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-nav {
  width:100%!important;min-width:0!important;
  gap:3px!important;
 }
 body.classic166 #tg-shell:not([hidden]) .tg-shell-top > .tg-shell-nav > a {
  min-height:32px!important;height:auto!important;
  padding:5px 7px!important;
 }
 body.classic166 #tg-shell:not([hidden]) #tg-header-games {
  justify-content:flex-start!important;
 }
}
