
div#signingStatus::-webkit-scrollbar {
  width: 8px;
}

div#signingStatus::-webkit-scrollbar-track {
  background: #1c1c1c;
  border-radius: 8px;
}

div#signingStatus::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #095604, #0e2400);
  border-radius: 8px;
}

div#signingStatus::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #095604, #0e2400);
}
.hidden {
  display: none;
}

div#signingStatus {
  scrollbar-width: thin;
  scrollbar-color: #00ffcc #1c1c1c;
}
:root {
  --gap: 14px;
  --card-radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,0.18);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0b1210;
  color: #e9f1ec;
}
header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(11,18,16,.96) 0%, rgba(11,18,16,.75) 100%);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
h1 { margin: 0; font-size: 20px; letter-spacing: .3px; }
.btn {
  background: #1f5b41;
  color: #e9f1ec;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:hover { filter: brightness(1.08); }

main { max-width: 1100px; margin: 22px auto; padding: 0 16px 38px; }

.game-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(10px, 1fr));
  gap: var(--gap);
}

.card {
  background: transparent;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  aspect-ratio: 1 / 1;
  position: relative;
  perspective: 1000px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  outline: none;

  display: block;
  line-height: 0;
  overflow: visible;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  border-radius: var(--card-radius);

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
}

.card.is-flipped .card-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-back { background: #0f1a17; }
.card-front { transform: rotateY(180deg); background: #0e1714; }




}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}


.modal.hidden {
  display: none;
}


.modal-content {
  background: #0f1a17;
  color: #e9f1ec;
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: popIn 0.25s ease;
}


.modal-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  color: #27d08e;
}


.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-content label {
  font-size: 14px;
  text-align: left;
  opacity: .85;
}

.modal-content input[type="text"] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #e9f1ec;
  font-size: 14px;
}

.modal-content input[type="text"]:focus {
  outline: none;
  border-color: #27d08e;
  box-shadow: 0 0 0 2px rgba(39,208,142,.3);
}


.status {
  font-size: 14px;
  text-align: left;
  background: rgba(255,255,255,.04);
  padding: 10px;
  border-radius: 8px;
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.08);
}


@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}


.card.matched {
  box-shadow: 0 0 0 3px rgba(39,208,142,.9), 0 10px 22px rgba(39,208,142,.25);
  border-radius: var(--card-radius);
}
.card.matched .card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  box-shadow: inset 0 0 0 4px #27d08e;
  pointer-events: none; /* never block clicks */
}


.hud { 
  font-size: 14px; 
  opacity: .9; 
  padding: 6px 10px; 
  background: rgba(255,255,255,.06); 
  border-radius: 8px; 
  border: 1px solid rgba(255,255,255,.08);
}
.hud strong { color: #27d08e; }
div#signingStatus {overflow-x:hidden;line-break:anywhere;}
