/* Bar Run — scoped under .game-tab (from игра.html reference) */

/* Секция вкладки: .hidden должен скрывать весь блок игры */
#game-tab.hidden {
  display: none !important;
}

.game-tab{
      --game-cyan: #6ec8d8;
      --game-gold: #e4c06a;
      --game-rose: #c88eb8;
      --neon: rgba(110, 200, 216, 0.45);
      --pink: rgba(200, 142, 184, 0.38);
      --gold: var(--game-gold);
      --danger: #ff5252;
      --glass: rgba(255, 255, 255, .08);
      --stroke: rgba(255, 255, 255, .12);
    }

.game-tab *{
      box-sizing: border-box;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
      -webkit-tap-highlight-color: transparent;
    }

.game-tab{
      margin: 0;
      min-height: 0;
      overflow: visible;
      background: transparent;
      color: var(--text, #fff);
      font-family: var(--font, system-ui, sans-serif);
      touch-action: manipulation;
    }

.game-tab:not(.hidden) {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
      min-height: 0;
      padding: 0;
      background: transparent;
    }

.game-tab .wrap{
      width: min(98vw, 660px);
      max-width: 100%;
      position: relative;
    }

.game-tab .title{
      margin: 0 0 12px;
      text-align: center;
      font-size: clamp(22px, 4.5vw, 32px);
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-shadow: none;
    }

.game-tab .title span{
      color: var(--game-gold);
      font-weight: 800;
    }

.game-tab #game{
      position: relative;
      width: 100%;
      height: min(84vh, 780px);
      height: min(84dvh, 780px);
      min-height: 520px;
      overflow: hidden;
      border-radius: var(--radius-xl, 20px);
      border: 1px solid rgba(110, 200, 216, 0.14);
      touch-action: none;
      background:
        radial-gradient(ellipse 85% 55% at 12% 0%, rgba(110, 200, 216, 0.14), transparent 52%),
        radial-gradient(ellipse 75% 50% at 90% 6%, rgba(200, 142, 184, 0.11), transparent 50%),
        radial-gradient(ellipse 90% 45% at 50% 100%, rgba(228, 192, 106, 0.09), transparent 48%),
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(168deg, #1a2238 0%, #151c30 46%, #101018 100%);
      background-size: cover, cover, cover, 36px 36px, 36px 36px, cover;
      box-shadow:
        var(--shadow-card, 0 4px 28px rgba(0, 0, 0, .55)),
        0 0 40px rgba(110, 200, 216, 0.06);
    }

.game-tab #game::before{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      z-index: 2;
      pointer-events: none;
      background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, .28), transparent 95%);
    }

.game-tab #game::after{
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background:
        radial-gradient(circle at 6% 88%, rgba(200, 142, 184, 0.12), transparent 26%),
        radial-gradient(circle at 94% 86%, rgba(110, 200, 216, 0.11), transparent 26%);
    }

.game-tab .city{
      position: absolute;
      left: 0;
      right: 0;
      bottom: 75px;
      height: 180px;
      z-index: 1;
      opacity: .45;
      pointer-events: none;
      background:
        linear-gradient(to top, rgba(0, 0, 0, .55), transparent),
        repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .05) 22px 24px, transparent 24px 60px);
      clip-path: polygon(0 100%, 0 60%, 5% 60%, 5% 28%, 12% 28%, 12% 68%, 17% 68%, 17% 40%, 27% 40%, 27% 72%, 34% 72%, 34% 20%, 42% 20%, 42% 64%, 50% 64%, 50% 36%, 58% 36%, 58% 74%, 65% 74%, 65% 30%, 75% 30%, 75% 60%, 82% 60%, 82% 18%, 92% 18%, 92% 70%, 100% 70%, 100% 100%);
    }

.game-tab .floor{
      position: absolute;
      left: -5%;
      right: -5%;
      bottom: 0;
      height: 95px;
      z-index: 2;
      transform: perspective(220px) rotateX(28deg);
      transform-origin: bottom;
      border-top: 1px solid rgba(255, 255, 255, .18);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .22)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 68px),
        linear-gradient(90deg, rgba(200, 142, 184, .16), rgba(110, 200, 216, .15), rgba(228, 192, 106, .14));
    }

.game-tab .game-hud{
      position: absolute;
      top: 18px;
      left: 18px;
      right: 18px;
      z-index: 18;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      pointer-events: none;
    }

