:root{
  --felt:#0f5a3a;
  --felt2:#0b402a;
  --text:#f2f6ff;
  --muted: rgba(255,255,255,.78);
  --accent:#7c5cff;
  --good:#2bd67b;
  --bad:#ff4d6d;
  --shadow: 0 22px 70px rgba(0,0,0,.40);
  --radius: 18px;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --compass-gutter: 70px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  min-height:100vh;
  background:
    radial-gradient(1100px 650px at 15% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 520px at 90% 20%, rgba(33,212,253,.14), transparent 60%),
    radial-gradient(900px 560px at 50% 90%, rgba(43,214,123,.10), transparent 60%),
    linear-gradient(180deg, #08131f, #060c14);
}

.wrap{ max-width: 1200px; margin: 0 auto; padding: 18px 14px 34px; }
.topbar{ 
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px; 
  margin: 8px 0 14px;
  transition: transform var(--transition-smooth);
}
.brand{ 
  display:flex;
  flex-direction:column;
  gap:4px; 
}
.brand h1{ margin:0;font-size:20px;letter-spacing:.2px }
.brand .sub{ color:rgba(255,255,255,.65);font-size:12.5px }

.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: all var(--transition-smooth);
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
}
.chip b{ color:var(--text); font-weight:800 }

.tableStage{
  border-radius: 28px;
  padding: 14px;
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(900px 520px at 50% 88%, rgba(0,0,0,.25), transparent 60%),
    linear-gradient(180deg, var(--felt), var(--felt2));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 120px rgba(0,0,0,.55);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}
.tableStage:hover {
  box-shadow: 0 35px 130px rgba(0,0,0,.65);
}
.tableStage::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(circle at 82% 28%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(circle at 50% 65%, rgba(0,0,0,.18), transparent 60%);
  mix-blend-mode: overlay;
  pointer-events:none;
  opacity:.9;
}

.tableInner{
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  padding: 14px;
  padding-left: calc(14px + var(--compass-gutter));
  backdrop-filter: blur(10px);
  min-height: 520px;
  transition: all var(--transition-smooth);
}

/* Compass */
.compass{
  position:absolute;
  left: 18px;
  top: 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  z-index: 20;
  pointer-events: none;
}
.dir{
  width: 36px;height:36px;border-radius: 999px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.82);
  font-weight: 900;
  position:relative;
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
  transition: all var(--transition-smooth);
}
.dir.active{
  border-color: rgba(43,214,123,.65);
  box-shadow: 0 0 0 4px rgba(43,214,123,.18), 0 12px 26px rgba(0,0,0,.25);
}
.dir.you{
  border-color: rgba(124,92,255,.75);
  box-shadow: 0 0 0 4px rgba(124,92,255,.22), 0 12px 26px rgba(0,0,0,.25);
}
.dir.you.active{
  box-shadow:
    0 0 0 4px rgba(43,214,123,.18),
    0 0 0 8px rgba(124,92,255,.18),
    0 12px 26px rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.28);
}
.dir.you::after{
  content:"👤";
  position:absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(124,92,255,.22);
  color: rgba(255,255,255,.95);
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  white-space: nowrap;
}

/* ✅ TURN highlight (compass) */
.dir.turn{
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 12px 26px rgba(0,0,0,.25);
}
.dir.turn::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.22);
  animation: turnPulse 1.2s ease-in-out infinite;
}
@keyframes turnPulse{
  0%{ opacity:.15; transform: scale(.96); }
  50%{ opacity:.35; transform: scale(1.02); }
  100%{ opacity:.15; transform: scale(.96); }
}

.dchip{
  position:absolute;
  right:-6px; top:-6px;
  width: 18px;height:18px;border-radius: 999px;
  background: rgba(33,105,255,.95);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size: 11px;
  font-weight: 1000;
}

