/* ===== Global Reset & Variables ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:    #E74C3C;
  --blue:   #3498DB;
  --green:  #27AE60;
  --yellow: #F39C12;
  --red-light:    #FADBD8;
  --blue-light:   #D6EAF8;
  --green-light:  #D5F5E3;
  --yellow-light: #FDEBD0;
  --board-bg: #F5DEB3;
  --board-border: #C8A96E;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-500: #ADB5BD;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-sm: 6px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--gray-900);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.btn-roll {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: white;
  font-size: 1.1rem;
  padding: 14px 28px;
  width: 100%;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-roll:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-roll:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Utilities ===== */
.hidden { display: none !important; }

.color-red    { color: var(--red); }
.color-blue   { color: var(--blue); }
.color-green  { color: var(--green); }
.color-yellow { color: var(--yellow); }

.bg-red    { background-color: var(--red); }
.bg-blue   { background-color: var(--blue); }
.bg-green  { background-color: var(--green); }
.bg-yellow { background-color: var(--yellow); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-500); border-radius: 3px; }