.game-tab .game-hud div{
      position: relative;
      overflow: hidden;
      min-height: 48px;
      padding: 8px 10px;
      border-radius: var(--radius-lg, 14px);
      text-align: center;
      background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
      border: 1px solid rgba(110, 200, 216, 0.16);
      box-shadow: 0 8px 20px rgba(0, 0, 0, .22), inset 0 0 20px rgba(110, 200, 216, 0.04);
      backdrop-filter: blur(10px);
    }

.game-tab .game-hud small{
      display: block;
      margin-bottom: 2px;
      color: var(--text-dim, rgba(255, 255, 255, .48));
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 600;
    }

.game-tab .game-hud strong{
      display: block;
      font-size: 18px;
      line-height: 1;
      font-weight: 950;
    }

.game-tab #player{
      position: absolute;
      left: 280px;
      bottom: 26px;
      z-index: 8;
      width: 94px;
      height: 118px;
      cursor: grab;
      touch-action: none;
      transform-origin: 50% 90%;
      filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .42));
    }

.game-tab #player:active{
      cursor: grabbing;
    }

.game-tab #player *{
      pointer-events: none;
    }

.game-tab .person-svg, .game-tab .item svg, .game-tab .mini-icon svg{
      width: 100%;
      height: 100%;
      overflow: visible;
    }

.game-tab .left-arm{ transform-origin: 36px 62px; animation: armWalkL .55s ease-in-out infinite alternate; }

.game-tab .right-arm{ transform-origin: 80px 62px; animation: armWalkR .55s ease-in-out infinite alternate; }

.game-tab .left-leg{ transform-origin: 49px 90px; animation: legWalkL .55s ease-in-out infinite alternate; }

.game-tab .right-leg{ transform-origin: 67px 90px; animation: legWalkR .55s ease-in-out infinite alternate; }

.game-tab .neck-head{ transform-origin: 58px 55px; animation: headBob .9s ease-in-out infinite alternate; }

.game-tab .torso{ transform-origin: 58px 95px; animation: torsoBob .7s ease-in-out infinite alternate; }

.game-tab .held-beer{ transform-origin: 19px 13px; animation: beerSwing .78s ease-in-out infinite alternate; }

.game-tab #player.idle .left-arm, .game-tab #player.idle .right-arm, .game-tab #player.idle .left-leg, .game-tab #player.idle .right-leg{
      animation-duration: 1.2s;
    }

.game-tab #player.very-drunk .party-glasses{
      transform-origin: 59px 38px;
      animation: glassesSlip .65s ease-in-out infinite alternate;
    }

.game-tab #player.very-drunk .neck-head{
      animation-duration: .48s;
    }

@keyframes armWalkL { from { transform: rotate(-8deg); } to { transform: rotate(13deg); } }

@keyframes armWalkR { from { transform: rotate(10deg); } to { transform: rotate(-13deg); } }

@keyframes legWalkL { from { transform: rotate(5deg); } to { transform: rotate(-8deg); } }

@keyframes legWalkR { from { transform: rotate(-5deg); } to { transform: rotate(8deg); } }

@keyframes headBob { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(2px) rotate(1.5deg); } }

@keyframes torsoBob { from { transform: translateY(0) rotate(-.5deg); } to { transform: translateY(1.5px) rotate(.6deg); } }

@keyframes beerSwing { from { transform: translate(13px, 83px) rotate(-14deg); } to { transform: translate(13px, 83px) rotate(-5deg); } }

@keyframes glassesSlip { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(-12deg) translateY(2px); } }

.game-tab .item{
      position: absolute;
      z-index: 7;
      width: 54px;
      height: 66px;
      filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .42));
      will-change: transform, top, left;
    }

.game-tab .item.good svg{ filter: drop-shadow(0 0 10px rgba(255, 215, 90, .35)); }

.game-tab .item.sober svg{ filter: drop-shadow(0 0 10px rgba(100, 247, 255, .42)); }

.game-tab .item.chaos svg{ filter: drop-shadow(0 0 14px rgba(255, 79, 216, .42)); }

.game-tab .floating-score{
      position: absolute;
      z-index: 12;
      font-size: 22px;
      font-weight: 950;
      white-space: nowrap;
      pointer-events: none;
      text-shadow: 0 3px 10px rgba(0, 0, 0, .62);
      animation: floatUp .85s cubic-bezier(.2, .8, .2, 1) forwards;
    }

