
/* ------------------------------------------------------------- */
/* Rev 15: Global Anti-Drag Shield (No Ghost Images)             */
/* ------------------------------------------------------------- */
*, *::before, *::after {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

img, a, button, canvas, svg, .title-card, .sfwin {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* PunchWeb Retro Pixel Art Theme */
@font-face {
  font-family: 'Chevy';
  src: url('/assets/fonts/chevyray.ttf');
}
@font-face {
  font-family: 'chevyray';
  src: url('/assets/fonts/chevyray.ttf');
}
@font-face {
  font-family: 'ChevyOeuf';
  src: url('/assets/fonts/chevyray-oeuf.ttf');
}
@font-face {
  font-family: 'chevyray-oeuf';
  src: url('/assets/fonts/chevyray-oeuf.ttf');
}
@font-face {
  font-family: 'Pixelify';
  src: url('/assets/fonts/pixelify.ttf');
}

/* Hide old header & unwanted external links */
.window-head,
header.window-head,
#btn-discord,
#btn-about,
#btn-share,
.tag.embed-open,
.more-link,
#title-share,
#featured,
.home-legal,
#rank-card-signin {
  display: none !important;
}

/* Default clean retro dark purple background for menu screens (hiding white Wikipedia behind them) */
#title.screen:not(.hidden),
#mp.screen:not(.hidden),
#loading.screen:not(.hidden) {
  background: radial-gradient(circle at center, #241432 0%, #0d0714 100%) !important;
}

#adv.screen { background: transparent !important; }

/* Multiplayer Waiting Arena: transparent screen so map and characters are fully visible & playable */
#lobby.screen {
  background: transparent !important;
  pointer-events: none !important;
}
#lobby.screen > .sfwin,
#lobby.screen > .title-card,
#lobby-alone,
#lobby-share,
#lobby-waiting,
#lobby-host {
  display: none !important;
}

/* ------------------------------------------------------------- */
/* 5-Stage Retro Fighting Game Opening Intro Animation           */
/* ------------------------------------------------------------- */
#punchweb-intro-overlay {
  position: fixed;
  inset: 0;
  background: #0d0714;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

#punchweb-intro-overlay.pw-intro-fadeout {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pw-intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Screen shake container */
.pw-shake-active {
  animation: pwScreenShake 0.22s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes pwScreenShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-10px, 6px); }
  40% { transform: translate(10px, -6px); }
  60% { transform: translate(-6px, 4px); }
  80% { transform: translate(6px, -4px); }
  100% { transform: translate(0, 0); }
}

/* Stickman Boxer Logo in Intro */
.pw-intro-logo {
  width: 160px;
  height: 160px;
  image-rendering: pixelated;
  transform: scale(0.1);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.3), opacity 0.25s;
}

.pw-intro-logo.punch-active {
  transform: scale(1.3) rotate(6deg);
  opacity: 1;
}

.pw-intro-logo.punch-settled {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Expanding Shockwave Ring */
.pw-shockwave-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  border-radius: 50%;
  border: 8px solid #ffb703;
  box-shadow: 0 0 25px #fb8500, inset 0 0 15px #ffb703;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.4s ease-out;
}

.pw-shockwave-ring.burst {
  transform: scale(6);
  opacity: 0;
}

/* Sparks scattering on impact */
.pw-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: #ffb703;
  box-shadow: 0 0 8px #fb8500;
  opacity: 1;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.35s ease-out;
}

/* Glowing Title "PUNCHWEB" */
.pw-intro-title {
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 68px;
  color: #ffb703;
  text-shadow: 0 0 25px #fb8500, 5px 5px 0px #000, -2px -2px 0px #d90429;
  margin-top: 15px;
  letter-spacing: 3px;
  opacity: 0;
  transform: scale(0.3);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.25s;
}

.pw-intro-title.title-active {
  opacity: 1;
  transform: scale(1);
}

/* ------------------------------------------------------------- */
/* Main Menu (Retro ChevyRay Style)                              */
/* ------------------------------------------------------------- */
#punchweb-main-menu {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #241432 0%, #0d0714 100%);
  background-size: cover;
  background-position: center;
  z-index: 80000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pw-menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.pw-menu-logo {
  width: 105px;
  height: 105px;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 #000);
  margin-bottom: 4px;
}

.pw-menu-title {
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 64px;
  color: #fb8500;
  text-shadow: 5px 5px 0px #000, 2px 2px 0px #ffb703;
  margin: 0;
  letter-spacing: 3px;
  line-height: 1.1;
}

.pw-menu-box {
  width: 380px;
  background: #191224;
  border: 5px solid #000;
  box-shadow: 0 8px 0 #000, inset 0 0 0 3px #3d2752;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pw-pixel-btn {
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 28px;
  color: #fff;
  background: #2b1b3d;
  border: 4px solid #000;
  box-shadow: inset -4px -4px 0px #150c21, inset 4px 4px 0px #4d336a, 0 6px 0px #000;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s, box-shadow 0.08s;
  position: relative;
  letter-spacing: 1.5px;
}

.pw-pixel-btn:hover {
  background: #3a2452;
  color: #ffb703;
  transform: translateY(-2px);
  box-shadow: inset -4px -4px 0px #150c21, inset 4px 4px 0px #5c3c7e, 0 8px 0px #000;
}

