/* ─────────────────────────────────────────────────────────────────────────────
   The Real Dev Shop — Global Stylesheet
   Design system: white/blue, Inter font, clean professional marketplace look
───────────────────────────────────────────────────────────────────────────── */

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --blue-600:    #2563EB;
  --blue-700:    #1D4ED8;
  --blue-800:    #1E40AF;
  --blue-50:     #EFF6FF;
  --blue-100:    #DBEAFE;
  --blue-200:    #BFDBFE;

  /* Neutral palette */
  --white:       #FFFFFF;
  --grey-50:     #F8FAFC;
  --grey-100:    #F1F5F9;
  --grey-200:    #E2E8F0;
  --grey-300:    #CBD5E1;
  --grey-400:    #94A3B8;
  --grey-500:    #64748B;
  --grey-600:    #475569;
  --grey-800:    #1E293B;
  --grey-900:    #0F172A;

  /* Semantic colours */
  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;
  --border:         #E2E8F0;
  --border-hover:   #CBD5E1;
  --success:        #10B981;
  --success-bg:     #ECFDF5;
  --warning:        #F59E0B;
  --warning-bg:     #FFFBEB;
  --danger:         #EF4444;
  --danger-bg:      #FEF2F2;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Radius */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:     0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-blue: 0 4px 14px 0 rgb(37 99 235 / 0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 150ms;
  --duration-md: 200ms;

  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ─── Layout Utilities ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1440px; }

.section-pad {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}
.section-pad--sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 100%;
}

.tds-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.tds-logo__icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
}
.tds-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.tds-logo__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #0f1424;
}
.tds-logo__tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #2563eb;
  margin-top: 6px;
}
.tds-logo--reversed .tds-logo__name { color: #fff; }
.tds-logo--reversed .tds-logo__tag  { color: #bcd2ff; }

/* ─── Game Selector ──────────────────────────────────────────────────────── */
.game-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-3);
  flex-shrink: 0;
}
.game-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-md) var(--ease);
  white-space: nowrap;
  font-family: var(--font);
}
.game-tab:hover { border-color: var(--border); color: var(--text-secondary); }
.game-tab--active { background: #0D0D0D; border-color: #0D0D0D; color: white; }
.game-tab--active:hover { background: #0D0D0D; border-color: #0D0D0D; color: white; }
.game-tab--inactive { opacity: 0.55; }
.game-tab--inactive:hover { opacity: 0.55; }
@media (max-width: 768px) { .game-selector { margin: 0 var(--space-2); } }
@media (max-width: 480px) { .game-selector { display: none; } }

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

#header-auth {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.icon-btn:hover {
  color: var(--text-primary);
  background: var(--grey-100);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--blue-600);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User menu */
.user-menu-wrap { position: relative; }

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 8px 4px 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.user-menu-btn:hover { border-color: var(--border-hover); background: var(--grey-50); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.user-avatar--initials {
  background: var(--blue-600);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  z-index: 200;
}
.user-menu-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.user-menu-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.user-menu-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.user-menu-item {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.user-menu-item:hover {
  background: var(--grey-50);
  color: var(--text-primary);
}
.user-menu-item--danger { color: var(--danger); }
.user-menu-item--danger:hover { background: var(--danger-bg); color: var(--danger); }

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-1) 0;
}

/* Cart icon + dropdown panel */
.cart-wrap { position: relative; }

.cart-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  z-index: 200;
}
.cart-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-dropdown-header {
  padding: var(--space-3) var(--space-4);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-dropdown-count {
  background: var(--grey-100);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 1px 7px;
}

.cart-dropdown-empty {
  padding: var(--space-8) var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.cart-dropdown-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cart-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--grey-100);
}
.cart-dropdown-item:last-child { border-bottom: none; }

