/* Grand Thrust Auto - Scoped styles */
/* fonts: css/fonts.css (shipped with the game) */

.gta-game-container { position: relative; width: 700px; height: 500px; font-family: 'Press Start 2P', monospace; }
.gta-game-container canvas { display: block; border: 2px solid #333; image-rendering: pixelated; }
.gta-game-container .gta-hud { position: absolute; top: 0; left: 0; right: 0; padding: 10px 15px; display: flex; justify-content: space-between; pointer-events: none; z-index: 10; }
.gta-game-container .hl, .gta-game-container .hr { display: flex; flex-direction: column; gap: 6px; }
.gta-game-container .hi { color: #fff; font-size: 10px; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; line-height: 1.4; }
.gta-game-container .hi .l { color: #aaa; font-size: 8px; }
.gta-game-container .hi .v { color: #ffcc00; }
.gta-game-container .hi .b { color: #ff6b35; }
.gta-game-container .hi .w { color: #f22; }
.gta-game-container .gta-mb { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.85); border-top: 2px solid #ffcc00; padding: 8px 15px; pointer-events: none; z-index: 10; }
.gta-game-container .gta-mt { color: #ffcc00; font-size: 9px; text-shadow: 1px 1px 0 #000; text-align: center; line-height: 1.4; }
.gta-game-container .mc { position: absolute; bottom: 45px; right: 10px; width: 120px; height: 120px; border: 2px solid #ffcc00; background: rgba(0,0,0,.7); z-index: 10; pointer-events: none; }
.gta-game-container .mc canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.gta-game-container .ov { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 20; background: rgba(0,0,0,.92); }
.gta-game-container .ov.h { display: none; }
.gta-game-container .gta-ss .ck { font-family: 'Permanent Marker', cursive; font-size: 16px; color: #ff6b35; letter-spacing: 6px; text-transform: uppercase; margin-bottom: 5px; text-shadow: 1px 1px 0 #000; }
.gta-game-container .gta-ss .ci { font-size: 28px; margin-bottom: 15px; }
.gta-game-container .gta-ss h1 { font-family: 'Russo One', sans-serif; font-size: 36px; color: #ffcc00; text-shadow: 3px 3px 0 #ff6b35, 6px 6px 0 rgba(0,0,0,.5); margin-bottom: 25px; text-align: center; line-height: 1.2; }
.gta-game-container .gta-ss .ct { font-size: 8px; color: #888; line-height: 2.2; text-align: center; margin-bottom: 30px; }
.gta-game-container .gta-ss .ct span { color: #ffcc00; }
.gta-game-container .gb { font-family: 'Press Start 2P', monospace; font-size: 12px; color: #000; background: #ffcc00; border: none; padding: 12px 30px; cursor: pointer; transition: all .15s; }
.gta-game-container .gb:hover { background: #ff6b35; color: #fff; transform: scale(1.05); }
.gta-game-container .gta-do { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); display: none; justify-content: center; align-items: center; z-index: 25; }
.gta-game-container .gta-db { background: #1a1a1a; border: 3px solid #ffcc00; max-width: 520px; width: 90%; box-shadow: 0 0 30px rgba(255,204,0,.2); }
.gta-game-container .gta-dh { background: #ffcc00; padding: 8px 15px; display: flex; align-items: center; gap: 10px; }
.gta-game-container .gta-da { width: 64px; height: 64px; background: #ff6b35; border: 2px solid #000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; flex-direction: column; gap: 2px; }
.gta-game-container .gta-da .ph { width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.3); }
.gta-game-container .gta-da .pb { width: 32px; height: 18px; border-radius: 10px 10px 0 0; background: rgba(0,0,0,.3); }
.gta-game-container .gta-dn { font-family: 'Russo One', sans-serif; font-size: 14px; color: #000; }
.gta-game-container .gta-dby { padding: 20px; }
.gta-game-container .gta-dt { color: #ccc; font-size: 9px; line-height: 2; margin-bottom: 20px; }
.gta-game-container .gta-dbt { font-family: 'Press Start 2P', monospace; font-size: 10px; color: #000; background: #ffcc00; border: none; padding: 10px 20px; cursor: pointer; width: 100%; transition: all .15s; }
.gta-game-container .gta-dbt:hover { background: #ff6b35; color: #fff; }
.gta-game-container .gta-sc { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 15; pointer-events: none; display: none; text-align: center; }
.gta-game-container .gta-sc .st { font-family: 'Russo One', sans-serif; font-size: 24px; color: #ffcc00; text-shadow: 2px 2px 0 #000, 0 0 20px rgba(255,204,0,.5); animation: gta-sp .5s ease-out; }
@keyframes gta-sp { 0% { transform: scale(2); opacity: 0; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.gta-game-container .gta-mc { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 20; background: rgba(0,0,0,.92); }
.gta-game-container .gta-mc.h { display: none; }
.gta-game-container .gta-mc h2 { font-family: 'Russo One', sans-serif; font-size: 28px; color: #ffcc00; text-shadow: 2px 2px 0 #ff6b35; margin-bottom: 15px; }
.gta-game-container .gta-mc .rw { font-size: 14px; color: #ff6b35; margin-bottom: 10px; }
.gta-game-container .gta-mc .mi { font-size: 9px; color: #888; margin-bottom: 25px; }
.gta-game-container .gta-gc { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 20; background: rgba(0,0,0,.92); }
.gta-game-container .gta-gc.h { display: none; }
.gta-game-container .gta-gc h2 { font-family: 'Russo One', sans-serif; font-size: 32px; color: #ffcc00; text-shadow: 3px 3px 0 #ff6b35; margin-bottom: 10px; }
.gta-game-container .gta-gc .tt { font-family: 'Russo One', sans-serif; font-size: 22px; color: #ff6b35; margin-bottom: 5px; }
.gta-game-container .gta-gc .tl { font-size: 9px; color: #888; margin-bottom: 30px; }
.gta-game-container .gta-gc .ce { font-family: 'Permanent Marker', cursive; font-size: 11px; color: #555; letter-spacing: 4px; margin-top: 20px; }
.gta-game-container .gta-bo { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: none; justify-content: center; align-items: center; z-index: 22; background: rgba(255,0,0,.15); }
.gta-game-container .gta-bo h2 { font-family: 'Russo One', sans-serif; font-size: 48px; color: #f22; text-shadow: 3px 3px 0 #000, 0 0 40px rgba(255,0,0,.6); margin-bottom: 15px; animation: gta-bs .5s ease-out; }
.gta-game-container .gta-bo .pn { font-size: 12px; color: #f66; margin-bottom: 25px; text-shadow: 1px 1px 0 #000; }
@keyframes gta-bs { 0% { transform: scale(3) rotate(-5deg); opacity: 0; } 40% { transform: scale(1.1) rotate(2deg); opacity: 1; } 70% { transform: scale(.95) rotate(-1deg); } 100% { transform: scale(1) rotate(0); } }
.gta-game-container .gta-tm { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); z-index: 11; pointer-events: none; display: none; }
.gta-game-container .gta-tm .tv { font-family: 'Russo One', sans-serif; font-size: 28px; color: #ff2222; text-shadow: 2px 2px 0 #000; }
.gta-game-container .gta-tm.ok .tv { color: #ffcc00; }
.gta-game-container .gta-fm { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 22; display: none; text-align: center; background: rgba(0,0,0,.85); padding: 30px; border: 3px solid #ff2222; }
.gta-game-container .gta-fm h2 { font-family: 'Russo One', sans-serif; font-size: 28px; color: #ff2222; text-shadow: 2px 2px 0 #000; margin-bottom: 15px; }
.gta-game-container .gta-fm .fr { font-size: 10px; color: #ff6666; margin-bottom: 20px; }


/* === Portrait arcade refresh ===
   Targets the current gta-system.js markup, including its inline styles.
   Important is restricted to presentation; JS retains display/state control.
   Original selectors above remain for older markup. */
.gta-wrapper {
  --gta-gold: #ffcc00;
  --gta-paper: #f3e6c9;
  --gta-panel: #191719;
  container-type: size;
  font-family: 'Press Start 2P', monospace;
  color: var(--gta-paper);
  overflow: hidden;
  isolation: isolate;
  background: #141414;
}
.gta-wrapper *, .gta-wrapper *::before, .gta-wrapper *::after { box-sizing: border-box; }
.gta-wrapper > .gta-canvas { border: 0; }
.gta-wrapper .gta-hud { padding: 14px !important; gap: 56px; }
.gta-wrapper .gta-hud > div {
  padding: 10px 12px;
  gap: 8px !important;
  background: rgba(20,18,20,.9);
  border-top: 3px solid var(--gta-gold);
  box-shadow: 3px 3px 0 rgba(0,0,0,.6);
  max-width: 40%;
}
.gta-wrapper .gta-hud > div:last-child { text-align: right; }
.gta-wrapper .gta-hi { font-size: 12px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
.gta-wrapper .gta-hi > span:first-child { font-size: 9px !important; color: #c4bcab !important; }
.gta-wrapper .gta-hB { color: #ffb25b !important; }
.gta-wrapper .gta-hW { color: #ff6557 !important; letter-spacing: 2px; }
.gta-wrapper .gta-hN { font-size: 9px !important; }
.gta-wrapper .gta-hM { font-size: 10px; }
.gta-wrapper .gta-mb {
  padding: 12px 16px !important;
  background: #191719 !important;
  border-top: 3px solid var(--gta-gold) !important;
}
.gta-wrapper .gta-mt { font-size: 10px !important; line-height: 1.7 !important; }
/* The current minimap wrapper has no class. */
.gta-wrapper > div:has(> .gta-minimap-canvas) {
  width: 144px !important;
  height: 144px !important;
  right: 14px !important;
  bottom: 72px !important;
  background: #171517 !important;
  border: 3px solid var(--gta-gold) !important;
  box-shadow: 4px 4px 0 #080808;
}
.gta-wrapper .gta-minimap-canvas { border: 0; display: block; }
.gta-wrapper .gta-gear-btn {
  top: 14px !important;
  width: 40px !important;
  height: 40px !important;
  background: #191719 !important;
  box-shadow: 3px 3px 0 #080808 !important;
}
.gta-wrapper .gta-DO { background: rgba(7,6,9,.48) !important; padding: 16px; }
.gta-wrapper .gta-DO > div {
  width: 100% !important;
  max-width: 600px !important;
  max-height: 100%;
  overflow-y: auto;
  background: var(--gta-panel) !important;
  border: 3px solid var(--gta-gold) !important;
  box-shadow: 8px 8px 0 rgba(0,0,0,.75) !important;
}
.gta-wrapper .gta-DO > div > div:first-child {
  padding: 12px 16px !important;
  gap: 18px !important;
  background: #342022 !important;
  border-bottom: 2px solid #ffcc00;
}
.gta-wrapper .gta-DA {
  width: 112px !important;
  height: 112px !important;
  border: 2px solid var(--gta-gold) !important;
  box-shadow: 4px 4px 0 #110c0c;
  image-rendering: pixelated;
  background-position: center;
  background-size: cover;
}
/* Ready for an img portrait; image assignment remains a JS responsibility. */
.gta-wrapper .gta-DA > img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.gta-wrapper .gta-DA:has(> img) > div { display: none; }
.gta-wrapper .gta-DN {
  font-size: 24px !important;
  line-height: 1.15;
  color: var(--gta-gold) !important;
  text-shadow: 2px 2px 0 #100a0b;
  overflow-wrap: anywhere;
}
.gta-wrapper .gta-DO > div > div:last-child { padding: 20px 24px !important; }
.gta-wrapper .gta-DT {
  color: var(--gta-paper) !important;
  font-size: 11px !important;
  line-height: 1.95 !important;
  margin-bottom: 20px !important;
  overflow-wrap: anywhere;
}
.gta-wrapper :is(.gta-DBt,.gta-sbtn,.gta-nbtn,.gta-ebtn,.gta-bbtn,.gta-fbtn,.gta-resume-btn,.gta-restart-btn,.gta-exitdesk-btn) {
  min-height: 44px;
  padding: 12px 18px !important;
  border: 2px solid #0d0b0c !important;
  box-shadow: 3px 3px 0 #080808 !important;
  font-size: 11px !important;
  line-height: 1.6;
  transition: background-color .12s, color .12s;
}
.gta-wrapper button:hover { filter: brightness(1.12); }
.gta-wrapper button:active { box-shadow: none !important; }
.gta-wrapper button:focus-visible { outline: 3px solid #fff0ca; outline-offset: 4px; }
.gta-wrapper :is(.gta-MC,.gta-GC) { background: rgba(12,10,14,.85) !important; padding: 24px; text-align: center; overflow: auto; }
.gta-wrapper :is(.gta-MC,.gta-GC,.gta-FM,.gta-SETMENU) h2 { line-height: 1.25; margin-top: 0; }
.gta-wrapper :is(.gta-mci,.gta-frt) { color: #e4d7c1 !important; line-height: 1.9; }
.gta-wrapper .gta-TM { top: 64px !important; padding: 5px 12px; background: #191719; border-bottom: 3px solid #ff6557; }
.gta-wrapper .gta-TM.ok { border-color: var(--gta-gold); }
.gta-wrapper .gta-TM.ok .gta-tmv { color: var(--gta-gold) !important; }
.gta-wrapper .gta-FM { width: min(90%,480px); max-height: 90%; overflow: auto; box-shadow: 8px 8px 0 #080808; }
.gta-wrapper .gta-SETMENU { padding: 16px; }
.gta-wrapper .gta-SETMENU > div {
  min-width: 0 !important;
  width: min(100%,420px);
  max-height: 100%;
  overflow: auto;
  padding: 24px !important;
  background: #191719 !important;
  box-shadow: 8px 8px 0 rgba(0,0,0,.7) !important;
}
/* Container queries follow the game window, not the surrounding desktop. */
@container (min-width: 1100px) and (min-height: 650px) {
  .gta-wrapper .gta-hi { font-size: 15px !important; }
  .gta-wrapper .gta-hi > span:first-child { font-size: 10px !important; }
  .gta-wrapper .gta-hM { font-size: 12px; }
  .gta-wrapper > div:has(> .gta-minimap-canvas) { width: 180px !important; height: 180px !important; }
  .gta-wrapper .gta-DO > div { max-width: 680px !important; }
  .gta-wrapper .gta-DA { width: 144px !important; height: 144px !important; }
  .gta-wrapper .gta-DT { font-size: 12px !important; }
}
@container (max-width: 560px) {
  .gta-wrapper .gta-hud { padding: 8px !important; }
  .gta-wrapper .gta-hud > div { padding: 7px; }
  .gta-wrapper .gta-hi { font-size: 10px !important; }
  .gta-wrapper .gta-hi > span:first-child { font-size: 8px !important; }
  .gta-wrapper .gta-hM { font-size: 8px; }
  .gta-wrapper .gta-DA { width: 80px !important; height: 80px !important; }
  .gta-wrapper .gta-DN { font-size: 20px !important; }
  .gta-wrapper .gta-DT { font-size: 10px !important; }
  .gta-wrapper .gta-DO > div > div:last-child { padding: 16px !important; }
  .gta-wrapper .gta-mt { font-size: 8px !important; }
  .gta-wrapper > div:has(> .gta-minimap-canvas) { width: 104px !important; height: 104px !important; bottom: 76px !important; }
}
@container (max-height: 420px) {
  .gta-wrapper .gta-DA { width: 64px !important; height: 64px !important; }
  .gta-wrapper .gta-DO > div > div:first-child { padding: 8px 12px !important; }
  .gta-wrapper .gta-DO > div > div:last-child { padding: 12px !important; }
  .gta-wrapper .gta-DT { font-size: 10px !important; margin-bottom: 12px !important; }
  .gta-wrapper > div:has(> .gta-minimap-canvas) { width: 88px !important; height: 88px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .gta-wrapper *, .gta-wrapper *::before, .gta-wrapper *::after { animation: none !important; transition: none !important; }
}

/* === Club pack (js/gta-club-pack.js) ===
   Two-voice closers ("— I'm not hiding. / — Alright…") keep their line breaks. */
.gta-wrapper .gta-DT { white-space: pre-line; }
.gta-wrapper .gta-INT .gta-INTs { animation: gta-intStar .42s steps(1) infinite; }
@keyframes gta-intStar { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