.pw-pixel-btn:active {
  transform: translateY(4px);
  box-shadow: inset -2px -2px 0px #150c21, inset 2px 2px 0px #5c3c7e, 0 2px 0px #000;
}

.pw-btn-play {
  background: #d90429 !important;
  box-shadow: inset -4px -4px 0px #7d0217, inset 4px 4px 0px #ef233c, 0 6px 0px #000 !important;
}

.pw-btn-play:hover {
  background: #ef233c !important;
  color: #fff !important;
  box-shadow: inset -4px -4px 0px #7d0217, inset 4px 4px 0px #ff4d6d, 0 8px 0px #000 !important;
}

/* Back to Main Menu Button */
.pw-back-btn {
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 18px;
  color: #ffb703;
  background: #1f142b;
  border: 3px solid #000;
  box-shadow: 0 4px 0 #000;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform 0.08s;
}

.pw-back-btn:hover {
  background: #331f47;
  transform: translateY(-2px);
}

/* User Account Badge (Top Right) */
#pw-user-badge {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 85000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pw-badge-btn {
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 16px;
  color: #000;
  background: #ffb703;
  border: 3px solid #000;
  box-shadow: 0 4px 0 #000;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 0.08s;
}

.pw-badge-btn:hover {
  background: #fb8500;
  transform: translateY(-2px);
}

.pw-badge-sub {
  margin-left: 8px;
  font-size: 13px;
  background: #000000;
  color: #ffb703;
  padding: 2px 8px;
  border: 1px solid #000000;
  display: inline-block;
  vertical-align: middle;
}

/* ------------------------------------------------------------- */
/* Lobby Screen & 18 Maps Gallery                                */
/* ------------------------------------------------------------- */
#mp-maps {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  padding: 8px 4px 12px 4px !important;
  gap: 12px !important;
  scrollbar-width: thin;
}

#mp-maps .map-tile {
  flex: 0 0 auto !important;
  border: 3px solid #2b1b3d !important;
  transition: transform 0.1s, border-color 0.1s !important;
  cursor: pointer !important;
}

#mp-maps .map-tile:hover {
  transform: translateY(-2px);
  border-color: #ffb703 !important;
}

#mp-maps .map-tile.selected {
  border: 3px solid #ffb703 !important;
  box-shadow: 0 0 12px #ffb703, inset 0 0 6px #fb8500 !important;
  transform: scale(1.05) !important;
}

/* Top Lobby HUD */
#pw-lobby-hud {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #191224;
  border: 3px solid #000;
  box-shadow: 0 6px 0 #000;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 70000;
  font-family: 'Chevy', 'Pixelify', monospace;
  color: #fff;
}

body.pw-in-lobby #pw-lobby-hud {
  display: flex !important;
}
body:not(.pw-in-lobby) #pw-lobby-hud {
  display: none !important;
}

body.pw-in-lobby #pw-lobby-player-panel {
  display: block !important;
}
body:not(.pw-in-lobby) #pw-lobby-player-panel {
  display: none !important;
}

.pw-hud-code {
  color: #ffb703;
  font-size: 20px;
}

.pw-copy-btn {
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 14px;
  padding: 4px 10px;
  background: #ffb703;
  color: #000;
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 0 3px 0 #000;
}

.pw-copy-btn:hover {
  background: #fb8500;
}

/* Host Panel (Lobi Ayarları) Modal */
#pw-host-panel {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #191224;
  border: 4px solid #000;
  box-shadow: 0 8px 0 #000;
  padding: 20px;
  width: 360px;
  z-index: 70001;
  font-family: 'Chevy', 'Pixelify', monospace;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}

/* Match Timer HUD */
#pw-timer-display {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #191224;
  border: 3px solid #000;
  box-shadow: 0 6px 0 #000;
  padding: 8px 20px;
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 28px;
  color: #ffb703;
  z-index: 70000;
  user-select: none;
}

/* Live Scoreboard (Top Left) */
#pw-scoreboard {
  position: fixed;
  top: 14px;
  left: 14px;
  background: rgba(25, 18, 36, 0.9);
  border: 3px solid #000;
  box-shadow: 0 6px 0 #000;
  padding: 10px 14px;
  font-family: 'Chevy', 'Pixelify', monospace;
  color: #fff;
  z-index: 70000;
  min-width: 180px;
  user-select: none;
}

.pw-score-title {
  font-size: 16px;
  color: #ffb703;
  border-bottom: 2px solid #3d2752;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.pw-score-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 3px 0;
}

/* Modals General */
.pw-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 7, 20, 0.85);
  z-index: 90000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto !important;
  padding: 24px 16px;
  box-sizing: border-box;
}

.pw-modal-card {
  width: 720px;
  max-width: 90vw;
  max-height: 86vh;
  overflow-y: auto !important;
  background: #191224;
  border: 4px solid #000;
  box-shadow: 0 8px 0 #000;
  padding: 24px;
  font-family: 'Chevy', 'Pixelify', monospace;
  color: #fff;
  box-sizing: border-box;
  margin: auto;
  scrollbar-width: thin !important;
  scrollbar-color: #ffb703 #0d0614 !important;
}

