/* Consolidated styles for all overrides */

/* Mobile-specific fixes to eliminate white box artifacts */
@media (max-width: 767px) {
  /* Remove all button focus states */
  button:focus,
  button:focus-visible,
  button:active,
  .mobile-overlay-button:focus,
  .mobile-overlay-button:focus-visible,
  .mobile-overlay-button:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
  }

  /* iOS Safari specific fixes - simplified */
  button,
  .mobile-overlay-button {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Ensure proper layering without artifacts */
  .mobile-overlay-controls {
    isolation: isolate !important;
    contain: layout style paint !important;
  }
}

/* YouTube player overrides - Block all branding and interactions */
iframe[src*="youtube.com"],
iframe[src*="youtube-nocookie.com"] {
  width: 100% !important;
  height: 100% !important;
  background: black !important;
  pointer-events: none !important;
  border: none !important;
  outline: none !important;
}

/* Allow player interaction when wrapper has allow-player-interaction class */
.allow-player-interaction iframe[src*="youtube.com"],
.allow-player-interaction iframe[src*="youtube-nocookie.com"],
.allow-player-interaction .youtube-no-ui iframe {
  pointer-events: auto !important;
}

/* Block YouTube UI elements */
.ytp-chrome-top,
.ytp-chrome-bottom,
.ytp-show-cards-title,
.ytp-watermark,
.ytp-gradient-top,
.ytp-gradient-bottom,
.ytp-chrome-controls,
.ytp-pause-overlay,
.ytp-suggested-action,
.ytp-endscreen-element,
.ytp-title,
.ytp-title-text,
.ytp-title-link,
.ytp-title-expanded-overlay,
.ytp-videowall-still,
.ytp-suggestion-set,
.ytp-endscreen-content,
.html5-endscreen,
.html5-player-chrome,
.ytp-cards-teaser,
.ytp-cards-button,
.ytp-info-panel-preview,
.ytp-branding,
.annotation,
.iv-drawer,
.ytp-paid-content-overlay,
.ytp-ad-overlay-container,
.ytp-ad-text-overlay,
.ytp-ce-element,
.ytp-ce-video,
.ytp-ce-playlist,
.ytp-ce-channel,
.ytp-ce-subscribe,
.ytp-ce-expanding-overlay,
.ytp-ce-element-shadow,
.ytp-impression-link,
.ytp-youtube-button,
.ytp-player-content,
.ytp-scroll-min,
.ytp-upnext,
.ytp-scroll-max {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Mobile-specific YouTube branding blocking */
@media (max-width: 767px) {
  iframe[src*="youtube.com"],
  iframe[src*="youtube-nocookie.com"] {
    position: relative !important;
  }
  
  /* Block mobile bottom branding area */
  iframe[src*="youtube.com"]::after,
  iframe[src*="youtube-nocookie.com"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: black;
    z-index: 999;
    pointer-events: none;
  }
  
  /* Additional mobile branding elements */
  .ytp-mobile-a11y-hidden-seek-button,
  .ytp-youtube-button,
  .ytp-watermark,
  .ytp-chrome-bottom,
  .ytp-chrome-controls,
  .ytp-player-content,
  .yt-simple-endpoint,
  .ytp-title-channel,
  .ytp-title-subtext {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
  }
}

.youtube-no-ui iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: black !important;
  pointer-events: none !important;
}

/* Twitch player overrides */
.twitch-no-ui iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: black !important;
}

.twitch-block-hover {
  pointer-events: none !important;
}

.twitch-allow-hover {
  pointer-events: auto !important;
}

.twitch-no-ui.is-playing {
  pointer-events: auto !important;
}

/* Voting button animations */
.voting-button {
  transition: all 0.2s ease-in-out;
}

.voting-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.voting-button:active {
  transform: translateY(0);
}

/* YouTube overlay mask */
.yt-overlay-mask {
  will-change: opacity;
  transition: opacity 0.3s ease-in-out;
}