.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
}
.panel{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  overflow:hidden;
  transition: all var(--transition-smooth);
}
.panel:hover {
  /* ΑΦΑΙΡΕΣΑ το transform: translateY(-2px) */
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.panel .hd{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background: rgba(0,0,0,.10);
}
.panel .hd h3{ margin:0; font-size: 14px; letter-spacing:.25px; }
.panel .bd{ 
  padding: 14px;
  transition: all var(--transition-smooth);
}

.toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.btn{
  cursor:pointer;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  padding: 9px 12px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn:hover{ 
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,.28);
}
.btn:active{ 
  transform: translateY(0px);
  transition: transform 0.1s;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}
.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}
@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}
.btn.primary{
  background: linear-gradient(180deg, rgba(33,105,255,.92), rgba(13,45,130,.92));
  border-color: rgba(120,170,255,.45);
}
.btn.ghost{ background: rgba(0,0,0,.12); }
.kbd{
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.15);
  font-size: 11px;
  font-weight: 900;
  opacity: .9;
}

.metaRow{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 10px; }
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  color: rgba(255,255,255,.80);
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
  transition: all var(--transition-smooth);
}
.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(0,0,0,.20);
}
.pill b{ color:#fff; font-weight: 900 }
.pill.mini{ padding: 6px 9px; font-size: 11.5px; }

.suitRow{
  display:grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items:center;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
  margin-bottom: 10px;
  transition: all var(--transition-smooth);
}
.suitRow:hover {
  background: rgba(0,0,0,.14);
  border-color: rgba(255,255,255,.12);
}
.suitLabel{
  width: 34px;height:34px;border-radius: 12px;
  display:flex;align-items:center;justify-content:center;
  font-size: 18px;font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: all var(--transition-smooth);
}
.suitLabel:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.suitLabel.red{ color: #ff4d6d; }
.suitLabel.black{ color: rgba(255,255,255,.92); }

.cardFan{ display:flex; gap: 10px; flex-wrap:wrap; padding: 4px 0; }

.playingCard{
  width: 54px;
  height: 72px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 25px rgba(0,0,0,.20);
  position: relative;
  overflow:hidden;
  transition: all var(--transition-smooth);
}
.playingCard:hover {
  transform: translateY(-3px) rotate(1deg);
  box-shadow: 0 18px 35px rgba(0,0,0,.25);
}
.pcTop,.pcBot{
  position:absolute;
  display:flex;
  flex-direction:column;
  gap: 0px;
  font-weight: 900;
  font-size: 14px;
  line-height: 14px;
  padding: 6px 6px;
  letter-spacing: .2px;
}
.pcTop{ left:0; top:0; }
.pcBot{ right:0; bottom:0; transform: rotate(180deg); }
.pcCenter{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%);
  font-size: 24px;
  font-weight: 900;
  opacity: .92;
  text-shadow: 0 10px 18px rgba(0,0,0,.12);
}
.pcRank{ font-size: 14px; }
.pcSuit{ font-size: 13px; }
.pcRed{ color:#d11c3a; }
.pcBlack{ color:#111827; }

@keyframes dealPop {
  0%{ transform: translateY(10px) scale(.98); opacity: 0; }
  100%{ transform: translateY(0) scale(1); opacity: 1; }
}
.dealIn{ 
  animation: dealPop 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

select{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline:none;
  appearance:none;
  transition: all var(--transition-smooth);
}
select:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
}
select:focus {
  box-shadow: 0 0 0 2px rgba(124,92,255,.3);
}

/* === BIDDING BOX === */
.biddingBoxWrap{
  width: min(380px, 100%);
  margin: 10px auto 0 auto;
  padding: 10px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transition: all var(--transition-smooth);
}
.biddingBox{
  display:grid;
  grid-template-columns: repeat(5, 1fr); /* ♣ ♦ ♥ ♠ NT */
  gap: 7px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.10);
}
.bidTab{
  cursor:pointer;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 1100;
  letter-spacing: .2px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  user-select:none;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}
.bidTab:hover:not(.disabled) { 
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,.25);
}
.bidTab:active:not(.disabled) { 
  transform: translateY(0px);
  transition: transform 0.1s;
}
.bidTab::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0));
  opacity:.35;
}
.bidTab.disabled{
  cursor:not-allowed;
  pointer-events:none;
  opacity:.30;
  filter: grayscale(.70);
  box-shadow: 0 8px 16px rgba(0,0,0,.14);
}
.bidTab .lvl{ font-size: 15px; position:relative; z-index:2; }
.bidTab .suit{ font-size: 16px; position:relative; z-index:2; }