/* Retro Pixel-Art Scrollbars */
.pw-modal-card::-webkit-scrollbar,
.pw-bg-gallery::-webkit-scrollbar,
.bg-seg::-webkit-scrollbar,
.skins-shelf::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.pw-modal-card::-webkit-scrollbar-track,
.pw-bg-gallery::-webkit-scrollbar-track,
.bg-seg::-webkit-scrollbar-track,
.skins-shelf::-webkit-scrollbar-track {
  background: #0d0614;
  border: 1px solid #3d2752;
}
.pw-modal-card::-webkit-scrollbar-thumb,
.pw-bg-gallery::-webkit-scrollbar-thumb,
.bg-seg::-webkit-scrollbar-thumb,
.skins-shelf::-webkit-scrollbar-thumb {
  background: #ffb703;
  border: 1px solid #000;
}
.pw-modal-card::-webkit-scrollbar-thumb:hover,
.pw-bg-gallery::-webkit-scrollbar-thumb:hover,
.bg-seg::-webkit-scrollbar-thumb:hover,
.skins-shelf::-webkit-scrollbar-thumb:hover {
  background: #fb8500;
}

.pw-modal-title {
  font-size: 32px;
  color: #fb8500;
  text-shadow: 3px 3px 0 #000;
  margin-top: 0;
  margin-bottom: 16px;
  text-align: center;
}

.pw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.pw-field label {
  font-size: 15px;
  color: #ffb703;
}

.pw-field input[type="text"],
.pw-field input[type="password"] {
  background: #0f0a14;
  border: 2px solid #000;
  color: #fff;
  padding: 10px;
  font-family: 'Chevy', 'Pixelify', monospace;
  font-size: 16px;
  box-shadow: inset 2px 2px 0 #000;
}

.pw-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.pw-stat-item {
  background: #241432;
  border: 2px solid #000;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pw-stat-val {
  font-size: 24px;
  color: #ffb703;
}

.pw-stat-lbl {
  font-size: 13px;
  color: #aaa;
}

/* Background Management Cards in Settings */
.pw-bg-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 160px;
  overflow-y: auto;
  padding: 4px;
  background: #0f0a14;
  border: 2px solid #000;
  margin-bottom: 8px;
}

.pw-bg-card {
  position: relative;
  width: 90px;
  height: 60px;
  background: #241432;
  border: 2px solid #3d2752;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.1s, border-color 0.1s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pw-bg-card:hover {
  transform: scale(1.05);
  border-color: #ffb703;
}

.pw-bg-card.selected {
  border-color: #fb8500;
  box-shadow: 0 0 8px #fb8500;
}

.pw-bg-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pw-bg-card .pw-bg-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  text-align: center;
  padding: 2px 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-bg-card .pw-bg-delete-btn {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 3;
  background: rgba(217, 4, 41, 0.85);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  padding: 1px 4px;
  cursor: pointer;
  display: none;
}

.pw-bg-card:hover .pw-bg-delete-btn {
  display: block;
}

/* Respawn Overlay */
#pw-respawn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 7, 20, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 75000;
  font-family: 'Chevy', 'Pixelify', monospace;
  user-select: none;
  pointer-events: none;
}

.pw-respawn-msg {
  font-size: 32px;
  color: #ef233c;
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 8px;
}

.pw-respawn-countdown {
  font-size: 48px;
  color: #ffb703;
  text-shadow: 4px 4px 0 #000;
}

/* Match End "SÜRE BİTTİ!" Banner */
#pw-match-end-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 18, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 76000;
  font-family: 'Chevy', 'Pixelify', monospace;
  animation: pwBannerZoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.pw-match-end-title {
  font-size: 64px;
  color: #ff2a6d;
  text-shadow: 0 0 25px rgba(255, 42, 109, 0.8), 5px 5px 0 #000;
  letter-spacing: 4px;
  animation: pwTextPulse 0.8s infinite alternate;
}

.pw-match-end-subtitle {
  font-size: 28px;
  color: #ffb703;
  text-shadow: 3px 3px 0 #000;
  margin-top: 12px;
}

@keyframes pwBannerZoom {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pwTextPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Competitive TAB Key Leaderboard Overlay */
#pw-tab-leaderboard {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 16, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 74000;
  font-family: 'Chevy', 'Pixelify', monospace;
  user-select: none;
  pointer-events: none;
}

.pw-tab-box {
  background: #190e24;
  border: 3px solid #ffb703;
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  width: 90%;
  max-width: 680px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #3d2752;
  padding-bottom: 8px;
}

.pw-tab-title {
  font-size: 24px;
  color: #ffb703;
  text-shadow: 2px 2px 0 #000;
  font-weight: bold;
}

.pw-tab-mode {
  font-size: 14px;
  background: #7b2cbf;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #9d4edd;
}

.pw-tab-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 15px;
}

.pw-tab-table thead tr {
  background: #2a153d;
  color: #ffb703;
  border-bottom: 2px solid #5a327a;
}

.pw-tab-table th {
  padding: 8px 6px;
  font-weight: bold;
}

.pw-tab-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}

.pw-tab-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.2);
}

.pw-tab-table td {
  padding: 8px 6px;
  color: #fff;
}

.pw-tab-me {
  background: rgba(255, 183, 3, 0.18) !important;
  border: 1px solid #ffb703 !important;
}

.pw-tab-rank {
  color: #ffd166;
  font-weight: bold;
}

.pw-tab-name {
  color: #fff;
  font-weight: bold;
}