.game-tab .plus{ color: #95ffae; }

.game-tab .minus{ color: #8eeaff; }

@keyframes floatUp {
      from { opacity: 1; transform: translateY(0) scale(.96); }
      45% { opacity: 1; transform: translateY(-18px) scale(1.12); }
      to { opacity: 0; transform: translateY(-52px) scale(1.2); }
    }

.game-tab .combo-pop{
      position: absolute;
      top: 76px;
      left: 50%;
      z-index: 13;
      transform: translateX(-50%);
      padding: 9px 15px;
      border-radius: 999px;
      opacity: 0;
      color: #ffe28a;
      font-weight: 950;
      pointer-events: none;
      background: rgba(255, 212, 93, .14);
      border: 1px solid rgba(255, 212, 93, .42);
      text-shadow: 0 0 14px rgba(255, 212, 93, .45);
    }

.game-tab .combo-pop.show{
      animation: combo .7s ease-out forwards;
    }

@keyframes combo {
      0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.8); }
      25% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.05); }
      100% { opacity: 0; transform: translateX(-50%) translateY(-22px) scale(1.16); }
    }

.game-tab .meter-wrap{
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-height: 24px;
      margin-top: 8px;
    }

.game-tab .drunk-meter{
      min-width: 0;
      height: 22px;
      overflow: hidden;
      border-radius: var(--radius-pill, 100px);
      background: rgba(18, 22, 38, 0.95);
      border: 1px solid rgba(110, 200, 216, 0.12);
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
    }

.game-tab #drunkFill{
      height: 100%;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, #5eb8c8, #7ecf8a, #e4c06a, #e8955a, #e85a5a);
      box-shadow: 0 0 14px rgba(228, 192, 106, 0.28);
      transition: width .16s ease;
    }

.game-tab #drunkText{
      min-width: 42px;
      text-align: right;
    }

.game-tab .danger-glow{
      animation: dangerPulse .5s ease-in-out infinite alternate;
    }

@keyframes dangerPulse {
      from {
        box-shadow:
          var(--shadow-card, 0 4px 28px rgba(0, 0, 0, .55)),
          inset 0 0 36px rgba(110, 200, 216, 0.05);
      }
      to {
        box-shadow:
          var(--shadow-card, 0 4px 28px rgba(0, 0, 0, .55)),
          0 0 24px rgba(255, 82, 82, .32),
          inset 0 0 48px rgba(255, 82, 82, 0.1);
      }
    }

.game-tab .legend{
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-top: 8px;
      font-size: 12px;
      color: rgba(255, 255, 255, .76);
    }

.game-tab .legend div{
      padding: 8px 7px;
      border-radius: var(--radius-lg, 14px);
      text-align: center;
      background: linear-gradient(160deg, rgba(26, 34, 56, 0.9), rgba(18, 20, 32, 0.95));
      border: 1px solid rgba(110, 200, 216, 0.1);
      color: rgba(255, 255, 255, .62);
      font-size: 11px;
    }

.game-tab .help{
      margin-top: 7px;
      text-align: center;
      color: var(--text-dim, rgba(255, 255, 255, .48));
      font-size: 13px;
      line-height: 1.45;
    }

.game-tab .overlay{
      position: absolute;
      inset: 0;
      z-index: 30;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: auto;
      padding: 22px;
      background: rgba(8, 10, 22, .76);
      backdrop-filter: blur(10px);
      overscroll-behavior: contain;
    }

.game-tab .hidden{
      display: none;
    }

.game-tab .card{
      width: min(94%, 440px);
      max-height: 100%;
      overflow: auto;
      padding: 20px 16px 24px;
      border-radius: var(--radius-xl, 20px);
      text-align: center;
      background:
        radial-gradient(ellipse 100% 70% at 0% 0%, rgba(110, 200, 216, 0.1), transparent 58%),
        radial-gradient(ellipse 90% 65% at 100% 0%, rgba(228, 192, 106, 0.08), transparent 55%),
        linear-gradient(150deg, #1e2438 0%, var(--card, #141820) 52%, var(--card-alt, #0e1018) 100%);
      border: 1px solid rgba(110, 200, 216, 0.12);
      box-shadow: var(--shadow-card, 0 4px 28px rgba(0, 0, 0, .55));
      position: relative;
    }

.game-tab .card::before{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, .28), transparent 95%);
      pointer-events: none;
    }

.game-tab .card h1{
      margin: 0 0 10px;
      font-size: clamp(30px, 7vw, 48px);
      line-height: .95;
    }