/* Board colors */
.bidTab.nt{ background: linear-gradient(180deg, rgba(25,25,28,.98), rgba(6,6,8,.98)) !important; border-color: rgba(255,255,255,.18); }
.bidTab.sp{ background: linear-gradient(180deg, rgba(33,105,255,.98), rgba(13,45,130,.98)) !important; border-color: rgba(120,170,255,.45); } /* ♠ blue */
.bidTab.cl{ background: linear-gradient(180deg, rgba(21,150,80,.96), rgba(10,90,50,.96)) !important; border-color: rgba(120,255,190,.22); }
.bidTab.he{ background: linear-gradient(180deg, rgba(230,22,58,.98), rgba(140,8,28,.98)) !important; border-color: rgba(255,120,140,.35); }
.bidTab.di{ background: linear-gradient(180deg, rgba(255,138,0,.98), rgba(170,82,0,.98)) !important; border-color: rgba(255,190,120,.28); }

.passRow{ margin-top: 10px; display:flex; gap: 10px; justify-content:center; }
.passTab{
  cursor:pointer;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: linear-gradient(180deg, rgba(43,214,123,.95), rgba(18,140,78,.95));
  color: #072415;
  font-weight: 1100;
  letter-spacing:.4px;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
  transition: all var(--transition-smooth);
  font-weight: 900;
}
.passTab:hover:not(.disabled) { 
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,.30);
}
.passTab:active:not(.disabled) { 
  transform: translateY(0px);
  transition: transform 0.1s;
}
.passTab.disabled{
  cursor:not-allowed;
  pointer-events:none;
  opacity:.35;
  filter: grayscale(.70);
}