/* Winner Card & Podium */
#pw-winner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 20, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 75000;
  font-family: 'Chevy', 'Pixelify', monospace;
  animation: pwFadeIn 0.4s ease;
}

.pw-winner-card {
  background: #190e24;
  border: 4px solid #ffb703;
  box-shadow: 0 0 40px rgba(255, 183, 3, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.pw-winner-title {
  font-size: 42px;
  color: #ffb703;
  text-shadow: 4px 4px 0 #000;
  margin-bottom: 4px;
}

.pw-winner-avatar-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.pw-winner-pedestal {
  position: absolute;
  bottom: 12px;
  width: 140px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(255, 183, 3, 0.6) 0%, rgba(0,0,0,0) 75%);
  border-radius: 50%;
  pointer-events: none;
}

.pw-winner-name {
  font-size: 32px;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

.pw-winner-score {
  font-size: 20px;
  color: #06d6a0;
  font-weight: bold;
}

.pw-winner-leaderboard-wrap {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #3d2752;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
}

.pw-winner-avatar {
  width: 140px;
  height: 140px;
  margin: 16px 0;
  image-rendering: pixelated;
  animation: pwPulse 1s infinite alternate;
}

@keyframes pwPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes pwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 10-Second Map Voting Overlay */
#pw-voting-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 20, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 75000;
  font-family: 'Chevy', 'Pixelify', monospace;
}

.pw-voting-title {
  font-size: 42px;
  color: #ffb703;
  text-shadow: 4px 4px 0 #000;
  margin-bottom: 8px;
}

.pw-voting-timer {
  font-size: 26px;
  color: #ef233c;
  margin-bottom: 24px;
}

.pw-voting-cards {
  display: flex;
  gap: 20px;
}

.pw-vote-card {
  width: 220px;
  background: #191224;
  border: 4px solid #000;
  box-shadow: 0 6px 0 #000;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, border-color 0.1s;
}

.pw-vote-card:hover {
  transform: translateY(-4px);
  border-color: #ffb703;
}

.pw-vote-card.selected {
  border-color: #fb8500;
  background: #2b1b3d;
}

.pw-vote-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 2px solid #000;
}

.pw-vote-name {
  font-size: 20px;
  color: #fff;
  margin: 8px 0 4px 0;
}

.pw-vote-count {
  font-size: 16px;
  color: #ffb703;
}

/* Explicit Button Label Contrast Fix */
.pw-field label.pw-copy-btn,
.pw-copy-btn,
.pw-add-btn {
  background: #ffb703 !important;
  color: #000000 !important;
  font-weight: bold !important;
  cursor: pointer;
  border: 2px solid #000 !important;
}
.pw-field label.pw-copy-btn:hover,
.pw-copy-btn:hover,
.pw-add-btn:hover {
  background: #fb8500 !important;
  color: #000000 !important;
}