.cart-dropdown-item-img {
  width: 52px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-dropdown-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-dropdown-item-body { flex: 1; min-width: 0; }
.cart-dropdown-item-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-dropdown-item-store {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-dropdown-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}
.cart-dropdown-item-price { font-size: 0.8125rem; font-weight: 700; }
.cart-dropdown-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.cart-dropdown-item-remove:hover { color: var(--danger); background: var(--danger-bg); }

.cart-dropdown-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-dropdown-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.cart-dropdown-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

/* Messages inbox — menu item badge + hover preview panel */
.msg-item-wrap { position: relative; }

.msg-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.msg-menu-item:hover {
  background: var(--grey-50);
  color: var(--text-primary);
}

.msg-unread-badge {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
}

.msg-preview-panel {
  position: absolute;
  right: calc(100% + 8px);
  top: -8px;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  z-index: 300;
}
.msg-item-wrap:hover .msg-preview-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.msg-preview-header {
  padding: var(--space-3) var(--space-4);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.msg-preview-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--grey-100);
  cursor: default;
}
.msg-preview-item:last-child { border-bottom: none; }
.msg-preview-item:hover { background: var(--grey-50); }

.msg-preview-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-preview-body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-preview-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.msg-preview-empty {
  padding: var(--space-5) var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}
.msg-preview-footer {
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--border);
  text-align: center;
}
.msg-preview-footer a {
  font-size: 0.8rem;
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}
.msg-preview-footer a:hover { color: var(--blue-700); }

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  width: 36px;
  cursor: pointer;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--grey-100);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link--cta {
  color: var(--blue-600);
  font-weight: 600;
  margin-top: var(--space-2);
}
.mobile-nav-divider { height: 1px; background: var(--border); margin: var(--space-2) 0; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-400);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid #1E293B;
}

.footer-brand {}
.footer-logo {
  margin-bottom: var(--space-4);
}
.footer-logo:hover { color: var(--blue-200); }

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--grey-400);
  max-width: 260px;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: #1E293B;
  color: var(--grey-400);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.social-link:hover { background: var(--blue-600); color: white; }

.footer-col {}
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
  color: var(--grey-400);
  font-size: 0.875rem;
  transition: color var(--duration) var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--grey-500);
}
.footer-copy a { color: var(--grey-400); }
.footer-copy a:hover { color: var(--white); }

/* ─── Typography ─────────────────────────────────────────────────────────── */
.h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--text-primary); }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); }
.h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.lead { font-size: 1.125rem; line-height: 1.75; color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-blue { color: var(--blue-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.section-header {
  margin-bottom: var(--space-12);
}
.section-header--center { text-align: center; }
.section-header .lead { max-width: 600px; margin-top: var(--space-3); }
.section-header--center .lead { margin-left: auto; margin-right: auto; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .header-nav { display: none; }
  /* Only hide the header buttons when the page actually has a hamburger menu
     that duplicates them — on pages without one (cart, checkout, login, legal,
     dashboards) hiding them would leave a logged-out visitor with no Sign In. */
  .site-header:has(.mobile-menu-btn) .header-actions .btn { display: none; }
  .mobile-menu-btn { display: flex; }

  .cart-dropdown { position: fixed; top: var(--header-height); right: 12px; left: 12px; width: auto; max-width: none; max-height: calc(100vh - var(--header-height) - 16px); }

  .site-header.mobile-open .mobile-nav { display: flex; }
  .site-header.mobile-open .mobile-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.mobile-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.mobile-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: 1 / -1; }
  .section-pad { padding-top: var(--space-16); padding-bottom: var(--space-16); }
}

@media (max-width: 480px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .header-inner { gap: var(--space-3); }
  .tds-logo { gap: 8px; }
  .tds-logo__icon { width: 34px; height: 34px; }
  .tds-logo__name { font-size: 16px; }
  .tds-logo__tag { font-size: 8px; letter-spacing: 0.14em; margin-top: 4px; }

  /* Compact the header buttons that stay visible on hamburger-less pages so
     the logo + two buttons fit a 360px viewport. */
  .header-actions { gap: var(--space-2); }
  .header-actions .btn-sm { font-size: 0.75rem; padding: 7px 10px; }
}

/* ─── Responsive utilities ───────────────────────────────────────────────── */
/* Wrap any wide table in this to get horizontal scrolling on small screens
   instead of a blown-out page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 100%; }