.resultBox{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  transition: all var(--transition-smooth);
  animation: fadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.resultBox.good{ 
  border-color: rgba(43,214,123,.35);
  animation: successPulse 0.6s ease-out;
}
@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(43,214,123,.4); }
  70% { box-shadow: 0 0 0 10px rgba(43,214,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,214,123,0); }
}
.resultBox.bad{ 
  border-color: rgba(255,77,109,.35);
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
.resultTitle{
  font-weight: 1000;
  letter-spacing:.25px;
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  gap: 8px;
}
.resultLine{ font-size: 12.5px; color: rgba(255,255,255,.80); margin-top: 4px; }
.resultLine b{ color:#fff; }

.log{
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.78);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  max-height: 200px;
  overflow:auto;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Intro modal */
.overlay{
  position:fixed; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  z-index: 999;
  animation: fadeIn 0.3s ease-out;
}
.modal{
  width: min(820px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,16,24,.92);
  box-shadow: 0 30px 120px rgba(0,0,0,.55);
  overflow:hidden;
  animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.mhd{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.mhd h2{ margin:0;font-size:16px;letter-spacing:.2px; }
.mbd{ padding: 16px; }

.focusGrid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ✅ ΑΠΕΝΕΡΓΟΠΟΙΗΣΗ ΟΛΩΝ ΤΩΝ ANIMATIONS & TRANSITIONS ΓΙΑ FOCUS BUTTONS */
.focusBtn,
.focusBtn.selected,
.focusBtn:hover {
  animation: none !important;
  transition: none !important;
}

.focusBtn {
  cursor: pointer;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  padding: 14px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  /* ΧΩΡΙΣ ΚΑΜΙΑ TRANSITION */
}

.focusBtn:hover {
  filter: brightness(1.07);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  /* ΧΩΡΙΣ ΚΑΜΙΑ TRANSITION */
}

.focusBtn:active {
  transform: translateY(0px);
}

.focusBtn.selected {
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18), 0 16px 40px rgba(0, 0, 0, 0.22);
  background: rgba(124, 92, 255, 0.12);
  /* ΧΩΡΙΣ ΚΑΜΙΑ TRANSITION - ΑΜΕΣΗ ΑΛΛΑΓΗ */
}

.focusBtn .t {
  font-weight: 1000;
  font-size: 14px;
  margin-bottom: 6px;
}

.focusBtn .d {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

/* ✅ ΑΦΑΙΡΕΣΑ ΟΛΟΚΛΗΡΗ ΤΗΝ ANIMATION quickPulse */

/* ✅ ΓΡΗΓΟΡΕΣ TRANSITIONS ΓΙΑ ΟΛΑ ΤΑ ΚΟΥΜΠΙΑ */
.btn,
.chip,
.pill,
.suitLabel,
.playingCard,
.bidTab,
.passTab,
.auctionHead,
.auctionCell,
.toggle,
select {
  transition: none !important;
}

/* ΜΟΝΟ για hover effects (αμεσότητα) */
.btn:hover,
.chip:hover,
.pill:hover,
.suitLabel:hover,
.playingCard:hover,
.bidTab:hover:not(.disabled),
.passTab:hover:not(.disabled),
.auctionHead:hover,
.auctionCell:hover,
.toggle:hover,
select:hover {
  transition: all 0.05s ease-out !important;
}

/* ✅ ΑΦΑΙΡΕΣΕ ΟΛΑ ΤΑ COMPLEX ANIMATIONS ΑΠΟ INTRO */
#intro .modal {
  animation: none !important;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}
#intro .mbd {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.overlay {
  animation: none !important;
}

/* ✅ ΒΕΛΤΙΩΜΕΝΑ TOGGLES */
.toggles{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex; gap: 12px; flex-wrap:wrap;
}
.toggle{
  display:flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease-out;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.toggle:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.toggle input{ width:18px;height:18px; accent-color: #7c5cff; }

/* ✅ ΒΕΛΤΙΩΜΕΝΑ SELECT */
select{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 10px 12px;
  padding-right: 36px;
  border-radius: 12px;
  outline:none;
  appearance:none;
  transition: all 0.15s ease-out;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
select:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
}
select:focus {
  box-shadow: 0 0 0 2px rgba(124,92,255,.3);
}

/* === AUCTION TABLE (N/E/S/W) === */
.auctionTable{
  margin: 10px 0 12px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  transition: all var(--transition-smooth);
}
.auctionTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
  opacity: .9;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  letter-spacing: .2px;
}
.auctionGrid{
  width: 100%;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.auctionHead{
  text-align:center;
  font-weight: 1000;
  padding: 7px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  transition: all var(--transition-smooth);
}
.auctionHead:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.20);
}
.auctionHead.you{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 3px rgba(124,92,255,.16), 0 10px 22px rgba(0,0,0,.14);
}
.auctionHead.dealer{
  border-color: rgba(43,214,123,.55);
  box-shadow: 0 0 0 3px rgba(43,214,123,.14), 0 10px 22px rgba(0,0,0,.14);
}
/* ✅ TURN highlight (head) */
.auctionHead.turn{
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 10px 22px rgba(0,0,0,.14);
  position:relative;
}
.auctionHead.turn::after{
  content:"●";
  position:absolute;
  right:10px; top:6px;
  opacity:.65;
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink{ 0%,100%{opacity:.15} 50%{opacity:.75} }

.auctionCell{
  text-align:center;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  color: rgba(255,255,255,.92);
  font-weight: 1000;
  letter-spacing:.2px;
  min-height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all var(--transition-smooth);
}
.auctionCell:hover {
  background: rgba(255,255,255,.03);
}
.auctionCell.muted{
  color: rgba(255,255,255,.55);
  font-weight: 800;
}
.auctionCell.turn{
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
}
.auctionCall{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
  line-height: 1;
  transition: all var(--transition-smooth);
}

/* ✅ PASS = πιο ανοιχτό πράσινο */
.auctionCall.b-pass{
  background: linear-gradient(180deg, rgba(120,255,190,.50), rgba(30,170,110,.35));
  border-color: rgba(120,255,190,.28);
  color: rgba(255,255,255,.95);
}
/* ✅ NT = μαύρο */
.auctionCall.b-nt{
  background: linear-gradient(180deg, rgba(25,25,28,.95), rgba(6,6,8,.95));
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.95);
}
/* ✅ ♠ = μπλε */
.auctionCall.b-sp{
  background: linear-gradient(180deg, rgba(33,105,255,.95), rgba(13,45,130,.95));
  border-color: rgba(120,170,255,.38);
  color: rgba(255,255,255,.95);
}
/* ♣ = πράσινο */
.auctionCall.b-cl{
  background: linear-gradient(180deg, rgba(21,150,80,.92), rgba(10,90,50,.92));
  border-color: rgba(120,255,190,.18);
  color: rgba(255,255,255,.94);
}
/* ♥ = κόκκινο */
.auctionCall.b-he{
  background: linear-gradient(180deg, rgba(230,22,58,.95), rgba(140,8,28,.95));
  border-color: rgba(255,120,140,.30);
  color: rgba(255,255,255,.96);
}
/* ♦ = πορτοκαλί */
.auctionCall.b-di{
  background: linear-gradient(180deg, rgba(255,138,0,.95), rgba(170,82,0,.95));
  border-color: rgba(255,190,120,.22);
  color: rgba(255,255,255,.96);
}

/* ✅ Auto-pass animation (pop/pulse on new calls) */
.auctionCall.popIn{
  animation: popIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes popIn{
  from{ transform: translateY(6px) scale(.98); opacity: .0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}

.auctionCell.flash{
  animation: cellFlash 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes cellFlash{
  0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.0); }
  35%{ box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,.0); }
}

/* === HISTORY === */
.historyBox{
  margin: 10px 0 14px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
}
.historyTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  letter-spacing: .2px;
}
.historyHint{
  opacity:.9;
  font-weight: 900;
}
.historyTableWrap{
  overflow:auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.historyTable{
  width:100%;
  border-collapse: collapse;
  font-size: 12px;
}
.historyTable th, .historyTable td{
  padding: 8px 10px;
  text-align:center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.historyTable th{
  position: sticky;
  top: 0;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  font-weight: 1000;
  color: rgba(255,255,255,.85);
}
.historyTable tr:last-child td{ border-bottom: 0; }

.historyCell{
  display:inline-flex;
  justify-content:center;
  min-width: 56px;
}
.historyCell .auctionCall{
  transform: scale(.98);
}

/* === ACHIEVEMENTS === */
.achievementToast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  transform: translateX(150%);
  transition: transform var(--transition-bounce);
  max-width: 300px;
}

.achievementToast.show {
  transform: translateX(0);
}

.toastContent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(33,105,255,0.95));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  animation: toastPulse 2s infinite;
}