/* ESC Pause Menu Background Thumbnail Cards */
.bg-seg {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 8px !important;
  padding: 6px 2px !important;
  max-width: 100% !important;
  min-height: 85px !important;
}
.bg-seg .pw-bg-card {
  flex: 0 0 110px !important;
  width: 110px !important;
  height: 75px !important;
  position: relative !important;
  background: #000 !important;
  border: 2px solid #5b5b5b !important;
  cursor: pointer !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
}
.bg-seg .pw-bg-card img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  image-rendering: pixelated !important;
}
.bg-seg .pw-bg-card .pw-bg-label {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  background: rgba(0, 0, 0, 0.78) !important;
  font-size: 11px !important;
  text-align: center !important;
  padding: 3px 0 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bg-seg .pw-bg-card.selected {
  border-color: #ffb703 !important;
  box-shadow: 0 0 8px #ffb703 !important;
}

/* Top Lobby Bar Action Buttons */
.pw-lobby-start-btn {
  background: #e63946 !important;
  color: #ffffff !important;
  border: 2px solid #000 !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 14px !important;
  font-weight: bold !important;
  padding: 4px 14px !important;
  cursor: pointer !important;
  margin-left: 8px !important;
  text-shadow: 1px 1px 0 #000 !important;
  transition: background 0.1s;
}
.pw-lobby-start-btn:hover {
  background: #d62828 !important;
}

/* Geri Sayım Arkasındaki Yazıyı Gizle (#vs-top) */
#vs-top,
.vs-top {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Sol Üst Can Barı & 3 Kalp (Sadece İzin Verilen Modlarda) */
.vs-life {
  position: absolute !important;
  left: 16px !important;
  top: 16px !important;
  bottom: auto !important;
  width: 260px !important;
  height: 20px !important;
  background: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 0 4px 0 #000000, inset 0 0 0 2px #333333 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 2px !important;
  z-index: 99 !important;
}
#ui:not(.versus):not(.boss) .vs-life,
#ui.pw-no-hp:not(.boss) .vs-life {
  display: none !important;
}
.vs-life i {
  background: #e63946 !important;
  height: 100% !important;
  max-width: 100% !important;
  display: block !important;
  border: 1px solid #000000 !important;
  box-sizing: border-box !important;
}
.boss-lives {
  position: absolute !important;
  left: 16px !important;
  top: 44px !important;
  bottom: auto !important;
  display: none !important;
  gap: 6px !important;
  z-index: 99 !important;
}
#ui.boss .boss-lives {
  display: flex !important;
}
#ui:not(.versus):not(.boss) .hud-progress,
#ui:not(.versus):not(.boss) #hud-progress {
  left: 16px !important;
  top: 16px !important;
}
body.pw-has-vs-hp #pw-scoreboard {
  top: 68px !important;
  left: 16px !important;
}
.boss-lives i {
  width: 28px !important;
  height: 28px !important;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAmklEQVR4nO3UwQmAMAyF4V68eOkGXlzDEZ3EIVzJERSEgg08TDVNH2ghx+T/8GAI/wOv7+J+He/9doC0sI1TNtpDb/fbAeQieugQCqshzQC34WXNRh7ShiGEFyCC1sMLqD1zHM75HiCF+QClPxLzMA2gFkQCYJgGYAUp/vR0gKcQszANQAupFqYBIIhbmAYgIe5hGoCEuIetAAchtsoJCbf5iAAAAABJRU5ErkJggg==") 0 0 / 100% 100% no-repeat, url("/assets/sprites/heart.png") 0 0 / 100% 100% no-repeat !important;
  image-rendering: pixelated !important;
  filter: drop-shadow(0 3px 0 #000000) !important;
  display: inline-block !important;
}
.boss-lives i.gone {
  filter: grayscale(1) brightness(0.25) opacity(0.4) drop-shadow(0 2px 0 #000000) !important;
}

/* Kostüm Paneli: GİY Butonu, Worn Tag, Locked Tag */
.pw-wear-btn {
  background: #ffb703 !important;
  color: #000000 !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 20px !important;
  font-weight: bold !important;
  padding: 6px 24px !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 4px 0 #000000 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: transform 0.1s, background 0.1s !important;
}
.pw-wear-btn:hover {
  background: #fb8500 !important;
  transform: translateY(-2px) !important;
}
.pw-wear-btn.worn {
  background: #2a9d8f !important;
  color: #ffffff !important;
  cursor: default !important;
  box-shadow: 1px 1px 0 #000000 !important;
  opacity: 0.95 !important;
}
.pw-wear-btn.worn:hover {
  background: #2a9d8f !important;
  transform: none !important;
}

/* Lobi İçi ESC Duraklatma Menüsü */
#pw-lobby-pause-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(13, 7, 20, 0.88) !important;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999 !important;
}
.pw-lobby-pause-card {
  background: #1a1024 !important;
  border: 4px solid #ffb703 !important;
  box-shadow: 0 8px 0 #000000 !important;
  padding: 24px !important;
  width: 380px !important;
  max-width: 90vw !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  text-align: center !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
}
.pw-lobby-pause-card h2 {
  color: #ffb703 !important;
  font-size: 26px !important;
  margin: 0 !important;
}
.pw-lobby-pause-btn {
  background: #ffb703 !important;
  color: #000000 !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 10px 18px !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 4px 0 #000000 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
}
.pw-lobby-pause-btn:hover {
  background: #fb8500 !important;
}
.pw-lobby-pause-btn.danger {
  background: #e63946 !important;
  color: #ffffff !important;
}
.pw-lobby-pause-btn.danger:hover {
  background: #d62828 !important;
}
.pw-worn-tag {
  color: #ffb703 !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  text-shadow: 1px 1px 0 #000000 !important;
}
.pw-locked-tag {
  color: #999999 !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 16px !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid #444444 !important;
}

/* Boss Phase 2 Divine Shield and Regen Bar */
#boss-fill.regen {
  background: linear-gradient(90deg, #ffd700, #ffb703, #ffeaa7) !important;
  box-shadow: 0 0 16px #ffd700, 0 0 28px #ffb703 !important;
  animation: pwBossRegenPulse 0.4s ease-in-out infinite alternate !important;
}
@keyframes pwBossRegenPulse {
  0% { filter: brightness(1.0); }
  100% { filter: brightness(1.35) drop-shadow(0 0 8px #ffd700); }
}
.boss-shield-bar {
  width: 100%;
  height: 8px;
  background: #000000;
  border: 1px solid #ffd700;
  margin-top: 3px;
  box-shadow: 0 0 8px #ffd700;
  overflow: hidden;
  position: relative;
}
.boss-shield-fill {
  height: 100%;
  background: #ffd700;
  width: 100%;
  transition: width 0.1s linear;
}

/* KAYBETTİN (Defeat) Screen */
#pw-defeat-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: radial-gradient(circle at center, rgba(120, 0, 20, 0.95) 0%, rgba(10, 0, 10, 0.98) 100%) !important;
  z-index: 10000000 !important;
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none !important;
  backdrop-filter: blur(8px) !important;
}
.pw-defeat-title {
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 88px !important;
  color: #ef233c !important;
  text-shadow: 6px 6px 0px #000000, 0 0 35px #d90429 !important;
  letter-spacing: 8px !important;
  margin-bottom: 40px !important;
  text-align: center !important;
  animation: pwDefeatPulse 1.2s ease-in-out infinite alternate !important;
}
@keyframes pwDefeatPulse {
  0% { transform: scale(1.0); filter: brightness(1.0); }
  100% { transform: scale(1.04); filter: brightness(1.25) drop-shadow(0 0 20px #ef233c); }
}
.pw-defeat-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 32px !important;
  align-items: center !important;
  justify-content: center !important;
}
.pw-defeat-btn {
  background: #ffffff !important;
  color: #000000 !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 26px !important;
  font-weight: bold !important;
  padding: 12px 32px !important;
  border: 4px solid #000000 !important;
  box-shadow: 0 6px 0px #000000 !important;
  cursor: pointer !important;
  text-transform: lowercase !important;
  transition: transform 0.1s, background 0.1s !important;
}
.pw-defeat-btn:hover {
  background: #ffb703 !important;
  transform: translateY(-2px) !important;
}
.pw-defeat-btn:active {
  transform: translateY(4px) !important;
  box-shadow: 0 2px 0px #000000 !important;
}

/* ------------------------------------------------------------- */
/* Retro Pixel Scrollbar for Maps & Lists                        */
/* ------------------------------------------------------------- */
#mp-maps, .maps, .picks, .vs-maps, .pw-pixel-scroll {
  scrollbar-color: #ffb703 #1a0f26 !important;
  scrollbar-width: thin !important;
}
#mp-maps::-webkit-scrollbar,
.maps::-webkit-scrollbar,
.picks::-webkit-scrollbar,
.vs-maps::-webkit-scrollbar,
.pw-pixel-scroll::-webkit-scrollbar {
  height: 10px !important;
  width: 10px !important;
  background: #1a0f26 !important;
}
#mp-maps::-webkit-scrollbar-thumb,
.maps::-webkit-scrollbar-thumb,
.picks::-webkit-scrollbar-thumb,
.vs-maps::-webkit-scrollbar-thumb,
.pw-pixel-scroll::-webkit-scrollbar-thumb {
  background: #ffb703 !important;
  border: 2px solid #000000 !important;
  box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #d48b00 !important;
}
#mp-maps::-webkit-scrollbar-track,
.maps::-webkit-scrollbar-track,
.picks::-webkit-scrollbar-track,
.vs-maps::-webkit-scrollbar-track,
.pw-pixel-scroll::-webkit-scrollbar-track {
  background: #1a0f26 !important;
  border: 2px solid #000000 !important;
}

/* Lobiden Çık Butonu */
.pw-btn-leave {
  background: #780016 !important;
  color: #ffffff !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 14px !important;
  padding: 4px 12px !important;
  border: 2px solid #000000 !important;
  box-shadow: 0 3px 0 #000000 !important;
  cursor: pointer !important;
  margin-left: 6px !important;
  transition: background 0.1s;
}
.pw-btn-leave:hover {
  background: #ef233c !important;
}

/* Lobi İsim Alanı */
.pw-lobby-name-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 14px !important;
  color: #ffb703 !important;
}
#pw-lobby-name-input {
  background: #0f0a14 !important;
  color: #ffffff !important;
  border: 2px solid #2b1b3d !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 14px !important;
  padding: 3px 8px !important;
  width: 110px !important;
}
#pw-lobby-name-input:focus {
  border-color: #ffb703 !important;
  outline: none !important;
}

