/* 2026-10-12 (#1011): interaktív kocsmajáték-asztal */
.mx-gt-box {
  --drunk: 0;
  position: relative; width: min(1180px, 97vw); max-width: none; height: min(860px, 94vh); max-height: none; padding: 0;
  display: flex; flex-direction: column; overflow: hidden; color: #f6ead2;
  background: linear-gradient(180deg, rgba(12, 7, 3, .55), rgba(12, 7, 3, .15) 30%, rgba(12, 7, 3, .25) 70%, rgba(12, 7, 3, .7)), var(--gt-bg) center / cover no-repeat, #20140a !important;
}
.mx-gt-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.mx-gt-title { margin: 0; font-family: var(--font-head, serif); color: #fbe9c6; text-shadow: 0 2px 6px #000; font-size: 1.35rem; }
.mx-gt-head .modal-x { background: rgba(20, 12, 6, .6); color: #fbe9c6; border-color: rgba(251, 233, 198, .4); }
.mx-gt-stage {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 12px;
}
.mx-gt-box.g-ivoverseny .mx-gt-arena { filter: blur(calc(var(--drunk) * .3px)); animation: mx-gt-wobble calc(9s - var(--drunk) * .7s) ease-in-out infinite; }
@keyframes mx-gt-wobble {
  0%, 100% { transform: rotate(0) translateX(0); }
  25% { transform: rotate(calc(var(--drunk) * .25deg)) translateX(calc(var(--drunk) * 2px)); }
  75% { transform: rotate(calc(var(--drunk) * -.25deg)) translateX(calc(var(--drunk) * -2px)); }
}
.mx-gt-setup { margin: auto; max-width: 620px; padding: 18px 22px; border-radius: 12px; background: rgba(18, 10, 4, .78); border: 1px solid rgba(214, 170, 90, .55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.mx-gt-rule { line-height: 1.45; }
.mx-gt-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.mx-gt-num { width: 76px; color: #3a2a18; background: #fbf3e2; border: 1px solid #b08a2a; }
.mx-gt-cheat { font-size: .9rem; opacity: .95; }
.mx-gt-go { font-size: 1.1rem; padding: .6rem 1.6rem; align-self: center; }
.mx-gt-info { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: .92rem; text-shadow: 0 1px 3px #000; }
.mx-gt-pot { color: #f3d36b; font-weight: 700; }
.mx-gt-flag { color: #ffb4a8; }
.mx-gt-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(15, 9, 4, .35); }
.mx-gt-who { font-family: var(--font-head, serif); font-size: 1.05rem; text-shadow: 0 2px 4px #000; }
.mx-gt-sum { font-weight: 700; text-shadow: 0 1px 3px #000; }
.mx-gt-sum.center { text-align: center; }
.mx-gt-hint { font-size: .85rem; opacity: .9; text-shadow: 0 1px 2px #000; }
.mx-gt-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mx-gt-btns.center { align-self: center; }
.mx-gt-log { align-self: center; max-width: 720px; width: 100%; padding: 8px 12px; border-radius: 8px; background: rgba(12, 7, 3, .6); font-size: .85rem; line-height: 1.4; }

/* kocka */
.mx-gt-dice { display: flex; gap: 18px; justify-content: center; }
.mx-gt-die { width: 96px; height: 96px; border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.mx-gt-die img { width: 100%; height: 100%; display: block; }
.mx-gt-die.idle { opacity: .45; }
.mx-gt-die.pick { cursor: pointer; }
.mx-gt-die.pick:hover { transform: translateY(-4px) rotate(-3deg); }
.mx-gt-die.sel { transform: translateY(-14px) rotate(4deg); box-shadow: 0 0 0 3px #f3d36b, 0 0 22px rgba(243, 211, 107, .8); }
.mx-gt-die.rolling { animation: mx-gt-roll .14s linear infinite; }
.mx-gt-die.land { animation: mx-gt-land .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mx-gt-roll { 0% { transform: translate(-4px, 2px) rotate(-14deg); } 50% { transform: translate(5px, -6px) rotate(16deg); } 100% { transform: translate(-3px, 3px) rotate(-10deg); } }
@keyframes mx-gt-land { 0% { transform: translateY(-26px) scale(1.12) rotate(18deg); } 100% { transform: none; } }

/* kártya */
.mx-gt-hand { display: flex; justify-content: center; gap: 0; padding: 10px 0 4px; min-height: 170px; }
.mx-gt-card {
  position: relative; width: 112px; height: 160px; margin: 0 -10px; border-radius: 10px; flex: 0 0 auto;
  background: #f4e6c4 linear-gradient(160deg, #fbf1d8, #e7d2a2); background-size: 100% 100%; color: #3b2410;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .55); transition: transform .2s ease, box-shadow .2s ease;
}
.mx-gt-hand.me .mx-gt-card:nth-child(1) { transform: rotate(-10deg) translateY(10px); }
.mx-gt-hand.me .mx-gt-card:nth-child(2) { transform: rotate(-5deg) translateY(3px); }
.mx-gt-hand.me .mx-gt-card:nth-child(4) { transform: rotate(5deg) translateY(3px); }
.mx-gt-hand.me .mx-gt-card:nth-child(5) { transform: rotate(10deg) translateY(10px); }
.mx-gt-card.pick { cursor: pointer; }
.mx-gt-card.pick:hover { transform: translateY(-12px) !important; z-index: 2; }
.mx-gt-card.sel { transform: translateY(-26px) !important; box-shadow: 0 0 0 3px #f3d36b, 0 0 24px rgba(243, 211, 107, .85); z-index: 3; }
.mx-gt-card.played { box-shadow: 0 0 0 3px #f3d36b, 0 8px 16px rgba(0, 0, 0, .6); transform: translateY(-8px) !important; }
.mx-gt-card.dim { opacity: .45; filter: grayscale(.5); }
.mx-gt-card.back { background: #5a1a14 repeating-linear-gradient(45deg, #6b2018 0 8px, #4a120e 8px 16px); border: 3px solid #c89b4a; background-size: auto; }
.mx-gt-cv { position: absolute; left: 9px; top: 6px; font-family: var(--font-head, serif); font-weight: 800; font-size: 1.15rem; }
.mx-gt-cpt { position: absolute; right: 9px; bottom: 6px; font-weight: 700; font-size: .9rem; opacity: .75; }
.mx-gt-cn { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.mx-gt-cs { position: absolute; left: 50%; top: 50%; width: 58%; transform: translate(-50%, -58%); }
.mx-gt-card.s-korona .mx-gt-cv, .mx-gt-card.s-korona .mx-gt-cn { color: #8a6a10; }
.mx-gt-card.s-kard .mx-gt-cv, .mx-gt-card.s-kard .mx-gt-cn { color: #2c3a4a; }
.mx-gt-card.s-kehely .mx-gt-cv, .mx-gt-card.s-kehely .mx-gt-cn { color: #8b1a10; }
.mx-gt-card.s-pajzs .mx-gt-cv, .mx-gt-card.s-pajzs .mx-gt-cn { color: #2a5a2a; }
.mx-gt-card.deal-pre { opacity: 0; transform: translateY(-120px) rotate(-30deg) !important; }
.mx-gt-card.deal { transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .2s; }
.mx-gt-card.flip { animation: mx-gt-flip .6s ease both; }
@keyframes mx-gt-flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }

/* ivóverseny */
.mx-gt-arena { display: flex; justify-content: center; gap: 48px; padding-top: 10px; }
.mx-gt-drinker { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mx-gt-mug { width: 170px; height: 170px; transform-origin: 50% 80%; transition: transform .3s; }
.mx-gt-mug img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .65)); }
.mx-gt-mug.empty img { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .65)) grayscale(.4) brightness(.8); }
.mx-gt-mug.me.gulp { animation: mx-gt-gulp-l .9s ease; }
.mx-gt-mug.opp.gulp { animation: mx-gt-gulp-r .9s ease; }
@keyframes mx-gt-gulp-l { 0% { transform: none; } 40% { transform: translateY(-30px) rotate(-55deg); } 70% { transform: translateY(-30px) rotate(-62deg); } 100% { transform: none; } }
@keyframes mx-gt-gulp-r { 0% { transform: none; } 40% { transform: translateY(-30px) rotate(55deg); } 70% { transform: translateY(-30px) rotate(62deg); } 100% { transform: none; } }
.mx-gt-marks { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 220px; font-size: .8rem; }
.mx-gt-marks span { padding: 1px 6px; border-radius: 999px; background: rgba(15, 9, 4, .6); }
.mx-gt-marks .ok { color: #9fe39a; } .mx-gt-marks .no { color: #ff9a8a; }

/* eredmény */
.mx-gt-result { position: sticky; bottom: 0; align-self: center; text-align: center; padding: 14px 22px; border-radius: 12px; background: rgba(12, 7, 3, .86);
  border: 2px solid #8a6a3a; box-shadow: 0 12px 40px rgba(0, 0, 0, .7); animation: mx-gt-pop .35s cubic-bezier(.2, 1.5, .4, 1); z-index: 5; }
@keyframes mx-gt-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mx-gt-stamp { display: inline-block; padding: 4px 18px; border: 4px double currentColor; font-weight: 900; letter-spacing: .14em; font-size: 1.6rem; transform: rotate(-6deg); margin-bottom: 8px; }
.mx-gt-result.nyert { border-color: #d4af37; } .mx-gt-result.nyert .mx-gt-stamp { color: #f3d36b; }
.mx-gt-result.vesztett .mx-gt-stamp { color: #e8b4a8; } .mx-gt-result.dontetlen .mx-gt-stamp { color: #cfd8e0; }
.mx-gt-result.lebukott { border-color: #b3261a; } .mx-gt-result.lebukott .mx-gt-stamp { color: #ff7a6a; }
.mx-gt-rtext { margin-bottom: 8px; }
.mx-gt-warn { margin: 4px 0 8px; padding: 4px 8px; border-left: 3px solid #b3261a; background: rgba(179, 38, 26, .25); font-size: .88rem; text-align: left; }

@media (max-width: 760px) {
  .mx-gt-box { width: 100vw; height: 100dvh; border-radius: 0; }
  .mx-gt-stage { padding: 4px 8px 12px; }
  .mx-gt-die { width: 72px; height: 72px; } .mx-gt-dice { gap: 10px; }
  .mx-gt-card { width: 74px; height: 106px; margin: 0 -8px; } .mx-gt-hand { min-height: 120px; }
  .mx-gt-cv { font-size: .95rem; } .mx-gt-cn { font-size: .6rem; bottom: 20px; }
  .mx-gt-arena { gap: 18px; } .mx-gt-mug { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .mx-gt-arena { animation: none !important; } }
.mx-gt-cs.small { width: 26%; top: auto; bottom: 4px; left: 6px; transform: none; }
.mx-gt-card { background-repeat: no-repeat; background-position: center; }
.mx-gt-card.figura .mx-gt-cv { left: 5px; top: 5px; padding: 0 6px; border-radius: 6px; background: rgba(251, 241, 216, .9); font-size: .85rem; }
.mx-gt-card.figura .mx-gt-cn { display: none; }
.mx-gt-card.figura .mx-gt-cpt { padding: 0 5px; border-radius: 6px; background: rgba(251, 241, 216, .9); opacity: 1; }
.mx-gt-card.figura .mx-gt-cs.small { background: rgba(251, 241, 216, .85); border-radius: 50%; padding: 2px; width: 28%; }
.mx-gt-card:not(.figura) .mx-gt-cs { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