.game-tab .card p{
      margin: 10px 0;
      color: rgba(255, 255, 255, .78);
      line-height: 1.5;
    }

.game-tab .rules{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin: 16px 0 4px;
      text-align: left;
      font-size: 13px;
    }

.game-tab .rules span{
      display: block;
      padding: 9px;
      border-radius: var(--radius-lg, 14px);
      background: rgba(255, 255, 255, .05);
      border: 1px solid rgba(255, 255, 255, .1);
    }

.game-tab .item-rules{
      grid-template-columns: 1fr 1fr;
      gap: 9px;
    }

.game-tab .item-rules span{
      display: grid;
      grid-template-columns: 34px 1fr;
      grid-template-rows: auto auto;
      column-gap: 8px;
      align-items: center;
      min-height: 50px;
      padding: 7px 9px;
    }

.game-tab .item-rules .wide{
      grid-column: 1 / -1;
    }

.game-tab .mini-icon{
      grid-row: 1 / 3;
      width: 32px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .35));
    }

.game-tab .item-rules b{
      line-height: 1.05;
    }

.game-tab .item-rules em{
      display: block;
      margin-top: 2px;
      opacity: .74;
      font-size: 12px;
      font-style: normal;
    }

.game-tab .combo-title, .game-tab .penalty-note{
      margin-top: 10px;
      padding: 7px 10px;
      border-radius: 13px;
      text-align: center;
      font-size: 13px;
      line-height: 1.25;
      background: rgba(255, 255, 255, .06);
      border: 1px solid rgba(255, 255, 255, .11);
    }

.game-tab .combo-title{
      color: rgba(255, 255, 255, .9);
      font-weight: 850;
      background: linear-gradient(135deg, rgba(228, 192, 106, 0.12), rgba(110, 200, 216, 0.08));
      border-color: rgba(228, 192, 106, 0.22);
    }

.game-tab .penalty-note{
      color: rgba(255, 255, 255, .86);
      background: rgba(255, 82, 82, .12);
      border-color: rgba(255, 82, 82, .28);
    }

.game-tab .penalty-note b{
      color: #ffb1b1;
    }

.game-tab .combo-guide{
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 7px;
      margin-top: 10px;
    }

.game-tab .combo-guide span{
      position: relative;
      overflow: hidden;
      padding: 8px 4px;
      border-radius: var(--radius-lg, 14px);
      text-align: center;
      background: linear-gradient(135deg, rgba(228, 192, 106, 0.1), rgba(110, 200, 216, 0.06));
      border: 1px solid rgba(228, 192, 106, 0.2);
    }

.game-tab .combo-guide span::before{
      content: "★";
      position: absolute;
      top: -8px;
      right: 5px;
      color: rgba(255, 212, 93, .45);
      font-size: 22px;
    }

.game-tab .combo-guide b, .game-tab .combo-guide em{
      display: block;
    }

.game-tab .combo-guide b{
      color: var(--game-gold);
      font-size: 18px;
      line-height: 1;
      text-shadow: 0 0 12px rgba(228, 192, 106, 0.28);
    }

.game-tab .combo-guide em{
      margin-top: 3px;
      color: rgba(255, 255, 255, .72);
      font-size: 11px;
      font-style: normal;
    }