/* Mobile brand shields */
.yt-brand-shield-left,
.yt-brand-shield-right {
  display: none;
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 36px;
  background: black;
  z-index: 10;
  pointer-events: none;
}

.yt-brand-shield-left {
  left: 0;
}

.yt-brand-shield-right {
  right: 0;
}

@media (max-width: 767px) {
  .yt-brand-shield-left,
  .yt-brand-shield-right {
    display: block;
  }
}

/* Vote overlay - stable positioning */
.vote-overlay {
  will-change: opacity;
  transition: opacity 0.2s ease-in-out;
}

/* Voting cards dissolve animations */
@keyframes dissolve-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out-down {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.voting-cards-dissolve {
  animation: dissolve-out 400ms ease-out forwards;
}

.confirmation-message-enter {
  animation: fade-in-up 400ms ease-out forwards;
  animation-delay: 100ms;
  opacity: 0;
}

.fade-out-down {
  animation: fade-out-down 300ms ease-out forwards;
}

/* Carousel specific styles */
.embla {
  overflow: hidden;
}

.embla__container {
  display: flex;
  gap: 1rem;
}

.embla__slide {
  flex: 0 0 auto;
  min-width: 0;
}*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
  :root {
    /* Surveillance Dark Theme */
    --background: 210 15% 8%;
    --foreground: 120 15% 85%;

    --card: 210 20% 12%;
    --card-foreground: 120 15% 85%;

    --popover: 210 20% 12%;
    --popover-foreground: 120 15% 85%;

    /* Surveillance Green Primary */
    --primary: 120 60% 45%;
    --primary-foreground: 210 15% 8%;

    /* Surveillance Blue Secondary */
    --secondary: 200 80% 25%;
    --secondary-foreground: 120 15% 85%;

    --muted: 210 15% 15%;
    --muted-foreground: 120 10% 60%;

    /* Blue Accent */
    --accent: 202 75% 63%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 85% 55%;
    --destructive-foreground: 120 15% 85%;

    --border: 120 20% 25%;
    --input: 210 20% 12%;
    --ring: 120 60% 45%;

    --radius: 0.5rem;
    
    /* Custom Surveillance Colors */
    --surveillance-green: 120 60% 45%;
    --surveillance-green-glow: 120 60% 60%;
    --surveillance-blue: 200 80% 25%;
    --surveillance-red: 0 85% 55%;
    --surveillance-amber: 45 100% 50%;
    
    /* Gradients */
    --gradient-surveillance: linear-gradient(135deg, hsl(var(--surveillance-green) / 0.2), hsl(var(--surveillance-blue) / 0.3));
    --gradient-alert: linear-gradient(135deg, hsl(var(--surveillance-red) / 0.8), hsl(var(--surveillance-amber) / 0.6));
    
    /* Shadows & Effects */
    --shadow-surveillance: 0 0 20px hsl(var(--surveillance-green) / 0.3);
    --shadow-alert: 0 0 15px hsl(var(--surveillance-red) / 0.5);
    --glow-pulse: 0 0 30px hsl(var(--surveillance-green-glow) / 0.6);
    
    /* Animations */
    --transition-surveillance: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pulse-speed: 2s;
    
    /* Voting States */
    --voting-closed: 285 99% 69%;

    --sidebar-background: 0 0% 98%;

    --sidebar-foreground: 240 5.3% 26.1%;

    --sidebar-primary: 240 5.9% 10%;

    --sidebar-primary-foreground: 0 0% 98%;

    --sidebar-accent: 240 4.8% 95.9%;

    --sidebar-accent-foreground: 240 5.9% 10%;

    --sidebar-border: 220 13% 91%;

    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
  * {
  border-color: hsl(var(--border));
}

  body {
  background-color: hsl(var(--background));
  font-family: Clash, monospace;
  color: hsl(var(--foreground));
}

  /* Mobile fullscreen optimizations */
  .fullscreen-room {
    -moz-user-select: none;
         user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Prevent zoom and encourage landscape on tablets and smaller */
  @media (max-width: 1023px) {
    .fullscreen-room {
      touch-action: pan-x pan-y;
      -ms-touch-action: pan-x pan-y;
    }
    
    /* Force landscape preference */
    .force-landscape {
      orientation: landscape;
    }
  }
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 2rem;
  padding-left: 2rem;
}
@media (min-width: 1400px) {

  .container {
    max-width: 1400px;
  }
}
/* Surveillance Camera Effect */
.surveillance-bg {
    background: 
      radial-gradient(circle at 20% 80%, hsl(var(--surveillance-green) / 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, hsl(var(--surveillance-blue) / 0.1) 0%, transparent 50%),
      linear-gradient(135deg, hsl(var(--background)) 0%, hsl(210 20% 6%) 100%);
    position: relative;
  }
.surveillance-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        hsl(var(--surveillance-green) / 0.03) 2px,
        hsl(var(--surveillance-green) / 0.03) 4px
      );
    pointer-events: none;
  }
/* Black & White Surveillance Background */
/* Welcome page custom background */
.welcome-bg {
    position: relative;
    background-image: url('/images/welcome-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }
/* Pulse Animation */
@keyframes pulse-glow {
    from {
      box-shadow: var(--shadow-surveillance);
    }
    to {
      box-shadow: var(--glow-pulse);
    }
  }
/* Slower, more subtle pulse for active cards */
.pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
  }
@keyframes pulse-slow {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.85;
      transform: scale(1.02);
    }
  }
/* Alert Pulse */
@keyframes alert-pulse {
    0%, 100% {
      background-color: hsl(var(--surveillance-red) / 0.8);
      box-shadow: var(--shadow-alert);
    }
    50% {
      background-color: hsl(var(--surveillance-red) / 1);
      box-shadow: 0 0 25px hsl(var(--surveillance-red) / 0.8);
    }
  }
/* Camera Overlay Grid */
/* Brown Voting Section Background */
.voting-section-bg {
    background: rgba(0, 0, 0, 0.4) !important;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
/* Revenge Button States */
/* Revenge text container with fixed dimensions to prevent layout shift */
.revenge-text-container {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease-in-out;
  }
.revenge-text-hidden {
    visibility: hidden;
    opacity: 0;
  }
/* Two-line confirmation text */
.revenge-confirmation-text {
    line-height: 1.2;
    font-size: clamp(8px, 1cqw, 12px);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
.pointer-events-none {
  pointer-events: none;
}
.pointer-events-auto {
  pointer-events: auto;
}
.visible {
  visibility: visible;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.bottom-0 {
  bottom: 0px;
}
.left-0 {
  left: 0px;
}
.right-0 {
  right: 0px;
}
.right-2 {
  right: 0.5rem;
}
.top-0 {
  top: 0px;
}
.top-2 {
  top: 0.5rem;
}
.isolate {
  isolation: isolate;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-30 {
  z-index: 30;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[100\] {
  z-index: 100;
}
.z-\[4000\] {
  z-index: 4000;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.aspect-video {
  aspect-ratio: 16 / 9;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-24 {
  height: 6rem;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-full {
  height: 100%;
}
.max-h-\[100vh\] {
  max-height: 100vh;
}
.max-h-screen {
  max-height: 100vh;
}
.min-h-screen {
  min-height: 100vh;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-3 {
  width: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.w-8 {
  width: 2rem;
}
.w-\[160px\] {
  width: 160px;
}
.w-\[320px\] {
  width: 320px;
}
.w-full {
  width: 100%;
}
.min-w-\[160px\] {
  min-width: 160px;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-\[calc\(100vh\*16\/9\)\] {
  max-width: calc(100vh * 16 / 9);
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.border {
  border-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-none {
  border-style: none;
}
.border-\[hsl\(30_35\%_25\%_\/_0\.6\)\] {
  border-color: hsl(30 35% 25% / 0.6);
}
.border-destructive {
  border-color: hsl(var(--destructive));
}
.border-input {
  border-color: hsl(var(--input));
}
.border-surveillance-green\/30 {
  border-color: hsl(var(--surveillance-green) / 0.3);
}
.border-surveillance-green\/50 {
  border-color: hsl(var(--surveillance-green) / 0.5);
}
.border-surveillance-red\/50 {
  border-color: hsl(var(--surveillance-red) / 0.5);
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/20 {
  background-color: rgb(0 0 0 / 0.2);
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-black\/70 {
  background-color: rgb(0 0 0 / 0.7);
}
.bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8);
}
.bg-black\/90 {
  background-color: rgb(0 0 0 / 0.9);
}
.bg-card {
  background-color: hsl(var(--card));
}
.bg-destructive {
  background-color: hsl(var(--destructive));
}
.bg-popover {
  background-color: hsl(var(--popover));
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-secondary {
  background-color: hsl(var(--secondary));
}
.bg-surveillance-green {
  background-color: hsl(var(--surveillance-green));
}
.bg-surveillance-red\/20 {
  background-color: hsl(var(--surveillance-red) / 0.2);
}
.bg-transparent {
  background-color: transparent;
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.p-0 {
  padding: 0px;
}
.p-1 {
  padding: 0.25rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pr-8 {
  padding-right: 2rem;
}
.pt-0 {
  padding-top: 0px;
}
.pt-4 {
  padding-top: 1rem;
}
.text-center {
  text-align: center;
}
.font-cabin {
  font-family: Cabin, sans-serif;
}
.font-clash {
  font-family: Clash, monospace;
}
.font-supercell {
  font-family: Supercell, sans-serif;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-black {
  font-weight: 900;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-none {
  line-height: 1;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.text-card-foreground {
  color: hsl(var(--card-foreground));
}
.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.text-foreground\/50 {
  color: hsl(var(--foreground) / 0.5);
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-popover-foreground {
  color: hsl(var(--popover-foreground));
}
.text-primary {
  color: hsl(var(--primary));
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}
.text-surveillance-amber {
  color: hsl(var(--surveillance-amber));
}
.text-surveillance-red {
  color: hsl(var(--surveillance-red));
}
.text-voting-closed {
  color: hsl(var(--voting-closed));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-white\/50 {
  color: rgb(255 255 255 / 0.5);
}
.text-white\/70 {
  color: rgb(255 255 255 / 0.7);
}
.text-white\/80 {
  color: rgb(255 255 255 / 0.8);
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-90 {
  opacity: 0.9;
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-1000 {
  transition-duration: 1000ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
@keyframes enter {

  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit {

  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.animate-in {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.fade-in-0 {
  --tw-enter-opacity: 0;
}
.zoom-in-95 {
  --tw-enter-scale: .95;
}
.duration-1000 {
  animation-duration: 1000ms;
}
.duration-200 {
  animation-duration: 200ms;
}
.duration-300 {
  animation-duration: 300ms;
}
.running {
  animation-play-state: running;
}
.paused {
  animation-play-state: paused;
}

/* Custom Clash Font */
@font-face {
  font-family: 'Clash';
  src: url('/fonts/Clash_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash';
  src: url('/fonts/Clash_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VT323';
  src: url('/fonts/VT323-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Supercell';
  src: url('/fonts/supercellheadline-heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Revenge Room Surveillance Theme Design System
All colors MUST be HSL.
*/

/* Portrait blocking overlay */
.portrait-overlay {
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

/* Fake fullscreen styles for mobile devices */
.fake-fullscreen {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

.fake-fullscreen-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 5000 !important;
  background: black !important;
}

/* Proportional voting card sizing - Container-relative sizing */
.voting-card {
  width: clamp(120px, 22cqw, 240px);
  height: clamp(140px, 28cqh, 280px);
}

/* Container-relative sizing for icons and confirmation text */
.vote-icon {
  width: clamp(36px, 5.5cqw, 64px);
  height: clamp(36px, 5.5cqh, 64px);
}

.overlay-confirm-text {
  font-size: clamp(12px, 1.8cqw, 20px);
  line-height: 1.2;
}

/* Container query support for voting overlay */
.video-stage {
  container-type: size;
}

.vote-overlay {
  transition: opacity 0.3s ease-in-out;
}

/* Container-relative sizing classes */
.vote-emoji {
  font-size: clamp(20px, 3cqw, 36px);
}

.vote-label {
  font-size: clamp(12px, 2cqw, 18px);
  line-height: 1.1;
}

/* Overlay grid layout - responsive positioning */
.overlay-grid {
  display: flex;
  align-items: center;
  width: 100%;
  gap: clamp(8px, 2cqw, 24px);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* Further reduce gap on very narrow screens */
@media (max-width: 380px) {
  .overlay-grid {
    gap: clamp(4px, 1.5cqw, 12px);
  }
}

/* Larger screens: voting left, control buttons always far right */
@media (min-width: 768px) {
  .overlay-grid {
    justify-content: flex-start;
  }
}

.overlay-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.overlay-revenge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.overlay-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.overlay-timer-container-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 auto;
  max-width: calc(100% - 60px);
  min-width: 0;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 380px) {
  .overlay-timer-container-inline {
    max-width: calc(100% - 40px);
  }
}

/* Mobile-specific spacing for timer */
@media (max-width: 767px) {
  .overlay-timer-container-inline {
    max-width: calc(100% - 100px);
  }
}

@media (max-width: 480px) {
  .overlay-timer-container-inline {
    max-width: calc(100% - 80px);
  }
}

.overlay-controls-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  position: absolute;
  right: clamp(12px, 2cqw, 20px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  pointer-events: auto;
}

/* Mobile-specific spacing to prevent overlap with countdown */
@media (max-width: 767px) {
  .overlay-controls-container {
    right: clamp(12px, 3vw, 20px);
  }
  
  /* Extra space in landscape mode on mobile */
  @media (orientation: landscape) {
    .overlay-controls-container {
      right: clamp(20px, 4vw, 28px);
    }
  }
}

/* Very small screens need extra careful spacing */
@media (max-width: 480px) {
  .overlay-controls-container {
    right: 12px;
  }
}

/* Mobile landscape: position controls inside banner */
@media (max-width: 767px) and (orientation: landscape) {
  .overlay-controls-container {
    position: absolute !important;
    bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    right: max(12px, env(safe-area-inset-right, 12px)) !important;
    top: auto !important;
    transform: none !important;
  }

  .overlay-cards {
    gap: clamp(1px, 0.3vw, 3px) !important;
  }
  
  .overlay-grid {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  /* Safari-specific fixes for button press clipping */
  .vote-overlay,
  .overlay-controls-container {
    overflow: visible !important;
  }

  .overlay-controls-container button {
    overflow: visible !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
}

/* Unified proportional sizing for voting cards - scales smoothly across all screen sizes */
  .voting-card {
    width: auto;
    height: clamp(75px, 15cqh, 200px);
  }


/* Meeting banner logo - matches or exceeds voting banner height */
.meeting-banner-logo {
  height: clamp(75px, 16cqh, 200px);
  padding: clamp(8px, 2cqh, 24px);
  -o-object-fit: contain;
     object-fit: contain;
}

.safari-voting-wrapper {
  padding: 2px;
}

.revenge-wrap {
  width: clamp(240px, 32cqw, 420px);
  height: clamp(240px, 32cqh, 420px);
}

.revenge-img {
  width: clamp(100px, 12cqw, 160px);
  height: clamp(100px, 12cqh, 160px);
}

.overlay-timer {
  font-size: clamp(14px, 2.4cqw, 26px);
  line-height: 1.2;
}

/* Card spacing - proportional gap between cards */
.overlay-cards {
  gap: clamp(1px, 0.5cqw, 4px);
}

/* Tight container sizing for voting cards - minimal padding for glow effects */
.safari-voting-wrapper {
  display: inline-block;
  padding: 2px;
  margin: 0;
}

.safari-voting-wrapper img.voting-card {
  display: block;
}

/* Fix mobile flicker on voting cards */
@media (hover: none), (pointer: coarse) {
  .overlay-cards img {
    transition: none !important;
  }
  .overlay-cards img:hover {
    transform: none !important;
  }
}

/* Mobile rendering optimizations */
@media (max-width: 767px) {
  .overlay-cards img {
    /* Removed GPU-forcing properties to prevent rendering artifacts on mobile Safari */
  }
}

/* Disable complex filters on touch devices to prevent rendering issues */
@media (hover: none) {
  /* Keep both brightness and glow on touch devices */
  .overlay-cards img {
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}

/* Revenge button sizing */
.revenge-img {
  width: clamp(100px, 18cqw, 180px);
  height: auto;
}

/* Mobile-specific revenge text sizing */
@media (max-width: 768px) {
  .revenge-confirmation-text {
    font-size: clamp(7px, 0.9vw, 10px);
  }
  
  .revenge-text-container {
    min-height: 2rem;
  }
}

/* Active vote green overlay */
.active-vote-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.2s ease-in-out;
}

/* Desktop-specific revenge text sizing */
@media (min-width: 769px) {
  .revenge-confirmation-text {
    font-size: clamp(9px, 1vw, 13px);
  }
}

/* Vote overlay responsive container */
.vote-overlay-inner {
  max-width: min(calc(100svh * 16/9), 100vw);
  margin: 0 auto;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  padding-top: clamp(4px, 1vw, 6px);
  padding-bottom: max(clamp(4px, 1vw, 8px), env(safe-area-inset-bottom, 0px));
}

@supports (height: 100dvh) {
  .vote-overlay-inner {
    max-width: min(calc(100dvh * 16/9), 100vw);
  }
}


/* Ensure video stage respects dynamic viewport - Safari compatibility */
.video-stage {
  max-height: 100svh !important; /* Safari small viewport height */
  max-height: 100dvh !important; /* Modern browsers */
}

/* Fake Fullscreen Styles for Mobile */
.fake-fullscreen {
  overflow: hidden !important;
}

.fake-fullscreen-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  background: black !important;
}

/* Ensure video stage fills fake fullscreen */
.fake-fullscreen-container .video-stage {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}

/* Ensure voting overlay remains visible in fake fullscreen */
.fake-fullscreen-container .vote-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
}

/* Hide browser UI elements in fake fullscreen */
.fake-fullscreen {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Fullscreen mobile: harden compositing and isolate overlay containers to avoid half-paint artifacts */
.fake-fullscreen-container .overlay-cards img,
.vote-overlay .overlay-cards img {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, filter;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.fake-fullscreen-container .overlay-cards {
  contain: layout paint;
  isolation: isolate;
  transform: translateZ(0);
}

/* Responsive scaling for very small screens */
@media (max-width: 400px) {
  .vote-overlay-inner {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  
  .overlay-cards {
    gap: clamp(2px, 0.3cqw, 6px);
  }
}

/* Mobile Controls - Safe positioning outside video transforms */
.mobile-controls {
  position: fixed !important;
  z-index: 9999;
  pointer-events: auto;
}

/* Safari-specific fixes for voting overlay */
@supports (-webkit-touch-callout: none) {
  .vote-overlay {
    /* Safari needs specific handling for viewport units with transforms */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
  
  .video-stage {
    max-height: 100vh !important; /* Safari fallback */
  }

  /* Fix Safari voting card clipping on tap - iOS Safari bug workaround */
  .safari-voting-wrapper {
    overflow: visible !important;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
  }

  .safari-voting-card {
    overflow: visible !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }

  /* Prevent clipping during :active state on touch */
  .safari-voting-wrapper:active,
  .safari-voting-card:active {
    overflow: visible !important;
    transform: translateZ(0) !important;
  }

  /* Force GPU compositing for voting cards container */
  .overlay-cards {
    overflow: visible !important;
    transform: translateZ(0);
  }
}

/* Landscape mode fixes */
@media (max-width: 767px) and (orientation: landscape) {
  .mobile-controls {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
  }
  
  .vote-overlay-inner {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    max-width: 100vw;
  }
}


/* Mobile Landscape Lock - Force landscape-only rendering */
@media (max-width: 767px) {
  body.mobile-landscape-lock {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
  }
  
  body.mobile-landscape-lock .fullscreen-room {
    position: fixed;
    inset: 0;
  }
  
  body.mobile-landscape-lock .video-stage {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform-origin: center center !important;
    max-width: none !important;
    max-height: none !important;
    overflow: hidden !important;
    z-index: 1;
  }
  
  /* Physical landscape */
  @media (orientation: landscape) {
    body.mobile-landscape-lock .video-stage {
      width: 100svw !important;
      height: calc(100svw * 9 / 16) !important;
      transform: translate(-50%, -50%) !important;
    }
  }
  
  /* Physical portrait – keep landscape layout by rotating */
  @media (orientation: portrait) {
    body.mobile-landscape-lock .video-stage {
      width: 100svh !important;
      height: calc(100svh * 9 / 16) !important;
      transform: translate(-50%, -50%) rotate(90deg) !important;
    }
  }

  /* Prevent inner overlay wrapper from exceeding viewport width */
  body.mobile-landscape-lock .vote-overlay > div {
    max-width: 100% !important;
  }
}

body.mobile-landscape-lock .fake-fullscreen-container .video-stage {
  overflow: visible !important;
}

/* Safari override to remove transforms on landscape to keep fixed overlays in viewport */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) and (orientation: landscape) {
    body.mobile-landscape-lock .video-stage {
      transform: none !important;
      top: 0 !important;
      left: 0 !important;
      position: absolute !important;
      width: 100svw !important;
      height: calc(100svw * 9 / 16) !important;
    }
  }
}
.hover\:-translate-y-0\.5:hover {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:scale-105:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}
.hover\:bg-black:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.hover\:bg-black\/80:hover {
  background-color: rgb(0 0 0 / 0.8);
}
.hover\:bg-black\/90:hover {
  background-color: rgb(0 0 0 / 0.9);
}
.hover\:bg-destructive\/90:hover {
  background-color: hsl(var(--destructive) / 0.9);
}
.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}
.hover\:bg-secondary:hover {
  background-color: hsl(var(--secondary));
}
.hover\:bg-secondary\/80:hover {
  background-color: hsl(var(--secondary) / 0.8);
}
.hover\:bg-surveillance-green-glow:hover {
  background-color: hsl(var(--surveillance-green-glow));
}
.hover\:bg-surveillance-green\/90:hover {
  background-color: hsl(var(--surveillance-green) / 0.9);
}
.hover\:bg-transparent:hover {
  background-color: transparent;
}
.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}
.hover\:text-foreground:hover {
  color: hsl(var(--foreground));
}
.hover\:text-white\/80:hover {
  color: rgb(255 255 255 / 0.8);
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-surveillance-green\/30:hover {
  --tw-shadow-color: hsl(var(--surveillance-green) / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.focus\:border-0:focus {
  border-width: 0px;
}
.focus\:opacity-100:focus {
  opacity: 1;
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-0:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}
.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}
.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}
.active\:outline-none:active {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
.group.destructive .group-\[\.destructive\]\:border-muted\/40 {
  border-color: hsl(var(--muted) / 0.4);
}
.group.toaster .group-\[\.toaster\]\:border-border {
  border-color: hsl(var(--border));
}
.group.toast .group-\[\.toast\]\:bg-muted {
  background-color: hsl(var(--muted));
}
.group.toast .group-\[\.toast\]\:bg-primary {
  background-color: hsl(var(--primary));
}
.group.toaster .group-\[\.toaster\]\:bg-background {
  background-color: hsl(var(--background));
}
.group.destructive .group-\[\.destructive\]\:text-red-300 {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.group.toast .group-\[\.toast\]\:text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.group.toast .group-\[\.toast\]\:text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.group.toaster .group-\[\.toaster\]\:text-foreground {
  color: hsl(var(--foreground));
}
.group.toaster .group-\[\.toaster\]\:shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover {
  border-color: hsl(var(--destructive) / 0.3);
}
.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover {
  background-color: hsl(var(--destructive));
}
.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover {
  color: hsl(var(--destructive-foreground));
}
.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover {
  --tw-text-opacity: 1;
  color: rgb(254 242 242 / var(--tw-text-opacity, 1));
}
.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus {
  --tw-ring-color: hsl(var(--destructive));
}
.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1));
}
.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus {
  --tw-ring-offset-color: #dc2626;
}
.data-\[swipe\=cancel\]\:translate-x-0[data-swipe="cancel"] {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe="end"] {
  --tw-translate-x: var(--radix-toast-swipe-end-x);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe="move"] {
  --tw-translate-x: var(--radix-toast-swipe-move-x);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[swipe\=move\]\:transition-none[data-swipe="move"] {
  transition-property: none;
}
.data-\[state\=open\]\:animate-in[data-state="open"] {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.data-\[state\=closed\]\:animate-out[data-state="closed"] {
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.data-\[swipe\=end\]\:animate-out[data-swipe="end"] {
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.data-\[state\=closed\]\:fade-out-0[data-state="closed"] {
  --tw-exit-opacity: 0;
}
.data-\[state\=closed\]\:fade-out-80[data-state="closed"] {
  --tw-exit-opacity: 0.8;
}
.data-\[state\=closed\]\:zoom-out-95[data-state="closed"] {
  --tw-exit-scale: .95;
}
.data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"] {
  --tw-enter-translate-y: -0.5rem;
}
.data-\[side\=left\]\:slide-in-from-right-2[data-side="left"] {
  --tw-enter-translate-x: 0.5rem;
}
.data-\[side\=right\]\:slide-in-from-left-2[data-side="right"] {
  --tw-enter-translate-x: -0.5rem;
}
.data-\[side\=top\]\:slide-in-from-bottom-2[data-side="top"] {
  --tw-enter-translate-y: 0.5rem;
}
.data-\[state\=closed\]\:slide-out-to-right-full[data-state="closed"] {
  --tw-exit-translate-x: 100%;
}
.data-\[state\=open\]\:slide-in-from-top-full[data-state="open"] {
  --tw-enter-translate-y: -100%;
}
@media (min-width: 640px) {

  .sm\:bottom-0 {
    bottom: 0px;
  }

  .sm\:right-0 {
    right: 0px;
  }

  .sm\:top-auto {
    top: auto;
  }

  .sm\:flex-col {
    flex-direction: column;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state="open"] {
    --tw-enter-translate-y: 100%;
  }
}
@media (min-width: 768px) {

  .md\:h-20 {
    height: 5rem;
  }

  .md\:h-32 {
    height: 8rem;
  }

  .md\:max-w-\[420px\] {
    max-width: 420px;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}
.\[\&_svg\]\:pointer-events-none svg {
  pointer-events: none;
}
.\[\&_svg\]\:size-4 svg {
  width: 1rem;
  height: 1rem;
}
.\[\&_svg\]\:shrink-0 svg {
  flex-shrink: 0;
}

