button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
.role-btn,
.floating-qa-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

set-game-card {
  display: flex;
  justify-content: center;
  flex: 0 1 auto;
}

set-game-card .game-card {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  background-color: var(--bg-card-body);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

set-game-card .game-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 520px;
  padding: 20px;
  box-sizing: border-box;
}

.set-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 6px auto;
}

.set-card-btn {
  background: var(--bg-dark);
  border: 2px solid var(--color-control);
  border-radius: 8px;
  padding: 8px 4px;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
  user-select: none;
  position: relative;
}

/* TOP BAR FLEX LAYOUT (BUTTON - LED MARQUEE - BUTTON) */
.set-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  gap: 8px;
  margin: -5px auto 8px;
}

.set-toggle-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--color-control);
  background: var(--bg-dark);
  color: var(--color-accent, #d1db9e);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-toggle-btn:hover {
  background: var(--color-accent, #d1db9e);
  color: var(--bg-dark, #1e2319);
}

.set-cvd-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: bold;
  color: #f0e6cf;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1;
  pointer-events: none;
}

/* LED SCREEN */
set-game-card .arcade-marquee-screen {
  flex: 1;
  min-width: 0;
  height: 30px;
  background-color: #0d1109;
  border: 2px solid #3b4432;
  border-radius: 6px;
  padding: 0 4px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 0 4px rgba(181, 190, 138, 0.2);
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

set-game-card .arcade-marquee-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--color-accent, #d1db9e);
  text-shadow: 0 0 6px rgba(209, 219, 158, 0.8);
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: block;
  width: 100%;
}

/* Moving State */
set-game-card .arcade-marquee-screen.moving-state .arcade-marquee-text {
  color: #ff4d4d;
  text-shadow: 0 0 6px #ff0000, 0 0 12px #ff0000;
  animation: setMarqueeScroll 5s linear infinite;
}

/* Static Mode State */
set-game-card .arcade-marquee-screen.static-state .arcade-marquee-text {
  animation: none;
}

/* Win State */
set-game-card .arcade-marquee-screen.win-state .arcade-marquee-text {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
  animation: setGoldGlowPulse 1.5s infinite alternate ease-in-out;
  font-size: 0.5rem;
}

@keyframes setMarqueeScroll {
  0% { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes setGoldGlowPulse {
  0% { text-shadow: 0 0 4px rgba(255, 215, 0, 0.6); }
  100% { text-shadow: 0 0 10px rgba(255, 215, 0, 1); }
}

@media (hover: hover) {
  .set-card-btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
  }
}

.set-card-btn.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.set-card-btn.hinted {
  animation: setPulse 1s infinite alternate;
}

.set-card-btn.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

@keyframes setPulse {
  0% { border-color: var(--color-accent); }
  100% { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); }
}

.found-sets-divider-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.found-sets-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(181, 190, 138, 0.4);
  transition: background-color 0.2s ease;
}

.found-sets-label {
  padding: 0 10px;
  font-size: 0.75rem;
  color: #b5be8a;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.found-sets-divider-wrapper:hover .found-sets-line {
  background-color: #b5be8a;
}

.found-sets-divider-wrapper:hover .found-sets-label {
  color: #d1db9e;
}

.set-help-label {
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 6px;
  color: var(--color-accent, #d1db9e);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.help-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(181, 190, 138, 0.2);
}

.help-feature-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-col-title {
  font-size: 0.75rem;
  font-weight: bold;
  color: #b5be8a;
  border-bottom: 1px solid rgba(181, 190, 138, 0.2);
  padding-bottom: 2px;
  text-transform: uppercase;
}

.help-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #b2b8a3;
}

.help-mini-card {
  background: var(--bg-dark, #1e293b);
  border: 1px solid var(--color-control, #475569);
  border-radius: 4px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 28px;
  gap: 2px;
}

.set-gap-1 {
  gap: 1px !important;
}

.set-mt-10 {
  margin-top: 10px !important;
}

.set-example-subtitle {
  font-size: 0.75rem;
  margin-bottom: 2px;
  color: #b2b8a3;
}

.help-example-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.help-example-card {
  background: var(--bg-dark, #1e293b);
  border: 1.5px solid var(--color-control, #475569);
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-height: 40px;
}

.set-help-desc-footer {
  margin-top: 10px;
  margin-bottom: 0;
}

.set-found-container {
  display: none;
  width: 100%;
  max-width: 420px;
  margin: 10px auto 0;
  padding-top: 2px;
}

.set-found-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.set-found-slot {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  border-radius: 6px;
  min-height: 48px;
  background-color: var(--bg-dark);
  border: 1px dashed #9aa372;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.set-found-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  position: relative;
}

.set-action-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  justify-content: center;
  margin-top: 12px;
}

set-game-card .game-help-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-card-body);
  border-radius: 20px;
  z-index: 50;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

set-game-card .game-help-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

set-game-card.set-day-mode .set-card-btn {
  background: #B5BE8A;
  border-color: #a68a5b;
}

set-game-card.set-day-mode .set-found-slot {
  background: #B5BE8A;
  border-color: #a68a5b;
}