.game-tab button{
      margin-top: 17px;
      appearance: none;
      border: 0;
      border-radius: var(--radius-pill, 100px);
      padding: 14px 28px;
      min-width: 160px;
      cursor: pointer;
      color: #000;
      font-family: var(--font, system-ui, sans-serif);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      background: #fff;
      box-shadow: none;
      transition: transform 0.1s, opacity 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

.game-tab button:active{
      transform: scale(0.97);
      opacity: 0.92;
    }

.game-tab .end-card{
      position: relative;
      overflow: hidden;
      padding: 28px 20px 24px;
      background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(228, 192, 106, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 55% at 85% 10%, rgba(200, 142, 184, 0.1), transparent 52%),
        linear-gradient(150deg, #1e2438 0%, var(--card, #141820) 52%, var(--card-alt, #0e1018) 100%);
    }

.game-tab .end-card::before, .game-tab .end-card::after{
      content: "";
      position: absolute;
      width: 140px;
      height: 140px;
      border-radius: 50%;
      pointer-events: none;
      animation: endFloat 4s ease-in-out infinite alternate;
    }

.game-tab .end-card::before{
      left: -55px;
      bottom: -45px;
      background: radial-gradient(circle, rgba(110, 200, 216, .18), transparent 65%);
    }

.game-tab .end-card::after{
      right: -45px;
      top: -55px;
      background: radial-gradient(circle, rgba(228, 192, 106, .16), transparent 65%);
      animation-delay: .7s;
    }

@keyframes endFloat {
      from { transform: translateY(0) scale(1); opacity: .7; }
      to { transform: translateY(-12px) scale(1.08); opacity: 1; }
    }

.game-tab .end-badge, .game-tab .end-card h1, .game-tab .end-card p, .game-tab .end-score, .game-tab .end-stats, .game-tab .end-card button{
      position: relative;
      z-index: 1;
    }

.game-tab .end-badge{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 13px;
      border-radius: 999px;
      color: #ffe28a;
      font-weight: 950;
      background: rgba(228, 192, 106, .14);
      border: 1px solid rgba(228, 192, 106, .32);
      text-shadow: 0 0 10px rgba(228, 192, 106, 0.25);
    }

.game-tab .end-subtitle{
      margin-top: 6px !important;
      color: rgba(255, 255, 255, .72) !important;
    }

.game-tab .end-score{
      width: min(100%, 280px);
      margin: 18px auto 12px;
      padding: 18px 14px;
      border-radius: 24px;
      background: linear-gradient(135deg, rgba(228, 192, 106, .16), rgba(200, 142, 184, .1));
      border: 1px solid rgba(228, 192, 106, .28);
      box-shadow: inset 0 0 20px rgba(228, 192, 106, .06), 0 14px 34px rgba(0, 0, 0, .25);
    }

.game-tab .end-score small{
      display: block;
      margin-bottom: 5px;
      opacity: .7;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

.game-tab .end-score strong{
      display: block;
      color: var(--gold);
      font-size: clamp(42px, 9vw, 64px);
      line-height: .95;
      text-shadow: 0 0 20px rgba(255, 212, 93, .36);
    }

.game-tab .end-stats{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      width: min(100%, 280px);
      margin: 0 auto 6px;
    }

.game-tab .end-stats span{
      padding: 10px;
      border-radius: 16px;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .15);
    }

.game-tab .end-stats b, .game-tab .end-stats em{
      display: block;
    }

.game-tab .end-stats b{
      font-size: 18px;
    }

.game-tab .end-stats em{
      margin-top: 2px;
      opacity: .65;
      font-size: 11px;
      font-style: normal;
    }

.game-tab .shake{
      animation: screenShake .12s linear 4;
    }

@keyframes screenShake {
      0% { transform: translate(0, 0); }
      25% { transform: translate(-4px, 2px); }
      50% { transform: translate(4px, -2px); }
      75% { transform: translate(-2px, -2px); }
      100% { transform: translate(0, 0); }
    }

@media (max-width: 620px) {
.game-tab:not(.hidden) {
        width: 100%;
        height: 100%;
        overflow: hidden;
      }

.game-tab:not(.hidden) {
        align-items: stretch;
        padding: 0;
      }

.game-tab .wrap{
        width: 100%;
        height: calc(
          var(--app-vh, 100dvh) - var(--app-chrome-top, 88px) - max(8px, env(safe-area-inset-bottom, 0px))
        );
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
      }

.game-tab .title{
        display: none;
      }

.game-tab #game{
        flex: 1 1 auto;
        height: auto;
        min-height: min(42vh, 280px);
        max-height: none;
        border-radius: var(--radius-xl, 20px);
      }

.game-tab .game-hud{
        top: 9px;
        left: 9px;
        right: 9px;
        gap: 5px;
      }

.game-tab .game-hud div{
        min-height: 38px;
        padding: 6px 4px;
        border-radius: 12px;
      }

.game-tab .game-hud small{
        font-size: 8.5px;
        letter-spacing: .55px;
      }

.game-tab .game-hud strong{
        font-size: 14px;
      }

.game-tab #player{
        width: 78px !important;
        height: 99px !important;
        bottom: 18px;
      }

.game-tab .item{
        width: 49px;
        height: 60px;
      }

.game-tab .overlay{
        align-items: center;
        justify-content: center;
        padding: 10px;
        overflow: hidden;
      }

.game-tab .card{
        width: min(100%, 400px);
        max-height: calc(100% - 4px);
        overflow: auto;
        padding: 14px 12px 18px;
        border-radius: var(--radius-xl, 20px);
        scrollbar-width: none;
      }

.game-tab .card::-webkit-scrollbar{
        display: none;
      }

.game-tab .card h1{
        font-size: 27px;
        margin-bottom: 7px;
      }

.game-tab .card p{
        margin: 7px 0;
        font-size: 12px;
        line-height: 1.3;
      }

.game-tab .item-rules{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        margin-top: 8px;
      }

.game-tab .item-rules span{
        grid-template-columns: 27px 1fr;
        min-height: 40px;
        padding: 6px 7px;
        border-radius: 12px;
      }

.game-tab .mini-icon{
        width: 25px;
        height: 30px;
      }

.game-tab .item-rules b{
        font-size: 11.5px;
      }

.game-tab .item-rules em{
        font-size: 9.8px;
      }

.game-tab .combo-title, .game-tab .penalty-note{
        margin-top: 7px;
        padding: 6px 7px;
        font-size: 10.8px;
      }

.game-tab .combo-guide{
        gap: 4px;
        margin-top: 6px;
      }

.game-tab .combo-guide span{
        padding: 5px 2px;
        border-radius: 10px;
      }

.game-tab .combo-guide span::before{
        top: -5px;
        right: 3px;
        font-size: 16px;
      }

.game-tab .combo-guide b{
        font-size: 14px;
      }

.game-tab .combo-guide em{
        font-size: 8.7px;
      }

.game-tab button{
        margin-top: 9px;
        padding: 11px 18px;
        font-size: 15px;
      }

.game-tab .end-card h1{
        margin-top: 12px;
        font-size: 31px;
      }

.game-tab .end-score{
        margin-top: 14px;
        padding: 16px 12px;
      }

.game-tab .end-score strong{
        font-size: 48px;
      }

.game-tab .meter-wrap{
        flex: 0 0 auto;
        gap: 7px;
        min-height: 22px;
        margin-top: 7px;
        margin-bottom: 3px;
        padding: 0 3px;
      }

.game-tab .drunk-meter{
        height: 18px;
      }

.game-tab #drunkText{
        min-width: 34px;
      }

