
  /* Abilities.html */
  body {
      font-family: 'Science Gothic', sans-serif;
      background: #f0f2f5;
      margin: 0;
      padding: 20px;
      font-size: 18px;
      font-weight: 600;
      color: #333;
    }

    .page-title {
      text-align: center;
      font-size: clamp(40px, 7vw, 80px);
      font-weight: 700;
      color: #27ae60;
      margin: 20px 0 30px;
      letter-spacing: 4px;
    }

    /* HEADER: SEARCH + SORT — identical to Teams page */
    .page-header,
    .teams-header,
    .rules-controls {
      max-width: 1400px;
      margin: 0 auto 40px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .header-left { display: flex; gap: 12px; flex-wrap: wrap; }
    .header-right { display: flex; gap: 12px; align-items: center; }

    .search-box {
      padding: 14px 20px;
      border: 2px solid #27ae60;
      border-radius: 14px;
      font-size: 18px;
      width: 340px;
      font-family: 'Science Gothic', sans-serif;
      font-weight: 600;
      background: white;
    }
    .search-box::placeholder { color: #999; opacity: 0.8; }

    /* SORT DROPDOWN */
    .sort-dropdown { position: relative; display: inline-block; }
    .sort-btn {
      background: #27ae60;
      color: white;
      border: none;
      padding: 14px 36px;
      border-radius: 14px;
      font-size: 20px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 8px 25px rgba(0,0,0,0.2);
      white-space: nowrap;
    }
    .sort-btn:hover { background: #219653; }

    .sort-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: white;
      min-width: 260px;
      border-radius: 14px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.22);
      overflow: hidden;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.2s ease;
    }
    .sort-dropdown:hover .sort-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .sort-option {
      padding: 16px 20px;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.2s;
    }
    .sort-option:hover {
      background: #f1c40f;
      color: black;
    }

    /* ABILITIES TABLE */
    .abilities-table {
      table-layout: fixed;
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      border-collapse: collapse;
      background: white;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      border-radius: 16px;
      overflow: hidden;
      font-size: 18px;
    }
    .abilities-table td {
      padding: 12px 16px;
      text-align: center;
      border: 1px solid #ccc;
      vertical-align: middle;
      overflow-wrap: break-word;
    }
    .abilities-table td:nth-child(1) { width: 22%; }
    .abilities-table td:nth-child(2) { width: 10%; }
    .abilities-table td:nth-child(3) { width: 54%; }
    .abilities-table td:nth-child(4) { width: 14%; }

    .ability-name {
      background: #27ae60;
      color: white;
      font-weight: bold;
      text-align: left;
      padding-left: 28px;
      font-size: 22px;
    }
    .ability-points {
      background: #f1c40f;
      color: black;
      font-weight: bold;
    }
    .ability-type {
      background: #333;
      color: white;
      font-weight: bold;
      font-size: 16px;
    }
    .header-row td {
      background: #27ae60;
      color: white;
      font-weight: bold;
      font-size: 20px;
      text-align: center;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .page-header { justify-content: center; }
      .search-box { width: 100%; max-width: 400px; }
    }


        /* Actions.html */
    .actions-table {
      table-layout: fixed;
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      border-collapse: collapse;
      background: #27ae60;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      border-radius: 16px;
      overflow: hidden;
      font-size: 18px;
    }

    .actions-table tr { height: 68px; }

    .actions-table td {
      padding-left: 1px;
      padding-right: 1px;
      padding-top: 6px;
      padding-bottom: 6px;
      text-align: center;
      color: white;
      border: 1px solid #ccc;
      vertical-align: middle;
      overflow-wrap: break-word;
    }

    .actions-table td:empty {background: #27ae60;}

    .action-name {
      background: #27ae60;
      color: white;
      font-weight: bold;
      text-align: left;
      padding-left: 28px;
      font-size: 18px;
    }

    .action-power {
      background: #f1c40f !important;
      color: black !important;
      font-weight: bold;
    }

    /* Same 8-column widths as your main page */
    .actions-table td:nth-child(1) { width: 12%; } /* Action name */
    .actions-table td:nth-child(2) { width: 6%; } /* Power */
    .actions-table td:nth-child(3) { width: 7%; } /* Attacks */
    .actions-table td:nth-child(4) { width: 4%; } /* Skill */
    .actions-table td:nth-child(5) { width: 7%;  } /* Potency */
    .actions-table td:nth-child(6) { width: 5%;  } /* Range */
    .actions-table td:nth-child(7) { width: 7%;  } /* Damage */
    .actions-table td:nth-child(8) { width: 10%; } /* Augment 1 */
    .actions-table td:nth-child(9) { width: 10%; } /* Augment 2 */
    .actions-table td:nth-child(10) { width: 10%; } /* Augment 3 */
    .actions-table td:nth-child(11) { width: 10%; } /* Augment 4 */
    .actions-table td:nth-child(12) { width: 10%; } /* Augment 5 */


    .actions-header-row td {
      background: white;
      color: black;
      font-weight: bold;
      font-size: 18px;
    }

    .add-action-button {
      display: block;
      margin: 30px auto;
      padding: 12px 24px;
      font-size: 18px;
      font-weight: bold;
      color: black;
      background-color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .add-action-button:hover {
      background-color: #27ae60;
    }


    /* Augments.html */

    .augments-table {
      table-layout: fixed;
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      border-collapse: collapse;
      background: white;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      border-radius: 16px;
      overflow: hidden;
      font-size: 18px;
    }
    .augments-table td {
      padding: 12px 16px;
      text-align: center;
      border: 1px solid #ccc;
      vertical-align: middle;
      overflow-wrap: break-word;
    }
    .augments-table td:nth-child(1) { width: 22%; }
    .augments-table td:nth-child(2) { width: 10%; }
    .augments-table td:nth-child(3) { width: 54%; }
    .augments-table td:nth-child(4) { width: 14%; }

    .augment-name {
      background: #27ae60;
      color: white;
      font-weight: bold;
      text-align: left;
      padding-left: 28px;
      font-size: 22px;
    }
    .augment-points {
      background: #f1c40f;
      color: black;
      font-weight: bold;
    }
    .augment-type {
      background: #333;
      color: white;
      font-weight: bold;
      font-size: 16px;
    }


    /* Homepage.html */
    .logo-banner {
      text-align: center;
      margin-bottom: 40px;
    }

    .hero {
      background: white;
      padding: 80px 20px;
      text-align: center;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      margin-bottom: 60px;
    }
    .hero h1 {
      font-size: clamp(50px, 10vw, 100px);
      font-weight: 700;
      color: #27ae60;
      margin: 0 0 20px;
      letter-spacing: 6px;
    }
    .hero p {
      font-size: clamp(20px, 3vw, 28px);
      max-width: 900px;
      margin: 0 auto 50px;
      line-height: 1.5;
    }
    .btn-hero {
      background: #f1c40f;
      color: black;
      border: none;
      padding: 20px 60px;
      border-radius: 16px;
      font-size: clamp(22px, 3.5vw, 32px);
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      transition: all 0.3s;
    }
    .btn-hero:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    .features {
      max-width: 1400px;
      margin: 0 auto 80px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 32px;
      padding: 0 20px;
    }
    .feature-card {
      background: white;
      padding: 40px 30px;
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      text-align: center;
    }
    .feature-card h3 {
      font-size: 28px;
      color: #27ae60;
      margin: 0 0 20px;
    }
    .feature-card p {
      font-size: 19px;
      line-height: 1.6;
      margin: 0;
    }

    footer {
      background: #27ae60;
      color: white;
      text-align: center;
      padding: 30px;
      font-size: 18px;
    }

        
        /* Rules.html */
    .rules-controls {
      max-width: 1400px;
      margin: 0 auto 40px;
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }
    .btn {
      background: #27ae60;
      color: white;
      border: none;
      padding: 14px 36px;
      border-radius: 14px;
      font-size: 20px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
    .btn:hover { background: #219653; }
    .btn-yellow { background: #f1c40f; color: black; }
    .btn-yellow:hover { background: #e67e22; }

    .rules-accordion {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .rule-section {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }
    .section-header {
      background: #27ae60;
      color: white;
      padding: 20px 30px;
      font-size: 26px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
    }
    .section-header:hover { background: #219653; }
    .section-header::after {
      content: "expand_more";
      font-family: 'Material Icons';
      font-size: 36px;
    }
    .section-header.open::after { content: "expand_less"; }

    .section-content {
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, padding 0.4s ease;
      background: #fafafa;
    }
    .section-content.open {
      padding: 30px;
      max-height: 1200px; /* adjust if your PDFs are taller */
    }

    .pdf-viewer {
      width: 100%;
      height: 1000px;           /* adjust height as needed */
      border: none;
      border-radius: 0 0 16px 16px;
      background: #fff;
    }

        /* Team Builder.html */
.team-banner {
  background: white;
  padding: 1px;
  margin-bottom: clamp(26px, 5vw, 40px);
  gap: 12px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Science Gothic', sans-serif;
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: bold;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.team-banner::-webkit-scrollbar { display: none; }

.team-power {
  background: #f1c40f;
  color: black;
  padding: Clamp(6px, 1.5vw, 10px);
  border-radius: 12px;
  font-family: 'Science Gothic', sans-serif;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: bold;
  white-space: nowrap;
}

.maneuver-input {
  background: #27ae60;
  color: white;
  border: none;
  padding: Clamp(6px, 1.5vw, 10px);
  border-radius: 8px;
  font-family: 'Science Gothic', sans-serif;
  font-weight: bold;
  font-size: clamp(16px, 2vw, 20px);
  width: clamp(100px, 15vw, 200px);
  text-align: center;
  box-sizing: border-box;
}

.maneuver-percent {
  background: #f1c40f;
  color: black;
  padding: Clamp(6px, 1.5vw, 10px);
  border-radius: 12px;
  font-family: 'Science Gothic', sans-serif;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: bold;
  white-space: nowrap;
}

    /* CHARACTER TABLE — PERCENT-BASED COLUMNS */
   .character-table {
      table-layout: fixed;
      width: 100%;
      max-width: 1400px;
      font-size: clamp(17px, 1.9vw, 20px);
      margin: 0 auto;
      border-collapse: collapse;
      background: white;
      box-shadow: 0 10px 40px rgba(0,0,0,0,0.15);
      border-radius: 16px;
      overflow: hidden;
      font-size: 18px;
    }
      .character-table td {
  padding-left: 1px;
  padding-right: 1px;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  border: 1px solid #ccc;
  vertical-align: middle;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 8 real columns — you control every one */
.character-table td:nth-child(1)  { width: 14%; } /* Label */
.character-table td:nth-child(2)  { width: 12%; } /* Stat value */
.character-table td:nth-child(3)  { width: 12%; } /* Power value */
.character-table td:nth-child(4)  { width: 14%; } /* Ability */
.character-table td:nth-child(5)  { width: 8%;  } /* Value */
.character-table td:nth-child(6)  { width: 8%;  } /* Box */
.character-table td:nth-child(7)  { width: 7%;  } /* Size / Models */
.character-table td:nth-child(8)  { width: 25%; } /* Augments + Portrait */

    .label-col {background:white;color:#333;font-weight:bold;text-align:right;}
    .name-input {background:#27ae60 !important;color:white;font-size:26px;font-weight:bold;font-size: clamp(16px, 3vw, 24px); }
    .stat-input {background:#27ae60 !important;color:white;font-weight:bold;}
    .power-value {background:#f9f9f9;}
    .ability {background:#27ae60 !important;color:white !important;font-weight:bold;}
    .action-name {background:#27ae60;color:white;font-weight:bold;text-align:left;padding-left:28px;}
    .models {background:#27ae60;color:white;font-weight:bold;}
    .size {background:#27ae60;color:white;font-weight:bold;position:relative; white-space: nowrap; overflow: visible !important;}

    .total-power {font-size:26px;font-weight:bold;background:#f1c40f !important;color:black; font-size: clamp(18px, 3.2vw, 26px)}

    .empty-green-box {
      background: #f9f9f9;
      width: 40px;
      height: 40px;
      border-radius: 8px;
      margin: 0 auto;
    }

    /* UPLOAD BUTTON — stays under "Huge" */
    .portrait-upload-btn {
      position: absolute;
      left: 300%;
      transform: translateX(-50%);
      top: 250%;
      z-index: 30;
      background: #f9f9f9;
      color: black;
      border: none;
      padding: Clamp(6px, 1.5vw, 10px);
      border-radius: 12px;
      font-family: 'Science Gothic', sans-serif;
      font-size: clamp(14px, 3vw, 18px);
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    .portrait-upload-btn:hover { background: #27ae60;transform: translateX(-50%) translateY(-2px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.4);}

    /* WHITE PANEL THAT COVERS GRID LINES — perfect size & position */
    .portrait-panel {
      position: absolute;
      left: 300%;
      top: 0%;
      transform: translateX(-50%);
      width: 400%;
      height: 625%;
      background: white;
      z-index: 20;
      pointer-events: none;
    }

    /* Teams.html */
    .teams-header {max-width:1400px;margin:0 auto 40px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
    .btn {background:#27ae60;color:white;border:none;padding:12px 28px;border-radius:12px;font-size:18px;font-weight:700;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,0.2);}
    .btn:hover {background:#219653;}
    .btn-yellow {background:#f1c40f;color:black;}
    .btn-yellow:hover {background:#e67e22;}
    .search-box {padding:12px 20px;border:2px solid #27ae60;border-radius:12px;font-size:18px;width:300px; font-family: 'Science Gothic', sans-serif; font-weight: 600;}
    .search-box::placeholder { color: #999; opacity: 0.8; font-family: 'Science Gothic', sans-serif; font-weight: 600; }

    /* SORT DROPDOWN — beautiful & on-brand */
   /* PERFECT SORT DROPDOWN — no disappearing */
    .sort-dropdown {
      position: relative;
      display: inline-block;
    }

    /* Button */
    .sort-btn {
      background: #27ae60;
      color: white;
      border: none;
      padding: 12px 28px;
      border-radius: 12px;
      font-size: 18px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
      white-space: nowrap;
    }
    .sort-btn:hover { background: #219653; }

    /* Menu — now stays open on hover */
    .sort-menu {
      position: absolute;
      top: calc(100% + 6px);     /* tiny gap, but covered by hover area */
      right: 0;
      background: white;
      min-width: 240px;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
      overflow: hidden;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.2s ease;
    }

    /* When hovering the entire dropdown (button OR menu) */
    .sort-dropdown:hover .sort-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .sort-option {
      padding: 14px 20px;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.2s;
    }
    .sort-option:hover {
      background: #f1c40f;
      color: black;
    }
    .teams-list {max-width:1400px;margin:0 auto;display:flex;flex-direction:column;gap:12px;}
    .team-ribbon {
      background: white;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      overflow: hidden;
      transition: all 0.3s ease;
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      cursor: pointer;
    }
    .team-ribbon:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    }

    .ribbon-main {display:grid;grid-template-columns:2fr 1fr 100px 100px 100px 100px;align-items:center;padding:16px 24px;background:#27ae60;color:white;font-weight:bold;}
    .team-name {font-size:26px;}
    .team-points {font-size:28px;text-align:center;background:#f1c40f;color:black;padding:8px;border-radius:10px;}
    .ribbon-btn {background:rgba(255,255,255,0.2);color:white;border:none;padding:10px 16px;border-radius:10px;cursor:pointer;font-weight:bold;}
    .ribbon-btn:hover {background:rgba(255,255,255,0.3);}

    .team-characters {padding:0 24px 20px;display:none;}
    .team-characters.open {display:block;}
    .maneuvers-list {
      margin: 20px 0;
      color: #27ae60;
      font-weight: 700;
      font-size: 18px;
    }

    .maneuvers-horizontal {
      margin-left: 12px;
      color: #333;
      font-weight: normal;
    }
    .maneuvers-list li {margin:6px 0;}
    .char-row {display:grid;grid-template-columns:1fr 120px;padding:10px 0;border-bottom:1px solid #eee;font-size:18px;}
    .char-row:last-child {border-bottom:none;}

    @media (max-width:1000px) {
      .ribbon-main {grid-template-columns:1fr 1fr 80px 80px 80px 80px;font-size:18px;}
      .team-name {font-size:22px;}
    }

.site-footer {
  background: #27ae60;
  color: white;
  text-align: center;
  padding: 30px;
  font-size: 18px;
  margin-top: 100px;
}