/* V31: complete game titles, stable multilingual shelf headings, footer link. */
.gbar .gbar-in{height:auto;min-height:52px;padding-block:8px}
.gbar .gbar-in>.back,.gbar .gbar-in>.fsbtn{flex-shrink:0;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.gbar .gbar-in>.gname{flex:1 1 auto;min-width:0}
.gbar .gbar-in .gname>#gName{display:block;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;hyphens:none}
.gbar .gbar-in .gname>#gImg{flex:0 0 auto;width:30px;height:30px;object-fit:cover;border-radius:8px}
@media(max-width:860px){
 .gbar .gbar-in{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:8px 14px 12px}
 .gbar .gbar-in>.back{grid-column:1;grid-row:1;justify-self:start;display:inline-flex;align-items:center;padding:8px 12px}
 .gbar .gbar-in>.fsbtn{grid-column:2;grid-row:1;justify-self:end;margin:0;padding:8px 12px}
 .gbar .gbar-in>.gname{grid-column:1/-1;grid-row:2;width:100%;font-size:14px;line-height:1.4;gap:8px;align-items:center}
 .gbar .gbar-in>.grtp,.gbar .gbar-in>.rtp{grid-column:1/-1;grid-row:3;justify-self:start}
 .gbar .gbar-in>.gpf,.gbar .gbar-in>.fair{display:none}
 body.has-bottomnav .gframe-wrap,body .gframe-wrap{height:auto!important;min-height:0!important}
 .gframe-wrap #frame{
  flex:0 0 auto;
  height:calc(100vh - var(--game-header-height,54px) - var(--game-toolbar-height,104px) - env(safe-area-inset-bottom,0px))!important;
  height:calc(100dvh - var(--game-header-height,54px) - var(--game-toolbar-height,104px) - env(safe-area-inset-bottom,0px))!important;
  min-height:0!important;
 }
 body .hsec-h{display:grid;grid-template-columns:20px minmax(0,1fr) max-content;align-items:center;column-gap:8px;row-gap:8px}
 body .hsec-h>.em{grid-column:1;grid-row:1;flex-shrink:0}
 body .hsec .hsec-h>h2{grid-column:2;grid-row:1;min-width:0;font-size:17px;line-height:1.3;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
 body .hsec-h>.cnt{grid-column:3;grid-row:1;white-space:nowrap;justify-self:end}
 body .hsec-h>.sp,body .hsec-h>.harrows{display:none}
 body .hsec-h>.all{grid-column:2/-1;grid-row:2;justify-self:end;min-height:44px;max-width:100%;font-size:12px;line-height:1.3;padding:8px 12px;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
}

/* Font-independent controls: avoid missing-glyph boxes in localized fonts. */
.gbar .fsbtn>svg{flex:0 0 16px;display:block}
footer.ftr .nbLang .nbcar{display:inline-block!important;width:6px!important;height:6px!important;margin:-3px 2px 0 2px!important;border-right:1.5px solid currentColor!important;border-bottom:1.5px solid currentColor!important;font-size:0!important;line-height:0!important;transform:rotate(45deg)!important}

/* V32: one translated 18+ notice; no duplicate bottom policy link. */
footer.ftr .ft-bottom .resp{font-size:14px!important;line-height:1.5!important;text-wrap:balance;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
footer.ftr .ft-bottom .resp>strong{white-space:nowrap}
footer.ftr .ft-bottom .resp>span{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}

/* V34: fixed two-column desktop badge grid; long translations stay in their cell. */
@media(min-width:861px){
 body footer.ftr .ft-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:6px;min-width:0;width:100%;align-items:stretch}
 body footer.ftr .ft-badges>.ft-badge{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;max-width:100%;min-height:32px;white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:none;line-height:1.4;text-align:center}
}