.game-tab .legend, .game-tab .help{
        display: none;
      }
}

@media (max-width: 380px), (max-height: 720px) {
.game-tab .wrap{
        height: calc(
          var(--app-vh, 100dvh) - var(--app-chrome-top, 82px) - max(6px, env(safe-area-inset-bottom, 0px))
        );
      }

.game-tab #game{
        min-height: min(38vh, 240px);
      }

.game-tab .game-hud div{
        min-height: 34px;
        padding: 5px 3px;
      }

.game-tab .game-hud small{
        font-size: 7.8px;
      }

.game-tab .game-hud strong{
        font-size: 13px;
      }

.game-tab #player{
        width: 71px !important;
        height: 92px !important;
        bottom: 16px;
      }

.game-tab .item{
        width: 44px;
        height: 55px;
      }

.game-tab .card{
        max-height: min(calc(100% - 2px), calc(var(--app-vh, 100dvh) - var(--app-chrome-top, 88px) - 48px));
        padding: 10px;
      }

.game-tab .card h1{
        margin-bottom: 4px;
        font-size: 22px;
      }

.game-tab .end-card h1{
        font-size: 27px;
      }

.game-tab .end-score strong{
        font-size: 42px;
      }

.game-tab .card p{
        margin: 5px 0;
        font-size: 10.5px;
      }

.game-tab .item-rules{
        gap: 4px;
        margin-top: 6px;
      }

.game-tab .item-rules span{
        grid-template-columns: 22px 1fr;
        min-height: 34px;
        padding: 4px 5px;
      }

.game-tab .mini-icon{
        width: 21px;
        height: 25px;
      }

.game-tab .item-rules b{
        font-size: 10.2px;
      }

.game-tab .item-rules em{
        font-size: 8.5px;
      }

.game-tab .combo-title, .game-tab .penalty-note{
        padding: 5px 6px;
        font-size: 10px;
      }

.game-tab .combo-guide b{
        font-size: 13px;
      }

.game-tab .combo-guide em{
        font-size: 8px;
      }

.game-tab button{
        padding: 10px 16px;
        font-size: 14px;
      }
}

/* Embed inside main Chesterfield WebApp */
.scene #game-tab:not(.hidden) {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  min-height: auto;
}

.scene .game-tab .wrap {
  width: 100%;
  max-width: 100%;
}
