/* Golden Ticket — visible vertical reel, sci-fi WarUniverse */

.gt-hud-btn {
  position: absolute;
  top: 12px;
  right: 380px;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 196, 72, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, #1c1820, #0c1018);
  color: #ffe7a8;
  cursor: pointer;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  pointer-events: auto;
}
.gt-hud-btn:hover { filter: brightness(1.1); }
.gt-hud-icon {
  width: 22px; height: 22px; border-radius: 4px;
  background: linear-gradient(145deg, #ffd76a, #c9891a);
  position: relative;
}
.gt-hud-icon::after {
  content: "★"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #1a1206; font-weight: 700;
}
.gt-hud-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.gt-hud-label { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #8aa0c0; }
.gt-hud-count { font-size: 13px; font-weight: 700; color: #ffd76a; }

.gt-modal.hidden, .gt-win.hidden, .gt-last.hidden { display: none !important; }

.gt-modal {
  position: fixed; inset: 0; z-index: 2147483645;
  display: flex; align-items: center; justify-content: center;
}
.gt-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.78);
}
.gt-modal-panel {
  position: relative;
  width: min(400px, 94vw);
  padding: 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(100, 170, 255, 0.45);
  background: linear-gradient(180deg, #152038, #080c14);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 40px rgba(60,140,255,0.15);
  color: #e8f0ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
.gt-modal-x {
  position: absolute; top: 6px; right: 8px; z-index: 8;
  width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: #bcd; font-size: 22px; cursor: pointer;
}
.gt-modal-x:hover { background: rgba(255,70,80,0.3); color: #fff; }
.gt-title {
  margin: 0; text-align: center; font-size: 24px; font-weight: 900;
  letter-spacing: 0.14em; color: #ffd76a;
  text-shadow: 0 0 20px rgba(255,200,80,0.45);
}
.gt-tickets-line {
  text-align: center; margin: 4px 0 10px; font-size: 14px; color: #b8c8e0;
}
.gt-tickets-line b { color: #ffd76a; font-size: 17px; }

.gt-reel-wrap {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: stretch;
  margin-bottom: 12px;
}
.gt-pointer {
  display: flex; align-items: center; justify-content: center;
  z-index: 7; pointer-events: none;
}
.gt-pointer i {
  display: block; width: 0; height: 0;
  filter: drop-shadow(0 0 6px #fff);
}
.gt-pointer-left i {
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #e8eef8;
}
.gt-pointer-right i {
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 24px solid #e8eef8;
}

.gt-reel-stage {
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid #7a8ea8;
  background: linear-gradient(180deg, #2a3548, #3a4860 50%, #2a3548);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}
.gt-rail {
  position: absolute; top: 0; bottom: 0; width: 12px; z-index: 6; pointer-events: none;
  background: linear-gradient(180deg, #9aa8b8, #4a5565 30%, #c0cad6 50%, #4a5565 70%, #9aa8b8);
}
.gt-rail-l { left: 0; }
.gt-rail-r { right: 0; }
.gt-win-line {
  position: absolute; left: 12px; right: 12px; top: 50%;
  height: 140px; margin-top: -70px; z-index: 5; pointer-events: none;
  border-top: 3px solid rgba(255,255,255,0.75);
  border-bottom: 3px solid rgba(255,255,255,0.75);
  box-shadow: 0 0 24px rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}
.gt-fade-t, .gt-fade-b {
  position: absolute; left: 12px; right: 12px; height: 70px; z-index: 4; pointer-events: none;
}
.gt-fade-t { top: 0; background: linear-gradient(#1a2230, transparent); }
.gt-fade-b { bottom: 0; background: linear-gradient(transparent, #1a2230); }

.gt-reel-strip {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  z-index: 3;
  will-change: transform;
}

/* BIG visible reward cards */
.gt-card {
  height: 140px;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 10px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 2px solid rgba(160, 190, 230, 0.45);
  background: linear-gradient(180deg, #1e2a40 0%, #121a28 100%) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.gt-card:last-child { margin-bottom: 0; }
.gt-card-ico {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #0a1018;
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
}
.gt-card-ico.fb {
  display: flex !important;
  align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: #ffd76a;
  width: 64px; height: 64px;
}
.gt-card-txt {
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.15;
  text-align: center;
  color: #ffffff !important;
  text-shadow: 0 2px 6px #000;
  letter-spacing: 0.03em;
}
.gt-card.r-rare { border-color: #4db0ff; }
.gt-card.r-rare .gt-card-txt { color: #9ad8ff !important; }
.gt-card.r-epic { border-color: #b06dff; }
.gt-card.r-epic .gt-card-txt { color: #d4b0ff !important; }
.gt-card.r-legendary {
  border-color: #ffd76a;
  box-shadow: 0 0 16px rgba(255,200,80,0.35);
}
.gt-card.r-legendary .gt-card-txt { color: #ffd76a !important; }
.gt-card.is-win {
  transform: scale(1.04);
  border-color: #fff;
  box-shadow: 0 0 28px rgba(255,220,120,0.55), inset 0 0 20px rgba(255,200,80,0.15);
  animation: gtFlash 0.6s ease;
}
@keyframes gtFlash {
  0% { filter: brightness(2.5); }
  100% { filter: brightness(1); }
}
.gt-dim .gt-card:not(.is-win) {
  opacity: 0.35 !important;
  filter: grayscale(0.4) brightness(0.7);
}

.gt-spin-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e0b040;
  background: linear-gradient(180deg, #5a4018, #1a1208);
  color: #fff;
  font-size: 20px; font-weight: 900; letter-spacing: 0.2em;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.gt-spin-btn small {
  font-size: 11px; letter-spacing: 0.08em; color: #d0b060; font-weight: 700;
}
.gt-spin-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.gt-spin-btn:hover:not(:disabled) { filter: brightness(1.12); }
.gt-hint {
  margin: 8px 0 0; text-align: center; font-size: 12px; color: #8aa0c0; min-height: 16px;
}

.gt-fx {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden;
}
.gt-spark {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffd76a; box-shadow: 0 0 8px #ffd76a;
  animation: gtSpark 0.7s ease-out forwards;
}
@keyframes gtSpark {
  to { transform: translate(var(--dx), var(--dy)) scale(0.1); opacity: 0; }
}

.gt-win, .gt-last {
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; align-items: center; justify-content: center;
}
.gt-win-panel, .gt-last-panel {
  position: relative;
  width: min(380px, 92vw);
  padding: 32px 22px 22px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(120,180,255,0.4);
  background: radial-gradient(ellipse at center, #243556, #080c14);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  color: #fff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  overflow: hidden;
}
.gt-win-rays {
  position: absolute; left: 50%; top: 40%; width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  background: repeating-conic-gradient(from 0deg, transparent 0 10deg, rgba(255,255,255,0.08) 10deg 14deg);
  animation: gtSpinRays 10s linear infinite;
  pointer-events: none;
}
@keyframes gtSpinRays { to { transform: rotate(360deg); } }
.gt-win-panel h3 {
  position: relative; z-index: 1; margin: 0 0 12px;
  font-size: 22px; letter-spacing: 0.2em;
}
.gt-win-ico {
  position: relative; z-index: 1;
  width: 100px; height: 100px; object-fit: contain;
  margin: 0 auto 12px; display: block;
  filter: drop-shadow(0 0 16px rgba(255,200,80,0.5));
}
.gt-win-amt {
  position: relative; z-index: 1;
  font-size: 28px; font-weight: 900; margin-bottom: 16px;
  text-shadow: 0 0 16px rgba(100,180,255,0.5);
}
.gt-collect {
  position: relative; z-index: 1;
  width: 100%; padding: 12px; border-radius: 10px;
  border: 1px solid #5ec8ff; background: linear-gradient(180deg, #1e4a6a, #102030);
  color: #b0e0ff; font-weight: 900; letter-spacing: 0.16em; cursor: pointer;
}
.gt-collect:hover { filter: brightness(1.1); }
.gt-tap { position: relative; z-index: 1; margin-top: 10px; font-size: 11px; color: #789; }

@media (max-width: 1366px) {
  .gt-reel-stage { height: 390px; }
  .gt-card { height: 120px; }
  .gt-win-line { height: 120px; margin-top: -60px; }
  .gt-card-txt { font-size: 17px !important; }
  .gt-card-ico, .gt-card-ico.fb { width: 52px; height: 52px; }
}
@media (min-width: 1920px) {
  .gt-modal-panel { width: 440px; }
  .gt-reel-stage { height: 520px; }
  .gt-card { height: 155px; }
  .gt-win-line { height: 155px; margin-top: -77px; }
}