/* ------------------------------------------------------------- */
/* Match Start Connection Checklist Loading Overlay              */
/* ------------------------------------------------------------- */
#pw-match-loading-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: radial-gradient(circle at center, rgba(30, 15, 45, 0.96) 0%, rgba(10, 5, 18, 0.98) 100%) !important;
  z-index: 9999999 !important;
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none !important;
  backdrop-filter: blur(6px) !important;
}
.pw-loading-title {
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 42px !important;
  color: #ffb703 !important;
  text-shadow: 4px 4px 0px #000000, 0 0 25px rgba(255, 183, 3, 0.6) !important;
  letter-spacing: 4px !important;
  margin-bottom: 24px !important;
  text-align: center !important;
}
.pw-loading-box {
  background: #140d1e !important;
  border: 4px solid #ffb703 !important;
  box-shadow: 0 8px 0px #000000 !important;
  width: 480px !important;
  max-width: 90vw !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.pw-loading-player-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #0d0614 !important;
  border: 2px solid #2b1b3d !important;
  padding: 10px 14px !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 18px !important;
  color: #ffffff !important;
}
.pw-loading-status {
  font-size: 14px !important;
  font-weight: bold !important;
  padding: 4px 10px !important;
  border: 2px solid #000000 !important;
}
.pw-loading-status.ready {
  background: #2a9d8f !important;
  color: #ffffff !important;
}
.pw-loading-status.waiting {
  background: #e76f51 !important;
  color: #ffffff !important;
  animation: pwWaitingBlink 1s infinite alternate !important;
}
@keyframes pwWaitingBlink {
  0% { opacity: 0.6; }
  100% { opacity: 1.0; }
}
.pw-btn-forstart {
  background: #e63946 !important;
  color: #ffffff !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 18px !important;
  padding: 10px 20px !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 4px 0 #000000 !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  align-self: center !important;
  transition: transform 0.1s, background 0.1s !important;
}
.pw-btn-forstart:hover {
  background: #ff4d6d !important;
  transform: translateY(-2px) !important;
}

