/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: dark;

  /* Colors — warm palette (coffee shop wood, Beirut evening sky, warm amber) */
  --bg-primary: #12100e;
  --bg-secondary: #1c1917;
  --bg-tertiary: #353130;
  --bg-card: #292524;
  --bg-highlight: #3c3632;
  --bg-muted: #292524;

  --text-primary: #faf5f0;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;

  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #ef4444;
  --accent-blue: #3b82f6;
  --accent-sky: #38bdf8;
  --accent-purple: #a855f7;

  --suit-red: #ef4444;
  --suit-black: #faf5f0;

  --border-color: #44403c;

  /* Table felt surface */
  --table-felt-base: #1a2416;
  --table-felt-light: #1d2a1a;

  /* Mobile-first sizing (320px base) */
  --card-width: 38px;
  --card-height: 54px;
  --card-radius: 4px;
  --card-overlap: -10px;
  --card-font-size: clamp(0.7rem, 0.567rem + 0.667vw, 1.1rem);
  --card-suit-size: clamp(0.85rem, 0.667rem + 0.917vw, 1.4rem);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;

  /* General typography — fluid between 320px and 1280px viewports */
  --font-size-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.85rem);
  --font-size-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem);
  --font-size-base: clamp(0.9rem, 0.833rem + 0.333vw, 1.1rem);
  --font-size-md: clamp(1rem, 0.933rem + 0.333vw, 1.2rem);
  --font-size-lg: clamp(1.1rem, 1.017rem + 0.417vw, 1.35rem);

  /* Game UI at-a-glance — intentionally larger for readability */
  --font-size-game-name: clamp(0.85rem, 0.767rem + 0.417vw, 1.1rem);
  --font-size-game-score: clamp(1.3rem, 1.167rem + 0.667vw, 1.7rem);
  --font-size-game-label: clamp(0.8rem, 0.733rem + 0.333vw, 1rem);
  --font-size-game-badge: clamp(0.65rem, 0.583rem + 0.333vw, 0.85rem);
  --font-size-game-phase: clamp(1rem, 0.867rem + 0.667vw, 1.4rem);

  /* Touch target minimum */
  --touch-target-min: 44px;

  /* Font stacks (--font-display is provided by next/font in layout.tsx) */
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;
}

/* Small phones (480px+) */
@media (min-width: 480px) {
  :root {
    --card-width: 44px;
    --card-height: 62px;
    --card-radius: 5px;
    --card-overlap: -12px;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  :root {
    --card-width: 50px;
    --card-height: 70px;
    --card-radius: 6px;
    --card-overlap: -16px;
  }
}

/* Small desktops (1024px+) */
@media (min-width: 1024px) {
  :root {
    --card-width: 60px;
    --card-height: 84px;
    --card-radius: 8px;
    --card-overlap: -20px;
  }
}

/* Large desktops (1280px+) */
@media (min-width: 1280px) {
  :root {
    --card-width: 65px;
    --card-height: 91px;
    --card-radius: 8px;
    --card-overlap: -22px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
}

body {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(234, 88, 12, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

/* Card styles */
.card {
  width: var(--card-width);
  height: var(--card-height);
  background: white;
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--card-font-size);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card.red {
  color: var(--suit-red);
}

.card.black {
  color: #292524;
}

.card.leekha {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #292524;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Hover state for non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .card:hover:not(.disabled) {
    transform: translateY(-8px) rotate(var(--card-tilt, 0deg));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
}

/* Active/touch feedback for all devices */
.card:active:not(.disabled) {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card.disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.6);
  opacity: 0.85;
}

.card.dragging {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

.card.selected {
  transform: translateY(-12px) rotate(var(--card-tilt, 0deg));
  box-shadow: 0 0 20px var(--accent-emerald);
  outline: 3px solid var(--accent-emerald);
}

.card-placeholder {
  width: var(--card-width);
  height: var(--card-height);
  border: 2px dashed var(--border-color);
  border-radius: var(--card-radius);
  opacity: 0.3;
}

/* Card back — Lebanese arabesque motif */
.card-back {
  position: relative;
  overflow: hidden;
  background:
    /* Geometric star pattern */
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(245, 158, 11, 0.07) 0deg 30deg,
      transparent 30deg 60deg
    ),
    /* Diamond lattice */
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 6px,
      rgba(245, 158, 11, 0.05) 6px,
      rgba(245, 158, 11, 0.05) 7px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 6px,
      rgba(245, 158, 11, 0.05) 6px,
      rgba(245, 158, 11, 0.05) 7px
    ),
    /* SVG noise texture */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    /* Warm base gradient */
    linear-gradient(160deg, #5c2d0e 0%, #78350f 40%, #92400e 100%);
  cursor: default;
}

/* Inner border frame */
.card-back::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: calc(var(--card-radius) - 2px);
  pointer-events: none;
}

/* Central medallion glow */
.card-back::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(245, 158, 11, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Suit symbols */
.suit {
  font-size: var(--card-suit-size);
  line-height: 1;
}

/* Panel styles */
.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.panel-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Button styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-emerald);
  color: white;
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-highlight);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* Input styles */
.input {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: var(--accent-blue);
}

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
}