@keyframes toastPulse {
  0% { box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 20px 60px rgba(124,92,255,0.6); }
  100% { box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
}

.toastIcon {
  font-size: 28px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.toastText {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toastTitle {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.toastDesc {
  font-size: 12px;
  opacity: 0.9;
}

.achievementsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.achievementBadge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-smooth);
  text-align: center;
}

.achievementBadge:hover {
  /* ΑΦΑΙΡΕΣΑ το transform: translateY(-3px) */
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.achievementBadge.earned {
  background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(33,105,255,0.15));
  border-color: rgba(124,92,255,0.3);
}

.achievementBadge.locked {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.badgeIcon {
  font-size: 32px;
  margin-bottom: 8px;
  transition: all var(--transition-smooth);
}

.achievementBadge.earned .badgeIcon {
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(124,92,255,0.5)); }
  50% { filter: drop-shadow(0 0 15px rgba(124,92,255,0.8)); }
}

.badgeTitle {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 4px;
}

.badgeDesc {
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.3;
}

.badgeProgress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.badgeProgressFill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #2bd67b);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Stats container enhancement */
.statsRow {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .focusGrid{ grid-template-columns: 1fr; }
  :root{ --compass-gutter: 58px; }
  .tableInner{ padding-left: calc(14px + var(--compass-gutter)); }
  .compass{ left: 12px; top: 12px; }
  .achievementsGrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
@media (max-width: 520px){
  :root{ --compass-gutter: 52px; }
  .dir{ width:34px;height:34px; }
  .achievementsGrid {
    grid-template-columns: 1fr;
  }
  .achievementToast {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  /* Compact header on small screens */
  .topbar { flex-wrap: wrap; gap: 8px; }
  .brand h1 { font-size: 16px; }
  .brand .sub { display: none; }
  .topbar .chip { padding: 4px 8px; font-size: 11px; }
  #meta, #focusLabel { display: none; }
  .topbar #meta, .topbar .chip:has(#focusLabel) { display: none; }
}

/* ===========================
   Loader Overlay (Deal calc)
   =========================== */
.loaderOverlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 18, 0.62);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.loaderOverlay.show{
  display: flex;
}

.loaderCard{
  width: min(520px, calc(100vw - 36px));
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(16, 38, 28, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loaderRow{
  display: flex;
  align-items: center;
  gap: 14px;
}

.loaderSpinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.92);
  animation: spin 900ms linear infinite;
  flex: 0 0 auto;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.loaderText{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.loaderTitle{
  font-weight: 700;
  letter-spacing: .2px;
}

.loaderSub{
  opacity: .82;
  font-size: 13px;
}

.loaderDots::after{
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.1s steps(4, end) infinite;
}

@keyframes dots{
  0%   { content:""; }
  25%  { content:"."; }
  50%  { content:".."; }
  75%  { content:"..."; }
  100% { content:""; }
}

option {
    color: black !important;
}

button#newBtn {
    background: #9d0c9d !important;
}

/* ✅ ΕΠΙΠΛΕΟΝ FIX: ΑΠΕΝΕΡΓΟΠΟΙΗΣΗ ΟΛΩΝ ΤΩΝ ANIMATIONS ΓΙΑ focusBtn */
.focusBtn,
.focusBtn.selected {
  animation: none !important;
}

.focusBtn {
  transition: all 0.08s ease-out !important;
}

.focusBtn.selected {
  transition: all 0.05s ease-out !important;
  border-color: rgba(124,92,255,.65) !important;
  background: rgba(124,92,255,.12) !important;
}

/* ✅ ΑΜΕΣΟ VISUAL FEEDBACK ΓΙΑ CLICKED BUTTONS */
.btn.clicked {
  transform: scale(0.98);
  opacity: 0.9;
}

/* ==================== PERFORMANCE INDICATORS ==================== */
.chip.fast {
    background: linear-gradient(135deg, rgba(43,214,123,0.25), rgba(10,90,50,0.25));
    border-color: rgba(43,214,123,0.5);
    animation: pulseFast 2s infinite;
}

.chip.slow {
    background: linear-gradient(135deg, rgba(255,77,109,0.25), rgba(140,8,28,0.25));
    border-color: rgba(255,77,109,0.5);
    animation: pulseSlow 2s infinite;
}

@keyframes pulseFast {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
    50% { box-shadow: 0 10px 30px rgba(43,214,123,0.3); }
}

@keyframes pulseSlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
    50% { box-shadow: 0 10px 30px rgba(255,77,109,0.3); }
}

/* Visual feedback for clicked buttons */
.btn.clicked {
    transform: scale(0.96);
    opacity: 0.9;
    transition: transform 0.1s, opacity 0.1s;
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== v3 (30/11/2026): συμβάσεις + κουμπί κόντρας ===== */
.convToggles{ align-items:center; }
.togglesTitle{
  flex: 0 0 100%;
  font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.toggle small{ font-weight: 500; opacity: .7; font-size: 11.5px; }
.dblTab{
  cursor:pointer;
  width: 100%;
  min-height: 46px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: #c81e3a;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .6px;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.dblTab:hover:not(.disabled){ background: #dc2a48; }
.dblTab.disabled{ cursor:not-allowed; pointer-events:none; opacity:.28; filter: grayscale(.7); }

/* ===== v4: βοήθεια, αδύνατα σημεία, τα 4 χέρια, τάξη ===== */
.txt{ border:1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color:#fff; border-radius:12px; padding:9px 11px; font-size:13px; }
.txt::placeholder{ color: rgba(255,255,255,.45); }
.classBox{ align-items:center; }
.classMsg{ font-size:12.5px; color:#fca5a5; }
.assignBox{ flex: 0 0 100%; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap;
  padding:12px 14px; border-radius:14px; border:1px solid rgba(124,92,255,.45); background: rgba(124,92,255,.12); font-size:13.5px; line-height:1.5; }
.assignProg{ opacity:.85; font-size:12.5px; }
.hintBox{ margin:10px auto 0; width:min(380px,100%); padding:11px 13px; border-radius:14px; border:1px solid rgba(250,204,21,.45);
  background: rgba(250,204,21,.10); color:#fef3c7; font-size:13.5px; line-height:1.5; }
.hintBox b{ display:block; margin-bottom:4px; color:#fde68a; }
.stepTag{ font-size:11.5px; font-weight:700; opacity:.75; margin-left:8px; padding:2px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.25); }
.weakTop{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; font-size:13.5px; }
.weakTable{ width:100%; border-collapse:collapse; font-size:13px; }
.weakTable th{ text-align:left; padding:8px 10px; font-size:11.5px; letter-spacing:.3px; color:rgba(255,255,255,.6); border-bottom:1px solid rgba(255,255,255,.14); }
.weakTable td{ padding:8px 10px; border-bottom:1px solid rgba(255,255,255,.07); }
.weakTable .num{ text-align:right; white-space:nowrap; font-variant-numeric: tabular-nums; }
.ratePill{ display:inline-block; min-width:46px; text-align:center; padding:2px 8px; border-radius:999px; font-weight:800; font-size:12px; }
.ratePill.good{ background:#14532d; color:#bbf7d0; } .ratePill.mid{ background:#713f12; color:#fde68a; } .ratePill.bad{ background:#7f1d1d; color:#fecaca; }
.handsDiagram{ margin-top:12px; padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.22); }
.hdTitle{ font-size:11.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; color:rgba(255,255,255,.6); margin-bottom:8px; }
.hdGrid{ display:grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: ". n ." "w c e" ". s ."; gap:8px; }
.hdN{ grid-area:n; } .hdS{ grid-area:s; } .hdW{ grid-area:w; } .hdE{ grid-area:e; } .hdCenter{ grid-area:c; }
.hdBox{ padding:8px 9px; border-radius:10px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); font-size:12.5px; line-height:1.55; min-width:0; }
.hdBox.me{ border-color: rgba(96,165,250,.7); } .hdBox.partner{ border-color: rgba(74,222,128,.6); }
.hdHead{ display:flex; gap:6px; align-items:baseline; flex-wrap:wrap; margin-bottom:3px; font-size:11.5px; }
.hdHead span{ opacity:.7; } .hdHead em{ margin-left:auto; font-style:normal; font-weight:800; }
.hdLine{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:.3px; }
.hdSuit{ display:inline-block; width:14px; } .hdSuit.red{ color:#f87171; }
.hdSummary{ margin-top:9px; font-size:13px; line-height:1.5; opacity:.92; }
@media (max-width: 520px){ .hdGrid{ grid-template-columns: 1fr 1fr; grid-template-areas: "n n" "w e" "s s"; } .hdCenter{ display:none; } }
