/* ==========================================================================
   Team Assist — Responsive UX Stylesheet (100% Offline, Zero CDN Dependencies)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #44403c;
}

:root {
  --bg: #1c1917;
  --bar: #09090b;
  --card: #292524;
  --card-elevated: #34302e;
  --ink: #f3f4f6;
  --mute: #a8a29e;
  --rule: #44403c;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --sel: #facc15;
  --off: #dc2626;
  --ball: #ee7d1a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-nav-h: 62px;
  color-scheme: dark;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  /* Space for fixed bottom nav on mobile */
  padding-bottom: calc(var(--mobile-nav-h) + var(--safe-bottom));
}

@media (min-width: 768px) {
  body {
    padding-bottom: var(--safe-bottom);
  }
}

/* Lock viewport scroll when Tactics Board is active for smooth touch drawing */
body.mode-tactics {
  height: 100dvh;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1c1917; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 4px; }

button, input {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

h1, h2, h3, h4, p {
  margin: 0;
}

svg {
  display: block;
}

/* ==========================================================================
   1. Responsive Top App Bar (Single Sleek Row on All Screen Sizes)
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #dc2626;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
  padding: 0.5rem 0.75rem;
}

@media (min-width: 640px) {
  .app-header {
    padding: 0.625rem 1.25rem;
  }
}

.app-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.6);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  flex-shrink: 0;
  background-color: #141416;
}

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

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-title {
    font-size: 1.25rem;
  }
}

.brand-subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ef4444;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .brand-subtitle {
    display: none;
  }
}

/* Desktop/Tablet Segmented Top Nav (Hidden on Mobile < 768px) */
.desktop-nav {
  display: none;
  align-items: center;
  background-color: #1c1917;
  padding: 4px;
  border-radius: 0.625rem;
  border: 1px solid #44403c;
  gap: 4px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: inline-flex;
  }
}

.desktop-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 0.425rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a8a29e;
  transition: all 0.15s ease;
}

.desktop-nav-tab:hover {
  color: #ffffff;
  background-color: #292524;
}

.desktop-nav-tab.active {
  background-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
}

/* Compact Game Clock Pill in Header */
.timer-pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #1c1917;
  padding: 0.25rem 0.375rem 0.25rem 0.625rem;
  border-radius: 0.625rem;
  border: 1px solid #44403c;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .timer-pill {
    gap: 0.625rem;
    padding: 0.3125rem 0.4375rem 0.3125rem 0.875rem;
  }
}