/* ------------------------------------------------------------- */
/* Web Portal: Sol Üst "PunchWeb İndir (.exe)" Butonu            */
/* ------------------------------------------------------------- */
#pw-web-download-btn {
  position: fixed !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 90000 !important;
  display: none;
  align-items: center !important;
  gap: 8px !important;
  background: #d90429 !important;
  color: #ffffff !important;
  font-family: 'Chevy', 'Pixelify', monospace !important;
  font-size: 14px !important;
  font-weight: bold !important;
  padding: 8px 16px !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 4px 0px #000000 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.1s, transform 0.1s !important;
}
#pw-web-download-btn:hover {
  background: #ef233c !important;
  transform: translateY(-2px) !important;
}


/* ==========================================================
   REVISION 13 HUD & UI ENHANCEMENTS
   ========================================================== */

/* 1. HUD Progress (Destruction Percentage) - Positioned cleanly to the RIGHT of health bar */
.hud-progress, #hud-progress {
  position: absolute !important;
  left: 288px !important;
  top: 12px !important;
  width: 220px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 3px 8px !important;
  box-sizing: border-box !important;
  background: #14101e !important;
  border: 2px solid #3c324c !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7) !important;
  z-index: 100 !important;
}
.hud-progress .meter {
  position: relative !important;
  flex: 1 !important;
  height: 12px !important;
  background: #0d0614 !important;
  border: 1px solid #483d5a !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}
.hud-progress #hud-meter {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  background: #ffd700 !important;
  transition: width 0.15s ease !important;
}
.hud-progress #hud-meter-ghost {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  background: #7a6500 !important;
}
.hud-progress p, #hud-pct {
  color: #ffd700 !important;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 10px !important;
  font-weight: bold !important;
  min-width: 44px !important;
  text-align: right !important;
  margin: 0 !important;
}

/* 2. Completely eliminate all Rank / Level / XP displays across the entire game */
#pw-user-badge,
.rank-card,
.xp-strip,
.xp-track,
.rank-name,
#complete-xp-row,
#complete-rank,
.sign-in-prompt,
#pause .sign-in-prompt,
.xp-reward-toast {
  display: none !important;
}

/* 3. ESC Pause Menu cleanup: remove Halloween Skin Pack, Sign-in, and Leaderboard */
#pause .pack-promo,
.pack-promo,
.pack-promo-pass,
.skins-pass,
#pause-board {
  display: none !important;
}

/* 4. Anti-flash shield: prevent destroyed website canvas from showing in menus */
#stage,
#wrap,
body {
  background: #0d0614 !important;
}
#adv.screen, #adv.screen:not(.hidden) { background: transparent !important; }

/* Centering Title & Play Dialogs Perfectly */
#title.screen:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: radial-gradient(ellipse at center, #1e0e2e 0%, #0d0614 100%) !important;
}

#title > .title-row {
  margin: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#title-card,
#title .title-card {
  margin: 0 auto !important;
}

#mp.screen:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: radial-gradient(ellipse at center, #1e0e2e 0%, #0d0614 100%) !important;
}

#mp.screen {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
}

#mp.screen > .title-card,
#mp.screen > .sfwin,
#mp > .title-card,
#mp > .sfwin {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-height: 90vh !important;
  z-index: 1000 !important;
}

#punchweb-menu {
  background: radial-gradient(ellipse at center, #1e0e2e 0%, #0d0614 100%) !important;
}


/* ------------------------------------------------------------- */
/* Rev 14: Minecraft Bedrock Style Character Wardrobe Widget     */
/* ------------------------------------------------------------- */
.pw-wardrobe-widget {
  position: fixed;
  right: clamp(60px, calc(24vw - 230px), 210px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 85000 !important;
  user-select: none;
  pointer-events: none;
}

.pw-wardrobe-nametag {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-family: 'chevyray', 'Pixelify', monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 5px 18px;
  text-shadow: 2px 2px 0px #000;
  letter-spacing: 1px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.pw-wardrobe-stage {
  position: relative;
  width: 320px;
  height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

#pw-wardrobe-canvas {
  width: 320px;
  height: 320px;
  display: block;
  image-rendering: pixelated;
  pointer-events: none;
}

.pw-wardrobe-pedestal {
  position: absolute;
  bottom: 16px;
  width: 180px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.pw-wardrobe-btn {
  margin-top: 14px;
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: #272727;
  color: #ededed;
  font-family: 'chevyray', 'Pixelify', monospace;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #5b5b5b;
  border-radius: 4px;
  box-shadow: 0px 2px 0px 0px #5b5b5b inset, 0px -2px 0px 0px #5b5b5b inset,
              -2px 0px 0px 0px #5b5b5b inset, 2px 0px 0px 0px #5b5b5b inset,
              0px 4px 0px 0px #151515, 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
  outline: none;
}

.pw-wardrobe-btn:hover {
  background: #333333;
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0px 2px 0px 0px #f59e0b inset, 0px -2px 0px 0px #f59e0b inset,
              -2px 0px 0px 0px #f59e0b inset, 2px 0px 0px 0px #f59e0b inset,
              0px 4px 0px 0px #151515, 0 0 14px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.pw-wardrobe-btn:active {
  transform: translateY(2px);
  box-shadow: 0px 1px 0px 0px #151515;
}

.pw-hanger-icon {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
  stroke: currentColor;
}

/* ------------------------------------------------------------- */
/* Rev 14: Gardırop İçi "GİY" ve "GİYİLDİ" Buton Stilleri       */
/* ------------------------------------------------------------- */
.pw-wear-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 24px !important;
  font-family: 'chevyray', 'Pixelify', monospace !important;
  font-size: 16px !important;
  font-weight: bold !important;
  background: #ffb703 !important;
  color: #12091c !important;
  border: 2px solid #fb8500 !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 0 #d97706, 0 6px 12px rgba(0, 0, 0, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-shadow: none !important;
}

.pw-wear-btn:hover:not(:disabled) {
  background: #ffd166 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 #d97706, 0 8px 16px rgba(255, 183, 3, 0.4) !important;
}

.pw-wear-btn:active:not(:disabled) {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 #d97706 !important;
}

.pw-wear-btn.worn,
.pw-wear-btn:disabled {
  background: #2ec4b6 !important;
  color: #ffffff !important;
  border-color: #209388 !important;
  box-shadow: 0 4px 0 #186f67 !important;
  cursor: default !important;
  opacity: 0.95 !important;
  transform: none !important;
}

.pw-locked-tag {
  font-family: 'chevyray', 'Pixelify', monospace;
  color: #ef233c;
  font-size: 15px;
  padding: 6px 12px;
  background: rgba(239, 35, 60, 0.15);
  border: 1px solid #ef233c;
  border-radius: 4px;
}


/* Anti-flash bleed-through shield for modals */
#skins.screen,
#skins.screen:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: radial-gradient(ellipse at center, #1e0e2e 0%, #0d0614 100%) !important;
  z-index: 90000 !important;
}

#skins > .sfwin {
  margin: auto !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

/* Hide Spritefusion vs-top timer completely to prevent overlap with pw timer */
#ui.versus #vs-top,
#vs-top {
  display: none !important;
}