.badge-error {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

/* Team colors */
.team-ns {
  color: var(--accent-blue);
}

.team-ew {
  color: var(--accent-rose);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Touch target and button sizing for mobile */
@media (max-width: 767px) {
  .btn {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    padding: 10px 16px;
  }

  .input {
    min-height: var(--touch-target-min);
    padding: 10px 14px;
  }
}

/* Card touch wrapper - ensures minimum touch target */
.cardTouchWrapper {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Card size variants */
.card.card-tiny {
  width: calc(var(--card-width) * 0.6);
  height: calc(var(--card-height) * 0.6);
  font-size: calc(var(--card-font-size) * 0.7);
}

.card.card-tiny .suit {
  font-size: calc(var(--card-suit-size) * 0.7);
}

.card.card-small {
  width: calc(var(--card-width) * 0.8);
  height: calc(var(--card-height) * 0.8);
  font-size: calc(var(--card-font-size) * 0.85);
}

.card.card-small .suit {
  font-size: calc(var(--card-suit-size) * 0.85);
}

.card.card-large {
  width: calc(var(--card-width) * 1.2);
  height: calc(var(--card-height) * 1.2);
  font-size: calc(var(--card-font-size) * 1.15);
}

.card.card-large .suit {
  font-size: calc(var(--card-suit-size) * 1.15);
}

/* Card back size adjustments */
.card-back.card-tiny::before {
  inset: 2px;
  border-radius: calc(var(--card-radius) - 1px);
}

.card-back.card-tiny::after {
  width: 50%;
  height: 50%;
}

.card-back.card-small::before {
  inset: 2px;
  border-radius: calc(var(--card-radius) - 1px);
}

.card-back.card-small::after {
  width: 55%;
  height: 55%;
}

/* Reduced motion: remove card tilt rotations, keep translateY only */
@media (prefers-reduced-motion: reduce) {
  .card:hover:not(.disabled) {
    transform: translateY(-8px);
  }

  .card.selected {
    transform: translateY(-12px);
  }
}

/* Landscape mobile orientation */
@media (max-width: 900px) and (orientation: landscape) {
  :root {
    --card-width: 40px;
    --card-height: 56px;
  }
}

/* Beta badge */
.beta-badge {
  position: fixed;
  top: 8px;
  right: 8px;
  background: rgba(234, 179, 8, 0.9);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 99999;
  pointer-events: none;
  text-transform: uppercase;
}

@media (max-width: 479px) {
  .beta-badge {
    top: auto;
    bottom: 8px;
    right: 8px;
    z-index: 50;
  }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./components/consent/CookieConsentBanner.module.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************/
.CookieConsentBanner_banner__WEjm5 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  animation: CookieConsentBanner_slideUp__CY5hW 0.3s ease forwards;
}

.CookieConsentBanner_text__ZFpAQ {
  flex: 1 1;
  min-width: 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.CookieConsentBanner_actions___Owar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.CookieConsentBanner_acceptBtn___v54f {
  padding: 8px 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #292524;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  min-height: var(--touch-target-min);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
}

.CookieConsentBanner_acceptBtn___v54f:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

.CookieConsentBanner_declineBtn__LnUgi {
  padding: 8px 12px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: var(--font-size-xs);
  cursor: pointer;
  min-height: var(--touch-target-min);
  white-space: nowrap;
}

.CookieConsentBanner_declineBtn__LnUgi:hover {
  color: var(--text-secondary);
}

/* Mobile: stack text and buttons vertically */
@media (max-width: 479px) {
  .CookieConsentBanner_banner__WEjm5 {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .CookieConsentBanner_actions___Owar {
    justify-content: flex-end;
  }
}

@keyframes CookieConsentBanner_slideUp__CY5hW {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .CookieConsentBanner_banner__WEjm5 {
    animation: none;
  }
}

/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!../../node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!../../node_modules/next/font/local/target.css?{"path":"app/layout.tsx","import":"","arguments":[{"src":"../fonts/wizzta.ttf","display":"swap","variable":"--font-display","declarations":[{"prop":"size-adjust","value":"200%"}]}],"variableName":"wizzta"} ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
size-adjust: 200%;
font-family: '__wizzta_7206f6';
src: url(/_next/static/media/b9d675ac2597bc1e-s.p.ttf) format('truetype');
font-display: swap;
}@font-face {font-family: '__wizzta_Fallback_7206f6';src: local("Arial");ascent-override: 106.80%;descent-override: 21.14%;line-gap-override: 9.64%;size-adjust: 64.33%
}.__className_7206f6 {font-family: '__wizzta_7206f6', '__wizzta_Fallback_7206f6'
}.__variable_7206f6 {--font-display: '__wizzta_7206f6', '__wizzta_Fallback_7206f6'
}