.timer-readout-wrap {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.timer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #57534e;
  flex-shrink: 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.timer-status-dot.running {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse 1.5s infinite;
}

.timer-readout {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.125rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.03em;
  min-width: 3.35rem;
  text-align: center;
}

@media (min-width: 640px) {
  .timer-readout {
    font-size: 1.375rem;
    min-width: 4.25rem;
  }
}

.timer-action-btn {
  min-height: 36px;
  padding: 0 0.75rem;
  border-radius: 0.425rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: all 0.15s ease;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .timer-action-btn {
    min-height: 38px;
    padding: 0 1.125rem;
    font-size: 0.8125rem;
  }
}

.timer-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.425rem;
  border: 1px solid #44403c;
  color: #a8a29e;
  background-color: transparent;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.timer-icon-btn:hover {
  color: #ffffff;
  border-color: #dc2626;
  background-color: rgba(127, 29, 29, 0.35);
}

/* ==========================================================================
   2. Mobile Bottom Tab Bar (< 768px Thumb-Zone Navigation)
   ========================================================================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: calc(var(--mobile-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background-color: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #292524;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-tab {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #78716c;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.15s ease;
}

.mobile-nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.mobile-nav-tab.active {
  color: #ef4444;
}

.mobile-nav-tab.active::before {
  background-color: #dc2626;
}

.mobile-nav-icon-pill {
  padding: 0.2rem 0.85rem;
  border-radius: 9999px;
  transition: background-color 0.15s ease;
}

.mobile-nav-tab.active .mobile-nav-icon-pill {
  background-color: rgba(220, 38, 38, 0.16);
}

/* ==========================================================================
   3. Page Containers & Sub Roster Responsive UX
   ========================================================================== */

.page-section {
  display: none;
}

.page-section.active {
  display: flex;
}

.roster-page {
  flex: 1 1 auto;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.875rem;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .roster-page {
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

.roster-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .roster-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.roster-panel {
  background-color: #292524;
  border-radius: 0.875rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

@media (min-width: 768px) {
  .roster-panel {
    min-height: 380px;
  }
}

.roster-panel-field {
  border: 1px solid rgba(153, 27, 27, 0.65);
}

.roster-panel-bench {
  border: 1px solid #44403c;
}

/* Player Card — Ergonomic Responsive Layout */
.player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  border-width: 1px;
  transition: all 0.15s ease;
}

@media (min-width: 640px) {
  .player-card {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
  }
}

.player-card-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  flex: 1 1 0%;
}

.player-jersey {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.player-info-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.125rem;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.player-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9.5rem;
}

@media (min-width: 420px) {
  .player-name {
    max-width: 13rem;
  }
}

.boost-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.boost-btn:hover {
  transform: scale(1.15);
}

.player-card-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.player-stats-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background-color: rgba(28, 25, 23, 0.65);
  border: 1px solid rgba(68, 64, 60, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 0.425rem;
  font-size: 0.75rem;
  line-height: 1.15;
  gap: 0.1rem;
}

@media (min-width: 440px) {
  .player-stats-pill {
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    padding: 0.35rem 0.625rem;
  }
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.action-btn-sub-on {
  background-color: #44403c;
  color: #f3f4f6;
  border: 1px solid #57534e;
}

.action-btn-sub-on:hover {
  background-color: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

.action-btn-sub-off {
  background-color: rgba(127, 29, 29, 0.35);
  color: #f87171;
  border: 1px solid rgba(153, 27, 27, 0.6);
}

.action-btn-sub-off:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.action-btn-sub-warn {
  background-color: rgba(153, 27, 27, 0.65);
  color: #fca5a5;
  border: 1px solid #ef4444;
}

.action-btn-sub-warn:hover {
  background-color: #ef4444;
  color: #ffffff;
}

.action-btn-remove {
  width: 34px;
  height: 38px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  transition: all 0.15s ease;
}

.action-btn-remove:hover {
  background-color: #dc2626;
  color: #ffffff;
}

/* ==========================================================================
   4. Tactics Board — Responsive Control Dock & Full-Viewport Court
   ========================================================================== */

.tactics-container {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 0.625rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .tactics-container {
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
  }
}

.tactics-toolbar {
  background-color: #292524;
  border: 1px solid #44403c;
  border-radius: 0.75rem;
  padding: 0.45rem 0.5rem;
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .tactics-toolbar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
}

.tactics-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tactics-segmented {
  display: inline-flex;
  align-items: center;
  background-color: #1c1917;
  padding: 3px;
  border-radius: 0.5rem;
  border: 1px solid #44403c;
  gap: 2px;
}

.tactics-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.6rem;
  border-radius: 0.425rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: #44403c;
  color: #f3f4f6;
  border: 1px solid #57534e;
  transition: all 0.15s ease;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .tactics-btn {
    min-height: 38px;
    padding: 0.375rem 0.75rem;
  }
}

.tactics-segmented .tactics-btn {
  background-color: transparent;
  border-color: transparent;
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  color: #a8a29e;
}

.tactics-segmented .tactics-btn:hover:not(:disabled) {
  color: #ffffff;
  background-color: #292524;
}

.tactics-segmented .tactics-btn.on {
  background-color: #dc2626;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.tactics-btn:hover:not(:disabled) {
  background-color: #57534e;
  color: #ffffff;
}

#bo.tactics-btn {
  background-color: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}
#bo.tactics-btn:hover:not(:disabled) {
  background-color: #b91c1c;
}

#bd.tactics-btn {
  background-color: #0c0a09;
  color: #f3f4f6;
  border: 1.5px solid #e5e7eb;
}
#bd.tactics-btn:hover:not(:disabled) {
  background-color: #1c1917;
}

#bb.tactics-btn {
  background-color: #ea580c;
  border-color: #f97316;
  color: #ffffff;
}
#bb.tactics-btn:hover:not(:disabled) {
  background-color: #c2410c;
}

.tactics-board-card {
  flex: 1 1 0%;
  min-height: 0;
  background-color: #292524;
  border: 1px solid rgba(153, 27, 27, 0.55);
  border-radius: 0.875rem;
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.45);
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 640px) {
  .tactics-board-card {
    padding: 0.625rem;
  }
}