/* Permanently hide boss victory share and reward buttons */
#boss-over-share,
#boss-over-social,
#boss-over-reward {
  display: none !important;
}

.screen.hidden, .hidden { display: none !important; }

/* ------------------------------------------------------------- */
/* PunchWeb v1.2.0: Version Badge, AFK Button & Respawn HUD      */
/* ------------------------------------------------------------- */
#punchweb-version-badge {
  position: fixed;
  bottom: 14px;
  left: 18px;
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.45);
  z-index: 99999;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

#btn-afk.pw-afk-active {
  background: #f1c40f !important;
  color: #12091c !important;
  border-color: #f39c12 !important;
  font-weight: bold !important;
}
#btn-afk.pw-afk-active p {
  color: #12091c !important;
  font-weight: bold !important;
}

#pw-respawn-countdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(18, 9, 28, 0.95);
  border: 2px solid #ff2a6d;
  box-shadow: 0 0 25px rgba(255, 42, 109, 0.6);
  padding: 18px 32px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  z-index: 999999;
  text-align: center;
  pointer-events: none;
}

.pw-update-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 16, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
}
.pw-update-card {
  background: #1e0e2e;
  border: 2px solid #7928ca;
  border-radius: 8px;
  padding: 24px;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}
.pw-update-head {
  font-size: 18px;
  font-weight: bold;
  color: #ff007f;
  margin-bottom: 12px;
}
.pw-update-body p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #dddddd;
}
.pw-update-foot {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.pw-update-btn-dl {
  background: #ff2a6d;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}
.pw-update-btn-close {
  background: #332244;
  color: #cccccc;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}



/* ------------------------------------------------------------- */
/* PunchWeb Rev 16 Multi-Fix CSS                                */
/* ------------------------------------------------------------- */
body.pw-has-vs-hp #ui .vs-life,
#ui.versus .vs-life {
  display: block !important;
}

#pw-scoreboard.pw-tab-open {
  display: block !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

#mp.screen {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mp > .title-card {
  margin: auto !important;
}

.sky, #game, #screens {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

.pw-lobby-player-panel {
  position: fixed;
  top: 70px;
  right: 16px;
  background: rgba(20, 12, 30, 0.95);
  border: 3px solid #000;
  box-shadow: 0 6px 0 #000;
  padding: 10px 14px;
  font-family: 'Chevy', 'Pixelify', monospace;
  color: #fff;
  z-index: 69999;
  min-width: 220px;
  max-width: 280px;
  user-select: none;
}
.pw-lobby-panel-title {
  font-size: 14px;
  color: #ffb703;
  border-bottom: 2px solid #3d2752;
  padding-bottom: 4px;
  margin-bottom: 8px;
  font-weight: bold;
}
.pw-lobby-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pw-lobby-player-row .pw-pname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.pw-lobby-badge {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: bold;
}
.pw-badge-host {
  background: #7b2cbf;
  color: #fff;
}
.pw-badge-afk {
  background: #f1c40f;
  color: #000;
}
.pw-badge-you {
  background: #4cc9f0;
  color: #000;
}


/* Boss Encounter HUD Visibility overrides */
#ui.boss ~ #pw-lobby-hud,
#ui.boss ~ #pw-lobby-player-panel,
body.pw-in-boss #pw-lobby-hud,
body.pw-in-boss #pw-lobby-player-panel,
#ui.boss #pw-lobby-hud,
#ui.boss #pw-lobby-player-panel,
#pw-lobby-hud.pw-hidden,
#pw-lobby-player-panel.pw-hidden {
  display: none !important;
}

#ui.boss .boss-hud {
  z-index: 80000 !important;
  display: block !important;
  pointer-events: auto !important;
}
#ui.boss .boss-hud #boss-fill {
  display: block !important;
}