#board {
  width: 100%;
  height: 100%;
  flex: 1 1 0%;
  min-height: 0;
  display: block;
  touch-action: none;
  border-radius: 0.5rem;
  background-color: #141416;
}

.tactics-footer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem 0.1rem;
  font-size: 0.75rem;
  color: #a8a29e;
  text-align: center;
}

.i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toast Notification Positioning (Respects Mobile Bottom Nav) */
.toast-wrapper {
  position: fixed;
  right: 1rem;
  left: 1rem;
  bottom: calc(var(--mobile-nav-h) + var(--safe-bottom) + 0.75rem);
  z-index: 50;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .toast-wrapper {
    left: auto;
    max-width: 26rem;
  }
}

@media (min-width: 768px) {
  .toast-wrapper {
    bottom: 1.25rem;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-h-48 { max-height: 12rem; }
.w-9 { width: 2.25rem; }
.w-8 { width: 2rem; }
.w-7 { width: 1.75rem; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.w-3 { width: 0.75rem; }
.h-8 { height: 2rem; }
.h-7 { height: 1.75rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }

.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-4 { margin-left: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.overflow-y-auto { overflow-y: auto; }

.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }

.uppercase { text-transform: uppercase; }
.normal-case { text-transform: none; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.text-center { text-align: center; }
.align-middle { vertical-align: middle; }

.bg-transparent { background-color: transparent; }
.bg-black { background-color: #000000; }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }

.bg-stone-900 { background-color: #1c1917; }
.bg-stone-800 { background-color: #292524; }
.bg-stone-800\/80 { background-color: rgba(41, 37, 36, 0.8); }
.bg-stone-700 { background-color: #44403c; }
.bg-stone-600 { background-color: #57534e; }

.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-900\/50 { background-color: rgba(127, 29, 29, 0.5); }

.bg-yellow-500 { background-color: #eab308; }
.bg-blue-500 { background-color: #3b82f6; }

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }

.text-stone-300 { color: #d6d3d1; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }

.text-red-100 { color: #fee2e2; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }

.text-yellow-400 { color: #facc15; }
.fill-yellow-400 { fill: #facc15; }

.placeholder-stone-500::placeholder { color: #78716c; }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }

.border-stone-500 { border-color: #78716c; }
.border-stone-600 { border-color: #57534e; }
.border-stone-700 { border-color: #44403c; }
.border-stone-700\/50 { border-color: rgba(68, 64, 60, 0.5); }
.border-stone-800 { border-color: #292524; }

.border-red-500 { border-color: #ef4444; }
.border-red-600 { border-color: #dc2626; }
.border-red-900 { border-color: #7f1d1d; }
.border-red-900\/50 { border-color: rgba(127, 29, 29, 0.5); }
.border-red-900\/60 { border-color: rgba(127, 29, 29, 0.6); }

.border-yellow-700 { border-color: #a16207; }
.border-blue-700 { border-color: #1d4ed8; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); }
.shadow-red-900\/50 { box-shadow: 0 6px 14px -2px rgba(127, 29, 29, 0.55); }
.shadow-stone-900\/50 { box-shadow: 0 6px 14px -2px rgba(28, 25, 23, 0.55); }
.drop-shadow-\[0_0_5px_rgba\(250\,204\,21\,0\.5\)\] { filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.5)); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.opacity-0 { opacity: 0; }
.opacity-80 { opacity: 0.85; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }

.transition-colors { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.transition-all { transition: all 0.2s ease; }
.transform { transform: translateZ(0); }
.translate-y-\[150\%\] { transform: translateY(150%); }
.translate-y-0 { transform: translateY(0); }

.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-red-800:hover { background-color: #991b1b; }
.hover\:bg-stone-800:hover { background-color: #292524; }
.hover\:bg-stone-600:hover { background-color: #57534e; }
.hover\:text-yellow-600:hover { color: #ca8a04; }

.focus\:outline-none:focus { outline: none; }
.focus\:border-red-500:focus { border-color: #ef4444; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px #ef4444; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hidden-mobile {
  display: none;
}
@media (min-width: 640px) {
  .hidden-mobile {
    display: inline;
  }
}
